vellum-ai 1.2.4__py3-none-any.whl → 1.2.5__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.
- vellum/__init__.py +48 -0
- vellum/client/core/client_wrapper.py +2 -2
- vellum/client/resources/workflows/client.py +20 -0
- vellum/client/resources/workflows/raw_client.py +20 -0
- vellum/client/types/__init__.py +48 -0
- vellum/client/types/audio_input.py +30 -0
- vellum/client/types/code_executor_input.py +8 -0
- vellum/client/types/document_input.py +30 -0
- vellum/client/types/image_input.py +30 -0
- vellum/client/types/named_scenario_input_audio_variable_value_request.py +22 -0
- vellum/client/types/named_scenario_input_document_variable_value_request.py +22 -0
- vellum/client/types/named_scenario_input_image_variable_value_request.py +22 -0
- vellum/client/types/named_scenario_input_request.py +8 -0
- vellum/client/types/named_scenario_input_video_variable_value_request.py +22 -0
- vellum/client/types/named_test_case_audio_variable_value.py +26 -0
- vellum/client/types/named_test_case_audio_variable_value_request.py +26 -0
- vellum/client/types/named_test_case_document_variable_value.py +22 -0
- vellum/client/types/named_test_case_document_variable_value_request.py +22 -0
- vellum/client/types/named_test_case_image_variable_value.py +22 -0
- vellum/client/types/named_test_case_image_variable_value_request.py +22 -0
- vellum/client/types/named_test_case_variable_value.py +8 -0
- vellum/client/types/named_test_case_variable_value_request.py +8 -0
- vellum/client/types/named_test_case_video_variable_value.py +22 -0
- vellum/client/types/named_test_case_video_variable_value_request.py +22 -0
- vellum/client/types/node_execution_span_attributes.py +1 -0
- vellum/client/types/scenario_input.py +11 -1
- vellum/client/types/scenario_input_audio_variable_value.py +22 -0
- vellum/client/types/scenario_input_document_variable_value.py +22 -0
- vellum/client/types/scenario_input_image_variable_value.py +22 -0
- vellum/client/types/scenario_input_video_variable_value.py +22 -0
- vellum/client/types/span_link.py +1 -1
- vellum/client/types/span_link_type_enum.py +1 -1
- vellum/client/types/test_case_audio_variable_value.py +27 -0
- vellum/client/types/test_case_document_variable_value.py +27 -0
- vellum/client/types/test_case_image_variable_value.py +27 -0
- vellum/client/types/test_case_variable_value.py +8 -0
- vellum/client/types/test_case_video_variable_value.py +27 -0
- vellum/client/types/video_input.py +30 -0
- vellum/client/types/workflow_push_deployment_config_request.py +1 -0
- vellum/types/audio_input.py +3 -0
- vellum/types/document_input.py +3 -0
- vellum/types/image_input.py +3 -0
- vellum/types/named_scenario_input_audio_variable_value_request.py +3 -0
- vellum/types/named_scenario_input_document_variable_value_request.py +3 -0
- vellum/types/named_scenario_input_image_variable_value_request.py +3 -0
- vellum/types/named_scenario_input_video_variable_value_request.py +3 -0
- vellum/types/named_test_case_audio_variable_value.py +3 -0
- vellum/types/named_test_case_audio_variable_value_request.py +3 -0
- vellum/types/named_test_case_document_variable_value.py +3 -0
- vellum/types/named_test_case_document_variable_value_request.py +3 -0
- vellum/types/named_test_case_image_variable_value.py +3 -0
- vellum/types/named_test_case_image_variable_value_request.py +3 -0
- vellum/types/named_test_case_video_variable_value.py +3 -0
- vellum/types/named_test_case_video_variable_value_request.py +3 -0
- vellum/types/scenario_input_audio_variable_value.py +3 -0
- vellum/types/scenario_input_document_variable_value.py +3 -0
- vellum/types/scenario_input_image_variable_value.py +3 -0
- vellum/types/scenario_input_video_variable_value.py +3 -0
- vellum/types/test_case_audio_variable_value.py +3 -0
- vellum/types/test_case_document_variable_value.py +3 -0
- vellum/types/test_case_image_variable_value.py +3 -0
- vellum/types/test_case_video_variable_value.py +3 -0
- vellum/types/video_input.py +3 -0
- vellum/workflows/resolvers/base.py +18 -1
- vellum/workflows/resolvers/resolver.py +42 -0
- vellum/workflows/resolvers/tests/test_resolver.py +59 -0
- vellum/workflows/workflows/base.py +3 -0
- {vellum_ai-1.2.4.dist-info → vellum_ai-1.2.5.dist-info}/METADATA +1 -1
- {vellum_ai-1.2.4.dist-info → vellum_ai-1.2.5.dist-info}/RECORD +74 -24
- vellum_ee/workflows/display/utils/events.py +19 -1
- vellum_ee/workflows/display/utils/tests/test_events.py +42 -0
- {vellum_ai-1.2.4.dist-info → vellum_ai-1.2.5.dist-info}/LICENSE +0 -0
- {vellum_ai-1.2.4.dist-info → vellum_ai-1.2.5.dist-info}/WHEEL +0 -0
- {vellum_ai-1.2.4.dist-info → vellum_ai-1.2.5.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,
|
@@ -703,6 +727,7 @@ __all__ = [
|
|
703
727
|
"AsyncVellum",
|
704
728
|
"AudioChatMessageContent",
|
705
729
|
"AudioChatMessageContentRequest",
|
730
|
+
"AudioInput",
|
706
731
|
"AudioInputRequest",
|
707
732
|
"AudioPromptBlock",
|
708
733
|
"AudioVellumValue",
|
@@ -776,6 +801,7 @@ __all__ = [
|
|
776
801
|
"DocumentIndexIndexingConfigRequest",
|
777
802
|
"DocumentIndexRead",
|
778
803
|
"DocumentIndexesListRequestStatus",
|
804
|
+
"DocumentInput",
|
779
805
|
"DocumentInputRequest",
|
780
806
|
"DocumentProcessingState",
|
781
807
|
"DocumentPromptBlock",
|
@@ -877,6 +903,7 @@ __all__ = [
|
|
877
903
|
"HkunlpInstructorXlVectorizerRequest",
|
878
904
|
"ImageChatMessageContent",
|
879
905
|
"ImageChatMessageContentRequest",
|
906
|
+
"ImageInput",
|
880
907
|
"ImageInputRequest",
|
881
908
|
"ImagePromptBlock",
|
882
909
|
"ImageVellumValue",
|
@@ -919,18 +946,28 @@ __all__ = [
|
|
919
946
|
"MlModelRead",
|
920
947
|
"MlModelUsage",
|
921
948
|
"MlModelUsageWrapper",
|
949
|
+
"NamedScenarioInputAudioVariableValueRequest",
|
922
950
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
951
|
+
"NamedScenarioInputDocumentVariableValueRequest",
|
952
|
+
"NamedScenarioInputImageVariableValueRequest",
|
923
953
|
"NamedScenarioInputJsonVariableValueRequest",
|
924
954
|
"NamedScenarioInputRequest",
|
925
955
|
"NamedScenarioInputStringVariableValueRequest",
|
956
|
+
"NamedScenarioInputVideoVariableValueRequest",
|
926
957
|
"NamedTestCaseArrayVariableValue",
|
927
958
|
"NamedTestCaseArrayVariableValueRequest",
|
959
|
+
"NamedTestCaseAudioVariableValue",
|
960
|
+
"NamedTestCaseAudioVariableValueRequest",
|
928
961
|
"NamedTestCaseChatHistoryVariableValue",
|
929
962
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
963
|
+
"NamedTestCaseDocumentVariableValue",
|
964
|
+
"NamedTestCaseDocumentVariableValueRequest",
|
930
965
|
"NamedTestCaseErrorVariableValue",
|
931
966
|
"NamedTestCaseErrorVariableValueRequest",
|
932
967
|
"NamedTestCaseFunctionCallVariableValue",
|
933
968
|
"NamedTestCaseFunctionCallVariableValueRequest",
|
969
|
+
"NamedTestCaseImageVariableValue",
|
970
|
+
"NamedTestCaseImageVariableValueRequest",
|
934
971
|
"NamedTestCaseJsonVariableValue",
|
935
972
|
"NamedTestCaseJsonVariableValueRequest",
|
936
973
|
"NamedTestCaseNumberVariableValue",
|
@@ -941,6 +978,8 @@ __all__ = [
|
|
941
978
|
"NamedTestCaseStringVariableValueRequest",
|
942
979
|
"NamedTestCaseVariableValue",
|
943
980
|
"NamedTestCaseVariableValueRequest",
|
981
|
+
"NamedTestCaseVideoVariableValue",
|
982
|
+
"NamedTestCaseVideoVariableValueRequest",
|
944
983
|
"NewMemberJoinBehaviorEnum",
|
945
984
|
"NodeExecutionFulfilledBody",
|
946
985
|
"NodeExecutionFulfilledEvent",
|
@@ -1062,9 +1101,13 @@ __all__ = [
|
|
1062
1101
|
"RichTextPromptBlock",
|
1063
1102
|
"SandboxScenario",
|
1064
1103
|
"ScenarioInput",
|
1104
|
+
"ScenarioInputAudioVariableValue",
|
1065
1105
|
"ScenarioInputChatHistoryVariableValue",
|
1106
|
+
"ScenarioInputDocumentVariableValue",
|
1107
|
+
"ScenarioInputImageVariableValue",
|
1066
1108
|
"ScenarioInputJsonVariableValue",
|
1067
1109
|
"ScenarioInputStringVariableValue",
|
1110
|
+
"ScenarioInputVideoVariableValue",
|
1068
1111
|
"SearchFiltersRequest",
|
1069
1112
|
"SearchNodeResult",
|
1070
1113
|
"SearchNodeResultData",
|
@@ -1131,14 +1174,18 @@ __all__ = [
|
|
1131
1174
|
"TerminalNodeSearchResultsResult",
|
1132
1175
|
"TerminalNodeStringResult",
|
1133
1176
|
"TestCaseArrayVariableValue",
|
1177
|
+
"TestCaseAudioVariableValue",
|
1134
1178
|
"TestCaseChatHistoryVariableValue",
|
1179
|
+
"TestCaseDocumentVariableValue",
|
1135
1180
|
"TestCaseErrorVariableValue",
|
1136
1181
|
"TestCaseFunctionCallVariableValue",
|
1182
|
+
"TestCaseImageVariableValue",
|
1137
1183
|
"TestCaseJsonVariableValue",
|
1138
1184
|
"TestCaseNumberVariableValue",
|
1139
1185
|
"TestCaseSearchResultsVariableValue",
|
1140
1186
|
"TestCaseStringVariableValue",
|
1141
1187
|
"TestCaseVariableValue",
|
1188
|
+
"TestCaseVideoVariableValue",
|
1142
1189
|
"TestSuiteRunDeploymentReleaseTagExecConfig",
|
1143
1190
|
"TestSuiteRunDeploymentReleaseTagExecConfigData",
|
1144
1191
|
"TestSuiteRunDeploymentReleaseTagExecConfigDataRequest",
|
@@ -1244,6 +1291,7 @@ __all__ = [
|
|
1244
1291
|
"VellumWorkflowExecutionEvent",
|
1245
1292
|
"VideoChatMessageContent",
|
1246
1293
|
"VideoChatMessageContentRequest",
|
1294
|
+
"VideoInput",
|
1247
1295
|
"VideoInputRequest",
|
1248
1296
|
"VideoPromptBlock",
|
1249
1297
|
"VideoVellumValue",
|
@@ -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.
|
30
|
+
"User-Agent": "vellum-ai/1.2.5",
|
31
31
|
"X-Fern-Language": "Python",
|
32
32
|
"X-Fern-SDK-Name": "vellum-ai",
|
33
|
-
"X-Fern-SDK-Version": "1.2.
|
33
|
+
"X-Fern-SDK-Version": "1.2.5",
|
34
34
|
**(self.get_custom_headers() or {}),
|
35
35
|
}
|
36
36
|
if self._api_version is not None:
|
@@ -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:
|
vellum/client/types/__init__.py
CHANGED
@@ -22,6 +22,7 @@ from .array_vellum_value import ArrayVellumValue
|
|
22
22
|
from .array_vellum_value_request import ArrayVellumValueRequest
|
23
23
|
from .audio_chat_message_content import AudioChatMessageContent
|
24
24
|
from .audio_chat_message_content_request import AudioChatMessageContentRequest
|
25
|
+
from .audio_input import AudioInput
|
25
26
|
from .audio_input_request import AudioInputRequest
|
26
27
|
from .audio_prompt_block import AudioPromptBlock
|
27
28
|
from .audio_vellum_value import AudioVellumValue
|
@@ -100,6 +101,7 @@ from .document_index_chunking_request import DocumentIndexChunkingRequest
|
|
100
101
|
from .document_index_indexing_config import DocumentIndexIndexingConfig
|
101
102
|
from .document_index_indexing_config_request import DocumentIndexIndexingConfigRequest
|
102
103
|
from .document_index_read import DocumentIndexRead
|
104
|
+
from .document_input import DocumentInput
|
103
105
|
from .document_input_request import DocumentInputRequest
|
104
106
|
from .document_processing_state import DocumentProcessingState
|
105
107
|
from .document_prompt_block import DocumentPromptBlock
|
@@ -203,6 +205,7 @@ from .hkunlp_instructor_xl_vectorizer import HkunlpInstructorXlVectorizer
|
|
203
205
|
from .hkunlp_instructor_xl_vectorizer_request import HkunlpInstructorXlVectorizerRequest
|
204
206
|
from .image_chat_message_content import ImageChatMessageContent
|
205
207
|
from .image_chat_message_content_request import ImageChatMessageContentRequest
|
208
|
+
from .image_input import ImageInput
|
206
209
|
from .image_input_request import ImageInputRequest
|
207
210
|
from .image_prompt_block import ImagePromptBlock
|
208
211
|
from .image_vellum_value import ImageVellumValue
|
@@ -241,18 +244,28 @@ from .metric_node_result import MetricNodeResult
|
|
241
244
|
from .ml_model_read import MlModelRead
|
242
245
|
from .ml_model_usage import MlModelUsage
|
243
246
|
from .ml_model_usage_wrapper import MlModelUsageWrapper
|
247
|
+
from .named_scenario_input_audio_variable_value_request import NamedScenarioInputAudioVariableValueRequest
|
244
248
|
from .named_scenario_input_chat_history_variable_value_request import NamedScenarioInputChatHistoryVariableValueRequest
|
249
|
+
from .named_scenario_input_document_variable_value_request import NamedScenarioInputDocumentVariableValueRequest
|
250
|
+
from .named_scenario_input_image_variable_value_request import NamedScenarioInputImageVariableValueRequest
|
245
251
|
from .named_scenario_input_json_variable_value_request import NamedScenarioInputJsonVariableValueRequest
|
246
252
|
from .named_scenario_input_request import NamedScenarioInputRequest
|
247
253
|
from .named_scenario_input_string_variable_value_request import NamedScenarioInputStringVariableValueRequest
|
254
|
+
from .named_scenario_input_video_variable_value_request import NamedScenarioInputVideoVariableValueRequest
|
248
255
|
from .named_test_case_array_variable_value import NamedTestCaseArrayVariableValue
|
249
256
|
from .named_test_case_array_variable_value_request import NamedTestCaseArrayVariableValueRequest
|
257
|
+
from .named_test_case_audio_variable_value import NamedTestCaseAudioVariableValue
|
258
|
+
from .named_test_case_audio_variable_value_request import NamedTestCaseAudioVariableValueRequest
|
250
259
|
from .named_test_case_chat_history_variable_value import NamedTestCaseChatHistoryVariableValue
|
251
260
|
from .named_test_case_chat_history_variable_value_request import NamedTestCaseChatHistoryVariableValueRequest
|
261
|
+
from .named_test_case_document_variable_value import NamedTestCaseDocumentVariableValue
|
262
|
+
from .named_test_case_document_variable_value_request import NamedTestCaseDocumentVariableValueRequest
|
252
263
|
from .named_test_case_error_variable_value import NamedTestCaseErrorVariableValue
|
253
264
|
from .named_test_case_error_variable_value_request import NamedTestCaseErrorVariableValueRequest
|
254
265
|
from .named_test_case_function_call_variable_value import NamedTestCaseFunctionCallVariableValue
|
255
266
|
from .named_test_case_function_call_variable_value_request import NamedTestCaseFunctionCallVariableValueRequest
|
267
|
+
from .named_test_case_image_variable_value import NamedTestCaseImageVariableValue
|
268
|
+
from .named_test_case_image_variable_value_request import NamedTestCaseImageVariableValueRequest
|
256
269
|
from .named_test_case_json_variable_value import NamedTestCaseJsonVariableValue
|
257
270
|
from .named_test_case_json_variable_value_request import NamedTestCaseJsonVariableValueRequest
|
258
271
|
from .named_test_case_number_variable_value import NamedTestCaseNumberVariableValue
|
@@ -263,6 +276,8 @@ from .named_test_case_string_variable_value import NamedTestCaseStringVariableVa
|
|
263
276
|
from .named_test_case_string_variable_value_request import NamedTestCaseStringVariableValueRequest
|
264
277
|
from .named_test_case_variable_value import NamedTestCaseVariableValue
|
265
278
|
from .named_test_case_variable_value_request import NamedTestCaseVariableValueRequest
|
279
|
+
from .named_test_case_video_variable_value import NamedTestCaseVideoVariableValue
|
280
|
+
from .named_test_case_video_variable_value_request import NamedTestCaseVideoVariableValueRequest
|
266
281
|
from .new_member_join_behavior_enum import NewMemberJoinBehaviorEnum
|
267
282
|
from .node_execution_fulfilled_body import NodeExecutionFulfilledBody
|
268
283
|
from .node_execution_fulfilled_event import NodeExecutionFulfilledEvent
|
@@ -383,9 +398,13 @@ from .rich_text_child_block import RichTextChildBlock
|
|
383
398
|
from .rich_text_prompt_block import RichTextPromptBlock
|
384
399
|
from .sandbox_scenario import SandboxScenario
|
385
400
|
from .scenario_input import ScenarioInput
|
401
|
+
from .scenario_input_audio_variable_value import ScenarioInputAudioVariableValue
|
386
402
|
from .scenario_input_chat_history_variable_value import ScenarioInputChatHistoryVariableValue
|
403
|
+
from .scenario_input_document_variable_value import ScenarioInputDocumentVariableValue
|
404
|
+
from .scenario_input_image_variable_value import ScenarioInputImageVariableValue
|
387
405
|
from .scenario_input_json_variable_value import ScenarioInputJsonVariableValue
|
388
406
|
from .scenario_input_string_variable_value import ScenarioInputStringVariableValue
|
407
|
+
from .scenario_input_video_variable_value import ScenarioInputVideoVariableValue
|
389
408
|
from .search_filters_request import SearchFiltersRequest
|
390
409
|
from .search_node_result import SearchNodeResult
|
391
410
|
from .search_node_result_data import SearchNodeResultData
|
@@ -452,14 +471,18 @@ from .terminal_node_result_output import TerminalNodeResultOutput
|
|
452
471
|
from .terminal_node_search_results_result import TerminalNodeSearchResultsResult
|
453
472
|
from .terminal_node_string_result import TerminalNodeStringResult
|
454
473
|
from .test_case_array_variable_value import TestCaseArrayVariableValue
|
474
|
+
from .test_case_audio_variable_value import TestCaseAudioVariableValue
|
455
475
|
from .test_case_chat_history_variable_value import TestCaseChatHistoryVariableValue
|
476
|
+
from .test_case_document_variable_value import TestCaseDocumentVariableValue
|
456
477
|
from .test_case_error_variable_value import TestCaseErrorVariableValue
|
457
478
|
from .test_case_function_call_variable_value import TestCaseFunctionCallVariableValue
|
479
|
+
from .test_case_image_variable_value import TestCaseImageVariableValue
|
458
480
|
from .test_case_json_variable_value import TestCaseJsonVariableValue
|
459
481
|
from .test_case_number_variable_value import TestCaseNumberVariableValue
|
460
482
|
from .test_case_search_results_variable_value import TestCaseSearchResultsVariableValue
|
461
483
|
from .test_case_string_variable_value import TestCaseStringVariableValue
|
462
484
|
from .test_case_variable_value import TestCaseVariableValue
|
485
|
+
from .test_case_video_variable_value import TestCaseVideoVariableValue
|
463
486
|
from .test_suite_run_deployment_release_tag_exec_config import TestSuiteRunDeploymentReleaseTagExecConfig
|
464
487
|
from .test_suite_run_deployment_release_tag_exec_config_data import TestSuiteRunDeploymentReleaseTagExecConfigData
|
465
488
|
from .test_suite_run_deployment_release_tag_exec_config_data_request import (
|
@@ -577,6 +600,7 @@ from .vellum_video_request import VellumVideoRequest
|
|
577
600
|
from .vellum_workflow_execution_event import VellumWorkflowExecutionEvent
|
578
601
|
from .video_chat_message_content import VideoChatMessageContent
|
579
602
|
from .video_chat_message_content_request import VideoChatMessageContentRequest
|
603
|
+
from .video_input import VideoInput
|
580
604
|
from .video_input_request import VideoInputRequest
|
581
605
|
from .video_prompt_block import VideoPromptBlock
|
582
606
|
from .video_vellum_value import VideoVellumValue
|
@@ -685,6 +709,7 @@ __all__ = [
|
|
685
709
|
"ArrayVellumValueRequest",
|
686
710
|
"AudioChatMessageContent",
|
687
711
|
"AudioChatMessageContentRequest",
|
712
|
+
"AudioInput",
|
688
713
|
"AudioInputRequest",
|
689
714
|
"AudioPromptBlock",
|
690
715
|
"AudioVellumValue",
|
@@ -755,6 +780,7 @@ __all__ = [
|
|
755
780
|
"DocumentIndexIndexingConfig",
|
756
781
|
"DocumentIndexIndexingConfigRequest",
|
757
782
|
"DocumentIndexRead",
|
783
|
+
"DocumentInput",
|
758
784
|
"DocumentInputRequest",
|
759
785
|
"DocumentProcessingState",
|
760
786
|
"DocumentPromptBlock",
|
@@ -854,6 +880,7 @@ __all__ = [
|
|
854
880
|
"HkunlpInstructorXlVectorizerRequest",
|
855
881
|
"ImageChatMessageContent",
|
856
882
|
"ImageChatMessageContentRequest",
|
883
|
+
"ImageInput",
|
857
884
|
"ImageInputRequest",
|
858
885
|
"ImagePromptBlock",
|
859
886
|
"ImageVellumValue",
|
@@ -892,18 +919,28 @@ __all__ = [
|
|
892
919
|
"MlModelRead",
|
893
920
|
"MlModelUsage",
|
894
921
|
"MlModelUsageWrapper",
|
922
|
+
"NamedScenarioInputAudioVariableValueRequest",
|
895
923
|
"NamedScenarioInputChatHistoryVariableValueRequest",
|
924
|
+
"NamedScenarioInputDocumentVariableValueRequest",
|
925
|
+
"NamedScenarioInputImageVariableValueRequest",
|
896
926
|
"NamedScenarioInputJsonVariableValueRequest",
|
897
927
|
"NamedScenarioInputRequest",
|
898
928
|
"NamedScenarioInputStringVariableValueRequest",
|
929
|
+
"NamedScenarioInputVideoVariableValueRequest",
|
899
930
|
"NamedTestCaseArrayVariableValue",
|
900
931
|
"NamedTestCaseArrayVariableValueRequest",
|
932
|
+
"NamedTestCaseAudioVariableValue",
|
933
|
+
"NamedTestCaseAudioVariableValueRequest",
|
901
934
|
"NamedTestCaseChatHistoryVariableValue",
|
902
935
|
"NamedTestCaseChatHistoryVariableValueRequest",
|
936
|
+
"NamedTestCaseDocumentVariableValue",
|
937
|
+
"NamedTestCaseDocumentVariableValueRequest",
|
903
938
|
"NamedTestCaseErrorVariableValue",
|
904
939
|
"NamedTestCaseErrorVariableValueRequest",
|
905
940
|
"NamedTestCaseFunctionCallVariableValue",
|
906
941
|
"NamedTestCaseFunctionCallVariableValueRequest",
|
942
|
+
"NamedTestCaseImageVariableValue",
|
943
|
+
"NamedTestCaseImageVariableValueRequest",
|
907
944
|
"NamedTestCaseJsonVariableValue",
|
908
945
|
"NamedTestCaseJsonVariableValueRequest",
|
909
946
|
"NamedTestCaseNumberVariableValue",
|
@@ -914,6 +951,8 @@ __all__ = [
|
|
914
951
|
"NamedTestCaseStringVariableValueRequest",
|
915
952
|
"NamedTestCaseVariableValue",
|
916
953
|
"NamedTestCaseVariableValueRequest",
|
954
|
+
"NamedTestCaseVideoVariableValue",
|
955
|
+
"NamedTestCaseVideoVariableValueRequest",
|
917
956
|
"NewMemberJoinBehaviorEnum",
|
918
957
|
"NodeExecutionFulfilledBody",
|
919
958
|
"NodeExecutionFulfilledEvent",
|
@@ -1034,9 +1073,13 @@ __all__ = [
|
|
1034
1073
|
"RichTextPromptBlock",
|
1035
1074
|
"SandboxScenario",
|
1036
1075
|
"ScenarioInput",
|
1076
|
+
"ScenarioInputAudioVariableValue",
|
1037
1077
|
"ScenarioInputChatHistoryVariableValue",
|
1078
|
+
"ScenarioInputDocumentVariableValue",
|
1079
|
+
"ScenarioInputImageVariableValue",
|
1038
1080
|
"ScenarioInputJsonVariableValue",
|
1039
1081
|
"ScenarioInputStringVariableValue",
|
1082
|
+
"ScenarioInputVideoVariableValue",
|
1040
1083
|
"SearchFiltersRequest",
|
1041
1084
|
"SearchNodeResult",
|
1042
1085
|
"SearchNodeResultData",
|
@@ -1103,14 +1146,18 @@ __all__ = [
|
|
1103
1146
|
"TerminalNodeSearchResultsResult",
|
1104
1147
|
"TerminalNodeStringResult",
|
1105
1148
|
"TestCaseArrayVariableValue",
|
1149
|
+
"TestCaseAudioVariableValue",
|
1106
1150
|
"TestCaseChatHistoryVariableValue",
|
1151
|
+
"TestCaseDocumentVariableValue",
|
1107
1152
|
"TestCaseErrorVariableValue",
|
1108
1153
|
"TestCaseFunctionCallVariableValue",
|
1154
|
+
"TestCaseImageVariableValue",
|
1109
1155
|
"TestCaseJsonVariableValue",
|
1110
1156
|
"TestCaseNumberVariableValue",
|
1111
1157
|
"TestCaseSearchResultsVariableValue",
|
1112
1158
|
"TestCaseStringVariableValue",
|
1113
1159
|
"TestCaseVariableValue",
|
1160
|
+
"TestCaseVideoVariableValue",
|
1114
1161
|
"TestSuiteRunDeploymentReleaseTagExecConfig",
|
1115
1162
|
"TestSuiteRunDeploymentReleaseTagExecConfigData",
|
1116
1163
|
"TestSuiteRunDeploymentReleaseTagExecConfigDataRequest",
|
@@ -1212,6 +1259,7 @@ __all__ = [
|
|
1212
1259
|
"VellumWorkflowExecutionEvent",
|
1213
1260
|
"VideoChatMessageContent",
|
1214
1261
|
"VideoChatMessageContentRequest",
|
1262
|
+
"VideoInput",
|
1215
1263
|
"VideoInputRequest",
|
1216
1264
|
"VideoPromptBlock",
|
1217
1265
|
"VideoVellumValue",
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
|
5
|
+
import pydantic
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
7
|
+
from .vellum_audio import VellumAudio
|
8
|
+
|
9
|
+
|
10
|
+
class AudioInput(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Audio value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["AUDIO"] = "AUDIO"
|
21
|
+
value: VellumAudio
|
22
|
+
|
23
|
+
if IS_PYDANTIC_V2:
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
+
else:
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic.Extra.allow
|
@@ -3,14 +3,18 @@
|
|
3
3
|
import typing
|
4
4
|
|
5
5
|
from .array_input import ArrayInput
|
6
|
+
from .audio_input import AudioInput
|
6
7
|
from .chat_history_input import ChatHistoryInput
|
7
8
|
from .code_executor_secret_input import CodeExecutorSecretInput
|
9
|
+
from .document_input import DocumentInput
|
8
10
|
from .error_input import ErrorInput
|
9
11
|
from .function_call_input import FunctionCallInput
|
12
|
+
from .image_input import ImageInput
|
10
13
|
from .json_input import JsonInput
|
11
14
|
from .number_input import NumberInput
|
12
15
|
from .search_results_input import SearchResultsInput
|
13
16
|
from .string_input import StringInput
|
17
|
+
from .video_input import VideoInput
|
14
18
|
|
15
19
|
CodeExecutorInput = typing.Union[
|
16
20
|
StringInput,
|
@@ -21,5 +25,9 @@ CodeExecutorInput = typing.Union[
|
|
21
25
|
ErrorInput,
|
22
26
|
ArrayInput,
|
23
27
|
FunctionCallInput,
|
28
|
+
AudioInput,
|
29
|
+
VideoInput,
|
30
|
+
ImageInput,
|
31
|
+
DocumentInput,
|
24
32
|
CodeExecutorSecretInput,
|
25
33
|
]
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
|
5
|
+
import pydantic
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
7
|
+
from .vellum_document import VellumDocument
|
8
|
+
|
9
|
+
|
10
|
+
class DocumentInput(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Document value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["DOCUMENT"] = "DOCUMENT"
|
21
|
+
value: VellumDocument
|
22
|
+
|
23
|
+
if IS_PYDANTIC_V2:
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
+
else:
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic.Extra.allow
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
2
|
+
|
3
|
+
import typing
|
4
|
+
|
5
|
+
import pydantic
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
7
|
+
from .vellum_image import VellumImage
|
8
|
+
|
9
|
+
|
10
|
+
class ImageInput(UniversalBaseModel):
|
11
|
+
"""
|
12
|
+
A user input representing a Vellum Image value
|
13
|
+
"""
|
14
|
+
|
15
|
+
name: str = pydantic.Field()
|
16
|
+
"""
|
17
|
+
The variable's name
|
18
|
+
"""
|
19
|
+
|
20
|
+
type: typing.Literal["IMAGE"] = "IMAGE"
|
21
|
+
value: VellumImage
|
22
|
+
|
23
|
+
if IS_PYDANTIC_V2:
|
24
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
25
|
+
else:
|
26
|
+
|
27
|
+
class Config:
|
28
|
+
frozen = True
|
29
|
+
smart_union = True
|
30
|
+
extra = pydantic.Extra.allow
|