UsageMetadata: {
    input_tokens: number;
    output_tokens: number;
    total_tokens: number;
}

Usage metadata for a message, such as token counts.

Type declaration

  • input_tokens: number

    The count of input (or prompt) tokens.

  • output_tokens: number

    The count of output (or completion) tokens

  • total_tokens: number

    The total token count

Generated using TypeDoc