module ACP::Protocol::ChunkContentHelper

Direct including types

Defined in:

acp/protocol/chunk_content_helper.cr

Instance Method Summary

Instance Method Detail

def content_block : ContentBlock | Nil #

Attempts to parse the content as a typed ContentBlock. Returns nil if parsing fails.


[View source]
def text : String #

Helper to get the actual text content regardless of wrapping.


[View source]
def to_content_chunk : ContentChunk | Nil #

Returns a ContentChunk wrapping the parsed content block, if possible.


[View source]