pub trait BatchExecutor: Send + Sync {
// Required method
fn exec_batches<F, O, E>(
&self,
plan: Vec<BatchItem>,
f: F,
) -> Result<Vec<(String, O)>, E>
where F: FnMut(String, String, Value) -> Result<O, E> + Send;
}Expand description
Contract for executing planned batches.
Narrow by design: this concerns only execution of tool invocations with concurrency semantics established by the planner. It does not include operator concerns such as streaming, hooks, tracing, or budget control.
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.