Skip to content

ToolCall

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

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:81


id: string;

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


name: string;

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


optional thoughtSignature?: string;

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

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