pub enum JudgeCriterion {
LanguageQuality,
AnswerCompleteness,
Tone,
OperationalClaimIntegrity,
}Expand description
What a judge is allowed to grade.
Deliberately not #[non_exhaustive] and deliberately without a
free-form variant: the closed set is the safety property. See the module
documentation.
Variants§
LanguageQuality
Does the reply read like fluent, natural, correct prose in the user’s language?
AnswerCompleteness
Did the reply address what was actually asked, without padding and without leaving part of the question untouched?
Tone
Is the register right — direct, calm, neither servile nor brusque?
OperationalClaimIntegrity
Does the reply claim an operation this turn did not perform?
Graded against JudgeInput::committed, which comes from the ledger.
The judge establishes nothing: it reads a settled list and a sentence.
Implementations§
Trait Implementations§
Source§impl Clone for JudgeCriterion
impl Clone for JudgeCriterion
impl Copy for JudgeCriterion
Source§impl Debug for JudgeCriterion
impl Debug for JudgeCriterion
Source§impl<'de> Deserialize<'de> for JudgeCriterion
impl<'de> Deserialize<'de> for JudgeCriterion
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 Display for JudgeCriterion
impl Display for JudgeCriterion
impl Eq for JudgeCriterion
Source§impl Hash for JudgeCriterion
impl Hash for JudgeCriterion
Source§impl Ord for JudgeCriterion
impl Ord for JudgeCriterion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for JudgeCriterion
impl PartialEq for JudgeCriterion
Source§impl PartialOrd for JudgeCriterion
impl PartialOrd for JudgeCriterion
Source§impl Serialize for JudgeCriterion
impl Serialize for JudgeCriterion
impl StructuralPartialEq for JudgeCriterion
Auto Trait Implementations§
impl Freeze for JudgeCriterion
impl RefUnwindSafe for JudgeCriterion
impl Send for JudgeCriterion
impl Sync for JudgeCriterion
impl Unpin for JudgeCriterion
impl UnsafeUnpin for JudgeCriterion
impl UnwindSafe for JudgeCriterion
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.