pub enum CascadeGateConfig {
Heuristic {
min_output_tokens: u32,
accept_tool_calls: bool,
escalate_on_max_tokens: bool,
},
}Expand description
Confidence gate configuration for model cascading.
Variants§
Heuristic
Heuristic gate: zero-cost checks on response length, refusal patterns, etc.
Trait Implementations§
Source§impl Clone for CascadeGateConfig
impl Clone for CascadeGateConfig
Source§fn clone(&self) -> CascadeGateConfig
fn clone(&self) -> CascadeGateConfig
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 CascadeGateConfig
impl Debug for CascadeGateConfig
Source§impl Default for CascadeGateConfig
impl Default for CascadeGateConfig
Source§impl<'de> Deserialize<'de> for CascadeGateConfig
impl<'de> Deserialize<'de> for CascadeGateConfig
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 CascadeGateConfig
impl RefUnwindSafe for CascadeGateConfig
impl Send for CascadeGateConfig
impl Sync for CascadeGateConfig
impl Unpin for CascadeGateConfig
impl UnsafeUnpin for CascadeGateConfig
impl UnwindSafe for CascadeGateConfig
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