pub struct ModelSelector { /* private fields */ }Expand description
Intelligent model selector that considers preferences and context
Implementations§
Source§impl ModelSelector
impl ModelSelector
Sourcepub fn new(
strategy: ScoringStrategy,
min_confidence: f64,
max_alternatives: usize,
) -> ModelSelector
pub fn new( strategy: ScoringStrategy, min_confidence: f64, max_alternatives: usize, ) -> ModelSelector
Create a new model selector with custom configuration
Sourcepub fn select_model(
&self,
context: &ModelSelectionContext,
) -> Result<ModelSelectionResult, String>
pub fn select_model( &self, context: &ModelSelectionContext, ) -> Result<ModelSelectionResult, String>
Select the best model for the given context
Trait Implementations§
Source§impl Clone for ModelSelector
impl Clone for ModelSelector
Source§fn clone(&self) -> ModelSelector
fn clone(&self) -> ModelSelector
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 moreSource§impl Debug for ModelSelector
impl Debug for ModelSelector
Source§impl Default for ModelSelector
impl Default for ModelSelector
Source§fn default() -> ModelSelector
fn default() -> ModelSelector
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModelSelector
impl RefUnwindSafe for ModelSelector
impl Send for ModelSelector
impl Sync for ModelSelector
impl Unpin for ModelSelector
impl UnwindSafe for ModelSelector
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