#[non_exhaustive]pub struct CommandsCapabilities {
pub skill: Option<CommandsSkillCapabilities>,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Command types the Client understands in addition to command.
Agents MUST NOT send a command type listed here unless the Client
advertised it. This object only groups capabilities. Supplying {}
advertises nothing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.skill: Option<CommandsSkillCapabilities>Support for skill command entries.
Optional. Omitted and null are equivalent and mean the Client does not advertise support.
Supplying {} means the Agent MAY send skill entries in availableCommands. The
Client invokes them with skill content blocks.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow Clients and Agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Implementations§
Source§impl CommandsCapabilities
impl CommandsCapabilities
Sourcepub fn new() -> CommandsCapabilities
Available on crate feature unstable_agent_skills only.
pub fn new() -> CommandsCapabilities
unstable_agent_skills only.Builds an empty CommandsCapabilities. Use builder methods to advertise supported sub-capabilities.
Sourcepub fn skill(
self,
skill: impl IntoOption<CommandsSkillCapabilities>,
) -> CommandsCapabilities
Available on crate feature unstable_agent_skills only.
pub fn skill( self, skill: impl IntoOption<CommandsSkillCapabilities>, ) -> CommandsCapabilities
unstable_agent_skills only.Advertises support for skill command entries.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> CommandsCapabilities
Available on crate feature unstable_agent_skills only.
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> CommandsCapabilities
unstable_agent_skills only.The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Implementations MUST NOT assign meaning to keys they do not recognize.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for CommandsCapabilities
impl Clone for CommandsCapabilities
Source§fn clone(&self) -> CommandsCapabilities
fn clone(&self) -> CommandsCapabilities
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 CommandsCapabilities
impl Debug for CommandsCapabilities
Source§impl Default for CommandsCapabilities
impl Default for CommandsCapabilities
Source§fn default() -> CommandsCapabilities
fn default() -> CommandsCapabilities
Source§impl<'de> Deserialize<'de> for CommandsCapabilities
impl<'de> Deserialize<'de> for CommandsCapabilities
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandsCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandsCapabilities, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for CommandsCapabilities
Source§impl JsonSchema for CommandsCapabilities
impl JsonSchema for CommandsCapabilities
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CommandsCapabilities
impl PartialEq for CommandsCapabilities
Source§impl Serialize for CommandsCapabilities
impl Serialize for CommandsCapabilities
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for CommandsCapabilities
Auto Trait Implementations§
impl Forget for CommandsCapabilities
impl Freeze for CommandsCapabilities
impl Move for CommandsCapabilities
impl RefUnwindSafe for CommandsCapabilities
impl Send for CommandsCapabilities
impl Sync for CommandsCapabilities
impl Unpin for CommandsCapabilities
impl UnsafeUnpin for CommandsCapabilities
impl UnwindSafe for CommandsCapabilities
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.