Usage
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(prompt_tokens : Int32, completion_tokens : Int32, total_tokens : Int32)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
completion_tokens
Sourcecompletion_tokens=(completion_tokens : Int32)
Sourceprompt_tokens
Sourceprompt_tokens=(prompt_tokens : Int32)
Sourcetotal_tokens
Sourcetotal_tokens=(total_tokens : Int32)
Source