Function: normalizeUsage()
normalizeUsage(
usage?):CostAggregator|undefined
Defined in: packages/agentos/src/orchestration/turn-planner/helpers.ts:8
Normalises undefined cost fields so downstream consumers always receive a fully shaped usage object. The prompt-cache counts are kept when the usage has them and stay absent when it does not.
Parameters
usage?
Returns
CostAggregator | undefined