pub struct EvaluatorJudgment {
pub judgment_id: Option<String>,
pub subject_ref: EntityRef,
pub criterion_id: Option<String>,
pub verdict: EvaluationVerdict,
pub score: Option<String>,
pub support_refs: Vec<EntityRef>,
pub rejected_support_refs: Vec<EntityRef>,
pub confidence: EvaluationConfidence,
pub redacted_summary: String,
pub limitations: Vec<String>,
}Expand description
Evaluator judgment for one criterion or subject.
Fields§
§judgment_id: Option<String>Optional judgment id owned by the evaluator or test fixture.
subject_ref: EntityRefSubject this judgment is about.
criterion_id: Option<String>Optional criterion id this judgment answers.
verdict: EvaluationVerdictJudgment verdict.
score: Option<String>Optional score encoded as a string so the SDK stays rubric-neutral.
support_refs: Vec<EntityRef>Validated support refs.
rejected_support_refs: Vec<EntityRef>Refs cited by the evaluator but not present in the evidence bundle.
confidence: EvaluationConfidenceConfidence level for this judgment.
redacted_summary: StringBounded summary safe for logs and prompts.
limitations: Vec<String>Limitations or validation notes.
Implementations§
Source§impl EvaluatorJudgment
impl EvaluatorJudgment
Sourcepub fn new(
subject_ref: EntityRef,
verdict: EvaluationVerdict,
confidence: EvaluationConfidence,
redacted_summary: impl Into<String>,
) -> Self
pub fn new( subject_ref: EntityRef, verdict: EvaluationVerdict, confidence: EvaluationConfidence, redacted_summary: impl Into<String>, ) -> Self
Creates a judgment with no cited refs.
Trait Implementations§
Source§impl Clone for EvaluatorJudgment
impl Clone for EvaluatorJudgment
Source§fn clone(&self) -> EvaluatorJudgment
fn clone(&self) -> EvaluatorJudgment
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 moreSource§impl Debug for EvaluatorJudgment
impl Debug for EvaluatorJudgment
Source§impl<'de> Deserialize<'de> for EvaluatorJudgment
impl<'de> Deserialize<'de> for EvaluatorJudgment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EvaluatorJudgment
impl PartialEq for EvaluatorJudgment
Source§fn eq(&self, other: &EvaluatorJudgment) -> bool
fn eq(&self, other: &EvaluatorJudgment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EvaluatorJudgment
impl Serialize for EvaluatorJudgment
impl Eq for EvaluatorJudgment
impl StructuralPartialEq for EvaluatorJudgment
Auto Trait Implementations§
impl Freeze for EvaluatorJudgment
impl RefUnwindSafe for EvaluatorJudgment
impl Send for EvaluatorJudgment
impl Sync for EvaluatorJudgment
impl Unpin for EvaluatorJudgment
impl UnsafeUnpin for EvaluatorJudgment
impl UnwindSafe for EvaluatorJudgment
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