Skip to main content

Module tools

Module tools 

Source
Expand description

Tool-calling wire types: a ToolSpec a model may call and a ToolCall it emits. The ChatMessage-facing parsing layer (request parsing, transcript inlining) lands with the chat-wire unit; this is the core the runtime adapters and the tool-call chunk need.

Structsยง

ToolCall
A tool invocation a model emitted: a call id, a tool name, and a JSON arguments object.
ToolSpec
A tool a model may be offered: a name, a description, and a JSON-Schema parameter object.