pub struct CoreExtensionCapabilities {
pub extension_id: ExtensionId,
pub version: ExtensionVersion,
pub tools: Vec<ExtensionToolCapability>,
pub hooks: Vec<ExtensionHookCapability>,
pub providers: Vec<ExtensionProviderCapability>,
pub subagents: Vec<ExtensionSubagentCapability>,
pub actions: Vec<ExtensionActionCapability>,
}Expand description
Describes the core extension capabilities portion of a runtime package snapshot. Use it when package authors or tests need explicit package configuration; validation and activation happen in package/runtime coordinators.
Fields§
§extension_id: ExtensionIdStable extension id used for typed lineage, lookup, or dedupe.
version: ExtensionVersionVersion string for this capability, package, or protocol surface. Use it for compatibility checks during package or adapter resolution.
tools: Vec<ExtensionToolCapability>Collection of tools values. Ordering and membership should be treated as part of the serialized contract when relevant.
hooks: Vec<ExtensionHookCapability>Collection of hooks values. Ordering and membership should be treated as part of the serialized contract when relevant.
providers: Vec<ExtensionProviderCapability>Collection of providers values. Ordering and membership should be treated as part of the serialized contract when relevant.
subagents: Vec<ExtensionSubagentCapability>Collection of subagents values. Ordering and membership should be treated as part of the serialized contract when relevant.
actions: Vec<ExtensionActionCapability>Collection of actions values. Ordering and membership should be treated as part of the serialized contract when relevant.
Implementations§
Source§impl CoreExtensionCapabilities
impl CoreExtensionCapabilities
Sourcepub fn builder(extension_id: ExtensionId) -> CoreExtensionCapabilitiesBuilder
pub fn builder(extension_id: ExtensionId) -> CoreExtensionCapabilitiesBuilder
Starts a builder for this package::extension value. Building is data-only; runtime side effects occur only when a later coordinator or host port executes the built configuration.
Sourcepub fn validate(&self) -> Result<(), AgentError>
pub fn validate(&self) -> Result<(), AgentError>
Validates the package::extension invariants and returns a typed error on failure. Validation is pure and does not perform I/O, dispatch, journal appends, or adapter calls.
Trait Implementations§
Source§impl Clone for CoreExtensionCapabilities
impl Clone for CoreExtensionCapabilities
Source§fn clone(&self) -> CoreExtensionCapabilities
fn clone(&self) -> CoreExtensionCapabilities
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 CoreExtensionCapabilities
impl Debug for CoreExtensionCapabilities
Source§impl<'de> Deserialize<'de> for CoreExtensionCapabilities
impl<'de> Deserialize<'de> for CoreExtensionCapabilities
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>,
Source§impl PartialEq for CoreExtensionCapabilities
impl PartialEq for CoreExtensionCapabilities
Source§fn eq(&self, other: &CoreExtensionCapabilities) -> bool
fn eq(&self, other: &CoreExtensionCapabilities) -> bool
self and other values to be equal, and is used by ==.