pub struct DefaultMiniLoopExecutor;Expand description
Default mini-loop executor — placeholder that returns empty decisions.
In production, the agent loop uses direct LLM calls for task evaluation. This adapter provides a no-op fallback when no custom executor is configured.
Trait Implementations§
Source§impl MiniLoopExecutor for DefaultMiniLoopExecutor
impl MiniLoopExecutor for DefaultMiniLoopExecutor
Source§fn decide<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_session: &'life1 Session,
prompt: &'life2 str,
_context: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<MiniLoopDecision, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn decide<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_session: &'life1 Session,
prompt: &'life2 str,
_context: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<MiniLoopDecision, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Execute a fast decision using a cheap model.
Source§fn evaluate_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session: &'life1 Session,
_tool_calls: &'life2 [ToolCall],
_round: usize,
) -> Pin<Box<dyn Future<Output = Result<MiniLoopDecision, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn evaluate_task<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_session: &'life1 Session,
_tool_calls: &'life2 [ToolCall],
_round: usize,
) -> Pin<Box<dyn Future<Output = Result<MiniLoopDecision, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Evaluate task progress using a fast model.
Auto Trait Implementations§
impl Freeze for DefaultMiniLoopExecutor
impl RefUnwindSafe for DefaultMiniLoopExecutor
impl Send for DefaultMiniLoopExecutor
impl Sync for DefaultMiniLoopExecutor
impl Unpin for DefaultMiniLoopExecutor
impl UnsafeUnpin for DefaultMiniLoopExecutor
impl UnwindSafe for DefaultMiniLoopExecutor
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