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§
Sourcefn tools(
&self,
session_store: &ExtensionData,
thread_store: &ExtensionData,
step_store: &ExtensionData,
) -> Vec<Arc<dyn ToolExecutor<ToolCall>>>
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".