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

query

Returns all runs within the trace identified by the share token. The share token supplies the tenant, project, and trace scope.

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

Copy
query(
  shareToken: string,
  params: RunQueryParams,
  options: RequestOptions
): APIPromise<RunQueryResponse>

Parameters

NameTypeDescription
shareToken*string
params*RunQueryParams
optionsRequestOptions

Example

Copy
const response = await client.public.runs.query(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
);
View source on GitHub