View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata (google_api_ai_platform v0.24.0)
Usage metadata about response(s).
Attributes
-
cachedContentTokenCount(type:integer(), default:nil) - Output only. Number of tokens in the cached part in the input (the cached content). -
candidatesTokenCount(type:integer(), default:nil) - Number of tokens in the response(s). -
promptTokenCount(type:integer(), default:nil) - Number of tokens in the request. Whencached_contentis set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. -
totalTokenCount(type:integer(), default:nil) - Total token count for prompt and response candidates.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.