Skip to main content

Module tool

Module tool 

Source
Expand description

Portable tool contracts and canonical execution values.

The context-free PortableTool boundary can be adapted by any runtime without importing a registry, mutable context, lifecycle state, or executor.

Re-exports§

pub use portable::PortableDynamicTool;
pub use portable::PortableTool;
pub use portable::PortableToolEmbedding;
pub use portable::portable_tool_definition;

Modules§

builtin
Built-in tools shipped with rig that agents can use out of the box.
portable
Context-free tool authoring contracts.

Structs§

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.

Enums§

ToolErrorKind
Normalized classification for a tool execution error.

Traits§

IntoToolOutput
Conversion into Rig’s canonical tool output.