Skip to content
providerkit
GitHub

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.

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.


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.


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: boolean;

Defined in: react/src/protocol.ts:79

False while the model is still thinking. Once true, a delta no longer adds to it.


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