pub struct AgentConfig {
pub max_iterations: usize,
pub context_policy: ContextPolicy,
}Expand description
Configuration for agent behavior.
Fields§
§max_iterations: usizeMaximum number of agent loop iterations.
context_policy: ContextPolicyThresholds governing compaction, pausing and reassembly.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub const fn with_max_iterations(self, limit: usize) -> Self
pub const fn with_max_iterations(self, limit: usize) -> Self
Sets the maximum number of iterations.
Sourcepub const fn with_context_policy(self, policy: ContextPolicy) -> Self
pub const fn with_context_policy(self, policy: ContextPolicy) -> Self
Sets the context management policy.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Auto Trait Implementations§
impl Forget for AgentConfig
impl Freeze for AgentConfig
impl Move 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