RequestUsage
このコンテンツはまだ日本語訳がありません。
Usage details for a single API request.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RequestUsage(input?): RequestUsage;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”RequestUsage
Properties
Section titled “Properties”inputTokens
Section titled “inputTokens”inputTokens: number;The number of input tokens used for this request.
inputTokensDetails
Section titled “inputTokensDetails”inputTokensDetails: Record<string, number>;Details about the input tokens used for this request.
outputTokens
Section titled “outputTokens”outputTokens: number;The number of output tokens used for this request.
outputTokensDetails
Section titled “outputTokensDetails”outputTokensDetails: Record<string, number>;Details about the output tokens used for this request.
totalTokens
Section titled “totalTokens”totalTokens: number;The total number of tokens sent and received for this request.