(call: ReplToolCallSummary)
| 317 | } |
| 318 | |
| 319 | function formatToolCallSummary(call: ReplToolCallSummary): string { |
| 320 | const input = preview(stringifyUnknown(call.toolInput)) |
| 321 | if (!call.success) { |
| 322 | return `${call.toolName}(${input}) -> ERROR: ${call.error ?? 'unknown error'}` |
| 323 | } |
| 324 | return `${call.toolName}(${input}) -> ${preview(stringifyUnknown(call.result))}` |
| 325 | } |
| 326 | |
| 327 | function formatModelToolResult(output: Output): string { |
| 328 | const lines: string[] = [] |
no test coverage detected