(toolType: string, text: string)
| 40 | } |
| 41 | |
| 42 | export function truncateToolText(toolType: string, text: string) { |
| 43 | const maxLength = LARGE_TOOL_TYPES.has(toolType) |
| 44 | ? MAX_LARGE_TOOL_TEXT |
| 45 | : MAX_ITEM_TEXT; |
| 46 | return truncateText(text, maxLength); |
| 47 | } |
| 48 | |
| 49 | export function normalizeStringList(value: unknown) { |
| 50 | if (Array.isArray(value)) { |
no test coverage detected