AxCostTracker
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L38
Methods
getCurrentCost()
getCurrentCost(): number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L40
Returns
number
getTokenUsage()
getTokenUsage(): Record<string, number>;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L41
Returns
Record
<string
, number
>
getTotalTokens()
getTotalTokens(): number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L42
Returns
number
isLimitReached()
isLimitReached(): boolean;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L43
Returns
boolean
reset()
reset(): void;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L44
Returns
void
trackTokens()
trackTokens(count: number, model: string): void;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/dsp/common_types.ts#L39
Parameters
Parameter | Type |
---|---|
count | number |
model | string |
Returns
void