Skip to main content

Module tool

Module tool 

Source
Expand description

Agent tools + registry. Port of the reusable shape of agent_core/tools/.

A tool exposes a JSON-Schema interface to the model and an async implementation. The registry resolves the name the model emits in a tool_call to an implementation, exposes the LLM-facing specs, and runs the call. Domain tools live in a product crate and register here.

Modules§

support

Structs§

CancellationToken
ToolExecutionContext
ToolMeta
ToolRegistry
Registry of tools available to an agent.

Enums§

ToolConcurrency
ToolSurface

Traits§

Tool
A callable tool. parameters is a JSON-Schema object describing the args.

Functions§

model_tool_name
validate_json_schema
validate_json_schema_definition
validate_json_schema_value