#[non_exhaustive]pub struct AgentConfig {
pub system_prompt: Option<String>,
pub max_tokens: Option<u32>,
pub temperature: Option<f32>,
pub max_iterations: u32,
pub token_budget: Option<usize>,
}Expand description
Configuration for an Agent instance.
This struct is #[non_exhaustive] — new fields may be added in future
releases (e.g., retry_policy, timeout_secs) without breaking changes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.system_prompt: Option<String>System prompt for the agent.
max_tokens: Option<u32>Maximum number of tokens for LLM responses.
temperature: Option<f32>Temperature for LLM sampling (0.0 - 2.0).
max_iterations: u32Maximum number of tool call iterations before stopping.
token_budget: Option<usize>Maximum token budget for the entire agent run.
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