pub struct RouteRequest {
pub explicit_provider: Option<ProviderKind>,
pub model_selector: Option<LogicalModelRef>,
pub saved_provider_model: Option<WireModelId>,
pub base_url_override: Option<String>,
pub limit_overrides: Vec<SourcedLimitOverride>,
}Expand description
A request to resolve into an executable route.
Note the absence of any prompt-text/freeform field: the resolver cannot see prompt content, so it cannot silently route on it.
Fields§
§explicit_provider: Option<ProviderKind>Explicit provider choice. The ONLY source of provider identity.
model_selector: Option<LogicalModelRef>The model the caller selected (may be auto or prefixed).
saved_provider_model: Option<WireModelId>A previously-saved provider wire model id, used as scope fallback.
base_url_override: Option<String>An explicit base URL override for the endpoint.
limit_overrides: Vec<SourcedLimitOverride>Sourced limit overrides, applied in order BEFORE the candidate is constructed and recorded on it as provenance. This is the ONLY channel for adjusting a route’s effective limits: the candidate itself is immutable once minted.
Trait Implementations§
Source§impl Clone for RouteRequest
impl Clone for RouteRequest
Source§fn clone(&self) -> RouteRequest
fn clone(&self) -> RouteRequest
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 RouteRequest
impl Debug for RouteRequest
Source§impl Default for RouteRequest
impl Default for RouteRequest
Source§fn default() -> RouteRequest
fn default() -> RouteRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RouteRequest
impl RefUnwindSafe for RouteRequest
impl Send for RouteRequest
impl Sync for RouteRequest
impl Unpin for RouteRequest
impl UnsafeUnpin for RouteRequest
impl UnwindSafe for RouteRequest
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