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_clientresourcesTrace
Interface●Since v0.10

Trace

Copy
interface Trace

Properties

View source on GitHub
property
root_run: Run
property
trace_aggregates: TraceAggregates

root_run is the trace's root run. Which properties are populated is controlled by selects in the request.

trace_aggregates carries trace-wide aggregate metrics. Omitted when no aggregate field was selected, or null (then later filled) on the streaming wire while the aggregate values are still being computed.