pub struct ModelRoutingIntent {
pub model_class: ModelClass,
pub complexity_score: f64,
pub criticality: f64,
pub fallback_allowed: bool,
}Expand description
Model routing and selection intent.
Guides backend selection based on task complexity, criticality, and fallback preferences.
Fields§
§model_class: ModelClassTarget model class for this request.
complexity_score: f64Estimated complexity of the task [0.0, 1.0].
criticality: f64How critical correct output is [0.0, 1.0].
fallback_allowed: boolWhether fallback to a lower model class is acceptable.
Trait Implementations§
Source§impl Clone for ModelRoutingIntent
impl Clone for ModelRoutingIntent
Source§fn clone(&self) -> ModelRoutingIntent
fn clone(&self) -> ModelRoutingIntent
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 ModelRoutingIntent
impl Debug for ModelRoutingIntent
Source§impl<'de> Deserialize<'de> for ModelRoutingIntent
impl<'de> Deserialize<'de> for ModelRoutingIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelRoutingIntent
impl PartialEq for ModelRoutingIntent
Source§fn eq(&self, other: &ModelRoutingIntent) -> bool
fn eq(&self, other: &ModelRoutingIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelRoutingIntent
impl Serialize for ModelRoutingIntent
impl StructuralPartialEq for ModelRoutingIntent
Auto Trait Implementations§
impl Freeze for ModelRoutingIntent
impl RefUnwindSafe for ModelRoutingIntent
impl Send for ModelRoutingIntent
impl Sync for ModelRoutingIntent
impl Unpin for ModelRoutingIntent
impl UnsafeUnpin for ModelRoutingIntent
impl UnwindSafe for ModelRoutingIntent
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