LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
PythonlangsmithschemasOutputTokenDetails
Class●Since v0.1

OutputTokenDetails

Breakdown of output token counts.

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

Copy
OutputTokenDetails()

Bases

TypedDict

Constructors

constructor
__init__
NameType
audioint
reasoningint

Attributes

attribute
audio: int

Audio output tokens.

attribute
reasoning: int

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.

View source on GitHub