vellum-ai 0.3.4 → 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
|
@@ -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,
|
|
@@ -27,7 +27,7 @@ export declare class TestSuites {
|
|
|
27
27
|
* or overwritten with default values.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
|
-
* await vellum.testSuites.upsertTestSuiteTestCase("
|
|
30
|
+
* await vellum.testSuites.upsertTestSuiteTestCase("id", {
|
|
31
31
|
* inputValues: [],
|
|
32
32
|
* evaluationValues: []
|
|
33
33
|
* })
|
|
@@ -37,7 +37,7 @@ export declare class TestSuites {
|
|
|
37
37
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await vellum.testSuites.deleteTestSuiteTestCase("
|
|
40
|
+
* await vellum.testSuites.deleteTestSuiteTestCase("id", "test_case_id")
|
|
41
41
|
*/
|
|
42
42
|
deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
|
|
43
43
|
}
|
|
@@ -58,7 +58,7 @@ class TestSuites {
|
|
|
58
58
|
* or overwritten with default values.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
61
|
-
* await vellum.testSuites.upsertTestSuiteTestCase("
|
|
61
|
+
* await vellum.testSuites.upsertTestSuiteTestCase("id", {
|
|
62
62
|
* inputValues: [],
|
|
63
63
|
* evaluationValues: []
|
|
64
64
|
* })
|
|
@@ -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": "0.3.
|
|
77
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
78
78
|
},
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
@@ -116,7 +116,7 @@ class TestSuites {
|
|
|
116
116
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
117
117
|
*
|
|
118
118
|
* @example
|
|
119
|
-
* await vellum.testSuites.deleteTestSuiteTestCase("
|
|
119
|
+
* await vellum.testSuites.deleteTestSuiteTestCase("id", "test_case_id")
|
|
120
120
|
*/
|
|
121
121
|
deleteTestSuiteTestCase(id, testCaseId, requestOptions) {
|
|
122
122
|
var _a;
|
|
@@ -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": "0.3.
|
|
132
|
+
"X-Fern-SDK-Version": "0.3.5",
|
|
133
133
|
},
|
|
134
134
|
contentType: "application/json",
|
|
135
135
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -73,7 +73,7 @@ class WorkflowDeployments {
|
|
|
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,
|