We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595d1e7 commit f6738fdCopy full SHA for f6738fd
backend/src/run-agent-step.ts
@@ -610,9 +610,7 @@ export const loopAgentSteps = async (
610
currentAgentState = programmaticAgentState
611
totalSteps = stepNumber
612
613
- if (endTurn) {
614
- shouldEndTurn = true
615
- }
+ shouldEndTurn = endTurn
616
}
617
618
// Check if output is required but missing
backend/src/run-programmatic-step.ts
@@ -298,6 +298,7 @@ export async function runProgrammaticStep(
298
state,
299
autoInsertEndStepParam: true,
300
excludeToolFromMessageHistory,
301
+ fromHandleSteps: true,
302
})
303
304
// TODO: Remove messages from state and always use agentState.messageHistory.
0 commit comments