vellum-ai 1.2.4__py3-none-any.whl → 1.3.0__py3-none-any.whl

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.
Files changed (105) hide show
  1. vellum/__init__.py +56 -0
  2. vellum/client/README.md +1 -1
  3. vellum/client/core/client_wrapper.py +2 -2
  4. vellum/client/reference.md +0 -9
  5. vellum/client/resources/workflow_sandboxes/client.py +0 -12
  6. vellum/client/resources/workflow_sandboxes/raw_client.py +2 -10
  7. vellum/client/resources/workflows/client.py +20 -0
  8. vellum/client/resources/workflows/raw_client.py +20 -0
  9. vellum/client/types/__init__.py +56 -0
  10. vellum/client/types/audio_input.py +30 -0
  11. vellum/client/types/code_executor_input.py +8 -0
  12. vellum/client/types/deployment_read.py +5 -5
  13. vellum/client/types/document_input.py +30 -0
  14. vellum/client/types/image_input.py +30 -0
  15. vellum/client/types/named_scenario_input_audio_variable_value_request.py +22 -0
  16. vellum/client/types/named_scenario_input_document_variable_value_request.py +22 -0
  17. vellum/client/types/named_scenario_input_image_variable_value_request.py +22 -0
  18. vellum/client/types/named_scenario_input_request.py +8 -0
  19. vellum/client/types/named_scenario_input_video_variable_value_request.py +22 -0
  20. vellum/client/types/named_test_case_audio_variable_value.py +26 -0
  21. vellum/client/types/named_test_case_audio_variable_value_request.py +26 -0
  22. vellum/client/types/named_test_case_document_variable_value.py +22 -0
  23. vellum/client/types/named_test_case_document_variable_value_request.py +22 -0
  24. vellum/client/types/named_test_case_image_variable_value.py +22 -0
  25. vellum/client/types/named_test_case_image_variable_value_request.py +22 -0
  26. vellum/client/types/named_test_case_variable_value.py +8 -0
  27. vellum/client/types/named_test_case_variable_value_request.py +8 -0
  28. vellum/client/types/named_test_case_video_variable_value.py +22 -0
  29. vellum/client/types/named_test_case_video_variable_value_request.py +22 -0
  30. vellum/client/types/node_execution_span_attributes.py +1 -0
  31. vellum/client/types/scenario_input.py +11 -1
  32. vellum/client/types/scenario_input_audio_variable_value.py +22 -0
  33. vellum/client/types/scenario_input_document_variable_value.py +22 -0
  34. vellum/client/types/scenario_input_image_variable_value.py +22 -0
  35. vellum/client/types/scenario_input_video_variable_value.py +22 -0
  36. vellum/client/types/slim_deployment_read.py +5 -5
  37. vellum/client/types/slim_workflow_deployment.py +5 -5
  38. vellum/client/types/span_link.py +1 -1
  39. vellum/client/types/span_link_type_enum.py +1 -1
  40. vellum/client/types/test_case_audio_variable_value.py +27 -0
  41. vellum/client/types/test_case_document_variable_value.py +27 -0
  42. vellum/client/types/test_case_image_variable_value.py +27 -0
  43. vellum/client/types/test_case_variable_value.py +8 -0
  44. vellum/client/types/test_case_video_variable_value.py +27 -0
  45. vellum/client/types/video_input.py +30 -0
  46. vellum/client/types/workflow_deployment_read.py +5 -5
  47. vellum/client/types/workflow_push_deployment_config_request.py +1 -0
  48. vellum/client/types/workflow_request_audio_input_request.py +30 -0
  49. vellum/client/types/workflow_request_document_input_request.py +30 -0
  50. vellum/client/types/workflow_request_image_input_request.py +30 -0
  51. vellum/client/types/workflow_request_input_request.py +8 -0
  52. vellum/client/types/workflow_request_video_input_request.py +30 -0
  53. vellum/types/audio_input.py +3 -0
  54. vellum/types/document_input.py +3 -0
  55. vellum/types/image_input.py +3 -0
  56. vellum/types/named_scenario_input_audio_variable_value_request.py +3 -0
  57. vellum/types/named_scenario_input_document_variable_value_request.py +3 -0
  58. vellum/types/named_scenario_input_image_variable_value_request.py +3 -0
  59. vellum/types/named_scenario_input_video_variable_value_request.py +3 -0
  60. vellum/types/named_test_case_audio_variable_value.py +3 -0
  61. vellum/types/named_test_case_audio_variable_value_request.py +3 -0
  62. vellum/types/named_test_case_document_variable_value.py +3 -0
  63. vellum/types/named_test_case_document_variable_value_request.py +3 -0
  64. vellum/types/named_test_case_image_variable_value.py +3 -0
  65. vellum/types/named_test_case_image_variable_value_request.py +3 -0
  66. vellum/types/named_test_case_video_variable_value.py +3 -0
  67. vellum/types/named_test_case_video_variable_value_request.py +3 -0
  68. vellum/types/scenario_input_audio_variable_value.py +3 -0
  69. vellum/types/scenario_input_document_variable_value.py +3 -0
  70. vellum/types/scenario_input_image_variable_value.py +3 -0
  71. vellum/types/scenario_input_video_variable_value.py +3 -0
  72. vellum/types/test_case_audio_variable_value.py +3 -0
  73. vellum/types/test_case_document_variable_value.py +3 -0
  74. vellum/types/test_case_image_variable_value.py +3 -0
  75. vellum/types/test_case_video_variable_value.py +3 -0
  76. vellum/types/video_input.py +3 -0
  77. vellum/types/workflow_request_audio_input_request.py +3 -0
  78. vellum/types/workflow_request_document_input_request.py +3 -0
  79. vellum/types/workflow_request_image_input_request.py +3 -0
  80. vellum/types/workflow_request_video_input_request.py +3 -0
  81. vellum/workflows/events/types.py +6 -1
  82. vellum/workflows/integrations/tests/test_mcp_service.py +106 -1
  83. vellum/workflows/nodes/__init__.py +2 -0
  84. vellum/workflows/nodes/displayable/__init__.py +2 -0
  85. vellum/workflows/nodes/displayable/web_search_node/__init__.py +3 -0
  86. vellum/workflows/nodes/displayable/web_search_node/node.py +133 -0
  87. vellum/workflows/resolvers/base.py +19 -1
  88. vellum/workflows/resolvers/resolver.py +97 -0
  89. vellum/workflows/resolvers/tests/test_resolver.py +131 -0
  90. vellum/workflows/resolvers/types.py +11 -0
  91. vellum/workflows/runner/runner.py +49 -1
  92. vellum/workflows/state/context.py +41 -7
  93. vellum/workflows/utils/zip.py +46 -0
  94. vellum/workflows/workflows/base.py +13 -0
  95. {vellum_ai-1.2.4.dist-info → vellum_ai-1.3.0.dist-info}/METADATA +1 -1
  96. {vellum_ai-1.2.4.dist-info → vellum_ai-1.3.0.dist-info}/RECORD +105 -43
  97. vellum_cli/tests/test_init.py +7 -24
  98. vellum_cli/tests/test_pull.py +27 -52
  99. vellum_ee/workflows/display/tests/workflow_serialization/generic_nodes/test_attributes_serialization.py +7 -33
  100. vellum_ee/workflows/display/utils/events.py +19 -1
  101. vellum_ee/workflows/display/utils/tests/test_events.py +42 -0
  102. vellum_ee/workflows/tests/test_server.py +115 -0
  103. {vellum_ai-1.2.4.dist-info → vellum_ai-1.3.0.dist-info}/LICENSE +0 -0
  104. {vellum_ai-1.2.4.dist-info → vellum_ai-1.3.0.dist-info}/WHEEL +0 -0
  105. {vellum_ai-1.2.4.dist-info → vellum_ai-1.3.0.dist-info}/entry_points.txt +0 -0
vellum/__init__.py CHANGED
@@ -26,6 +26,7 @@ from .client.types import (
26
26
  ArrayVellumValueRequest,
27
27
  AudioChatMessageContent,
28
28
  AudioChatMessageContentRequest,
29
+ AudioInput,
29
30
  AudioInputRequest,
30
31
  AudioPromptBlock,
31
32
  AudioVellumValue,
@@ -96,6 +97,7 @@ from .client.types import (
96
97
  DocumentIndexIndexingConfig,
97
98
  DocumentIndexIndexingConfigRequest,
98
99
  DocumentIndexRead,
100
+ DocumentInput,
99
101
  DocumentInputRequest,
100
102
  DocumentProcessingState,
101
103
  DocumentPromptBlock,
@@ -195,6 +197,7 @@ from .client.types import (
195
197
  HkunlpInstructorXlVectorizerRequest,
196
198
  ImageChatMessageContent,
197
199
  ImageChatMessageContentRequest,
200
+ ImageInput,
198
201
  ImageInputRequest,
199
202
  ImagePromptBlock,
200
203
  ImageVellumValue,
@@ -233,18 +236,28 @@ from .client.types import (
233
236
  MlModelRead,
234
237
  MlModelUsage,
235
238
  MlModelUsageWrapper,
239
+ NamedScenarioInputAudioVariableValueRequest,
236
240
  NamedScenarioInputChatHistoryVariableValueRequest,
241
+ NamedScenarioInputDocumentVariableValueRequest,
242
+ NamedScenarioInputImageVariableValueRequest,
237
243
  NamedScenarioInputJsonVariableValueRequest,
238
244
  NamedScenarioInputRequest,
239
245
  NamedScenarioInputStringVariableValueRequest,
246
+ NamedScenarioInputVideoVariableValueRequest,
240
247
  NamedTestCaseArrayVariableValue,
241
248
  NamedTestCaseArrayVariableValueRequest,
249
+ NamedTestCaseAudioVariableValue,
250
+ NamedTestCaseAudioVariableValueRequest,
242
251
  NamedTestCaseChatHistoryVariableValue,
243
252
  NamedTestCaseChatHistoryVariableValueRequest,
253
+ NamedTestCaseDocumentVariableValue,
254
+ NamedTestCaseDocumentVariableValueRequest,
244
255
  NamedTestCaseErrorVariableValue,
245
256
  NamedTestCaseErrorVariableValueRequest,
246
257
  NamedTestCaseFunctionCallVariableValue,
247
258
  NamedTestCaseFunctionCallVariableValueRequest,
259
+ NamedTestCaseImageVariableValue,
260
+ NamedTestCaseImageVariableValueRequest,
248
261
  NamedTestCaseJsonVariableValue,
249
262
  NamedTestCaseJsonVariableValueRequest,
250
263
  NamedTestCaseNumberVariableValue,
@@ -255,6 +268,8 @@ from .client.types import (
255
268
  NamedTestCaseStringVariableValueRequest,
256
269
  NamedTestCaseVariableValue,
257
270
  NamedTestCaseVariableValueRequest,
271
+ NamedTestCaseVideoVariableValue,
272
+ NamedTestCaseVideoVariableValueRequest,
258
273
  NewMemberJoinBehaviorEnum,
259
274
  NodeExecutionFulfilledBody,
260
275
  NodeExecutionFulfilledEvent,
@@ -375,9 +390,13 @@ from .client.types import (
375
390
  RichTextPromptBlock,
376
391
  SandboxScenario,
377
392
  ScenarioInput,
393
+ ScenarioInputAudioVariableValue,
378
394
  ScenarioInputChatHistoryVariableValue,
395
+ ScenarioInputDocumentVariableValue,
396
+ ScenarioInputImageVariableValue,
379
397
  ScenarioInputJsonVariableValue,
380
398
  ScenarioInputStringVariableValue,
399
+ ScenarioInputVideoVariableValue,
381
400
  SearchFiltersRequest,
382
401
  SearchNodeResult,
383
402
  SearchNodeResultData,
@@ -444,14 +463,18 @@ from .client.types import (
444
463
  TerminalNodeSearchResultsResult,
445
464
  TerminalNodeStringResult,
446
465
  TestCaseArrayVariableValue,
466
+ TestCaseAudioVariableValue,
447
467
  TestCaseChatHistoryVariableValue,
468
+ TestCaseDocumentVariableValue,
448
469
  TestCaseErrorVariableValue,
449
470
  TestCaseFunctionCallVariableValue,
471
+ TestCaseImageVariableValue,
450
472
  TestCaseJsonVariableValue,
451
473
  TestCaseNumberVariableValue,
452
474
  TestCaseSearchResultsVariableValue,
453
475
  TestCaseStringVariableValue,
454
476
  TestCaseVariableValue,
477
+ TestCaseVideoVariableValue,
455
478
  TestSuiteRunDeploymentReleaseTagExecConfig,
456
479
  TestSuiteRunDeploymentReleaseTagExecConfigData,
457
480
  TestSuiteRunDeploymentReleaseTagExecConfigDataRequest,
@@ -553,6 +576,7 @@ from .client.types import (
553
576
  VellumWorkflowExecutionEvent,
554
577
  VideoChatMessageContent,
555
578
  VideoChatMessageContentRequest,
579
+ VideoInput,
556
580
  VideoInputRequest,
557
581
  VideoPromptBlock,
558
582
  VideoVellumValue,
@@ -619,11 +643,15 @@ from .client.types import (
619
643
  WorkflowPushResponse,
620
644
  WorkflowReleaseTagRead,
621
645
  WorkflowReleaseTagWorkflowDeploymentHistoryItem,
646
+ WorkflowRequestAudioInputRequest,
622
647
  WorkflowRequestChatHistoryInputRequest,
648
+ WorkflowRequestDocumentInputRequest,
649
+ WorkflowRequestImageInputRequest,
623
650
  WorkflowRequestInputRequest,
624
651
  WorkflowRequestJsonInputRequest,
625
652
  WorkflowRequestNumberInputRequest,
626
653
  WorkflowRequestStringInputRequest,
654
+ WorkflowRequestVideoInputRequest,
627
655
  WorkflowResultEvent,
628
656
  WorkflowResultEventOutputData,
629
657
  WorkflowResultEventOutputDataArray,
@@ -703,6 +731,7 @@ __all__ = [
703
731
  "AsyncVellum",
704
732
  "AudioChatMessageContent",
705
733
  "AudioChatMessageContentRequest",
734
+ "AudioInput",
706
735
  "AudioInputRequest",
707
736
  "AudioPromptBlock",
708
737
  "AudioVellumValue",
@@ -776,6 +805,7 @@ __all__ = [
776
805
  "DocumentIndexIndexingConfigRequest",
777
806
  "DocumentIndexRead",
778
807
  "DocumentIndexesListRequestStatus",
808
+ "DocumentInput",
779
809
  "DocumentInputRequest",
780
810
  "DocumentProcessingState",
781
811
  "DocumentPromptBlock",
@@ -877,6 +907,7 @@ __all__ = [
877
907
  "HkunlpInstructorXlVectorizerRequest",
878
908
  "ImageChatMessageContent",
879
909
  "ImageChatMessageContentRequest",
910
+ "ImageInput",
880
911
  "ImageInputRequest",
881
912
  "ImagePromptBlock",
882
913
  "ImageVellumValue",
@@ -919,18 +950,28 @@ __all__ = [
919
950
  "MlModelRead",
920
951
  "MlModelUsage",
921
952
  "MlModelUsageWrapper",
953
+ "NamedScenarioInputAudioVariableValueRequest",
922
954
  "NamedScenarioInputChatHistoryVariableValueRequest",
955
+ "NamedScenarioInputDocumentVariableValueRequest",
956
+ "NamedScenarioInputImageVariableValueRequest",
923
957
  "NamedScenarioInputJsonVariableValueRequest",
924
958
  "NamedScenarioInputRequest",
925
959
  "NamedScenarioInputStringVariableValueRequest",
960
+ "NamedScenarioInputVideoVariableValueRequest",
926
961
  "NamedTestCaseArrayVariableValue",
927
962
  "NamedTestCaseArrayVariableValueRequest",
963
+ "NamedTestCaseAudioVariableValue",
964
+ "NamedTestCaseAudioVariableValueRequest",
928
965
  "NamedTestCaseChatHistoryVariableValue",
929
966
  "NamedTestCaseChatHistoryVariableValueRequest",
967
+ "NamedTestCaseDocumentVariableValue",
968
+ "NamedTestCaseDocumentVariableValueRequest",
930
969
  "NamedTestCaseErrorVariableValue",
931
970
  "NamedTestCaseErrorVariableValueRequest",
932
971
  "NamedTestCaseFunctionCallVariableValue",
933
972
  "NamedTestCaseFunctionCallVariableValueRequest",
973
+ "NamedTestCaseImageVariableValue",
974
+ "NamedTestCaseImageVariableValueRequest",
934
975
  "NamedTestCaseJsonVariableValue",
935
976
  "NamedTestCaseJsonVariableValueRequest",
936
977
  "NamedTestCaseNumberVariableValue",
@@ -941,6 +982,8 @@ __all__ = [
941
982
  "NamedTestCaseStringVariableValueRequest",
942
983
  "NamedTestCaseVariableValue",
943
984
  "NamedTestCaseVariableValueRequest",
985
+ "NamedTestCaseVideoVariableValue",
986
+ "NamedTestCaseVideoVariableValueRequest",
944
987
  "NewMemberJoinBehaviorEnum",
945
988
  "NodeExecutionFulfilledBody",
946
989
  "NodeExecutionFulfilledEvent",
@@ -1062,9 +1105,13 @@ __all__ = [
1062
1105
  "RichTextPromptBlock",
1063
1106
  "SandboxScenario",
1064
1107
  "ScenarioInput",
1108
+ "ScenarioInputAudioVariableValue",
1065
1109
  "ScenarioInputChatHistoryVariableValue",
1110
+ "ScenarioInputDocumentVariableValue",
1111
+ "ScenarioInputImageVariableValue",
1066
1112
  "ScenarioInputJsonVariableValue",
1067
1113
  "ScenarioInputStringVariableValue",
1114
+ "ScenarioInputVideoVariableValue",
1068
1115
  "SearchFiltersRequest",
1069
1116
  "SearchNodeResult",
1070
1117
  "SearchNodeResultData",
@@ -1131,14 +1178,18 @@ __all__ = [
1131
1178
  "TerminalNodeSearchResultsResult",
1132
1179
  "TerminalNodeStringResult",
1133
1180
  "TestCaseArrayVariableValue",
1181
+ "TestCaseAudioVariableValue",
1134
1182
  "TestCaseChatHistoryVariableValue",
1183
+ "TestCaseDocumentVariableValue",
1135
1184
  "TestCaseErrorVariableValue",
1136
1185
  "TestCaseFunctionCallVariableValue",
1186
+ "TestCaseImageVariableValue",
1137
1187
  "TestCaseJsonVariableValue",
1138
1188
  "TestCaseNumberVariableValue",
1139
1189
  "TestCaseSearchResultsVariableValue",
1140
1190
  "TestCaseStringVariableValue",
1141
1191
  "TestCaseVariableValue",
1192
+ "TestCaseVideoVariableValue",
1142
1193
  "TestSuiteRunDeploymentReleaseTagExecConfig",
1143
1194
  "TestSuiteRunDeploymentReleaseTagExecConfigData",
1144
1195
  "TestSuiteRunDeploymentReleaseTagExecConfigDataRequest",
@@ -1244,6 +1295,7 @@ __all__ = [
1244
1295
  "VellumWorkflowExecutionEvent",
1245
1296
  "VideoChatMessageContent",
1246
1297
  "VideoChatMessageContentRequest",
1298
+ "VideoInput",
1247
1299
  "VideoInputRequest",
1248
1300
  "VideoPromptBlock",
1249
1301
  "VideoVellumValue",
@@ -1311,11 +1363,15 @@ __all__ = [
1311
1363
  "WorkflowPushResponse",
1312
1364
  "WorkflowReleaseTagRead",
1313
1365
  "WorkflowReleaseTagWorkflowDeploymentHistoryItem",
1366
+ "WorkflowRequestAudioInputRequest",
1314
1367
  "WorkflowRequestChatHistoryInputRequest",
1368
+ "WorkflowRequestDocumentInputRequest",
1369
+ "WorkflowRequestImageInputRequest",
1315
1370
  "WorkflowRequestInputRequest",
1316
1371
  "WorkflowRequestJsonInputRequest",
1317
1372
  "WorkflowRequestNumberInputRequest",
1318
1373
  "WorkflowRequestStringInputRequest",
1374
+ "WorkflowRequestVideoInputRequest",
1319
1375
  "WorkflowResultEvent",
1320
1376
  "WorkflowResultEventOutputData",
1321
1377
  "WorkflowResultEventOutputDataArray",
vellum/client/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fvellum-ai%2Fvellum-python-sdks)
4
4
  [![pypi](https://img.shields.io/pypi/v/vellum-ai)](https://pypi.python.org/pypi/vellum-ai)
5
5
 
6
- The Vellum Python library provides convenient access to the Vellum API from Python.
6
+ The Vellum Python library provides convenient access to the Vellum APIs from Python.
7
7
 
8
8
  ## API Docs
9
9
  You can find Vellum's complete API docs at [docs.vellum.ai](https://docs.vellum.ai/api-reference/introduction/getting-started).
@@ -27,10 +27,10 @@ class BaseClientWrapper:
27
27
 
28
28
  def get_headers(self) -> typing.Dict[str, str]:
29
29
  headers: typing.Dict[str, str] = {
30
- "User-Agent": "vellum-ai/1.2.4",
30
+ "User-Agent": "vellum-ai/1.3.0",
31
31
  "X-Fern-Language": "Python",
32
32
  "X-Fern-SDK-Name": "vellum-ai",
33
- "X-Fern-SDK-Version": "1.2.4",
33
+ "X-Fern-SDK-Version": "1.3.0",
34
34
  **(self.get_custom_headers() or {}),
35
35
  }
36
36
  if self._api_version is not None:
@@ -6222,7 +6222,6 @@ client = Vellum(
6222
6222
  )
6223
6223
  client.workflow_sandboxes.deploy_workflow(
6224
6224
  id="id",
6225
- workflow_id="workflow_id",
6226
6225
  )
6227
6226
 
6228
6227
  ```
@@ -6247,14 +6246,6 @@ client.workflow_sandboxes.deploy_workflow(
6247
6246
  <dl>
6248
6247
  <dd>
6249
6248
 
6250
- **workflow_id:** `str` — An ID identifying the Workflow you'd like to deploy.
6251
-
6252
- </dd>
6253
- </dl>
6254
-
6255
- <dl>
6256
- <dd>
6257
-
6258
6249
  **workflow_deployment_id:** `typing.Optional[str]` — The Vellum-generated ID of the Workflow Deployment you'd like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.
6259
6250
 
6260
6251
  </dd>
@@ -35,7 +35,6 @@ class WorkflowSandboxesClient:
35
35
  def deploy_workflow(
36
36
  self,
37
37
  id: str,
38
- workflow_id: str,
39
38
  *,
40
39
  workflow_deployment_id: typing.Optional[str] = OMIT,
41
40
  workflow_deployment_name: typing.Optional[str] = OMIT,
@@ -50,9 +49,6 @@ class WorkflowSandboxesClient:
50
49
  id : str
51
50
  A UUID string identifying this workflow sandbox.
52
51
 
53
- workflow_id : str
54
- An ID identifying the Workflow you'd like to deploy.
55
-
56
52
  workflow_deployment_id : typing.Optional[str]
57
53
  The Vellum-generated ID of the Workflow Deployment you'd like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.
58
54
 
@@ -86,12 +82,10 @@ class WorkflowSandboxesClient:
86
82
  )
87
83
  client.workflow_sandboxes.deploy_workflow(
88
84
  id="id",
89
- workflow_id="workflow_id",
90
85
  )
91
86
  """
92
87
  _response = self._raw_client.deploy_workflow(
93
88
  id,
94
- workflow_id,
95
89
  workflow_deployment_id=workflow_deployment_id,
96
90
  workflow_deployment_name=workflow_deployment_name,
97
91
  label=label,
@@ -168,7 +162,6 @@ class AsyncWorkflowSandboxesClient:
168
162
  async def deploy_workflow(
169
163
  self,
170
164
  id: str,
171
- workflow_id: str,
172
165
  *,
173
166
  workflow_deployment_id: typing.Optional[str] = OMIT,
174
167
  workflow_deployment_name: typing.Optional[str] = OMIT,
@@ -183,9 +176,6 @@ class AsyncWorkflowSandboxesClient:
183
176
  id : str
184
177
  A UUID string identifying this workflow sandbox.
185
178
 
186
- workflow_id : str
187
- An ID identifying the Workflow you'd like to deploy.
188
-
189
179
  workflow_deployment_id : typing.Optional[str]
190
180
  The Vellum-generated ID of the Workflow Deployment you'd like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.
191
181
 
@@ -224,7 +214,6 @@ class AsyncWorkflowSandboxesClient:
224
214
  async def main() -> None:
225
215
  await client.workflow_sandboxes.deploy_workflow(
226
216
  id="id",
227
- workflow_id="workflow_id",
228
217
  )
229
218
 
230
219
 
@@ -232,7 +221,6 @@ class AsyncWorkflowSandboxesClient:
232
221
  """
233
222
  _response = await self._raw_client.deploy_workflow(
234
223
  id,
235
- workflow_id,
236
224
  workflow_deployment_id=workflow_deployment_id,
237
225
  workflow_deployment_name=workflow_deployment_name,
238
226
  label=label,
@@ -24,7 +24,6 @@ class RawWorkflowSandboxesClient:
24
24
  def deploy_workflow(
25
25
  self,
26
26
  id: str,
27
- workflow_id: str,
28
27
  *,
29
28
  workflow_deployment_id: typing.Optional[str] = OMIT,
30
29
  workflow_deployment_name: typing.Optional[str] = OMIT,
@@ -39,9 +38,6 @@ class RawWorkflowSandboxesClient:
39
38
  id : str
40
39
  A UUID string identifying this workflow sandbox.
41
40
 
42
- workflow_id : str
43
- An ID identifying the Workflow you'd like to deploy.
44
-
45
41
  workflow_deployment_id : typing.Optional[str]
46
42
  The Vellum-generated ID of the Workflow Deployment you'd like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.
47
43
 
@@ -66,7 +62,7 @@ class RawWorkflowSandboxesClient:
66
62
 
67
63
  """
68
64
  _response = self._client_wrapper.httpx_client.request(
69
- f"v1/workflow-sandboxes/{jsonable_encoder(id)}/workflows/{jsonable_encoder(workflow_id)}/deploy",
65
+ f"v1/workflow-sandboxes/{jsonable_encoder(id)}/deploy",
70
66
  base_url=self._client_wrapper.get_environment().default,
71
67
  method="POST",
72
68
  json={
@@ -165,7 +161,6 @@ class AsyncRawWorkflowSandboxesClient:
165
161
  async def deploy_workflow(
166
162
  self,
167
163
  id: str,
168
- workflow_id: str,
169
164
  *,
170
165
  workflow_deployment_id: typing.Optional[str] = OMIT,
171
166
  workflow_deployment_name: typing.Optional[str] = OMIT,
@@ -180,9 +175,6 @@ class AsyncRawWorkflowSandboxesClient:
180
175
  id : str
181
176
  A UUID string identifying this workflow sandbox.
182
177
 
183
- workflow_id : str
184
- An ID identifying the Workflow you'd like to deploy.
185
-
186
178
  workflow_deployment_id : typing.Optional[str]
187
179
  The Vellum-generated ID of the Workflow Deployment you'd like to update. Cannot specify both this and workflow_deployment_name. Leave null to create a new Workflow Deployment.
188
180
 
@@ -207,7 +199,7 @@ class AsyncRawWorkflowSandboxesClient:
207
199
 
208
200
  """
209
201
  _response = await self._client_wrapper.httpx_client.request(
210
- f"v1/workflow-sandboxes/{jsonable_encoder(id)}/workflows/{jsonable_encoder(workflow_id)}/deploy",
202
+ f"v1/workflow-sandboxes/{jsonable_encoder(id)}/deploy",
211
203
  base_url=self._client_wrapper.get_environment().default,
212
204
  method="POST",
213
205
  json={
@@ -41,7 +41,9 @@ class WorkflowsClient:
41
41
  exclude_display: typing.Optional[bool] = None,
42
42
  include_json: typing.Optional[bool] = None,
43
43
  include_sandbox: typing.Optional[bool] = None,
44
+ release_tag: typing.Optional[str] = None,
44
45
  strict: typing.Optional[bool] = None,
46
+ version: typing.Optional[str] = None,
45
47
  request_options: typing.Optional[RequestOptions] = None,
46
48
  ) -> typing.Iterator[bytes]:
47
49
  """
@@ -58,8 +60,14 @@ class WorkflowsClient:
58
60
 
59
61
  include_sandbox : typing.Optional[bool]
60
62
 
63
+ release_tag : typing.Optional[str]
64
+ Release tag to use when pulling from deployment (implies deployment-only lookup)
65
+
61
66
  strict : typing.Optional[bool]
62
67
 
68
+ version : typing.Optional[str]
69
+ Semantic version range to validate against the Workflow SDK version (e.g., '>=1.0.0,<1.2.3')
70
+
63
71
  request_options : typing.Optional[RequestOptions]
64
72
  Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
65
73
 
@@ -74,7 +82,9 @@ class WorkflowsClient:
74
82
  exclude_display=exclude_display,
75
83
  include_json=include_json,
76
84
  include_sandbox=include_sandbox,
85
+ release_tag=release_tag,
77
86
  strict=strict,
87
+ version=version,
78
88
  request_options=request_options,
79
89
  ) as r:
80
90
  yield from r.data
@@ -150,7 +160,9 @@ class AsyncWorkflowsClient:
150
160
  exclude_display: typing.Optional[bool] = None,
151
161
  include_json: typing.Optional[bool] = None,
152
162
  include_sandbox: typing.Optional[bool] = None,
163
+ release_tag: typing.Optional[str] = None,
153
164
  strict: typing.Optional[bool] = None,
165
+ version: typing.Optional[str] = None,
154
166
  request_options: typing.Optional[RequestOptions] = None,
155
167
  ) -> typing.AsyncIterator[bytes]:
156
168
  """
@@ -167,8 +179,14 @@ class AsyncWorkflowsClient:
167
179
 
168
180
  include_sandbox : typing.Optional[bool]
169
181
 
182
+ release_tag : typing.Optional[str]
183
+ Release tag to use when pulling from deployment (implies deployment-only lookup)
184
+
170
185
  strict : typing.Optional[bool]
171
186
 
187
+ version : typing.Optional[str]
188
+ Semantic version range to validate against the Workflow SDK version (e.g., '>=1.0.0,<1.2.3')
189
+
172
190
  request_options : typing.Optional[RequestOptions]
173
191
  Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
174
192
 
@@ -183,7 +201,9 @@ class AsyncWorkflowsClient:
183
201
  exclude_display=exclude_display,
184
202
  include_json=include_json,
185
203
  include_sandbox=include_sandbox,
204
+ release_tag=release_tag,
186
205
  strict=strict,
206
+ version=version,
187
207
  request_options=request_options,
188
208
  ) as r:
189
209
  async for _chunk in r.data:
@@ -33,7 +33,9 @@ class RawWorkflowsClient:
33
33
  exclude_display: typing.Optional[bool] = None,
34
34
  include_json: typing.Optional[bool] = None,
35
35
  include_sandbox: typing.Optional[bool] = None,
36
+ release_tag: typing.Optional[str] = None,
36
37
  strict: typing.Optional[bool] = None,
38
+ version: typing.Optional[str] = None,
37
39
  request_options: typing.Optional[RequestOptions] = None,
38
40
  ) -> typing.Iterator[HttpResponse[typing.Iterator[bytes]]]:
39
41
  """
@@ -50,8 +52,14 @@ class RawWorkflowsClient:
50
52
 
51
53
  include_sandbox : typing.Optional[bool]
52
54
 
55
+ release_tag : typing.Optional[str]
56
+ Release tag to use when pulling from deployment (implies deployment-only lookup)
57
+
53
58
  strict : typing.Optional[bool]
54
59
 
60
+ version : typing.Optional[str]
61
+ Semantic version range to validate against the Workflow SDK version (e.g., '>=1.0.0,<1.2.3')
62
+
55
63
  request_options : typing.Optional[RequestOptions]
56
64
  Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
57
65
 
@@ -69,7 +77,9 @@ class RawWorkflowsClient:
69
77
  "exclude_display": exclude_display,
70
78
  "include_json": include_json,
71
79
  "include_sandbox": include_sandbox,
80
+ "release_tag": release_tag,
72
81
  "strict": strict,
82
+ "version": version,
73
83
  },
74
84
  request_options=request_options,
75
85
  ) as _response:
@@ -185,7 +195,9 @@ class AsyncRawWorkflowsClient:
185
195
  exclude_display: typing.Optional[bool] = None,
186
196
  include_json: typing.Optional[bool] = None,
187
197
  include_sandbox: typing.Optional[bool] = None,
198
+ release_tag: typing.Optional[str] = None,
188
199
  strict: typing.Optional[bool] = None,
200
+ version: typing.Optional[str] = None,
189
201
  request_options: typing.Optional[RequestOptions] = None,
190
202
  ) -> typing.AsyncIterator[AsyncHttpResponse[typing.AsyncIterator[bytes]]]:
191
203
  """
@@ -202,8 +214,14 @@ class AsyncRawWorkflowsClient:
202
214
 
203
215
  include_sandbox : typing.Optional[bool]
204
216
 
217
+ release_tag : typing.Optional[str]
218
+ Release tag to use when pulling from deployment (implies deployment-only lookup)
219
+
205
220
  strict : typing.Optional[bool]
206
221
 
222
+ version : typing.Optional[str]
223
+ Semantic version range to validate against the Workflow SDK version (e.g., '>=1.0.0,<1.2.3')
224
+
207
225
  request_options : typing.Optional[RequestOptions]
208
226
  Request-specific configuration. You can pass in configuration such as `chunk_size`, and more to customize the request and response.
209
227
 
@@ -221,7 +239,9 @@ class AsyncRawWorkflowsClient:
221
239
  "exclude_display": exclude_display,
222
240
  "include_json": include_json,
223
241
  "include_sandbox": include_sandbox,
242
+ "release_tag": release_tag,
224
243
  "strict": strict,
244
+ "version": version,
225
245
  },
226
246
  request_options=request_options,
227
247
  ) as _response: