Skip to content

Commit 0d7179c

Browse files
authored
Remove unused ToolCalls.SEQUENTIAL argument in singleRunStrategy calls (#1219)
<!-- Thank you for opening a pull request! Please add a brief description of the proposed change here. Also, please tick the appropriate points in the checklist below. --> ## Motivation and Context <!-- Why is this change needed? What problem does it solve? --> ## Breaking Changes <!-- Will users need to update their code or configurations? --> --- #### Type of the changes - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Tests improvement - [ ] Refactoring #### Checklist - [ ] The pull request has a description of the proposed change - [ ] I read the [Contributing Guidelines](https://github.com/JetBrains/koog/blob/main/CONTRIBUTING.md) before opening the pull request - [ ] The pull request uses **`develop`** as the base branch - [ ] Tests for the changes have been added - [ ] All new and existing tests passed ##### Additional steps for pull requests adding a new feature - [ ] An issue describing the proposed change exists - [ ] The pull request includes a link to the issue - [ ] The change was discussed and approved in the issue - [ ] Docs have been added / updated
1 parent fe8255a commit 0d7179c

File tree

2 files changed

+2
-2
lines changed
  • examples/code-agent
    • step-01-minimal-agent/src/main/kotlin
    • step-02-add-execution-tool/src/main/kotlin

2 files changed

+2
-2
lines changed

examples/code-agent/step-01-minimal-agent/src/main/kotlin/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ val agent = AIAgent(
2626
Your goal is to deliver production-ready code changes that integrate seamlessly with the existing codebase and solve given task.
2727
""".trimIndent(),
2828

29-
strategy = singleRunStrategy(ToolCalls.SEQUENTIAL),
29+
strategy = singleRunStrategy(),
3030
maxIterations = 100
3131
) {
3232
handleEvents {

examples/code-agent/step-02-add-execution-tool/src/main/kotlin/Main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ val agent = AIAgent(
3737
Verify your changes don't break existing functionality through regression testing, but prefer running targeted tests over full test suites.
3838
Note: the codebase may be fully configured or freshly cloned with no dependencies installed - handle any necessary setup steps.
3939
""".trimIndent(),
40-
strategy = singleRunStrategy(ToolCalls.SEQUENTIAL),
40+
strategy = singleRunStrategy(),
4141
maxIterations = 400
4242
) {
4343
handleEvents {

0 commit comments

Comments
 (0)