Skip to main content

Interface: CostTrackerConfig

Defined in: packages/orchestration/src/cost/cost-tracker.ts:16

Properties​

customPricing?​

optional customPricing?: Record<string, ModelRates>

Defined in: packages/orchestration/src/cost/cost-tracker.ts:20

Rates for models core's MODEL_RATES does not list, or that you pay differently for (merged on top of it)


defaultModel?​

optional defaultModel?: string

Defined in: packages/orchestration/src/cost/cost-tracker.ts:18

Default model ID for cost estimation when not specified per-call


store?​

optional store?: SpendStore

Defined in: packages/orchestration/src/cost/cost-tracker.ts:26

Where run costs are recorded so every instance sees them. Without it, spend lives in this process's memory only — fine for one long-lived process, a fraction of the truth on serverless.