pub trait Dispatcher: Send + Sync {
// Required methods
fn dispatch(
&self,
calls: &[(&str, &str)],
) -> impl Future<Output = Vec<Result<String>>> + Send;
fn tools(&self) -> Vec<Tool>;
}Expand description
Generic tool dispatcher.
Passed as a method param to Agent::step(). Uses RPITIT for async
without boxing — callers monomorphize over concrete dispatcher types.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.