pub struct LlmConfig {
pub provider: String,
pub model: String,
pub api_key: Option<String>,
pub base_url: Option<String>,
pub max_input_tokens: Option<usize>,
}Expand description
LLM provider configuration.
§Examples
use argus_core::LlmConfig;
let config = LlmConfig::default();
assert_eq!(config.model, "gpt-4o");Fields§
§provider: StringProvider name (e.g. "openai", "anthropic", "ollama").
model: StringModel identifier.
api_key: Option<String>API key for the provider.
base_url: Option<String>Custom base URL for API requests.
max_input_tokens: Option<usize>Maximum input tokens to send per request.
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