pub enum AgentRef {
Name(String),
Path(String),
}Expand description
Reference to an agent — either a short name or an explicit file path.
Name: bare identifier (e.g.plan) resolved via the search order.Path: quoted string (e.g.".claude/agents/plan.md") resolved directly relative to the repository root.
Variants§
Implementations§
Source§impl AgentRef
impl AgentRef
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Human-readable label for display and logging (the inner string value).
Sourcepub fn step_key(&self) -> String
pub fn step_key(&self) -> String
Key used to store and look up results in step_results.
Namevariants return the name as-is.Pathvariants return the file stem without extension (e.g."plan"from".claude/agents/plan.md"), so thatif/whileconditions can reference path-based agents by their short name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentRef
impl<'de> Deserialize<'de> for AgentRef
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
Source§impl Ord for AgentRef
impl Ord for AgentRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AgentRef
impl PartialOrd for AgentRef
impl Eq for AgentRef
impl StructuralPartialEq for AgentRef
Auto Trait Implementations§
impl Freeze for AgentRef
impl RefUnwindSafe for AgentRef
impl Send for AgentRef
impl Sync for AgentRef
impl Unpin for AgentRef
impl UnsafeUnpin for AgentRef
impl UnwindSafe for AgentRef
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