pub struct AgentConfig {
pub base_url: String,
pub model: String,
pub system_prompt: Option<String>,
pub max_tokens: Option<u32>,
pub temperature: Option<f32>,
pub extra_body: Map<String, Value>,
pub max_retries: u32,
pub retry_delay_ms: u64,
}Expand description
Runtime-mutable configuration for an agent turn.
Stored inside LlmClient behind an RwLock.
Every field takes effect on the next API request — changes made while
a generation is in-flight apply from the following turn onwards.
Fields§
§base_url: String§model: String§system_prompt: Option<String>§max_tokens: Option<u32>§temperature: Option<f32>§extra_body: Map<String, Value>§max_retries: u32Maximum number of retries for transient errors. Default: 3.
retry_delay_ms: u64Initial delay between retries in milliseconds. Default: 1000ms.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
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 moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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