UsageDict

class opik.types.UsageDict

Bases: TypedDict

A TypedDict representing token usage information.

This class defines the structure for token usage, including fields for completion tokens, prompt tokens, and the total number of tokens used.

completion_tokens: int

The number of tokens used for the completion.

prompt_tokens: int

The number of tokens used for the prompt.

total_tokens: int

The total number of tokens used, including both prompt and completion.