Skip to main content
The settled result of one run() turn.

Properties

SessionEvent[]
required
Type: SessionEventEvery typed event of the turn, in order.
T
required
The parsed structured output, when output was given. Reading it throws when the turn stopped without end_turn and so produced no output.
required
The raw ACP session/prompt result (usage, _meta, …).
required
Why the turn ended (end_turn, cancelled, refusal, …).
string
required
The agent’s accumulated message text for the turn.
ToolCall[]
required
Type: ToolCallFinal merged snapshots of the turn’s tool calls, in first-seen order.