Skip to main content

decide

Function decide 

Source
pub async fn decide(
    algorithm: Arc<dyn Algorithm>,
    clients: ClientRouter,
    request: Request,
    models: Arc<RuntimeModels>,
) -> Result<RoutingOutcome>
Expand description

Run an algorithm to a routing decision without serving its terminal completion.

Routing-time calls are served normally. The returned request is prepared only for the selected target; use run to execute selected and fallback candidates.