use crate::context::ContextPolicy;
#[derive(Debug, Clone)]
pub struct AgentConfig {
pub max_iterations: usize,
pub context_policy: ContextPolicy,
}
impl Default for AgentConfig {
fn default() -> Self {
Self {
max_iterations: 10_000,
context_policy: ContextPolicy::default(),
}
}
}
impl AgentConfig {
#[must_use]
pub fn new() -> Self {
Self::default()
}
#[must_use]
pub const fn with_max_iterations(mut self, limit: usize) -> Self {
self.max_iterations = limit;
self
}
#[must_use]
pub const fn with_context_policy(mut self, policy: ContextPolicy) -> Self {
self.context_policy = policy;
self
}
}