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 count_lines::CountLines;pub use fs::ListDir;pub use fs::ReadFile;pub use fs::WriteFile;pub use shell::RunShell;
Modules§
- apply_
patch apply_patch: apply a structured multi-file patch atomically.- count_
lines - Count lines tool: returns the number of lines in a text file.
- fs
- Filesystem tools:
read_file,write_file,list_dir. - shell
run_shell: execute a command in the workspace.