Function
costSummary
(overrides: Record<string, unknown> = {})
Source from the content-addressed store, hash-verified
| 484 | }) |
| 485 | |
| 486 | const costSummary = (overrides: Record<string, unknown> = {}) => ({ |
| 487 | totalCost: 0, |
| 488 | totalInputCost: 0, |
| 489 | totalOutputCost: 0, |
| 490 | totalTokens: 0, |
| 491 | totalPromptTokens: 0, |
| 492 | totalCompletionTokens: 0, |
| 493 | baseExecutionCharge: 0.005, |
| 494 | models: {}, |
| 495 | charges: {}, |
| 496 | ...overrides, |
| 497 | }) |
| 498 | |
| 499 | // db.select() is called twice in recordExecutionUsage: first the workflow row |
| 500 | // (terminated by .limit), then the already-billed usage_log rows (terminated |
Tested by
no test coverage detected