pub enum Capability {
FileRead,
FileWrite,
FileDelete,
NetworkOutbound,
NetworkInbound,
TerminalExec,
McpTool(String),
Model(String),
AgentSpawn,
}Expand description
A discrete action category a policy can allow or deny for an agent.
The string forms match the capabilities.allow / capabilities.deny
entries in the policy YAML contract (file_read, network_outbound,
mcp_tool:<name>, model:<name>, …).
Variants§
FileRead
Read access to the filesystem.
FileWrite
Write access to the filesystem.
FileDelete
Delete/unlink access to the filesystem.
A distinct verb from Capability::FileWrite so a policy can allow
writes while denying deletes. Mirrors aa_core::Capability::FileDelete
so the gateway→canonical projection stays lossless. See AAASM-4103.
NetworkOutbound
Outbound network connections.
NetworkInbound
Inbound network connections.
TerminalExec
Execute commands in a terminal/shell.
McpTool(String)
Use a named MCP tool.
Model(String)
Use a named AI model.
AgentSpawn
Spawn child agents.
Trait Implementations§
Source§impl Clone for Capability
impl Clone for Capability
Source§fn clone(&self) -> Capability
fn clone(&self) -> Capability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Capability
impl Debug for Capability
Source§impl Display for Capability
impl Display for Capability
impl Eq for Capability
Source§impl FromStr for Capability
impl FromStr for Capability
Source§impl Hash for Capability
impl Hash for Capability
Source§impl Ord for Capability
impl Ord for Capability
Source§fn cmp(&self, other: &Capability) -> Ordering
fn cmp(&self, other: &Capability) -> Ordering
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 PartialEq for Capability
impl PartialEq for Capability
Source§impl PartialOrd for Capability
impl PartialOrd for Capability
impl StructuralPartialEq for Capability
Auto Trait Implementations§
impl Freeze for Capability
impl RefUnwindSafe for Capability
impl Send for Capability
impl Sync for Capability
impl Unpin for Capability
impl UnsafeUnpin for Capability
impl UnwindSafe for Capability
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