pub struct RunConfig {
pub max_turns: usize,
pub thinking: ThinkingLevel,
pub turn_timeout_ms: Option<u64>,
pub max_tool_calls_per_turn: usize,
pub tool_concurrency: usize,
}Expand description
Configuration for a single agent run.
Fields§
§max_turns: usizeMaximum number of model turns before the loop aborts.
thinking: ThinkingLevelReasoning effort forwarded to the provider.
turn_timeout_ms: Option<u64>Hard deadline for a single provider invoke call, in milliseconds.
None disables the per-turn timeout (the outer cancel still applies).
max_tool_calls_per_turn: usizeMaximum number of tool calls the model may issue in a single turn before the loop rejects the response. Guards against runaway models.
tool_concurrency: usizeHow many tool calls may run in parallel within a turn. 1 ⇒ fully
sequential (deterministic). Results are always appended in the order
the model issued them, regardless of concurrency.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunConfig
impl RefUnwindSafe for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
impl UnwindSafe for RunConfig
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