Skip to main content

ToolProvider

Trait ToolProvider 

Source
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§

Source

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.

Implementors§