pub struct ConfiguredModel {
pub provider: String,
pub model: String,
pub note: Option<String>,
}Expand description
One entry in the operator’s explicitly configured model pool.
“Explicitly configured” is load-bearing: this is not a catalogue of models that exist in the world, it is the set the operator has already set up and is willing to spend money on.
Fields§
§provider: StringExact configured provider id.
model: StringExact model id.
note: Option<String>Optional non-secret operator note (e.g. “cheap”, “long context”). Redacted on construction — a note is free text and may hold a path.
Implementations§
Trait Implementations§
Source§impl Clone for ConfiguredModel
impl Clone for ConfiguredModel
Source§fn clone(&self) -> ConfiguredModel
fn clone(&self) -> ConfiguredModel
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 ConfiguredModel
impl Debug for ConfiguredModel
Source§impl<'de> Deserialize<'de> for ConfiguredModel
impl<'de> Deserialize<'de> for ConfiguredModel
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 ConfiguredModel
Source§impl PartialEq for ConfiguredModel
impl PartialEq for ConfiguredModel
Source§impl Serialize for ConfiguredModel
impl Serialize for ConfiguredModel
impl StructuralPartialEq for ConfiguredModel
Auto Trait Implementations§
impl Freeze for ConfiguredModel
impl RefUnwindSafe for ConfiguredModel
impl Send for ConfiguredModel
impl Sync for ConfiguredModel
impl Unpin for ConfiguredModel
impl UnsafeUnpin for ConfiguredModel
impl UnwindSafe for ConfiguredModel
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