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.

Implementations on Foreign Types§

Source§

impl ToolProvider for Vec<Tool>

Vec<Tool> is a trivial ToolProvider.

Implementors§