struct

AI::Provider::LanguageModel::OutputTokens

Inherits JSON::Serializable < Struct < Value < Object

Information about output tokens.

Constructors

new(total : Int32 | Nil = nil, text : Int32 | Nil = nil, reasoning : Int32 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

reasoning

Number of reasoning tokens used.

Source
text

Number of text tokens used.

Source
total

Total number of output (completion) tokens used.

Source