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_clientLangsmithThreads
Class●Since v0.10

Threads

Copy
class Threads

Bases

APIResource

Constructors

Properties

Methods

View source on GitHub
constructor
constructor
property
_client: Langsmith
method
listTraces→ PagePromise<ThreadTraceListItemsItemsCursorGetPagination, ThreadTraceListItem>
method
query→ PagePromise<ExperimentRunQueryResponsesItemsCursorPostPagination, ExperimentRunQueryResponse>
method
stats→ APIPromise<ThreadStatsResponse>

Alpha: The request and response contract may change; Retrieve all traces belonging to a specific thread within a project.

Returns a paginated page of dataset examples with runs from the requested experiments. Response uses the canonical {items, next_cursor} envelope.

Alpha: The request and response contract may change; Compute aggregate stats for a single thread (turn count, latency percentiles, token/cost sums, and detail breakdowns) within a project.