Skip to main content

Module util

Module util 

Constants§

BLOCK_KIT_PREFIX

Functions§

conversation_history_key
Generate a conversation history key from a channel message.
floor_char_boundary
Largest byte index <= max_bytes that 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_chars Unicode characters, appending “…” if truncated.