pub struct RoutingThresholds {
pub auto_approve_above: f64,
pub human_review_band: (f64, f64),
pub suppress_below: f64,
}Expand description
RAO routing thresholds. Applied by the orchestration engine to the model’s reported confidence; defined on the node contract, never in the prompt.
Fields§
§auto_approve_above: f64Confidence strictly above this value routes to the next step.
human_review_band: (f64, f64)Inclusive [low, high] band routed to a human approval gate.
suppress_below: f64Confidence strictly below this value suppresses the output and fails the node onto its fallback path.
Implementations§
Source§impl RoutingThresholds
impl RoutingThresholds
Sourcepub fn validate(&self) -> Result<(), ContractError>
pub fn validate(&self) -> Result<(), ContractError>
Enforce 0 <= suppress_below <= band.low <= band.high <= auto_approve_above <= 1.
Sourcepub fn route(&self, confidence: f64, escalate: bool) -> RouteDecision
pub fn route(&self, confidence: f64, escalate: bool) -> RouteDecision
Route a reported confidence. escalate can only force a human gate -
it can never raise an output past one (RAO checklist 5.4).
Trait Implementations§
Source§impl Clone for RoutingThresholds
impl Clone for RoutingThresholds
Source§fn clone(&self) -> RoutingThresholds
fn clone(&self) -> RoutingThresholds
Returns a duplicate of the value. Read more
1.0.0 · 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 RoutingThresholds
impl Debug for RoutingThresholds
Source§impl Default for RoutingThresholds
impl Default for RoutingThresholds
Source§impl<'de> Deserialize<'de> for RoutingThresholds
impl<'de> Deserialize<'de> for RoutingThresholds
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
Source§impl PartialEq for RoutingThresholds
impl PartialEq for RoutingThresholds
Source§impl Serialize for RoutingThresholds
impl Serialize for RoutingThresholds
impl Copy for RoutingThresholds
impl StructuralPartialEq for RoutingThresholds
Auto Trait Implementations§
impl Freeze for RoutingThresholds
impl RefUnwindSafe for RoutingThresholds
impl Send for RoutingThresholds
impl Sync for RoutingThresholds
impl Unpin for RoutingThresholds
impl UnsafeUnpin for RoutingThresholds
impl UnwindSafe for RoutingThresholds
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