module
ACP::Protocol::ChunkContentHelper
Direct including types
- ACP::Protocol::AgentMessageChunkUpdate
- ACP::Protocol::AgentThoughtChunkUpdate
- ACP::Protocol::UserMessageChunkUpdate
Defined in:
acp/protocol/chunk_content_helper.crInstance Method Summary
-
#content_block : ContentBlock | Nil
Attempts to parse the content as a typed ContentBlock.
-
#text : String
Helper to get the actual text content regardless of wrapping.
-
#to_content_chunk : ContentChunk | Nil
Returns a ContentChunk wrapping the parsed content block, if possible.
Instance Method Detail
def content_block : ContentBlock | Nil
#
Attempts to parse the content as a typed ContentBlock. Returns nil if parsing fails.
def to_content_chunk : ContentChunk | Nil
#
Returns a ContentChunk wrapping the parsed content block, if possible.