pub struct JudgeDef {
pub model: String,
pub threshold: f64,
pub rubric: Option<String>,
}Expand description
Configuration for a native LLM-judge gate (SPEC §8.3): a separate model grades the candidate against a rubric. The runner enforces maker ≠ checker (a model never grades its own output) and treats the candidate as data, not instructions.
Fields§
§model: StringThe judge model, as provider/model (must differ from the candidate’s model at runtime).
threshold: f64Pass iff the judge’s score ≥ this threshold, in [0, 1].
rubric: Option<String>What “good” means for this route — handed to the judge as the grading rubric.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JudgeDef
impl<'de> Deserialize<'de> for JudgeDef
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
Auto Trait Implementations§
impl Freeze for JudgeDef
impl RefUnwindSafe for JudgeDef
impl Send for JudgeDef
impl Sync for JudgeDef
impl Unpin for JudgeDef
impl UnsafeUnpin for JudgeDef
impl UnwindSafe for JudgeDef
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