pub struct AgentConfig {Show 13 fields
pub agent: AgentSection,
pub provider: ProviderSection,
pub session: SessionSection,
pub tools: ToolsSection,
pub skills: SkillsSection,
pub sub_agents: SubAgentsSection,
pub callbacks: CallbacksSection,
pub hooks: HooksSection,
pub compaction: CompactionSection,
pub execution: ExecutionSection,
pub system_prompt_strategy: SystemPromptStrategySection,
pub system_prompt: SystemPromptSection,
pub default_workspace: Option<String>,
}Expand description
Top-level agent configuration. All sections are optional with defaults.
Fields§
§agent: AgentSection§provider: ProviderSection§session: SessionSection§tools: ToolsSection§skills: SkillsSection§sub_agents: SubAgentsSection§callbacks: CallbacksSectionPhase 2 WASM — callback references stored as strings.
hooks: HooksSectionPhase 2 WASM — hook references stored as strings.
compaction: CompactionSection§execution: ExecutionSection§system_prompt_strategy: SystemPromptStrategySectionSystem prompt strategy templates (G6).
system_prompt: SystemPromptSectionSystem prompt instances — content for strategy templates (G6).
default_workspace: Option<String>Default workspace directory for all agents.
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 Default for AgentConfig
impl Default for AgentConfig
Source§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentConfigwhere
AgentConfig: Default,
impl<'de> Deserialize<'de> for AgentConfigwhere
AgentConfig: Default,
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