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
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmith_openapi_clientresourcesthreadsAsyncThreadsResource
Class●Since v0.10

AsyncThreadsResource

Copy
AsyncThreadsResource(
    self,
    client: AsyncLangsmith,
)

Bases

AsyncAPIResource

Methods

View source on GitHub
method
with_raw_response
method
with_streaming_response
method
list_traces
method
query
method
stats

This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.

An alternative to .with_raw_response that doesn't eagerly read the response body.

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

Alpha: The request and response contract may change; Query threads within a project (session), with cursor-based pagination. Returns threads matching the given time range and optional filter.

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.