pub struct SequentialStrategy;Expand description
Execute tool calls one at a time in order.
This is the default strategy — safe and predictable.
Trait Implementations§
Source§impl ExecutionStrategy for SequentialStrategy
impl ExecutionStrategy for SequentialStrategy
Source§fn execute_batch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
calls: Vec<PendingToolCall>,
tools: &'life1 [Arc<dyn ErasedTool>],
guards: &'life2 [Arc<dyn Guard>],
_state: &'life3 AgentState,
) -> Pin<Box<dyn Future<Output = Vec<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn execute_batch<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
calls: Vec<PendingToolCall>,
tools: &'life1 [Arc<dyn ErasedTool>],
guards: &'life2 [Arc<dyn Guard>],
_state: &'life3 AgentState,
) -> Pin<Box<dyn Future<Output = Vec<ToolResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Execute a batch of tool calls and return results.
Auto Trait Implementations§
impl Freeze for SequentialStrategy
impl RefUnwindSafe for SequentialStrategy
impl Send for SequentialStrategy
impl Sync for SequentialStrategy
impl Unpin for SequentialStrategy
impl UnsafeUnpin for SequentialStrategy
impl UnwindSafe for SequentialStrategy
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