pub trait TlModelRouter {
// Required methods
fn route_to_model(&self, input: &[f64]) -> Result<String, MultiModelError>;
fn routing_confidence(&self, input: &[f64], model_id: &str) -> f64;
}Expand description
Trait for model routing.
Required Methods§
Sourcefn route_to_model(&self, input: &[f64]) -> Result<String, MultiModelError>
fn route_to_model(&self, input: &[f64]) -> Result<String, MultiModelError>
Select appropriate model based on input.
Sourcefn routing_confidence(&self, input: &[f64], model_id: &str) -> f64
fn routing_confidence(&self, input: &[f64], model_id: &str) -> f64
Get routing confidence score.