Run summary in user-facing units: cost in credits, finalOutput bounded.
(context: ExecutionEventContext)
| 52 | |
| 53 | /** Run summary in user-facing units: cost in credits, finalOutput bounded. */ |
| 54 | function summarizeRun(context: ExecutionEventContext): SimRunSummary { |
| 55 | return { |
| 56 | runId: context.executionId, |
| 57 | durationMs: context.durationMs, |
| 58 | // Costs are stored in dollars; credits are the user-facing unit. |
| 59 | cost: dollarsToCredits(context.cost), |
| 60 | finalOutput: boundFinalOutput(context.finalOutput), |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * Payload for run-backed events. Plain success/error events ARE the run, so |
no test coverage detected