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
JavaScriptlangsmithclientClientaddRunsToAnnotationQueue
Method●Since v0.2

addRunsToAnnotationQueue

Add runs to an annotation queue with the specified queue ID.

The second argument is either:

  • RunKey[] (preferred): each entry carries the run's full lookup key, so it can be located directly without a scan. Required for workspaces served by SmithDB; routes to POST /runs/by-key.
  • string[]: a plain list of run IDs. Deprecated: this path will be removed after Jan 31, 2027; prefer the key form. Routes to POST /runs. See https://docs.langchain.com/langsmith/smithdb-sdk-migration#annotation-queues-add-runs.

If every element is a string (or the list is empty) it is treated as run IDs; otherwise the list is treated as RunKey objects.

Copy
addRunsToAnnotationQueue(queueId: string, runs: string[] | RunKey[]): Promise<void>

Parameters

NameTypeDescription
queueId*string

The ID of the annotation queue

runs*string[] | RunKey[]

Either a list of run IDs (deprecated) or a list of run keys.

View source on GitHub