Skip to main content

ToolContributor

Trait ToolContributor 

Source
pub trait ToolContributor: Send + Sync {
    // Required method
    fn tools(
        &self,
        session_store: &ExtensionData,
        thread_store: &ExtensionData,
        step_store: &ExtensionData,
    ) -> Vec<Arc<dyn ToolExecutor<ToolCall>>>;
}
Expand description

Extension contribution that exposes native tools owned by a feature.

Required Methods§

Source

fn tools( &self, session_store: &ExtensionData, thread_store: &ExtensionData, step_store: &ExtensionData, ) -> Vec<Arc<dyn ToolExecutor<ToolCall>>>

Returns native tools bound to the supplied sampling-step capabilities.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§