pub struct LlmConfig {
pub provider: LlmProviderType,
pub model: String,
pub api_key_env: String,
pub base_url: Option<String>,
pub max_retries: u8,
pub timeout_secs: u64,
pub cache_enabled: bool,
}Expand description
LLM configuration.
Fields§
§provider: LlmProviderTypeWhich provider type to use.
model: StringModel name/ID.
api_key_env: StringEnvironment variable containing the API key.
base_url: Option<String>Custom API base URL (overrides provider default).
max_retries: u8Maximum retry attempts for failed requests.
timeout_secs: u64Request timeout in seconds.
cache_enabled: boolWhether to cache responses.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LlmConfig
impl<'de> Deserialize<'de> for LlmConfig
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 LlmConfig
impl RefUnwindSafe for LlmConfig
impl Send for LlmConfig
impl Sync for LlmConfig
impl Unpin for LlmConfig
impl UnsafeUnpin for LlmConfig
impl UnwindSafe for LlmConfig
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