Commit f16df7f
committed
fix(agent): increase tool iteration limit from 10 to 25 and add budget awareness
Increases the default maximum tool iterations from 10 to 25 to accommodate
complex multi-step tasks while maintaining safety bounds.
Changes:
- Update DEFAULT_MAX_TOOL_ITERATIONS from 10 to 25 in loop_.rs
- Update default_agent_max_tool_iterations() from 10 to 25 in schema.rs
- Add iteration budget awareness section to system prompt
- Agent now knows its tool-use budget and can plan efficiently
Fixes #261 parent c6f8b70 commit f16df7f
2 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
3019 | 3021 | | |
3020 | 3022 | | |
3021 | 3023 | | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
| 3028 | + | |
| 3029 | + | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
3022 | 3035 | | |
3023 | 3036 | | |
3024 | 3037 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
546 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
561 | | - | |
| 562 | + | |
562 | 563 | | |
563 | 564 | | |
564 | 565 | | |
| |||
0 commit comments