Interface UsageMetadata (0.2.1)

Usage metadata about response(s). {number} - [prompt_token_count]. Number of tokens in the request. {number} - [candidates_token_count]. Number of tokens in the response(s). {number} - [totalTokenCount]. Total number of tokens.

Package

@google-cloud/vertexai

Properties

candidates_token_count

candidates_token_count?: number;

prompt_token_count

prompt_token_count?: number;

totalTokenCount

totalTokenCount?: number;