TurnResult
Properties
Section titled “Properties”confidence?
Section titled “confidence?”optional confidence?: number;control?
Section titled “control?”optional control?: TurnControl;gateScope?
Section titled “gateScope?”optional gateScope?: "advisory";Native realtime post-hoc gate: provider audio already played; gate is advisory only.
incomplete?
Section titled “incomplete?”optional incomplete?: object;Set when the model loop exited on an abnormal FinishReason rather than stop.
| Name | Type |
|---|---|
|
|
|
|
|
|
interrupted?
Section titled “interrupted?”optional interrupted?: boolean;runId?
Section titled “runId?”optional runId?: string;The run this turn executed. Conversation turns use the session id; a newly minted flow run is a distinct id.
text: string;toolMessages?
Section titled “toolMessages?”optional toolMessages?: ModelMessage[];AI-SDK tool round-trip messages (assistant tool-call + tool-result) produced this turn, so the host loop can persist them to history in free conversation (G18).
toolResults
Section titled “toolResults”toolResults: ToolResultRecord[];truncateAt?
Section titled “truncateAt?”optional truncateAt?: number;usage?
Section titled “usage?”optional usage?: TurnUsageSnapshot;Real token usage from the AI SDK when the driver captured it.