Skip to main content

Module reports

Module reports 

Source
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_bytes UTF-8 bytes, never splitting a codepoint. If truncated, appends an ASCII ellipsis marker and a short suffix explaining truncation.