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_clientLangsmithRuns
Class●Since v0.8

Runs

Copy
class Runs

Bases

APIResource

Constructors

constructor
constructor

Properties

property
_client: Langsmith
property
query: (params: RunQueryV2Params, options?: RequestOptions) => PagePromise<RunsItemsCursorPostPagination, Run>
property
retrieve: (runID: string, params: RunRetrieveV2Params, options?: RequestOptions) => APIPromise<Run>
property
share: Share

Methods

method
getURL→ APIPromise<RunGetURLResponse>

Returns the URL to view a specific run in the LangSmith UI. The caller must supply the run's project_id and trace_id as query parameters; start_time is optional.

method
queryV2→ PagePromise<RunsItemsCursorPostPagination, Run>

Alpha: The request and response contract may change; 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.

method
retrieveV2→ APIPromise<Run>

Alpha: The request and response contract may change; Returns one run by ID for the given session. Use the selects query parameter (repeatable) to select fields to return.

View source on GitHub