pub struct CapabilityInfo {Show 20 fields
pub id: CapabilityId,
pub name: String,
pub description: String,
pub status: CapabilityStatus,
pub icon: Option<String>,
pub category: Option<String>,
pub system_prompt: Option<String>,
pub tool_definitions: Vec<ToolDefinition>,
pub is_mcp: bool,
pub is_skill: bool,
pub is_guardrail: bool,
pub dependencies: Vec<String>,
pub features: Vec<String>,
pub config_schema: Option<Value>,
pub config_ui_schema: Option<Value>,
pub risk_level: RiskLevel,
pub agent_count: u64,
pub harness_count: u64,
pub docs_slug: Option<String>,
pub localizations: BTreeMap<String, CapabilityLocalizationInfo>,
}Expand description
Public capability information (without internal details) This is what gets returned from the API Named CapabilityInfo to distinguish from the Capability trait
Fields§
§id: CapabilityIdUnique capability identifier
name: StringDisplay name
description: StringDescription of what this capability provides
status: CapabilityStatusCurrent status
icon: Option<String>Icon name (for UI rendering)
category: Option<String>Category for grouping in UI
system_prompt: Option<String>System prompt addition contributed by this capability
tool_definitions: Vec<ToolDefinition>Tool definitions provided by this capability
is_mcp: boolWhether this is an MCP server capability (for UI badge)
is_skill: boolWhether this is an Agent Skill capability (for UI badge)
is_guardrail: boolWhether this capability is a guardrail (constrains agent behavior rather than granting abilities). Used for UI grouping and filtering.
dependencies: Vec<String>IDs of capabilities that this capability depends on. When this capability is selected, its dependencies are automatically included.
features: Vec<String>UI feature strings this capability contributes to. Multiple capabilities can contribute the same feature.
config_schema: Option<Value>JSON Schema for capability-specific per-agent config.
config_ui_schema: Option<Value>react-jsonschema-form uiSchema hints for rendering config_schema.
risk_level: RiskLevelTM-AGENT-005: Risk level. High-risk capabilities require admin approval.
agent_count: u64Number of active agents referencing this capability in the org.
harness_count: u64Number of active harnesses referencing this capability in the org.
docs_slug: Option<String>Slug under https://dev.everruns.com/capabilities/ when public docs exist.
localizations: BTreeMap<String, CapabilityLocalizationInfo>Localized display strings keyed by lowercase language tag (e.g. “uk”).
The “en” entry carries only config_description, since the base
name/description/config_schema strings are already English.
Implementations§
Source§impl CapabilityInfo
impl CapabilityInfo
Sourcepub fn matches_search(&self, query: &str) -> bool
pub fn matches_search(&self, query: &str) -> bool
Case-insensitive search across name, description, category, and ID.
Sourcepub fn from_core(cap: &dyn Capability) -> Self
pub fn from_core(cap: &dyn Capability) -> Self
Create a CapabilityInfo DTO from a core Capability trait object
Trait Implementations§
Source§impl Clone for CapabilityInfo
impl Clone for CapabilityInfo
Source§fn clone(&self) -> CapabilityInfo
fn clone(&self) -> CapabilityInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapabilityInfo
impl Debug for CapabilityInfo
Source§impl<'de> Deserialize<'de> for CapabilityInfo
impl<'de> Deserialize<'de> for CapabilityInfo
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>,
Auto Trait Implementations§
impl Freeze for CapabilityInfo
impl RefUnwindSafe for CapabilityInfo
impl Send for CapabilityInfo
impl Sync for CapabilityInfo
impl Unpin for CapabilityInfo
impl UnsafeUnpin for CapabilityInfo
impl UnwindSafe for CapabilityInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request