pub struct LlmConfig {Show 13 fields
pub enabled: bool,
pub backend: BackendKind,
pub endpoint: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub api_key_command: Option<Vec<String>>,
pub protocol: Option<String>,
pub reasoning_effort: Option<ReasoningEffort>,
pub temperature: Option<f32>,
pub max_tokens: Option<u32>,
pub timeout_secs: u64,
pub max_retries: u32,
pub max_concurrent: usize,
}Expand description
One provider in the failover chain.
Fields§
§enabled: bool§backend: BackendKind§endpoint: Option<String>§model: Option<String>§api_key: Option<String>§api_key_command: Option<Vec<String>>An argv - never a shell line - whose trimmed stdout is the credential.
Declared after api_key because the field order is the resolution order:
an explicit key wins, then this, then the per-machine store.
protocol: Option<String>§reasoning_effort: Option<ReasoningEffort>§temperature: Option<f32>§max_tokens: Option<u32>§timeout_secs: u64§max_retries: u32§max_concurrent: usizeTrait 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