ThinkingPart
Defined in: react/src/protocol.ts:75
The model thought before it answered. By default a host sends only that it thought and for how long, never what it thought: reasoning can quote the instructions, a tool’s output or private data.
Properties
Section titled “Properties”agentId?
Section titled “agentId?”optional agentId?: string;Defined in: react/src/protocol.ts:93
The id of the agent part for the specialist that thought. Absent for the main assistant.
attempt?
Section titled “attempt?”optional attempt?: number;Defined in: react/src/protocol.ts:91
Monotone attempt number, as on the text part of the same model call. Absent means the first.
durationMs?
Section titled “durationMs?”optional durationMs?: number;Defined in: react/src/protocol.ts:85
How long it thought, in milliseconds. Present once settled, and only when the host saw both ends. Measured on the host, so a device whose clock is off still shows the right length.
id: string;Defined in: react/src/protocol.ts:77
settled
Section titled “settled”settled: boolean;Defined in: react/src/protocol.ts:79
False while the model is still thinking. Once true, a delta no longer adds to it.
startedAt?
Section titled “startedAt?”optional startedAt?: number;Defined in: react/src/protocol.ts:82
When it started thinking, in epoch milliseconds on the host’s clock. Absent when the host did not record it.
optional text?: string;Defined in: react/src/protocol.ts:88
What it thought. Present only when the host chose to send it, and then it streams like a text part’s text.
type: "thinking";Defined in: react/src/protocol.ts:76