vellum-ai 0.10.6 → 0.10.7
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/.mock/definition/__package__.yml +123 -0
- package/.mock/definition/adHoc.yml +25 -0
- package/.mock/definition/containerImages.yml +9 -0
- package/.mock/definition/deployments.yml +16 -0
- package/.mock/definition/documentIndexes.yml +19 -0
- package/.mock/definition/documents.yml +16 -1
- package/.mock/definition/folderEntities.yml +5 -0
- package/.mock/definition/metricDefinitions.yml +8 -0
- package/.mock/definition/mlModels.yml +2 -0
- package/.mock/definition/sandboxes.yml +8 -0
- package/.mock/definition/testSuiteRuns.yml +7 -0
- package/.mock/definition/testSuites.yml +29 -0
- package/.mock/definition/workflowDeployments.yml +13 -0
- package/.mock/definition/workflowSandboxes.yml +3 -0
- package/.mock/definition/workflows.yml +4 -0
- package/.mock/definition/workspaceSecrets.yml +5 -0
- package/.mock/fern.config.json +1 -1
- package/.mock/openapi/openapi.yml +3 -0
- package/Client.js +10 -10
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -35
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +3 -16
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +3 -20
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +9 -65
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +7 -7
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/metricDefinitions/client/Client.d.ts +9 -0
- package/api/resources/metricDefinitions/client/Client.js +52 -1
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +5 -5
- package/api/resources/workflowDeployments/client/Client.js +6 -6
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/resources/workflows/client/Client.js +2 -2
- package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -6
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/types/MetricDefinitionHistoryItem.d.ts +14 -0
- package/api/types/MetricDefinitionHistoryItem.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +10 -10
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -35
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +3 -16
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +3 -20
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +9 -65
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +7 -7
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/metricDefinitions/client/Client.d.ts +9 -0
- package/dist/api/resources/metricDefinitions/client/Client.js +52 -1
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +5 -5
- package/dist/api/resources/workflowDeployments/client/Client.js +6 -6
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/resources/workflows/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +0 -6
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/types/MetricDefinitionHistoryItem.d.ts +14 -0
- package/dist/api/types/MetricDefinitionHistoryItem.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/MetricDefinitionHistoryItem.d.ts +18 -0
- package/dist/serialization/types/MetricDefinitionHistoryItem.js +39 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +67 -146
- package/serialization/types/MetricDefinitionHistoryItem.d.ts +18 -0
- package/serialization/types/MetricDefinitionHistoryItem.js +39 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -8,6 +8,8 @@ service:
|
|
|
8
8
|
path: /v1/sandboxes/{id}/prompts/{prompt_variant_id}/deploy
|
|
9
9
|
method: POST
|
|
10
10
|
auth: true
|
|
11
|
+
source:
|
|
12
|
+
openapi: openapi/openapi.yml
|
|
11
13
|
path-parameters:
|
|
12
14
|
id:
|
|
13
15
|
type: string
|
|
@@ -50,6 +52,7 @@ service:
|
|
|
50
52
|
Optionally provide the release tags that you'd like to be
|
|
51
53
|
associated with the latest release of the created/updated Prompt
|
|
52
54
|
Deployment.
|
|
55
|
+
content-type: application/json
|
|
53
56
|
response:
|
|
54
57
|
docs: ''
|
|
55
58
|
type: root.DeploymentRead
|
|
@@ -101,6 +104,8 @@ service:
|
|
|
101
104
|
not provided will be removed
|
|
102
105
|
|
|
103
106
|
or overwritten with default values.
|
|
107
|
+
source:
|
|
108
|
+
openapi: openapi/openapi.yml
|
|
104
109
|
path-parameters:
|
|
105
110
|
id:
|
|
106
111
|
type: string
|
|
@@ -122,6 +127,7 @@ service:
|
|
|
122
127
|
will be generated and a new scenario will be appended.
|
|
123
128
|
validation:
|
|
124
129
|
minLength: 1
|
|
130
|
+
content-type: application/json
|
|
125
131
|
response:
|
|
126
132
|
docs: ''
|
|
127
133
|
type: root.SandboxScenario
|
|
@@ -178,6 +184,8 @@ service:
|
|
|
178
184
|
docs: >-
|
|
179
185
|
Deletes an existing scenario from a sandbox, keying off of the provided
|
|
180
186
|
scenario id.
|
|
187
|
+
source:
|
|
188
|
+
openapi: openapi/openapi.yml
|
|
181
189
|
path-parameters:
|
|
182
190
|
id:
|
|
183
191
|
type: string
|
|
@@ -9,6 +9,8 @@ service:
|
|
|
9
9
|
method: POST
|
|
10
10
|
auth: true
|
|
11
11
|
docs: Trigger a Test Suite and create a new Test Suite Run
|
|
12
|
+
source:
|
|
13
|
+
openapi: openapi/openapi.yml
|
|
12
14
|
request:
|
|
13
15
|
name: TestSuiteRunCreateRequest
|
|
14
16
|
body:
|
|
@@ -30,6 +32,7 @@ service:
|
|
|
30
32
|
exec_config:
|
|
31
33
|
type: root.TestSuiteRunExecConfigRequest
|
|
32
34
|
docs: Configuration that defines how the Test Suite should be run
|
|
35
|
+
content-type: application/json
|
|
33
36
|
response:
|
|
34
37
|
docs: ''
|
|
35
38
|
type: root.TestSuiteRunRead
|
|
@@ -64,6 +67,8 @@ service:
|
|
|
64
67
|
method: GET
|
|
65
68
|
auth: true
|
|
66
69
|
docs: Retrieve a specific Test Suite Run by ID
|
|
70
|
+
source:
|
|
71
|
+
openapi: openapi/openapi.yml
|
|
67
72
|
path-parameters:
|
|
68
73
|
id:
|
|
69
74
|
type: string
|
|
@@ -98,6 +103,8 @@ service:
|
|
|
98
103
|
path: /v1/test-suite-runs/{id}/executions
|
|
99
104
|
method: GET
|
|
100
105
|
auth: true
|
|
106
|
+
source:
|
|
107
|
+
openapi: openapi/openapi.yml
|
|
101
108
|
path-parameters:
|
|
102
109
|
id:
|
|
103
110
|
type: string
|
|
@@ -9,6 +9,8 @@ service:
|
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
11
|
docs: List the Test Cases associated with a Test Suite
|
|
12
|
+
source:
|
|
13
|
+
openapi: openapi/openapi.yml
|
|
12
14
|
path-parameters:
|
|
13
15
|
id:
|
|
14
16
|
type: string
|
|
@@ -68,12 +70,15 @@ service:
|
|
|
68
70
|
fields not provided will be removed
|
|
69
71
|
|
|
70
72
|
or overwritten with default values.
|
|
73
|
+
source:
|
|
74
|
+
openapi: openapi/openapi.yml
|
|
71
75
|
path-parameters:
|
|
72
76
|
id:
|
|
73
77
|
type: string
|
|
74
78
|
docs: Either the Test Suites' ID or its unique name
|
|
75
79
|
request:
|
|
76
80
|
body: root.UpsertTestSuiteTestCaseRequest
|
|
81
|
+
content-type: application/json
|
|
77
82
|
response:
|
|
78
83
|
docs: ''
|
|
79
84
|
type: root.TestSuiteTestCase
|
|
@@ -113,18 +118,40 @@ service:
|
|
|
113
118
|
docs: >-
|
|
114
119
|
Created, replace, and delete Test Cases within the specified Test Suite
|
|
115
120
|
in bulk
|
|
121
|
+
source:
|
|
122
|
+
openapi: openapi/openapi.yml
|
|
116
123
|
path-parameters:
|
|
117
124
|
id:
|
|
118
125
|
type: string
|
|
119
126
|
docs: Either the Test Suites' ID or its unique name
|
|
120
127
|
request:
|
|
121
128
|
body: list<root.TestSuiteTestCaseBulkOperationRequest>
|
|
129
|
+
content-type: application/x-ndjson
|
|
122
130
|
response-stream:
|
|
123
131
|
docs: ''
|
|
124
132
|
type: list<root.TestSuiteTestCaseBulkResult>
|
|
125
133
|
format: json
|
|
126
134
|
url: Default
|
|
127
135
|
availability: pre-release
|
|
136
|
+
examples:
|
|
137
|
+
- path-parameters:
|
|
138
|
+
id: id
|
|
139
|
+
request:
|
|
140
|
+
- id: id
|
|
141
|
+
type: CREATE
|
|
142
|
+
data:
|
|
143
|
+
input_values:
|
|
144
|
+
- type: STRING
|
|
145
|
+
name: name
|
|
146
|
+
evaluation_values:
|
|
147
|
+
- type: STRING
|
|
148
|
+
name: name
|
|
149
|
+
response:
|
|
150
|
+
stream:
|
|
151
|
+
- - id: id
|
|
152
|
+
type: CREATED
|
|
153
|
+
data:
|
|
154
|
+
id: id
|
|
128
155
|
audiences:
|
|
129
156
|
- customers
|
|
130
157
|
delete_test_suite_test_case:
|
|
@@ -134,6 +161,8 @@ service:
|
|
|
134
161
|
docs: >
|
|
135
162
|
Deletes an existing test case for a test suite, keying off of the test
|
|
136
163
|
case id.
|
|
164
|
+
source:
|
|
165
|
+
openapi: openapi/openapi.yml
|
|
137
166
|
path-parameters:
|
|
138
167
|
id:
|
|
139
168
|
type: string
|
|
@@ -22,6 +22,8 @@ service:
|
|
|
22
22
|
method: GET
|
|
23
23
|
auth: true
|
|
24
24
|
docs: Used to list all Workflow Deployments.
|
|
25
|
+
source:
|
|
26
|
+
openapi: openapi/openapi.yml
|
|
25
27
|
request:
|
|
26
28
|
name: WorkflowDeploymentsListRequest
|
|
27
29
|
query-parameters:
|
|
@@ -72,6 +74,8 @@ service:
|
|
|
72
74
|
method: GET
|
|
73
75
|
auth: true
|
|
74
76
|
docs: Used to retrieve a workflow deployment given its ID or name.
|
|
77
|
+
source:
|
|
78
|
+
openapi: openapi/openapi.yml
|
|
75
79
|
path-parameters:
|
|
76
80
|
id:
|
|
77
81
|
type: string
|
|
@@ -118,6 +122,8 @@ service:
|
|
|
118
122
|
docs: >-
|
|
119
123
|
Retrieve a specific Workflow Deployment History Item by either its UUID
|
|
120
124
|
or the name of a Release Tag that points to it.
|
|
125
|
+
source:
|
|
126
|
+
openapi: openapi/openapi.yml
|
|
121
127
|
path-parameters:
|
|
122
128
|
history_id_or_release_tag:
|
|
123
129
|
type: string
|
|
@@ -166,6 +172,8 @@ service:
|
|
|
166
172
|
method: GET
|
|
167
173
|
auth: true
|
|
168
174
|
docs: List Release Tags associated with the specified Workflow Deployment
|
|
175
|
+
source:
|
|
176
|
+
openapi: openapi/openapi.yml
|
|
169
177
|
path-parameters:
|
|
170
178
|
id:
|
|
171
179
|
type: string
|
|
@@ -211,6 +219,8 @@ service:
|
|
|
211
219
|
docs: >-
|
|
212
220
|
Retrieve a Workflow Release Tag by tag name, associated with a specified
|
|
213
221
|
Workflow Deployment.
|
|
222
|
+
source:
|
|
223
|
+
openapi: openapi/openapi.yml
|
|
214
224
|
path-parameters:
|
|
215
225
|
id:
|
|
216
226
|
type: string
|
|
@@ -245,6 +255,8 @@ service:
|
|
|
245
255
|
docs: >-
|
|
246
256
|
Updates an existing Release Tag associated with the specified Workflow
|
|
247
257
|
Deployment.
|
|
258
|
+
source:
|
|
259
|
+
openapi: openapi/openapi.yml
|
|
248
260
|
path-parameters:
|
|
249
261
|
id:
|
|
250
262
|
type: string
|
|
@@ -263,6 +275,7 @@ service:
|
|
|
263
275
|
docs: The ID of the Workflow Deployment History Item to tag
|
|
264
276
|
validation:
|
|
265
277
|
format: uuid
|
|
278
|
+
content-type: application/json
|
|
266
279
|
response:
|
|
267
280
|
docs: ''
|
|
268
281
|
type: root.WorkflowReleaseTagRead
|
|
@@ -8,6 +8,8 @@ service:
|
|
|
8
8
|
path: /v1/workflow-sandboxes/{id}/workflows/{workflow_id}/deploy
|
|
9
9
|
method: POST
|
|
10
10
|
auth: true
|
|
11
|
+
source:
|
|
12
|
+
openapi: openapi/openapi.yml
|
|
11
13
|
path-parameters:
|
|
12
14
|
id:
|
|
13
15
|
type: string
|
|
@@ -50,6 +52,7 @@ service:
|
|
|
50
52
|
Optionally provide the release tags that you'd like to be
|
|
51
53
|
associated with the latest release of the created/updated Prompt
|
|
52
54
|
Deployment.
|
|
55
|
+
content-type: application/json
|
|
53
56
|
response:
|
|
54
57
|
docs: ''
|
|
55
58
|
type: root.WorkflowDeploymentRead
|
|
@@ -18,6 +18,8 @@ service:
|
|
|
18
18
|
docs: >-
|
|
19
19
|
An internal-only endpoint that's subject to breaking changes without
|
|
20
20
|
notice. Not intended for public use.
|
|
21
|
+
source:
|
|
22
|
+
openapi: openapi/openapi.yml
|
|
21
23
|
path-parameters:
|
|
22
24
|
id:
|
|
23
25
|
type: string
|
|
@@ -42,6 +44,8 @@ service:
|
|
|
42
44
|
docs: >-
|
|
43
45
|
An internal-only endpoint that's subject to breaking changes without
|
|
44
46
|
notice. Not intended for public use.
|
|
47
|
+
source:
|
|
48
|
+
openapi: openapi/openapi.yml
|
|
45
49
|
request:
|
|
46
50
|
name: WorkflowPushRequest
|
|
47
51
|
body:
|
|
@@ -9,6 +9,8 @@ service:
|
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
11
|
docs: Used to retrieve a Workspace Secret given its ID or name.
|
|
12
|
+
source:
|
|
13
|
+
openapi: openapi/openapi.yml
|
|
12
14
|
path-parameters:
|
|
13
15
|
id:
|
|
14
16
|
type: string
|
|
@@ -35,6 +37,8 @@ service:
|
|
|
35
37
|
method: PATCH
|
|
36
38
|
auth: true
|
|
37
39
|
docs: Used to update a Workspace Secret given its ID or name.
|
|
40
|
+
source:
|
|
41
|
+
openapi: openapi/openapi.yml
|
|
38
42
|
path-parameters:
|
|
39
43
|
id:
|
|
40
44
|
type: string
|
|
@@ -51,6 +55,7 @@ service:
|
|
|
51
55
|
type: optional<string>
|
|
52
56
|
validation:
|
|
53
57
|
minLength: 1
|
|
58
|
+
content-type: application/json
|
|
54
59
|
response:
|
|
55
60
|
docs: ''
|
|
56
61
|
type: root.WorkspaceSecretRead
|
package/.mock/fern.config.json
CHANGED
|
@@ -1416,6 +1416,9 @@ paths:
|
|
|
1416
1416
|
schema:
|
|
1417
1417
|
$ref: '#/components/schemas/MetricDefinitionHistoryItem'
|
|
1418
1418
|
description: ''
|
|
1419
|
+
x-fern-availability: beta
|
|
1420
|
+
x-fern-audiences:
|
|
1421
|
+
- internal
|
|
1419
1422
|
/v1/ml-models/{id}:
|
|
1420
1423
|
get:
|
|
1421
1424
|
operationId: ml_models_retrieve
|
package/Client.js
CHANGED
|
@@ -95,7 +95,7 @@ class VellumClient {
|
|
|
95
95
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
96
96
|
.default, "v1/execute-code"),
|
|
97
97
|
method: "POST",
|
|
98
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
98
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
99
99
|
contentType: "application/json",
|
|
100
100
|
requestType: "json",
|
|
101
101
|
body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -164,7 +164,7 @@ class VellumClient {
|
|
|
164
164
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
165
165
|
.predict, "v1/execute-prompt"),
|
|
166
166
|
method: "POST",
|
|
167
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
167
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
168
168
|
contentType: "application/json",
|
|
169
169
|
requestType: "json",
|
|
170
170
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -222,7 +222,7 @@ class VellumClient {
|
|
|
222
222
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
223
223
|
.predict, "v1/execute-prompt-stream"),
|
|
224
224
|
method: "POST",
|
|
225
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
225
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -307,7 +307,7 @@ class VellumClient {
|
|
|
307
307
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
308
308
|
.predict, "v1/execute-workflow"),
|
|
309
309
|
method: "POST",
|
|
310
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
310
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
311
311
|
contentType: "application/json",
|
|
312
312
|
requestType: "json",
|
|
313
313
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -363,7 +363,7 @@ class VellumClient {
|
|
|
363
363
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
364
364
|
.predict, "v1/execute-workflow-stream"),
|
|
365
365
|
method: "POST",
|
|
366
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
366
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
367
367
|
contentType: "application/json",
|
|
368
368
|
requestType: "json",
|
|
369
369
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -450,7 +450,7 @@ class VellumClient {
|
|
|
450
450
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
451
451
|
.predict, "v1/generate"),
|
|
452
452
|
method: "POST",
|
|
453
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
453
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
454
454
|
contentType: "application/json",
|
|
455
455
|
requestType: "json",
|
|
456
456
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -511,7 +511,7 @@ class VellumClient {
|
|
|
511
511
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
512
512
|
.predict, "v1/generate-stream"),
|
|
513
513
|
method: "POST",
|
|
514
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
514
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
515
515
|
contentType: "application/json",
|
|
516
516
|
requestType: "json",
|
|
517
517
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -592,7 +592,7 @@ class VellumClient {
|
|
|
592
592
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
593
593
|
.predict, "v1/search"),
|
|
594
594
|
method: "POST",
|
|
595
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
595
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
596
596
|
contentType: "application/json",
|
|
597
597
|
requestType: "json",
|
|
598
598
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -660,7 +660,7 @@ class VellumClient {
|
|
|
660
660
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
661
661
|
.predict, "v1/submit-completion-actuals"),
|
|
662
662
|
method: "POST",
|
|
663
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
663
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
664
664
|
contentType: "application/json",
|
|
665
665
|
requestType: "json",
|
|
666
666
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -723,7 +723,7 @@ class VellumClient {
|
|
|
723
723
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
724
724
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
725
725
|
method: "POST",
|
|
726
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
726
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
727
727
|
contentType: "application/json",
|
|
728
728
|
requestType: "json",
|
|
729
729
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -6,42 +6,10 @@ import * as Vellum from "../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* inputs: [{
|
|
9
|
-
* name: "
|
|
9
|
+
* name: "name",
|
|
10
10
|
* type: "STRING",
|
|
11
|
-
* value: "
|
|
12
|
-
* }]
|
|
13
|
-
* promptDeploymentId: "string",
|
|
14
|
-
* promptDeploymentName: "string",
|
|
15
|
-
* releaseTag: "string",
|
|
16
|
-
* externalId: "string",
|
|
17
|
-
* expandMeta: {
|
|
18
|
-
* modelName: true,
|
|
19
|
-
* usage: true,
|
|
20
|
-
* cost: true,
|
|
21
|
-
* finishReason: true,
|
|
22
|
-
* latency: true,
|
|
23
|
-
* deploymentReleaseTag: true,
|
|
24
|
-
* promptVersionId: true
|
|
25
|
-
* },
|
|
26
|
-
* rawOverrides: {
|
|
27
|
-
* body: {
|
|
28
|
-
* "string": {
|
|
29
|
-
* "key": "value"
|
|
30
|
-
* }
|
|
31
|
-
* },
|
|
32
|
-
* headers: {
|
|
33
|
-
* "string": {
|
|
34
|
-
* "key": "value"
|
|
35
|
-
* }
|
|
36
|
-
* },
|
|
37
|
-
* url: "string"
|
|
38
|
-
* },
|
|
39
|
-
* expandRaw: ["string"],
|
|
40
|
-
* metadata: {
|
|
41
|
-
* "string": {
|
|
42
|
-
* "key": "value"
|
|
43
|
-
* }
|
|
44
|
-
* }
|
|
11
|
+
* value: "value"
|
|
12
|
+
* }]
|
|
45
13
|
* }
|
|
46
14
|
*/
|
|
47
15
|
export interface ExecutePromptStreamRequest {
|
|
@@ -6,23 +6,10 @@ import * as Vellum from "../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* inputs: [{
|
|
9
|
-
* name: "
|
|
9
|
+
* name: "name",
|
|
10
10
|
* type: "STRING",
|
|
11
|
-
* value: "
|
|
12
|
-
* }]
|
|
13
|
-
* expandMeta: {
|
|
14
|
-
* usage: true
|
|
15
|
-
* },
|
|
16
|
-
* workflowDeploymentId: "string",
|
|
17
|
-
* workflowDeploymentName: "string",
|
|
18
|
-
* releaseTag: "string",
|
|
19
|
-
* externalId: "string",
|
|
20
|
-
* eventTypes: ["NODE"],
|
|
21
|
-
* metadata: {
|
|
22
|
-
* "string": {
|
|
23
|
-
* "key": "value"
|
|
24
|
-
* }
|
|
25
|
-
* }
|
|
11
|
+
* value: "value"
|
|
12
|
+
* }]
|
|
26
13
|
* }
|
|
27
14
|
*/
|
|
28
15
|
export interface ExecuteWorkflowStreamRequest {
|
|
@@ -5,28 +5,11 @@ import * as Vellum from "../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* deploymentId: "string",
|
|
9
|
-
* deploymentName: "string",
|
|
10
8
|
* requests: [{
|
|
11
9
|
* inputValues: {
|
|
12
|
-
* "
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* },
|
|
16
|
-
* chatHistory: [{
|
|
17
|
-
* text: "string",
|
|
18
|
-
* role: "SYSTEM",
|
|
19
|
-
* content: {
|
|
20
|
-
* type: "STRING",
|
|
21
|
-
* value: "string"
|
|
22
|
-
* },
|
|
23
|
-
* source: "string"
|
|
24
|
-
* }],
|
|
25
|
-
* externalIds: ["string"]
|
|
26
|
-
* }],
|
|
27
|
-
* options: {
|
|
28
|
-
* logprobs: "ALL"
|
|
29
|
-
* }
|
|
10
|
+
* "key": "value"
|
|
11
|
+
* }
|
|
12
|
+
* }]
|
|
30
13
|
* }
|
|
31
14
|
*/
|
|
32
15
|
export interface GenerateStreamBodyRequest {
|
|
@@ -59,7 +59,7 @@ class AdHoc {
|
|
|
59
59
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
60
60
|
.default, "v1/ad-hoc/execute-prompt-stream"),
|
|
61
61
|
method: "POST",
|
|
62
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
62
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
63
63
|
contentType: "application/json",
|
|
64
64
|
requestType: "json",
|
|
65
65
|
body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -5,78 +5,22 @@ import * as Vellum from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* mlModel: "
|
|
8
|
+
* mlModel: "ml_model",
|
|
9
9
|
* inputValues: [{
|
|
10
|
-
* key: "
|
|
10
|
+
* key: "key",
|
|
11
11
|
* type: "STRING",
|
|
12
|
-
* value: "
|
|
12
|
+
* value: "value"
|
|
13
13
|
* }],
|
|
14
14
|
* inputVariables: [{
|
|
15
|
-
* id: "
|
|
16
|
-
* key: "
|
|
17
|
-
* type: "STRING"
|
|
18
|
-
* required: true,
|
|
19
|
-
* default: {
|
|
20
|
-
* type: "STRING",
|
|
21
|
-
* value: "string"
|
|
22
|
-
* },
|
|
23
|
-
* extensions: {
|
|
24
|
-
* color: {
|
|
25
|
-
* "key": "value"
|
|
26
|
-
* }
|
|
27
|
-
* }
|
|
15
|
+
* id: "id",
|
|
16
|
+
* key: "key",
|
|
17
|
+
* type: "STRING"
|
|
28
18
|
* }],
|
|
29
|
-
* parameters: {
|
|
30
|
-
* stop: ["string"],
|
|
31
|
-
* temperature: 1.1,
|
|
32
|
-
* maxTokens: 1,
|
|
33
|
-
* topP: 1.1,
|
|
34
|
-
* topK: 1,
|
|
35
|
-
* frequencyPenalty: 1.1,
|
|
36
|
-
* presencePenalty: 1.1,
|
|
37
|
-
* logitBias: {
|
|
38
|
-
* "string": {
|
|
39
|
-
* "key": "value"
|
|
40
|
-
* }
|
|
41
|
-
* },
|
|
42
|
-
* customParameters: {
|
|
43
|
-
* "string": {
|
|
44
|
-
* "key": "value"
|
|
45
|
-
* }
|
|
46
|
-
* }
|
|
47
|
-
* },
|
|
48
|
-
* settings: {
|
|
49
|
-
* timeout: 1.1
|
|
50
|
-
* },
|
|
19
|
+
* parameters: {},
|
|
51
20
|
* blocks: [{
|
|
52
|
-
* state: "ENABLED",
|
|
53
|
-
* cacheConfig: {
|
|
54
|
-
* type: "EPHEMERAL"
|
|
55
|
-
* },
|
|
56
21
|
* blockType: "JINJA",
|
|
57
|
-
* template: "
|
|
58
|
-
* }]
|
|
59
|
-
* functions: [{
|
|
60
|
-
* state: "ENABLED",
|
|
61
|
-
* cacheConfig: {
|
|
62
|
-
* type: "EPHEMERAL"
|
|
63
|
-
* },
|
|
64
|
-
* name: "string",
|
|
65
|
-
* description: "string",
|
|
66
|
-
* parameters: {
|
|
67
|
-
* "string": {
|
|
68
|
-
* "key": "value"
|
|
69
|
-
* }
|
|
70
|
-
* },
|
|
71
|
-
* forced: true,
|
|
72
|
-
* strict: true
|
|
73
|
-
* }],
|
|
74
|
-
* expandMeta: {
|
|
75
|
-
* cost: true,
|
|
76
|
-
* modelName: true,
|
|
77
|
-
* usage: true,
|
|
78
|
-
* finishReason: true
|
|
79
|
-
* }
|
|
22
|
+
* template: "template"
|
|
23
|
+
* }]
|
|
80
24
|
* }
|
|
81
25
|
*/
|
|
82
26
|
export interface AdHocExecutePromptStream {
|
|
@@ -75,7 +75,7 @@ class ContainerImages {
|
|
|
75
75
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
76
76
|
.default, "v1/container-images"),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
queryParameters: _queryParams,
|
|
81
81
|
requestType: "json",
|
|
@@ -128,7 +128,7 @@ class ContainerImages {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.default, `v1/container-images/${encodeURIComponent(id)}`),
|
|
130
130
|
method: "GET",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -179,7 +179,7 @@ class ContainerImages {
|
|
|
179
179
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
180
180
|
.default, "v1/container-images/docker-service-token"),
|
|
181
181
|
method: "GET",
|
|
182
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -235,7 +235,7 @@ class ContainerImages {
|
|
|
235
235
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
236
236
|
.default, "v1/container-images/push"),
|
|
237
237
|
method: "POST",
|
|
238
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.
|
|
238
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.7", "User-Agent": "vellum-ai/0.10.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
body: serializers.PushContainerImageRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|