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.
- rmcp
rmcpand non-target_family=wasm - MCP (Model Context Protocol) integration via the
rmcpcrate. - server
Structs§
- Dynamic
Tool - A runtime-defined tool backed by one closure.
- Missing
Tool Context - A required typed value was missing from a
ToolContext. - Portable
Dynamic Tool - A runtime-authored context-free tool implementation.
- Tool
Context - Context passed to every tool execution.
- Tool
Execution Error - One public envelope for every tool execution failure.
- Tool
Output - The canonical model-visible output produced by a tool.
- Tool
Result - The single structured execution view used by dispatch, hooks, and telemetry.
- ToolSet
- An ordered collection of tools.
Enums§
- Tool
Error Kind - Normalized classification for a tool execution error.
Traits§
- Into
Tool Output - Conversion into Rig’s canonical tool output.
- Tool
- A typed LLM tool.
- Tool
Embedding - 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.