Crig::Completion::Usage
Inherits Crig::Completion::GetTokenUsage < JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
+(other : self) : self
Sourceadd!(other : self) : self
Sourcecache_creation_input_tokens
Sourcecached_input_tokens
Sourceinput_tokens
Sourceoutput_tokens
Sourcereasoning_tokens
Sourcetoken_usage
Sourcetool_use_prompt_tokens
Sourcetotal_tokens
Source