pub struct BuiltInAgent {
pub agent_type: BuiltInAgentType,
pub name: String,
pub description: String,
pub get_system_prompt: fn() -> String,
pub skills: Option<Vec<String>>,
pub hooks: Option<HooksSettings>,
pub mcp_servers: Option<Vec<String>>,
pub max_turns: Option<u32>,
pub omit_claude_md: bool,
}Expand description
Agent definition for built-in agents
Fields§
§agent_type: BuiltInAgentTypeUnique agent type identifier
name: StringHuman-readable name
description: StringDescription
get_system_prompt: fn() -> StringSystem prompt
skills: Option<Vec<String>>Optional skills to preload
hooks: Option<HooksSettings>Optional hooks
mcp_servers: Option<Vec<String>>Optional MCP servers
max_turns: Option<u32>Maximum turns (None = use default)
omit_claude_md: boolWhether to omit AI.md
Implementations§
Source§impl BuiltInAgent
impl BuiltInAgent
Sourcepub fn get_system_prompt(&self) -> String
pub fn get_system_prompt(&self) -> String
Get the system prompt for this agent
Trait Implementations§
Source§impl Clone for BuiltInAgent
impl Clone for BuiltInAgent
Source§fn clone(&self) -> BuiltInAgent
fn clone(&self) -> BuiltInAgent
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 moreAuto Trait Implementations§
impl Freeze for BuiltInAgent
impl RefUnwindSafe for BuiltInAgent
impl Send for BuiltInAgent
impl Sync for BuiltInAgent
impl Unpin for BuiltInAgent
impl UnsafeUnpin for BuiltInAgent
impl UnwindSafe for BuiltInAgent
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