- Reset loopWarned flag when the agent stops repeating, so a future loop gets a fresh warning cycle instead of immediate termination - Rename maxRepeatedToolCalls → maxRepetitions since the threshold applies to both tool call and text output repetition detection |
||
|---|---|---|
| .. | ||
| agent.ts | ||
| loop-detector.ts | ||
| pool.ts | ||
| runner.ts | ||
| structured-output.ts | ||