Skip to main content

default_tool_catalog

Function default_tool_catalog 

Source
pub fn default_tool_catalog(tools: &[Arc<dyn Tool>]) -> String
Available on crate features agents and codeact only.
Expand description

A generic, language-neutral tool listing.

Rendering branches on the kind of tool:

  • Built-in tools (Tool::is_builtin) are executed server-side by the model provider and cannot be invoked from scripted code, so they are omitted entirely.
  • Long-running tools (Tool::is_long_running) are annotated, since their result arrives out-of-band.

Each remaining tool is listed as one line with its parameter names and description. Runtimes may build on this for their own CodeRuntime::render_tools.