pub struct ParallelToolExecutor { /* private fields */ }Expand description
Executes multiple tool calls concurrently using futures::future::join_all.
Implementations§
Source§impl ParallelToolExecutor
impl ParallelToolExecutor
Sourcepub fn new(registry: ToolRegistry) -> Self
pub fn new(registry: ToolRegistry) -> Self
Create a new parallel tool executor backed by the given registry.
Sourcepub async fn execute_all(
&self,
calls: Vec<(String, Value)>,
) -> Vec<Result<Value, SynapticError>>
pub async fn execute_all( &self, calls: Vec<(String, Value)>, ) -> Vec<Result<Value, SynapticError>>
Execute all tool calls concurrently and return results in the same order.
Each element in calls is a (tool_name, args) pair.
Results are returned in the same order as the input.
Auto Trait Implementations§
impl Freeze for ParallelToolExecutor
impl RefUnwindSafe for ParallelToolExecutor
impl Send for ParallelToolExecutor
impl Sync for ParallelToolExecutor
impl Unpin for ParallelToolExecutor
impl UnsafeUnpin for ParallelToolExecutor
impl UnwindSafe for ParallelToolExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more