pub struct ToolExecutor { /* private fields */ }Expand description
Executor for tool calls with parallel/conditional execution
Implementations§
Source§impl ToolExecutor
impl ToolExecutor
Sourcepub fn new(registry: ToolRegistry) -> Self
pub fn new(registry: ToolRegistry) -> Self
Create a new ToolExecutor with default settings
Sourcepub fn with_max_concurrent(self, max: usize) -> Self
pub fn with_max_concurrent(self, max: usize) -> Self
Set maximum concurrent tool executions
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set timeout for each tool execution
Sourcepub async fn execute_tools(&self, calls: Vec<ToolCall>) -> Vec<ToolResult>
pub async fn execute_tools(&self, calls: Vec<ToolCall>) -> Vec<ToolResult>
Execute multiple tool calls with conditional parallel/sequential logic
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolExecutor
impl !RefUnwindSafe for ToolExecutor
impl Send for ToolExecutor
impl Sync for ToolExecutor
impl Unpin for ToolExecutor
impl UnsafeUnpin for ToolExecutor
impl !UnwindSafe for ToolExecutor
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