LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmith_openapi_clientresourcesTraceAggregates
Interface●Since v0.10

TraceAggregates

Copy
interface TraceAggregates

Properties

property
first_token_time: string

first_token_time is when the first output token was produced (RFC3339 date-time), when recorded for streamed runs.

property
total_cost: number

total_cost is total estimated USD cost (prompt plus completion).

property
total_tokens: number

total_tokens is prompt plus completion tokens.

View source on GitHub