langsmith 0.8.7 → 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 (83) hide show
  1. package/dist/_openapi_client/client.cjs +8 -0
  2. package/dist/_openapi_client/client.d.ts +3 -0
  3. package/dist/_openapi_client/client.js +8 -0
  4. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +157 -0
  5. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +382 -0
  6. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +120 -0
  7. package/dist/_openapi_client/resources/annotation-queues/items.cjs +84 -0
  8. package/dist/_openapi_client/resources/annotation-queues/items.d.ts +207 -0
  9. package/dist/_openapi_client/resources/annotation-queues/items.js +80 -0
  10. package/dist/_openapi_client/resources/annotation-queues/runs.cjs +73 -0
  11. package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +197 -0
  12. package/dist/_openapi_client/resources/annotation-queues/runs.js +69 -0
  13. package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +3 -1
  14. package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +2 -0
  15. package/dist/_openapi_client/resources/datasets/experiment-runs.js +3 -1
  16. package/dist/_openapi_client/resources/index.cjs +3 -1
  17. package/dist/_openapi_client/resources/index.d.ts +1 -0
  18. package/dist/_openapi_client/resources/index.js +1 -0
  19. package/dist/_openapi_client/resources/info.cjs +3 -1
  20. package/dist/_openapi_client/resources/info.d.ts +16 -22
  21. package/dist/_openapi_client/resources/info.js +3 -1
  22. package/dist/_openapi_client/resources/issues.cjs +2 -2
  23. package/dist/_openapi_client/resources/issues.d.ts +1 -1
  24. package/dist/_openapi_client/resources/issues.js +2 -2
  25. package/dist/_openapi_client/resources/online-evaluators.cjs +7 -7
  26. package/dist/_openapi_client/resources/online-evaluators.d.ts +8 -0
  27. package/dist/_openapi_client/resources/online-evaluators.js +7 -7
  28. package/dist/_openapi_client/resources/public/runs.cjs +10 -8
  29. package/dist/_openapi_client/resources/public/runs.d.ts +9 -7
  30. package/dist/_openapi_client/resources/public/runs.js +10 -8
  31. package/dist/_openapi_client/resources/runs/runs.cjs +14 -9
  32. package/dist/_openapi_client/resources/runs/runs.d.ts +20 -10
  33. package/dist/_openapi_client/resources/runs/runs.js +14 -9
  34. package/dist/_openapi_client/resources/runs/share.cjs +6 -2
  35. package/dist/_openapi_client/resources/runs/share.d.ts +4 -0
  36. package/dist/_openapi_client/resources/runs/share.js +6 -2
  37. package/dist/_openapi_client/resources/sandboxes/boxes.cjs +10 -10
  38. package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +40 -0
  39. package/dist/_openapi_client/resources/sandboxes/boxes.js +10 -10
  40. package/dist/_openapi_client/resources/sandboxes/registries.cjs +5 -5
  41. package/dist/_openapi_client/resources/sandboxes/registries.js +5 -5
  42. package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +17 -0
  43. package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +4 -4
  44. package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +12 -0
  45. package/dist/_openapi_client/resources/sandboxes/snapshots.js +4 -4
  46. package/dist/_openapi_client/resources/threads.cjs +14 -11
  47. package/dist/_openapi_client/resources/threads.d.ts +13 -9
  48. package/dist/_openapi_client/resources/threads.js +14 -11
  49. package/dist/_openapi_client/resources/traces.cjs +8 -5
  50. package/dist/_openapi_client/resources/traces.d.ts +7 -4
  51. package/dist/_openapi_client/resources/traces.js +8 -5
  52. package/dist/client.cjs +318 -40
  53. package/dist/client.d.ts +111 -25
  54. package/dist/client.js +318 -40
  55. package/dist/evaluation/evaluate_comparative.cjs +7 -4
  56. package/dist/evaluation/evaluate_comparative.js +7 -4
  57. package/dist/index.cjs +1 -1
  58. package/dist/index.d.ts +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/sandbox/command_handle.cjs +38 -11
  61. package/dist/sandbox/command_handle.d.ts +1 -0
  62. package/dist/sandbox/command_handle.js +39 -12
  63. package/dist/sandbox/errors.cjs +16 -1
  64. package/dist/sandbox/errors.d.ts +11 -0
  65. package/dist/sandbox/errors.js +14 -0
  66. package/dist/sandbox/index.cjs +2 -1
  67. package/dist/sandbox/index.d.ts +1 -1
  68. package/dist/sandbox/index.js +1 -1
  69. package/dist/sandbox/sandbox.cjs +22 -4
  70. package/dist/sandbox/sandbox.js +24 -6
  71. package/dist/sandbox/ws_execute.cjs +82 -11
  72. package/dist/sandbox/ws_execute.d.ts +12 -2
  73. package/dist/sandbox/ws_execute.js +79 -11
  74. package/dist/utils/v2_migration.cjs +18 -0
  75. package/dist/utils/v2_migration.d.ts +8 -0
  76. package/dist/utils/v2_migration.js +16 -0
  77. package/dist/utils/warn.cjs +30 -4
  78. package/dist/utils/warn.d.ts +4 -1
  79. package/dist/utils/warn.js +29 -4
  80. package/package.json +1 -1
  81. package/dist/utils/constants.cjs +0 -4
  82. package/dist/utils/constants.d.ts +0 -1
  83. package/dist/utils/constants.js +0 -1
@@ -0,0 +1,197 @@
1
+ import { APIResource } from '../../core/resource.js';
2
+ import * as AnnotationQueuesAPI from './annotation-queues.js';
3
+ import { APIPromise } from '../../core/api-promise.js';
4
+ import { RequestOptions } from '../../internal/request-options.js';
5
+ export declare class Runs extends APIResource {
6
+ /**
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.
10
+ */
11
+ create(queueID: string, params: RunCreateParams, options?: RequestOptions): APIPromise<RunCreateResponse>;
12
+ /**
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.
16
+ */
17
+ update(queueRunID: string, params: RunUpdateParams, options?: RequestOptions): APIPromise<unknown>;
18
+ /**
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.
22
+ */
23
+ list(queueID: string, query?: RunListParams | null | undefined, options?: RequestOptions): APIPromise<RunListResponse>;
24
+ /**
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.
28
+ */
29
+ createByKey(queueID: string, params: RunCreateByKeyParams, options?: RequestOptions): APIPromise<RunCreateByKeyResponse>;
30
+ /**
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.
34
+ */
35
+ deleteAll(queueID: string, body: RunDeleteAllParams, options?: RequestOptions): APIPromise<unknown>;
36
+ /**
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.
40
+ */
41
+ deleteQueue(queueRunID: string, params: RunDeleteQueueParams, options?: RequestOptions): APIPromise<unknown>;
42
+ }
43
+ export type RunCreateResponse = Array<RunCreateResponse.RunCreateResponseItem>;
44
+ export declare namespace RunCreateResponse {
45
+ interface RunCreateResponseItem {
46
+ id: string;
47
+ queue_id: string;
48
+ run_id: string;
49
+ added_at?: string;
50
+ last_reviewed_time?: string | null;
51
+ source_proposed_example_id?: string | null;
52
+ }
53
+ }
54
+ export type RunUpdateResponse = unknown;
55
+ export type RunListResponse = Array<AnnotationQueuesAPI.RunSchemaWithAnnotationQueueInfo>;
56
+ export type RunCreateByKeyResponse = Array<RunCreateByKeyResponse.RunCreateByKeyResponseItem>;
57
+ export declare namespace RunCreateByKeyResponse {
58
+ interface RunCreateByKeyResponseItem {
59
+ id: string;
60
+ queue_id: string;
61
+ run_id: string;
62
+ added_at?: string;
63
+ last_reviewed_time?: string | null;
64
+ source_proposed_example_id?: string | null;
65
+ }
66
+ }
67
+ export type RunDeleteAllResponse = unknown;
68
+ export type RunDeleteQueueResponse = unknown;
69
+ export type RunCreateParams = RunCreateParams.RunsUuidArray | RunCreateParams.RunsAnnotationQueueRunAddSchemaArray | RunCreateParams.Variant2;
70
+ export declare namespace RunCreateParams {
71
+ interface RunsUuidArray {
72
+ /**
73
+ * Body param
74
+ */
75
+ body: Array<string>;
76
+ /**
77
+ * Query param
78
+ */
79
+ extend_trace_retention?: boolean;
80
+ }
81
+ interface RunsAnnotationQueueRunAddSchemaArray {
82
+ /**
83
+ * Body param
84
+ */
85
+ body: Array<RunsAnnotationQueueRunAddSchemaArray.Body>;
86
+ /**
87
+ * Query param
88
+ */
89
+ extend_trace_retention?: boolean;
90
+ }
91
+ namespace RunsAnnotationQueueRunAddSchemaArray {
92
+ /**
93
+ * Add a single run to AQ (CH path) with an optional back-pointer to the
94
+ * issues-agent proposal that seeded this add. Use when bulk-adding runs that come
95
+ * from different proposals — each row carries its own source_proposed_example_id.
96
+ * For unrelated bulk adds, prefer plain List[UUID] on the same endpoint.
97
+ */
98
+ interface Body {
99
+ run_id: string;
100
+ source_proposed_example_id?: string | null;
101
+ }
102
+ }
103
+ interface Variant2 {
104
+ /**
105
+ * Body param
106
+ */
107
+ body: Array<Variant2.Body>;
108
+ /**
109
+ * Query param
110
+ */
111
+ extend_trace_retention?: boolean;
112
+ }
113
+ namespace Variant2 {
114
+ /**
115
+ * Deprecated: use plain UUID list or AddRunToQueueByKeyRequest instead.
116
+ */
117
+ interface Body {
118
+ /**
119
+ * @deprecated
120
+ */
121
+ run_id: string;
122
+ /**
123
+ * @deprecated
124
+ */
125
+ parent_run_id?: string | null;
126
+ /**
127
+ * @deprecated
128
+ */
129
+ session_id?: string | null;
130
+ /**
131
+ * @deprecated
132
+ */
133
+ start_time?: string | null;
134
+ /**
135
+ * @deprecated
136
+ */
137
+ trace_id?: string | null;
138
+ /**
139
+ * @deprecated
140
+ */
141
+ trace_tier?: 'longlived' | 'shortlived' | null;
142
+ }
143
+ }
144
+ }
145
+ export interface RunUpdateParams {
146
+ /**
147
+ * Path param
148
+ */
149
+ queue_id: string;
150
+ /**
151
+ * Body param
152
+ */
153
+ added_at?: string | null;
154
+ /**
155
+ * Body param
156
+ */
157
+ last_reviewed_time?: string | null;
158
+ }
159
+ export interface RunListParams {
160
+ archived?: boolean | null;
161
+ include_stats?: boolean | null;
162
+ limit?: number;
163
+ offset?: number;
164
+ status?: 'needs_my_review' | 'needs_others_review' | 'completed' | null;
165
+ }
166
+ export interface RunCreateByKeyParams {
167
+ /**
168
+ * Body param
169
+ */
170
+ body: Array<RunCreateByKeyParams.Body>;
171
+ /**
172
+ * Query param
173
+ */
174
+ extend_trace_retention?: boolean;
175
+ }
176
+ export declare namespace RunCreateByKeyParams {
177
+ /**
178
+ * Add run to AQ by SmithDB key. is_root derived server-side (LSAQ-141).
179
+ */
180
+ interface Body {
181
+ run_id: string;
182
+ session_id: string;
183
+ start_time: string;
184
+ source_proposed_example_id?: string | null;
185
+ }
186
+ }
187
+ export interface RunDeleteAllParams {
188
+ delete_all?: boolean;
189
+ exclude_run_ids?: Array<string> | null;
190
+ run_ids?: Array<string> | null;
191
+ }
192
+ export interface RunDeleteQueueParams {
193
+ queue_id: string;
194
+ }
195
+ export declare namespace Runs {
196
+ export { type RunCreateResponse as RunCreateResponse, type RunUpdateResponse as RunUpdateResponse, type RunListResponse as RunListResponse, type RunCreateByKeyResponse as RunCreateByKeyResponse, type RunDeleteAllResponse as RunDeleteAllResponse, type RunDeleteQueueResponse as RunDeleteQueueResponse, type RunCreateParams as RunCreateParams, type RunUpdateParams as RunUpdateParams, type RunListParams as RunListParams, type RunCreateByKeyParams as RunCreateByKeyParams, type RunDeleteAllParams as RunDeleteAllParams, type RunDeleteQueueParams as RunDeleteQueueParams, };
197
+ }
@@ -0,0 +1,69 @@
1
+ // @ts-nocheck
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ import { APIResource } from '../../core/resource.js';
4
+ import { path } from '../../internal/utils/path.js';
5
+ export class Runs extends APIResource {
6
+ /**
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.
10
+ */
11
+ create(queueID, params, options) {
12
+ const { body, extend_trace_retention } = params;
13
+ return this._client.post(path `/api/v1/annotation-queues/${queueID}/runs`, {
14
+ query: { extend_trace_retention },
15
+ body: body,
16
+ ...options,
17
+ });
18
+ }
19
+ /**
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.
23
+ */
24
+ update(queueRunID, params, options) {
25
+ const { queue_id, ...body } = params;
26
+ return this._client.patch(path `/api/v1/annotation-queues/${queue_id}/runs/${queueRunID}`, {
27
+ body,
28
+ ...options,
29
+ });
30
+ }
31
+ /**
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.
35
+ */
36
+ list(queueID, query = {}, options) {
37
+ return this._client.get(path `/api/v1/annotation-queues/${queueID}/runs`, { query, ...options });
38
+ }
39
+ /**
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.
43
+ */
44
+ createByKey(queueID, params, options) {
45
+ const { body, extend_trace_retention } = params;
46
+ return this._client.post(path `/api/v1/annotation-queues/${queueID}/runs/by-key`, {
47
+ query: { extend_trace_retention },
48
+ body: body,
49
+ ...options,
50
+ });
51
+ }
52
+ /**
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.
56
+ */
57
+ deleteAll(queueID, body, options) {
58
+ return this._client.post(path `/api/v1/annotation-queues/${queueID}/runs/delete`, { body, ...options });
59
+ }
60
+ /**
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.
64
+ */
65
+ deleteQueue(queueRunID, params, options) {
66
+ const { queue_id } = params;
67
+ return this._client.delete(path `/api/v1/annotation-queues/${queue_id}/runs/${queueRunID}`, options);
68
+ }
69
+ }
@@ -10,9 +10,11 @@ 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
- return this._client.getAPIList((0, path_js_1.path) `/v2/datasets/${datasetID}/experiment-runs`, (pagination_js_1.ItemsCursorPostPagination), { body, method: 'post', ...options });
17
+ return this._client.getAPIList((0, path_js_1.path) `/api/v2/datasets/${datasetID}/experiment-runs`, (pagination_js_1.ItemsCursorPostPagination), { body, method: 'post', ...options });
16
18
  }
17
19
  }
18
20
  exports.ExperimentRuns = ExperimentRuns;
@@ -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,8 +7,10 @@ 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
- return this._client.getAPIList(path `/v2/datasets/${datasetID}/experiment-runs`, (ItemsCursorPostPagination), { body, method: 'post', ...options });
14
+ return this._client.getAPIList(path `/api/v2/datasets/${datasetID}/experiment-runs`, (ItemsCursorPostPagination), { body, method: 'post', ...options });
13
15
  }
14
16
  }
@@ -2,7 +2,9 @@
2
2
  // @ts-nocheck
3
3
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Traces = exports.Threads = exports.Sandboxes = exports.Runs = exports.Public = exports.OnlineEvaluators = exports.Issues = exports.Info = exports.Datasets = void 0;
5
+ exports.Traces = exports.Threads = exports.Sandboxes = exports.Runs = exports.Public = exports.OnlineEvaluators = exports.Issues = exports.Info = exports.Datasets = exports.AnnotationQueues = void 0;
6
+ var annotation_queues_js_1 = require("./annotation-queues/annotation-queues.cjs");
7
+ Object.defineProperty(exports, "AnnotationQueues", { enumerable: true, get: function () { return annotation_queues_js_1.AnnotationQueues; } });
6
8
  var datasets_js_1 = require("./datasets/datasets.cjs");
7
9
  Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return datasets_js_1.Datasets; } });
8
10
  var info_js_1 = require("./info.cjs");
@@ -1,3 +1,4 @@
1
+ export { AnnotationQueues, type AnnotationQueueRubricItemSchema, type AnnotationQueueSchema, type AnnotationQueueSizeSchema, type RunSchemaWithAnnotationQueueInfo, type AnnotationQueueRetrieveResponse, type AnnotationQueueUpdateResponse, type AnnotationQueueDeleteResponse, type AnnotationQueueCreateRunStatusResponse, type AnnotationQueueExportResponse, type AnnotationQueuePopulateResponse, type AnnotationQueueRetrieveAnnotationQueuesResponse, type AnnotationQueueRetrieveQueuesResponse, type AnnotationQueueUpdateParams, type AnnotationQueueAnnotationQueuesParams, type AnnotationQueueCreateRunStatusParams, type AnnotationQueueExportParams, type AnnotationQueuePopulateParams, type AnnotationQueueRetrieveAnnotationQueuesParams, type AnnotationQueueRetrieveRunParams, type AnnotationQueueRetrieveSizeParams, type AnnotationQueueRetrieveTotalArchivedParams, type AnnotationQueueRetrieveAnnotationQueuesResponsesOffsetPaginationTopLevelArray, } from './annotation-queues/annotation-queues.js';
1
2
  export { Datasets, type DataType, type Dataset, type DatasetTransformation, type DatasetVersion, type FeedbackCreateCoreSchema, type Missing, type SortByDatasetColumn, } from './datasets/datasets.js';
2
3
  export { Info, type InfoListResponse } from './info.js';
3
4
  export { Issues, type Issue, type IssueListParams, type IssuesOffsetPaginationIssues } from './issues.js';
@@ -1,5 +1,6 @@
1
1
  // @ts-nocheck
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ export { AnnotationQueues, } from './annotation-queues/annotation-queues.js';
3
4
  export { Datasets, } from './datasets/datasets.js';
4
5
  export { Info } from './info.js';
5
6
  export { Issues } from './issues.js';
@@ -6,7 +6,9 @@ exports.Info = void 0;
6
6
  const resource_js_1 = require("../core/resource.cjs");
7
7
  class Info extends resource_js_1.APIResource {
8
8
  /**
9
- * Get information about the current deployment of LangSmith.
9
+ * Returns information about the current LangSmith deployment: version, instance
10
+ * feature flags, batch-ingest limits, and max SDK versions. Unauthenticated by
11
+ * default; set FF_INFO_ENDPOINT_AUTH_REQUIRED=true to require auth.
10
12
  */
11
13
  list(options) {
12
14
  return this._client.get('/api/v1/info', options);
@@ -3,33 +3,24 @@ import { APIPromise } from '../core/api-promise.js';
3
3
  import { RequestOptions } from '../internal/request-options.js';
4
4
  export declare class Info extends APIResource {
5
5
  /**
6
- * Get information about the current deployment of LangSmith.
6
+ * Returns information about the current LangSmith deployment: version, instance
7
+ * feature flags, batch-ingest limits, and max SDK versions. Unauthenticated by
8
+ * default; set FF_INFO_ENDPOINT_AUTH_REQUIRED=true to require auth.
7
9
  */
8
10
  list(options?: RequestOptions): APIPromise<InfoListResponse>;
9
11
  }
10
- /**
11
- * The LangSmith server info.
12
- */
13
12
  export interface InfoListResponse {
14
- version: string;
15
- /**
16
- * Batch ingest config.
17
- */
18
13
  batch_ingest_config?: InfoListResponse.BatchIngestConfig;
19
- /**
20
- * Customer info.
21
- */
22
- customer_info?: InfoListResponse.CustomerInfo | null;
23
- git_sha?: string | null;
14
+ customer_info?: InfoListResponse.CustomerInfo;
15
+ git_sha?: string;
24
16
  instance_flags?: {
25
17
  [key: string]: unknown;
26
18
  };
27
- license_expiration_time?: string | null;
19
+ license_expiration_time?: string;
20
+ sdk_versions?: InfoListResponse.SDKVersions;
21
+ version?: string;
28
22
  }
29
23
  export declare namespace InfoListResponse {
30
- /**
31
- * Batch ingest config.
32
- */
33
24
  interface BatchIngestConfig {
34
25
  scale_down_nempty_trigger?: number;
35
26
  scale_up_nthreads_limit?: number;
@@ -38,12 +29,15 @@ export declare namespace InfoListResponse {
38
29
  size_limit_bytes?: number;
39
30
  use_multipart_endpoint?: boolean;
40
31
  }
41
- /**
42
- * Customer info.
43
- */
44
32
  interface CustomerInfo {
45
- customer_id: string;
46
- customer_name: string;
33
+ customer_id?: string;
34
+ customer_name?: string;
35
+ }
36
+ interface SDKVersions {
37
+ max_go_sdk_version?: string;
38
+ max_java_sdk_version?: string;
39
+ max_js_sdk_version?: string;
40
+ max_python_sdk_version?: string;
47
41
  }
48
42
  }
49
43
  export declare namespace Info {
@@ -3,7 +3,9 @@
3
3
  import { APIResource } from '../core/resource.js';
4
4
  export class Info extends APIResource {
5
5
  /**
6
- * Get information about the current deployment of LangSmith.
6
+ * Returns information about the current LangSmith deployment: version, instance
7
+ * feature flags, batch-ingest limits, and max SDK versions. Unauthenticated by
8
+ * default; set FF_INFO_ENDPOINT_AUTH_REQUIRED=true to require auth.
7
9
  */
8
10
  list(options) {
9
11
  return this._client.get('/api/v1/info', options);
@@ -13,7 +13,7 @@ class Issues extends resource_js_1.APIResource {
13
13
  * Returns one issue for the authenticated tenant.
14
14
  */
15
15
  retrieve(id, options) {
16
- return this._client.get((0, path_js_1.path) `/v1/platform/issues/${id}`, options);
16
+ return this._client.get((0, path_js_1.path) `/api/v1/platform/issues/${id}`, options);
17
17
  }
18
18
  /**
19
19
  * **Beta:** This endpoint is in active development and may change without notice.
@@ -22,7 +22,7 @@ class Issues extends resource_js_1.APIResource {
22
22
  * status, severity, tag, or last modified time.
23
23
  */
24
24
  list(query = {}, options) {
25
- return this._client.getAPIList('/v1/platform/issues', (pagination_js_1.OffsetPaginationIssues), {
25
+ return this._client.getAPIList('/api/v1/platform/issues', (pagination_js_1.OffsetPaginationIssues), {
26
26
  query,
27
27
  ...options,
28
28
  });
@@ -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
  */
@@ -10,7 +10,7 @@ export class Issues extends APIResource {
10
10
  * Returns one issue for the authenticated tenant.
11
11
  */
12
12
  retrieve(id, options) {
13
- return this._client.get(path `/v1/platform/issues/${id}`, options);
13
+ return this._client.get(path `/api/v1/platform/issues/${id}`, options);
14
14
  }
15
15
  /**
16
16
  * **Beta:** This endpoint is in active development and may change without notice.
@@ -19,7 +19,7 @@ export class Issues extends APIResource {
19
19
  * status, severity, tag, or last modified time.
20
20
  */
21
21
  list(query = {}, options) {
22
- return this._client.getAPIList('/v1/platform/issues', (OffsetPaginationIssues), {
22
+ return this._client.getAPIList('/api/v1/platform/issues', (OffsetPaginationIssues), {
23
23
  query,
24
24
  ...options,
25
25
  });
@@ -12,26 +12,26 @@ class OnlineEvaluators extends resource_js_1.APIResource {
12
12
  * Create a new LLM or code evaluator for the current workspace.
13
13
  */
14
14
  create(body, options) {
15
- return this._client.post('/v1/platform/evaluators', { body, ...options });
15
+ return this._client.post('/api/v1/platform/evaluators', { body, ...options });
16
16
  }
17
17
  /**
18
18
  * Retrieve a single evaluator by its ID.
19
19
  */
20
20
  retrieve(evaluatorID, options) {
21
- return this._client.get((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, options);
21
+ return this._client.get((0, path_js_1.path) `/api/v1/platform/evaluators/${evaluatorID}`, options);
22
22
  }
23
23
  /**
24
24
  * Update an existing evaluator's name, LLM configuration, or code configuration.
25
25
  */
26
26
  update(evaluatorID, body, options) {
27
- return this._client.patch((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, { body, ...options });
27
+ return this._client.patch((0, path_js_1.path) `/api/v1/platform/evaluators/${evaluatorID}`, { body, ...options });
28
28
  }
29
29
  /**
30
30
  * List evaluators for the current workspace, with optional filtering by type,
31
31
  * name, tag, feedback key, or resource ID.
32
32
  */
33
33
  list(query = {}, options) {
34
- return this._client.getAPIList('/v1/platform/evaluators', (pagination_js_1.OffsetPaginationOnlineEvaluators), { query, ...options });
34
+ return this._client.getAPIList('/api/v1/platform/evaluators', (pagination_js_1.OffsetPaginationOnlineEvaluators), { query, ...options });
35
35
  }
36
36
  /**
37
37
  * Delete an evaluator. When delete_run_rules is true, all run rules referencing
@@ -41,7 +41,7 @@ class OnlineEvaluators extends resource_js_1.APIResource {
41
41
  */
42
42
  delete(evaluatorID, params = {}, options) {
43
43
  const { delete_run_rules } = params ?? {};
44
- return this._client.delete((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, {
44
+ return this._client.delete((0, path_js_1.path) `/api/v1/platform/evaluators/${evaluatorID}`, {
45
45
  query: { delete_run_rules },
46
46
  ...options,
47
47
  headers: (0, headers_js_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
@@ -52,7 +52,7 @@ class OnlineEvaluators extends resource_js_1.APIResource {
52
52
  */
53
53
  bulkDelete(params, options) {
54
54
  const { evaluator_ids, delete_run_rules } = params;
55
- return this._client.delete('/v1/platform/evaluators', {
55
+ return this._client.delete('/api/v1/platform/evaluators', {
56
56
  query: { evaluator_ids, delete_run_rules },
57
57
  ...options,
58
58
  });
@@ -64,7 +64,7 @@ class OnlineEvaluators extends resource_js_1.APIResource {
64
64
  * be supplied with group_by to narrow listing aggregations.
65
65
  */
66
66
  spend(query, options) {
67
- return this._client.get('/v1/platform/evaluators/spend', { query, ...options });
67
+ return this._client.get('/api/v1/platform/evaluators/spend', { query, ...options });
68
68
  }
69
69
  }
70
70
  exports.OnlineEvaluators = OnlineEvaluators;
@@ -66,6 +66,10 @@ export interface CreateOnlineEvaluatorResponse {
66
66
  }
67
67
  export interface CreateOnlineLlmEvaluatorRequest {
68
68
  commit_hash_or_tag?: string;
69
+ /**
70
+ * Model Configuration ID
71
+ */
72
+ playground_settings_id?: string;
69
73
  prompt_repo_handle?: string;
70
74
  variable_mapping?: unknown;
71
75
  }
@@ -186,6 +190,10 @@ export interface UpdateOnlineEvaluatorResponse {
186
190
  export interface UpdateOnlineLlmEvaluatorRequest {
187
191
  commit_hash_or_tag?: string;
188
192
  num_few_shot_examples?: number;
193
+ /**
194
+ * Model Configuration ID
195
+ */
196
+ playground_settings_id?: string;
189
197
  prompt_repo_handle?: string;
190
198
  use_corrections_dataset?: boolean;
191
199
  variable_mapping?: unknown;
@@ -9,26 +9,26 @@ export class OnlineEvaluators extends APIResource {
9
9
  * Create a new LLM or code evaluator for the current workspace.
10
10
  */
11
11
  create(body, options) {
12
- return this._client.post('/v1/platform/evaluators', { body, ...options });
12
+ return this._client.post('/api/v1/platform/evaluators', { body, ...options });
13
13
  }
14
14
  /**
15
15
  * Retrieve a single evaluator by its ID.
16
16
  */
17
17
  retrieve(evaluatorID, options) {
18
- return this._client.get(path `/v1/platform/evaluators/${evaluatorID}`, options);
18
+ return this._client.get(path `/api/v1/platform/evaluators/${evaluatorID}`, options);
19
19
  }
20
20
  /**
21
21
  * Update an existing evaluator's name, LLM configuration, or code configuration.
22
22
  */
23
23
  update(evaluatorID, body, options) {
24
- return this._client.patch(path `/v1/platform/evaluators/${evaluatorID}`, { body, ...options });
24
+ return this._client.patch(path `/api/v1/platform/evaluators/${evaluatorID}`, { body, ...options });
25
25
  }
26
26
  /**
27
27
  * List evaluators for the current workspace, with optional filtering by type,
28
28
  * name, tag, feedback key, or resource ID.
29
29
  */
30
30
  list(query = {}, options) {
31
- return this._client.getAPIList('/v1/platform/evaluators', (OffsetPaginationOnlineEvaluators), { query, ...options });
31
+ return this._client.getAPIList('/api/v1/platform/evaluators', (OffsetPaginationOnlineEvaluators), { query, ...options });
32
32
  }
33
33
  /**
34
34
  * Delete an evaluator. When delete_run_rules is true, all run rules referencing
@@ -38,7 +38,7 @@ export class OnlineEvaluators extends APIResource {
38
38
  */
39
39
  delete(evaluatorID, params = {}, options) {
40
40
  const { delete_run_rules } = params ?? {};
41
- return this._client.delete(path `/v1/platform/evaluators/${evaluatorID}`, {
41
+ return this._client.delete(path `/api/v1/platform/evaluators/${evaluatorID}`, {
42
42
  query: { delete_run_rules },
43
43
  ...options,
44
44
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
@@ -49,7 +49,7 @@ export class OnlineEvaluators extends APIResource {
49
49
  */
50
50
  bulkDelete(params, options) {
51
51
  const { evaluator_ids, delete_run_rules } = params;
52
- return this._client.delete('/v1/platform/evaluators', {
52
+ return this._client.delete('/api/v1/platform/evaluators', {
53
53
  query: { evaluator_ids, delete_run_rules },
54
54
  ...options,
55
55
  });
@@ -61,6 +61,6 @@ export class OnlineEvaluators extends APIResource {
61
61
  * be supplied with group_by to narrow listing aggregations.
62
62
  */
63
63
  spend(query, options) {
64
- return this._client.get('/v1/platform/evaluators/spend', { query, ...options });
64
+ return this._client.get('/api/v1/platform/evaluators/spend', { query, ...options });
65
65
  }
66
66
  }
@@ -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
@@ -26,16 +27,17 @@ class Runs extends resource_js_1.APIResource {
26
27
  */
27
28
  retrieve(runID, params, options) {
28
29
  const { share_token, Accept, ...query } = params;
29
- return this._client.get((0, path_js_1.path) `/v2/public/${share_token}/run/${runID}`, {
30
+ return this._client.get((0, path_js_1.path) `/api/v2/public/${share_token}/run/${runID}`, {
30
31
  query,
31
32
  ...options,
32
33
  headers: (0, headers_js_1.buildHeaders)([{ ...(Accept != null ? { Accept: Accept } : undefined) }, options?.headers]),
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) `/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]),