vellum-ai 0.3.3 → 0.3.5
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 +5 -22
- package/Client.js +14 -31
- package/api/client/requests/GenerateBodyRequest.d.ts +3 -4
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -11
- package/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.d.ts +1 -1
- package/api/resources/deployments/client/Client.js +4 -4
- package/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -3
- package/api/resources/documentIndexes/client/Client.d.ts +1 -3
- package/api/resources/documentIndexes/client/Client.js +3 -5
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +0 -2
- package/api/resources/documents/client/Client.d.ts +1 -3
- package/api/resources/documents/client/Client.js +5 -7
- package/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -3
- package/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/api/resources/modelVersions/client/Client.js +2 -2
- package/api/resources/registeredPrompts/client/Client.d.ts +11 -6
- package/api/resources/registeredPrompts/client/Client.js +12 -7
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -6
- package/api/resources/sandboxes/client/Client.d.ts +4 -2
- package/api/resources/sandboxes/client/Client.js +6 -4
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -0
- package/api/resources/testSuites/client/Client.d.ts +2 -2
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +1 -1
- package/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -3
- package/dist/Client.d.ts +5 -22
- package/dist/Client.js +14 -31
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +3 -4
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -11
- package/dist/api/client/requests/SubmitCompletionActualsRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/requests/DeploymentsListRequest.d.ts +1 -3
- package/dist/api/resources/documentIndexes/client/Client.d.ts +1 -3
- package/dist/api/resources/documentIndexes/client/Client.js +3 -5
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +0 -2
- package/dist/api/resources/documents/client/Client.d.ts +1 -3
- package/dist/api/resources/documents/client/Client.js +5 -7
- package/dist/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -3
- package/dist/api/resources/modelVersions/client/Client.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/Client.js +2 -2
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +11 -6
- package/dist/api/resources/registeredPrompts/client/Client.js +12 -7
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +11 -6
- package/dist/api/resources/sandboxes/client/Client.d.ts +4 -2
- package/dist/api/resources/sandboxes/client/Client.js +6 -4
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -0
- package/dist/api/resources/testSuites/client/Client.d.ts +2 -2
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +1 -1
- package/dist/api/resources/workflowDeployments/client/requests/WorkflowDeploymentsListRequest.d.ts +1 -3
- package/package.json +1 -1
package/Client.d.ts
CHANGED
|
@@ -27,9 +27,6 @@ export declare class VellumClient {
|
|
|
27
27
|
constructor(_options: VellumClient.Options);
|
|
28
28
|
/**
|
|
29
29
|
* Executes a deployed Prompt and returns the result.
|
|
30
|
-
*
|
|
31
|
-
* Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
|
|
32
|
-
* In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
|
|
33
30
|
* @throws {@link Vellum.BadRequestError}
|
|
34
31
|
* @throws {@link Vellum.ForbiddenError}
|
|
35
32
|
* @throws {@link Vellum.NotFoundError}
|
|
@@ -38,9 +35,6 @@ export declare class VellumClient {
|
|
|
38
35
|
executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
|
|
39
36
|
/**
|
|
40
37
|
* Executes a deployed Prompt and streams back the results.
|
|
41
|
-
*
|
|
42
|
-
* Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
|
|
43
|
-
* In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
|
|
44
38
|
*/
|
|
45
39
|
executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
|
|
46
40
|
/**
|
|
@@ -65,10 +59,9 @@ export declare class VellumClient {
|
|
|
65
59
|
*
|
|
66
60
|
* @example
|
|
67
61
|
* await vellum.generate({
|
|
68
|
-
* requests: [
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* }
|
|
62
|
+
* requests: [{
|
|
63
|
+
* inputValues: {}
|
|
64
|
+
* }]
|
|
72
65
|
* })
|
|
73
66
|
*/
|
|
74
67
|
generate(request: Vellum.GenerateBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.GenerateResponse>;
|
|
@@ -88,17 +81,7 @@ export declare class VellumClient {
|
|
|
88
81
|
*
|
|
89
82
|
* @example
|
|
90
83
|
* await vellum.search({
|
|
91
|
-
* query: "
|
|
92
|
-
* options: {
|
|
93
|
-
* weights: {},
|
|
94
|
-
* resultMerging: {},
|
|
95
|
-
* filters: {
|
|
96
|
-
* metadata: {
|
|
97
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
98
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
99
|
-
* }
|
|
100
|
-
* }
|
|
101
|
-
* }
|
|
84
|
+
* query: "query"
|
|
102
85
|
* })
|
|
103
86
|
*/
|
|
104
87
|
search(request: Vellum.SearchRequestBodyRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.SearchResponse>;
|
|
@@ -112,7 +95,7 @@ export declare class VellumClient {
|
|
|
112
95
|
*
|
|
113
96
|
* @example
|
|
114
97
|
* await vellum.submitCompletionActuals({
|
|
115
|
-
* actuals: []
|
|
98
|
+
* actuals: [{}]
|
|
116
99
|
* })
|
|
117
100
|
*/
|
|
118
101
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
|
package/Client.js
CHANGED
|
@@ -59,9 +59,6 @@ class VellumClient {
|
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Executes a deployed Prompt and returns the result.
|
|
62
|
-
*
|
|
63
|
-
* Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
|
|
64
|
-
* In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
|
|
65
62
|
* @throws {@link Vellum.BadRequestError}
|
|
66
63
|
* @throws {@link Vellum.ForbiddenError}
|
|
67
64
|
* @throws {@link Vellum.NotFoundError}
|
|
@@ -78,7 +75,7 @@ class VellumClient {
|
|
|
78
75
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
79
76
|
"X-Fern-Language": "JavaScript",
|
|
80
77
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
81
|
-
"X-Fern-SDK-Version": "0.3.
|
|
78
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
82
79
|
},
|
|
83
80
|
contentType: "application/json",
|
|
84
81
|
body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -127,9 +124,6 @@ class VellumClient {
|
|
|
127
124
|
}
|
|
128
125
|
/**
|
|
129
126
|
* Executes a deployed Prompt and streams back the results.
|
|
130
|
-
*
|
|
131
|
-
* Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
|
|
132
|
-
* In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
|
|
133
127
|
*/
|
|
134
128
|
executePromptStream(request, requestOptions) {
|
|
135
129
|
var _a;
|
|
@@ -142,7 +136,7 @@ class VellumClient {
|
|
|
142
136
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
143
137
|
"X-Fern-Language": "JavaScript",
|
|
144
138
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
145
|
-
"X-Fern-SDK-Version": "0.3.
|
|
139
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
146
140
|
},
|
|
147
141
|
contentType: "application/json",
|
|
148
142
|
body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
|
|
@@ -215,7 +209,7 @@ class VellumClient {
|
|
|
215
209
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
216
210
|
"X-Fern-Language": "JavaScript",
|
|
217
211
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
218
|
-
"X-Fern-SDK-Version": "0.3.
|
|
212
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
219
213
|
},
|
|
220
214
|
contentType: "application/json",
|
|
221
215
|
body: yield serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -274,7 +268,7 @@ class VellumClient {
|
|
|
274
268
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
275
269
|
"X-Fern-Language": "JavaScript",
|
|
276
270
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
277
|
-
"X-Fern-SDK-Version": "0.3.
|
|
271
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
278
272
|
},
|
|
279
273
|
contentType: "application/json",
|
|
280
274
|
body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
|
|
@@ -339,10 +333,9 @@ class VellumClient {
|
|
|
339
333
|
*
|
|
340
334
|
* @example
|
|
341
335
|
* await vellum.generate({
|
|
342
|
-
* requests: [
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
* }
|
|
336
|
+
* requests: [{
|
|
337
|
+
* inputValues: {}
|
|
338
|
+
* }]
|
|
346
339
|
* })
|
|
347
340
|
*/
|
|
348
341
|
generate(request, requestOptions) {
|
|
@@ -356,7 +349,7 @@ class VellumClient {
|
|
|
356
349
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
357
350
|
"X-Fern-Language": "JavaScript",
|
|
358
351
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
359
|
-
"X-Fern-SDK-Version": "0.3.
|
|
352
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
360
353
|
},
|
|
361
354
|
contentType: "application/json",
|
|
362
355
|
body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -419,7 +412,7 @@ class VellumClient {
|
|
|
419
412
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
420
413
|
"X-Fern-Language": "JavaScript",
|
|
421
414
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
422
|
-
"X-Fern-SDK-Version": "0.3.
|
|
415
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
423
416
|
},
|
|
424
417
|
contentType: "application/json",
|
|
425
418
|
body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -483,17 +476,7 @@ class VellumClient {
|
|
|
483
476
|
*
|
|
484
477
|
* @example
|
|
485
478
|
* await vellum.search({
|
|
486
|
-
* query: "
|
|
487
|
-
* options: {
|
|
488
|
-
* weights: {},
|
|
489
|
-
* resultMerging: {},
|
|
490
|
-
* filters: {
|
|
491
|
-
* metadata: {
|
|
492
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
493
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
494
|
-
* }
|
|
495
|
-
* }
|
|
496
|
-
* }
|
|
479
|
+
* query: "query"
|
|
497
480
|
* })
|
|
498
481
|
*/
|
|
499
482
|
search(request, requestOptions) {
|
|
@@ -507,7 +490,7 @@ class VellumClient {
|
|
|
507
490
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
508
491
|
"X-Fern-Language": "JavaScript",
|
|
509
492
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
510
|
-
"X-Fern-SDK-Version": "0.3.
|
|
493
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
511
494
|
},
|
|
512
495
|
contentType: "application/json",
|
|
513
496
|
body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -562,7 +545,7 @@ class VellumClient {
|
|
|
562
545
|
*
|
|
563
546
|
* @example
|
|
564
547
|
* await vellum.submitCompletionActuals({
|
|
565
|
-
* actuals: []
|
|
548
|
+
* actuals: [{}]
|
|
566
549
|
* })
|
|
567
550
|
*/
|
|
568
551
|
submitCompletionActuals(request, requestOptions) {
|
|
@@ -576,7 +559,7 @@ class VellumClient {
|
|
|
576
559
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
577
560
|
"X-Fern-Language": "JavaScript",
|
|
578
561
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
579
|
-
"X-Fern-SDK-Version": "0.3.
|
|
562
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
580
563
|
},
|
|
581
564
|
contentType: "application/json",
|
|
582
565
|
body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
|
|
@@ -639,7 +622,7 @@ class VellumClient {
|
|
|
639
622
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
640
623
|
"X-Fern-Language": "JavaScript",
|
|
641
624
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
642
|
-
"X-Fern-SDK-Version": "0.3.
|
|
625
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
643
626
|
},
|
|
644
627
|
contentType: "application/json",
|
|
645
628
|
body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -5,17 +5,7 @@ import * as Vellum from "../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* query: "
|
|
9
|
-
* options: {
|
|
10
|
-
* weights: {},
|
|
11
|
-
* resultMerging: {},
|
|
12
|
-
* filters: {
|
|
13
|
-
* metadata: {
|
|
14
|
-
* combinator: Vellum.MetadataFilterRuleCombinator.And,
|
|
15
|
-
* operator: Vellum.LogicalOperator.Equals
|
|
16
|
-
* }
|
|
17
|
-
* }
|
|
18
|
-
* }
|
|
8
|
+
* query: "query"
|
|
19
9
|
* }
|
|
20
10
|
*/
|
|
21
11
|
export interface SearchRequestBodyRequest {
|
|
@@ -22,7 +22,7 @@ export declare class Deployments {
|
|
|
22
22
|
* Used to retrieve a deployment given its ID or name.
|
|
23
23
|
*
|
|
24
24
|
* @example
|
|
25
|
-
* await vellum.deployments.retrieve("
|
|
25
|
+
* await vellum.deployments.retrieve("id")
|
|
26
26
|
*/
|
|
27
27
|
retrieve(id: string, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentRead>;
|
|
28
28
|
retrieveProviderPayload(request: Vellum.DeploymentProviderPayloadRequest, requestOptions?: Deployments.RequestOptions): Promise<Vellum.DeploymentProviderPayloadResponse>;
|
|
@@ -73,7 +73,7 @@ class Deployments {
|
|
|
73
73
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
76
|
-
"X-Fern-SDK-Version": "0.3.
|
|
76
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
@@ -113,7 +113,7 @@ class Deployments {
|
|
|
113
113
|
* Used to retrieve a deployment given its ID or name.
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
|
-
* await vellum.deployments.retrieve("
|
|
116
|
+
* await vellum.deployments.retrieve("id")
|
|
117
117
|
*/
|
|
118
118
|
retrieve(id, requestOptions) {
|
|
119
119
|
var _a;
|
|
@@ -126,7 +126,7 @@ class Deployments {
|
|
|
126
126
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
127
127
|
"X-Fern-Language": "JavaScript",
|
|
128
128
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
129
|
-
"X-Fern-SDK-Version": "0.3.
|
|
129
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
130
130
|
},
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -172,7 +172,7 @@ class Deployments {
|
|
|
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": "0.3.
|
|
175
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
176
176
|
},
|
|
177
177
|
contentType: "application/json",
|
|
178
178
|
body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
|
|
@@ -24,8 +24,6 @@ export declare class DocumentIndexes {
|
|
|
24
24
|
* await vellum.documentIndexes.create({
|
|
25
25
|
* label: "My Document Index",
|
|
26
26
|
* name: "my-document-index",
|
|
27
|
-
* status: Vellum.EntityStatus.Active,
|
|
28
|
-
* environment: Vellum.EnvironmentEnum.Development,
|
|
29
27
|
* indexingConfig: {
|
|
30
28
|
* "chunking": {
|
|
31
29
|
* "chunker_name": "sentence-chunker",
|
|
@@ -50,7 +48,7 @@ export declare class DocumentIndexes {
|
|
|
50
48
|
* Used to retrieve a Document Index given its ID or name.
|
|
51
49
|
*
|
|
52
50
|
* @example
|
|
53
|
-
* await vellum.documentIndexes.retrieve("
|
|
51
|
+
* await vellum.documentIndexes.retrieve("id")
|
|
54
52
|
*/
|
|
55
53
|
retrieve(id: string, requestOptions?: DocumentIndexes.RequestOptions): Promise<Vellum.DocumentIndexRead>;
|
|
56
54
|
}
|
|
@@ -55,8 +55,6 @@ class DocumentIndexes {
|
|
|
55
55
|
* await vellum.documentIndexes.create({
|
|
56
56
|
* label: "My Document Index",
|
|
57
57
|
* name: "my-document-index",
|
|
58
|
-
* status: Vellum.EntityStatus.Active,
|
|
59
|
-
* environment: Vellum.EnvironmentEnum.Development,
|
|
60
58
|
* indexingConfig: {
|
|
61
59
|
* "chunking": {
|
|
62
60
|
* "chunker_name": "sentence-chunker",
|
|
@@ -87,7 +85,7 @@ class DocumentIndexes {
|
|
|
87
85
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
88
86
|
"X-Fern-Language": "JavaScript",
|
|
89
87
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
90
|
-
"X-Fern-SDK-Version": "0.3.
|
|
88
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
91
89
|
},
|
|
92
90
|
contentType: "application/json",
|
|
93
91
|
body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
|
|
@@ -129,7 +127,7 @@ class DocumentIndexes {
|
|
|
129
127
|
* Used to retrieve a Document Index given its ID or name.
|
|
130
128
|
*
|
|
131
129
|
* @example
|
|
132
|
-
* await vellum.documentIndexes.retrieve("
|
|
130
|
+
* await vellum.documentIndexes.retrieve("id")
|
|
133
131
|
*/
|
|
134
132
|
retrieve(id, requestOptions) {
|
|
135
133
|
var _a;
|
|
@@ -142,7 +140,7 @@ class DocumentIndexes {
|
|
|
142
140
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
143
141
|
"X-Fern-Language": "JavaScript",
|
|
144
142
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
145
|
-
"X-Fern-SDK-Version": "0.3.
|
|
143
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
146
144
|
},
|
|
147
145
|
contentType: "application/json",
|
|
148
146
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -7,8 +7,6 @@ import * as Vellum from "../../../..";
|
|
|
7
7
|
* {
|
|
8
8
|
* label: "My Document Index",
|
|
9
9
|
* name: "my-document-index",
|
|
10
|
-
* status: Vellum.EntityStatus.Active,
|
|
11
|
-
* environment: Vellum.EnvironmentEnum.Development,
|
|
12
10
|
* indexingConfig: {
|
|
13
11
|
* "chunking": {
|
|
14
12
|
* "chunker_name": "sentence-chunker",
|
|
@@ -31,9 +31,7 @@ export declare class Documents {
|
|
|
31
31
|
* Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
34
|
-
* await vellum.documents.partialUpdate("
|
|
35
|
-
* status: "ACTIVE"
|
|
36
|
-
* })
|
|
34
|
+
* await vellum.documents.partialUpdate("id", {})
|
|
37
35
|
*/
|
|
38
36
|
partialUpdate(id: string, request?: Vellum.PatchedDocumentUpdateRequest, requestOptions?: Documents.RequestOptions): Promise<Vellum.DocumentRead>;
|
|
39
37
|
/**
|
|
@@ -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": "0.3.
|
|
84
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
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": "0.3.
|
|
131
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
132
132
|
},
|
|
133
133
|
contentType: "application/json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -162,9 +162,7 @@ class Documents {
|
|
|
162
162
|
* Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
|
163
163
|
*
|
|
164
164
|
* @example
|
|
165
|
-
* await vellum.documents.partialUpdate("
|
|
166
|
-
* status: "ACTIVE"
|
|
167
|
-
* })
|
|
165
|
+
* await vellum.documents.partialUpdate("id", {})
|
|
168
166
|
*/
|
|
169
167
|
partialUpdate(id, request = {}, requestOptions) {
|
|
170
168
|
var _a;
|
|
@@ -177,7 +175,7 @@ class Documents {
|
|
|
177
175
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
178
176
|
"X-Fern-Language": "JavaScript",
|
|
179
177
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
180
|
-
"X-Fern-SDK-Version": "0.3.
|
|
178
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
181
179
|
},
|
|
182
180
|
contentType: "application/json",
|
|
183
181
|
body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
|
|
@@ -261,7 +259,7 @@ class Documents {
|
|
|
261
259
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
262
260
|
"X-Fern-Language": "JavaScript",
|
|
263
261
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
264
|
-
"X-Fern-SDK-Version": "0.3.
|
|
262
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
265
263
|
},
|
|
266
264
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
267
265
|
body: _request,
|
|
@@ -21,7 +21,7 @@ export declare class ModelVersions {
|
|
|
21
21
|
* Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
|
-
* await vellum.modelVersions.retrieve("
|
|
24
|
+
* await vellum.modelVersions.retrieve("id")
|
|
25
25
|
*/
|
|
26
26
|
retrieve(id: string, requestOptions?: ModelVersions.RequestOptions): Promise<Vellum.ModelVersionRead>;
|
|
27
27
|
}
|
|
@@ -52,7 +52,7 @@ class ModelVersions {
|
|
|
52
52
|
* Deprecated. Use the `deployments/provider-payload` endpoint to fetch information that we send to Model providers.
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
|
-
* await vellum.modelVersions.retrieve("
|
|
55
|
+
* await vellum.modelVersions.retrieve("id")
|
|
56
56
|
*/
|
|
57
57
|
retrieve(id, requestOptions) {
|
|
58
58
|
var _a;
|
|
@@ -65,7 +65,7 @@ class ModelVersions {
|
|
|
65
65
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
66
66
|
"X-Fern-Language": "JavaScript",
|
|
67
67
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
68
|
-
"X-Fern-SDK-Version": "0.3.
|
|
68
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
69
69
|
},
|
|
70
70
|
contentType: "application/json",
|
|
71
71
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -28,17 +28,22 @@ export declare class RegisteredPrompts {
|
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* await vellum.registeredPrompts.registerPrompt({
|
|
31
|
-
* label: "
|
|
32
|
-
* name: "
|
|
31
|
+
* label: "label",
|
|
32
|
+
* name: "name",
|
|
33
33
|
* prompt: {
|
|
34
34
|
* promptBlockData: {
|
|
35
35
|
* version: 1,
|
|
36
|
-
* blocks: [
|
|
36
|
+
* blocks: [{
|
|
37
|
+
* id: "id",
|
|
38
|
+
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
39
|
+
* properties: {}
|
|
40
|
+
* }]
|
|
37
41
|
* },
|
|
38
|
-
* inputVariables: [
|
|
42
|
+
* inputVariables: [{
|
|
43
|
+
* key: "key"
|
|
44
|
+
* }]
|
|
39
45
|
* },
|
|
40
|
-
*
|
|
41
|
-
* model: "string",
|
|
46
|
+
* model: "model",
|
|
42
47
|
* parameters: {
|
|
43
48
|
* temperature: 1.1,
|
|
44
49
|
* maxTokens: 1,
|
|
@@ -60,17 +60,22 @@ class RegisteredPrompts {
|
|
|
60
60
|
*
|
|
61
61
|
* @example
|
|
62
62
|
* await vellum.registeredPrompts.registerPrompt({
|
|
63
|
-
* label: "
|
|
64
|
-
* name: "
|
|
63
|
+
* label: "label",
|
|
64
|
+
* name: "name",
|
|
65
65
|
* prompt: {
|
|
66
66
|
* promptBlockData: {
|
|
67
67
|
* version: 1,
|
|
68
|
-
* blocks: [
|
|
68
|
+
* blocks: [{
|
|
69
|
+
* id: "id",
|
|
70
|
+
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
71
|
+
* properties: {}
|
|
72
|
+
* }]
|
|
69
73
|
* },
|
|
70
|
-
* inputVariables: [
|
|
74
|
+
* inputVariables: [{
|
|
75
|
+
* key: "key"
|
|
76
|
+
* }]
|
|
71
77
|
* },
|
|
72
|
-
*
|
|
73
|
-
* model: "string",
|
|
78
|
+
* model: "model",
|
|
74
79
|
* parameters: {
|
|
75
80
|
* temperature: 1.1,
|
|
76
81
|
* maxTokens: 1,
|
|
@@ -91,7 +96,7 @@ class RegisteredPrompts {
|
|
|
91
96
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
92
97
|
"X-Fern-Language": "JavaScript",
|
|
93
98
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
94
|
-
"X-Fern-SDK-Version": "0.3.
|
|
99
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
95
100
|
},
|
|
96
101
|
contentType: "application/json",
|
|
97
102
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
@@ -5,17 +5,22 @@ import * as Vellum from "../../../..";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* label: "
|
|
9
|
-
* name: "
|
|
8
|
+
* label: "label",
|
|
9
|
+
* name: "name",
|
|
10
10
|
* prompt: {
|
|
11
11
|
* promptBlockData: {
|
|
12
12
|
* version: 1,
|
|
13
|
-
* blocks: [
|
|
13
|
+
* blocks: [{
|
|
14
|
+
* id: "id",
|
|
15
|
+
* blockType: Vellum.BlockTypeEnum.ChatMessage,
|
|
16
|
+
* properties: {}
|
|
17
|
+
* }]
|
|
14
18
|
* },
|
|
15
|
-
* inputVariables: [
|
|
19
|
+
* inputVariables: [{
|
|
20
|
+
* key: "key"
|
|
21
|
+
* }]
|
|
16
22
|
* },
|
|
17
|
-
*
|
|
18
|
-
* model: "string",
|
|
23
|
+
* model: "model",
|
|
19
24
|
* parameters: {
|
|
20
25
|
* temperature: 1.1,
|
|
21
26
|
* maxTokens: 1,
|
|
@@ -27,7 +27,7 @@ export declare class Sandboxes {
|
|
|
27
27
|
* or overwritten with default values.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
-
* await vellum.sandboxes.upsertSandboxScenario("
|
|
30
|
+
* await vellum.sandboxes.upsertSandboxScenario("id", {
|
|
31
31
|
* label: "Scenario 1",
|
|
32
32
|
* inputs: [{
|
|
33
33
|
* key: "var_1",
|
|
@@ -37,6 +37,8 @@ export declare class Sandboxes {
|
|
|
37
37
|
* key: "var_2",
|
|
38
38
|
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
39
39
|
* value: "Why hello, there!"
|
|
40
|
+
* }, {
|
|
41
|
+
* key: "key"
|
|
40
42
|
* }]
|
|
41
43
|
* })
|
|
42
44
|
*/
|
|
@@ -45,7 +47,7 @@ export declare class Sandboxes {
|
|
|
45
47
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
46
48
|
*
|
|
47
49
|
* @example
|
|
48
|
-
* await vellum.sandboxes.deleteSandboxScenario("
|
|
50
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario_id")
|
|
49
51
|
*/
|
|
50
52
|
deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
|
|
51
53
|
}
|
|
@@ -58,7 +58,7 @@ class Sandboxes {
|
|
|
58
58
|
* or overwritten with default values.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await vellum.sandboxes.upsertSandboxScenario("
|
|
61
|
+
* await vellum.sandboxes.upsertSandboxScenario("id", {
|
|
62
62
|
* label: "Scenario 1",
|
|
63
63
|
* inputs: [{
|
|
64
64
|
* key: "var_1",
|
|
@@ -68,6 +68,8 @@ class Sandboxes {
|
|
|
68
68
|
* key: "var_2",
|
|
69
69
|
* type: Vellum.ScenarioInputTypeEnum.Text,
|
|
70
70
|
* value: "Why hello, there!"
|
|
71
|
+
* }, {
|
|
72
|
+
* key: "key"
|
|
71
73
|
* }]
|
|
72
74
|
* })
|
|
73
75
|
*/
|
|
@@ -82,7 +84,7 @@ class Sandboxes {
|
|
|
82
84
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
83
85
|
"X-Fern-Language": "JavaScript",
|
|
84
86
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
85
|
-
"X-Fern-SDK-Version": "0.3.
|
|
87
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
86
88
|
},
|
|
87
89
|
contentType: "application/json",
|
|
88
90
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
@@ -124,7 +126,7 @@ class Sandboxes {
|
|
|
124
126
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
125
127
|
*
|
|
126
128
|
* @example
|
|
127
|
-
* await vellum.sandboxes.deleteSandboxScenario("
|
|
129
|
+
* await vellum.sandboxes.deleteSandboxScenario("id", "scenario_id")
|
|
128
130
|
*/
|
|
129
131
|
deleteSandboxScenario(id, scenarioId, requestOptions) {
|
|
130
132
|
var _a;
|
|
@@ -137,7 +139,7 @@ class Sandboxes {
|
|
|
137
139
|
X_API_KEY: yield core.Supplier.get(this._options.apiKey),
|
|
138
140
|
"X-Fern-Language": "JavaScript",
|
|
139
141
|
"X-Fern-SDK-Name": "vellum-ai",
|
|
140
|
-
"X-Fern-SDK-Version": "0.3.
|
|
142
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
141
143
|
},
|
|
142
144
|
contentType: "application/json",
|
|
143
145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|