openlayer 0.0.0 → 0.0.1-alpha.1

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 (257) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +412 -0
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/_shims/auto/runtime-bun.d.ts +5 -0
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +101 -0
  35. package/_shims/auto/types.js +3 -0
  36. package/_shims/auto/types.mjs +3 -0
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +81 -0
  44. package/_shims/index.js +13 -0
  45. package/_shims/index.mjs +7 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +90 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +56 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +37 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +41 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +37 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +78 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +71 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +83 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +237 -0
  74. package/core.d.ts.map +1 -0
  75. package/core.js +868 -0
  76. package/core.js.map +1 -0
  77. package/core.mjs +837 -0
  78. package/core.mjs.map +1 -0
  79. package/error.d.ts +53 -0
  80. package/error.d.ts.map +1 -0
  81. package/error.js +143 -0
  82. package/error.js.map +1 -0
  83. package/error.mjs +127 -0
  84. package/error.mjs.map +1 -0
  85. package/index.d.mts +114 -0
  86. package/index.d.ts +114 -0
  87. package/index.d.ts.map +1 -0
  88. package/index.js +119 -0
  89. package/index.js.map +1 -0
  90. package/index.mjs +91 -0
  91. package/index.mjs.map +1 -0
  92. package/lib/core/cli.d.ts +21 -0
  93. package/lib/core/cli.d.ts.map +1 -0
  94. package/lib/core/cli.js +90 -0
  95. package/lib/core/cli.js.map +1 -0
  96. package/lib/core/cli.mjs +65 -0
  97. package/lib/core/cli.mjs.map +1 -0
  98. package/lib/core/openai-monitor.d.ts +54 -0
  99. package/lib/core/openai-monitor.d.ts.map +1 -0
  100. package/lib/core/openai-monitor.js +376 -0
  101. package/lib/core/openai-monitor.js.map +1 -0
  102. package/lib/core/openai-monitor.mjs +371 -0
  103. package/lib/core/openai-monitor.mjs.map +1 -0
  104. package/package.json +102 -6
  105. package/resource.d.ts +6 -0
  106. package/resource.d.ts.map +1 -0
  107. package/resource.js +11 -0
  108. package/resource.js.map +1 -0
  109. package/resource.mjs +7 -0
  110. package/resource.mjs.map +1 -0
  111. package/resources/commits/commits.d.ts +11 -0
  112. package/resources/commits/commits.d.ts.map +1 -0
  113. package/resources/commits/commits.js +40 -0
  114. package/resources/commits/commits.js.map +1 -0
  115. package/resources/commits/commits.mjs +13 -0
  116. package/resources/commits/commits.mjs.map +1 -0
  117. package/resources/commits/index.d.ts +3 -0
  118. package/resources/commits/index.d.ts.map +1 -0
  119. package/resources/commits/index.js +9 -0
  120. package/resources/commits/index.js.map +1 -0
  121. package/resources/commits/index.mjs +4 -0
  122. package/resources/commits/index.mjs.map +1 -0
  123. package/resources/commits/test-results.d.ts +217 -0
  124. package/resources/commits/test-results.d.ts.map +1 -0
  125. package/resources/commits/test-results.js +18 -0
  126. package/resources/commits/test-results.js.map +1 -0
  127. package/resources/commits/test-results.mjs +14 -0
  128. package/resources/commits/test-results.mjs.map +1 -0
  129. package/resources/index.d.ts +4 -0
  130. package/resources/index.d.ts.map +1 -0
  131. package/resources/index.js +11 -0
  132. package/resources/index.js.map +1 -0
  133. package/resources/index.mjs +5 -0
  134. package/resources/index.mjs.map +1 -0
  135. package/resources/inference-pipelines/data.d.ts +228 -0
  136. package/resources/inference-pipelines/data.d.ts.map +1 -0
  137. package/resources/inference-pipelines/data.js +17 -0
  138. package/resources/inference-pipelines/data.js.map +1 -0
  139. package/resources/inference-pipelines/data.mjs +13 -0
  140. package/resources/inference-pipelines/data.mjs.map +1 -0
  141. package/resources/inference-pipelines/index.d.ts +4 -0
  142. package/resources/inference-pipelines/index.d.ts.map +1 -0
  143. package/resources/inference-pipelines/index.js +11 -0
  144. package/resources/inference-pipelines/index.js.map +1 -0
  145. package/resources/inference-pipelines/index.mjs +5 -0
  146. package/resources/inference-pipelines/index.mjs.map +1 -0
  147. package/resources/inference-pipelines/inference-pipelines.d.ts +16 -0
  148. package/resources/inference-pipelines/inference-pipelines.d.ts.map +1 -0
  149. package/resources/inference-pipelines/inference-pipelines.js +43 -0
  150. package/resources/inference-pipelines/inference-pipelines.js.map +1 -0
  151. package/resources/inference-pipelines/inference-pipelines.mjs +16 -0
  152. package/resources/inference-pipelines/inference-pipelines.mjs.map +1 -0
  153. package/resources/inference-pipelines/test-results.d.ts +217 -0
  154. package/resources/inference-pipelines/test-results.d.ts.map +1 -0
  155. package/resources/inference-pipelines/test-results.js +18 -0
  156. package/resources/inference-pipelines/test-results.js.map +1 -0
  157. package/resources/inference-pipelines/test-results.mjs +14 -0
  158. package/resources/inference-pipelines/test-results.mjs.map +1 -0
  159. package/resources/projects/commits.d.ts +171 -0
  160. package/resources/projects/commits.d.ts.map +1 -0
  161. package/resources/projects/commits.js +18 -0
  162. package/resources/projects/commits.js.map +1 -0
  163. package/resources/projects/commits.mjs +14 -0
  164. package/resources/projects/commits.mjs.map +1 -0
  165. package/resources/projects/index.d.ts +4 -0
  166. package/resources/projects/index.d.ts.map +1 -0
  167. package/resources/projects/index.js +11 -0
  168. package/resources/projects/index.js.map +1 -0
  169. package/resources/projects/index.mjs +5 -0
  170. package/resources/projects/index.mjs.map +1 -0
  171. package/resources/projects/inference-pipelines.d.ts +121 -0
  172. package/resources/projects/inference-pipelines.d.ts.map +1 -0
  173. package/resources/projects/inference-pipelines.js +18 -0
  174. package/resources/projects/inference-pipelines.js.map +1 -0
  175. package/resources/projects/inference-pipelines.mjs +14 -0
  176. package/resources/projects/inference-pipelines.mjs.map +1 -0
  177. package/resources/projects/projects.d.ts +172 -0
  178. package/resources/projects/projects.d.ts.map +1 -0
  179. package/resources/projects/projects.js +50 -0
  180. package/resources/projects/projects.js.map +1 -0
  181. package/resources/projects/projects.mjs +23 -0
  182. package/resources/projects/projects.mjs.map +1 -0
  183. package/shims/node.d.ts +29 -0
  184. package/shims/node.d.ts.map +1 -0
  185. package/shims/node.js +31 -0
  186. package/shims/node.js.map +1 -0
  187. package/shims/node.mjs +5 -0
  188. package/shims/node.mjs.map +1 -0
  189. package/shims/web.d.ts +26 -0
  190. package/shims/web.d.ts.map +1 -0
  191. package/shims/web.js +31 -0
  192. package/shims/web.js.map +1 -0
  193. package/shims/web.mjs +5 -0
  194. package/shims/web.mjs.map +1 -0
  195. package/src/_shims/MultipartBody.ts +9 -0
  196. package/src/_shims/README.md +46 -0
  197. package/src/_shims/auto/runtime-bun.ts +4 -0
  198. package/src/_shims/auto/runtime-node.ts +4 -0
  199. package/src/_shims/auto/runtime.ts +4 -0
  200. package/src/_shims/auto/types-node.ts +4 -0
  201. package/src/_shims/auto/types.d.ts +101 -0
  202. package/src/_shims/auto/types.js +3 -0
  203. package/src/_shims/auto/types.mjs +3 -0
  204. package/src/_shims/bun-runtime.ts +14 -0
  205. package/src/_shims/index.d.ts +81 -0
  206. package/src/_shims/index.js +13 -0
  207. package/src/_shims/index.mjs +7 -0
  208. package/src/_shims/manual-types.d.ts +12 -0
  209. package/src/_shims/manual-types.js +3 -0
  210. package/src/_shims/manual-types.mjs +3 -0
  211. package/src/_shims/node-runtime.ts +83 -0
  212. package/src/_shims/node-types.d.ts +42 -0
  213. package/src/_shims/node-types.js +3 -0
  214. package/src/_shims/node-types.mjs +3 -0
  215. package/src/_shims/registry.ts +67 -0
  216. package/src/_shims/web-runtime.ts +103 -0
  217. package/src/_shims/web-types.d.ts +83 -0
  218. package/src/_shims/web-types.js +3 -0
  219. package/src/_shims/web-types.mjs +3 -0
  220. package/src/core.ts +1146 -0
  221. package/src/error.ts +146 -0
  222. package/src/index.ts +199 -0
  223. package/src/lib/.keep +4 -0
  224. package/src/lib/core/cli.ts +96 -0
  225. package/src/lib/core/index.d.ts +2 -0
  226. package/src/lib/core/openai-monitor.ts +470 -0
  227. package/src/lib/index.d.ts +1 -0
  228. package/src/resource.ts +11 -0
  229. package/src/resources/commits/commits.ts +14 -0
  230. package/src/resources/commits/index.ts +4 -0
  231. package/src/resources/commits/test-results.ts +284 -0
  232. package/src/resources/index.ts +5 -0
  233. package/src/resources/inference-pipelines/data.ts +285 -0
  234. package/src/resources/inference-pipelines/index.ts +5 -0
  235. package/src/resources/inference-pipelines/inference-pipelines.ts +19 -0
  236. package/src/resources/inference-pipelines/test-results.ts +284 -0
  237. package/src/resources/projects/commits.ts +226 -0
  238. package/src/resources/projects/index.ts +9 -0
  239. package/src/resources/projects/inference-pipelines.ts +165 -0
  240. package/src/resources/projects/projects.ts +232 -0
  241. package/src/shims/node.ts +50 -0
  242. package/src/shims/web.ts +50 -0
  243. package/src/tsconfig.json +11 -0
  244. package/src/uploads.ts +248 -0
  245. package/src/version.ts +1 -0
  246. package/uploads.d.ts +75 -0
  247. package/uploads.d.ts.map +1 -0
  248. package/uploads.js +165 -0
  249. package/uploads.js.map +1 -0
  250. package/uploads.mjs +152 -0
  251. package/uploads.mjs.map +1 -0
  252. package/version.d.ts +2 -0
  253. package/version.d.ts.map +1 -0
  254. package/version.js +5 -0
  255. package/version.js.map +1 -0
  256. package/version.mjs +2 -0
  257. package/version.mjs.map +1 -0
@@ -0,0 +1,284 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import { isRequestOptions } from '../../core';
6
+ import * as TestResultsAPI from './test-results';
7
+
8
+ export class TestResults extends APIResource {
9
+ /**
10
+ * List the test results for a commit (project version).
11
+ */
12
+ list(
13
+ id: string,
14
+ query?: TestResultListParams,
15
+ options?: Core.RequestOptions,
16
+ ): Core.APIPromise<TestResultListResponse>;
17
+ list(id: string, options?: Core.RequestOptions): Core.APIPromise<TestResultListResponse>;
18
+ list(
19
+ id: string,
20
+ query: TestResultListParams | Core.RequestOptions = {},
21
+ options?: Core.RequestOptions,
22
+ ): Core.APIPromise<TestResultListResponse> {
23
+ if (isRequestOptions(query)) {
24
+ return this.list(id, {}, query);
25
+ }
26
+ return this._client.get(`/versions/${id}/results`, { query, ...options });
27
+ }
28
+ }
29
+
30
+ export interface TestResultListResponse {
31
+ _meta: TestResultListResponse._Meta;
32
+
33
+ items: Array<TestResultListResponse.Item>;
34
+ }
35
+
36
+ export namespace TestResultListResponse {
37
+ export interface _Meta {
38
+ /**
39
+ * The current page.
40
+ */
41
+ page: number;
42
+
43
+ /**
44
+ * The number of items per page.
45
+ */
46
+ perPage: number;
47
+
48
+ /**
49
+ * The total number of items.
50
+ */
51
+ totalItems: number;
52
+
53
+ /**
54
+ * The total number of pages.
55
+ */
56
+ totalPages: number;
57
+ }
58
+
59
+ export interface Item {
60
+ /**
61
+ * Project version (commit) id.
62
+ */
63
+ id: string;
64
+
65
+ /**
66
+ * The creation date.
67
+ */
68
+ dateCreated: string;
69
+
70
+ /**
71
+ * The data end date.
72
+ */
73
+ dateDataEnds: string | null;
74
+
75
+ /**
76
+ * The data start date.
77
+ */
78
+ dateDataStarts: string | null;
79
+
80
+ /**
81
+ * The last updated date.
82
+ */
83
+ dateUpdated: string;
84
+
85
+ /**
86
+ * The inference pipeline id.
87
+ */
88
+ inferencePipelineId: string | null;
89
+
90
+ /**
91
+ * The project version (commit) id.
92
+ */
93
+ projectVersionId: string | null;
94
+
95
+ /**
96
+ * The status of the test.
97
+ */
98
+ status: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
99
+
100
+ /**
101
+ * The status message.
102
+ */
103
+ statusMessage: string | null;
104
+
105
+ goal?: Item.Goal;
106
+
107
+ /**
108
+ * The test id.
109
+ */
110
+ goalId?: string | null;
111
+ }
112
+
113
+ export namespace Item {
114
+ export interface Goal {
115
+ /**
116
+ * The test id.
117
+ */
118
+ id: string;
119
+
120
+ /**
121
+ * The number of comments on the test.
122
+ */
123
+ commentCount: number;
124
+
125
+ /**
126
+ * The test creator id.
127
+ */
128
+ creatorId: string | null;
129
+
130
+ /**
131
+ * The date the test was archived.
132
+ */
133
+ dateArchived: string | null;
134
+
135
+ /**
136
+ * The creation date.
137
+ */
138
+ dateCreated: string;
139
+
140
+ /**
141
+ * The last updated date.
142
+ */
143
+ dateUpdated: string;
144
+
145
+ /**
146
+ * The test description.
147
+ */
148
+ description: unknown | null;
149
+
150
+ /**
151
+ * The test name.
152
+ */
153
+ name: string;
154
+
155
+ /**
156
+ * The test number.
157
+ */
158
+ number: number;
159
+
160
+ /**
161
+ * The project version (commit) id where the test was created.
162
+ */
163
+ originProjectVersionId: string | null;
164
+
165
+ /**
166
+ * The test subtype.
167
+ */
168
+ subtype: string;
169
+
170
+ /**
171
+ * Whether the test is suggested or user-created.
172
+ */
173
+ suggested: boolean;
174
+
175
+ thresholds: Array<Goal.Threshold>;
176
+
177
+ /**
178
+ * The test type.
179
+ */
180
+ type: string;
181
+
182
+ /**
183
+ * Whether the test is archived.
184
+ */
185
+ archived?: boolean;
186
+
187
+ /**
188
+ * The delay window in seconds. Only applies to tests that use production data.
189
+ */
190
+ delayWindow?: number | null;
191
+
192
+ /**
193
+ * The evaluation window in seconds. Only applies to tests that use production
194
+ * data.
195
+ */
196
+ evaluationWindow?: number | null;
197
+
198
+ /**
199
+ * Whether the test uses an ML model.
200
+ */
201
+ usesMlModel?: boolean;
202
+
203
+ /**
204
+ * Whether the test uses production data (monitoring mode only).
205
+ */
206
+ usesProductionData?: boolean;
207
+
208
+ /**
209
+ * Whether the test uses a reference dataset (monitoring mode only).
210
+ */
211
+ usesReferenceDataset?: boolean;
212
+
213
+ /**
214
+ * Whether the test uses a training dataset.
215
+ */
216
+ usesTrainingDataset?: boolean;
217
+
218
+ /**
219
+ * Whether the test uses a validation dataset.
220
+ */
221
+ usesValidationDataset?: boolean;
222
+ }
223
+
224
+ export namespace Goal {
225
+ export interface Threshold {
226
+ /**
227
+ * The insight name to be evaluated.
228
+ */
229
+ insightName?: string;
230
+
231
+ insightParameters?: Array<unknown>;
232
+
233
+ /**
234
+ * The measurement to be evaluated.
235
+ */
236
+ measurement?: string;
237
+
238
+ /**
239
+ * The operator to be used for the evaluation.
240
+ */
241
+ operator?: string;
242
+
243
+ /**
244
+ * The value to be compared.
245
+ */
246
+ value?: number | boolean | string | Array<string>;
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+ export interface TestResultListParams {
253
+ /**
254
+ * Include archived goals.
255
+ */
256
+ includeArchived?: boolean;
257
+
258
+ /**
259
+ * The page to return in a paginated query.
260
+ */
261
+ page?: number;
262
+
263
+ /**
264
+ * Maximum number of items to return per page.
265
+ */
266
+ perPage?: number;
267
+
268
+ /**
269
+ * Filter list of test results by status. Available statuses are `running`,
270
+ * `passing`, `failing`, `skipped`, and `error`.
271
+ */
272
+ status?: 'running' | 'passing' | 'failing' | 'skipped' | 'error';
273
+
274
+ /**
275
+ * Filter objects by test type. Available types are `integrity`, `consistency`,
276
+ * `performance`, `fairness`, and `robustness`.
277
+ */
278
+ type?: 'integrity' | 'consistency' | 'performance' | 'fairness' | 'robustness';
279
+ }
280
+
281
+ export namespace TestResults {
282
+ export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
283
+ export import TestResultListParams = TestResultsAPI.TestResultListParams;
284
+ }
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Commits } from './commits/commits';
4
+ export { InferencePipelines } from './inference-pipelines/inference-pipelines';
5
+ export { ProjectListResponse, ProjectListParams, Projects } from './projects/projects';
@@ -0,0 +1,285 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as Core from '../../core';
4
+ import { APIResource } from '../../resource';
5
+ import * as DataAPI from './data';
6
+
7
+ export class Data extends APIResource {
8
+ /**
9
+ * Stream production data to an inference pipeline in Openlayer.
10
+ */
11
+ stream(
12
+ id: string,
13
+ body: DataStreamParams,
14
+ options?: Core.RequestOptions,
15
+ ): Core.APIPromise<DataStreamResponse> {
16
+ return this._client.post(`/inference-pipelines/${id}/data-stream`, { body, ...options });
17
+ }
18
+ }
19
+
20
+ export interface DataStreamResponse {
21
+ success: true;
22
+ }
23
+
24
+ export interface DataStreamParams {
25
+ /**
26
+ * Configuration for the data stream. Depends on your **Openlayer project task
27
+ * type**.
28
+ */
29
+ config:
30
+ | DataStreamParams.LlmData
31
+ | DataStreamParams.TabularClassificationData
32
+ | DataStreamParams.TabularRegressionData
33
+ | DataStreamParams.TextClassificationData;
34
+
35
+ /**
36
+ * A list of entries that represent rows of a csv file
37
+ */
38
+ rows: Array<Record<string, unknown>>;
39
+ }
40
+
41
+ export namespace DataStreamParams {
42
+ export interface LlmData {
43
+ /**
44
+ * Name of the column with the model outputs.
45
+ */
46
+ outputColumnName: string;
47
+
48
+ /**
49
+ * Name of the column with the context retrieved. Applies to RAG use cases.
50
+ * Providing the context enables RAG-specific metrics.
51
+ */
52
+ contextColumnName?: string;
53
+
54
+ /**
55
+ * Name of the column with the cost associated with each row.
56
+ */
57
+ costColumnName?: string;
58
+
59
+ /**
60
+ * Name of the column with the ground truths.
61
+ */
62
+ groundTruthColumnName?: string;
63
+
64
+ /**
65
+ * Name of the column with the inference ids. This is useful if you want to update
66
+ * rows at a later point in time. If not provided, a unique id is generated by
67
+ * Openlayer.
68
+ */
69
+ inferenceIdColumnName?: string;
70
+
71
+ /**
72
+ * Array of input variable names. Each input variable should be a dataset column.
73
+ */
74
+ inputVariableNames?: Array<string>;
75
+
76
+ /**
77
+ * Name of the column with the latencies.
78
+ */
79
+ latencyColumnName?: string;
80
+
81
+ /**
82
+ * Object with metadata.
83
+ */
84
+ metadata?: unknown;
85
+
86
+ /**
87
+ * Name of the column with the total number of tokens.
88
+ */
89
+ numOfTokenColumnName?: string | null;
90
+
91
+ /**
92
+ * Prompt for the LLM.
93
+ */
94
+ prompt?: Array<LlmData.Prompt>;
95
+
96
+ /**
97
+ * Name of the column with the questions. Applies to RAG use cases. Providing the
98
+ * question enables RAG-specific metrics.
99
+ */
100
+ questionColumnName?: string;
101
+
102
+ /**
103
+ * Name of the column with the timestamps. Timestamps must be in UNIX sec format.
104
+ * If not provided, the upload timestamp is used.
105
+ */
106
+ timestampColumnName?: string;
107
+ }
108
+
109
+ export namespace LlmData {
110
+ export interface Prompt {
111
+ /**
112
+ * Content of the prompt.
113
+ */
114
+ content?: string;
115
+
116
+ /**
117
+ * Role of the prompt.
118
+ */
119
+ role?: string;
120
+ }
121
+ }
122
+
123
+ export interface TabularClassificationData {
124
+ /**
125
+ * List of class names indexed by label integer in the dataset. E.g. ["Retained",
126
+ * "Exited"] when 0, 1 are in your label column.
127
+ */
128
+ classNames: Array<string>;
129
+
130
+ /**
131
+ * Array with the names of all categorical features in the dataset. E.g. ["Gender",
132
+ * "Geography"].
133
+ */
134
+ categoricalFeatureNames?: Array<string>;
135
+
136
+ /**
137
+ * Array with all input feature names.
138
+ */
139
+ featureNames?: Array<string>;
140
+
141
+ /**
142
+ * Name of the column with the inference ids. This is useful if you want to update
143
+ * rows at a later point in time. If not provided, a unique id is generated by
144
+ * Openlayer.
145
+ */
146
+ inferenceIdColumnName?: string;
147
+
148
+ /**
149
+ * Name of the column with the labels. The data in this column must be
150
+ * **zero-indexed integers**, matching the list provided in `classNames`.
151
+ */
152
+ labelColumnName?: string;
153
+
154
+ /**
155
+ * Name of the column with the latencies.
156
+ */
157
+ latencyColumnName?: string;
158
+
159
+ /**
160
+ * Object with metadata.
161
+ */
162
+ metadata?: unknown;
163
+
164
+ /**
165
+ * Name of the column with the model's predictions as **zero-indexed integers**.
166
+ */
167
+ predictionsColumnName?: string;
168
+
169
+ /**
170
+ * Name of the column with the model's predictions as **lists of class
171
+ * probabilities**.
172
+ */
173
+ predictionScoresColumnName?: string;
174
+
175
+ /**
176
+ * Name of the column with the timestamps. Timestamps must be in UNIX sec format.
177
+ * If not provided, the upload timestamp is used.
178
+ */
179
+ timestampColumnName?: string;
180
+ }
181
+
182
+ export interface TabularRegressionData {
183
+ /**
184
+ * Array with the names of all categorical features in the dataset. E.g. ["Gender",
185
+ * "Geography"].
186
+ */
187
+ categoricalFeatureNames?: Array<string>;
188
+
189
+ /**
190
+ * Array with all input feature names.
191
+ */
192
+ featureNames?: Array<string>;
193
+
194
+ /**
195
+ * Name of the column with the inference ids. This is useful if you want to update
196
+ * rows at a later point in time. If not provided, a unique id is generated by
197
+ * Openlayer.
198
+ */
199
+ inferenceIdColumnName?: string;
200
+
201
+ /**
202
+ * Name of the column with the latencies.
203
+ */
204
+ latencyColumnName?: string;
205
+
206
+ /**
207
+ * Object with metadata.
208
+ */
209
+ metadata?: unknown;
210
+
211
+ /**
212
+ * Name of the column with the model's predictions.
213
+ */
214
+ predictionsColumnName?: string;
215
+
216
+ /**
217
+ * Name of the column with the targets (ground truth values).
218
+ */
219
+ targetColumnName?: string;
220
+
221
+ /**
222
+ * Name of the column with the timestamps. Timestamps must be in UNIX sec format.
223
+ * If not provided, the upload timestamp is used.
224
+ */
225
+ timestampColumnName?: string;
226
+ }
227
+
228
+ export interface TextClassificationData {
229
+ /**
230
+ * List of class names indexed by label integer in the dataset. E.g. ["Retained",
231
+ * "Exited"] when 0, 1 are in your label column.
232
+ */
233
+ classNames: Array<string>;
234
+
235
+ /**
236
+ * Name of the column with the inference ids. This is useful if you want to update
237
+ * rows at a later point in time. If not provided, a unique id is generated by
238
+ * Openlayer.
239
+ */
240
+ inferenceIdColumnName?: string;
241
+
242
+ /**
243
+ * Name of the column with the labels. The data in this column must be
244
+ * **zero-indexed integers**, matching the list provided in `classNames`.
245
+ */
246
+ labelColumnName?: string;
247
+
248
+ /**
249
+ * Name of the column with the latencies.
250
+ */
251
+ latencyColumnName?: string;
252
+
253
+ /**
254
+ * Object with metadata.
255
+ */
256
+ metadata?: unknown;
257
+
258
+ /**
259
+ * Name of the column with the model's predictions as **zero-indexed integers**.
260
+ */
261
+ predictionsColumnName?: string;
262
+
263
+ /**
264
+ * Name of the column with the model's predictions as **lists of class
265
+ * probabilities**.
266
+ */
267
+ predictionScoresColumnName?: string;
268
+
269
+ /**
270
+ * Name of the column with the text data.
271
+ */
272
+ textColumnName?: string;
273
+
274
+ /**
275
+ * Name of the column with the timestamps. Timestamps must be in UNIX sec format.
276
+ * If not provided, the upload timestamp is used.
277
+ */
278
+ timestampColumnName?: string;
279
+ }
280
+ }
281
+
282
+ export namespace Data {
283
+ export import DataStreamResponse = DataAPI.DataStreamResponse;
284
+ export import DataStreamParams = DataAPI.DataStreamParams;
285
+ }
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { DataStreamResponse, DataStreamParams, Data } from './data';
4
+ export { InferencePipelines } from './inference-pipelines';
5
+ export { TestResultListResponse, TestResultListParams, TestResults } from './test-results';
@@ -0,0 +1,19 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as DataAPI from './data';
5
+ import * as TestResultsAPI from './test-results';
6
+
7
+ export class InferencePipelines extends APIResource {
8
+ data: DataAPI.Data = new DataAPI.Data(this._client);
9
+ testResults: TestResultsAPI.TestResults = new TestResultsAPI.TestResults(this._client);
10
+ }
11
+
12
+ export namespace InferencePipelines {
13
+ export import Data = DataAPI.Data;
14
+ export import DataStreamResponse = DataAPI.DataStreamResponse;
15
+ export import DataStreamParams = DataAPI.DataStreamParams;
16
+ export import TestResults = TestResultsAPI.TestResults;
17
+ export import TestResultListResponse = TestResultsAPI.TestResultListResponse;
18
+ export import TestResultListParams = TestResultsAPI.TestResultListParams;
19
+ }