pub struct RoutingOutcome {
pub selected_model_id: ModelId,
pub fallback_models: Vec<ModelId>,
pub request: Request,
pub response: Option<Response>,
}Expand description
The terminal result of routing.
Fields§
§selected_model_id: ModelIdThe model selected by the algorithm and tried first by the client.
fallback_models: Vec<ModelId>Additional models the client may try in order after an eligible failure.
request: RequestThe request after all routing-time rewrites, stamped with the selected model.
response: Option<Response>A response produced while routing, or None when the client must make the answer call.
Implementations§
Source§impl RoutingOutcome
impl RoutingOutcome
Auto Trait Implementations§
impl Freeze for RoutingOutcome
impl !RefUnwindSafe for RoutingOutcome
impl Send for RoutingOutcome
impl !Sync for RoutingOutcome
impl Unpin for RoutingOutcome
impl UnsafeUnpin for RoutingOutcome
impl !UnwindSafe for RoutingOutcome
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