struct
ACP::Protocol::TextContentBlock
- ACP::Protocol::TextContentBlock
- ACP::Protocol::ContentBlock
- Struct
- Value
- Object
Overview
A plain-text content block. This is the most common block type, used for user messages and code snippets. All Agents MUST support text content blocks in prompts. Clients SHOULD render this text as Markdown.
See: https://agentclientprotocol.com/protocol/content#text-content
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/content_block.crConstructors
-
.new(pull : JSON::PullParser)
A plain-text content block.
- .new(text : String, 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.
-
#content : String
Alias for backward compatibility (previously named
#content). -
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#text : String
The text content of the block.
-
#text=(text : String)
The text content of the block.
-
#type : String
Always "text" 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
A plain-text content block. This is the most common block type, used for user messages and code snippets. All Agents MUST support text content blocks in prompts. Clients SHOULD render this text as Markdown.
See: https://agentclientprotocol.com/protocol/content#text-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.