Formatting utilities for tool call display in the CLI.
This module handles rendering tool calls and tool messages for the TUI.
Imported at runtime (not at CLI startup), so it can safely depend
on heavier modules like backends.
Get the glyph set for the current charset mode.
Truncate a string value if it exceeds max_length.
Format tool calls for display with tool-specific smart formatting.
Shows the most relevant information for each tool type rather than all arguments.
Convert ToolMessage content into a printable string.