pub struct RoutedRequest {
pub id: u64,
pub kind: RequestKind,
pub inputs: Vec<Vec<u32>>,
pub max_tokens: u32,
pub temperature: f32,
pub stream: bool,
pub adapter: Option<String>,
pub model: String,
}Expand description
Internal canonical request shape. Every wire protocol parses into this; downstream schedulers / engines consume only this type.
Fields§
§id: u64§kind: RequestKind§inputs: Vec<Vec<u32>>Pre-tokenized input (one entry per text in a batched embed request). For chat completion: the system + user history flattened into a single token list.
max_tokens: u32§temperature: f32§stream: bool§adapter: Option<String>Optional LoRA adapter name; passed through to
crate::lora_scheduler::LoraRequest::adapter.
model: StringModel name from the wire request — kept for telemetry / validation; the actual model selection happens upstream.
Trait Implementations§
Source§impl Clone for RoutedRequest
impl Clone for RoutedRequest
Source§fn clone(&self) -> RoutedRequest
fn clone(&self) -> RoutedRequest
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 moreAuto Trait Implementations§
impl Freeze for RoutedRequest
impl RefUnwindSafe for RoutedRequest
impl Send for RoutedRequest
impl Sync for RoutedRequest
impl Unpin for RoutedRequest
impl UnsafeUnpin for RoutedRequest
impl UnwindSafe for RoutedRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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