pub struct AgentDef {
pub name: String,
pub description: String,
pub tools: Option<Vec<String>>,
pub model: Option<String>,
pub prompt: String,
pub source: PathBuf,
pub meta: BTreeMap<String, String>,
}Expand description
One subagent definition.
Fields§
§name: String[a-z0-9][a-z0-9_-]*, at most 64 characters; what delegate { agent } names.
description: StringWhen to use it (listed in the main system prompt).
tools: Option<Vec<String>>Tool names it may use as written (Claude Code names like Read included; see
tool_aliases). None: every tool.
model: Option<String>A model role (fast), a raw model id, or Claude Code’s inherit/sonnet/… .
prompt: StringThe system prompt (the file’s body).
source: PathBufThe file it came from.
meta: BTreeMap<String, String>Frontmatter keys byob doesn’t use, as text.
Trait Implementations§
impl Eq for AgentDef
impl StructuralPartialEq for AgentDef
Auto Trait Implementations§
impl Forget for AgentDef
impl Freeze for AgentDef
impl RefUnwindSafe for AgentDef
impl Send for AgentDef
impl Sync for AgentDef
impl Unpin for AgentDef
impl UnsafeUnpin for AgentDef
impl UnwindSafe for AgentDef
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