fix: reset tool call state between turns
This commit is contained in:
parent
38244a1bfa
commit
179477b4ed
|
|
@ -175,6 +175,7 @@ class AgenticStore {
|
|||
|
||||
// Run agentic loop
|
||||
for (let turn = 0; turn < maxTurns; turn++) {
|
||||
emittedToolCallStates.clear(); // Reset for new turn
|
||||
this._currentTurn = turn + 1;
|
||||
|
||||
if (signal?.aborted) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue