pub struct AgentLoopConfig {
pub max_turns: u32,
pub max_tokens: Option<u64>,
pub temperature: Option<f64>,
pub retry: Option<RetryConfig>,
pub thinking: Option<ThinkingConfig>,
}Expand description
Configuration for the agent loop.
Fields§
§max_turns: u32Maximum number of turns before stopping.
max_tokens: Option<u64>Maximum output tokens per request.
temperature: Option<f64>Sampling temperature.
retry: Option<RetryConfig>Retry configuration for retryable provider errors.
thinking: Option<ThinkingConfig>Thinking/reasoning configuration for extended thinking models.
Trait Implementations§
Source§impl Clone for AgentLoopConfig
impl Clone for AgentLoopConfig
Source§fn clone(&self) -> AgentLoopConfig
fn clone(&self) -> AgentLoopConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentLoopConfig
impl Debug for AgentLoopConfig
Auto Trait Implementations§
impl Freeze for AgentLoopConfig
impl RefUnwindSafe for AgentLoopConfig
impl Send for AgentLoopConfig
impl Sync for AgentLoopConfig
impl Unpin for AgentLoopConfig
impl UnsafeUnpin for AgentLoopConfig
impl UnwindSafe for AgentLoopConfig
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