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.

Modules§

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

Structs§

PortableDynamicTool
A runtime-authored context-free tool implementation.
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.
PortableTool
A context-free typed tool that can be executed by any Rig runtime.
PortableToolEmbedding
A portable tool that can be embedded and reconstructed for discovery.

Functions§

portable_tool_definition
Generate provider-facing metadata for a portable typed tool.