Skip to content

Commit 5de5391

Browse files
lex00claude
andcommitted
fix stale local variable name in quickstart example (issues → results)
The quickstart example used `issues` as the local collector variable, left over from before the AgenticSession field was renamed to `getResults()` in round 2. Rename to `results` so the example is consistent with the other SDK READMEs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f8345bb commit 5de5391

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

temporal-tool-registry/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import io.temporal.toolregistry.*;
3838

3939
@ActivityMethod
4040
public List<String> analyze(String prompt) throws Exception {
41-
List<String> issues = new ArrayList<>();
41+
List<String> results = new ArrayList<>();
4242
ToolRegistry registry = new ToolRegistry();
4343
registry.register(
4444
ToolDefinition.builder()
@@ -50,7 +50,7 @@ public List<String> analyze(String prompt) throws Exception {
5050
"required", List.of("description")))
5151
.build(),
5252
(Map<String, Object> input) -> {
53-
issues.add((String) input.get("description"));
53+
results.add((String) input.get("description"));
5454
return "recorded"; // this string is sent back to the LLM as the tool result
5555
});
5656

@@ -61,7 +61,7 @@ public List<String> analyze(String prompt) throws Exception {
6161
"You are a code reviewer. Call flag_issue for each problem you find.");
6262

6363
ToolRegistry.runToolLoop(provider, registry, prompt);
64-
return issues;
64+
return results;
6565
}
6666
```
6767

0 commit comments

Comments
 (0)