pub struct ModelEntry {
pub model: String,
pub context: Option<i64>,
pub capabilities: Vec<String>,
}Expand description
What one model provides.
Fields§
§model: Stringvendor/model, the same form model exact uses.
Qualified because a bare model name would make two vendors’ catalogues collide, and because matching a requirement means first knowing which vendor is answering.
context: Option<i64>Context window in tokens, for context >= N.
Absent means unknown, and an unknown window does not satisfy a requirement. Guessing would turn a refusal an operator can fix into a provider error at the first long prompt.
capabilities: Vec<String>Capability names, as model requires { ... } spells them.
Implementations§
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModelEntry
impl Debug for ModelEntry
Source§impl<'de> Deserialize<'de> for ModelEntry
impl<'de> Deserialize<'de> for ModelEntry
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
impl Eq for ModelEntry
Source§impl PartialEq for ModelEntry
impl PartialEq for ModelEntry
Source§impl Serialize for ModelEntry
impl Serialize for ModelEntry
impl StructuralPartialEq for ModelEntry
Auto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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