pub struct LlmConfig {
pub provider: String,
pub model: String,
pub api_key_env: String,
pub base_url: Option<String>,
pub timeout_secs: u64,
pub max_tokens: u32,
pub temperature: f32,
}Expand description
LLM provider configuration for agent operations
Fields§
§provider: StringLLM provider name (openai, anthropic, gemini, openrouter, groq, zai, minimax, mistral)
model: StringModel name (e.g., “gpt-4o-mini”, “claude-sonnet-4-20250514”)
api_key_env: StringAPI key environment variable name (e.g., “OPENAI_API_KEY”)
base_url: Option<String>Base URL override (optional)
timeout_secs: u64Request timeout in seconds
max_tokens: u32Maximum tokens to generate
temperature: f32Temperature for generation (0.0 to 1.0)
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