pub struct VerdictCtx<'a> {
pub goal: &'a str,
pub criteria: &'a [Criterion],
pub attempt: u32,
pub result: &'a str,
}Expand description
I3.2 (A2/A3): host-supplied judgment for each attempt’s result. Mirrors the Node SDK
VerdictFn. Returning Some(Verdict) short-circuits the built-in LLM eval; returning None
defers to it. Sync-only in Rust today — when async hosts need it, lift to a boxed future.
Fields§
§goal: &'a str§criteria: &'a [Criterion]§attempt: u32§result: &'a strAuto Trait Implementations§
impl<'a> Freeze for VerdictCtx<'a>
impl<'a> RefUnwindSafe for VerdictCtx<'a>
impl<'a> Send for VerdictCtx<'a>
impl<'a> Sync for VerdictCtx<'a>
impl<'a> Unpin for VerdictCtx<'a>
impl<'a> UnsafeUnpin for VerdictCtx<'a>
impl<'a> UnwindSafe for VerdictCtx<'a>
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