pub struct DecisionJudgeConfig {
pub policy: DecisionPolicy,
pub instructions: Option<Value>,
pub candidates: BTreeMap<String, ModelId>,
pub evidence: Value,
}Expand description
Instructions, evidence, and policy for a decision judge.
Candidate labels keep model names out of the generated context. Evidence must use the same labels, with unknown outcomes left unknown.
Fields§
§policy: DecisionPolicyOrdered rules and the candidate selected when no rule matches.
instructions: Option<Value>Replaces the default candidate-selection instructions.
candidates: BTreeMap<String, ModelId>Maps anonymous labels used in evidence (e.g. "a") to runtime model IDs.
Every target needs a unique label. All labels become Choice options.
evidence: ValueJSON passed unchanged to the judge, such as candidate descriptions, reference cases, outcome/cost summaries, and selection notes. The judge interprets it using the instructions; the router neither reads its fields nor derives statistics.
Trait Implementations§
Source§impl Clone for DecisionJudgeConfig
impl Clone for DecisionJudgeConfig
Source§fn clone(&self) -> DecisionJudgeConfig
fn clone(&self) -> DecisionJudgeConfig
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 moreAuto Trait Implementations§
impl Freeze for DecisionJudgeConfig
impl RefUnwindSafe for DecisionJudgeConfig
impl Send for DecisionJudgeConfig
impl Sync for DecisionJudgeConfig
impl Unpin for DecisionJudgeConfig
impl UnsafeUnpin for DecisionJudgeConfig
impl UnwindSafe for DecisionJudgeConfig
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