struct

Crig::Completion::Usage

Inherits Crig::Completion::GetTokenUsage < JSON::Serializable < Struct < Value < Object

Constructors

new(input_tokens : Int64 = 0, output_tokens : Int64 = 0, total_tokens : Int64 = 0, cached_input_tokens : Int64 = 0, cache_creation_input_tokens : Int64 = 0, reasoning_tokens : Int64 = 0, tool_use_prompt_tokens : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

+(other : self) : self
Source
add!(other : self) : self
Source
cache_creation_input_tokens
Source
cached_input_tokens
Source
input_tokens
Source
output_tokens
Source
reasoning_tokens
Source
token_usage
Source
tool_use_prompt_tokens
Source
total_tokens
Source