vellum-ai 0.14.65__py3-none-any.whl → 0.14.67__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/README.md +1 -1
- vellum/client/core/client_wrapper.py +1 -1
- vellum/client/reference.md +2767 -0
- vellum/client/types/document_read.py +0 -1
- vellum/client/types/folder_entity_prompt_sandbox_data.py +1 -0
- vellum/client/types/folder_entity_workflow_sandbox_data.py +1 -0
- vellum/workflows/expressions/accessor.py +22 -5
- vellum/workflows/expressions/tests/test_accessor.py +189 -0
- vellum/workflows/nodes/bases/base.py +30 -39
- vellum/workflows/nodes/bases/tests/test_base_node.py +48 -2
- vellum/workflows/nodes/displayable/api_node/node.py +3 -1
- vellum/workflows/nodes/displayable/api_node/tests/test_api_node.py +32 -0
- vellum/workflows/nodes/displayable/bases/base_prompt_node/node.py +28 -0
- vellum/workflows/nodes/displayable/bases/inline_prompt_node/tests/test_inline_prompt_node.py +26 -23
- vellum/workflows/nodes/displayable/conditional_node/node.py +1 -2
- vellum/workflows/nodes/displayable/final_output_node/node.py +2 -0
- vellum/workflows/nodes/displayable/inline_prompt_node/node.py +4 -14
- vellum/workflows/nodes/displayable/search_node/node.py +8 -0
- vellum/workflows/nodes/displayable/search_node/tests/test_node.py +19 -0
- vellum/workflows/nodes/experimental/tool_calling_node/utils.py +4 -13
- vellum/workflows/runner/runner.py +13 -17
- vellum/workflows/state/base.py +0 -4
- {vellum_ai-0.14.65.dist-info → vellum_ai-0.14.67.dist-info}/METADATA +2 -2
- {vellum_ai-0.14.65.dist-info → vellum_ai-0.14.67.dist-info}/RECORD +33 -30
- vellum_cli/image_push.py +62 -7
- vellum_cli/pull.py +38 -9
- vellum_cli/tests/test_image_push_error_handling.py +184 -0
- vellum_cli/tests/test_pull.py +12 -9
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_tool_calling_node_inline_workflow_serialization.py +661 -0
- vellum_ee/workflows/display/utils/expressions.py +17 -0
- {vellum_ai-0.14.65.dist-info → vellum_ai-0.14.67.dist-info}/LICENSE +0 -0
- {vellum_ai-0.14.65.dist-info → vellum_ai-0.14.67.dist-info}/WHEEL +0 -0
- {vellum_ai-0.14.65.dist-info → vellum_ai-0.14.67.dist-info}/entry_points.txt +0 -0
@@ -38,6 +38,7 @@ from vellum.workflows.references.state_value import StateValueReference
|
|
38
38
|
from vellum.workflows.references.vellum_secret import VellumSecretReference
|
39
39
|
from vellum.workflows.references.workflow_input import WorkflowInputReference
|
40
40
|
from vellum.workflows.types.core import JsonArray, JsonObject
|
41
|
+
from vellum.workflows.types.generics import is_workflow_class
|
41
42
|
from vellum.workflows.utils.uuids import uuid4_from_hash
|
42
43
|
from vellum_ee.workflows.display.utils.exceptions import UnsupportedSerializationException
|
43
44
|
|
@@ -300,6 +301,22 @@ def serialize_value(display_context: "WorkflowDisplayContext", value: Any) -> Js
|
|
300
301
|
else:
|
301
302
|
return {"type": "DICTIONARY_REFERENCE", "entries": cast(JsonArray, serialized_entries)}
|
302
303
|
|
304
|
+
if is_workflow_class(value):
|
305
|
+
from vellum_ee.workflows.display.workflows.get_vellum_workflow_display_class import get_workflow_display
|
306
|
+
|
307
|
+
workflow_display = get_workflow_display(workflow_class=value)
|
308
|
+
value = workflow_display.serialize()
|
309
|
+
return {
|
310
|
+
"type": "CONSTANT_VALUE",
|
311
|
+
"value": {
|
312
|
+
"type": "JSON",
|
313
|
+
"value": {
|
314
|
+
"type": "INLINE_WORKFLOW",
|
315
|
+
"exec_config": value,
|
316
|
+
},
|
317
|
+
},
|
318
|
+
}
|
319
|
+
|
303
320
|
if not isinstance(value, BaseDescriptor):
|
304
321
|
vellum_value = primitive_to_vellum_value(value)
|
305
322
|
return {
|
File without changes
|
File without changes
|
File without changes
|