pub struct AgentConfig {
pub require_done_tool: bool,
pub max_iterations: u32,
pub system_prompt: Option<String>,
pub tool_choice: AgentToolChoice,
pub llm_max_retries: u32,
pub llm_retry_base_delay_ms: u64,
pub llm_retry_max_delay_ms: u64,
pub hidden_user_message_prompt: Option<String>,
}Expand description
Runtime configuration for an Agent.
Fields§
§require_done_tool: boolRequire explicit completion via ToolOutcome::Done.
max_iterations: u32Maximum model-tool iterations per user query.
system_prompt: Option<String>Optional system prompt injected at the start of empty history.
tool_choice: AgentToolChoiceTool-choice policy passed to the model adapter.
llm_max_retries: u32Maximum number of retries for request-level provider failures.
llm_retry_base_delay_ms: u64Initial retry delay in milliseconds.
llm_retry_max_delay_ms: u64Maximum retry delay in milliseconds.
Optional hidden follow-up user message injected once before finishing.
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