pub struct ProviderConfig { /* private fields */ }Expand description
Provider construction input.
Model selection is intentionally absent. Callers select an exact
crate::ModelId after constructing the provider.
let config = providers_kit::ProviderConfig::new(
providers_kit::config::ProviderKind::Ollama(
providers_kit::config::OllamaConfig::local(),
),
providers_kit::config::TransportConfig::default(),
);
let _ = config;Implementations§
Source§impl ProviderConfig
impl ProviderConfig
Sourcepub fn new(kind: ProviderKind, transport: TransportConfig) -> Self
pub fn new(kind: ProviderKind, transport: TransportConfig) -> Self
Combines one concrete provider config with shared transport policy.
let config = providers_kit::ProviderConfig::new(
providers_kit::config::ProviderKind::Ollama(
providers_kit::config::OllamaConfig::local(),
),
providers_kit::config::TransportConfig::default(),
);
let _ = config;Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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