#[non_exhaustive]pub struct PromptCapabilities {
pub image: bool,
pub audio: bool,
pub embedded_context: bool,
pub meta: Option<Meta>,
}Expand description
Prompt capabilities supported by the agent in session/prompt requests.
Baseline agent functionality requires support for ContentBlock::Text
and ContentBlock::ResourceLink in prompt requests.
Other variants must be explicitly opted in to. Capabilities for different types of content in prompt requests.
Indicates which content types beyond the baseline (text and resource links) the agent can process.
See protocol docs: Prompt Capabilities
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.image: boolAgent supports ContentBlock::Image.
audio: boolAgent supports ContentBlock::Audio.
embedded_context: boolAgent supports embedded context in session/prompt requests.
When enabled, the Client is allowed to include ContentBlock::Resource
in prompt requests for pieces of context that are referenced in the message.
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 PromptCapabilities
impl PromptCapabilities
pub fn new() -> Self
Sourcepub fn image(self, image: bool) -> Self
pub fn image(self, image: bool) -> Self
Agent supports ContentBlock::Image.
Sourcepub fn audio(self, audio: bool) -> Self
pub fn audio(self, audio: bool) -> Self
Agent supports ContentBlock::Audio.
Sourcepub fn embedded_context(self, embedded_context: bool) -> Self
pub fn embedded_context(self, embedded_context: bool) -> Self
Agent supports embedded context in session/prompt requests.
When enabled, the Client is allowed to include ContentBlock::Resource
in prompt requests for pieces of context that are referenced in the message.
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 PromptCapabilities
impl Clone for PromptCapabilities
Source§fn clone(&self) -> PromptCapabilities
fn clone(&self) -> PromptCapabilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PromptCapabilities
impl Debug for PromptCapabilities
Source§impl Default for PromptCapabilities
impl Default for PromptCapabilities
Source§fn default() -> PromptCapabilities
fn default() -> PromptCapabilities
Source§impl<'de> Deserialize<'de> for PromptCapabilities
impl<'de> Deserialize<'de> for PromptCapabilities
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 JsonSchema for PromptCapabilities
impl JsonSchema for PromptCapabilities
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 more