langchain.js
    Preparing search index...

    Type Alias OutputTokenDetails

    OutputTokenDetails: { audio?: number; reasoning?: number } & Record<
        string,
        number,
    >

    Breakdown of output token counts.

    Does not need to sum to full output token count. Does not need to have all keys.

    Type Declaration

    • Optionalaudio?: number

      Audio output tokens

    • Optionalreasoning?: number

      Reasoning output tokens.

      Tokens generated by the model in a chain of thought process (i.e. by OpenAI's o1 models) that are not returned as part of model output.