MCPcopy Index your code
hub / github.com/simstudioai/sim / costSummary

Function costSummary

apps/sim/lib/logs/execution/logger.test.ts:486–497  ·  view source on GitHub ↗
(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

Callers 1

logger.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected