vellum-ai 0.8.9 → 0.8.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/.mock/definition/__package__.yml +5659 -0
- package/.mock/definition/adHoc.yml +40 -0
- package/.mock/definition/api.yml +17 -0
- package/.mock/definition/deployments.yml +261 -0
- package/.mock/definition/documentIndexes.yml +429 -0
- package/.mock/definition/documents.yml +261 -0
- package/.mock/definition/folderEntities.yml +41 -0
- package/.mock/definition/sandboxes.yml +194 -0
- package/.mock/definition/testSuiteRuns.yml +148 -0
- package/.mock/definition/testSuites.yml +153 -0
- package/.mock/definition/workflowDeployments.yml +181 -0
- package/.mock/definition/workflowSandboxes.yml +85 -0
- package/.mock/fern.config.json +4 -0
- package/.mock/openapi/openapi.yml +10103 -0
- package/Client.js +9 -9
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +4 -1
- package/api/resources/adHoc/client/Client.js +1 -1
- package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +3 -1
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +10 -10
- package/api/resources/documents/client/Client.js +6 -6
- package/api/resources/folderEntities/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 +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/IterationStateEnum.d.ts +3 -1
- package/api/types/IterationStateEnum.js +1 -0
- package/dist/Client.js +9 -9
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +4 -1
- package/dist/api/resources/adHoc/client/Client.js +1 -1
- package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +3 -1
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +10 -10
- package/dist/api/resources/documents/client/Client.js +6 -6
- package/dist/api/resources/folderEntities/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 +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/types/IterationStateEnum.d.ts +3 -1
- package/dist/api/types/IterationStateEnum.js +1 -0
- package/dist/environments.d.ts +2 -2
- package/dist/environments.js +1 -1
- package/dist/serialization/types/IterationStateEnum.d.ts +1 -1
- package/dist/serialization/types/IterationStateEnum.js +1 -1
- package/environments.d.ts +2 -2
- package/environments.js +1 -1
- package/package.json +1 -1
- package/reference.md +17 -3
- package/serialization/types/IterationStateEnum.d.ts +1 -1
- package/serialization/types/IterationStateEnum.js +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
adhoc_execute_prompt_stream:
|
|
8
|
+
path: /v1/ad-hoc/execute-prompt-stream
|
|
9
|
+
method: POST
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >-
|
|
12
|
+
An internal-only endpoint that's subject to breaking changes without
|
|
13
|
+
notice. Not intended for public use.
|
|
14
|
+
request:
|
|
15
|
+
name: AdHocExecutePromptStreamRequest
|
|
16
|
+
body:
|
|
17
|
+
properties:
|
|
18
|
+
ml_model:
|
|
19
|
+
type: string
|
|
20
|
+
validation:
|
|
21
|
+
minLength: 1
|
|
22
|
+
input_values: list<root.PromptRequestInputRequest>
|
|
23
|
+
input_variables: list<root.VellumVariableRequest>
|
|
24
|
+
parameters: root.PromptParametersRequest
|
|
25
|
+
blocks: list<root.PromptBlockRequest>
|
|
26
|
+
expand_meta: optional<root.AdHocExpandMetaRequest>
|
|
27
|
+
response-stream:
|
|
28
|
+
docs: ''
|
|
29
|
+
type: root.AdHocExecutePromptEvent
|
|
30
|
+
format: json
|
|
31
|
+
url: Default
|
|
32
|
+
availability: pre-release
|
|
33
|
+
errors:
|
|
34
|
+
- root.BadRequestError
|
|
35
|
+
- root.ForbiddenError
|
|
36
|
+
- root.InternalServerError
|
|
37
|
+
audiences:
|
|
38
|
+
- internal
|
|
39
|
+
source:
|
|
40
|
+
openapi: openapi/openapi.yml
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: api
|
|
2
|
+
error-discrimination:
|
|
3
|
+
strategy: status-code
|
|
4
|
+
display-name: Vellum Client API
|
|
5
|
+
environments:
|
|
6
|
+
Production:
|
|
7
|
+
urls:
|
|
8
|
+
Default: https://api.vellum.ai
|
|
9
|
+
Documents: https://documents.vellum.ai
|
|
10
|
+
Predict: https://predict.vellum.ai
|
|
11
|
+
default-environment: Production
|
|
12
|
+
auth-schemes:
|
|
13
|
+
apiKeyAuth:
|
|
14
|
+
header: X_API_KEY
|
|
15
|
+
name: apiKey
|
|
16
|
+
type: string
|
|
17
|
+
auth: apiKeyAuth
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
types:
|
|
2
|
+
DeploymentsListRequestStatus:
|
|
3
|
+
enum:
|
|
4
|
+
- ACTIVE
|
|
5
|
+
- ARCHIVED
|
|
6
|
+
source:
|
|
7
|
+
openapi: openapi/openapi.yml
|
|
8
|
+
imports:
|
|
9
|
+
root: __package__.yml
|
|
10
|
+
service:
|
|
11
|
+
auth: false
|
|
12
|
+
base-path: ''
|
|
13
|
+
endpoints:
|
|
14
|
+
list:
|
|
15
|
+
path: /v1/deployments
|
|
16
|
+
method: GET
|
|
17
|
+
auth: true
|
|
18
|
+
docs: Used to list all Prompt Deployments.
|
|
19
|
+
request:
|
|
20
|
+
name: DeploymentsListRequest
|
|
21
|
+
query-parameters:
|
|
22
|
+
limit:
|
|
23
|
+
type: optional<integer>
|
|
24
|
+
docs: Number of results to return per page.
|
|
25
|
+
offset:
|
|
26
|
+
type: optional<integer>
|
|
27
|
+
docs: The initial index from which to return the results.
|
|
28
|
+
ordering:
|
|
29
|
+
type: optional<string>
|
|
30
|
+
docs: Which field to use when ordering the results.
|
|
31
|
+
status:
|
|
32
|
+
type: optional<DeploymentsListRequestStatus>
|
|
33
|
+
docs: status
|
|
34
|
+
response:
|
|
35
|
+
docs: ''
|
|
36
|
+
type: root.PaginatedSlimDeploymentReadList
|
|
37
|
+
url: Default
|
|
38
|
+
availability: pre-release
|
|
39
|
+
examples:
|
|
40
|
+
- response:
|
|
41
|
+
body:
|
|
42
|
+
count: 123
|
|
43
|
+
next: http://api.example.org/accounts/?offset=400&limit=100
|
|
44
|
+
previous: http://api.example.org/accounts/?offset=200&limit=100
|
|
45
|
+
results:
|
|
46
|
+
- id: id
|
|
47
|
+
created: '2024-01-15T09:30:00Z'
|
|
48
|
+
label: label
|
|
49
|
+
name: name
|
|
50
|
+
status: ACTIVE
|
|
51
|
+
environment: DEVELOPMENT
|
|
52
|
+
last_deployed_on: '2024-01-15T09:30:00Z'
|
|
53
|
+
input_variables:
|
|
54
|
+
- id: id
|
|
55
|
+
key: key
|
|
56
|
+
type: STRING
|
|
57
|
+
description: description
|
|
58
|
+
audiences:
|
|
59
|
+
- customers
|
|
60
|
+
retrieve:
|
|
61
|
+
path: /v1/deployments/{id}
|
|
62
|
+
method: GET
|
|
63
|
+
auth: true
|
|
64
|
+
docs: Used to retrieve a Prompt Deployment given its ID or name.
|
|
65
|
+
path-parameters:
|
|
66
|
+
id:
|
|
67
|
+
type: string
|
|
68
|
+
docs: Either the Deployment's ID or its unique name
|
|
69
|
+
response:
|
|
70
|
+
docs: ''
|
|
71
|
+
type: root.DeploymentRead
|
|
72
|
+
url: Default
|
|
73
|
+
availability: pre-release
|
|
74
|
+
examples:
|
|
75
|
+
- path-parameters:
|
|
76
|
+
id: id
|
|
77
|
+
response:
|
|
78
|
+
body:
|
|
79
|
+
id: id
|
|
80
|
+
created: '2024-01-15T09:30:00Z'
|
|
81
|
+
label: label
|
|
82
|
+
name: name
|
|
83
|
+
status: ACTIVE
|
|
84
|
+
environment: DEVELOPMENT
|
|
85
|
+
last_deployed_on: '2024-01-15T09:30:00Z'
|
|
86
|
+
input_variables:
|
|
87
|
+
- id: id
|
|
88
|
+
key: key
|
|
89
|
+
type: STRING
|
|
90
|
+
description: description
|
|
91
|
+
active_model_version_ids:
|
|
92
|
+
- active_model_version_ids
|
|
93
|
+
last_deployed_history_item_id: last_deployed_history_item_id
|
|
94
|
+
audiences:
|
|
95
|
+
- customers
|
|
96
|
+
retrieve_deployment_release_tag:
|
|
97
|
+
path: /v1/deployments/{id}/release-tags/{name}
|
|
98
|
+
method: GET
|
|
99
|
+
auth: true
|
|
100
|
+
docs: >-
|
|
101
|
+
Retrieve a Deployment Release Tag by tag name, associated with a
|
|
102
|
+
specified Deployment.
|
|
103
|
+
path-parameters:
|
|
104
|
+
id:
|
|
105
|
+
type: string
|
|
106
|
+
docs: A UUID string identifying this deployment.
|
|
107
|
+
name:
|
|
108
|
+
type: string
|
|
109
|
+
docs: >-
|
|
110
|
+
The name of the Release Tag associated with this Deployment that
|
|
111
|
+
you'd like to retrieve.
|
|
112
|
+
response:
|
|
113
|
+
docs: ''
|
|
114
|
+
type: root.DeploymentReleaseTagRead
|
|
115
|
+
url: Default
|
|
116
|
+
availability: pre-release
|
|
117
|
+
examples:
|
|
118
|
+
- path-parameters:
|
|
119
|
+
id: id
|
|
120
|
+
name: name
|
|
121
|
+
response:
|
|
122
|
+
body:
|
|
123
|
+
name: name
|
|
124
|
+
source: SYSTEM
|
|
125
|
+
history_item:
|
|
126
|
+
id: id
|
|
127
|
+
timestamp: '2024-01-15T09:30:00Z'
|
|
128
|
+
audiences:
|
|
129
|
+
- customers
|
|
130
|
+
update_deployment_release_tag:
|
|
131
|
+
path: /v1/deployments/{id}/release-tags/{name}
|
|
132
|
+
method: PATCH
|
|
133
|
+
auth: true
|
|
134
|
+
docs: >-
|
|
135
|
+
Updates an existing Release Tag associated with the specified
|
|
136
|
+
Deployment.
|
|
137
|
+
path-parameters:
|
|
138
|
+
id:
|
|
139
|
+
type: string
|
|
140
|
+
docs: A UUID string identifying this deployment.
|
|
141
|
+
name:
|
|
142
|
+
type: string
|
|
143
|
+
docs: >-
|
|
144
|
+
The name of the Release Tag associated with this Deployment that
|
|
145
|
+
you'd like to update.
|
|
146
|
+
request:
|
|
147
|
+
name: PatchedDeploymentReleaseTagUpdateRequest
|
|
148
|
+
body:
|
|
149
|
+
properties:
|
|
150
|
+
history_item_id:
|
|
151
|
+
type: optional<string>
|
|
152
|
+
docs: The ID of the Deployment History Item to tag
|
|
153
|
+
validation:
|
|
154
|
+
format: uuid
|
|
155
|
+
response:
|
|
156
|
+
docs: ''
|
|
157
|
+
type: root.DeploymentReleaseTagRead
|
|
158
|
+
url: Default
|
|
159
|
+
availability: pre-release
|
|
160
|
+
examples:
|
|
161
|
+
- path-parameters:
|
|
162
|
+
id: id
|
|
163
|
+
name: name
|
|
164
|
+
request: {}
|
|
165
|
+
response:
|
|
166
|
+
body:
|
|
167
|
+
name: name
|
|
168
|
+
source: SYSTEM
|
|
169
|
+
history_item:
|
|
170
|
+
id: id
|
|
171
|
+
timestamp: '2024-01-15T09:30:00Z'
|
|
172
|
+
audiences:
|
|
173
|
+
- customers
|
|
174
|
+
retrieve_provider_payload:
|
|
175
|
+
path: /v1/deployments/provider-payload
|
|
176
|
+
method: POST
|
|
177
|
+
auth: true
|
|
178
|
+
docs: >
|
|
179
|
+
Given a set of input variable values, compile the exact payload that
|
|
180
|
+
Vellum would send to the configured model provider
|
|
181
|
+
|
|
182
|
+
for execution if the execute-prompt endpoint had been invoked. Note that
|
|
183
|
+
this endpoint does not actually execute the
|
|
184
|
+
|
|
185
|
+
prompt or make an API call to the model provider.
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
This endpoint is useful if you don't want to proxy LLM provider requests
|
|
189
|
+
through Vellum and prefer to send them directly
|
|
190
|
+
|
|
191
|
+
to the provider yourself. Note that no guarantees are made on the format
|
|
192
|
+
of this API's response schema, other than
|
|
193
|
+
|
|
194
|
+
that it will be a valid payload for the configured model provider. It's
|
|
195
|
+
not recommended that you try to parse or
|
|
196
|
+
|
|
197
|
+
derive meaning from the response body and instead, should simply pass it
|
|
198
|
+
directly to the model provider as is.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
We encourage you to seek advise from Vellum Support before integrating
|
|
202
|
+
with this API for production use.
|
|
203
|
+
request:
|
|
204
|
+
name: DeploymentProviderPayloadRequest
|
|
205
|
+
body:
|
|
206
|
+
properties:
|
|
207
|
+
deployment_id:
|
|
208
|
+
type: optional<string>
|
|
209
|
+
docs: >-
|
|
210
|
+
The ID of the deployment. Must provide either this or
|
|
211
|
+
deployment_name.
|
|
212
|
+
validation:
|
|
213
|
+
format: uuid
|
|
214
|
+
deployment_name:
|
|
215
|
+
type: optional<string>
|
|
216
|
+
docs: >-
|
|
217
|
+
The name of the deployment. Must provide either this or
|
|
218
|
+
deployment_id.
|
|
219
|
+
validation:
|
|
220
|
+
minLength: 1
|
|
221
|
+
inputs:
|
|
222
|
+
docs: >-
|
|
223
|
+
The list of inputs defined in the Prompt's deployment with their
|
|
224
|
+
corresponding values.
|
|
225
|
+
type: list<root.PromptDeploymentInputRequest>
|
|
226
|
+
release_tag:
|
|
227
|
+
type: optional<string>
|
|
228
|
+
docs: >-
|
|
229
|
+
Optionally specify a release tag if you want to pin to a
|
|
230
|
+
specific release of the Workflow Deployment
|
|
231
|
+
validation:
|
|
232
|
+
minLength: 1
|
|
233
|
+
expand_meta: optional<root.CompilePromptDeploymentExpandMetaRequest>
|
|
234
|
+
response:
|
|
235
|
+
docs: ''
|
|
236
|
+
type: root.DeploymentProviderPayloadResponse
|
|
237
|
+
url: Default
|
|
238
|
+
availability: pre-release
|
|
239
|
+
errors:
|
|
240
|
+
- root.BadRequestError
|
|
241
|
+
- root.ForbiddenError
|
|
242
|
+
- root.NotFoundError
|
|
243
|
+
- root.InternalServerError
|
|
244
|
+
examples:
|
|
245
|
+
- request:
|
|
246
|
+
inputs:
|
|
247
|
+
- name: name
|
|
248
|
+
type: STRING
|
|
249
|
+
value: value
|
|
250
|
+
response:
|
|
251
|
+
body:
|
|
252
|
+
payload:
|
|
253
|
+
key: value
|
|
254
|
+
meta:
|
|
255
|
+
model_name: model_name
|
|
256
|
+
deployment_release_tag: deployment_release_tag
|
|
257
|
+
prompt_version_id: prompt_version_id
|
|
258
|
+
audiences:
|
|
259
|
+
- customers
|
|
260
|
+
source:
|
|
261
|
+
openapi: openapi/openapi.yml
|