content
Class info¶
🛈 DocStrings¶
Rendering v2 content blocks as Markdown, for every block kind.
block_markdown
¶
Markdown for one content block.
Source code in src/acptui/protocol/content.py
content_markdown
¶
Markdown for message content, leaving out blocks not meant for the user.
decode_image
¶
The raw bytes of an image block (empty if malformed).
describe_block
¶
A one-line description of a non-text block (None for text).
Source code in src/acptui/protocol/content.py
for_user
¶
Whether a block is meant for the user (its audience annotation allows it).
Source code in src/acptui/protocol/content.py
human_size
¶
12345 -> 12.1 KB.
Source code in src/acptui/protocol/content.py
relative_display
¶
A path (or file:// URI) relative to cwd if it is inside it, else unchanged.