Crig::Providers::Gemini::UsageMetadata
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(prompt_token_count : Int32, cached_content_token_count : Int32 | Nil = nil, candidates_token_count : Int32 | Nil = nil, total_token_count : Int32 = 0, thoughts_token_count : Int32 | Nil = nil, 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