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 AgentDefwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for AgentDef
impl RefUnwindSafe for AgentDef
impl Send for AgentDef
impl Sync for AgentDef
impl Unpin for AgentDef
impl UnsafeUnpin for AgentDefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.