pub enum CapabilityKind {
Tool,
McpTool,
McpResource,
ToolDiscoveryCandidate,
AgentAsTool,
ExtensionAction,
StreamControl,
RealtimeAction,
}Expand description
Enumerates the finite capability kind cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Tool
Use this variant when the contract needs to represent tool; selecting it has no side effect by itself.
McpTool
Use this variant when the contract needs to represent mcp tool; selecting it has no side effect by itself.
McpResource
Use this variant when the contract needs to represent mcp resource; selecting it has no side effect by itself.
ToolDiscoveryCandidate
Use this variant when the contract needs to represent tool discovery candidate; selecting it has no side effect by itself.
AgentAsTool
Use this variant when the contract needs to represent agent as tool; selecting it has no side effect by itself.
ExtensionAction
Use this variant when the contract needs to represent extension action; selecting it has no side effect by itself.
StreamControl
Use this variant when the contract needs to represent stream control; selecting it has no side effect by itself.
RealtimeAction
Use this variant when the contract needs to represent realtime action; selecting it has no side effect by itself.
Implementations§
Source§impl CapabilityKind
impl CapabilityKind
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Reports whether this value is reserved. The check is pure and does not mutate SDK or host state.
Sourcepub fn owner_role(&self) -> &'static str
pub fn owner_role(&self) -> &'static str
Returns owner role for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Trait Implementations§
Source§impl Clone for CapabilityKind
impl Clone for CapabilityKind
Source§fn clone(&self) -> CapabilityKind
fn clone(&self) -> CapabilityKind
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 CapabilityKind
impl Debug for CapabilityKind
Source§impl<'de> Deserialize<'de> for CapabilityKind
impl<'de> Deserialize<'de> for CapabilityKind
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 CapabilityKind
impl PartialEq for CapabilityKind
Source§fn eq(&self, other: &CapabilityKind) -> bool
fn eq(&self, other: &CapabilityKind) -> bool
self and other values to be equal, and is used by ==.