Skip to main content

route

Function route 

Source
pub fn route(body: &Value, rules: &RoutingRules) -> Option<RoutingDecision>
Expand description

Applies intent-based tier routing to a request body.

Returns Some(decision) when routing is active and classification succeeded. The caller must apply the model swap from the decision. Returns None when routing is inactive or the request is exempt.