Skip to main content

Module tools

Module tools 

Source
Expand description

Extensible Tool System

Provides a trait-based abstraction for tools.

§Architecture

ToolRegistry
  └── builtin tools (bash, read, write, edit, grep, glob, ls, patch, web_fetch, web_search)

Re-exports§

pub use task::parallel_task_params_schema;
pub use task::task_params_schema;
pub use task::ParallelTaskParams;
pub use task::ParallelTaskTool;
pub use task::TaskExecutor;
pub use task::TaskParams;
pub use task::TaskResult;

Modules§

task
Task Tool for Spawning Subagents

Structs§

ToolContext
Tool execution context
ToolExecutor
Tool executor with workspace sandboxing
ToolOutput
Tool execution output
ToolRegistry
Tool registry for managing all available tools
ToolResult
Tool execution result (legacy format for backward compatibility)

Enums§

ToolStreamEvent
Events emitted by tools during execution

Constants§

MAX_LINE_LENGTH
Maximum line length before truncation
MAX_OUTPUT_SIZE
Maximum output size in bytes before truncation
MAX_READ_LINES
Maximum lines to read from a file

Traits§

Tool
Tool trait - the core abstraction for all tools

Type Aliases§

ToolEventSender
Sender for streaming tool output deltas during execution.