vellum-ai 0.14.88 → 1.0.0
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.
- package/Client.d.ts +37 -8
- package/Client.js +88 -19
- package/api/client/requests/CodeExecutor.d.ts +9 -2
- package/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/api/resources/adHoc/client/Client.d.ts +18 -3
- package/api/resources/adHoc/client/Client.js +24 -5
- package/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/api/resources/containerImages/client/Client.d.ts +7 -3
- package/api/resources/containerImages/client/Client.js +24 -8
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/api/resources/deployments/client/Client.d.ts +9 -1
- package/api/resources/deployments/client/Client.js +45 -9
- package/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/api/resources/documentIndexes/client/Client.js +45 -66
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/Client.d.ts +4 -5
- package/api/resources/documents/client/Client.js +26 -11
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/api/resources/folderEntities/client/Client.js +10 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/api/resources/metricDefinitions/client/Client.js +15 -3
- package/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/api/resources/mlModels/client/Client.d.ts +4 -0
- package/api/resources/mlModels/client/Client.js +6 -2
- package/api/resources/organizations/client/Client.d.ts +4 -0
- package/api/resources/organizations/client/Client.js +6 -2
- package/api/resources/prompts/client/Client.d.ts +12 -1
- package/api/resources/prompts/client/Client.js +19 -4
- package/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/api/resources/releaseReviews/client/Client.js +6 -2
- package/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/api/resources/sandboxes/client/Client.js +17 -24
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/api/resources/testSuites/client/Client.d.ts +13 -15
- package/api/resources/testSuites/client/Client.js +30 -20
- package/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/api/resources/workflowDeployments/client/Client.js +40 -8
- package/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/api/resources/workflows/client/Client.d.ts +4 -5
- package/api/resources/workflows/client/Client.js +11 -8
- package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/api/resources/workspaces/client/Client.d.ts +4 -0
- package/api/resources/workspaces/client/Client.js +6 -2
- package/dist/Client.d.ts +37 -8
- package/dist/Client.js +88 -19
- package/dist/api/client/requests/CodeExecutor.d.ts +9 -2
- package/dist/api/client/requests/ExecuteApiRequest.d.ts +1 -1
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -1
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +9 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/client/requests/SubmitWorkflowExecutionActualsRequest.d.ts +2 -0
- package/dist/api/resources/adHoc/client/Client.d.ts +18 -3
- package/dist/api/resources/adHoc/client/Client.js +24 -5
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePrompt.d.ts +14 -3
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +14 -3
- package/dist/api/resources/containerImages/client/Client.d.ts +7 -3
- package/dist/api/resources/containerImages/client/Client.js +24 -8
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +3 -3
- package/dist/api/resources/deployments/client/Client.d.ts +9 -1
- package/dist/api/resources/deployments/client/Client.js +45 -9
- package/dist/api/resources/deployments/client/requests/DeploymentProviderPayloadRequest.d.ts +5 -1
- package/dist/api/resources/documentIndexes/client/Client.d.ts +9 -58
- package/dist/api/resources/documentIndexes/client/Client.js +45 -66
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +4 -57
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +4 -5
- package/dist/api/resources/documents/client/Client.js +26 -11
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +0 -6
- package/dist/api/resources/folderEntities/client/Client.d.ts +4 -0
- package/dist/api/resources/folderEntities/client/Client.js +10 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -1
- package/dist/api/resources/metricDefinitions/client/Client.js +15 -3
- package/dist/api/resources/metricDefinitions/client/requests/ExecuteMetricDefinition.d.ts +5 -1
- package/dist/api/resources/mlModels/client/Client.d.ts +4 -0
- package/dist/api/resources/mlModels/client/Client.js +6 -2
- package/dist/api/resources/organizations/client/Client.d.ts +4 -0
- package/dist/api/resources/organizations/client/Client.js +6 -2
- package/dist/api/resources/prompts/client/Client.d.ts +12 -1
- package/dist/api/resources/prompts/client/Client.js +19 -4
- package/dist/api/resources/prompts/client/requests/PromptPush.d.ts +8 -1
- package/dist/api/resources/releaseReviews/client/Client.d.ts +4 -0
- package/dist/api/resources/releaseReviews/client/Client.js +6 -2
- package/dist/api/resources/sandboxes/client/Client.d.ts +6 -21
- package/dist/api/resources/sandboxes/client/Client.js +17 -24
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequest.d.ts +2 -21
- package/dist/api/resources/testSuiteRuns/client/Client.d.ts +4 -0
- package/dist/api/resources/testSuiteRuns/client/Client.js +15 -3
- package/dist/api/resources/testSuites/client/Client.d.ts +13 -15
- package/dist/api/resources/testSuites/client/Client.js +30 -20
- package/dist/api/resources/workflowDeployments/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +40 -8
- package/dist/api/resources/workflowSandboxes/client/Client.d.ts +4 -0
- package/dist/api/resources/workflowSandboxes/client/Client.js +10 -2
- package/dist/api/resources/workflows/client/Client.d.ts +4 -5
- package/dist/api/resources/workflows/client/Client.js +11 -8
- package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -6
- package/dist/api/resources/workspaceSecrets/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaceSecrets/client/Client.js +11 -3
- package/dist/api/resources/workspaces/client/Client.d.ts +4 -0
- package/dist/api/resources/workspaces/client/Client.js +6 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +116 -187
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/Client.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare namespace VellumClient {
|
|
|
29
29
|
/** Specify a custom URL to connect the client to. */
|
|
30
30
|
baseUrl?: core.Supplier<string>;
|
|
31
31
|
apiKey: core.Supplier<string>;
|
|
32
|
+
/** Override the X-API-Version header */
|
|
33
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
32
34
|
}
|
|
33
35
|
interface RequestOptions {
|
|
34
36
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -37,6 +39,8 @@ export declare namespace VellumClient {
|
|
|
37
39
|
maxRetries?: number;
|
|
38
40
|
/** A hook to abort the request. */
|
|
39
41
|
abortSignal?: AbortSignal;
|
|
42
|
+
/** Override the X-API-Version header */
|
|
43
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
40
44
|
/** Additional headers to include in the request. */
|
|
41
45
|
headers?: Record<string, string>;
|
|
42
46
|
}
|
|
@@ -88,7 +92,7 @@ export declare class VellumClient {
|
|
|
88
92
|
*
|
|
89
93
|
* @example
|
|
90
94
|
* await client.executeApi({
|
|
91
|
-
* url: "
|
|
95
|
+
* url: "x"
|
|
92
96
|
* })
|
|
93
97
|
*/
|
|
94
98
|
executeApi(request: Vellum.ExecuteApiRequest, requestOptions?: VellumClient.RequestOptions): core.HttpResponsePromise<Vellum.ExecuteApiResponse>;
|
|
@@ -101,16 +105,23 @@ export declare class VellumClient {
|
|
|
101
105
|
*
|
|
102
106
|
* @example
|
|
103
107
|
* await client.executeCode({
|
|
104
|
-
* code: "
|
|
108
|
+
* code: "x",
|
|
105
109
|
* runtime: "PYTHON_3_11_6",
|
|
106
110
|
* inputValues: [{
|
|
107
|
-
* name: "
|
|
111
|
+
* name: "x",
|
|
112
|
+
* type: "STRING",
|
|
113
|
+
* value: "value"
|
|
114
|
+
* }, {
|
|
115
|
+
* name: "x",
|
|
108
116
|
* type: "STRING",
|
|
109
117
|
* value: "value"
|
|
110
118
|
* }],
|
|
111
119
|
* packages: [{
|
|
112
120
|
* version: "version",
|
|
113
121
|
* name: "name"
|
|
122
|
+
* }, {
|
|
123
|
+
* version: "version",
|
|
124
|
+
* name: "name"
|
|
114
125
|
* }],
|
|
115
126
|
* outputType: "STRING"
|
|
116
127
|
* })
|
|
@@ -131,7 +142,11 @@ export declare class VellumClient {
|
|
|
131
142
|
* @example
|
|
132
143
|
* await client.executePrompt({
|
|
133
144
|
* inputs: [{
|
|
134
|
-
* name: "
|
|
145
|
+
* name: "x",
|
|
146
|
+
* type: "STRING",
|
|
147
|
+
* value: "value"
|
|
148
|
+
* }, {
|
|
149
|
+
* name: "x",
|
|
135
150
|
* type: "STRING",
|
|
136
151
|
* value: "value"
|
|
137
152
|
* }]
|
|
@@ -157,7 +172,11 @@ export declare class VellumClient {
|
|
|
157
172
|
* @example
|
|
158
173
|
* await client.executeWorkflow({
|
|
159
174
|
* inputs: [{
|
|
160
|
-
* name: "
|
|
175
|
+
* name: "x",
|
|
176
|
+
* type: "STRING",
|
|
177
|
+
* value: "value"
|
|
178
|
+
* }, {
|
|
179
|
+
* name: "x",
|
|
161
180
|
* type: "STRING",
|
|
162
181
|
* value: "value"
|
|
163
182
|
* }]
|
|
@@ -188,7 +207,15 @@ export declare class VellumClient {
|
|
|
188
207
|
* await client.generate({
|
|
189
208
|
* requests: [{
|
|
190
209
|
* inputValues: {
|
|
191
|
-
* "
|
|
210
|
+
* "input_values": {
|
|
211
|
+
* "key": "value"
|
|
212
|
+
* }
|
|
213
|
+
* }
|
|
214
|
+
* }, {
|
|
215
|
+
* inputValues: {
|
|
216
|
+
* "input_values": {
|
|
217
|
+
* "key": "value"
|
|
218
|
+
* }
|
|
192
219
|
* }
|
|
193
220
|
* }]
|
|
194
221
|
* })
|
|
@@ -215,7 +242,7 @@ export declare class VellumClient {
|
|
|
215
242
|
*
|
|
216
243
|
* @example
|
|
217
244
|
* await client.search({
|
|
218
|
-
* query: "
|
|
245
|
+
* query: "x"
|
|
219
246
|
* })
|
|
220
247
|
*/
|
|
221
248
|
search(request: Vellum.SearchRequestBodyRequest, requestOptions?: VellumClient.RequestOptions): core.HttpResponsePromise<Vellum.SearchResponse>;
|
|
@@ -232,7 +259,7 @@ export declare class VellumClient {
|
|
|
232
259
|
*
|
|
233
260
|
* @example
|
|
234
261
|
* await client.submitCompletionActuals({
|
|
235
|
-
* actuals: [{}]
|
|
262
|
+
* actuals: [{}, {}]
|
|
236
263
|
* })
|
|
237
264
|
*/
|
|
238
265
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest, requestOptions?: VellumClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
@@ -249,6 +276,8 @@ export declare class VellumClient {
|
|
|
249
276
|
* await client.submitWorkflowExecutionActuals({
|
|
250
277
|
* actuals: [{
|
|
251
278
|
* outputType: "STRING"
|
|
279
|
+
* }, {
|
|
280
|
+
* outputType: "STRING"
|
|
252
281
|
* }]
|
|
253
282
|
* })
|
|
254
283
|
*/
|
package/Client.js
CHANGED
|
@@ -160,7 +160,7 @@ class VellumClient {
|
|
|
160
160
|
*
|
|
161
161
|
* @example
|
|
162
162
|
* await client.executeApi({
|
|
163
|
-
* url: "
|
|
163
|
+
* url: "x"
|
|
164
164
|
* })
|
|
165
165
|
*/
|
|
166
166
|
executeApi(request, requestOptions) {
|
|
@@ -173,7 +173,11 @@ class VellumClient {
|
|
|
173
173
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
174
174
|
.default, "v1/execute-api"),
|
|
175
175
|
method: "POST",
|
|
176
|
-
headers: Object.assign(Object.assign({ "X-
|
|
176
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
177
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
178
|
+
unrecognizedObjectKeys: "strip",
|
|
179
|
+
})
|
|
180
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
177
181
|
contentType: "application/json",
|
|
178
182
|
requestType: "json",
|
|
179
183
|
body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,16 +228,23 @@ class VellumClient {
|
|
|
224
228
|
*
|
|
225
229
|
* @example
|
|
226
230
|
* await client.executeCode({
|
|
227
|
-
* code: "
|
|
231
|
+
* code: "x",
|
|
228
232
|
* runtime: "PYTHON_3_11_6",
|
|
229
233
|
* inputValues: [{
|
|
230
|
-
* name: "
|
|
234
|
+
* name: "x",
|
|
235
|
+
* type: "STRING",
|
|
236
|
+
* value: "value"
|
|
237
|
+
* }, {
|
|
238
|
+
* name: "x",
|
|
231
239
|
* type: "STRING",
|
|
232
240
|
* value: "value"
|
|
233
241
|
* }],
|
|
234
242
|
* packages: [{
|
|
235
243
|
* version: "version",
|
|
236
244
|
* name: "name"
|
|
245
|
+
* }, {
|
|
246
|
+
* version: "version",
|
|
247
|
+
* name: "name"
|
|
237
248
|
* }],
|
|
238
249
|
* outputType: "STRING"
|
|
239
250
|
* })
|
|
@@ -248,7 +259,11 @@ class VellumClient {
|
|
|
248
259
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
249
260
|
.predict, "v1/execute-code"),
|
|
250
261
|
method: "POST",
|
|
251
|
-
headers: Object.assign(Object.assign({ "X-
|
|
262
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
263
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
264
|
+
unrecognizedObjectKeys: "strip",
|
|
265
|
+
})
|
|
266
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
252
267
|
contentType: "application/json",
|
|
253
268
|
requestType: "json",
|
|
254
269
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -310,7 +325,11 @@ class VellumClient {
|
|
|
310
325
|
* @example
|
|
311
326
|
* await client.executePrompt({
|
|
312
327
|
* inputs: [{
|
|
313
|
-
* name: "
|
|
328
|
+
* name: "x",
|
|
329
|
+
* type: "STRING",
|
|
330
|
+
* value: "value"
|
|
331
|
+
* }, {
|
|
332
|
+
* name: "x",
|
|
314
333
|
* type: "STRING",
|
|
315
334
|
* value: "value"
|
|
316
335
|
* }]
|
|
@@ -326,7 +345,11 @@ class VellumClient {
|
|
|
326
345
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
327
346
|
.predict, "v1/execute-prompt"),
|
|
328
347
|
method: "POST",
|
|
329
|
-
headers: Object.assign(Object.assign({ "X-
|
|
348
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
349
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
350
|
+
unrecognizedObjectKeys: "strip",
|
|
351
|
+
})
|
|
352
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
330
353
|
contentType: "application/json",
|
|
331
354
|
requestType: "json",
|
|
332
355
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -393,7 +416,11 @@ class VellumClient {
|
|
|
393
416
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
394
417
|
.predict, "v1/execute-prompt-stream"),
|
|
395
418
|
method: "POST",
|
|
396
|
-
headers: Object.assign(Object.assign({ "X-
|
|
419
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
420
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
421
|
+
unrecognizedObjectKeys: "strip",
|
|
422
|
+
})
|
|
423
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
424
|
contentType: "application/json",
|
|
398
425
|
requestType: "json",
|
|
399
426
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -471,7 +498,11 @@ class VellumClient {
|
|
|
471
498
|
* @example
|
|
472
499
|
* await client.executeWorkflow({
|
|
473
500
|
* inputs: [{
|
|
474
|
-
* name: "
|
|
501
|
+
* name: "x",
|
|
502
|
+
* type: "STRING",
|
|
503
|
+
* value: "value"
|
|
504
|
+
* }, {
|
|
505
|
+
* name: "x",
|
|
475
506
|
* type: "STRING",
|
|
476
507
|
* value: "value"
|
|
477
508
|
* }]
|
|
@@ -487,7 +518,11 @@ class VellumClient {
|
|
|
487
518
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
488
519
|
.predict, "v1/execute-workflow"),
|
|
489
520
|
method: "POST",
|
|
490
|
-
headers: Object.assign(Object.assign({ "X-
|
|
521
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
522
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
523
|
+
unrecognizedObjectKeys: "strip",
|
|
524
|
+
})
|
|
525
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
491
526
|
contentType: "application/json",
|
|
492
527
|
requestType: "json",
|
|
493
528
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -552,7 +587,11 @@ class VellumClient {
|
|
|
552
587
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
553
588
|
.predict, "v1/execute-workflow-stream"),
|
|
554
589
|
method: "POST",
|
|
555
|
-
headers: Object.assign(Object.assign({ "X-
|
|
590
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
591
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
592
|
+
unrecognizedObjectKeys: "strip",
|
|
593
|
+
})
|
|
594
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
556
595
|
contentType: "application/json",
|
|
557
596
|
requestType: "json",
|
|
558
597
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -633,7 +672,15 @@ class VellumClient {
|
|
|
633
672
|
* await client.generate({
|
|
634
673
|
* requests: [{
|
|
635
674
|
* inputValues: {
|
|
636
|
-
* "
|
|
675
|
+
* "input_values": {
|
|
676
|
+
* "key": "value"
|
|
677
|
+
* }
|
|
678
|
+
* }
|
|
679
|
+
* }, {
|
|
680
|
+
* inputValues: {
|
|
681
|
+
* "input_values": {
|
|
682
|
+
* "key": "value"
|
|
683
|
+
* }
|
|
637
684
|
* }
|
|
638
685
|
* }]
|
|
639
686
|
* })
|
|
@@ -648,7 +695,11 @@ class VellumClient {
|
|
|
648
695
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
649
696
|
.predict, "v1/generate"),
|
|
650
697
|
method: "POST",
|
|
651
|
-
headers: Object.assign(Object.assign({ "X-
|
|
698
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
699
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
700
|
+
unrecognizedObjectKeys: "strip",
|
|
701
|
+
})
|
|
702
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
652
703
|
contentType: "application/json",
|
|
653
704
|
requestType: "json",
|
|
654
705
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -718,7 +769,11 @@ class VellumClient {
|
|
|
718
769
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
719
770
|
.predict, "v1/generate-stream"),
|
|
720
771
|
method: "POST",
|
|
721
|
-
headers: Object.assign(Object.assign({ "X-
|
|
772
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
773
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
774
|
+
unrecognizedObjectKeys: "strip",
|
|
775
|
+
})
|
|
776
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
722
777
|
contentType: "application/json",
|
|
723
778
|
requestType: "json",
|
|
724
779
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -795,7 +850,7 @@ class VellumClient {
|
|
|
795
850
|
*
|
|
796
851
|
* @example
|
|
797
852
|
* await client.search({
|
|
798
|
-
* query: "
|
|
853
|
+
* query: "x"
|
|
799
854
|
* })
|
|
800
855
|
*/
|
|
801
856
|
search(request, requestOptions) {
|
|
@@ -808,7 +863,11 @@ class VellumClient {
|
|
|
808
863
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
809
864
|
.predict, "v1/search"),
|
|
810
865
|
method: "POST",
|
|
811
|
-
headers: Object.assign(Object.assign({ "X-
|
|
866
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
867
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
868
|
+
unrecognizedObjectKeys: "strip",
|
|
869
|
+
})
|
|
870
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
812
871
|
contentType: "application/json",
|
|
813
872
|
requestType: "json",
|
|
814
873
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -872,7 +931,7 @@ class VellumClient {
|
|
|
872
931
|
*
|
|
873
932
|
* @example
|
|
874
933
|
* await client.submitCompletionActuals({
|
|
875
|
-
* actuals: [{}]
|
|
934
|
+
* actuals: [{}, {}]
|
|
876
935
|
* })
|
|
877
936
|
*/
|
|
878
937
|
submitCompletionActuals(request, requestOptions) {
|
|
@@ -885,7 +944,11 @@ class VellumClient {
|
|
|
885
944
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
886
945
|
.predict, "v1/submit-completion-actuals"),
|
|
887
946
|
method: "POST",
|
|
888
|
-
headers: Object.assign(Object.assign({ "X-
|
|
947
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
948
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
949
|
+
unrecognizedObjectKeys: "strip",
|
|
950
|
+
})
|
|
951
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
889
952
|
contentType: "application/json",
|
|
890
953
|
requestType: "json",
|
|
891
954
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -941,6 +1004,8 @@ class VellumClient {
|
|
|
941
1004
|
* await client.submitWorkflowExecutionActuals({
|
|
942
1005
|
* actuals: [{
|
|
943
1006
|
* outputType: "STRING"
|
|
1007
|
+
* }, {
|
|
1008
|
+
* outputType: "STRING"
|
|
944
1009
|
* }]
|
|
945
1010
|
* })
|
|
946
1011
|
*/
|
|
@@ -954,7 +1019,11 @@ class VellumClient {
|
|
|
954
1019
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
955
1020
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
956
1021
|
method: "POST",
|
|
957
|
-
headers: Object.assign(Object.assign({ "X-
|
|
1022
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
1023
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
1024
|
+
unrecognizedObjectKeys: "strip",
|
|
1025
|
+
})
|
|
1026
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "vellum-ai/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
958
1027
|
contentType: "application/json",
|
|
959
1028
|
requestType: "json",
|
|
960
1029
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -5,16 +5,23 @@ import * as Vellum from "../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* code: "
|
|
8
|
+
* code: "x",
|
|
9
9
|
* runtime: "PYTHON_3_11_6",
|
|
10
10
|
* inputValues: [{
|
|
11
|
-
* name: "
|
|
11
|
+
* name: "x",
|
|
12
|
+
* type: "STRING",
|
|
13
|
+
* value: "value"
|
|
14
|
+
* }, {
|
|
15
|
+
* name: "x",
|
|
12
16
|
* type: "STRING",
|
|
13
17
|
* value: "value"
|
|
14
18
|
* }],
|
|
15
19
|
* packages: [{
|
|
16
20
|
* version: "version",
|
|
17
21
|
* name: "name"
|
|
22
|
+
* }, {
|
|
23
|
+
* version: "version",
|
|
24
|
+
* name: "name"
|
|
18
25
|
* }],
|
|
19
26
|
* outputType: "STRING"
|
|
20
27
|
* }
|
|
@@ -7,7 +7,15 @@ import * as Vellum from "../../index";
|
|
|
7
7
|
* {
|
|
8
8
|
* requests: [{
|
|
9
9
|
* inputValues: {
|
|
10
|
-
* "
|
|
10
|
+
* "input_values": {
|
|
11
|
+
* "key": "value"
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }, {
|
|
15
|
+
* inputValues: {
|
|
16
|
+
* "input_values": {
|
|
17
|
+
* "key": "value"
|
|
18
|
+
* }
|
|
11
19
|
* }
|
|
12
20
|
* }]
|
|
13
21
|
* }
|
|
@@ -7,7 +7,15 @@ import * as Vellum from "../../index";
|
|
|
7
7
|
* {
|
|
8
8
|
* requests: [{
|
|
9
9
|
* inputValues: {
|
|
10
|
-
* "
|
|
10
|
+
* "input_values": {
|
|
11
|
+
* "key": "value"
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
* }, {
|
|
15
|
+
* inputValues: {
|
|
16
|
+
* "input_values": {
|
|
17
|
+
* "key": "value"
|
|
18
|
+
* }
|
|
11
19
|
* }
|
|
12
20
|
* }]
|
|
13
21
|
* }
|
|
@@ -10,6 +10,8 @@ export declare namespace AdHoc {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
13
15
|
}
|
|
14
16
|
interface RequestOptions {
|
|
15
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -18,6 +20,8 @@ export declare namespace AdHoc {
|
|
|
18
20
|
maxRetries?: number;
|
|
19
21
|
/** A hook to abort the request. */
|
|
20
22
|
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
21
25
|
/** Additional headers to include in the request. */
|
|
22
26
|
headers?: Record<string, string>;
|
|
23
27
|
}
|
|
@@ -35,14 +39,22 @@ export declare class AdHoc {
|
|
|
35
39
|
*
|
|
36
40
|
* @example
|
|
37
41
|
* await client.adHoc.adhocExecutePrompt({
|
|
38
|
-
* mlModel: "
|
|
42
|
+
* mlModel: "x",
|
|
39
43
|
* inputValues: [{
|
|
40
|
-
* key: "
|
|
44
|
+
* key: "x",
|
|
45
|
+
* type: "STRING",
|
|
46
|
+
* value: "value"
|
|
47
|
+
* }, {
|
|
48
|
+
* key: "x",
|
|
41
49
|
* type: "STRING",
|
|
42
50
|
* value: "value"
|
|
43
51
|
* }],
|
|
44
52
|
* inputVariables: [{
|
|
45
|
-
* id: "
|
|
53
|
+
* id: "x",
|
|
54
|
+
* key: "key",
|
|
55
|
+
* type: "STRING"
|
|
56
|
+
* }, {
|
|
57
|
+
* id: "x",
|
|
46
58
|
* key: "key",
|
|
47
59
|
* type: "STRING"
|
|
48
60
|
* }],
|
|
@@ -50,6 +62,9 @@ export declare class AdHoc {
|
|
|
50
62
|
* blocks: [{
|
|
51
63
|
* blockType: "JINJA",
|
|
52
64
|
* template: "template"
|
|
65
|
+
* }, {
|
|
66
|
+
* blockType: "JINJA",
|
|
67
|
+
* template: "template"
|
|
53
68
|
* }]
|
|
54
69
|
* })
|
|
55
70
|
*/
|