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_clientresourcesTraceslistRuns
Method●Since v0.10

listRuns

Alpha: The request and response contract may change; Returns runs for a trace ID within min/max start time. Optional filter; repeatable selects to select fields to return.

Copy
listRuns(
  traceID: string,
  params: TraceListRunsParams,
  options: RequestOptions
): APIPromise<TraceListRunsResponse>

Parameters

NameTypeDescription
traceID*string
params*TraceListRunsParams
optionsRequestOptions

Example

Copy
const response = await client.traces.listRuns(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  { project_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
);
View source on GitHub