Interface: StopConditionContext
Defined in: packages/core/src/utils/stop-conditions.ts:40
Context passed to stop conditions
Contains information about the current execution state that conditions can use to decide whether to stop.
Properties
lastToolResults
lastToolResults:
ToolCall[]
Defined in: packages/core/src/utils/stop-conditions.ts:46
Tool calls from the last iteration
messages?
optionalmessages?:ChatMessage[]
Defined in: packages/core/src/utils/stop-conditions.ts:48
Full message history (optional — not available in all execution contexts)
stepCount
stepCount:
number
Defined in: packages/core/src/utils/stop-conditions.ts:42
Number of iterations completed so far
totalToolCalls
totalToolCalls:
number
Defined in: packages/core/src/utils/stop-conditions.ts:44
Total number of tool calls made across all iterations