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

retrieve

Returns one run within the trace identified by the share token. The request supplies only the run ID and that run's exact start_time coordinate.

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

Copy
retrieve(
  runID: string,
  params: RunRetrieveParams,
  options: RequestOptions
): APIPromise<Run>

Parameters

NameTypeDescription
runID*string
params*RunRetrieveParams
optionsRequestOptions

Example

Copy
const run = await client.public.runs.retrieve(
  '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
  {
    share_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
    selects: ['string'],
    start_time: '2019-12-27T18:11:19.117Z',
  },
);
View source on GitHub