pub struct ModelSelectionResult {
pub selected_model: ModelCapability,
pub confidence_score: f64,
pub selection_reasoning: SelectionReasoning,
pub alternatives: Vec<AlternativeModel>,
pub estimated_cost_cents: f64,
pub estimated_response_time_ms: f64,
}Expand description
Result of model selection with reasoning
Fields§
§selected_model: ModelCapabilitySelected model
confidence_score: f64Selection confidence score (0.0-1.0)
selection_reasoning: SelectionReasoningReasoning for this selection
alternatives: Vec<AlternativeModel>Alternative models considered
estimated_cost_cents: f64Estimated cost for this request
estimated_response_time_ms: f64Estimated response time
Trait Implementations§
Source§impl Clone for ModelSelectionResult
impl Clone for ModelSelectionResult
Source§fn clone(&self) -> ModelSelectionResult
fn clone(&self) -> ModelSelectionResult
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 ModelSelectionResult
impl Debug for ModelSelectionResult
Source§impl<'de> Deserialize<'de> for ModelSelectionResult
impl<'de> Deserialize<'de> for ModelSelectionResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelSelectionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ModelSelectionResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ModelSelectionResult
impl Serialize for ModelSelectionResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ModelSelectionResult
impl RefUnwindSafe for ModelSelectionResult
impl Send for ModelSelectionResult
impl Sync for ModelSelectionResult
impl Unpin for ModelSelectionResult
impl UnwindSafe for ModelSelectionResult
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