#[non_exhaustive]pub struct ElicitationCapabilities {
pub form: Option<ElicitationFormCapabilities>,
pub url: Option<ElicitationUrlCapabilities>,
pub meta: Option<Meta>,
}unstable_elicitation and 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.
Elicitation capabilities supported by the client.
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.form: Option<ElicitationFormCapabilities>Whether the client supports form-based elicitation.
url: Option<ElicitationUrlCapabilities>Whether the client supports URL-based elicitation.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl ElicitationCapabilities
impl ElicitationCapabilities
pub fn new() -> Self
Sourcepub fn form(self, form: impl IntoOption<ElicitationFormCapabilities>) -> Self
pub fn form(self, form: impl IntoOption<ElicitationFormCapabilities>) -> Self
Whether the client supports form-based elicitation.
Sourcepub fn url(self, url: impl IntoOption<ElicitationUrlCapabilities>) -> Self
pub fn url(self, url: impl IntoOption<ElicitationUrlCapabilities>) -> Self
Whether the client supports URL-based elicitation.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for ElicitationCapabilities
impl Clone for ElicitationCapabilities
Source§fn clone(&self) -> ElicitationCapabilities
fn clone(&self) -> ElicitationCapabilities
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 ElicitationCapabilities
impl Debug for ElicitationCapabilities
Source§impl Default for ElicitationCapabilities
impl Default for ElicitationCapabilities
Source§fn default() -> ElicitationCapabilities
fn default() -> ElicitationCapabilities
Source§impl<'de> Deserialize<'de> for ElicitationCapabilities
impl<'de> Deserialize<'de> for ElicitationCapabilities
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 ElicitationCapabilities
Source§impl IntoV1 for ElicitationCapabilities
impl IntoV1 for ElicitationCapabilities
Source§impl JsonSchema for ElicitationCapabilities
impl JsonSchema for ElicitationCapabilities
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 ElicitationCapabilities
impl PartialEq for ElicitationCapabilities
Source§fn eq(&self, other: &ElicitationCapabilities) -> bool
fn eq(&self, other: &ElicitationCapabilities) -> bool
self and other values to be equal, and is used by ==.