pub struct LlmConfig {Show 14 fields
pub openai_api_key: Option<String>,
pub anthropic_api_key: Option<String>,
pub groq_api_key: Option<String>,
pub openrouter_api_key: Option<String>,
pub huggingface_api_key: Option<String>,
pub zai_api_key: Option<String>,
pub custom_endpoint: Option<String>,
pub preferred_provider: LlmProvider,
pub fallback_providers: Vec<LlmProvider>,
pub timeout_seconds: u64,
pub max_tokens: u32,
pub temperature: f32,
pub model_name: Option<String>,
pub streaming: bool,
}Expand description
Configuration for LLM integration supporting multiple providers
Fields§
§openai_api_key: Option<String>§anthropic_api_key: Option<String>§groq_api_key: Option<String>§openrouter_api_key: Option<String>§huggingface_api_key: Option<String>§zai_api_key: Option<String>§custom_endpoint: Option<String>§preferred_provider: LlmProvider§fallback_providers: Vec<LlmProvider>§timeout_seconds: u64§max_tokens: u32§temperature: f32§model_name: Option<String>§streaming: boolTrait 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more