vellum-ai 0.8.30__py3-none-any.whl → 0.9.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/__init__.py +8 -4
- vellum/client.py +4 -0
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/__init__.py +2 -0
- vellum/resources/container_images/__init__.py +2 -0
- vellum/resources/container_images/client.py +405 -0
- vellum/types/__init__.py +6 -4
- vellum/types/array_input_request.py +2 -2
- vellum/types/array_vellum_value.py +2 -2
- vellum/types/array_vellum_value_request.py +2 -2
- vellum/types/code_execution_node_array_result.py +2 -2
- vellum/types/container_image_read.py +28 -0
- vellum/types/entity_visibility.py +5 -0
- vellum/types/execution_array_vellum_value.py +2 -2
- vellum/types/named_test_case_array_variable_value.py +2 -2
- vellum/types/named_test_case_array_variable_value_request.py +2 -2
- vellum/types/node_input_compiled_array_value.py +2 -2
- vellum/types/node_output_compiled_array_value.py +2 -2
- vellum/types/paginated_container_image_read_list.py +23 -0
- vellum/types/templating_node_array_result.py +2 -2
- vellum/types/terminal_node_array_result.py +2 -2
- vellum/types/test_case_array_variable_value.py +2 -2
- vellum/types/test_suite_run_execution_array_output.py +2 -2
- vellum/types/vellum_value.py +5 -2
- vellum/types/vellum_value_request.py +5 -2
- vellum/types/vellum_variable_type.py +11 -1
- vellum/types/workflow_output_array.py +2 -2
- {vellum_ai-0.8.30.dist-info → vellum_ai-0.9.1.dist-info}/METADATA +1 -1
- {vellum_ai-0.8.30.dist-info → vellum_ai-0.9.1.dist-info}/RECORD +31 -28
- vellum/types/array_vellum_value_item.py +0 -27
- vellum/types/array_vellum_value_item_request.py +0 -27
- {vellum_ai-0.8.30.dist-info → vellum_ai-0.9.1.dist-info}/LICENSE +0 -0
- {vellum_ai-0.8.30.dist-info → vellum_ai-0.9.1.dist-info}/WHEEL +0 -0
vellum/__init__.py
CHANGED
@@ -18,8 +18,6 @@ from .types import (
|
|
18
18
|
ArrayVariableValue,
|
19
19
|
ArrayVariableValueItem,
|
20
20
|
ArrayVellumValue,
|
21
|
-
ArrayVellumValueItem,
|
22
|
-
ArrayVellumValueItemRequest,
|
23
21
|
ArrayVellumValueRequest,
|
24
22
|
BasicVectorizerIntfloatMultilingualE5Large,
|
25
23
|
BasicVectorizerIntfloatMultilingualE5LargeRequest,
|
@@ -61,6 +59,7 @@ from .types import (
|
|
61
59
|
ConditionCombinator,
|
62
60
|
ConditionalNodeResult,
|
63
61
|
ConditionalNodeResultData,
|
62
|
+
ContainerImageRead,
|
64
63
|
CreateTestSuiteTestCaseRequest,
|
65
64
|
DeploymentProviderPayloadResponse,
|
66
65
|
DeploymentProviderPayloadResponsePayload,
|
@@ -77,6 +76,7 @@ from .types import (
|
|
77
76
|
DocumentStatus,
|
78
77
|
EnrichedNormalizedCompletion,
|
79
78
|
EntityStatus,
|
79
|
+
EntityVisibility,
|
80
80
|
EnvironmentEnum,
|
81
81
|
EphemeralPromptCacheConfigRequest,
|
82
82
|
EphemeralPromptCacheConfigTypeEnum,
|
@@ -236,6 +236,7 @@ from .types import (
|
|
236
236
|
OpenAiVectorizerTextEmbedding3SmallRequest,
|
237
237
|
OpenAiVectorizerTextEmbeddingAda002,
|
238
238
|
OpenAiVectorizerTextEmbeddingAda002Request,
|
239
|
+
PaginatedContainerImageReadList,
|
239
240
|
PaginatedDocumentIndexReadList,
|
240
241
|
PaginatedFolderEntityList,
|
241
242
|
PaginatedSlimDeploymentReadList,
|
@@ -478,6 +479,7 @@ from .resources import (
|
|
478
479
|
FolderEntitiesListRequestEntityStatus,
|
479
480
|
WorkflowDeploymentsListRequestStatus,
|
480
481
|
ad_hoc,
|
482
|
+
container_images,
|
481
483
|
deployments,
|
482
484
|
document_indexes,
|
483
485
|
documents,
|
@@ -513,8 +515,6 @@ __all__ = [
|
|
513
515
|
"ArrayVariableValue",
|
514
516
|
"ArrayVariableValueItem",
|
515
517
|
"ArrayVellumValue",
|
516
|
-
"ArrayVellumValueItem",
|
517
|
-
"ArrayVellumValueItemRequest",
|
518
518
|
"ArrayVellumValueRequest",
|
519
519
|
"AsyncVellum",
|
520
520
|
"BadRequestError",
|
@@ -558,6 +558,7 @@ __all__ = [
|
|
558
558
|
"ConditionCombinator",
|
559
559
|
"ConditionalNodeResult",
|
560
560
|
"ConditionalNodeResultData",
|
561
|
+
"ContainerImageRead",
|
561
562
|
"CreateTestSuiteTestCaseRequest",
|
562
563
|
"DeploymentProviderPayloadResponse",
|
563
564
|
"DeploymentProviderPayloadResponsePayload",
|
@@ -576,6 +577,7 @@ __all__ = [
|
|
576
577
|
"DocumentStatus",
|
577
578
|
"EnrichedNormalizedCompletion",
|
578
579
|
"EntityStatus",
|
580
|
+
"EntityVisibility",
|
579
581
|
"EnvironmentEnum",
|
580
582
|
"EphemeralPromptCacheConfigRequest",
|
581
583
|
"EphemeralPromptCacheConfigTypeEnum",
|
@@ -739,6 +741,7 @@ __all__ = [
|
|
739
741
|
"OpenAiVectorizerTextEmbedding3SmallRequest",
|
740
742
|
"OpenAiVectorizerTextEmbeddingAda002",
|
741
743
|
"OpenAiVectorizerTextEmbeddingAda002Request",
|
744
|
+
"PaginatedContainerImageReadList",
|
742
745
|
"PaginatedDocumentIndexReadList",
|
743
746
|
"PaginatedFolderEntityList",
|
744
747
|
"PaginatedSlimDeploymentReadList",
|
@@ -978,6 +981,7 @@ __all__ = [
|
|
978
981
|
"WorkspaceSecretRead",
|
979
982
|
"__version__",
|
980
983
|
"ad_hoc",
|
984
|
+
"container_images",
|
981
985
|
"deployments",
|
982
986
|
"document_indexes",
|
983
987
|
"documents",
|
vellum/client.py
CHANGED
@@ -5,6 +5,7 @@ from .environment import VellumEnvironment
|
|
5
5
|
import httpx
|
6
6
|
from .core.client_wrapper import SyncClientWrapper
|
7
7
|
from .resources.ad_hoc.client import AdHocClient
|
8
|
+
from .resources.container_images.client import ContainerImagesClient
|
8
9
|
from .resources.deployments.client import DeploymentsClient
|
9
10
|
from .resources.document_indexes.client import DocumentIndexesClient
|
10
11
|
from .resources.documents.client import DocumentsClient
|
@@ -52,6 +53,7 @@ from .types.submit_completion_actual_request import SubmitCompletionActualReques
|
|
52
53
|
from .types.submit_workflow_execution_actual_request import SubmitWorkflowExecutionActualRequest
|
53
54
|
from .core.client_wrapper import AsyncClientWrapper
|
54
55
|
from .resources.ad_hoc.client import AsyncAdHocClient
|
56
|
+
from .resources.container_images.client import AsyncContainerImagesClient
|
55
57
|
from .resources.deployments.client import AsyncDeploymentsClient
|
56
58
|
from .resources.document_indexes.client import AsyncDocumentIndexesClient
|
57
59
|
from .resources.documents.client import AsyncDocumentsClient
|
@@ -124,6 +126,7 @@ class Vellum:
|
|
124
126
|
timeout=_defaulted_timeout,
|
125
127
|
)
|
126
128
|
self.ad_hoc = AdHocClient(client_wrapper=self._client_wrapper)
|
129
|
+
self.container_images = ContainerImagesClient(client_wrapper=self._client_wrapper)
|
127
130
|
self.deployments = DeploymentsClient(client_wrapper=self._client_wrapper)
|
128
131
|
self.document_indexes = DocumentIndexesClient(client_wrapper=self._client_wrapper)
|
129
132
|
self.documents = DocumentsClient(client_wrapper=self._client_wrapper)
|
@@ -1442,6 +1445,7 @@ class AsyncVellum:
|
|
1442
1445
|
timeout=_defaulted_timeout,
|
1443
1446
|
)
|
1444
1447
|
self.ad_hoc = AsyncAdHocClient(client_wrapper=self._client_wrapper)
|
1448
|
+
self.container_images = AsyncContainerImagesClient(client_wrapper=self._client_wrapper)
|
1445
1449
|
self.deployments = AsyncDeploymentsClient(client_wrapper=self._client_wrapper)
|
1446
1450
|
self.document_indexes = AsyncDocumentIndexesClient(client_wrapper=self._client_wrapper)
|
1447
1451
|
self.documents = AsyncDocumentsClient(client_wrapper=self._client_wrapper)
|
vellum/core/client_wrapper.py
CHANGED
@@ -17,7 +17,7 @@ class BaseClientWrapper:
|
|
17
17
|
headers: typing.Dict[str, str] = {
|
18
18
|
"X-Fern-Language": "Python",
|
19
19
|
"X-Fern-SDK-Name": "vellum-ai",
|
20
|
-
"X-Fern-SDK-Version": "
|
20
|
+
"X-Fern-SDK-Version": "v0.9.1",
|
21
21
|
}
|
22
22
|
headers["X_API_KEY"] = self.api_key
|
23
23
|
return headers
|
vellum/resources/__init__.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
from . import (
|
4
4
|
ad_hoc,
|
5
|
+
container_images,
|
5
6
|
deployments,
|
6
7
|
document_indexes,
|
7
8
|
documents,
|
@@ -26,6 +27,7 @@ __all__ = [
|
|
26
27
|
"FolderEntitiesListRequestEntityStatus",
|
27
28
|
"WorkflowDeploymentsListRequestStatus",
|
28
29
|
"ad_hoc",
|
30
|
+
"container_images",
|
29
31
|
"deployments",
|
30
32
|
"document_indexes",
|
31
33
|
"documents",
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
from ...core.client_wrapper import SyncClientWrapper
|
5
|
+
from ...core.request_options import RequestOptions
|
6
|
+
from ...types.paginated_container_image_read_list import PaginatedContainerImageReadList
|
7
|
+
from ...core.pydantic_utilities import parse_obj_as
|
8
|
+
from json.decoder import JSONDecodeError
|
9
|
+
from ...core.api_error import ApiError
|
10
|
+
from ...types.container_image_read import ContainerImageRead
|
11
|
+
from ...core.jsonable_encoder import jsonable_encoder
|
12
|
+
from ...core.client_wrapper import AsyncClientWrapper
|
13
|
+
|
14
|
+
# this is used as the default value for optional parameters
|
15
|
+
OMIT = typing.cast(typing.Any, ...)
|
16
|
+
|
17
|
+
|
18
|
+
class ContainerImagesClient:
|
19
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
20
|
+
self._client_wrapper = client_wrapper
|
21
|
+
|
22
|
+
def list(
|
23
|
+
self,
|
24
|
+
*,
|
25
|
+
limit: typing.Optional[int] = None,
|
26
|
+
offset: typing.Optional[int] = None,
|
27
|
+
ordering: typing.Optional[str] = None,
|
28
|
+
request_options: typing.Optional[RequestOptions] = None,
|
29
|
+
) -> PaginatedContainerImageReadList:
|
30
|
+
"""
|
31
|
+
Retrieve a list of container images for the organization.
|
32
|
+
|
33
|
+
Parameters
|
34
|
+
----------
|
35
|
+
limit : typing.Optional[int]
|
36
|
+
Number of results to return per page.
|
37
|
+
|
38
|
+
offset : typing.Optional[int]
|
39
|
+
The initial index from which to return the results.
|
40
|
+
|
41
|
+
ordering : typing.Optional[str]
|
42
|
+
Which field to use when ordering the results.
|
43
|
+
|
44
|
+
request_options : typing.Optional[RequestOptions]
|
45
|
+
Request-specific configuration.
|
46
|
+
|
47
|
+
Returns
|
48
|
+
-------
|
49
|
+
PaginatedContainerImageReadList
|
50
|
+
|
51
|
+
|
52
|
+
Examples
|
53
|
+
--------
|
54
|
+
from vellum import Vellum
|
55
|
+
|
56
|
+
client = Vellum(
|
57
|
+
api_key="YOUR_API_KEY",
|
58
|
+
)
|
59
|
+
client.container_images.list()
|
60
|
+
"""
|
61
|
+
_response = self._client_wrapper.httpx_client.request(
|
62
|
+
"v1/container-images",
|
63
|
+
base_url=self._client_wrapper.get_environment().default,
|
64
|
+
method="GET",
|
65
|
+
params={
|
66
|
+
"limit": limit,
|
67
|
+
"offset": offset,
|
68
|
+
"ordering": ordering,
|
69
|
+
},
|
70
|
+
request_options=request_options,
|
71
|
+
)
|
72
|
+
try:
|
73
|
+
if 200 <= _response.status_code < 300:
|
74
|
+
return typing.cast(
|
75
|
+
PaginatedContainerImageReadList,
|
76
|
+
parse_obj_as(
|
77
|
+
type_=PaginatedContainerImageReadList, # type: ignore
|
78
|
+
object_=_response.json(),
|
79
|
+
),
|
80
|
+
)
|
81
|
+
_response_json = _response.json()
|
82
|
+
except JSONDecodeError:
|
83
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
84
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
85
|
+
|
86
|
+
def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ContainerImageRead:
|
87
|
+
"""
|
88
|
+
Retrieve a Container Image by its ID or name.
|
89
|
+
|
90
|
+
Parameters
|
91
|
+
----------
|
92
|
+
id : str
|
93
|
+
Either the Container Image's ID or its unique name
|
94
|
+
|
95
|
+
request_options : typing.Optional[RequestOptions]
|
96
|
+
Request-specific configuration.
|
97
|
+
|
98
|
+
Returns
|
99
|
+
-------
|
100
|
+
ContainerImageRead
|
101
|
+
|
102
|
+
|
103
|
+
Examples
|
104
|
+
--------
|
105
|
+
from vellum import Vellum
|
106
|
+
|
107
|
+
client = Vellum(
|
108
|
+
api_key="YOUR_API_KEY",
|
109
|
+
)
|
110
|
+
client.container_images.retrieve(
|
111
|
+
id="id",
|
112
|
+
)
|
113
|
+
"""
|
114
|
+
_response = self._client_wrapper.httpx_client.request(
|
115
|
+
f"v1/container-images/{jsonable_encoder(id)}",
|
116
|
+
base_url=self._client_wrapper.get_environment().default,
|
117
|
+
method="GET",
|
118
|
+
request_options=request_options,
|
119
|
+
)
|
120
|
+
try:
|
121
|
+
if 200 <= _response.status_code < 300:
|
122
|
+
return typing.cast(
|
123
|
+
ContainerImageRead,
|
124
|
+
parse_obj_as(
|
125
|
+
type_=ContainerImageRead, # type: ignore
|
126
|
+
object_=_response.json(),
|
127
|
+
),
|
128
|
+
)
|
129
|
+
_response_json = _response.json()
|
130
|
+
except JSONDecodeError:
|
131
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
132
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
133
|
+
|
134
|
+
def push_container_image(
|
135
|
+
self,
|
136
|
+
*,
|
137
|
+
name: str,
|
138
|
+
sha: str,
|
139
|
+
tags: typing.Sequence[str],
|
140
|
+
request_options: typing.Optional[RequestOptions] = None,
|
141
|
+
) -> ContainerImageRead:
|
142
|
+
"""
|
143
|
+
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
144
|
+
|
145
|
+
Parameters
|
146
|
+
----------
|
147
|
+
name : str
|
148
|
+
|
149
|
+
sha : str
|
150
|
+
|
151
|
+
tags : typing.Sequence[str]
|
152
|
+
|
153
|
+
request_options : typing.Optional[RequestOptions]
|
154
|
+
Request-specific configuration.
|
155
|
+
|
156
|
+
Returns
|
157
|
+
-------
|
158
|
+
ContainerImageRead
|
159
|
+
|
160
|
+
|
161
|
+
Examples
|
162
|
+
--------
|
163
|
+
from vellum import Vellum
|
164
|
+
|
165
|
+
client = Vellum(
|
166
|
+
api_key="YOUR_API_KEY",
|
167
|
+
)
|
168
|
+
client.container_images.push_container_image(
|
169
|
+
name="name",
|
170
|
+
sha="sha",
|
171
|
+
tags=["tags"],
|
172
|
+
)
|
173
|
+
"""
|
174
|
+
_response = self._client_wrapper.httpx_client.request(
|
175
|
+
"v1/container-images/push",
|
176
|
+
base_url=self._client_wrapper.get_environment().default,
|
177
|
+
method="POST",
|
178
|
+
json={
|
179
|
+
"name": name,
|
180
|
+
"sha": sha,
|
181
|
+
"tags": tags,
|
182
|
+
},
|
183
|
+
request_options=request_options,
|
184
|
+
omit=OMIT,
|
185
|
+
)
|
186
|
+
try:
|
187
|
+
if 200 <= _response.status_code < 300:
|
188
|
+
return typing.cast(
|
189
|
+
ContainerImageRead,
|
190
|
+
parse_obj_as(
|
191
|
+
type_=ContainerImageRead, # type: ignore
|
192
|
+
object_=_response.json(),
|
193
|
+
),
|
194
|
+
)
|
195
|
+
_response_json = _response.json()
|
196
|
+
except JSONDecodeError:
|
197
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
198
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
199
|
+
|
200
|
+
|
201
|
+
class AsyncContainerImagesClient:
|
202
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
203
|
+
self._client_wrapper = client_wrapper
|
204
|
+
|
205
|
+
async def list(
|
206
|
+
self,
|
207
|
+
*,
|
208
|
+
limit: typing.Optional[int] = None,
|
209
|
+
offset: typing.Optional[int] = None,
|
210
|
+
ordering: typing.Optional[str] = None,
|
211
|
+
request_options: typing.Optional[RequestOptions] = None,
|
212
|
+
) -> PaginatedContainerImageReadList:
|
213
|
+
"""
|
214
|
+
Retrieve a list of container images for the organization.
|
215
|
+
|
216
|
+
Parameters
|
217
|
+
----------
|
218
|
+
limit : typing.Optional[int]
|
219
|
+
Number of results to return per page.
|
220
|
+
|
221
|
+
offset : typing.Optional[int]
|
222
|
+
The initial index from which to return the results.
|
223
|
+
|
224
|
+
ordering : typing.Optional[str]
|
225
|
+
Which field to use when ordering the results.
|
226
|
+
|
227
|
+
request_options : typing.Optional[RequestOptions]
|
228
|
+
Request-specific configuration.
|
229
|
+
|
230
|
+
Returns
|
231
|
+
-------
|
232
|
+
PaginatedContainerImageReadList
|
233
|
+
|
234
|
+
|
235
|
+
Examples
|
236
|
+
--------
|
237
|
+
import asyncio
|
238
|
+
|
239
|
+
from vellum import AsyncVellum
|
240
|
+
|
241
|
+
client = AsyncVellum(
|
242
|
+
api_key="YOUR_API_KEY",
|
243
|
+
)
|
244
|
+
|
245
|
+
|
246
|
+
async def main() -> None:
|
247
|
+
await client.container_images.list()
|
248
|
+
|
249
|
+
|
250
|
+
asyncio.run(main())
|
251
|
+
"""
|
252
|
+
_response = await self._client_wrapper.httpx_client.request(
|
253
|
+
"v1/container-images",
|
254
|
+
base_url=self._client_wrapper.get_environment().default,
|
255
|
+
method="GET",
|
256
|
+
params={
|
257
|
+
"limit": limit,
|
258
|
+
"offset": offset,
|
259
|
+
"ordering": ordering,
|
260
|
+
},
|
261
|
+
request_options=request_options,
|
262
|
+
)
|
263
|
+
try:
|
264
|
+
if 200 <= _response.status_code < 300:
|
265
|
+
return typing.cast(
|
266
|
+
PaginatedContainerImageReadList,
|
267
|
+
parse_obj_as(
|
268
|
+
type_=PaginatedContainerImageReadList, # type: ignore
|
269
|
+
object_=_response.json(),
|
270
|
+
),
|
271
|
+
)
|
272
|
+
_response_json = _response.json()
|
273
|
+
except JSONDecodeError:
|
274
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
275
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
276
|
+
|
277
|
+
async def retrieve(self, id: str, *, request_options: typing.Optional[RequestOptions] = None) -> ContainerImageRead:
|
278
|
+
"""
|
279
|
+
Retrieve a Container Image by its ID or name.
|
280
|
+
|
281
|
+
Parameters
|
282
|
+
----------
|
283
|
+
id : str
|
284
|
+
Either the Container Image's ID or its unique name
|
285
|
+
|
286
|
+
request_options : typing.Optional[RequestOptions]
|
287
|
+
Request-specific configuration.
|
288
|
+
|
289
|
+
Returns
|
290
|
+
-------
|
291
|
+
ContainerImageRead
|
292
|
+
|
293
|
+
|
294
|
+
Examples
|
295
|
+
--------
|
296
|
+
import asyncio
|
297
|
+
|
298
|
+
from vellum import AsyncVellum
|
299
|
+
|
300
|
+
client = AsyncVellum(
|
301
|
+
api_key="YOUR_API_KEY",
|
302
|
+
)
|
303
|
+
|
304
|
+
|
305
|
+
async def main() -> None:
|
306
|
+
await client.container_images.retrieve(
|
307
|
+
id="id",
|
308
|
+
)
|
309
|
+
|
310
|
+
|
311
|
+
asyncio.run(main())
|
312
|
+
"""
|
313
|
+
_response = await self._client_wrapper.httpx_client.request(
|
314
|
+
f"v1/container-images/{jsonable_encoder(id)}",
|
315
|
+
base_url=self._client_wrapper.get_environment().default,
|
316
|
+
method="GET",
|
317
|
+
request_options=request_options,
|
318
|
+
)
|
319
|
+
try:
|
320
|
+
if 200 <= _response.status_code < 300:
|
321
|
+
return typing.cast(
|
322
|
+
ContainerImageRead,
|
323
|
+
parse_obj_as(
|
324
|
+
type_=ContainerImageRead, # type: ignore
|
325
|
+
object_=_response.json(),
|
326
|
+
),
|
327
|
+
)
|
328
|
+
_response_json = _response.json()
|
329
|
+
except JSONDecodeError:
|
330
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
331
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
332
|
+
|
333
|
+
async def push_container_image(
|
334
|
+
self,
|
335
|
+
*,
|
336
|
+
name: str,
|
337
|
+
sha: str,
|
338
|
+
tags: typing.Sequence[str],
|
339
|
+
request_options: typing.Optional[RequestOptions] = None,
|
340
|
+
) -> ContainerImageRead:
|
341
|
+
"""
|
342
|
+
An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
|
343
|
+
|
344
|
+
Parameters
|
345
|
+
----------
|
346
|
+
name : str
|
347
|
+
|
348
|
+
sha : str
|
349
|
+
|
350
|
+
tags : typing.Sequence[str]
|
351
|
+
|
352
|
+
request_options : typing.Optional[RequestOptions]
|
353
|
+
Request-specific configuration.
|
354
|
+
|
355
|
+
Returns
|
356
|
+
-------
|
357
|
+
ContainerImageRead
|
358
|
+
|
359
|
+
|
360
|
+
Examples
|
361
|
+
--------
|
362
|
+
import asyncio
|
363
|
+
|
364
|
+
from vellum import AsyncVellum
|
365
|
+
|
366
|
+
client = AsyncVellum(
|
367
|
+
api_key="YOUR_API_KEY",
|
368
|
+
)
|
369
|
+
|
370
|
+
|
371
|
+
async def main() -> None:
|
372
|
+
await client.container_images.push_container_image(
|
373
|
+
name="name",
|
374
|
+
sha="sha",
|
375
|
+
tags=["tags"],
|
376
|
+
)
|
377
|
+
|
378
|
+
|
379
|
+
asyncio.run(main())
|
380
|
+
"""
|
381
|
+
_response = await self._client_wrapper.httpx_client.request(
|
382
|
+
"v1/container-images/push",
|
383
|
+
base_url=self._client_wrapper.get_environment().default,
|
384
|
+
method="POST",
|
385
|
+
json={
|
386
|
+
"name": name,
|
387
|
+
"sha": sha,
|
388
|
+
"tags": tags,
|
389
|
+
},
|
390
|
+
request_options=request_options,
|
391
|
+
omit=OMIT,
|
392
|
+
)
|
393
|
+
try:
|
394
|
+
if 200 <= _response.status_code < 300:
|
395
|
+
return typing.cast(
|
396
|
+
ContainerImageRead,
|
397
|
+
parse_obj_as(
|
398
|
+
type_=ContainerImageRead, # type: ignore
|
399
|
+
object_=_response.json(),
|
400
|
+
),
|
401
|
+
)
|
402
|
+
_response_json = _response.json()
|
403
|
+
except JSONDecodeError:
|
404
|
+
raise ApiError(status_code=_response.status_code, body=_response.text)
|
405
|
+
raise ApiError(status_code=_response.status_code, body=_response_json)
|
vellum/types/__init__.py
CHANGED
@@ -17,8 +17,6 @@ from .array_input_request import ArrayInputRequest
|
|
17
17
|
from .array_variable_value import ArrayVariableValue
|
18
18
|
from .array_variable_value_item import ArrayVariableValueItem
|
19
19
|
from .array_vellum_value import ArrayVellumValue
|
20
|
-
from .array_vellum_value_item import ArrayVellumValueItem
|
21
|
-
from .array_vellum_value_item_request import ArrayVellumValueItemRequest
|
22
20
|
from .array_vellum_value_request import ArrayVellumValueRequest
|
23
21
|
from .basic_vectorizer_intfloat_multilingual_e_5_large import BasicVectorizerIntfloatMultilingualE5Large
|
24
22
|
from .basic_vectorizer_intfloat_multilingual_e_5_large_request import BasicVectorizerIntfloatMultilingualE5LargeRequest
|
@@ -68,6 +66,7 @@ from .components_schemas_pdf_search_result_meta_source_request import Components
|
|
68
66
|
from .condition_combinator import ConditionCombinator
|
69
67
|
from .conditional_node_result import ConditionalNodeResult
|
70
68
|
from .conditional_node_result_data import ConditionalNodeResultData
|
69
|
+
from .container_image_read import ContainerImageRead
|
71
70
|
from .create_test_suite_test_case_request import CreateTestSuiteTestCaseRequest
|
72
71
|
from .deployment_provider_payload_response import DeploymentProviderPayloadResponse
|
73
72
|
from .deployment_provider_payload_response_payload import DeploymentProviderPayloadResponsePayload
|
@@ -84,6 +83,7 @@ from .document_read import DocumentRead
|
|
84
83
|
from .document_status import DocumentStatus
|
85
84
|
from .enriched_normalized_completion import EnrichedNormalizedCompletion
|
86
85
|
from .entity_status import EntityStatus
|
86
|
+
from .entity_visibility import EntityVisibility
|
87
87
|
from .environment_enum import EnvironmentEnum
|
88
88
|
from .ephemeral_prompt_cache_config_request import EphemeralPromptCacheConfigRequest
|
89
89
|
from .ephemeral_prompt_cache_config_type_enum import EphemeralPromptCacheConfigTypeEnum
|
@@ -247,6 +247,7 @@ from .open_ai_vectorizer_text_embedding_3_small import OpenAiVectorizerTextEmbed
|
|
247
247
|
from .open_ai_vectorizer_text_embedding_3_small_request import OpenAiVectorizerTextEmbedding3SmallRequest
|
248
248
|
from .open_ai_vectorizer_text_embedding_ada_002 import OpenAiVectorizerTextEmbeddingAda002
|
249
249
|
from .open_ai_vectorizer_text_embedding_ada_002_request import OpenAiVectorizerTextEmbeddingAda002Request
|
250
|
+
from .paginated_container_image_read_list import PaginatedContainerImageReadList
|
250
251
|
from .paginated_document_index_read_list import PaginatedDocumentIndexReadList
|
251
252
|
from .paginated_folder_entity_list import PaginatedFolderEntityList
|
252
253
|
from .paginated_slim_deployment_read_list import PaginatedSlimDeploymentReadList
|
@@ -504,8 +505,6 @@ __all__ = [
|
|
504
505
|
"ArrayVariableValue",
|
505
506
|
"ArrayVariableValueItem",
|
506
507
|
"ArrayVellumValue",
|
507
|
-
"ArrayVellumValueItem",
|
508
|
-
"ArrayVellumValueItemRequest",
|
509
508
|
"ArrayVellumValueRequest",
|
510
509
|
"BasicVectorizerIntfloatMultilingualE5Large",
|
511
510
|
"BasicVectorizerIntfloatMultilingualE5LargeRequest",
|
@@ -547,6 +546,7 @@ __all__ = [
|
|
547
546
|
"ConditionCombinator",
|
548
547
|
"ConditionalNodeResult",
|
549
548
|
"ConditionalNodeResultData",
|
549
|
+
"ContainerImageRead",
|
550
550
|
"CreateTestSuiteTestCaseRequest",
|
551
551
|
"DeploymentProviderPayloadResponse",
|
552
552
|
"DeploymentProviderPayloadResponsePayload",
|
@@ -563,6 +563,7 @@ __all__ = [
|
|
563
563
|
"DocumentStatus",
|
564
564
|
"EnrichedNormalizedCompletion",
|
565
565
|
"EntityStatus",
|
566
|
+
"EntityVisibility",
|
566
567
|
"EnvironmentEnum",
|
567
568
|
"EphemeralPromptCacheConfigRequest",
|
568
569
|
"EphemeralPromptCacheConfigTypeEnum",
|
@@ -722,6 +723,7 @@ __all__ = [
|
|
722
723
|
"OpenAiVectorizerTextEmbedding3SmallRequest",
|
723
724
|
"OpenAiVectorizerTextEmbeddingAda002",
|
724
725
|
"OpenAiVectorizerTextEmbeddingAda002Request",
|
726
|
+
"PaginatedContainerImageReadList",
|
725
727
|
"PaginatedDocumentIndexReadList",
|
726
728
|
"PaginatedFolderEntityList",
|
727
729
|
"PaginatedSlimDeploymentReadList",
|
@@ -5,7 +5,7 @@ from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
5
|
from .array_vellum_value_request import ArrayVellumValueRequest
|
6
6
|
import pydantic
|
7
7
|
import typing
|
8
|
-
from .
|
8
|
+
from .vellum_value_request import VellumValueRequest
|
9
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
10
10
|
from ..core.pydantic_utilities import update_forward_refs
|
11
11
|
|
@@ -21,7 +21,7 @@ class ArrayInputRequest(UniversalBaseModel):
|
|
21
21
|
"""
|
22
22
|
|
23
23
|
type: typing.Literal["ARRAY"] = "ARRAY"
|
24
|
-
value: typing.List[
|
24
|
+
value: typing.List[VellumValueRequest]
|
25
25
|
|
26
26
|
if IS_PYDANTIC_V2:
|
27
27
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -14,7 +14,7 @@ class ArrayVellumValue(UniversalBaseModel):
|
|
14
14
|
"""
|
15
15
|
|
16
16
|
type: typing.Literal["ARRAY"] = "ARRAY"
|
17
|
-
value: typing.Optional[typing.List["
|
17
|
+
value: typing.Optional[typing.List["VellumValue"]] = None
|
18
18
|
|
19
19
|
if IS_PYDANTIC_V2:
|
20
20
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -26,6 +26,6 @@ class ArrayVellumValue(UniversalBaseModel):
|
|
26
26
|
extra = pydantic.Extra.allow
|
27
27
|
|
28
28
|
|
29
|
-
from .
|
29
|
+
from .vellum_value import VellumValue # noqa: E402
|
30
30
|
|
31
31
|
update_forward_refs(ArrayVellumValue)
|
@@ -14,7 +14,7 @@ class ArrayVellumValueRequest(UniversalBaseModel):
|
|
14
14
|
"""
|
15
15
|
|
16
16
|
type: typing.Literal["ARRAY"] = "ARRAY"
|
17
|
-
value: typing.Optional[typing.List["
|
17
|
+
value: typing.Optional[typing.List["VellumValueRequest"]] = None
|
18
18
|
|
19
19
|
if IS_PYDANTIC_V2:
|
20
20
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
@@ -26,6 +26,6 @@ class ArrayVellumValueRequest(UniversalBaseModel):
|
|
26
26
|
extra = pydantic.Extra.allow
|
27
27
|
|
28
28
|
|
29
|
-
from .
|
29
|
+
from .vellum_value_request import VellumValueRequest # noqa: E402
|
30
30
|
|
31
31
|
update_forward_refs(ArrayVellumValueRequest)
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
4
4
|
from ..core.pydantic_utilities import UniversalBaseModel
|
5
5
|
from .array_vellum_value import ArrayVellumValue
|
6
6
|
import typing
|
7
|
-
from .
|
7
|
+
from .vellum_value import VellumValue
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
9
9
|
import pydantic
|
10
10
|
from ..core.pydantic_utilities import update_forward_refs
|
@@ -13,7 +13,7 @@ from ..core.pydantic_utilities import update_forward_refs
|
|
13
13
|
class CodeExecutionNodeArrayResult(UniversalBaseModel):
|
14
14
|
id: str
|
15
15
|
type: typing.Literal["ARRAY"] = "ARRAY"
|
16
|
-
value: typing.Optional[typing.List[
|
16
|
+
value: typing.Optional[typing.List[VellumValue]] = None
|
17
17
|
|
18
18
|
if IS_PYDANTIC_V2:
|
19
19
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|