pub struct CapabilityTemplate { /* private fields */ }Expand description
Builder for constructing preset capability spaces.
Use the associated constructors (worker, standard, operator,
supervisor, with_skills) to start from a template, then call
[build] or [build_for] to produce a CSpace.
Implementations§
Source§impl CapabilityTemplate
impl CapabilityTemplate
Sourcepub fn worker() -> Self
pub fn worker() -> Self
Worker — minimal execution capability.
Rights: shell exec + headless browser.
Sourcepub fn standard() -> Self
pub fn standard() -> Self
Standard — worker + memory read access.
Suitable for most agents that need to recall but not modify persistent state.
Sourcepub fn operator() -> Self
pub fn operator() -> Self
Operator — standard + space, agent, A2A, persona, program, MCP, and memory write.
Intended for agents that coordinate work across multiple subsystems (e.g., a project lead agent).
Sourcepub fn supervisor() -> Self
pub fn supervisor() -> Self
Supervisor — operator + security, budget, resource, and cron kernel domains.
The most privileged built-in template. Use sparingly.
Sourcepub fn with_skills(names: &[&str]) -> Self
pub fn with_skills(names: &[&str]) -> Self
With skills — worker + specific named skills.
Creates a worker-level agent with EXECUTE rights on the listed skills only. This is the recommended template for agents that should have access to a known set of tools.
Sourcepub fn with(self, resource: ResourceRef, rights: Rights) -> Self
pub fn with(self, resource: ResourceRef, rights: Rights) -> Self
Add an additional capability to the template.
Sourcepub fn build(&self) -> CSpace
pub fn build(&self) -> CSpace
Build a CSpace with kernel-issued capabilities for a fresh agent ID.
Trait Implementations§
Source§impl Clone for CapabilityTemplate
impl Clone for CapabilityTemplate
Source§fn clone(&self) -> CapabilityTemplate
fn clone(&self) -> CapabilityTemplate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more