Expand description
Tool system: trait, registry, result types, and context.
Modules§
- bash
bashtool — executes shell commands.- edit
edittool — exact string replacement in files.- find
findtool — searches for files matching a pattern.- grep
greptool — searches file contents for a pattern.- load_
skill load_skilltool — loads a skill’s full content by name.- ls
lstool — lists directory contents.- read
readtool — reads file contents with line numbers.- write
writetool — creates or overwrites files.
Structs§
- Tool
Call Info - Information about a tool call, used for confirmation requests.
- Tool
Context - Runtime context passed to tools during execution.
- Tool
Registry - Registry that manages all available tools.
- Tool
Result - Result returned to the LLM after tool execution.
Traits§
- Tool
- A tool that can be called by the LLM and executed by the Agent.
Functions§
- resolve_
path - Resolve a file path relative to the working directory.