(s string, maxLen int)
| 764 | } |
| 765 | |
| 766 | func truncateString(s string, maxLen int) string { |
| 767 | if len(s) > maxLen { |
| 768 | return s[:maxLen] |
| 769 | } |
| 770 | return s |
| 771 | } |
| 772 | |
| 773 | // extractMessageContent extracts text content from a message content field. |
| 774 | // Handles both string content and array content (multimodal messages). |
no outgoing calls
no test coverage detected