(message: string)
| 67 | } |
| 68 | |
| 69 | function toolFailure(message: string) { |
| 70 | return { |
| 71 | content: [{ type: "text" as const, text: `Error: ${message}` }], |
| 72 | isError: true, |
| 73 | }; |
| 74 | } |
| 75 | |
| 76 | function truncateContent(content: string, maxLen: number): string { |
| 77 | if (!content || content.length <= maxLen) return content; |
no outgoing calls
no test coverage detected
searching dependent graphs…