Expand description
Small helpers for prompt-sized text derived from structured reports (Phase 2 optional).
Functionsยง
- truncate_
utf8_ by_ bytes - Truncate a UTF-8 string to at most
max_bytesUTF-8 bytes, never splitting a codepoint. If truncated, appends an ASCII ellipsis marker and a short suffix explaining truncation.