pub struct Executor { /* private fields */ }Expand description
High-performance executor with advanced features
Implementations§
Source§impl Executor
impl Executor
pub fn new() -> Self
pub fn builder() -> ExecutorBuilder
pub fn metrics(&self) -> &ExecutorMetrics
pub async fn execute<T>(&self, tool: &T) -> ToolResult<T::Output>where
T: ToolExecutor,
pub async fn execute_with_context<T>(
&self,
tool: &T,
ctx: &ExecutionContext,
) -> ToolResult<T::Output>where
T: ToolExecutor,
Sourcepub async fn execute_batch<T>(
&self,
tools: Vec<T>,
) -> Vec<ToolResult<T::Output>> ⓘwhere
T: ToolExecutor + Clone,
pub async fn execute_batch<T>(
&self,
tools: Vec<T>,
) -> Vec<ToolResult<T::Output>> ⓘwhere
T: ToolExecutor + Clone,
Execute multiple tools in parallel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl !RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl !UnwindSafe for Executor
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