struct

Crig::Providers::Gemini::UsageMetadata

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

cached_content_token_count
Source
candidates_token_count
Source
prompt_token_count
Source
thoughts_token_count
Source
token_usage
Source
tool_use_prompt_token_count
Source
total_token_count
Source