#[non_exhaustive]pub struct ClientSessionCapabilities {
pub prompt_suggestions: Option<PromptSuggestionsCapabilities>,
pub commands: Option<CommandsCapabilities>,
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.
Session-related capabilities supported by the Client.
This object only groups capabilities. Unlike the Agent’s session
capability, it is not a support marker, and 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.prompt_suggestions: Option<PromptSuggestionsCapabilities>unstable_prompt_suggestions only.Support for prompt_suggestions_update session updates.
Optional. Omitted and null are equivalent and mean the Client does not advertise support.
Supplying {} means the Client can offer prompt suggestions made of
text and resource_link content blocks.
commands: Option<CommandsCapabilities>unstable_agent_skills only.Command types the Client understands in addition to command.
Optional. Omitted and null are equivalent and mean the Client does not advertise support
for any of them. This object only groups capabilities. Supplying {} advertises nothing.
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 ClientSessionCapabilities
impl ClientSessionCapabilities
Sourcepub fn new() -> Self
Available on crate features unstable_agent_skills or unstable_prompt_suggestions only.
pub fn new() -> Self
unstable_agent_skills or unstable_prompt_suggestions only.Builds an empty ClientSessionCapabilities. Use builder methods to advertise supported sub-capabilities.
Sourcepub fn prompt_suggestions(
self,
prompt_suggestions: impl IntoOption<PromptSuggestionsCapabilities>,
) -> Self
Available on crate feature unstable_prompt_suggestions and (crate features unstable_agent_skills or unstable_prompt_suggestions) only.
pub fn prompt_suggestions( self, prompt_suggestions: impl IntoOption<PromptSuggestionsCapabilities>, ) -> Self
unstable_prompt_suggestions and (crate features unstable_agent_skills or unstable_prompt_suggestions) only.Advertises support for prompt_suggestions_update session updates.
Sourcepub fn commands(self, commands: impl IntoOption<CommandsCapabilities>) -> Self
Available on crate feature unstable_agent_skills and (crate features unstable_agent_skills or unstable_prompt_suggestions) only.
pub fn commands(self, commands: impl IntoOption<CommandsCapabilities>) -> Self
unstable_agent_skills and (crate features unstable_agent_skills or unstable_prompt_suggestions) only.Command types the Client understands in addition to command.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate features unstable_agent_skills or unstable_prompt_suggestions only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_agent_skills or unstable_prompt_suggestions 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 ClientSessionCapabilities
impl Clone for ClientSessionCapabilities
Source§impl Debug for ClientSessionCapabilities
impl Debug for ClientSessionCapabilities
Source§impl Default for ClientSessionCapabilities
impl Default for ClientSessionCapabilities
Source§impl<'de> Deserialize<'de> for ClientSessionCapabilities
impl<'de> Deserialize<'de> for ClientSessionCapabilities
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 ClientSessionCapabilities
Source§impl JsonSchema for ClientSessionCapabilities
impl JsonSchema for ClientSessionCapabilities
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 moreimpl StructuralPartialEq for ClientSessionCapabilities
Auto Trait Implementations§
impl Forget for ClientSessionCapabilities
impl Freeze for ClientSessionCapabilities
impl Move for ClientSessionCapabilities
impl RefUnwindSafe for ClientSessionCapabilities
impl Send for ClientSessionCapabilities
impl Sync for ClientSessionCapabilities
impl Unpin for ClientSessionCapabilities
impl UnsafeUnpin for ClientSessionCapabilities
impl UnwindSafe for ClientSessionCapabilities
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.