Crig::Providers::Gemini::PartialUsage
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(total_token_count : Int32 = 0, cached_content_token_count : Int32 | Nil = nil, candidates_token_count : Int32 | Nil = nil, thoughts_token_count : Int32 | Nil = nil, prompt_token_count : Int32 = 0, tool_use_prompt_token_count : Int32 | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
cached_content_token_count
Sourcecandidates_token_count
Sourceprompt_token_count
Sourcethoughts_token_count
Sourcetoken_usage
Sourcetool_use_prompt_token_count
Sourcetotal_token_count
Source