Commit 47cf9d4
fix: accumulate tool results across iterations in Ollama sequential execution
- Replace hardcoded iteration threshold (3) with class constant OLLAMA_SUMMARY_ITERATION_THRESHOLD
- Add proper constant definition for better maintainability and readability
- Applied consistently to both sync and async methods
- Addresses reviewer feedback about magic numbers
- Ensures proper tool result accumulation across iterations
Co-authored-by: Mervin Praison <MervinPraison@users.noreply.github.com>1 parent 26ad805 commit 47cf9d4
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
1112 | 1115 | | |
1113 | 1116 | | |
1114 | 1117 | | |
1115 | | - | |
| 1118 | + | |
1116 | 1119 | | |
1117 | 1120 | | |
1118 | 1121 | | |
| |||
1865 | 1868 | | |
1866 | 1869 | | |
1867 | 1870 | | |
1868 | | - | |
| 1871 | + | |
1869 | 1872 | | |
1870 | 1873 | | |
1871 | 1874 | | |
| |||
0 commit comments