fix: reset tool call state between turns
This commit is contained in:
parent
b7288a4dd7
commit
a02acca38d
|
|
@ -289,6 +289,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