pub struct Selection {
pub providers: Vec<String>,
pub provider: String,
pub model: String,
pub session: Option<String>,
pub session_parent: Option<String>,
pub session_fork: bool,
pub lcp: Option<Arc<Request>>,
pub exclude: Vec<String>,
pub retry_round: usize,
pub scheduler: Option<Arc<SchedulerContext>>,
}Expand description
Route-model state is separate from the lease’s resolved execution model.
Fields§
§providers: Vec<String>Provider keys that may serve the model, in preference order.
provider: StringSingle-provider shorthand, used when providers is empty.
model: StringThe route model (requested model after auto resolution, suffix kept).
session: Option<String>The session this request binds to (Go extractSessionIDs primary).
session_parent: Option<String>The session’s parent, or the conversation alias of a prompt-cache-key session (Go fallback ID).
session_fork: boolThe session forked from session_parent (inherits its binding).
lcp: Option<Arc<Request>>A request without an explicit session, for the LCP matcher (Go pickLCP). Set
only with session affinity on; it then decides the binding instead of session.
exclude: Vec<String>Credential IDs already tried in this request.
retry_round: usize§scheduler: Option<Arc<SchedulerContext>>What a plugin scheduler learns about the request (Go SchedulerPickRequest’s
Stream and Options); without it the scheduler sees no headers or metadata.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Selection
impl Freeze for Selection
impl Move for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more