pub struct AgentCapability {
pub name: &'static str,
pub summary: Option<&'static str>,
pub commands: &'static [CommandSelector],
pub flags: &'static [FlagSelector],
pub examples: Option<&'static [&'static str]>,
pub output: Option<&'static str>,
pub constraints: Option<&'static str>,
}Expand description
Declarative capability group for agent-mode visibility.
Fields§
§name: &'static strStable capability name.
summary: Option<&'static str>Optional human-readable summary for the capability.
commands: &'static [CommandSelector]Command paths exposed by this capability.
flags: &'static [FlagSelector]Long flags exposed by this capability.
examples: Option<&'static [&'static str]>Optional example invocations.
output: Option<&'static str>Optional output contract prose.
constraints: Option<&'static str>Optional constraints prose.
Implementations§
Source§impl AgentCapability
impl AgentCapability
Sourcepub const fn new(
name: &'static str,
summary: &'static str,
commands: &'static [CommandSelector],
flags: &'static [FlagSelector],
) -> Self
pub const fn new( name: &'static str, summary: &'static str, commands: &'static [CommandSelector], flags: &'static [FlagSelector], ) -> Self
Create a new AgentCapability.
Sourcepub const fn minimal(
name: &'static str,
commands: &'static [CommandSelector],
flags: &'static [FlagSelector],
) -> Self
pub const fn minimal( name: &'static str, commands: &'static [CommandSelector], flags: &'static [FlagSelector], ) -> Self
Create a new AgentCapability without optional prose metadata.
Sourcepub const fn with_examples(self, examples: &'static [&'static str]) -> Self
pub const fn with_examples(self, examples: &'static [&'static str]) -> Self
Attach example invocations.
Sourcepub const fn with_output(self, output: &'static str) -> Self
pub const fn with_output(self, output: &'static str) -> Self
Attach output contract prose.
Sourcepub const fn with_constraints(self, constraints: &'static str) -> Self
pub const fn with_constraints(self, constraints: &'static str) -> Self
Attach constraints prose.
Trait Implementations§
Source§impl Clone for AgentCapability
impl Clone for AgentCapability
Source§fn clone(&self) -> AgentCapability
fn clone(&self) -> AgentCapability
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 moreSource§impl Debug for AgentCapability
impl Debug for AgentCapability
Source§impl PartialEq for AgentCapability
impl PartialEq for AgentCapability
impl Copy for AgentCapability
impl Eq for AgentCapability
impl StructuralPartialEq for AgentCapability
Auto Trait Implementations§
impl Freeze for AgentCapability
impl RefUnwindSafe for AgentCapability
impl Send for AgentCapability
impl Sync for AgentCapability
impl Unpin for AgentCapability
impl UnsafeUnpin for AgentCapability
impl UnwindSafe for AgentCapability
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