LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithclientClientadd_runs_to_annotation_queue
Method●Since v0.2

add_runs_to_annotation_queue

Copy
add_runs_to_annotation_queue(
  self,
  queue_id: ID_TYPE,
  *,
  run_ids: Optional[list[ID_TYPE]
View source on GitHub
]
=
None
,
runs
:
Optional
[
Sequence
[
ls_schemas
.
RunKey
]
]
=
None
)
->
None

Parameters

NameTypeDescription
queue_id*Union[UUID, str]

The ID of the annotation queue.

run_idsOptional[List[Union[UUID, str]]]
Default:None
runsOptional[Sequence[RunKey]]
Default:None

Add runs to an annotation queue with the specified queue_id.

Provide exactly one of runs or run_ids:

  • runs (preferred): each entry carries the run's full lookup key (run_id, session_id, start_time, and an optional source_proposed_example_id). This lets the run be located directly, without a scan, and is required for workspaces served by SmithDB.
  • run_ids: a plain list of run IDs. This path is deprecated and will be removed after Jan 31, 2027; prefer runs. See https://docs.langchain.com/langsmith/smithdb-sdk-migration#annotation-queues-add-runs.

The IDs of the runs to be added to the annotation queue.

The runs to add, each with its full lookup key.