pub struct PickFirstEvaluation;Expand description
Always selects the first branch (index 0), regardless of content.
Useful for testing, debugging, and as a safe deterministic default when you only care about the output of the first config.
Trait Implementations§
Source§impl EvaluationStrategy for PickFirstEvaluation
impl EvaluationStrategy for PickFirstEvaluation
Source§fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_prompts: &'life1 [AgentMessage],
_outcomes: &'life2 [ParallelLoopOutcome],
_tx: &'life3 UnboundedSender<AgentEvent>,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = (EvaluationDecision, Usage)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_prompts: &'life1 [AgentMessage],
_outcomes: &'life2 [ParallelLoopOutcome],
_tx: &'life3 UnboundedSender<AgentEvent>,
_cancel: CancellationToken,
) -> Pin<Box<dyn Future<Output = (EvaluationDecision, Usage)> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Evaluate all branch outcomes and select the best one.
Auto Trait Implementations§
impl Freeze for PickFirstEvaluation
impl RefUnwindSafe for PickFirstEvaluation
impl Send for PickFirstEvaluation
impl Sync for PickFirstEvaluation
impl Unpin for PickFirstEvaluation
impl UnsafeUnpin for PickFirstEvaluation
impl UnwindSafe for PickFirstEvaluation
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