pub struct ModelRecommendation {
pub model: String,
pub provider: String,
pub confidence: u8,
pub estimated_cost: Option<f64>,
pub estimated_latency_ms: u64,
pub reason: String,
pub alternatives: Vec<AlternativeModel>,
}Expand description
Model recommendation response
Fields§
§model: StringRecommended model name
provider: StringProvider name
confidence: u8Confidence score (0-100)
estimated_cost: Option<f64>Estimated cost in USD cents
estimated_latency_ms: u64Estimated latency in milliseconds
reason: StringReason for recommendation
alternatives: Vec<AlternativeModel>Alternative models (if any)
Trait Implementations§
Source§impl Clone for ModelRecommendation
impl Clone for ModelRecommendation
Source§fn clone(&self) -> ModelRecommendation
fn clone(&self) -> ModelRecommendation
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 ModelRecommendation
impl Debug for ModelRecommendation
Source§impl<'de> Deserialize<'de> for ModelRecommendation
impl<'de> Deserialize<'de> for ModelRecommendation
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
Auto Trait Implementations§
impl Freeze for ModelRecommendation
impl RefUnwindSafe for ModelRecommendation
impl Send for ModelRecommendation
impl Sync for ModelRecommendation
impl Unpin for ModelRecommendation
impl UnwindSafe for ModelRecommendation
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