pub trait ToolRunner: Send + Sync {
// Required method
fn run(&self, call: ToolCall) -> BoxFuture<Result<Value, ActorError>>;
// Provided method
fn can_parallelize(&self, _calls: &[ToolCall]) -> bool { ... }
}Required Methods§
Provided Methods§
Sourcefn can_parallelize(&self, _calls: &[ToolCall]) -> bool
fn can_parallelize(&self, _calls: &[ToolCall]) -> bool
True when every call in the batch can run at the same time. The default keeps calls in order, one after another.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".