MistralClient.Models.Usage (mistralex_ai v0.1.0)

View Source

Represents token usage information.

Summary

Functions

Create usage information from a map.

Types

t()

@type t() :: %MistralClient.Models.Usage{
  completion_tokens: integer(),
  prompt_tokens: integer(),
  total_tokens: integer()
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Create usage information from a map.