pub struct AgentConfig {
pub system_prompt: Option<String>,
pub tools: Vec<ToolDefinition>,
pub max_tool_rounds: usize,
pub permission_checker: Option<Arc<dyn PermissionChecker>>,
pub confirmation_manager: Option<Arc<dyn ConfirmationProvider>>,
pub context_providers: Vec<Arc<dyn ContextProvider>>,
pub planning_enabled: bool,
pub goal_tracking: bool,
pub hook_engine: Option<Arc<dyn HookExecutor>>,
pub skill_registry: Option<Arc<SkillRegistry>>,
}Expand description
Agent configuration
Fields§
§system_prompt: Option<String>§tools: Vec<ToolDefinition>§max_tool_rounds: usize§permission_checker: Option<Arc<dyn PermissionChecker>>Optional permission checker for tool execution control
confirmation_manager: Option<Arc<dyn ConfirmationProvider>>Optional confirmation manager for HITL (Human-in-the-Loop)
context_providers: Vec<Arc<dyn ContextProvider>>Context providers for augmenting prompts with external context
planning_enabled: boolEnable planning phase before execution
goal_tracking: boolEnable goal tracking
hook_engine: Option<Arc<dyn HookExecutor>>Optional hook engine for firing lifecycle events (PreToolUse, PostToolUse, etc.)
skill_registry: Option<Arc<SkillRegistry>>Optional skill registry for tool permission enforcement
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