( toolResultBlock: ToolResultBlockParam, toolName: string, maxResultSizeChars: number, )
| 230 | * without re-calling mapToolResultToToolResultBlockParam. |
| 231 | */ |
| 232 | export async function processPreMappedToolResultBlock( |
| 233 | toolResultBlock: ToolResultBlockParam, |
| 234 | toolName: string, |
| 235 | maxResultSizeChars: number, |
| 236 | ): Promise<ToolResultBlockParam> { |
| 237 | return maybePersistLargeToolResult( |
| 238 | toolResultBlock, |
| 239 | toolName, |
| 240 | getPersistenceThreshold(toolName, maxResultSizeChars), |
| 241 | ) |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * True when a tool_result's content is empty or effectively empty. Covers: |
no test coverage detected