Module util
Constants§
Functions§
- conversation_
history_ key - Generate a conversation history key from a channel message.
- floor_
char_ boundary - Largest byte index
<= max_bytesthat is still a valid UTF-8 boundary. - parse_
approval_ reply - parse_
attachment_ markers - Parse
[KIND:target]attachment markers out of a message. Returns cleaned text (markers removed) and a vec of(kind, target)pairs. - strip_
tool_ call_ tags - truncate_
with_ ellipsis - Truncate a string to
max_charsUnicode characters, appending “…” if truncated.