Skip to main content

Module tool

Module tool 

Source
Available on crate feature agent only.
Expand description

Contextual tools for the classic agent runtime.

Modules§

builtin
Built-in portable tools exposed through the classic runtime namespace.
rmcprmcp and non-target_family=wasm
MCP (Model Context Protocol) integration via the rmcp crate.
server

Structs§

DynamicTool
A runtime-defined tool backed by one closure.
MissingToolContext
A required typed value was missing from a ToolContext.
PortableDynamicTool
A runtime-authored context-free tool implementation.
ToolContext
Context passed to every tool execution.
ToolExecutionError
One public envelope for every tool execution failure.
ToolOutput
The canonical model-visible output produced by a tool.
ToolResult
The single structured execution view used by dispatch, hooks, and telemetry.
ToolSet
An ordered collection of tools.

Enums§

ToolErrorKind
Normalized classification for a tool execution error.

Traits§

IntoToolOutput
Conversion into Rig’s canonical tool output.
Tool
A typed LLM tool.
ToolEmbedding
A tool that can be stored in a vector store and reconstructed for RAG.

Functions§

tool_definition
Generate the provider-facing definition for a typed tool.