vellum-ai 0.9.13__py3-none-any.whl → 0.9.15__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- vellum/core/client_wrapper.py +1 -1
- vellum/resources/workflows/client.py +23 -11
- vellum/types/workflow_push_exec_config.py +1 -3
- {vellum_ai-0.9.13.dist-info → vellum_ai-0.9.15.dist-info}/METADATA +1 -1
- {vellum_ai-0.9.13.dist-info → vellum_ai-0.9.15.dist-info}/RECORD +7 -7
- {vellum_ai-0.9.13.dist-info → vellum_ai-0.9.15.dist-info}/LICENSE +0 -0
- {vellum_ai-0.9.13.dist-info → vellum_ai-0.9.15.dist-info}/WHEEL +0 -0
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": "0.9.
|
20
|
+
"X-Fern-SDK-Version": "0.9.15",
|
21
21
|
}
|
22
22
|
headers["X_API_KEY"] = self.api_key
|
23
23
|
return headers
|
@@ -11,8 +11,8 @@ from json.decoder import JSONDecodeError
|
|
11
11
|
from ...core.api_error import ApiError
|
12
12
|
from ...types.workflow_push_exec_config import WorkflowPushExecConfig
|
13
13
|
from ...types.workflow_push_deployment_config_request import WorkflowPushDeploymentConfigRequest
|
14
|
+
from ... import core
|
14
15
|
from ...types.workflow_push_response import WorkflowPushResponse
|
15
|
-
from ...core.serialization import convert_and_respect_annotation_metadata
|
16
16
|
from ...core.client_wrapper import AsyncClientWrapper
|
17
17
|
|
18
18
|
# this is used as the default value for optional parameters
|
@@ -97,6 +97,7 @@ class WorkflowsClient:
|
|
97
97
|
label: str,
|
98
98
|
workflow_sandbox_id: typing.Optional[str] = OMIT,
|
99
99
|
deployment_config: typing.Optional[WorkflowPushDeploymentConfigRequest] = OMIT,
|
100
|
+
artifact: typing.Optional[core.File] = OMIT,
|
100
101
|
request_options: typing.Optional[RequestOptions] = None,
|
101
102
|
) -> WorkflowPushResponse:
|
102
103
|
"""
|
@@ -105,6 +106,7 @@ class WorkflowsClient:
|
|
105
106
|
Parameters
|
106
107
|
----------
|
107
108
|
exec_config : WorkflowPushExecConfig
|
109
|
+
The execution configuration of the workflow.
|
108
110
|
|
109
111
|
label : str
|
110
112
|
|
@@ -112,6 +114,9 @@ class WorkflowsClient:
|
|
112
114
|
|
113
115
|
deployment_config : typing.Optional[WorkflowPushDeploymentConfigRequest]
|
114
116
|
|
117
|
+
artifact : typing.Optional[core.File]
|
118
|
+
See core.File for more documentation
|
119
|
+
|
115
120
|
request_options : typing.Optional[RequestOptions]
|
116
121
|
Request-specific configuration.
|
117
122
|
|
@@ -128,7 +133,7 @@ class WorkflowsClient:
|
|
128
133
|
api_key="YOUR_API_KEY",
|
129
134
|
)
|
130
135
|
client.workflows.push(
|
131
|
-
exec_config=
|
136
|
+
exec_config="exec_config",
|
132
137
|
label="label",
|
133
138
|
)
|
134
139
|
"""
|
@@ -136,13 +141,14 @@ class WorkflowsClient:
|
|
136
141
|
"v1/workflows/push",
|
137
142
|
base_url=self._client_wrapper.get_environment().default,
|
138
143
|
method="POST",
|
139
|
-
|
144
|
+
data={
|
140
145
|
"exec_config": exec_config,
|
141
146
|
"label": label,
|
142
147
|
"workflow_sandbox_id": workflow_sandbox_id,
|
143
|
-
"deployment_config":
|
144
|
-
|
145
|
-
|
148
|
+
"deployment_config": deployment_config,
|
149
|
+
},
|
150
|
+
files={
|
151
|
+
"artifact": artifact,
|
146
152
|
},
|
147
153
|
request_options=request_options,
|
148
154
|
omit=OMIT,
|
@@ -248,6 +254,7 @@ class AsyncWorkflowsClient:
|
|
248
254
|
label: str,
|
249
255
|
workflow_sandbox_id: typing.Optional[str] = OMIT,
|
250
256
|
deployment_config: typing.Optional[WorkflowPushDeploymentConfigRequest] = OMIT,
|
257
|
+
artifact: typing.Optional[core.File] = OMIT,
|
251
258
|
request_options: typing.Optional[RequestOptions] = None,
|
252
259
|
) -> WorkflowPushResponse:
|
253
260
|
"""
|
@@ -256,6 +263,7 @@ class AsyncWorkflowsClient:
|
|
256
263
|
Parameters
|
257
264
|
----------
|
258
265
|
exec_config : WorkflowPushExecConfig
|
266
|
+
The execution configuration of the workflow.
|
259
267
|
|
260
268
|
label : str
|
261
269
|
|
@@ -263,6 +271,9 @@ class AsyncWorkflowsClient:
|
|
263
271
|
|
264
272
|
deployment_config : typing.Optional[WorkflowPushDeploymentConfigRequest]
|
265
273
|
|
274
|
+
artifact : typing.Optional[core.File]
|
275
|
+
See core.File for more documentation
|
276
|
+
|
266
277
|
request_options : typing.Optional[RequestOptions]
|
267
278
|
Request-specific configuration.
|
268
279
|
|
@@ -284,7 +295,7 @@ class AsyncWorkflowsClient:
|
|
284
295
|
|
285
296
|
async def main() -> None:
|
286
297
|
await client.workflows.push(
|
287
|
-
exec_config=
|
298
|
+
exec_config="exec_config",
|
288
299
|
label="label",
|
289
300
|
)
|
290
301
|
|
@@ -295,13 +306,14 @@ class AsyncWorkflowsClient:
|
|
295
306
|
"v1/workflows/push",
|
296
307
|
base_url=self._client_wrapper.get_environment().default,
|
297
308
|
method="POST",
|
298
|
-
|
309
|
+
data={
|
299
310
|
"exec_config": exec_config,
|
300
311
|
"label": label,
|
301
312
|
"workflow_sandbox_id": workflow_sandbox_id,
|
302
|
-
"deployment_config":
|
303
|
-
|
304
|
-
|
313
|
+
"deployment_config": deployment_config,
|
314
|
+
},
|
315
|
+
files={
|
316
|
+
"artifact": artifact,
|
305
317
|
},
|
306
318
|
request_options=request_options,
|
307
319
|
omit=OMIT,
|
@@ -2,7 +2,7 @@ vellum/__init__.py,sha256=m0Vfy02ACEtGf7LlRkVWFCAVF19SDF47PWJrCKIDsgo,34220
|
|
2
2
|
vellum/client.py,sha256=GtF36JNWxnFRV348M0-YcGd9N6ES-l0Q5b32rwHCR5E,115031
|
3
3
|
vellum/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
|
4
4
|
vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
5
|
-
vellum/core/client_wrapper.py,sha256=
|
5
|
+
vellum/core/client_wrapper.py,sha256=LRz9iP7j15DAuuCL2t-YGAU-z5civRcQBNKShT3MxSQ,1890
|
6
6
|
vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
7
7
|
vellum/core/file.py,sha256=X9IbmkZmB2bB_DpmZAO3crWdXagOakAyn6UCOCImCPg,2322
|
8
8
|
vellum/core/http_client.py,sha256=R0pQpCppnEtxccGvXl4uJ76s7ro_65Fo_erlNNLp_AI,19228
|
@@ -66,7 +66,7 @@ vellum/resources/workflow_deployments/types/workflow_deployments_list_request_st
|
|
66
66
|
vellum/resources/workflow_sandboxes/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
67
67
|
vellum/resources/workflow_sandboxes/client.py,sha256=3wVQxkjrJ5bIS8fB5FpKXCP2dX38299ghWrJ8YmXxwQ,7435
|
68
68
|
vellum/resources/workflows/__init__.py,sha256=Z4xi8Nxd9U4t35FQSepTt1p-ns0X1xtdNs168kUcuBk,153
|
69
|
-
vellum/resources/workflows/client.py,sha256=
|
69
|
+
vellum/resources/workflows/client.py,sha256=SYPMtcDF9aVhrbzmlnGLqdx8l7Hau2QpZTTE-R8TwKQ,10853
|
70
70
|
vellum/resources/workflows/types/__init__.py,sha256=-uFca4ypncAOvfsg6sjD-5C9zWdA5qNvU6m675GphVg,177
|
71
71
|
vellum/resources/workflows/types/workflows_pull_request_format.py,sha256=dOWE_jnDnniIJLoeseeCms23aklghyBkoPmBFzcqqZk,165
|
72
72
|
vellum/resources/workspace_secrets/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
@@ -541,7 +541,7 @@ vellum/types/workflow_output_number.py,sha256=p8APNBpl6c3e3dxCFvZtL0jyKOmu9s6LkY
|
|
541
541
|
vellum/types/workflow_output_search_results.py,sha256=r3RRGVVrH2H9NAuxA7qmG8lponyeLHHhCx6AUiMYWzc,903
|
542
542
|
vellum/types/workflow_output_string.py,sha256=_jclzbQ-Wlf-7FEVTWXhs9h5FWfj4xGpiODZBOzT43w,810
|
543
543
|
vellum/types/workflow_push_deployment_config_request.py,sha256=pG6bZtlw7S0TcXtNRQNa7y_2NodZe7dp5SchIrgRUVU,745
|
544
|
-
vellum/types/workflow_push_exec_config.py,sha256=
|
544
|
+
vellum/types/workflow_push_exec_config.py,sha256=6TaVMVqhSOz4DnY46l8axPDtytSioXDl9nHvFXSxH1g,94
|
545
545
|
vellum/types/workflow_push_response.py,sha256=BHFX9M87__2AwW6krLxumQ3ecOR6qMOMgVmvQdS_6Ls,634
|
546
546
|
vellum/types/workflow_release_tag_read.py,sha256=S7ekl01oVDetL8R7MdBTb4cDhHN0W0iHGNJ1-ZpY3Tc,1155
|
547
547
|
vellum/types/workflow_release_tag_workflow_deployment_history_item.py,sha256=pjWobdk9mZD3Px86rwFHfs_PYJBGXDKQUkxsgNEe6EA,825
|
@@ -563,7 +563,7 @@ vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb
|
|
563
563
|
vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
|
564
564
|
vellum/types/workspace_secret_read.py,sha256=3CnHDG72IAY0KRNvc31F0xLmhnpwjQHnDYCfQJzCxI0,714
|
565
565
|
vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
|
566
|
-
vellum_ai-0.9.
|
567
|
-
vellum_ai-0.9.
|
568
|
-
vellum_ai-0.9.
|
569
|
-
vellum_ai-0.9.
|
566
|
+
vellum_ai-0.9.15.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
|
567
|
+
vellum_ai-0.9.15.dist-info/METADATA,sha256=tW3SB-AqKD3hwYjwm-_GtnDgbKcozwVtmpeLjSti5PM,4395
|
568
|
+
vellum_ai-0.9.15.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
569
|
+
vellum_ai-0.9.15.dist-info/RECORD,,
|
File without changes
|
File without changes
|