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_clientresourcesrunsRunsqueryV2
Method●Since v0.9

queryV2

Returns a paginated list of runs for the given projects within min/max start_time. Supports filters, cursor pagination, and selects to select fields to return.

Self-hosted deployments require LangSmith v0.16 or later.

Copy
queryV2(
  params: RunQueryV2Params,
  options: RequestOptions
): PagePromise<RunsItemsCursorPostPagination, Run>

Parameters

NameTypeDescription
params*RunQueryV2Params
optionsRequestOptions

Example

Copy
// Automatically fetches more pages as needed.
for await (const run of client.runs.queryV2()) {
  // ...
}
View source on GitHub