Interface UsageMetadata (1.9.0)

Usage metadata about response(s).

Package

@google-cloud/vertexai

Properties

candidatesTokenCount

candidatesTokenCount?: number;

Optional. Number of tokens in the response(s).

promptTokenCount

promptTokenCount?: number;

Optional. Number of tokens in the request.

totalTokenCount

totalTokenCount?: number;

Optional. Total number of tokens.