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

retrieveV2

Returns one run by ID for the given session. Use the selects query parameter (repeatable) to select fields to return.

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

Copy
retrieveV2(
  runID: string,
  params: RunRetrieveV2Params,
  options: RequestOptions
): APIPromise<Run>

Parameters

NameTypeDescription
runID*string
params*RunRetrieveV2Params
optionsRequestOptions

Example

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