Interface TokenUsageOrBuilder (0.27.0)

public interface TokenUsageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInputTokenCount()

public abstract int getInputTokenCount()

The total number of input tokens used in this request.

int32 input_token_count = 1;

Returns
Type Description
int

The inputTokenCount.

getOutputTokenCount()

public abstract int getOutputTokenCount()

The total number of output tokens used in this request.

int32 output_token_count = 2;

Returns
Type Description
int

The outputTokenCount.