pub struct LLMProviderConfig {
pub providers: HashMap<String, ProviderConfig>,
}Expand description
Aggregated provider configuration for LLM operations
This struct holds all configured providers, keyed by provider name.
Fields§
§providers: HashMap<String, ProviderConfig>All provider configurations (key = provider name)
Implementations§
Source§impl LLMProviderConfig
impl LLMProviderConfig
Sourcepub fn add_provider(&mut self, name: impl Into<String>, config: ProviderConfig)
pub fn add_provider(&mut self, name: impl Into<String>, config: ProviderConfig)
Add a provider configuration
Sourcepub fn get_provider(&self, name: &str) -> Option<&ProviderConfig>
pub fn get_provider(&self, name: &str) -> Option<&ProviderConfig>
Get a provider configuration by name
Trait Implementations§
Source§impl Clone for LLMProviderConfig
impl Clone for LLMProviderConfig
Source§fn clone(&self) -> LLMProviderConfig
fn clone(&self) -> LLMProviderConfig
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 LLMProviderConfig
impl Debug for LLMProviderConfig
Source§impl Default for LLMProviderConfig
impl Default for LLMProviderConfig
Source§fn default() -> LLMProviderConfig
fn default() -> LLMProviderConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LLMProviderConfig
impl RefUnwindSafe for LLMProviderConfig
impl Send for LLMProviderConfig
impl Sync for LLMProviderConfig
impl Unpin for LLMProviderConfig
impl UnwindSafe for LLMProviderConfig
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