Skip to main content

Module tool

Module tool 

Source

Re-exports§

pub use auto_continue::AutoContinueTool;
pub use update_plan::UpdatePlanTool;
pub use policy::DenyAllToolPolicy;
pub use policy::ToolDecision;
pub use policy::ToolPolicy;

Modules§

auto_continue
policy
update_plan

Structs§

ActivationContext
Context passed to Tool::should_activate for Deferred tools.
ToolContext
ToolMetadata
Machine-readable metadata for a registered tool — origin, version, and runtime requirements in a stable shape consumers can inspect without parsing the LLM-facing definition JSON.
ToolRegistry

Enums§

Content
Structured content returned by a tool, aligned with the MCP content array shape (no envelope, no orchestration/failure/truncation semantics).
ToolExposure
Visibility level of a tool to the LLM model.

Traits§

Tool
TypedTool

Functions§

content_text
Join the textual portion of tool output into a single string for display and session history. Non-text variants (e.g. Image) are skipped.
render_tool_definition
Render a single tool’s definition into the OpenAI function-calling envelope. Tools only provide name/description/schema; the envelope is assembled here at the LLM boundary (Anthropic gets its own renderer, and tool authors stay protocol-agnostic).