AsyncSessionsResource(
self,
client: AsyncLangsmith,
)This property can be used as a prefix for any HTTP method call to return the raw response object instead of the parsed content.
For more information, see https://www.github.com/langchain-ai/langsmith-python#accessing-raw-response-data-eg-headers
An alternative to .with_raw_response that doesn't eagerly read the response body.
For more information, see https://www.github.com/langchain-ai/langsmith-python#with_streaming_response
Delete a specific project.
Returns 202 when deletion is accepted.
Cleanup runs asynchronously. Location identifies the affected project, not a cleanup-status endpoint. For a caller with read access, GET at that URL returns 200 with the project while it is still available, or 404 after the project is removed. A 404 does not confirm that background trace cleanup has finished. Polling for cleanup completion is not supported.
Create a session, or update an existing session with the same name when upsert is true. Returns the refreshed session representation without optional run statistics.
GET with body payload โ no resources created.
Returns the prebuilt dashboard for the tracing project matching the query passed as the request payload.
Returns a page of the workspace's tracing projects and experiments.
Pass the response's next_cursor as cursor to fetch the next page; next_cursor is null on the last page. A cursor is valid only with the same query parameters as the request that returned it.
Returns the tracing project (session) an address names.
An address is an AGENT
(id and environment), an EXPERIMENT (id), or an EVALUATOR (no id:
evaluator traces share one project per workspace). Send kind and environment
in upper case, as listed; they are matched case-insensitively, while the Agent
id is case-sensitive. An address that does not exist, or whose project you
cannot read, is a 404. Pass the returned session_id to any endpoint that takes
a project (session) ID. This is not supported on a BYOC data plane yet, and is a
501 there. Self-hosted deployments need LangSmith v0.18 or later.
Returns one tracing project or experiment by ID.
Pass include_stats=true to include run statistics.
Updates supplied fields and returns the refreshed resource without optional run statistics. Omitted fields remain unchanged. Null clears description, default_dataset_id, end_time, or extra. Extra merges top-level keys; null values remove keys.
Create a new project.
Deprecated: use POST /api/v2/sessions.
The v1 endpoint is scheduled for removal on Jul 1, 2027.
Get a specific project.
Deprecated: use GET /api/v2/sessions/{session_id}.
The v1 endpoint is scheduled for removal on Jul 1, 2027.
Update a project.
Deprecated: use PATCH /api/v2/sessions/{session_id}.
The v1 endpoint is scheduled for removal on Jul 1, 2027.