struct
ACP::Protocol::PromptCapabilities
- ACP::Protocol::PromptCapabilities
- Struct
- Value
- Object
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
- JSON::Serializable
Defined in:
acp/protocol/capabilities.crConstructors
- .new(pull : JSON::PullParser)
- .new(image : Bool = false, audio : Bool = false, embedded_context : Bool = false, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#audio : Bool
Whether the agent accepts audio content blocks.
-
#audio=(audio : Bool)
Whether the agent accepts audio content blocks.
-
#embedded_context : Bool
Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.
-
#embedded_context=(embedded_context : Bool)
Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.
-
#file : Bool
@deprecated Use
#embedded_contextinstead. -
#image : Bool
Whether the agent accepts image content blocks.
-
#image=(image : Bool)
Whether the agent accepts image content blocks.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
Constructor Detail
Instance Method Detail
Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.
Whether the agent accepts embedded resource content blocks (ContentBlock::Resource) in session/prompt requests.