AI::Google::UsageMetadata
Inherits JSON::Serializable < Struct < Value < Object
Google Generative AI usage metadata from the API response.
Constructors
new(pull : JSON::PullParser)
Sourcenew(prompt_token_count : Int32 | Nil = nil, candidates_token_count : Int32 | Nil = nil, total_token_count : Int32 | Nil = nil, cached_content_token_count : Int32 | Nil = nil, thoughts_token_count : Int32 | Nil = nil, traffic_type : String | 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
Sourcetotal_token_count
Sourcetraffic_type
Source