Struct Model Routing Intent

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct ModelRoutingIntent {
    pub model_class: ModelClass,
    pub complexity_score: f64,
    pub criticality: f64,
    pub fallback_allowed: bool,
}

Model routing and selection intent.

Guides backend selection based on task complexity, criticality, and fallback preferences.

Fields

model_class: ModelClass

Target model class for this request.

complexity_score: f64

Estimated complexity of the task [0.0, 1.0].

criticality: f64

How critical correct output is [0.0, 1.0].

fallback_allowed: bool

Whether fallback to a lower model class is acceptable.

Trait Implementations

impl Clone for ModelRoutingIntent

impl Clone for ModelRoutingIntent

clone

fn clone(&self) -> ModelRoutingIntent

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for ModelRoutingIntent

impl Debug for ModelRoutingIntent

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for ModelRoutingIntent

impl<'de> Deserialize<'de> for ModelRoutingIntent

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for ModelRoutingIntent

impl PartialEq for ModelRoutingIntent

eq

fn eq(&self, other: &ModelRoutingIntent) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for ModelRoutingIntent

impl Serialize for ModelRoutingIntent

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for ModelRoutingIntent

impl StructuralPartialEq for ModelRoutingIntent