Skip to main content

Module tools

Module tools 

Source
Expand description

Tool/function-calling types, normalised across providers.

Structs§

Tool
A tool the model may call, defined by a name, description, and JSON Schema.
ToolCall
A tool invocation requested by the model.
ToolResult
The result of executing a ToolCall, returned to the model.

Enums§

ToolChoice
How the model should choose among available tools.

Traits§

ToolSchema
Implemented by tool input structs to expose name, description, and schema.