pub struct NonEmptyAnswer;Expand description
The cheapest check there is: the turn produced something.
This is the shape that prompted the whole idea — no tool calls, no text, just reasoning the model narrated to itself and then stopped. Left unchecked, that monologue gets handed back as the answer.
Trait Implementations§
Source§impl Acceptance for NonEmptyAnswer
impl Acceptance for NonEmptyAnswer
Source§fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
_world: &'life2 World,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
_world: &'life2 World,
) -> Pin<Box<dyn Future<Output = Verdict> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Consulted when the model has stopped asking for tools.
ctx carries the
task and the whole transcript; world is the filesystem and friends.Auto Trait Implementations§
impl Freeze for NonEmptyAnswer
impl RefUnwindSafe for NonEmptyAnswer
impl Send for NonEmptyAnswer
impl Sync for NonEmptyAnswer
impl Unpin for NonEmptyAnswer
impl UnsafeUnpin for NonEmptyAnswer
impl UnwindSafe for NonEmptyAnswer
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