Skip to content
providerkit
GitHub

ToolCall

Defined in: core/src/types.ts:89

A tool the model asked to run. arguments is the RAW JSON string, not a parsed object: it arrives in fragments and can be truncated mid-stream. collectTurn joins the fragments; healing and validating them is the consumer’s job (see tools/define).

arguments: string;

Defined in: core/src/types.ts:92


id: string;

Defined in: core/src/types.ts:90


name: string;

Defined in: core/src/types.ts:91


optional thoughtSignature?: string;

Defined in: core/src/types.ts:95

Gemini’s opaque reasoning token. It must ride back on the next turn verbatim or the model loses its own chain of thought.