struct ACP::Protocol::PromptCapabilities

Overview

Describes which prompt content types the agent can accept. As a baseline, all Agents MUST support ContentBlock::Text and ContentBlock::ResourceLink in session/prompt requests. See: https://agentclientprotocol.com/protocol/initialization#prompt-capabilities

Included Modules

Defined in:

acp/protocol/capabilities.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(image : Bool = false, audio : Bool = false, embedded_context : Bool = false, meta : Hash(String, JSON::Any) | Nil = nil) #

[View source]

Instance Method Detail

def audio : Bool #

Whether the agent accepts audio content blocks.


[View source]
def audio=(audio : Bool) #

Whether the agent accepts audio content blocks.


[View source]
def embedded_context : Bool #

Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.


[View source]
def embedded_context=(embedded_context : Bool) #

Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.


[View source]
def file : Bool #

@deprecated Use #embedded_context instead. Alias kept for backward compatibility.


[View source]
def image : Bool #

Whether the agent accepts image content blocks.


[View source]
def image=(image : Bool) #

Whether the agent accepts image content blocks.


[View source]
def meta : Hash(String, JSON::Any) | Nil #

Extension metadata.


[View source]
def meta=(meta : Hash(String, JSON::Any) | Nil) #

Extension metadata.


[View source]