pub struct RoutingContext {
pub model: Option<String>,
pub user_region: Option<String>,
pub request_size: u32,
pub estimated_tokens: u32,
pub user_id: Option<String>,
pub metadata: HashMap<String, String>,
}
Expand description
Context information for routing decisions.
Contains all the information needed to make intelligent routing decisions, including request characteristics, user information, and metadata.
Fields§
§model: Option<String>
Model being requested (if specified)
user_region: Option<String>
User’s geographic region (if known)
request_size: u32
Request size in bytes
estimated_tokens: u32
Estimated number of tokens in the request
user_id: Option<String>
User identifier (if authenticated)
metadata: HashMap<String, String>
Additional metadata for custom routing logic
Trait Implementations§
Source§impl Clone for RoutingContext
impl Clone for RoutingContext
Source§fn clone(&self) -> RoutingContext
fn clone(&self) -> RoutingContext
Returns a duplicate of the value. Read more
1.0.0 · 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 RoutingContext
impl RefUnwindSafe for RoutingContext
impl Send for RoutingContext
impl Sync for RoutingContext
impl Unpin for RoutingContext
impl UnwindSafe for RoutingContext
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