langchain.js
    Preparing search index...

    Type Alias OutputTokenDetails

    OutputTokenDetails: ModalitiesTokenDetails & { reasoning?: 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

    • 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.