Skip to main content

register_tool

Function register_tool 

Source
pub fn register_tool<T: Tool + Send + Sync + 'static>(tool: T)
Expand description

Registers a tool with the global registry.

The tool will be available for lookup and invocation by its name. If a tool with the same name already exists, it will be replaced.

ยงArguments

  • tool - The tool implementation to register