Commit 4b057b3
Fix agentic tool loop: force final answer, raise round cap
Small models could call tools repeatedly and never produce a final response (empty answer). Now the last tool round omits tools so the model must answer, and the round cap is raised 5→8. Verified: agent calls list_directory and finalizes with a correct answer.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent b356b15 commit 4b057b3
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | | - | |
| 1091 | + | |
1092 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
1093 | 1096 | | |
1094 | 1097 | | |
1095 | 1098 | | |
| |||
1152 | 1155 | | |
1153 | 1156 | | |
1154 | 1157 | | |
1155 | | - | |
| 1158 | + | |
1156 | 1159 | | |
1157 | 1160 | | |
1158 | 1161 | | |
| |||
0 commit comments