pub struct LlmProfilesConfig {
pub active: String,
pub variants: BTreeMap<String, LlmProfile>,
}Fields§
§active: StringActive variant id (model name) or "auto" to resolve from
SessionContext::model_id.
variants: BTreeMap<String, LlmProfile>Implementations§
Source§impl LlmProfilesConfig
impl LlmProfilesConfig
Sourcepub fn resolve<'a>(&'a self, session_model_id: Option<&str>) -> &'a LlmProfile
pub fn resolve<'a>(&'a self, session_model_id: Option<&str>) -> &'a LlmProfile
Resolve the active LLM variant given an optional session model id.
"auto" + Some(model_id) → exact match falls back to "default".
Trait Implementations§
Source§impl Clone for LlmProfilesConfig
impl Clone for LlmProfilesConfig
Source§fn clone(&self) -> LlmProfilesConfig
fn clone(&self) -> LlmProfilesConfig
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 LlmProfilesConfig
impl Debug for LlmProfilesConfig
Source§impl Default for LlmProfilesConfig
impl Default for LlmProfilesConfig
Source§impl<'de> Deserialize<'de> for LlmProfilesConfig
impl<'de> Deserialize<'de> for LlmProfilesConfig
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 LlmProfilesConfig
impl RefUnwindSafe for LlmProfilesConfig
impl Send for LlmProfilesConfig
impl Sync for LlmProfilesConfig
impl Unpin for LlmProfilesConfig
impl UnsafeUnpin for LlmProfilesConfig
impl UnwindSafe for LlmProfilesConfig
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