Print cost summary after a Codex E2E test.
(label: string, result: CodexResult)
| 105 | |
| 106 | /** Print cost summary after a Codex E2E test. */ |
| 107 | function logCodexCost(label: string, result: CodexResult) { |
| 108 | const durationSec = Math.round(result.durationMs / 1000); |
| 109 | console.log(`${label}: ${result.tokens} tokens, ${result.toolCalls.length} tool calls, ${durationSec}s`); |
| 110 | } |
| 111 | |
| 112 | // Finalize eval results on exit |
| 113 | afterAll(async () => { |