langsmith 0.7.8 → 0.7.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 (228) hide show
  1. package/README.md +161 -15
  2. package/dist/_openapi_client/client.cjs +814 -0
  3. package/dist/_openapi_client/client.d.ts +247 -0
  4. package/dist/_openapi_client/client.js +777 -0
  5. package/dist/_openapi_client/core/api-promise.cjs +100 -0
  6. package/dist/_openapi_client/core/api-promise.d.ts +45 -0
  7. package/dist/_openapi_client/core/api-promise.js +96 -0
  8. package/dist/_openapi_client/core/error.cjs +134 -0
  9. package/dist/_openapi_client/core/error.d.ts +45 -0
  10. package/dist/_openapi_client/core/error.js +118 -0
  11. package/dist/_openapi_client/core/pagination.cjs +374 -0
  12. package/dist/_openapi_client/core/pagination.d.ts +157 -0
  13. package/dist/_openapi_client/core/pagination.js +361 -0
  14. package/dist/_openapi_client/core/resource.cjs +17 -0
  15. package/dist/_openapi_client/core/resource.d.ts +5 -0
  16. package/dist/_openapi_client/core/resource.js +13 -0
  17. package/dist/_openapi_client/core/uploads.cjs +5 -0
  18. package/dist/_openapi_client/core/uploads.d.ts +2 -0
  19. package/dist/_openapi_client/core/uploads.js +1 -0
  20. package/dist/_openapi_client/index.cjs +29 -0
  21. package/dist/_openapi_client/index.d.ts +6 -0
  22. package/dist/_openapi_client/index.js +8 -0
  23. package/dist/_openapi_client/internal/builtin-types.cjs +4 -0
  24. package/dist/_openapi_client/internal/builtin-types.d.ts +72 -0
  25. package/dist/_openapi_client/internal/builtin-types.js +3 -0
  26. package/dist/_openapi_client/internal/detect-platform.cjs +162 -0
  27. package/dist/_openapi_client/internal/detect-platform.d.ts +14 -0
  28. package/dist/_openapi_client/internal/detect-platform.js +157 -0
  29. package/dist/_openapi_client/internal/errors.cjs +41 -0
  30. package/dist/_openapi_client/internal/errors.d.ts +2 -0
  31. package/dist/_openapi_client/internal/errors.js +36 -0
  32. package/dist/_openapi_client/internal/headers.cjs +79 -0
  33. package/dist/_openapi_client/internal/headers.d.ts +5 -0
  34. package/dist/_openapi_client/internal/headers.js +74 -0
  35. package/dist/_openapi_client/internal/parse.cjs +40 -0
  36. package/dist/_openapi_client/internal/parse.d.ts +11 -0
  37. package/dist/_openapi_client/internal/parse.js +37 -0
  38. package/dist/_openapi_client/internal/qs/formats.cjs +12 -0
  39. package/dist/_openapi_client/internal/qs/formats.d.ts +6 -0
  40. package/dist/_openapi_client/internal/qs/formats.js +8 -0
  41. package/dist/_openapi_client/internal/qs/stringify.cjs +277 -0
  42. package/dist/_openapi_client/internal/qs/stringify.d.ts +2 -0
  43. package/dist/_openapi_client/internal/qs/stringify.js +274 -0
  44. package/dist/_openapi_client/internal/qs/types.cjs +2 -0
  45. package/dist/_openapi_client/internal/qs/types.d.ts +56 -0
  46. package/dist/_openapi_client/internal/qs/types.js +1 -0
  47. package/dist/_openapi_client/internal/qs/utils.cjs +230 -0
  48. package/dist/_openapi_client/internal/qs/utils.d.ts +14 -0
  49. package/dist/_openapi_client/internal/qs/utils.js +217 -0
  50. package/dist/_openapi_client/internal/request-options.cjs +14 -0
  51. package/dist/_openapi_client/internal/request-options.d.ts +74 -0
  52. package/dist/_openapi_client/internal/request-options.js +10 -0
  53. package/dist/_openapi_client/internal/shim-types.cjs +4 -0
  54. package/dist/_openapi_client/internal/shim-types.d.ts +16 -0
  55. package/dist/_openapi_client/internal/shim-types.js +3 -0
  56. package/dist/_openapi_client/internal/shims.cjs +92 -0
  57. package/dist/_openapi_client/internal/shims.d.ts +25 -0
  58. package/dist/_openapi_client/internal/shims.js +85 -0
  59. package/dist/_openapi_client/internal/to-file.cjs +91 -0
  60. package/dist/_openapi_client/internal/to-file.d.ts +44 -0
  61. package/dist/_openapi_client/internal/to-file.js +88 -0
  62. package/dist/_openapi_client/internal/types.cjs +4 -0
  63. package/dist/_openapi_client/internal/types.d.ts +62 -0
  64. package/dist/_openapi_client/internal/types.js +3 -0
  65. package/dist/_openapi_client/internal/uploads.cjs +140 -0
  66. package/dist/_openapi_client/internal/uploads.d.ts +41 -0
  67. package/dist/_openapi_client/internal/uploads.js +130 -0
  68. package/dist/_openapi_client/internal/utils/env.cjs +22 -0
  69. package/dist/_openapi_client/internal/utils/env.d.ts +8 -0
  70. package/dist/_openapi_client/internal/utils/env.js +18 -0
  71. package/dist/_openapi_client/internal/utils/log.cjs +88 -0
  72. package/dist/_openapi_client/internal/utils/log.d.ts +36 -0
  73. package/dist/_openapi_client/internal/utils/log.js +82 -0
  74. package/dist/_openapi_client/internal/utils/path.cjs +79 -0
  75. package/dist/_openapi_client/internal/utils/path.d.ts +14 -0
  76. package/dist/_openapi_client/internal/utils/path.js +74 -0
  77. package/dist/_openapi_client/internal/utils/query.cjs +42 -0
  78. package/dist/_openapi_client/internal/utils/query.d.ts +1 -0
  79. package/dist/_openapi_client/internal/utils/query.js +6 -0
  80. package/dist/_openapi_client/internal/utils/sleep.cjs +7 -0
  81. package/dist/_openapi_client/internal/utils/sleep.d.ts +1 -0
  82. package/dist/_openapi_client/internal/utils/sleep.js +3 -0
  83. package/dist/_openapi_client/internal/utils/uuid.cjs +19 -0
  84. package/dist/_openapi_client/internal/utils/uuid.d.ts +4 -0
  85. package/dist/_openapi_client/internal/utils/uuid.js +15 -0
  86. package/dist/_openapi_client/internal/utils/values.cjs +112 -0
  87. package/dist/_openapi_client/internal/utils/values.d.ts +17 -0
  88. package/dist/_openapi_client/internal/utils/values.js +94 -0
  89. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +138 -0
  90. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +367 -0
  91. package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +101 -0
  92. package/dist/_openapi_client/resources/annotation-queues/runs.cjs +46 -0
  93. package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +128 -0
  94. package/dist/_openapi_client/resources/annotation-queues/runs.js +42 -0
  95. package/dist/_openapi_client/resources/commits.cjs +44 -0
  96. package/dist/_openapi_client/resources/commits.d.ts +204 -0
  97. package/dist/_openapi_client/resources/commits.js +40 -0
  98. package/dist/_openapi_client/resources/datasets/comparative.cjs +22 -0
  99. package/dist/_openapi_client/resources/datasets/comparative.d.ts +55 -0
  100. package/dist/_openapi_client/resources/datasets/comparative.js +18 -0
  101. package/dist/_openapi_client/resources/datasets/datasets.cjs +193 -0
  102. package/dist/_openapi_client/resources/datasets/datasets.d.ts +374 -0
  103. package/dist/_openapi_client/resources/datasets/datasets.js +156 -0
  104. package/dist/_openapi_client/resources/datasets/experiments.cjs +16 -0
  105. package/dist/_openapi_client/resources/datasets/experiments.d.ts +23 -0
  106. package/dist/_openapi_client/resources/datasets/experiments.js +12 -0
  107. package/dist/_openapi_client/resources/datasets/group.cjs +17 -0
  108. package/dist/_openapi_client/resources/datasets/group.d.ts +160 -0
  109. package/dist/_openapi_client/resources/datasets/group.js +13 -0
  110. package/dist/_openapi_client/resources/datasets/runs.cjs +29 -0
  111. package/dist/_openapi_client/resources/datasets/runs.d.ts +216 -0
  112. package/dist/_openapi_client/resources/datasets/runs.js +25 -0
  113. package/dist/_openapi_client/resources/datasets/share.cjs +32 -0
  114. package/dist/_openapi_client/resources/datasets/share.d.ts +28 -0
  115. package/dist/_openapi_client/resources/datasets/share.js +28 -0
  116. package/dist/_openapi_client/resources/datasets/splits.cjs +22 -0
  117. package/dist/_openapi_client/resources/datasets/splits.d.ts +30 -0
  118. package/dist/_openapi_client/resources/datasets/splits.js +18 -0
  119. package/dist/_openapi_client/resources/datasets/versions.cjs +23 -0
  120. package/dist/_openapi_client/resources/datasets/versions.d.ts +36 -0
  121. package/dist/_openapi_client/resources/datasets/versions.js +19 -0
  122. package/dist/_openapi_client/resources/evaluators.cjs +15 -0
  123. package/dist/_openapi_client/resources/evaluators.d.ts +125 -0
  124. package/dist/_openapi_client/resources/evaluators.js +11 -0
  125. package/dist/_openapi_client/resources/examples/bulk.cjs +24 -0
  126. package/dist/_openapi_client/resources/examples/bulk.d.ts +78 -0
  127. package/dist/_openapi_client/resources/examples/bulk.js +20 -0
  128. package/dist/_openapi_client/resources/examples/examples.cjs +124 -0
  129. package/dist/_openapi_client/resources/examples/examples.d.ts +182 -0
  130. package/dist/_openapi_client/resources/examples/examples.js +87 -0
  131. package/dist/_openapi_client/resources/examples/validate.cjs +21 -0
  132. package/dist/_openapi_client/resources/examples/validate.d.ts +38 -0
  133. package/dist/_openapi_client/resources/examples/validate.js +17 -0
  134. package/dist/_openapi_client/resources/feedback/configs.cjs +24 -0
  135. package/dist/_openapi_client/resources/feedback/configs.d.ts +18 -0
  136. package/dist/_openapi_client/resources/feedback/configs.js +20 -0
  137. package/dist/_openapi_client/resources/feedback/feedback.cjs +98 -0
  138. package/dist/_openapi_client/resources/feedback/feedback.d.ts +275 -0
  139. package/dist/_openapi_client/resources/feedback/feedback.js +61 -0
  140. package/dist/_openapi_client/resources/feedback/tokens.cjs +35 -0
  141. package/dist/_openapi_client/resources/feedback/tokens.d.ts +130 -0
  142. package/dist/_openapi_client/resources/feedback/tokens.js +31 -0
  143. package/dist/_openapi_client/resources/index.cjs +35 -0
  144. package/dist/_openapi_client/resources/index.d.ts +15 -0
  145. package/dist/_openapi_client/resources/index.js +17 -0
  146. package/dist/_openapi_client/resources/info.cjs +15 -0
  147. package/dist/_openapi_client/resources/info.d.ts +51 -0
  148. package/dist/_openapi_client/resources/info.js +11 -0
  149. package/dist/_openapi_client/resources/online-evaluators.cjs +70 -0
  150. package/dist/_openapi_client/resources/online-evaluators.d.ts +284 -0
  151. package/dist/_openapi_client/resources/online-evaluators.js +66 -0
  152. package/dist/_openapi_client/resources/public/datasets.cjs +47 -0
  153. package/dist/_openapi_client/resources/public/datasets.d.ts +152 -0
  154. package/dist/_openapi_client/resources/public/datasets.js +43 -0
  155. package/dist/_openapi_client/resources/public/public.cjs +62 -0
  156. package/dist/_openapi_client/resources/public/public.d.ts +32 -0
  157. package/dist/_openapi_client/resources/public/public.js +25 -0
  158. package/dist/_openapi_client/resources/repos/directories.cjs +40 -0
  159. package/dist/_openapi_client/resources/repos/directories.d.ts +72 -0
  160. package/dist/_openapi_client/resources/repos/directories.js +36 -0
  161. package/dist/_openapi_client/resources/repos/repos.cjs +93 -0
  162. package/dist/_openapi_client/resources/repos/repos.d.ts +188 -0
  163. package/dist/_openapi_client/resources/repos/repos.js +56 -0
  164. package/dist/_openapi_client/resources/runs/rules.cjs +9 -0
  165. package/dist/_openapi_client/resources/runs/rules.d.ts +3 -0
  166. package/dist/_openapi_client/resources/runs/rules.js +5 -0
  167. package/dist/_openapi_client/resources/runs/runs.cjs +102 -0
  168. package/dist/_openapi_client/resources/runs/runs.d.ts +542 -0
  169. package/dist/_openapi_client/resources/runs/runs.js +65 -0
  170. package/dist/_openapi_client/resources/sandboxes/boxes.cjs +86 -0
  171. package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +1121 -0
  172. package/dist/_openapi_client/resources/sandboxes/boxes.js +82 -0
  173. package/dist/_openapi_client/resources/sandboxes/sandboxes.cjs +63 -0
  174. package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +13 -0
  175. package/dist/_openapi_client/resources/sandboxes/sandboxes.js +26 -0
  176. package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +39 -0
  177. package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +130 -0
  178. package/dist/_openapi_client/resources/sandboxes/snapshots.js +35 -0
  179. package/dist/_openapi_client/resources/sessions/insights.cjs +54 -0
  180. package/dist/_openapi_client/resources/sessions/insights.d.ts +246 -0
  181. package/dist/_openapi_client/resources/sessions/insights.js +50 -0
  182. package/dist/_openapi_client/resources/sessions/sessions.cjs +109 -0
  183. package/dist/_openapi_client/resources/sessions/sessions.d.ts +674 -0
  184. package/dist/_openapi_client/resources/sessions/sessions.js +72 -0
  185. package/dist/_openapi_client/resources/settings.cjs +15 -0
  186. package/dist/_openapi_client/resources/settings.d.ts +18 -0
  187. package/dist/_openapi_client/resources/settings.js +11 -0
  188. package/dist/_openapi_client/resources/workspaces.cjs +35 -0
  189. package/dist/_openapi_client/resources/workspaces.d.ts +84 -0
  190. package/dist/_openapi_client/resources/workspaces.js +31 -0
  191. package/dist/_openapi_client/version.cjs +5 -0
  192. package/dist/_openapi_client/version.d.ts +1 -0
  193. package/dist/_openapi_client/version.js +2 -0
  194. package/dist/client.cjs +48 -19
  195. package/dist/client.d.ts +5 -0
  196. package/dist/client.js +29 -0
  197. package/dist/env.cjs +3 -3
  198. package/dist/env.d.ts +1 -1
  199. package/dist/env.js +1 -1
  200. package/dist/experimental/otel/exporter.cjs +1 -1
  201. package/dist/experimental/otel/exporter.js +2 -2
  202. package/dist/experimental/vercel/telemetry.cjs +1 -1
  203. package/dist/experimental/vercel/telemetry.js +2 -2
  204. package/dist/index.cjs +4 -2
  205. package/dist/index.d.ts +2 -1
  206. package/dist/index.js +2 -1
  207. package/dist/run_trees.cjs +1 -1
  208. package/dist/run_trees.js +2 -2
  209. package/dist/sandbox/client.cjs +11 -3
  210. package/dist/sandbox/client.js +11 -3
  211. package/dist/sandbox/index.cjs +8 -2
  212. package/dist/sandbox/index.d.ts +3 -2
  213. package/dist/sandbox/index.js +2 -1
  214. package/dist/sandbox/mounts.cjs +114 -0
  215. package/dist/sandbox/mounts.d.ts +24 -0
  216. package/dist/sandbox/mounts.js +109 -0
  217. package/dist/sandbox/proxy_config.cjs +90 -5
  218. package/dist/sandbox/proxy_config.d.ts +19 -4
  219. package/dist/sandbox/proxy_config.js +86 -4
  220. package/dist/sandbox/types.d.ts +92 -3
  221. package/dist/traceable.cjs +1 -1
  222. package/dist/traceable.js +2 -2
  223. package/dist/utils/guard.cjs +13 -0
  224. package/dist/utils/guard.d.ts +6 -0
  225. package/dist/utils/guard.js +10 -0
  226. package/dist/utils/jestlike/globals.cjs +1 -1
  227. package/dist/utils/jestlike/globals.js +2 -2
  228. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Tokens = void 0;
6
+ const resource_js_1 = require("../../core/resource.cjs");
7
+ const path_js_1 = require("../../internal/utils/path.cjs");
8
+ class Tokens extends resource_js_1.APIResource {
9
+ /**
10
+ * Create a new feedback ingest token.
11
+ */
12
+ create(params, options) {
13
+ const body = 'body' in params ? params.body : params;
14
+ return this._client.post('/api/v1/feedback/tokens', { body, ...options });
15
+ }
16
+ /**
17
+ * Create a new feedback with a token.
18
+ */
19
+ retrieve(token, query = {}, options) {
20
+ return this._client.get((0, path_js_1.path) `/api/v1/feedback/tokens/${token}`, { query, ...options });
21
+ }
22
+ /**
23
+ * Create a new feedback with a token.
24
+ */
25
+ update(token, body, options) {
26
+ return this._client.post((0, path_js_1.path) `/api/v1/feedback/tokens/${token}`, { body, ...options });
27
+ }
28
+ /**
29
+ * List all feedback ingest tokens for a run.
30
+ */
31
+ list(query, options) {
32
+ return this._client.get('/api/v1/feedback/tokens', { query, ...options });
33
+ }
34
+ }
35
+ exports.Tokens = Tokens;
@@ -0,0 +1,130 @@
1
+ import { APIResource } from '../../core/resource.js';
2
+ import * as SessionsAPI from '../sessions/sessions.js';
3
+ import { APIPromise } from '../../core/api-promise.js';
4
+ import { RequestOptions } from '../../internal/request-options.js';
5
+ export declare class Tokens extends APIResource {
6
+ /**
7
+ * Create a new feedback ingest token.
8
+ */
9
+ create(params: TokenCreateParams, options?: RequestOptions): APIPromise<TokenCreateResponse>;
10
+ /**
11
+ * Create a new feedback with a token.
12
+ */
13
+ retrieve(token: string, query?: TokenRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<unknown>;
14
+ /**
15
+ * Create a new feedback with a token.
16
+ */
17
+ update(token: string, body: TokenUpdateParams, options?: RequestOptions): APIPromise<unknown>;
18
+ /**
19
+ * List all feedback ingest tokens for a run.
20
+ */
21
+ list(query: TokenListParams, options?: RequestOptions): APIPromise<TokenListResponse>;
22
+ }
23
+ /**
24
+ * Feedback ingest token create schema.
25
+ */
26
+ export interface FeedbackIngestTokenCreateSchema {
27
+ feedback_key: string;
28
+ run_id: string;
29
+ expires_at?: string | null;
30
+ /**
31
+ * Timedelta input.
32
+ */
33
+ expires_in?: SessionsAPI.TimedeltaInput | null;
34
+ feedback_config?: FeedbackIngestTokenCreateSchema.FeedbackConfig | null;
35
+ }
36
+ export declare namespace FeedbackIngestTokenCreateSchema {
37
+ interface FeedbackConfig {
38
+ /**
39
+ * Enum for feedback types.
40
+ */
41
+ type: 'continuous' | 'categorical' | 'freeform';
42
+ categories?: Array<FeedbackConfig.Category> | null;
43
+ max?: number | null;
44
+ min?: number | null;
45
+ }
46
+ namespace FeedbackConfig {
47
+ /**
48
+ * Specific value and label pair for feedback
49
+ */
50
+ interface Category {
51
+ value: number;
52
+ label?: string | null;
53
+ }
54
+ }
55
+ }
56
+ /**
57
+ * Feedback ingest token schema.
58
+ */
59
+ export interface FeedbackIngestTokenSchema {
60
+ id: string;
61
+ expires_at: string;
62
+ feedback_key: string;
63
+ url: string;
64
+ }
65
+ /**
66
+ * Feedback ingest token schema.
67
+ */
68
+ export type TokenCreateResponse = FeedbackIngestTokenSchema | Array<FeedbackIngestTokenSchema>;
69
+ export type TokenRetrieveResponse = unknown;
70
+ export type TokenUpdateResponse = unknown;
71
+ export type TokenListResponse = Array<FeedbackIngestTokenSchema>;
72
+ export type TokenCreateParams = TokenCreateParams.FeedbackIngestTokenCreateSchema | TokenCreateParams.Variant1;
73
+ export declare namespace TokenCreateParams {
74
+ interface FeedbackIngestTokenCreateSchema {
75
+ feedback_key: string;
76
+ run_id: string;
77
+ expires_at?: string | null;
78
+ /**
79
+ * Timedelta input.
80
+ */
81
+ expires_in?: SessionsAPI.TimedeltaInput | null;
82
+ feedback_config?: FeedbackIngestTokenCreateSchema.FeedbackConfig | null;
83
+ }
84
+ namespace FeedbackIngestTokenCreateSchema {
85
+ interface FeedbackConfig {
86
+ /**
87
+ * Enum for feedback types.
88
+ */
89
+ type: 'continuous' | 'categorical' | 'freeform';
90
+ categories?: Array<FeedbackConfig.Category> | null;
91
+ max?: number | null;
92
+ min?: number | null;
93
+ }
94
+ namespace FeedbackConfig {
95
+ /**
96
+ * Specific value and label pair for feedback
97
+ */
98
+ interface Category {
99
+ value: number;
100
+ label?: string | null;
101
+ }
102
+ }
103
+ }
104
+ interface Variant1 {
105
+ body: Array<FeedbackIngestTokenCreateSchema>;
106
+ }
107
+ }
108
+ export interface TokenRetrieveParams {
109
+ comment?: string | null;
110
+ correction?: string | null;
111
+ score?: number | boolean | null;
112
+ value?: number | boolean | string | null;
113
+ }
114
+ export interface TokenUpdateParams {
115
+ comment?: string | null;
116
+ correction?: {
117
+ [key: string]: unknown;
118
+ } | string | null;
119
+ metadata?: {
120
+ [key: string]: unknown;
121
+ } | null;
122
+ score?: number | boolean | null;
123
+ value?: number | boolean | string | null;
124
+ }
125
+ export interface TokenListParams {
126
+ run_id: string;
127
+ }
128
+ export declare namespace Tokens {
129
+ export { type FeedbackIngestTokenCreateSchema as FeedbackIngestTokenCreateSchema, type FeedbackIngestTokenSchema as FeedbackIngestTokenSchema, type TokenCreateResponse as TokenCreateResponse, type TokenRetrieveResponse as TokenRetrieveResponse, type TokenUpdateResponse as TokenUpdateResponse, type TokenListResponse as TokenListResponse, type TokenCreateParams as TokenCreateParams, type TokenRetrieveParams as TokenRetrieveParams, type TokenUpdateParams as TokenUpdateParams, type TokenListParams as TokenListParams, };
130
+ }
@@ -0,0 +1,31 @@
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 Tokens extends APIResource {
6
+ /**
7
+ * Create a new feedback ingest token.
8
+ */
9
+ create(params, options) {
10
+ const body = 'body' in params ? params.body : params;
11
+ return this._client.post('/api/v1/feedback/tokens', { body, ...options });
12
+ }
13
+ /**
14
+ * Create a new feedback with a token.
15
+ */
16
+ retrieve(token, query = {}, options) {
17
+ return this._client.get(path `/api/v1/feedback/tokens/${token}`, { query, ...options });
18
+ }
19
+ /**
20
+ * Create a new feedback with a token.
21
+ */
22
+ update(token, body, options) {
23
+ return this._client.post(path `/api/v1/feedback/tokens/${token}`, { body, ...options });
24
+ }
25
+ /**
26
+ * List all feedback ingest tokens for a run.
27
+ */
28
+ list(query, options) {
29
+ return this._client.get('/api/v1/feedback/tokens', { query, ...options });
30
+ }
31
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Workspaces = exports.Settings = exports.Sessions = exports.Sandboxes = exports.Runs = exports.Repos = exports.Public = exports.OnlineEvaluators = exports.Info = exports.Feedback = exports.Examples = exports.Evaluators = exports.Datasets = exports.Commits = 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; } });
8
+ var commits_js_1 = require("./commits.cjs");
9
+ Object.defineProperty(exports, "Commits", { enumerable: true, get: function () { return commits_js_1.Commits; } });
10
+ var datasets_js_1 = require("./datasets/datasets.cjs");
11
+ Object.defineProperty(exports, "Datasets", { enumerable: true, get: function () { return datasets_js_1.Datasets; } });
12
+ var evaluators_js_1 = require("./evaluators.cjs");
13
+ Object.defineProperty(exports, "Evaluators", { enumerable: true, get: function () { return evaluators_js_1.Evaluators; } });
14
+ var examples_js_1 = require("./examples/examples.cjs");
15
+ Object.defineProperty(exports, "Examples", { enumerable: true, get: function () { return examples_js_1.Examples; } });
16
+ var feedback_js_1 = require("./feedback/feedback.cjs");
17
+ Object.defineProperty(exports, "Feedback", { enumerable: true, get: function () { return feedback_js_1.Feedback; } });
18
+ var info_js_1 = require("./info.cjs");
19
+ Object.defineProperty(exports, "Info", { enumerable: true, get: function () { return info_js_1.Info; } });
20
+ var online_evaluators_js_1 = require("./online-evaluators.cjs");
21
+ Object.defineProperty(exports, "OnlineEvaluators", { enumerable: true, get: function () { return online_evaluators_js_1.OnlineEvaluators; } });
22
+ var public_js_1 = require("./public/public.cjs");
23
+ Object.defineProperty(exports, "Public", { enumerable: true, get: function () { return public_js_1.Public; } });
24
+ var repos_js_1 = require("./repos/repos.cjs");
25
+ Object.defineProperty(exports, "Repos", { enumerable: true, get: function () { return repos_js_1.Repos; } });
26
+ var runs_js_1 = require("./runs/runs.cjs");
27
+ Object.defineProperty(exports, "Runs", { enumerable: true, get: function () { return runs_js_1.Runs; } });
28
+ var sandboxes_js_1 = require("./sandboxes/sandboxes.cjs");
29
+ Object.defineProperty(exports, "Sandboxes", { enumerable: true, get: function () { return sandboxes_js_1.Sandboxes; } });
30
+ var sessions_js_1 = require("./sessions/sessions.cjs");
31
+ Object.defineProperty(exports, "Sessions", { enumerable: true, get: function () { return sessions_js_1.Sessions; } });
32
+ var settings_js_1 = require("./settings.cjs");
33
+ Object.defineProperty(exports, "Settings", { enumerable: true, get: function () { return settings_js_1.Settings; } });
34
+ var workspaces_js_1 = require("./workspaces.cjs");
35
+ Object.defineProperty(exports, "Workspaces", { enumerable: true, get: function () { return workspaces_js_1.Workspaces; } });
@@ -0,0 +1,15 @@
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';
2
+ export { Commits, type CommitManifestResponse, type CommitWithLookups, type CommitCreateResponse, type CommitRetrieveResponse, type CommitCreateParams, type CommitRetrieveParams, type CommitListParams, type CommitWithLookupsOffsetPaginationCommits, } from './commits.js';
3
+ export { Datasets, type DataType, type Dataset, type DatasetTransformation, type DatasetVersion, type FeedbackCreateCoreSchema, type Missing, type SortByDatasetColumn, type DatasetUpdateResponse, type DatasetDeleteResponse, type DatasetCloneResponse, type DatasetRetrieveCsvResponse, type DatasetRetrieveJSONLResponse, type DatasetRetrieveOpenAIResponse, type DatasetRetrieveOpenAIFtResponse, type DatasetCreateParams, type DatasetUpdateParams, type DatasetListParams, type DatasetCloneParams, type DatasetRetrieveCsvParams, type DatasetRetrieveJSONLParams, type DatasetRetrieveOpenAIParams, type DatasetRetrieveOpenAIFtParams, type DatasetRetrieveVersionParams, type DatasetUpdateTagsParams, type DatasetUploadParams, type DatasetVersionsOffsetPaginationTopLevelArray, type DatasetsOffsetPaginationTopLevelArray, } from './datasets/datasets.js';
4
+ export { Evaluators, type CodeEvaluatorTopLevel, type Evaluator, type EvaluatorPagerdutyAlert, type EvaluatorTopLevel, type EvaluatorWebhook, type EvaluatorListResponse, type EvaluatorListParams, } from './evaluators.js';
5
+ export { Examples, type AttachmentsOperations, type Example, type ExampleSelect, type ExampleUpdateResponse, type ExampleDeleteResponse, type ExampleDeleteAllResponse, type ExampleRetrieveCountResponse, type ExampleUploadFromCsvResponse, type ExampleCreateParams, type ExampleRetrieveParams, type ExampleUpdateParams, type ExampleListParams, type ExampleDeleteAllParams, type ExampleRetrieveCountParams, type ExampleUploadFromCsvParams, type ExamplesOffsetPaginationTopLevelArray, } from './examples/examples.js';
6
+ export { Feedback, type APIFeedbackSource, type AppFeedbackSource, type AutoEvalFeedbackSource, type FeedbackCreateSchema, type FeedbackLevel, type FeedbackSchema, type ModelFeedbackSource, type SourceType, type FeedbackDeleteResponse, type FeedbackCreateParams, type FeedbackRetrieveParams, type FeedbackUpdateParams, type FeedbackListParams, type FeedbackSchemasOffsetPaginationTopLevelArray, } from './feedback/feedback.js';
7
+ export { Info, type InfoListResponse } from './info.js';
8
+ export { OnlineEvaluators, type BulkDeleteEvaluatorFailedItem, type BulkDeleteEvaluatorsResponse, type CreateOnlineCodeEvaluatorRequest, type CreateOnlineEvaluatorRequest, type CreateOnlineEvaluatorResponse, type CreateOnlineLlmEvaluatorRequest, type GetOnlineEvaluatorSpendResponse, type OnlineCodeEvaluator, type OnlineEvaluator, type OnlineEvaluatorRunRule, type OnlineEvaluatorSpendDay, type OnlineEvaluatorSpendGroup, type OnlineEvaluatorType, type OnlineLlmEvaluator, type OnlineSpendLimit, type UpdateOnlineCodeEvaluatorRequest, type UpdateOnlineEvaluatorRequest, type UpdateOnlineEvaluatorResponse, type UpdateOnlineLlmEvaluatorRequest, type OnlineEvaluatorCreateParams, type OnlineEvaluatorUpdateParams, type OnlineEvaluatorListParams, type OnlineEvaluatorDeleteParams, type OnlineEvaluatorBulkDeleteParams, type OnlineEvaluatorSpendParams, type OnlineEvaluatorsOffsetPaginationOnlineEvaluators, } from './online-evaluators.js';
9
+ export { Public, type PublicRetrieveFeedbacksParams } from './public/public.js';
10
+ export { Repos, type CreateRepoResponse, type DemoConfig, type EPromptOptimizationAlgorithm, type GetRepoResponse, type PromptimConfig, type RepoWithLookups, type RepoDeleteResponse, type RepoCreateParams, type RepoRetrieveParams, type RepoUpdateParams, type RepoListParams, type RepoDeleteParams, type RepoWithLookupsOffsetPaginationRepos, } from './repos/repos.js';
11
+ export { Runs, type BodyParamsForRunSchema, type RequestBodyForRunsGenerateQuery, type ResponseBodyForRunsGenerateQuery, type Run, type RunSchema, type RunStatsQueryParams, type RunTypeEnum, type RunsFilterDataSourceTypeEnum, type RunCreateResponse, type RunUpdateResponse, type RunIngestBatchResponse, type RunQueryResponse, type RunStatsResponse, type RunUpdate2Response, type RunCreateParams, type RunRetrieveParams, type RunUpdateParams, type RunIngestBatchParams, type RunQueryParams, type RunStatsParams, } from './runs/runs.js';
12
+ export { Sandboxes } from './sandboxes/sandboxes.js';
13
+ export { Sessions, type CustomChartsSection, type CustomChartsSectionRequest, type RunStatsGroupBy, type SessionSortableColumns, type TimedeltaInput, type TracerSession, type TracerSessionWithoutVirtualFields, type SessionDeleteResponse, type SessionCreateParams, type SessionRetrieveParams, type SessionUpdateParams, type SessionListParams, type SessionDashboardParams, type TracerSessionsOffsetPaginationTopLevelArray, } from './sessions/sessions.js';
14
+ export { Settings, type AppHubCrudTenantsTenant } from './settings.js';
15
+ export { Workspaces, type WorkspaceCreateResponse, type WorkspaceUpdateResponse, type WorkspaceListResponse, type WorkspaceDeleteResponse, type WorkspaceCreateParams, type WorkspaceUpdateParams, type WorkspaceListParams, } from './workspaces.js';
@@ -0,0 +1,17 @@
1
+ // @ts-nocheck
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ export { AnnotationQueues, } from './annotation-queues/annotation-queues.js';
4
+ export { Commits, } from './commits.js';
5
+ export { Datasets, } from './datasets/datasets.js';
6
+ export { Evaluators, } from './evaluators.js';
7
+ export { Examples, } from './examples/examples.js';
8
+ export { Feedback, } from './feedback/feedback.js';
9
+ export { Info } from './info.js';
10
+ export { OnlineEvaluators, } from './online-evaluators.js';
11
+ export { Public } from './public/public.js';
12
+ export { Repos, } from './repos/repos.js';
13
+ export { Runs, } from './runs/runs.js';
14
+ export { Sandboxes } from './sandboxes/sandboxes.js';
15
+ export { Sessions, } from './sessions/sessions.js';
16
+ export { Settings } from './settings.js';
17
+ export { Workspaces, } from './workspaces.js';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Info = void 0;
6
+ const resource_js_1 = require("../core/resource.cjs");
7
+ class Info extends resource_js_1.APIResource {
8
+ /**
9
+ * Get information about the current deployment of LangSmith.
10
+ */
11
+ list(options) {
12
+ return this._client.get('/api/v1/info', options);
13
+ }
14
+ }
15
+ exports.Info = Info;
@@ -0,0 +1,51 @@
1
+ import { APIResource } from '../core/resource.js';
2
+ import { APIPromise } from '../core/api-promise.js';
3
+ import { RequestOptions } from '../internal/request-options.js';
4
+ export declare class Info extends APIResource {
5
+ /**
6
+ * Get information about the current deployment of LangSmith.
7
+ */
8
+ list(options?: RequestOptions): APIPromise<InfoListResponse>;
9
+ }
10
+ /**
11
+ * The LangSmith server info.
12
+ */
13
+ export interface InfoListResponse {
14
+ version: string;
15
+ /**
16
+ * Batch ingest config.
17
+ */
18
+ batch_ingest_config?: InfoListResponse.BatchIngestConfig;
19
+ /**
20
+ * Customer info.
21
+ */
22
+ customer_info?: InfoListResponse.CustomerInfo | null;
23
+ git_sha?: string | null;
24
+ instance_flags?: {
25
+ [key: string]: unknown;
26
+ };
27
+ license_expiration_time?: string | null;
28
+ }
29
+ export declare namespace InfoListResponse {
30
+ /**
31
+ * Batch ingest config.
32
+ */
33
+ interface BatchIngestConfig {
34
+ scale_down_nempty_trigger?: number;
35
+ scale_up_nthreads_limit?: number;
36
+ scale_up_qsize_trigger?: number;
37
+ size_limit?: number;
38
+ size_limit_bytes?: number;
39
+ use_multipart_endpoint?: boolean;
40
+ }
41
+ /**
42
+ * Customer info.
43
+ */
44
+ interface CustomerInfo {
45
+ customer_id: string;
46
+ customer_name: string;
47
+ }
48
+ }
49
+ export declare namespace Info {
50
+ export { type InfoListResponse as InfoListResponse };
51
+ }
@@ -0,0 +1,11 @@
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
+ export class Info extends APIResource {
5
+ /**
6
+ * Get information about the current deployment of LangSmith.
7
+ */
8
+ list(options) {
9
+ return this._client.get('/api/v1/info', options);
10
+ }
11
+ }
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.OnlineEvaluators = void 0;
6
+ const resource_js_1 = require("../core/resource.cjs");
7
+ const pagination_js_1 = require("../core/pagination.cjs");
8
+ const headers_js_1 = require("../internal/headers.cjs");
9
+ const path_js_1 = require("../internal/utils/path.cjs");
10
+ class OnlineEvaluators extends resource_js_1.APIResource {
11
+ /**
12
+ * Create a new LLM or code evaluator for the current workspace.
13
+ */
14
+ create(body, options) {
15
+ return this._client.post('/v1/platform/evaluators', { body, ...options });
16
+ }
17
+ /**
18
+ * Retrieve a single evaluator by its ID.
19
+ */
20
+ retrieve(evaluatorID, options) {
21
+ return this._client.get((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, options);
22
+ }
23
+ /**
24
+ * Update an existing evaluator's name, LLM configuration, or code configuration.
25
+ */
26
+ update(evaluatorID, body, options) {
27
+ return this._client.patch((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, { body, ...options });
28
+ }
29
+ /**
30
+ * List evaluators for the current workspace, with optional filtering by type,
31
+ * name, tag, feedback key, or resource ID.
32
+ */
33
+ list(query = {}, options) {
34
+ return this._client.getAPIList('/v1/platform/evaluators', (pagination_js_1.OffsetPaginationOnlineEvaluators), { query, ...options });
35
+ }
36
+ /**
37
+ * Delete an evaluator. When delete_run_rules is true, all run rules referencing
38
+ * this evaluator are deleted first (same tenant). Associated llm_evaluators and
39
+ * code_evaluators rows are removed by foreign-key cascade when the evaluator row
40
+ * is deleted.
41
+ */
42
+ delete(evaluatorID, params = {}, options) {
43
+ const { delete_run_rules } = params ?? {};
44
+ return this._client.delete((0, path_js_1.path) `/v1/platform/evaluators/${evaluatorID}`, {
45
+ query: { delete_run_rules },
46
+ ...options,
47
+ headers: (0, headers_js_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
48
+ });
49
+ }
50
+ /**
51
+ * Delete multiple evaluators by their IDs. Returns per-item success/failure.
52
+ */
53
+ bulkDelete(params, options) {
54
+ const { evaluator_ids, delete_run_rules } = params;
55
+ return this._client.delete('/v1/platform/evaluators', {
56
+ query: { evaluator_ids, delete_run_rules },
57
+ ...options,
58
+ });
59
+ }
60
+ /**
61
+ * Returns per-day LLM evaluator spend for the requested 7-day period, grouped by
62
+ * evaluator, resource, or run rule. Exactly one of group_by, evaluator_id,
63
+ * session_id, or dataset_id is required. resource_id, type, and feedback_key may
64
+ * be supplied with group_by to narrow listing aggregations.
65
+ */
66
+ spend(query, options) {
67
+ return this._client.get('/v1/platform/evaluators/spend', { query, ...options });
68
+ }
69
+ }
70
+ exports.OnlineEvaluators = OnlineEvaluators;