(content: string, maxChars: number)
| 85 | } |
| 86 | |
| 87 | function truncateString(content: string, maxChars: number): string { |
| 88 | if (content.length <= maxChars) { |
| 89 | return content |
| 90 | } |
| 91 | return content.slice(0, maxChars) |
| 92 | } |
| 93 | |
| 94 | async function truncateContentBlocks( |
| 95 | blocks: ContentBlockParam[], |
no outgoing calls
no test coverage detected