pub struct DecisionJudgeRouteConfig {
pub cutoff: Option<f64>,
pub instructions: Option<String>,
pub choices: Option<Vec<DecisionChoice>>,
pub apply_cutoff_to: Option<String>,
}Expand description
Routing by a decision model’s choice probability.
Fields§
§cutoff: Option<f64>Route capable when the apply_cutoff_to probability is strictly above
this cutoff. Uses the library default when omitted.
instructions: Option<String>Replaces the default decision instructions.
choices: Option<Vec<DecisionChoice>>Replaces the default capable and efficient choices.
apply_cutoff_to: Option<String>Choice ID whose probability is compared with the cutoff. Defaults to capable.
Trait Implementations§
Source§impl Clone for DecisionJudgeRouteConfig
impl Clone for DecisionJudgeRouteConfig
Source§fn clone(&self) -> DecisionJudgeRouteConfig
fn clone(&self) -> DecisionJudgeRouteConfig
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 DecisionJudgeRouteConfig
impl Debug for DecisionJudgeRouteConfig
Source§impl Default for DecisionJudgeRouteConfig
impl Default for DecisionJudgeRouteConfig
Source§fn default() -> DecisionJudgeRouteConfig
fn default() -> DecisionJudgeRouteConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DecisionJudgeRouteConfig
impl<'de> Deserialize<'de> for DecisionJudgeRouteConfig
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 DecisionJudgeRouteConfig
impl RefUnwindSafe for DecisionJudgeRouteConfig
impl Send for DecisionJudgeRouteConfig
impl Sync for DecisionJudgeRouteConfig
impl Unpin for DecisionJudgeRouteConfig
impl UnsafeUnpin for DecisionJudgeRouteConfig
impl UnwindSafe for DecisionJudgeRouteConfig
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