pub struct TaskCompletion { /* private fields */ }Expand description
Evaluates whether the agent successfully completed its assigned task.
Implementations§
Source§impl TaskCompletion
impl TaskCompletion
Sourcepub fn new(provider: Arc<dyn JudgeProvider>) -> Self
pub fn new(provider: Arc<dyn JudgeProvider>) -> Self
Create a new task completion evaluator with the given judge provider.
Trait Implementations§
Source§impl NousEvaluator for TaskCompletion
impl NousEvaluator for TaskCompletion
Source§fn timing(&self) -> EvalTiming
fn timing(&self) -> EvalTiming
Whether this runs inline or async.
Source§fn evaluate(&self, ctx: &EvalContext) -> NousResult<Vec<EvalScore>>
fn evaluate(&self, ctx: &EvalContext) -> NousResult<Vec<EvalScore>>
Evaluate the given context and produce scores. Read more
Auto Trait Implementations§
impl Freeze for TaskCompletion
impl !RefUnwindSafe for TaskCompletion
impl Send for TaskCompletion
impl Sync for TaskCompletion
impl Unpin for TaskCompletion
impl UnsafeUnpin for TaskCompletion
impl !UnwindSafe for TaskCompletion
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