pub struct ProviderConfig {
pub enabled: bool,
pub model: String,
pub temperature: f32,
pub max_tokens: u32,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub endpoint: Option<String>,
pub deployment_name: Option<String>,
pub api_version: Option<String>,
pub project_id: Option<String>,
}Expand description
Configuration for a specific AI provider
Fields§
§enabled: boolWhether this provider is enabled
model: StringModel identifier (e.g., “gpt-4”, “claude-3-5-sonnet-20250929”)
temperature: f32Temperature for generation (0.0-1.0)
max_tokens: u32Maximum tokens to generate
api_key: Option<String>API key for authentication (can also be set via environment variable)
base_url: Option<String>Base URL for API endpoint (for custom or proxy endpoints)
endpoint: Option<String>Specific endpoint path (for Azure or custom deployments)
deployment_name: Option<String>Deployment name (Azure OpenAI specific)
api_version: Option<String>API version (Azure OpenAI specific)
project_id: Option<String>Project ID (Google Cloud specific)
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
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 ProviderConfig
impl Debug for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
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 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