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.
A missing or very short description logs a warning at registration time,
but never rejects the registration. See ToolInfo::description for
description best practices.
ยงArguments
tool- The tool implementation to register