#[non_exhaustive]pub struct CommandsCapabilities {
pub skill: Option<CommandsSkillCapabilities>,
pub meta: Option<Meta>,
}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<Meta>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() -> Self
Available on crate feature unstable_agent_skills only.
pub fn new() -> Self
unstable_agent_skills only.Builds an empty CommandsCapabilities. Use builder methods to advertise supported sub-capabilities.
Sourcepub fn skill(self, skill: impl IntoOption<CommandsSkillCapabilities>) -> Self
Available on crate feature unstable_agent_skills only.
pub fn skill(self, skill: impl IntoOption<CommandsSkillCapabilities>) -> Self
unstable_agent_skills only.Advertises support for skill command entries.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_agent_skills only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
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§impl Debug for CommandsCapabilities
impl Debug for CommandsCapabilities
Source§impl Default for CommandsCapabilities
impl Default for CommandsCapabilities
Source§impl<'de> Deserialize<'de> for CommandsCapabilities
impl<'de> Deserialize<'de> for CommandsCapabilities
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>,
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
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.