Annotation queues: add runs
Add runs to an annotation queue. The SmithDB-backed path takes each run’s full lookup key—its ID plus thesession_id (project UUID) and start_time partition keys—so the run can be located directly instead of scanned for.
This method stays on the existing client, not the new
runs v2 client, so the Exceptions table does not apply—error handling is unchanged.Main changes
Method name
- Python
- TypeScript
- Java
- Go
- cURL
No change—
client.add_runs_to_annotation_queue(). The SmithDB path is selected by the parameters you pass (see Inputs below).See the reference for the full parameter list.Inputs
- Python
- TypeScript
- Java
- Go
- cURL
Provide exactly one of
runs or run_ids; passing both raises a LangSmithUserError.Response
- Python
- TypeScript
- Java
- Go
- cURL
No change. Both
run_ids= and runs= return None.Examples
Add runs to a queue
- Python
- TypeScript
- Java
- Go
- cURL
run_ids= takes a plain list of run IDs. runs= takes each run’s full lookup key—read run_id, session_id, and start_time off the run objects you already have.- Before
- After
Before
Share and read public runs
Share a trace, remove its public access, or read the runs in a publicly shared trace. The v2 methods use explicit SmithDB coordinates and return select-driven run objects. Public read methods do not require a LangSmith API key. Treat the share token as a secret because anyone with the token can read the shared trace.Main changes
Method names
- Python
- TypeScript
- Java
- Go
- cURL
The v2 resource methods are async. Call them with
await.Share and unshare parameters
- Python
- TypeScript
- cURL
runs.share.createtakes the run ID as its positional argument. Passsession_id(the tracing project UUID) andtrace_id(the root trace UUID).runs.share.deletetakes the root trace ID, not an arbitrary child run ID. Pass the tracing project UUID assession_id.share_idis removed. The server generates the share token.
session_id and trace_id when sharing, and provide session_id when unsharing. SmithDB uses these coordinates for the lookup.
Public read parameters
public.runs.querytakes the share token and aselectslist. The token scopes the query to the complete shared trace. The legacy run-ID filter and cursor response are removed.public.runs.retrieverequires the run ID, share token, exact runstart_time, and aselectslist. Obtain the exact stored start time frompublic.runs.query.- The public point read returns only selected fields. Use
ID,NAME,RUN_TYPE,STATUS, andSTART_TIMEfor the examples below. - To retrieve the public URL for an authenticated run, call
runs.retrievewithselects=["SHARE_URL"], then readrun.share_url. Supplyingstart_timegives SmithDB the most efficient lookup.
share_url uses the deployment’s configured application origin and works for both Cloud and self-hosted deployments.
Responses
Examples
The examples query the public trace before the point read becausepublic.runs.retrieve requires the run’s exact stored start_time.
- Python
- TypeScript
- cURL
- Before
- After
Feedback: create
Create feedback (a score, correction, or comment) for a run.Main changes
Required parameter
The method name and endpoint are unchanged. Only the session (project) ID requirement changes.- Python
- TypeScript
- Java
- Go
- cURL
Examples
Provide session_id when creating feedback
- Python
- TypeScript
- Java
- Go
- cURL
create_feedback now requires session_id in addition to run_id.- Before
- After
Before
See also
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

