API Reference
StopContext
Defined in: stop/conditions.types.ts:21
The per-turn snapshot passed to every StopCondition.
See
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
assistant | AssistantMessage | The assistant message produced this turn. | stop/conditions.types.ts:25 |
messages | Message[] | Full working history at this point. | stop/conditions.types.ts:29 |
step | number | 1-based count of model turns taken so far in this run. | stop/conditions.types.ts:23 |
toolResults | ToolMessage[] | Tool-result messages produced this turn (empty if no tools ran). | stop/conditions.types.ts:27 |