( content: MCPToolResult, )
| 198 | } |
| 199 | |
| 200 | export async function truncateMcpContentIfNeeded( |
| 201 | content: MCPToolResult, |
| 202 | ): Promise<MCPToolResult> { |
| 203 | if (!(await mcpContentNeedsTruncation(content))) { |
| 204 | return content |
| 205 | } |
| 206 | |
| 207 | return await truncateMcpContent(content) |
| 208 | } |
| 209 |
no test coverage detected