struct AI::Provider::LanguageModel::OutputTokens

Overview

Information about output tokens.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(total : Int32 | Nil = nil, text : Int32 | Nil = nil, reasoning : Int32 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def reasoning : Int32 | Nil #

Number of reasoning tokens used.


[View source]
def text : Int32 | Nil #

Number of text tokens used.


[View source]
def total : Int32 | Nil #

Total number of output (completion) tokens used.


[View source]