langsmith 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +10 -0
  2. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +10 -0
  3. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +10 -0
  4. package/dist/_openapi_client/resources/annotation-queues/runs.cjs +13 -1
  5. package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +13 -1
  6. package/dist/_openapi_client/resources/annotation-queues/runs.js +13 -1
  7. package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +2 -0
  8. package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +2 -0
  9. package/dist/_openapi_client/resources/datasets/experiment-runs.js +2 -0
  10. package/dist/_openapi_client/resources/issues.d.ts +1 -1
  11. package/dist/_openapi_client/resources/public/runs.cjs +9 -7
  12. package/dist/_openapi_client/resources/public/runs.d.ts +8 -6
  13. package/dist/_openapi_client/resources/public/runs.js +9 -7
  14. package/dist/_openapi_client/resources/runs/runs.cjs +11 -6
  15. package/dist/_openapi_client/resources/runs/runs.d.ts +11 -6
  16. package/dist/_openapi_client/resources/runs/runs.js +11 -6
  17. package/dist/_openapi_client/resources/runs/share.cjs +4 -0
  18. package/dist/_openapi_client/resources/runs/share.d.ts +4 -0
  19. package/dist/_openapi_client/resources/runs/share.js +4 -0
  20. package/dist/_openapi_client/resources/threads.cjs +11 -8
  21. package/dist/_openapi_client/resources/threads.d.ts +11 -8
  22. package/dist/_openapi_client/resources/threads.js +11 -8
  23. package/dist/_openapi_client/resources/traces.cjs +6 -3
  24. package/dist/_openapi_client/resources/traces.d.ts +6 -3
  25. package/dist/_openapi_client/resources/traces.js +6 -3
  26. package/dist/client.cjs +262 -20
  27. package/dist/client.d.ts +53 -3
  28. package/dist/client.js +262 -20
  29. package/dist/evaluation/evaluate_comparative.cjs +7 -4
  30. package/dist/evaluation/evaluate_comparative.js +7 -4
  31. package/dist/index.cjs +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/sandbox/command_handle.cjs +34 -7
  35. package/dist/sandbox/command_handle.d.ts +1 -0
  36. package/dist/sandbox/command_handle.js +34 -7
  37. package/dist/sandbox/ws_execute.cjs +7 -3
  38. package/dist/sandbox/ws_execute.d.ts +4 -2
  39. package/dist/sandbox/ws_execute.js +7 -3
  40. package/dist/utils/v2_migration.cjs +18 -0
  41. package/dist/utils/v2_migration.d.ts +8 -0
  42. package/dist/utils/v2_migration.js +16 -0
  43. package/dist/utils/warn.cjs +30 -4
  44. package/dist/utils/warn.d.ts +4 -1
  45. package/dist/utils/warn.js +29 -4
  46. package/package.json +1 -1
@@ -85,6 +85,8 @@ class AnnotationQueues extends resource_js_1.APIResource {
85
85
  }
86
86
  /**
87
87
  * Create Identity Annotation Queue Run Status
88
+ *
89
+ * @deprecated Deprecated: use the annotation queue items create_status method (POST /api/v1/platform/annotation-queues/items/{queue_item_id}/status) instead. Will be removed after Jan 31, 2027.
88
90
  */
89
91
  createRunStatus(annotationQueueRunID, body, options) {
90
92
  return this._client.post((0, path_js_1.path) `/api/v1/annotation-queues/status/${annotationQueueRunID}`, {
@@ -118,6 +120,8 @@ class AnnotationQueues extends resource_js_1.APIResource {
118
120
  }
119
121
  /**
120
122
  * Get a run from an annotation queue
123
+ *
124
+ * @deprecated Deprecated: use the annotation queue items list and retrieve_placement methods instead, which call GET /api/v1/platform/annotation-queues/{queue_id}/items and GET /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}/placement. Will be removed after Jan 31, 2027.
121
125
  */
122
126
  retrieveRun(index, params, options) {
123
127
  const { queue_id, ...query } = params;
@@ -125,18 +129,24 @@ class AnnotationQueues extends resource_js_1.APIResource {
125
129
  }
126
130
  /**
127
131
  * Get Size From Annotation Queue
132
+ *
133
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count) with the desired status instead. Will be removed after Jan 31, 2027.
128
134
  */
129
135
  retrieveSize(queueID, query = {}, options) {
130
136
  return this._client.get((0, path_js_1.path) `/api/v1/annotation-queues/${queueID}/size`, { query, ...options });
131
137
  }
132
138
  /**
133
139
  * Get Total Archived From Annotation Queue
140
+ *
141
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=archived) instead. Will be removed after Jan 31, 2027.
134
142
  */
135
143
  retrieveTotalArchived(queueID, query = {}, options) {
136
144
  return this._client.get((0, path_js_1.path) `/api/v1/annotation-queues/${queueID}/total_archived`, { query, ...options });
137
145
  }
138
146
  /**
139
147
  * Get Total Size From Annotation Queue
148
+ *
149
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=all) instead. Will be removed after Jan 31, 2027.
140
150
  */
141
151
  retrieveTotalSize(queueID, options) {
142
152
  return this._client.get((0, path_js_1.path) `/api/v1/annotation-queues/${queueID}/total_size`, options);
@@ -29,6 +29,8 @@ export declare class AnnotationQueues extends APIResource {
29
29
  annotationQueues(body: AnnotationQueueAnnotationQueuesParams, options?: RequestOptions): APIPromise<AnnotationQueueSchema>;
30
30
  /**
31
31
  * Create Identity Annotation Queue Run Status
32
+ *
33
+ * @deprecated Deprecated: use the annotation queue items create_status method (POST /api/v1/platform/annotation-queues/items/{queue_item_id}/status) instead. Will be removed after Jan 31, 2027.
32
34
  */
33
35
  createRunStatus(annotationQueueRunID: string, body: AnnotationQueueCreateRunStatusParams, options?: RequestOptions): APIPromise<unknown>;
34
36
  /**
@@ -49,18 +51,26 @@ export declare class AnnotationQueues extends APIResource {
49
51
  retrieveQueues(runID: string, options?: RequestOptions): APIPromise<AnnotationQueueRetrieveQueuesResponse>;
50
52
  /**
51
53
  * Get a run from an annotation queue
54
+ *
55
+ * @deprecated Deprecated: use the annotation queue items list and retrieve_placement methods instead, which call GET /api/v1/platform/annotation-queues/{queue_id}/items and GET /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}/placement. Will be removed after Jan 31, 2027.
52
56
  */
53
57
  retrieveRun(index: number, params: AnnotationQueueRetrieveRunParams, options?: RequestOptions): APIPromise<RunSchemaWithAnnotationQueueInfo>;
54
58
  /**
55
59
  * Get Size From Annotation Queue
60
+ *
61
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count) with the desired status instead. Will be removed after Jan 31, 2027.
56
62
  */
57
63
  retrieveSize(queueID: string, query?: AnnotationQueueRetrieveSizeParams | null | undefined, options?: RequestOptions): APIPromise<AnnotationQueueSizeSchema>;
58
64
  /**
59
65
  * Get Total Archived From Annotation Queue
66
+ *
67
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=archived) instead. Will be removed after Jan 31, 2027.
60
68
  */
61
69
  retrieveTotalArchived(queueID: string, query?: AnnotationQueueRetrieveTotalArchivedParams | null | undefined, options?: RequestOptions): APIPromise<AnnotationQueueSizeSchema>;
62
70
  /**
63
71
  * Get Total Size From Annotation Queue
72
+ *
73
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=all) instead. Will be removed after Jan 31, 2027.
64
74
  */
65
75
  retrieveTotalSize(queueID: string, options?: RequestOptions): APIPromise<AnnotationQueueSizeSchema>;
66
76
  }
@@ -49,6 +49,8 @@ export class AnnotationQueues extends APIResource {
49
49
  }
50
50
  /**
51
51
  * Create Identity Annotation Queue Run Status
52
+ *
53
+ * @deprecated Deprecated: use the annotation queue items create_status method (POST /api/v1/platform/annotation-queues/items/{queue_item_id}/status) instead. Will be removed after Jan 31, 2027.
52
54
  */
53
55
  createRunStatus(annotationQueueRunID, body, options) {
54
56
  return this._client.post(path `/api/v1/annotation-queues/status/${annotationQueueRunID}`, {
@@ -82,6 +84,8 @@ export class AnnotationQueues extends APIResource {
82
84
  }
83
85
  /**
84
86
  * Get a run from an annotation queue
87
+ *
88
+ * @deprecated Deprecated: use the annotation queue items list and retrieve_placement methods instead, which call GET /api/v1/platform/annotation-queues/{queue_id}/items and GET /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}/placement. Will be removed after Jan 31, 2027.
85
89
  */
86
90
  retrieveRun(index, params, options) {
87
91
  const { queue_id, ...query } = params;
@@ -89,18 +93,24 @@ export class AnnotationQueues extends APIResource {
89
93
  }
90
94
  /**
91
95
  * Get Size From Annotation Queue
96
+ *
97
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count) with the desired status instead. Will be removed after Jan 31, 2027.
92
98
  */
93
99
  retrieveSize(queueID, query = {}, options) {
94
100
  return this._client.get(path `/api/v1/annotation-queues/${queueID}/size`, { query, ...options });
95
101
  }
96
102
  /**
97
103
  * Get Total Archived From Annotation Queue
104
+ *
105
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=archived) instead. Will be removed after Jan 31, 2027.
98
106
  */
99
107
  retrieveTotalArchived(queueID, query = {}, options) {
100
108
  return this._client.get(path `/api/v1/annotation-queues/${queueID}/total_archived`, { query, ...options });
101
109
  }
102
110
  /**
103
111
  * Get Total Size From Annotation Queue
112
+ *
113
+ * @deprecated Deprecated: use the annotation queue items retrieve_count method (GET /api/v1/platform/annotation-queues/{queue_id}/items/count?status=all) instead. Will be removed after Jan 31, 2027.
104
114
  */
105
115
  retrieveTotalSize(queueID, options) {
106
116
  return this._client.get(path `/api/v1/annotation-queues/${queueID}/total_size`, options);
@@ -8,6 +8,8 @@ const path_js_1 = require("../../internal/utils/path.cjs");
8
8
  class Runs extends resource_js_1.APIResource {
9
9
  /**
10
10
  * Add Runs To Annotation Queue
11
+ *
12
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
11
13
  */
12
14
  create(queueID, params, options) {
13
15
  const { body, extend_trace_retention } = params;
@@ -19,6 +21,8 @@ class Runs extends resource_js_1.APIResource {
19
21
  }
20
22
  /**
21
23
  * Update Run In Annotation Queue
24
+ *
25
+ * @deprecated Deprecated: use the annotation queue items update method (PATCH /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}) instead. Will be removed after Jan 31, 2027.
22
26
  */
23
27
  update(queueRunID, params, options) {
24
28
  const { queue_id, ...body } = params;
@@ -29,12 +33,16 @@ class Runs extends resource_js_1.APIResource {
29
33
  }
30
34
  /**
31
35
  * Get Runs From Annotation Queue
36
+ *
37
+ * @deprecated Deprecated: use the annotation queue items list method (GET /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
32
38
  */
33
39
  list(queueID, query = {}, options) {
34
40
  return this._client.get((0, path_js_1.path) `/api/v1/annotation-queues/${queueID}/runs`, { query, ...options });
35
41
  }
36
42
  /**
37
- * Add Runs To Annotation Queue By Key
43
+ * Self-hosted deployments require LangSmith `v0.16` or later.
44
+ *
45
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
38
46
  */
39
47
  createByKey(queueID, params, options) {
40
48
  const { body, extend_trace_retention } = params;
@@ -46,12 +54,16 @@ class Runs extends resource_js_1.APIResource {
46
54
  }
47
55
  /**
48
56
  * Delete Runs From Annotation Queue
57
+ *
58
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) instead. Will be removed after Jan 31, 2027.
49
59
  */
50
60
  deleteAll(queueID, body, options) {
51
61
  return this._client.post((0, path_js_1.path) `/api/v1/annotation-queues/${queueID}/runs/delete`, { body, ...options });
52
62
  }
53
63
  /**
54
64
  * Delete Run From Annotation Queue
65
+ *
66
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) with the item ID instead. Will be removed after Jan 31, 2027.
55
67
  */
56
68
  deleteQueue(queueRunID, params, options) {
57
69
  const { queue_id } = params;
@@ -5,26 +5,38 @@ import { RequestOptions } from '../../internal/request-options.js';
5
5
  export declare class Runs extends APIResource {
6
6
  /**
7
7
  * Add Runs To Annotation Queue
8
+ *
9
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
8
10
  */
9
11
  create(queueID: string, params: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
10
12
  /**
11
13
  * Update Run In Annotation Queue
14
+ *
15
+ * @deprecated Deprecated: use the annotation queue items update method (PATCH /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}) instead. Will be removed after Jan 31, 2027.
12
16
  */
13
17
  update(queueRunID: string, params: RunUpdateParams, options?: RequestOptions): APIPromise<unknown>;
14
18
  /**
15
19
  * Get Runs From Annotation Queue
20
+ *
21
+ * @deprecated Deprecated: use the annotation queue items list method (GET /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
16
22
  */
17
23
  list(queueID: string, query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
18
24
  /**
19
- * Add Runs To Annotation Queue By Key
25
+ * Self-hosted deployments require LangSmith `v0.16` or later.
26
+ *
27
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
20
28
  */
21
29
  createByKey(queueID: string, params: RunCreateByKeyParams, options?: RequestOptions): APIPromise<RunCreateByKeyResponse>;
22
30
  /**
23
31
  * Delete Runs From Annotation Queue
32
+ *
33
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) instead. Will be removed after Jan 31, 2027.
24
34
  */
25
35
  deleteAll(queueID: string, body: RunDeleteAllParams, options?: RequestOptions): APIPromise<unknown>;
26
36
  /**
27
37
  * Delete Run From Annotation Queue
38
+ *
39
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) with the item ID instead. Will be removed after Jan 31, 2027.
28
40
  */
29
41
  deleteQueue(queueRunID: string, params: RunDeleteQueueParams, options?: RequestOptions): APIPromise<unknown>;
30
42
  }
@@ -5,6 +5,8 @@ import { path } from '../../internal/utils/path.js';
5
5
  export class Runs extends APIResource {
6
6
  /**
7
7
  * Add Runs To Annotation Queue
8
+ *
9
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
8
10
  */
9
11
  create(queueID, params, options) {
10
12
  const { body, extend_trace_retention } = params;
@@ -16,6 +18,8 @@ export class Runs extends APIResource {
16
18
  }
17
19
  /**
18
20
  * Update Run In Annotation Queue
21
+ *
22
+ * @deprecated Deprecated: use the annotation queue items update method (PATCH /api/v1/platform/annotation-queues/{queue_id}/items/{item_id}) instead. Will be removed after Jan 31, 2027.
19
23
  */
20
24
  update(queueRunID, params, options) {
21
25
  const { queue_id, ...body } = params;
@@ -26,12 +30,16 @@ export class Runs extends APIResource {
26
30
  }
27
31
  /**
28
32
  * Get Runs From Annotation Queue
33
+ *
34
+ * @deprecated Deprecated: use the annotation queue items list method (GET /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
29
35
  */
30
36
  list(queueID, query = {}, options) {
31
37
  return this._client.get(path `/api/v1/annotation-queues/${queueID}/runs`, { query, ...options });
32
38
  }
33
39
  /**
34
- * Add Runs To Annotation Queue By Key
40
+ * Self-hosted deployments require LangSmith `v0.16` or later.
41
+ *
42
+ * @deprecated Deprecated: use the annotation queue items create endpoint (POST /api/v1/platform/annotation-queues/{queue_id}/items) instead. Will be removed after Jan 31, 2027.
35
43
  */
36
44
  createByKey(queueID, params, options) {
37
45
  const { body, extend_trace_retention } = params;
@@ -43,12 +51,16 @@ export class Runs extends APIResource {
43
51
  }
44
52
  /**
45
53
  * Delete Runs From Annotation Queue
54
+ *
55
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) instead. Will be removed after Jan 31, 2027.
46
56
  */
47
57
  deleteAll(queueID, body, options) {
48
58
  return this._client.post(path `/api/v1/annotation-queues/${queueID}/runs/delete`, { body, ...options });
49
59
  }
50
60
  /**
51
61
  * Delete Run From Annotation Queue
62
+ *
63
+ * @deprecated Deprecated: use the annotation queue items delete_all method (POST /api/v1/platform/annotation-queues/{queue_id}/items/delete) with the item ID instead. Will be removed after Jan 31, 2027.
52
64
  */
53
65
  deleteQueue(queueRunID, params, options) {
54
66
  const { queue_id } = params;
@@ -10,6 +10,8 @@ class ExperimentRuns extends resource_js_1.APIResource {
10
10
  /**
11
11
  * Returns a paginated page of dataset examples with runs from the requested
12
12
  * experiments. Response uses the canonical `{items, next_cursor}` envelope.
13
+ *
14
+ * Self-hosted deployments require LangSmith `v0.16` or later.
13
15
  */
14
16
  query(datasetID, body, options) {
15
17
  return this._client.getAPIList((0, path_js_1.path) `/api/v2/datasets/${datasetID}/experiment-runs`, (pagination_js_1.ItemsCursorPostPagination), { body, method: 'post', ...options });
@@ -6,6 +6,8 @@ export declare class ExperimentRuns extends APIResource {
6
6
  /**
7
7
  * Returns a paginated page of dataset examples with runs from the requested
8
8
  * experiments. Response uses the canonical `{items, next_cursor}` envelope.
9
+ *
10
+ * Self-hosted deployments require LangSmith `v0.16` or later.
9
11
  */
10
12
  query(datasetID: string, body: ExperimentRunQueryParams, options?: RequestOptions): PagePromise<ExperimentRunQueryResponsesItemsCursorPostPagination, ExperimentRunQueryResponse>;
11
13
  }
@@ -7,6 +7,8 @@ export class ExperimentRuns extends APIResource {
7
7
  /**
8
8
  * Returns a paginated page of dataset examples with runs from the requested
9
9
  * experiments. Response uses the canonical `{items, next_cursor}` envelope.
10
+ *
11
+ * Self-hosted deployments require LangSmith `v0.16` or later.
10
12
  */
11
13
  query(datasetID, body, options) {
12
14
  return this._client.getAPIList(path `/api/v2/datasets/${datasetID}/experiment-runs`, (ItemsCursorPostPagination), { body, method: 'post', ...options });
@@ -69,7 +69,7 @@ export interface IssueListParams extends OffsetPaginationIssuesParams {
69
69
  /**
70
70
  * Filter by status
71
71
  */
72
- status?: 'open' | 'completed' | 'ignored';
72
+ status?: 'open' | 'fixing' | 'watching' | 'completed' | 'ignored';
73
73
  /**
74
74
  * Filter by tag (exact match)
75
75
  */
@@ -8,9 +8,10 @@ const headers_js_1 = require("../../internal/headers.cjs");
8
8
  const path_js_1 = require("../../internal/utils/path.cjs");
9
9
  class Runs extends resource_js_1.APIResource {
10
10
  /**
11
- * **Alpha:** The request and response contract may change; Returns one run within
12
- * the trace identified by the share token. The request supplies only the run ID
13
- * and that run's exact start_time coordinate.
11
+ * Returns one run within the trace identified by the share token. The request
12
+ * supplies only the run ID and that run's exact start_time coordinate.
13
+ *
14
+ * Self-hosted deployments require LangSmith `v0.16` or later.
14
15
  *
15
16
  * @example
16
17
  * ```ts
@@ -33,9 +34,10 @@ class Runs extends resource_js_1.APIResource {
33
34
  });
34
35
  }
35
36
  /**
36
- * **Alpha:** The request and response contract may change; Returns all runs within
37
- * the trace identified by the share token. The share token supplies the tenant,
38
- * project, and trace scope.
37
+ * Returns all runs within the trace identified by the share token. The share token
38
+ * supplies the tenant, project, and trace scope.
39
+ *
40
+ * Self-hosted deployments require LangSmith `v0.16` or later.
39
41
  *
40
42
  * @example
41
43
  * ```ts
@@ -46,7 +48,7 @@ class Runs extends resource_js_1.APIResource {
46
48
  */
47
49
  query(shareToken, params, options) {
48
50
  const { Accept, ...body } = params;
49
- return this._client.post((0, path_js_1.path) `/api/v2/public/${shareToken}/runs/v2/query`, {
51
+ return this._client.post((0, path_js_1.path) `/api/v2/public/${shareToken}/runs/query`, {
50
52
  body,
51
53
  ...options,
52
54
  headers: (0, headers_js_1.buildHeaders)([{ ...(Accept != null ? { Accept: Accept } : undefined) }, options?.headers]),
@@ -4,9 +4,10 @@ import { RequestOptions } from '../../internal/request-options.js';
4
4
  import * as RunsAPI_ from '../runs/runs.js';
5
5
  export declare class Runs extends APIResource {
6
6
  /**
7
- * **Alpha:** The request and response contract may change; Returns one run within
8
- * the trace identified by the share token. The request supplies only the run ID
9
- * and that run's exact start_time coordinate.
7
+ * Returns one run within the trace identified by the share token. The request
8
+ * supplies only the run ID and that run's exact start_time coordinate.
9
+ *
10
+ * Self-hosted deployments require LangSmith `v0.16` or later.
10
11
  *
11
12
  * @example
12
13
  * ```ts
@@ -22,9 +23,10 @@ export declare class Runs extends APIResource {
22
23
  */
23
24
  retrieve(runID: string, params: RunRetrieveParams, options?: RequestOptions): APIPromise<RunsAPI_.Run>;
24
25
  /**
25
- * **Alpha:** The request and response contract may change; Returns all runs within
26
- * the trace identified by the share token. The share token supplies the tenant,
27
- * project, and trace scope.
26
+ * Returns all runs within the trace identified by the share token. The share token
27
+ * supplies the tenant, project, and trace scope.
28
+ *
29
+ * Self-hosted deployments require LangSmith `v0.16` or later.
28
30
  *
29
31
  * @example
30
32
  * ```ts
@@ -5,9 +5,10 @@ import { buildHeaders } from '../../internal/headers.js';
5
5
  import { path } from '../../internal/utils/path.js';
6
6
  export class Runs extends APIResource {
7
7
  /**
8
- * **Alpha:** The request and response contract may change; Returns one run within
9
- * the trace identified by the share token. The request supplies only the run ID
10
- * and that run's exact start_time coordinate.
8
+ * Returns one run within the trace identified by the share token. The request
9
+ * supplies only the run ID and that run's exact start_time coordinate.
10
+ *
11
+ * Self-hosted deployments require LangSmith `v0.16` or later.
11
12
  *
12
13
  * @example
13
14
  * ```ts
@@ -30,9 +31,10 @@ export class Runs extends APIResource {
30
31
  });
31
32
  }
32
33
  /**
33
- * **Alpha:** The request and response contract may change; Returns all runs within
34
- * the trace identified by the share token. The share token supplies the tenant,
35
- * project, and trace scope.
34
+ * Returns all runs within the trace identified by the share token. The share token
35
+ * supplies the tenant, project, and trace scope.
36
+ *
37
+ * Self-hosted deployments require LangSmith `v0.16` or later.
36
38
  *
37
39
  * @example
38
40
  * ```ts
@@ -43,7 +45,7 @@ export class Runs extends APIResource {
43
45
  */
44
46
  query(shareToken, params, options) {
45
47
  const { Accept, ...body } = params;
46
- return this._client.post(path `/api/v2/public/${shareToken}/runs/v2/query`, {
48
+ return this._client.post(path `/api/v2/public/${shareToken}/runs/query`, {
47
49
  body,
48
50
  ...options,
49
51
  headers: buildHeaders([{ ...(Accept != null ? { Accept: Accept } : undefined) }, options?.headers]),
@@ -69,6 +69,8 @@ class Runs extends resource_js_1.APIResource {
69
69
  * supply the run's project_id and trace_id as query parameters; start_time is
70
70
  * optional.
71
71
  *
72
+ * Self-hosted deployments require LangSmith `v0.16` or later.
73
+ *
72
74
  * @example
73
75
  * ```ts
74
76
  * const response = await client.runs.getURL(
@@ -81,9 +83,11 @@ class Runs extends resource_js_1.APIResource {
81
83
  return this._client.get((0, path_js_1.path) `/api/v2/runs/${runID}/url`, { query, ...options });
82
84
  }
83
85
  /**
84
- * **Alpha:** The request and response contract may change; Returns a paginated
85
- * list of runs for the given projects within min/max start_time. Supports filters,
86
- * cursor pagination, and `selects` to select fields to return.
86
+ * Returns a paginated list of runs for the given projects within min/max
87
+ * start_time. Supports filters, cursor pagination, and `selects` to select fields
88
+ * to return.
89
+ *
90
+ * Self-hosted deployments require LangSmith `v0.16` or later.
87
91
  *
88
92
  * @example
89
93
  * ```ts
@@ -103,9 +107,10 @@ class Runs extends resource_js_1.APIResource {
103
107
  });
104
108
  }
105
109
  /**
106
- * **Alpha:** The request and response contract may change; Returns one run by ID
107
- * for the given session. Use the `selects` query parameter (repeatable) to select
108
- * fields to return.
110
+ * Returns one run by ID for the given session. Use the `selects` query parameter
111
+ * (repeatable) to select fields to return.
112
+ *
113
+ * Self-hosted deployments require LangSmith `v0.16` or later.
109
114
  *
110
115
  * @example
111
116
  * ```ts
@@ -11,6 +11,8 @@ export declare class Runs extends APIResource {
11
11
  * supply the run's project_id and trace_id as query parameters; start_time is
12
12
  * optional.
13
13
  *
14
+ * Self-hosted deployments require LangSmith `v0.16` or later.
15
+ *
14
16
  * @example
15
17
  * ```ts
16
18
  * const response = await client.runs.getURL(
@@ -21,9 +23,11 @@ export declare class Runs extends APIResource {
21
23
  */
22
24
  getURL(runID: string, query: RunGetURLParams, options?: RequestOptions): APIPromise<RunGetURLResponse>;
23
25
  /**
24
- * **Alpha:** The request and response contract may change; Returns a paginated
25
- * list of runs for the given projects within min/max start_time. Supports filters,
26
- * cursor pagination, and `selects` to select fields to return.
26
+ * Returns a paginated list of runs for the given projects within min/max
27
+ * start_time. Supports filters, cursor pagination, and `selects` to select fields
28
+ * to return.
29
+ *
30
+ * Self-hosted deployments require LangSmith `v0.16` or later.
27
31
  *
28
32
  * @example
29
33
  * ```ts
@@ -35,9 +39,10 @@ export declare class Runs extends APIResource {
35
39
  */
36
40
  queryV2(params: RunQueryV2Params, options?: RequestOptions): PagePromise<RunsItemsCursorPostPagination, Run>;
37
41
  /**
38
- * **Alpha:** The request and response contract may change; Returns one run by ID
39
- * for the given session. Use the `selects` query parameter (repeatable) to select
40
- * fields to return.
42
+ * Returns one run by ID for the given session. Use the `selects` query parameter
43
+ * (repeatable) to select fields to return.
44
+ *
45
+ * Self-hosted deployments require LangSmith `v0.16` or later.
41
46
  *
42
47
  * @example
43
48
  * ```ts
@@ -33,6 +33,8 @@ export class Runs extends APIResource {
33
33
  * supply the run's project_id and trace_id as query parameters; start_time is
34
34
  * optional.
35
35
  *
36
+ * Self-hosted deployments require LangSmith `v0.16` or later.
37
+ *
36
38
  * @example
37
39
  * ```ts
38
40
  * const response = await client.runs.getURL(
@@ -45,9 +47,11 @@ export class Runs extends APIResource {
45
47
  return this._client.get(path `/api/v2/runs/${runID}/url`, { query, ...options });
46
48
  }
47
49
  /**
48
- * **Alpha:** The request and response contract may change; Returns a paginated
49
- * list of runs for the given projects within min/max start_time. Supports filters,
50
- * cursor pagination, and `selects` to select fields to return.
50
+ * Returns a paginated list of runs for the given projects within min/max
51
+ * start_time. Supports filters, cursor pagination, and `selects` to select fields
52
+ * to return.
53
+ *
54
+ * Self-hosted deployments require LangSmith `v0.16` or later.
51
55
  *
52
56
  * @example
53
57
  * ```ts
@@ -67,9 +71,10 @@ export class Runs extends APIResource {
67
71
  });
68
72
  }
69
73
  /**
70
- * **Alpha:** The request and response contract may change; Returns one run by ID
71
- * for the given session. Use the `selects` query parameter (repeatable) to select
72
- * fields to return.
74
+ * Returns one run by ID for the given session. Use the `selects` query parameter
75
+ * (repeatable) to select fields to return.
76
+ *
77
+ * Self-hosted deployments require LangSmith `v0.16` or later.
73
78
  *
74
79
  * @example
75
80
  * ```ts
@@ -10,6 +10,8 @@ class Share extends resource_js_1.APIResource {
10
10
  /**
11
11
  * Creates or returns a share token for a run. Child runs share their trace root.
12
12
  *
13
+ * Self-hosted deployments require LangSmith `v0.16` or later.
14
+ *
13
15
  * @example
14
16
  * ```ts
15
17
  * const share = await client.runs.share.create(
@@ -24,6 +26,8 @@ class Share extends resource_js_1.APIResource {
24
26
  * Deletes the share token for the trace identified by trace_id and session_id.
25
27
  * Idempotent: returns 204 whether or not a share token existed.
26
28
  *
29
+ * Self-hosted deployments require LangSmith `v0.16` or later.
30
+ *
27
31
  * @example
28
32
  * ```ts
29
33
  * await client.runs.share.delete(
@@ -5,6 +5,8 @@ export declare class Share extends APIResource {
5
5
  /**
6
6
  * Creates or returns a share token for a run. Child runs share their trace root.
7
7
  *
8
+ * Self-hosted deployments require LangSmith `v0.16` or later.
9
+ *
8
10
  * @example
9
11
  * ```ts
10
12
  * const share = await client.runs.share.create(
@@ -17,6 +19,8 @@ export declare class Share extends APIResource {
17
19
  * Deletes the share token for the trace identified by trace_id and session_id.
18
20
  * Idempotent: returns 204 whether or not a share token existed.
19
21
  *
22
+ * Self-hosted deployments require LangSmith `v0.16` or later.
23
+ *
20
24
  * @example
21
25
  * ```ts
22
26
  * await client.runs.share.delete(
@@ -7,6 +7,8 @@ export class Share extends APIResource {
7
7
  /**
8
8
  * Creates or returns a share token for a run. Child runs share their trace root.
9
9
  *
10
+ * Self-hosted deployments require LangSmith `v0.16` or later.
11
+ *
10
12
  * @example
11
13
  * ```ts
12
14
  * const share = await client.runs.share.create(
@@ -21,6 +23,8 @@ export class Share extends APIResource {
21
23
  * Deletes the share token for the trace identified by trace_id and session_id.
22
24
  * Idempotent: returns 204 whether or not a share token existed.
23
25
  *
26
+ * Self-hosted deployments require LangSmith `v0.16` or later.
27
+ *
24
28
  * @example
25
29
  * ```ts
26
30
  * await client.runs.share.delete(
@@ -8,8 +8,9 @@ const pagination_js_1 = require("../core/pagination.cjs");
8
8
  const path_js_1 = require("../internal/utils/path.cjs");
9
9
  class Threads extends resource_js_1.APIResource {
10
10
  /**
11
- * **Alpha:** The request and response contract may change; Retrieve all traces
12
- * belonging to a specific thread within a project.
11
+ * Retrieve all traces belonging to a specific thread within a project.
12
+ *
13
+ * Self-hosted deployments require LangSmith `v0.16` or later.
13
14
  *
14
15
  * @example
15
16
  * ```ts
@@ -26,9 +27,10 @@ class Threads extends resource_js_1.APIResource {
26
27
  return this._client.getAPIList((0, path_js_1.path) `/api/v2/threads/${threadID}/traces`, (pagination_js_1.ItemsCursorGetPagination), { query, ...options });
27
28
  }
28
29
  /**
29
- * **Alpha:** The request and response contract may change; Query threads within a
30
- * project (session), with cursor-based pagination. Returns threads matching the
31
- * given time range and optional filter.
30
+ * Query threads within a project (session), with cursor-based pagination. Returns
31
+ * threads matching the given time range and optional filter.
32
+ *
33
+ * Self-hosted deployments require LangSmith `v0.16` or later.
32
34
  *
33
35
  * @example
34
36
  * ```ts
@@ -46,9 +48,10 @@ class Threads extends resource_js_1.APIResource {
46
48
  });
47
49
  }
48
50
  /**
49
- * **Alpha:** The request and response contract may change; Compute aggregate stats
50
- * for a single thread (turn count, latency percentiles, token/cost sums, and
51
- * detail breakdowns) within a project.
51
+ * Compute aggregate stats for a single thread (turn count, latency percentiles,
52
+ * token/cost sums, and detail breakdowns) within a project.
53
+ *
54
+ * Self-hosted deployments require LangSmith `v0.16` or later.
52
55
  *
53
56
  * @example
54
57
  * ```ts