pub struct ScorerDescriptor {
pub id: String,
pub version: String,
pub kind: ScorerKind,
pub output: ScorerOutput,
pub rules: AdapterRules,
pub reads_gold: bool,
pub judge: Option<JudgeRef>,
}Expand description
A scorer’s descriptor (3.6.2).
Fields§
§id: String§version: String§kind: ScorerKind§output: ScorerOutput§rules: AdapterRulesThe digest of a canonical document that fully determines the
scoring, or opaque.
reads_gold: boolWhether the scorer is handed the case’s gold (3.7.4).
judge: Option<JudgeRef>A model scorer’s judge (3.8.1); absent for a deterministic one.
Trait Implementations§
Source§impl Clone for ScorerDescriptor
impl Clone for ScorerDescriptor
Source§impl Debug for ScorerDescriptor
impl Debug for ScorerDescriptor
Source§impl<'de> Deserialize<'de> for ScorerDescriptor
impl<'de> Deserialize<'de> for ScorerDescriptor
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
impl Eq for ScorerDescriptor
Source§impl PartialEq for ScorerDescriptor
impl PartialEq for ScorerDescriptor
Source§impl Serialize for ScorerDescriptor
impl Serialize for ScorerDescriptor
impl StructuralPartialEq for ScorerDescriptor
Auto Trait Implementations§
impl Freeze for ScorerDescriptor
impl RefUnwindSafe for ScorerDescriptor
impl Send for ScorerDescriptor
impl Sync for ScorerDescriptor
impl Unpin for ScorerDescriptor
impl UnsafeUnpin for ScorerDescriptor
impl UnwindSafe for ScorerDescriptor
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