struct

AI::Provider::LanguageModel::Usage

Inherits JSON::Serializable < Struct < Value < Object

Usage information for a language model call.

Constructors

new(input_tokens : InputTokens, output_tokens : OutputTokens, raw : JSON::Any | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

input_tokens

Information about input tokens.

Source
output_tokens

Information about output tokens.

Source
raw

Raw usage information from the provider.

Source