vellum-ai 0.13.27__py3-none-any.whl → 0.14.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 (57) hide show
  1. vellum/client/core/client_wrapper.py +1 -1
  2. vellum/workflows/constants.py +8 -3
  3. vellum/workflows/descriptors/exceptions.py +2 -0
  4. vellum/workflows/descriptors/tests/test_utils.py +21 -0
  5. vellum/workflows/descriptors/utils.py +3 -3
  6. vellum/workflows/errors/types.py +4 -1
  7. vellum/workflows/expressions/accessor.py +4 -3
  8. vellum/workflows/expressions/begins_with.py +3 -2
  9. vellum/workflows/expressions/between.py +4 -3
  10. vellum/workflows/expressions/coalesce_expression.py +2 -2
  11. vellum/workflows/expressions/contains.py +10 -2
  12. vellum/workflows/expressions/does_not_begin_with.py +3 -2
  13. vellum/workflows/expressions/does_not_contain.py +6 -2
  14. vellum/workflows/expressions/does_not_end_with.py +3 -2
  15. vellum/workflows/expressions/ends_with.py +3 -2
  16. vellum/workflows/expressions/greater_than.py +3 -2
  17. vellum/workflows/expressions/greater_than_or_equal_to.py +3 -2
  18. vellum/workflows/expressions/in_.py +2 -1
  19. vellum/workflows/expressions/is_blank.py +2 -1
  20. vellum/workflows/expressions/is_nil.py +2 -2
  21. vellum/workflows/expressions/is_not_blank.py +2 -1
  22. vellum/workflows/expressions/is_not_nil.py +2 -2
  23. vellum/workflows/expressions/is_not_undefined.py +2 -2
  24. vellum/workflows/expressions/is_undefined.py +2 -2
  25. vellum/workflows/expressions/less_than.py +3 -2
  26. vellum/workflows/expressions/less_than_or_equal_to.py +3 -2
  27. vellum/workflows/expressions/not_between.py +4 -3
  28. vellum/workflows/expressions/not_in.py +2 -1
  29. vellum/workflows/nodes/bases/base.py +21 -7
  30. vellum/workflows/nodes/bases/tests/test_base_node.py +84 -0
  31. vellum/workflows/nodes/core/inline_subworkflow_node/node.py +3 -3
  32. vellum/workflows/nodes/core/map_node/node.py +5 -0
  33. vellum/workflows/nodes/core/map_node/tests/test_node.py +22 -0
  34. vellum/workflows/nodes/displayable/bases/api_node/node.py +8 -3
  35. vellum/workflows/nodes/displayable/bases/base_prompt_node/node.py +19 -9
  36. vellum/workflows/nodes/displayable/code_execution_node/tests/test_code_execution_node.py +68 -2
  37. vellum/workflows/nodes/displayable/code_execution_node/utils.py +30 -7
  38. vellum/workflows/outputs/base.py +21 -19
  39. vellum/workflows/ports/port.py +14 -5
  40. vellum/workflows/references/external_input.py +2 -2
  41. vellum/workflows/references/lazy.py +2 -2
  42. vellum/workflows/references/output.py +7 -7
  43. vellum/workflows/runner/runner.py +20 -15
  44. vellum/workflows/state/base.py +2 -2
  45. vellum/workflows/state/tests/test_state.py +7 -11
  46. vellum/workflows/utils/vellum_variables.py +3 -0
  47. vellum/workflows/workflows/base.py +20 -0
  48. vellum/workflows/workflows/tests/__init__.py +0 -0
  49. vellum/workflows/workflows/tests/test_base_workflow.py +80 -0
  50. {vellum_ai-0.13.27.dist-info → vellum_ai-0.14.0.dist-info}/METADATA +2 -1
  51. {vellum_ai-0.13.27.dist-info → vellum_ai-0.14.0.dist-info}/RECORD +57 -54
  52. vellum_cli/push.py +15 -1
  53. vellum_cli/tests/test_push.py +44 -0
  54. vellum_ee/workflows/display/nodes/base_node_display.py +2 -2
  55. {vellum_ai-0.13.27.dist-info → vellum_ai-0.14.0.dist-info}/LICENSE +0 -0
  56. {vellum_ai-0.13.27.dist-info → vellum_ai-0.14.0.dist-info}/WHEEL +0 -0
  57. {vellum_ai-0.13.27.dist-info → vellum_ai-0.14.0.dist-info}/entry_points.txt +0 -0
@@ -17,7 +17,7 @@ from typing import (
17
17
  )
18
18
 
19
19
  from vellum.workflows import BaseWorkflow
20
- from vellum.workflows.constants import UNDEF
20
+ from vellum.workflows.constants import undefined
21
21
  from vellum.workflows.descriptors.base import BaseDescriptor
22
22
  from vellum.workflows.expressions.between import BetweenExpression
23
23
  from vellum.workflows.expressions.is_nil import IsNilExpression
@@ -134,7 +134,7 @@ class BaseNodeDisplay(Generic[NodeType], metaclass=BaseNodeDisplayMeta):
134
134
  type = primitive_type_to_vellum_variable_type(output)
135
135
  value = (
136
136
  self.serialize_value(display_context, output.instance)
137
- if output.instance is not None and output.instance != UNDEF
137
+ if output.instance is not None and output.instance != undefined
138
138
  else None
139
139
  )
140
140