struct
ACP::Protocol::AudioContentBlock
- ACP::Protocol::AudioContentBlock
- ACP::Protocol::ContentBlock
- Struct
- Value
- Object
Overview
An audio content block. Requires the audio prompt capability.
See: https://agentclientprotocol.com/protocol/content#audio-content
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/content_block.crConstructors
-
.new(pull : JSON::PullParser)
An audio content block.
- .new(data : String, mime_type : String = "audio/wav", annotations : Annotations | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
Instance Method Summary
-
#annotations : Annotations | Nil
Optional metadata about how the content should be used or displayed.
-
#annotations=(annotations : Annotations | Nil)
Optional metadata about how the content should be used or displayed.
-
#data : String
Base64-encoded audio data (required).
-
#data=(data : String)
Base64-encoded audio data (required).
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#mime_type : String
MIME type of the audio (e.g., "audio/wav", "audio/mp3") (required).
-
#mime_type=(mime_type : String)
MIME type of the audio (e.g., "audio/wav", "audio/mp3") (required).
-
#type : String
Always "audio" for this block type.
Instance methods inherited from struct ACP::Protocol::ContentBlock
type : String
type
Constructor methods inherited from struct ACP::Protocol::ContentBlock
new(pull : JSON::PullParser)
new
Constructor Detail
An audio content block. Requires the audio prompt capability.
See: https://agentclientprotocol.com/protocol/content#audio-content
Instance Method Detail
Optional metadata about how the content should be used or displayed.
Optional metadata about how the content should be used or displayed.
MIME type of the audio (e.g., "audio/wav", "audio/mp3") (required).