Interface: RecordUsageInput

Defined in: costs/types.ts:153

Input for recording usage

Properties

metadata?

optional metadata?: Record<string, unknown>;

Defined in: costs/types.ts:163

Additional metadata

model

model: string;

Defined in: costs/types.ts:155

Model used

provider

provider: string;

Defined in: costs/types.ts:157

Provider name

sessionId?

optional sessionId?: string;

Defined in: costs/types.ts:161

Session ID override

tokens

tokens: TokenUsage;

Defined in: costs/types.ts:159

Token usage