vellum-ai 0.13.6__py3-none-any.whl → 0.13.7__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.
@@ -18,7 +18,7 @@ class BaseClientWrapper:
18
18
  headers: typing.Dict[str, str] = {
19
19
  "X-Fern-Language": "Python",
20
20
  "X-Fern-SDK-Name": "vellum-ai",
21
- "X-Fern-SDK-Version": "0.13.6",
21
+ "X-Fern-SDK-Version": "0.13.7",
22
22
  }
23
23
  headers["X_API_KEY"] = self.api_key
24
24
  return headers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.13.6
3
+ Version: 0.13.7
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.9,<4.0
@@ -30,9 +30,9 @@ vellum_ee/workflows/display/nodes/types.py,sha256=St1BB6no528OyELGiyRabWao0GGw6m
30
30
  vellum_ee/workflows/display/nodes/utils.py,sha256=sloya5TpXsnot1HURc9L51INwflRqUzHxRVnCS9Cd-4,973
31
31
  vellum_ee/workflows/display/nodes/vellum/__init__.py,sha256=_raKY9eKi_OvIFn6nGvf9xKSboKtYLHCWaWCwDQFbOc,1567
32
32
  vellum_ee/workflows/display/nodes/vellum/api_node.py,sha256=hoV-cUtS6H9kmRQXHd2py95GRWI_dAnnaPwvlNBkDOQ,8571
33
- vellum_ee/workflows/display/nodes/vellum/base_node.py,sha256=lbk6pWO2xRzjQmlh-3iWrc-6Hfa7cUycqCwLuVNFuW8,7623
33
+ vellum_ee/workflows/display/nodes/vellum/base_node.py,sha256=mZSeZpolPZg1OEe3xsLbAiYT9aTSfdw0LhiUsHNBRXY,8029
34
34
  vellum_ee/workflows/display/nodes/vellum/code_execution_node.py,sha256=z00Z3L0d4PsUQo4S8FRDTtOFLtjdi17TJbatNVF4nM8,4288
35
- vellum_ee/workflows/display/nodes/vellum/conditional_node.py,sha256=UJtdeppJFrrgJi48soO1-r5eaKTOExjYCrEx_YCsvtU,10486
35
+ vellum_ee/workflows/display/nodes/vellum/conditional_node.py,sha256=XynMt1dt1qAlDFYYNYNDAfItYBUEGWYjQl2oEgcMEW0,11052
36
36
  vellum_ee/workflows/display/nodes/vellum/error_node.py,sha256=Tyx74dUmj_ef0slptoUXHtkjLbNd3f4hXeoEozFaFcw,2023
37
37
  vellum_ee/workflows/display/nodes/vellum/final_output_node.py,sha256=p-PvlnxpBQ7IKskZi2A19jKAtKnSxJ8LPbGMA83VkFk,2805
38
38
  vellum_ee/workflows/display/nodes/vellum/guardrail_node.py,sha256=aYZSJTxknU4LMiQdWk9LcK6CkhdozeDEMiRxfAyUNEc,2202
@@ -111,7 +111,7 @@ vellum/client/README.md,sha256=JkCJjmMZl4jrPj46pkmL9dpK4gSzQQmP5I7z4aME4LY,4749
111
111
  vellum/client/__init__.py,sha256=8nZt88C9SVwWanjLbIQMU3rzb32h5UZfFMBx3VPHB50,111887
112
112
  vellum/client/core/__init__.py,sha256=SQ85PF84B9MuKnBwHNHWemSGuy-g_515gFYNFhvEE0I,1438
113
113
  vellum/client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
114
- vellum/client/core/client_wrapper.py,sha256=XGwA1YysDKYfgMOJ8jav_tSylN5fJscqdj4e2qXclp4,1868
114
+ vellum/client/core/client_wrapper.py,sha256=MTN61P2JMUDUk_EAdtnVQjmREUf42AEjohQYSonGYgI,1868
115
115
  vellum/client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
116
116
  vellum/client/core/file.py,sha256=X9IbmkZmB2bB_DpmZAO3crWdXagOakAyn6UCOCImCPg,2322
117
117
  vellum/client/core/http_client.py,sha256=R0pQpCppnEtxccGvXl4uJ76s7ro_65Fo_erlNNLp_AI,19228
@@ -1440,8 +1440,8 @@ vellum/workflows/vellum_client.py,sha256=ODrq_TSl-drX2aezXegf7pizpWDVJuTXH-j6528
1440
1440
  vellum/workflows/workflows/__init__.py,sha256=KY45TqvavCCvXIkyCFMEc0dc6jTMOUci93U2DUrlZYc,66
1441
1441
  vellum/workflows/workflows/base.py,sha256=k0kUWWko4fHyCqLSU_1cBK_pXZpl9MXekWiG-bdOAo0,18353
1442
1442
  vellum/workflows/workflows/event_filters.py,sha256=GSxIgwrX26a1Smfd-6yss2abGCnadGsrSZGa7t7LpJA,2008
1443
- vellum_ai-0.13.6.dist-info/LICENSE,sha256=hOypcdt481qGNISA784bnAGWAE6tyIf9gc2E78mYC3E,1574
1444
- vellum_ai-0.13.6.dist-info/METADATA,sha256=TSCYxziGdaZEtJDxJ0t0JQWbj3UKvtsIeXchhekEhcs,5334
1445
- vellum_ai-0.13.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1446
- vellum_ai-0.13.6.dist-info/entry_points.txt,sha256=HCH4yc_V3J_nDv3qJzZ_nYS8llCHZViCDP1ejgCc5Ak,42
1447
- vellum_ai-0.13.6.dist-info/RECORD,,
1443
+ vellum_ai-0.13.7.dist-info/LICENSE,sha256=hOypcdt481qGNISA784bnAGWAE6tyIf9gc2E78mYC3E,1574
1444
+ vellum_ai-0.13.7.dist-info/METADATA,sha256=uadVd4lwVNpFzr8E2Ib1FCZeJdsCjudD17JLsOEDTbM,5334
1445
+ vellum_ai-0.13.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
1446
+ vellum_ai-0.13.7.dist-info/entry_points.txt,sha256=HCH4yc_V3J_nDv3qJzZ_nYS8llCHZViCDP1ejgCc5Ak,42
1447
+ vellum_ai-0.13.7.dist-info/RECORD,,
@@ -3,8 +3,12 @@ from typing import Any, Generic, TypeVar, cast
3
3
  from vellum.workflows.constants import UNDEF
4
4
  from vellum.workflows.descriptors.base import BaseDescriptor
5
5
  from vellum.workflows.expressions.between import BetweenExpression
6
+ from vellum.workflows.expressions.is_nil import IsNilExpression
7
+ from vellum.workflows.expressions.is_not_nil import IsNotNilExpression
6
8
  from vellum.workflows.expressions.is_not_null import IsNotNullExpression
9
+ from vellum.workflows.expressions.is_not_undefined import IsNotUndefinedExpression
7
10
  from vellum.workflows.expressions.is_null import IsNullExpression
11
+ from vellum.workflows.expressions.is_undefined import IsUndefinedExpression
8
12
  from vellum.workflows.expressions.not_between import NotBetweenExpression
9
13
  from vellum.workflows.nodes.bases.base import BaseNode
10
14
  from vellum.workflows.references.execution_count import ExecutionCountReference
@@ -104,17 +108,27 @@ class BaseNodeDisplay(BaseNodeVellumDisplay[_BaseNodeType], Generic[_BaseNodeTyp
104
108
  return explicit_value if explicit_value else GenericNodeDisplayData()
105
109
 
106
110
  def serialize_condition(self, display_context: WorkflowDisplayContext, condition: BaseDescriptor) -> JsonObject:
107
- if isinstance(condition, (IsNullExpression, IsNotNullExpression)):
108
- lhs = self.serialize_value(display_context, condition._expression) # type: ignore[attr-defined]
111
+ if isinstance(
112
+ condition,
113
+ (
114
+ IsNullExpression,
115
+ IsNotNullExpression,
116
+ IsNilExpression,
117
+ IsNotNilExpression,
118
+ IsUndefinedExpression,
119
+ IsNotUndefinedExpression,
120
+ ),
121
+ ):
122
+ lhs = self.serialize_value(display_context, condition._expression)
109
123
  return {
110
124
  "type": "UNARY_EXPRESSION",
111
125
  "lhs": lhs,
112
126
  "operator": convert_descriptor_to_operator(condition),
113
127
  }
114
128
  elif isinstance(condition, (BetweenExpression, NotBetweenExpression)):
115
- base = self.serialize_value(display_context, condition._value) # type: ignore[attr-defined]
116
- lhs = self.serialize_value(display_context, condition._start) # type: ignore[attr-defined]
117
- rhs = self.serialize_value(display_context, condition._end) # type: ignore[attr-defined]
129
+ base = self.serialize_value(display_context, condition._value)
130
+ lhs = self.serialize_value(display_context, condition._start)
131
+ rhs = self.serialize_value(display_context, condition._end)
118
132
 
119
133
  return {
120
134
  "type": "TERNARY_EXPRESSION",
@@ -5,8 +5,12 @@ from typing import Any, ClassVar, Dict, Generic, List, Optional, Tuple, TypeVar,
5
5
  from vellum.workflows.descriptors.base import BaseDescriptor
6
6
  from vellum.workflows.expressions.and_ import AndExpression
7
7
  from vellum.workflows.expressions.between import BetweenExpression
8
+ from vellum.workflows.expressions.is_nil import IsNilExpression
9
+ from vellum.workflows.expressions.is_not_nil import IsNotNilExpression
8
10
  from vellum.workflows.expressions.is_not_null import IsNotNullExpression
11
+ from vellum.workflows.expressions.is_not_undefined import IsNotUndefinedExpression
9
12
  from vellum.workflows.expressions.is_null import IsNullExpression
13
+ from vellum.workflows.expressions.is_undefined import IsUndefinedExpression
10
14
  from vellum.workflows.expressions.not_between import NotBetweenExpression
11
15
  from vellum.workflows.expressions.or_ import OrExpression
12
16
  from vellum.workflows.nodes.displayable import ConditionalNode
@@ -89,7 +93,17 @@ but the defined conditions have length {len(condition_ids)}"""
89
93
  }
90
94
 
91
95
  # Base cases for other descriptors
92
- elif isinstance(descriptor, (IsNullExpression, IsNotNullExpression)):
96
+ elif isinstance(
97
+ descriptor,
98
+ (
99
+ IsNullExpression,
100
+ IsNotNullExpression,
101
+ IsNilExpression,
102
+ IsNotNilExpression,
103
+ IsUndefinedExpression,
104
+ IsNotUndefinedExpression,
105
+ ),
106
+ ):
93
107
  expression_node_input = create_node_input(
94
108
  node_id, f"{current_id}.field", descriptor._expression, display_context, field_node_input_id
95
109
  )