pub struct LLMBackendConfig {
pub provider: LLMProvider,
pub default_model: Option<String>,
pub timeout_seconds: u64,
pub max_retries: u32,
}
Expand description
Comprehensive backend configuration
Fields§
§provider: LLMProvider
The LLM provider to use
default_model: Option<String>
Default model name (can be overridden per request)
timeout_seconds: u64
Request timeout in seconds
max_retries: u32
Maximum retry attempts for transient failures
Implementations§
Source§impl LLMBackendConfig
impl LLMBackendConfig
Sourcepub fn validate(&self) -> Result<(), LLMBackendError>
pub fn validate(&self) -> Result<(), LLMBackendError>
Validate configuration parameters
Trait Implementations§
Source§impl Clone for LLMBackendConfig
impl Clone for LLMBackendConfig
Source§fn clone(&self) -> LLMBackendConfig
fn clone(&self) -> LLMBackendConfig
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 moreAuto Trait Implementations§
impl Freeze for LLMBackendConfig
impl RefUnwindSafe for LLMBackendConfig
impl Send for LLMBackendConfig
impl Sync for LLMBackendConfig
impl Unpin for LLMBackendConfig
impl UnwindSafe for LLMBackendConfig
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