ModelTurnLoopState
Mutable per-call state shared with the outer speaking pipeline. A loop must update it as tool calls settle so host-control and sentence gates can observe the current turn without waiting for a second model request.
Properties
Section titled “Properties”control?
Section titled “control?”optional control?: TurnControl;incomplete?
Section titled “incomplete?”optional incomplete?: object;Set when the model call ended on an abnormal FinishReason rather than stop.
| Name | Type |
|---|---|
|
|
|
|
|
|
toolCallsMade
Section titled “toolCallsMade”toolCallsMade: ToolCallRecord[];toolMessages
Section titled “toolMessages”toolMessages: ModelMessage[];toolResults
Section titled “toolResults”toolResults: ToolResultRecord[];usage?
Section titled “usage?”optional usage?: TurnUsageSnapshot;