vellum-ai 0.1.10 → 0.1.11
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.js +8 -8
- package/api/resources/deployments/client/Client.js +2 -2
- package/api/resources/documentIndexes/client/Client.js +2 -2
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/types/FulfilledFunctionCall.d.ts +11 -0
- package/api/types/FulfilledFunctionCall.js +5 -0
- package/api/types/FunctionCall.d.ts +13 -0
- package/api/types/FunctionCall.js +5 -0
- package/api/types/FunctionCallVariableValue.d.ts +7 -0
- package/api/types/FunctionCallVariableValue.js +5 -0
- package/api/types/PromptOutput.d.ts +4 -1
- package/api/types/RejectedFunctionCall.d.ts +12 -0
- package/api/types/RejectedFunctionCall.js +5 -0
- package/api/types/VellumVariableType.d.ts +3 -1
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.js +8 -8
- package/dist/api/resources/deployments/client/Client.js +2 -2
- package/dist/api/resources/documentIndexes/client/Client.js +2 -2
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/types/FulfilledFunctionCall.d.ts +11 -0
- package/dist/api/types/FulfilledFunctionCall.js +5 -0
- package/dist/api/types/FunctionCall.d.ts +13 -0
- package/dist/api/types/FunctionCall.js +5 -0
- package/dist/api/types/FunctionCallVariableValue.d.ts +7 -0
- package/dist/api/types/FunctionCallVariableValue.js +5 -0
- package/dist/api/types/PromptOutput.d.ts +4 -1
- package/dist/api/types/RejectedFunctionCall.d.ts +12 -0
- package/dist/api/types/RejectedFunctionCall.js +5 -0
- package/dist/api/types/VellumVariableType.d.ts +3 -1
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/types/FulfilledFunctionCall.d.ts +14 -0
- package/dist/serialization/types/FulfilledFunctionCall.js +35 -0
- package/dist/serialization/types/FunctionCall.d.ts +16 -0
- package/dist/serialization/types/FunctionCall.js +48 -0
- package/dist/serialization/types/FunctionCallVariableValue.d.ts +12 -0
- package/dist/serialization/types/FunctionCallVariableValue.js +42 -0
- package/dist/serialization/types/PromptOutput.d.ts +4 -1
- package/dist/serialization/types/PromptOutput.js +1 -0
- package/dist/serialization/types/RejectedFunctionCall.d.ts +14 -0
- package/dist/serialization/types/RejectedFunctionCall.js +44 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +10 -1
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/types/FulfilledFunctionCall.d.ts +14 -0
- package/serialization/types/FulfilledFunctionCall.js +35 -0
- package/serialization/types/FunctionCall.d.ts +16 -0
- package/serialization/types/FunctionCall.js +48 -0
- package/serialization/types/FunctionCallVariableValue.d.ts +12 -0
- package/serialization/types/FunctionCallVariableValue.js +42 -0
- package/serialization/types/PromptOutput.d.ts +4 -1
- package/serialization/types/PromptOutput.js +1 -0
- package/serialization/types/RejectedFunctionCall.d.ts +14 -0
- package/serialization/types/RejectedFunctionCall.js +44 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +10 -1
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
package/Client.js
CHANGED
|
@@ -77,7 +77,7 @@ class VellumClient {
|
|
|
77
77
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
80
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
80
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
81
81
|
},
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -141,7 +141,7 @@ class VellumClient {
|
|
|
141
141
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
144
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
144
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
145
145
|
},
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
@@ -211,7 +211,7 @@ class VellumClient {
|
|
|
211
211
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
212
212
|
"X-Fern-Language": "JavaScript",
|
|
213
213
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
214
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
214
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
215
215
|
},
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
@@ -295,7 +295,7 @@ class VellumClient {
|
|
|
295
295
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
296
296
|
"X-Fern-Language": "JavaScript",
|
|
297
297
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
298
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
298
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
299
299
|
},
|
|
300
300
|
contentType: "application/json",
|
|
301
301
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -358,7 +358,7 @@ class VellumClient {
|
|
|
358
358
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
359
359
|
"X-Fern-Language": "JavaScript",
|
|
360
360
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
361
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
361
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
362
362
|
},
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -431,7 +431,7 @@ class VellumClient {
|
|
|
431
431
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
432
432
|
"X-Fern-Language": "JavaScript",
|
|
433
433
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
434
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
434
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
435
435
|
},
|
|
436
436
|
contentType: "application/json",
|
|
437
437
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -500,7 +500,7 @@ class VellumClient {
|
|
|
500
500
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
501
501
|
"X-Fern-Language": "JavaScript",
|
|
502
502
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
503
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
503
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
504
504
|
},
|
|
505
505
|
contentType: "application/json",
|
|
506
506
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -563,7 +563,7 @@ class VellumClient {
|
|
|
563
563
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
564
564
|
"X-Fern-Language": "JavaScript",
|
|
565
565
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
566
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
566
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
567
567
|
},
|
|
568
568
|
contentType: "application/json",
|
|
569
569
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -62,7 +62,7 @@ class Deployments {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -108,7 +108,7 @@ class Deployments {
|
|
|
108
108
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
111
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
111
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -62,7 +62,7 @@ class DocumentIndexes {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -114,7 +114,7 @@ class DocumentIndexes {
|
|
|
114
114
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
115
115
|
"X-Fern-Language": "JavaScript",
|
|
116
116
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
117
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
117
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
118
118
|
},
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class Documents {
|
|
|
81
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
84
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
84
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
85
85
|
},
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
@@ -128,7 +128,7 @@ class Documents {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
131
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -172,7 +172,7 @@ class Documents {
|
|
|
172
172
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
173
173
|
"X-Fern-Language": "JavaScript",
|
|
174
174
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
175
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
175
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
176
176
|
},
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -248,7 +248,7 @@ class Documents {
|
|
|
248
248
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
249
249
|
"X-Fern-Language": "JavaScript",
|
|
250
250
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
251
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
251
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
252
252
|
},
|
|
253
253
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
254
254
|
body: _request,
|
|
@@ -62,7 +62,7 @@ class ModelVersions {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class RegisteredPrompts {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
72
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class Sandboxes {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
71
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -123,7 +123,7 @@ class Sandboxes {
|
|
|
123
123
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
126
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
126
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
127
127
|
},
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
77
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -129,7 +129,7 @@ class TestSuites {
|
|
|
129
129
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
132
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
132
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
133
133
|
},
|
|
134
134
|
contentType: "application/json",
|
|
135
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type FunctionCall = Vellum.FunctionCall.Fulfilled | Vellum.FunctionCall.Rejected;
|
|
6
|
+
export declare namespace FunctionCall {
|
|
7
|
+
interface Fulfilled extends Vellum.FulfilledFunctionCall {
|
|
8
|
+
state: "FULFILLED";
|
|
9
|
+
}
|
|
10
|
+
interface Rejected extends Vellum.RejectedFunctionCall {
|
|
11
|
+
state: "REJECTED";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
|
-
export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_;
|
|
5
|
+
export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_ | Vellum.PromptOutput.FunctionCall;
|
|
6
6
|
export declare namespace PromptOutput {
|
|
7
7
|
interface String extends Vellum.StringVariableValue {
|
|
8
8
|
type: "STRING";
|
|
@@ -13,4 +13,7 @@ export declare namespace PromptOutput {
|
|
|
13
13
|
interface Error_ extends Vellum.ErrorVariableValue {
|
|
14
14
|
type: "ERROR";
|
|
15
15
|
}
|
|
16
|
+
interface FunctionCall extends Vellum.FunctionCallVariableValue {
|
|
17
|
+
type: "FUNCTION_CALL";
|
|
18
|
+
}
|
|
16
19
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
/**
|
|
6
|
+
* Returned if the function call failed to parse for some reason.
|
|
7
|
+
*/
|
|
8
|
+
export interface RejectedFunctionCall {
|
|
9
|
+
error: Vellum.VellumError;
|
|
10
|
+
id?: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* - `SEARCH_RESULTS` - SEARCH_RESULTS
|
|
10
10
|
* - `ERROR` - ERROR
|
|
11
11
|
* - `ARRAY` - ARRAY
|
|
12
|
+
* - `FUNCTION_CALL` - FUNCTION_CALL
|
|
12
13
|
*/
|
|
13
|
-
export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY";
|
|
14
|
+
export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL";
|
|
14
15
|
export declare const VellumVariableType: {
|
|
15
16
|
readonly String: "STRING";
|
|
16
17
|
readonly Number: "NUMBER";
|
|
@@ -19,4 +20,5 @@ export declare const VellumVariableType: {
|
|
|
19
20
|
readonly SearchResults: "SEARCH_RESULTS";
|
|
20
21
|
readonly Error: "ERROR";
|
|
21
22
|
readonly Array: "ARRAY";
|
|
23
|
+
readonly FunctionCall: "FUNCTION_CALL";
|
|
22
24
|
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -37,7 +37,10 @@ export * from "./FinishReasonEnum";
|
|
|
37
37
|
export * from "./FulfilledEnum";
|
|
38
38
|
export * from "./FulfilledExecutePromptEvent";
|
|
39
39
|
export * from "./FulfilledExecutePromptResponse";
|
|
40
|
+
export * from "./FulfilledFunctionCall";
|
|
40
41
|
export * from "./FulfilledPromptExecutionMeta";
|
|
42
|
+
export * from "./FunctionCall";
|
|
43
|
+
export * from "./FunctionCallVariableValue";
|
|
41
44
|
export * from "./GenerateErrorResponse";
|
|
42
45
|
export * from "./GenerateOptionsRequest";
|
|
43
46
|
export * from "./GenerateRequest";
|
|
@@ -111,6 +114,7 @@ export * from "./RegisteredPromptSandboxSnapshot";
|
|
|
111
114
|
export * from "./RejectedEnum";
|
|
112
115
|
export * from "./RejectedExecutePromptEvent";
|
|
113
116
|
export * from "./RejectedExecutePromptResponse";
|
|
117
|
+
export * from "./RejectedFunctionCall";
|
|
114
118
|
export * from "./RejectedPromptExecutionMeta";
|
|
115
119
|
export * from "./SandboxMetricInputParams";
|
|
116
120
|
export * from "./SandboxMetricInputParamsRequest";
|
package/api/types/index.js
CHANGED
|
@@ -53,7 +53,10 @@ __exportStar(require("./FinishReasonEnum"), exports);
|
|
|
53
53
|
__exportStar(require("./FulfilledEnum"), exports);
|
|
54
54
|
__exportStar(require("./FulfilledExecutePromptEvent"), exports);
|
|
55
55
|
__exportStar(require("./FulfilledExecutePromptResponse"), exports);
|
|
56
|
+
__exportStar(require("./FulfilledFunctionCall"), exports);
|
|
56
57
|
__exportStar(require("./FulfilledPromptExecutionMeta"), exports);
|
|
58
|
+
__exportStar(require("./FunctionCall"), exports);
|
|
59
|
+
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
57
60
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
58
61
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
59
62
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -127,6 +130,7 @@ __exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
|
127
130
|
__exportStar(require("./RejectedEnum"), exports);
|
|
128
131
|
__exportStar(require("./RejectedExecutePromptEvent"), exports);
|
|
129
132
|
__exportStar(require("./RejectedExecutePromptResponse"), exports);
|
|
133
|
+
__exportStar(require("./RejectedFunctionCall"), exports);
|
|
130
134
|
__exportStar(require("./RejectedPromptExecutionMeta"), exports);
|
|
131
135
|
__exportStar(require("./SandboxMetricInputParams"), exports);
|
|
132
136
|
__exportStar(require("./SandboxMetricInputParamsRequest"), exports);
|
package/dist/Client.js
CHANGED
|
@@ -77,7 +77,7 @@ class VellumClient {
|
|
|
77
77
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
80
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
80
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
81
81
|
},
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -141,7 +141,7 @@ class VellumClient {
|
|
|
141
141
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
144
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
144
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
145
145
|
},
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
@@ -211,7 +211,7 @@ class VellumClient {
|
|
|
211
211
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
212
212
|
"X-Fern-Language": "JavaScript",
|
|
213
213
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
214
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
214
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
215
215
|
},
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
@@ -295,7 +295,7 @@ class VellumClient {
|
|
|
295
295
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
296
296
|
"X-Fern-Language": "JavaScript",
|
|
297
297
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
298
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
298
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
299
299
|
},
|
|
300
300
|
contentType: "application/json",
|
|
301
301
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -358,7 +358,7 @@ class VellumClient {
|
|
|
358
358
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
359
359
|
"X-Fern-Language": "JavaScript",
|
|
360
360
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
361
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
361
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
362
362
|
},
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -431,7 +431,7 @@ class VellumClient {
|
|
|
431
431
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
432
432
|
"X-Fern-Language": "JavaScript",
|
|
433
433
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
434
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
434
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
435
435
|
},
|
|
436
436
|
contentType: "application/json",
|
|
437
437
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -500,7 +500,7 @@ class VellumClient {
|
|
|
500
500
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
501
501
|
"X-Fern-Language": "JavaScript",
|
|
502
502
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
503
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
503
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
504
504
|
},
|
|
505
505
|
contentType: "application/json",
|
|
506
506
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -563,7 +563,7 @@ class VellumClient {
|
|
|
563
563
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
564
564
|
"X-Fern-Language": "JavaScript",
|
|
565
565
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
566
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
566
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
567
567
|
},
|
|
568
568
|
contentType: "application/json",
|
|
569
569
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -62,7 +62,7 @@ class Deployments {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -108,7 +108,7 @@ class Deployments {
|
|
|
108
108
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
109
109
|
"X-Fern-Language": "JavaScript",
|
|
110
110
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
111
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
111
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
112
112
|
},
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -62,7 +62,7 @@ class DocumentIndexes {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -114,7 +114,7 @@ class DocumentIndexes {
|
|
|
114
114
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
115
115
|
"X-Fern-Language": "JavaScript",
|
|
116
116
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
117
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
117
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
118
118
|
},
|
|
119
119
|
contentType: "application/json",
|
|
120
120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class Documents {
|
|
|
81
81
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
84
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
84
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
85
85
|
},
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
@@ -128,7 +128,7 @@ class Documents {
|
|
|
128
128
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
129
129
|
"X-Fern-Language": "JavaScript",
|
|
130
130
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
131
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
131
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -172,7 +172,7 @@ class Documents {
|
|
|
172
172
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
173
173
|
"X-Fern-Language": "JavaScript",
|
|
174
174
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
175
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
175
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
176
176
|
},
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -248,7 +248,7 @@ class Documents {
|
|
|
248
248
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
249
249
|
"X-Fern-Language": "JavaScript",
|
|
250
250
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
251
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
251
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
252
252
|
},
|
|
253
253
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
254
254
|
body: _request,
|
|
@@ -62,7 +62,7 @@ class ModelVersions {
|
|
|
62
62
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
63
63
|
"X-Fern-Language": "JavaScript",
|
|
64
64
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
65
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
65
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
66
66
|
},
|
|
67
67
|
contentType: "application/json",
|
|
68
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -69,7 +69,7 @@ class RegisteredPrompts {
|
|
|
69
69
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
72
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
72
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -68,7 +68,7 @@ class Sandboxes {
|
|
|
68
68
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
71
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
71
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
72
72
|
},
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -123,7 +123,7 @@ class Sandboxes {
|
|
|
123
123
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
126
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
126
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
127
127
|
},
|
|
128
128
|
contentType: "application/json",
|
|
129
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -74,7 +74,7 @@ class TestSuites {
|
|
|
74
74
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
77
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
77
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -129,7 +129,7 @@ class TestSuites {
|
|
|
129
129
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
132
|
-
"X-Fern-SDK-Version": "v0.1.
|
|
132
|
+
"X-Fern-SDK-Version": "v0.1.11",
|
|
133
133
|
},
|
|
134
134
|
contentType: "application/json",
|
|
135
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type FunctionCall = Vellum.FunctionCall.Fulfilled | Vellum.FunctionCall.Rejected;
|
|
6
|
+
export declare namespace FunctionCall {
|
|
7
|
+
interface Fulfilled extends Vellum.FulfilledFunctionCall {
|
|
8
|
+
state: "FULFILLED";
|
|
9
|
+
}
|
|
10
|
+
interface Rejected extends Vellum.RejectedFunctionCall {
|
|
11
|
+
state: "REJECTED";
|
|
12
|
+
}
|
|
13
|
+
}
|