pub trait ToolProvider:
Send
+ Sync
+ 'static {
// Required method
fn declarations(&self) -> Vec<Tool>;
}Expand description
Declares tools for a Gemini session setup message. Implement this trait to provide tools from any source (runtime ToolDispatcher, etc.).
Required Methods§
Sourcefn declarations(&self) -> Vec<Tool>
fn declarations(&self) -> Vec<Tool>
Return tool declarations for the setup message.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ToolProvider for Vec<Tool>
Vec<Tool> is a trivial ToolProvider.
impl ToolProvider for Vec<Tool>
Vec<Tool> is a trivial ToolProvider.