Interface: BudgetStatus

Defined in: costs/types.ts:98

Budget status

Properties

currentInputTokens

currentInputTokens: number;

Defined in: costs/types.ts:102

Current input tokens

currentOutputTokens

currentOutputTokens: number;

Defined in: costs/types.ts:104

Current output tokens

currentTokens

currentTokens: number;

Defined in: costs/types.ts:100

Current total tokens

exceeded

exceeded: boolean;

Defined in: costs/types.ts:110

Whether budget is exceeded

tokenLimit?

optional tokenLimit?: number;

Defined in: costs/types.ts:106

Token limit (if set)

tokenUtilization?

optional tokenUtilization?: number;

Defined in: costs/types.ts:108

Token utilization (0-1)

warning

warning: boolean;

Defined in: costs/types.ts:112

Whether warning threshold is reached