Skip to main content

TokenUsage Interface

Total usage of tokens by an LLM.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

export interface TokenUsage

Properties

Property Alerts Type Description
inputTokens Alpha number The total number of tokens used by the LLM for input.
outputTokens Alpha number The total number of tokens used by the LLM for output.

Property Details

inputTokens

The total number of tokens used by the LLM for input.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

inputTokens: number;

Type: number

outputTokens

The total number of tokens used by the LLM for output.

This API is provided as an alpha preview and may change without notice.

To use, import via @fluidframework/ai-collab/alpha.

For more information about our API support guarantees, see here.

Signature

outputTokens: number;

Type: number