Skip to main content

Module tools

Module tools 

Source
Expand description

Tool abstraction: any side effect the model can request.

Tools are orthogonal to the agent and to each other. To add a capability you implement Tool and register it; no other file changes.

Re-exports§

pub use apply_patch::ApplyPatch;
pub use estimate_tokens::EstimateTokens;
pub use fs::ListDir;
pub use fs::ReadFile;
pub use fs::WriteFile;
pub use load_skill::LoadSkill;
pub use memory::Forget;
pub use memory::Recall;
pub use memory::Remember;
pub use run_background::BackgroundJobManager;
pub use run_background::CheckBackground;
pub use run_background::RunBackground;
pub use run_skill_script::RunSkillScript;
pub use search::SearchFiles;
pub use shell::RunShell;
pub use sub_agent::SubAgent;
pub use transport::DirEntry;
pub use transport::ExecResult;
pub use transport::LocalTransport;
pub use transport::ReadResult;
pub use transport::ToolTransport;
pub use web_fetch::WebFetch;

Modules§

apply_patch
apply_patch: apply a structured multi-file patch atomically.
estimate_tokens
Token estimation tool: estimate token count for text or file contents.
fs
Filesystem tools: read_file, write_file, list_dir.
load_skill
Tool to load a skill’s content by name.
memory
Persistent memory tools: remember, recall, forget.
run_background
run_background and check_background: spawn long-running commands asynchronously and poll their status later.
run_skill_script
Tool to run a script from a skill’s scripts/ directory.
search
search_files: substring/regex search across workspace files.
shell
run_shell: execute a command in the workspace.
sub_agent
Sub-agent tool: spawn a fresh agent loop with a restricted tool subset.
transport
Transport abstraction: decouple tools from direct filesystem/shell access.
web_fetch
web_fetch: HTTP GET tool for fetching web content.

Structs§

ToolRegistry

Traits§

Tool