vellum-ai 1.2.1__py3-none-any.whl → 1.2.2__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/client/core/client_wrapper.py +2 -2
- vellum/prompts/blocks/compilation.py +13 -11
- vellum/workflows/emitters/vellum_emitter.py +16 -69
- vellum/workflows/events/tests/test_event.py +1 -0
- vellum/workflows/events/workflow.py +3 -0
- vellum/workflows/nodes/bases/base.py +0 -1
- vellum/workflows/nodes/core/inline_subworkflow_node/tests/test_node.py +35 -0
- vellum/workflows/nodes/displayable/bases/utils.py +4 -2
- vellum/workflows/nodes/displayable/subworkflow_deployment_node/node.py +88 -2
- vellum/workflows/nodes/displayable/tool_calling_node/node.py +1 -0
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +85 -1
- vellum/workflows/nodes/displayable/tool_calling_node/tests/test_utils.py +12 -0
- vellum/workflows/nodes/displayable/tool_calling_node/utils.py +5 -2
- vellum/workflows/ports/port.py +1 -11
- vellum/workflows/state/context.py +14 -0
- vellum/workflows/types/definition.py +4 -4
- vellum/workflows/utils/vellum_variables.py +5 -3
- vellum/workflows/workflows/base.py +1 -0
- {vellum_ai-1.2.1.dist-info → vellum_ai-1.2.2.dist-info}/METADATA +1 -1
- {vellum_ai-1.2.1.dist-info → vellum_ai-1.2.2.dist-info}/RECORD +55 -55
- vellum_ee/workflows/display/nodes/base_node_display.py +19 -10
- vellum_ee/workflows/display/nodes/vellum/api_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/code_execution_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/conditional_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/error_node.py +6 -4
- vellum_ee/workflows/display/nodes/vellum/final_output_node.py +6 -4
- vellum_ee/workflows/display/nodes/vellum/guardrail_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/inline_prompt_node.py +1 -8
- vellum_ee/workflows/display/nodes/vellum/inline_subworkflow_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/map_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/merge_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/note_node.py +2 -4
- vellum_ee/workflows/display/nodes/vellum/prompt_deployment_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/search_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/subworkflow_deployment_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/templating_node.py +1 -4
- vellum_ee/workflows/display/nodes/vellum/tests/test_code_execution_node.py +1 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_api_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_code_execution_node_serialization.py +12 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_conditional_node_serialization.py +16 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_error_node_serialization.py +5 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_guardrail_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_inline_subworkflow_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_map_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_merge_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_prompt_deployment_serialization.py +12 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_search_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_subworkflow_deployment_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_templating_node_serialization.py +4 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +5 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_composio_serialization.py +1 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +5 -0
- {vellum_ai-1.2.1.dist-info → vellum_ai-1.2.2.dist-info}/LICENSE +0 -0
- {vellum_ai-1.2.1.dist-info → vellum_ai-1.2.2.dist-info}/WHEEL +0 -0
- {vellum_ai-1.2.1.dist-info → vellum_ai-1.2.2.dist-info}/entry_points.txt +0 -0
@@ -110,6 +110,10 @@ def test_serialize_workflow_with_filepath():
|
|
110
110
|
"module": ["tests", "workflows", "basic_code_execution_node", "workflow"],
|
111
111
|
"name": "SimpleCodeExecutionNode",
|
112
112
|
},
|
113
|
+
"trigger": {
|
114
|
+
"id": "e02a2701-22c0-4533-8b00-175998e7350a",
|
115
|
+
"merge_behavior": "AWAIT_ANY",
|
116
|
+
},
|
113
117
|
"ports": [{"id": "832f81ec-427b-42a8-825c-e62c43c1f961", "name": "default", "type": "DEFAULT"}],
|
114
118
|
}
|
115
119
|
assert not DeepDiff(
|
@@ -342,6 +346,10 @@ def test_serialize_workflow_with_code():
|
|
342
346
|
"name": "SimpleCodeExecutionNode",
|
343
347
|
"module": ["tests", "workflows", "basic_code_execution_node", "workflow_with_code"],
|
344
348
|
},
|
349
|
+
"trigger": {
|
350
|
+
"id": "e02a2701-22c0-4533-8b00-175998e7350a",
|
351
|
+
"merge_behavior": "AWAIT_ANY",
|
352
|
+
},
|
345
353
|
"ports": [{"id": "832f81ec-427b-42a8-825c-e62c43c1f961", "name": "default", "type": "DEFAULT"}],
|
346
354
|
}
|
347
355
|
assert not DeepDiff(
|
@@ -602,6 +610,10 @@ def test_serialize_workflow__try_wrapped():
|
|
602
610
|
],
|
603
611
|
}
|
604
612
|
],
|
613
|
+
"trigger": {
|
614
|
+
"id": "e02a2701-22c0-4533-8b00-175998e7350a",
|
615
|
+
"merge_behavior": "AWAIT_ANY",
|
616
|
+
},
|
605
617
|
"ports": [{"id": "832f81ec-427b-42a8-825c-e62c43c1f961", "name": "default", "type": "DEFAULT"}],
|
606
618
|
}
|
607
619
|
|
@@ -424,6 +424,10 @@ def test_serialize_workflow():
|
|
424
424
|
"name": "CategoryConditionalNode",
|
425
425
|
"module": ["tests", "workflows", "basic_conditional_node", "workflow"],
|
426
426
|
},
|
427
|
+
"trigger": {
|
428
|
+
"id": "dd89e228-a23e-422b-80b2-34362c1c050e",
|
429
|
+
"merge_behavior": "AWAIT_ANY",
|
430
|
+
},
|
427
431
|
"ports": [
|
428
432
|
{
|
429
433
|
"id": "3a45b81f-95e4-4cbd-8997-bfdbe30251e8",
|
@@ -952,6 +956,10 @@ def test_conditional_node_serialize_all_operators_with_lhs_and_rhs(descriptor, o
|
|
952
956
|
"name": "SimpleConditionalNode",
|
953
957
|
"module": ["tests", "workflows", "basic_conditional_node", "workflow_with_only_one_conditional_node"],
|
954
958
|
},
|
959
|
+
"trigger": {
|
960
|
+
"id": "c6e99e94-bc8e-47a4-b75c-cc96c6bedbb0",
|
961
|
+
"merge_behavior": "AWAIT_ANY",
|
962
|
+
},
|
955
963
|
"ports": [
|
956
964
|
{
|
957
965
|
"id": "2ff87aa6-37cf-43dd-af9d-13b9198ab70a",
|
@@ -1063,6 +1071,10 @@ def test_conditional_node_serialize_all_operators_with_expression(descriptor, op
|
|
1063
1071
|
"name": "SimpleConditionalNode",
|
1064
1072
|
"module": ["tests", "workflows", "basic_conditional_node", "workflow_with_only_one_conditional_node"],
|
1065
1073
|
},
|
1074
|
+
"trigger": {
|
1075
|
+
"id": "c6e99e94-bc8e-47a4-b75c-cc96c6bedbb0",
|
1076
|
+
"merge_behavior": "AWAIT_ANY",
|
1077
|
+
},
|
1066
1078
|
"ports": [
|
1067
1079
|
{
|
1068
1080
|
"id": "2ff87aa6-37cf-43dd-af9d-13b9198ab70a",
|
@@ -1186,6 +1198,10 @@ def test_conditional_node_serialize_all_operators_with_value_and_start_and_end(d
|
|
1186
1198
|
"name": "SimpleConditionalNode",
|
1187
1199
|
"module": ["tests", "workflows", "basic_conditional_node", "workflow_with_only_one_conditional_node"],
|
1188
1200
|
},
|
1201
|
+
"trigger": {
|
1202
|
+
"id": "c6e99e94-bc8e-47a4-b75c-cc96c6bedbb0",
|
1203
|
+
"merge_behavior": "AWAIT_ANY",
|
1204
|
+
},
|
1189
1205
|
"ports": [
|
1190
1206
|
{
|
1191
1207
|
"id": "2ff87aa6-37cf-43dd-af9d-13b9198ab70a",
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_error_node_serialization.py
CHANGED
@@ -114,6 +114,11 @@ def test_serialize_workflow():
|
|
114
114
|
"name": "FailNode",
|
115
115
|
"module": ["tests", "workflows", "basic_error_node", "workflow"],
|
116
116
|
},
|
117
|
+
"trigger": {
|
118
|
+
"id": "70c19f1c-309c-4a5d-ba65-664c0bb2fedf",
|
119
|
+
"merge_behavior": "AWAIT_ATTRIBUTES",
|
120
|
+
},
|
121
|
+
"ports": [],
|
117
122
|
},
|
118
123
|
error_node,
|
119
124
|
ignore_order=True,
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_guardrail_node_serialization.py
CHANGED
@@ -117,6 +117,10 @@ def test_serialize_workflow():
|
|
117
117
|
"module": ["tests", "workflows", "basic_guardrail_node", "workflow"],
|
118
118
|
"name": "ExampleGuardrailNode",
|
119
119
|
},
|
120
|
+
"trigger": {
|
121
|
+
"id": "ce5b85b1-eded-46dd-b4b7-020afcdc67ab",
|
122
|
+
"merge_behavior": "AWAIT_ANY",
|
123
|
+
},
|
120
124
|
"ports": [{"id": "0ed87407-697e-4ae9-ab9b-6c5cc2e57cf7", "name": "default", "type": "DEFAULT"}],
|
121
125
|
}
|
122
126
|
|
@@ -324,6 +324,10 @@ def test_serialize_workflow():
|
|
324
324
|
"name": "ExampleInlineSubworkflowNode",
|
325
325
|
"module": ["tests", "workflows", "basic_inline_subworkflow", "workflow"],
|
326
326
|
},
|
327
|
+
"trigger": {
|
328
|
+
"id": "859a75a6-1bd2-4350-9509-4af66245e8e4",
|
329
|
+
"merge_behavior": "AWAIT_ATTRIBUTES",
|
330
|
+
},
|
327
331
|
"ports": [{"id": "cfd831bc-ee7f-44d0-8d76-0ba0cd0277dc", "name": "default", "type": "DEFAULT"}],
|
328
332
|
},
|
329
333
|
subworkflow_node,
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_map_node_serialization.py
CHANGED
@@ -286,6 +286,10 @@ def test_serialize_workflow():
|
|
286
286
|
"name": "MapFruitsNode",
|
287
287
|
"module": ["tests", "workflows", "basic_map_node", "workflow"],
|
288
288
|
},
|
289
|
+
"trigger": {
|
290
|
+
"id": "b5e8182e-20c5-482b-b4c5-4dde48c01472",
|
291
|
+
"merge_behavior": "AWAIT_ATTRIBUTES",
|
292
|
+
},
|
289
293
|
"ports": [{"id": "a2171a61-0657-43ad-b6d9-cf93ce3270d0", "name": "default", "type": "DEFAULT"}],
|
290
294
|
},
|
291
295
|
map_node,
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_merge_node_serialization.py
CHANGED
@@ -83,6 +83,10 @@ def test_serialize_workflow__await_all():
|
|
83
83
|
"module": ["tests", "workflows", "basic_merge_node", "await_all_workflow"],
|
84
84
|
"name": "AwaitAllMergeNode",
|
85
85
|
},
|
86
|
+
"trigger": {
|
87
|
+
"id": "0efd256f-f5f6-45fe-9adb-651780f5e63d",
|
88
|
+
"merge_behavior": "AWAIT_ALL",
|
89
|
+
},
|
86
90
|
"ports": [{"id": "3bbc469f-0fb0-4b3d-a28b-746fefec2818", "name": "default", "type": "DEFAULT"}],
|
87
91
|
},
|
88
92
|
merge_node,
|
@@ -150,6 +150,10 @@ def test_serialize_workflow(vellum_client):
|
|
150
150
|
"name": "ExamplePromptDeploymentNode",
|
151
151
|
"module": ["tests", "workflows", "basic_text_prompt_deployment", "workflow"],
|
152
152
|
},
|
153
|
+
"trigger": {
|
154
|
+
"id": "b7605c48-0937-4ecc-914e-0d1058130e65",
|
155
|
+
"merge_behavior": "AWAIT_ANY",
|
156
|
+
},
|
153
157
|
"ports": [{"id": "2f26c7e0-283d-4f04-b639-adebb56bc679", "name": "default", "type": "DEFAULT"}],
|
154
158
|
"outputs": [
|
155
159
|
{"id": "180355a8-e67c-4ce6-9ac3-e5dbb75a6629", "name": "json", "type": "JSON", "value": None},
|
@@ -384,6 +388,10 @@ def test_serialize_workflow_with_prompt_and_templating(vellum_client):
|
|
384
388
|
"workflow_with_prompt_deployment_json_reference",
|
385
389
|
],
|
386
390
|
},
|
391
|
+
"trigger": {
|
392
|
+
"id": "b7605c48-0937-4ecc-914e-0d1058130e65",
|
393
|
+
"merge_behavior": "AWAIT_ANY",
|
394
|
+
},
|
387
395
|
"ports": [{"id": "2f26c7e0-283d-4f04-b639-adebb56bc679", "name": "default", "type": "DEFAULT"}],
|
388
396
|
"outputs": [
|
389
397
|
{"id": "180355a8-e67c-4ce6-9ac3-e5dbb75a6629", "name": "json", "type": "JSON", "value": None},
|
@@ -479,6 +487,10 @@ def test_serialize_workflow_with_prompt_and_templating(vellum_client):
|
|
479
487
|
"workflow_with_prompt_deployment_json_reference",
|
480
488
|
],
|
481
489
|
},
|
490
|
+
"trigger": {
|
491
|
+
"id": "58427684-3848-498a-8299-c6b0fc70265d",
|
492
|
+
"merge_behavior": "AWAIT_ATTRIBUTES",
|
493
|
+
},
|
482
494
|
"ports": [{"id": "39317827-df43-4f5a-bfbc-20bffc839748", "name": "default", "type": "DEFAULT"}],
|
483
495
|
}
|
484
496
|
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_search_node_serialization.py
CHANGED
@@ -238,6 +238,10 @@ def test_serialize_workflow():
|
|
238
238
|
"name": "SimpleSearchNode",
|
239
239
|
"module": ["tests", "workflows", "basic_search_node", "workflow"],
|
240
240
|
},
|
241
|
+
"trigger": {
|
242
|
+
"id": "6d50305f-588b-469f-a042-b0767d3f99b1",
|
243
|
+
"merge_behavior": "AWAIT_ANY",
|
244
|
+
},
|
241
245
|
"ports": [{"id": "00ae06b3-f8d9-4ae6-9fbf-e4ff4d520e9b", "name": "default", "type": "DEFAULT"}],
|
242
246
|
}
|
243
247
|
|
@@ -153,6 +153,10 @@ def test_serialize_workflow(vellum_client):
|
|
153
153
|
"module": ["tests", "workflows", "basic_subworkflow_deployment", "workflow"],
|
154
154
|
"name": "ExampleSubworkflowDeploymentNode",
|
155
155
|
},
|
156
|
+
"trigger": {
|
157
|
+
"id": "e4d80502-9281-42c8-91e3-10817bcd7d9e",
|
158
|
+
"merge_behavior": "AWAIT_ANY",
|
159
|
+
},
|
156
160
|
"ports": [{"id": "ab0db8a9-7b53-4d88-8667-273b31303273", "name": "default", "type": "DEFAULT"}],
|
157
161
|
}
|
158
162
|
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_templating_node_serialization.py
CHANGED
@@ -112,6 +112,10 @@ def test_serialize_workflow():
|
|
112
112
|
"name": "ExampleTemplatingNode",
|
113
113
|
"module": ["tests", "workflows", "basic_templating_node", "workflow_with_json_input"],
|
114
114
|
},
|
115
|
+
"trigger": {
|
116
|
+
"id": "58427684-3848-498a-8299-c6b0fc70265d",
|
117
|
+
"merge_behavior": "AWAIT_ATTRIBUTES",
|
118
|
+
},
|
115
119
|
"ports": [{"id": "39317827-df43-4f5a-bfbc-20bffc839748", "name": "default", "type": "DEFAULT"}],
|
116
120
|
},
|
117
121
|
templating_node,
|
vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py
CHANGED
@@ -103,4 +103,9 @@ def test_serialize_workflow():
|
|
103
103
|
"value": {"type": "WORKFLOW_INPUT", "input_variable_id": "e39a7b63-de15-490a-ae9b-8112c767aea0"},
|
104
104
|
}
|
105
105
|
],
|
106
|
+
"trigger": {
|
107
|
+
"id": "0173d3c6-11d1-44b7-b070-ca9ff5119046",
|
108
|
+
"merge_behavior": "AWAIT_ANY",
|
109
|
+
},
|
110
|
+
"ports": [],
|
106
111
|
}
|
vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py
CHANGED
@@ -81,6 +81,11 @@ def test_serialize_workflow__missing_final_output_node():
|
|
81
81
|
},
|
82
82
|
}
|
83
83
|
],
|
84
|
+
"trigger": {
|
85
|
+
"id": "a0c2eb7a-398e-4f28-b63d-f3bae9b563ee",
|
86
|
+
"merge_behavior": "AWAIT_ANY",
|
87
|
+
},
|
88
|
+
"ports": [],
|
84
89
|
},
|
85
90
|
{
|
86
91
|
"id": "bb88768d-472e-4997-b7ea-de09163d1b4c",
|
File without changes
|
File without changes
|
File without changes
|