Skip to main content

Module tools

Module tools 

Source
Expand description

Pre-built tools that expose VFS operations to LLMs.

Call vfs_tools with an Arc<dyn Vfs> and an OutputFormat to get a Vec<Box<dyn Tool>> ready to pass to create_react_agent or Agent::tool(). Only tools for capabilities the provider actually supports are included.

let vfs = Arc::new(LocalProvider::new("/workspace")?);
let tools = vfs_tools(Arc::clone(&vfs), OutputFormat::Toon);
let graph = create_react_agent(model, tools)?;

Functions§

clone_repo_stub
Stub tool function for clone_repo.
vfs_tools
Build all VFS-backed tools for the given provider and output format.