pub struct AssertionEvalContext<'a> {
pub evidence: &'a TurnEvidence,
pub response: &'a str,
pub user_input: Option<&'a str>,
pub scenario_id: Option<&'a str>,
pub language: Option<&'a str>,
pub judge_resolver: Option<&'a JudgeResolver>,
}Expand description
Runtime inputs needed while evaluating one assertion tree.
Fields§
§evidence: &'a TurnEvidenceFull assertion-time evidence for this turn.
response: &'a strAssistant response text or redacted output value.
user_input: Option<&'a str>Optional user input for judge prompt context.
scenario_id: Option<&'a str>Optional scenario ID for judge prompt context.
language: Option<&'a str>Optional language label for filtering, metrics, and judge context.
judge_resolver: Option<&'a JudgeResolver>Optional resolver for semantic judge assertions.
Trait Implementations§
Source§impl<'a> Clone for AssertionEvalContext<'a>
impl<'a> Clone for AssertionEvalContext<'a>
Source§fn clone(&self) -> AssertionEvalContext<'a>
fn clone(&self) -> AssertionEvalContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AssertionEvalContext<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AssertionEvalContext<'a>
impl<'a> !UnwindSafe for AssertionEvalContext<'a>
impl<'a> Freeze for AssertionEvalContext<'a>
impl<'a> Send for AssertionEvalContext<'a>
impl<'a> Sync for AssertionEvalContext<'a>
impl<'a> Unpin for AssertionEvalContext<'a>
impl<'a> UnsafeUnpin for AssertionEvalContext<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.