pub struct AdaptiveStrategy { /* private fields */ }Expand description
Adaptive strategy that queries Tracker::recommended_concurrency() to
decide whether to run sequentially or in parallel.
Implementations§
Trait Implementations§
Source§impl ExecutionStrategy for AdaptiveStrategy
impl ExecutionStrategy for AdaptiveStrategy
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 AdaptiveStrategy
impl !RefUnwindSafe for AdaptiveStrategy
impl Send for AdaptiveStrategy
impl Sync for AdaptiveStrategy
impl Unpin for AdaptiveStrategy
impl UnsafeUnpin for AdaptiveStrategy
impl !UnwindSafe for AdaptiveStrategy
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