struct

Usage

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(prompt_tokens : Int32, completion_tokens : Int32, total_tokens : Int32)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

completion_tokens
Source
completion_tokens=(completion_tokens : Int32)
Source
prompt_tokens
Source
prompt_tokens=(prompt_tokens : Int32)
Source
total_tokens
Source
total_tokens=(total_tokens : Int32)
Source