pub struct AgentConfig {
pub model: String,
pub system_prompt: Option<String>,
pub tools: Vec<String>,
pub allowed_tools: Option<Vec<String>>,
pub max_tool_iterations: usize,
pub parallel_tools: bool,
pub compaction_enabled: Option<bool>,
pub extra: HashMap<String, Value>,
}Expand description
Agent configuration binding a model to tools and behavior.
Fields§
§model: StringReference to a model name defined in [models].
system_prompt: Option<String>System prompt for the agent (personality, instructions).
tools: Vec<String>List of tool names this agent can use.
allowed_tools: Option<Vec<String>>Optional whitelist of tool names this agent is allowed to use. If absent, all tools are permitted.
max_tool_iterations: usizeMaximum tool calling iterations before stopping (default: 10).
parallel_tools: boolWhether to execute tool calls in parallel when possible.
compaction_enabled: Option<bool>Enable per-session history compaction (ares_llm::Compactor).
Off by default; when on, long conversations are maintained as a bounded working set (critical facts + rolling memory + recent turns) instead of a naive last-5 history slice.
extra: HashMap<String, Value>Additional agent-specific configuration passed through.
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 (const: unstable) · 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
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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