vellum-ai 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
vellum/__init__.py CHANGED
@@ -191,6 +191,8 @@ from .types import (
191
191
  JsonVellumValue,
192
192
  LogicalOperator,
193
193
  LogprobsEnum,
194
+ MergeEnum,
195
+ MergeNodeResult,
194
196
  MetadataFilterConfigRequest,
195
197
  MetadataFilterRuleCombinator,
196
198
  MetadataFilterRuleRequest,
@@ -497,6 +499,7 @@ from .types import (
497
499
  WorkflowNodeResultData_Api,
498
500
  WorkflowNodeResultData_CodeExecution,
499
501
  WorkflowNodeResultData_Conditional,
502
+ WorkflowNodeResultData_Merge,
500
503
  WorkflowNodeResultData_Metric,
501
504
  WorkflowNodeResultData_Prompt,
502
505
  WorkflowNodeResultData_Search,
@@ -772,6 +775,8 @@ __all__ = [
772
775
  "JsonVellumValue",
773
776
  "LogicalOperator",
774
777
  "LogprobsEnum",
778
+ "MergeEnum",
779
+ "MergeNodeResult",
775
780
  "MetadataFilterConfigRequest",
776
781
  "MetadataFilterRuleCombinator",
777
782
  "MetadataFilterRuleRequest",
@@ -1081,6 +1086,7 @@ __all__ = [
1081
1086
  "WorkflowNodeResultData_Api",
1082
1087
  "WorkflowNodeResultData_CodeExecution",
1083
1088
  "WorkflowNodeResultData_Conditional",
1089
+ "WorkflowNodeResultData_Merge",
1084
1090
  "WorkflowNodeResultData_Metric",
1085
1091
  "WorkflowNodeResultData_Prompt",
1086
1092
  "WorkflowNodeResultData_Search",
@@ -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.6.0",
21
+ "X-Fern-SDK-Version": "0.6.1",
22
22
  }
23
23
  headers["X_API_KEY"] = self.api_key
24
24
  return headers
vellum/types/__init__.py CHANGED
@@ -228,6 +228,8 @@ from .json_variable_value import JsonVariableValue
228
228
  from .json_vellum_value import JsonVellumValue
229
229
  from .logical_operator import LogicalOperator
230
230
  from .logprobs_enum import LogprobsEnum
231
+ from .merge_enum import MergeEnum
232
+ from .merge_node_result import MergeNodeResult
231
233
  from .metadata_filter_config_request import MetadataFilterConfigRequest
232
234
  from .metadata_filter_rule_combinator import MetadataFilterRuleCombinator
233
235
  from .metadata_filter_rule_request import MetadataFilterRuleRequest
@@ -569,6 +571,7 @@ from .workflow_node_result_data import (
569
571
  WorkflowNodeResultData_Api,
570
572
  WorkflowNodeResultData_CodeExecution,
571
573
  WorkflowNodeResultData_Conditional,
574
+ WorkflowNodeResultData_Merge,
572
575
  WorkflowNodeResultData_Metric,
573
576
  WorkflowNodeResultData_Prompt,
574
577
  WorkflowNodeResultData_Search,
@@ -829,6 +832,8 @@ __all__ = [
829
832
  "JsonVellumValue",
830
833
  "LogicalOperator",
831
834
  "LogprobsEnum",
835
+ "MergeEnum",
836
+ "MergeNodeResult",
832
837
  "MetadataFilterConfigRequest",
833
838
  "MetadataFilterRuleCombinator",
834
839
  "MetadataFilterRuleRequest",
@@ -1135,6 +1140,7 @@ __all__ = [
1135
1140
  "WorkflowNodeResultData_Api",
1136
1141
  "WorkflowNodeResultData_CodeExecution",
1137
1142
  "WorkflowNodeResultData_Conditional",
1143
+ "WorkflowNodeResultData_Merge",
1138
1144
  "WorkflowNodeResultData_Metric",
1139
1145
  "WorkflowNodeResultData_Prompt",
1140
1146
  "WorkflowNodeResultData_Search",
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ MergeEnum = typing.Literal["MERGE"]
@@ -0,0 +1,27 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+ from ..core.pydantic_utilities import pydantic_v1
8
+
9
+
10
+ class MergeNodeResult(pydantic_v1.BaseModel):
11
+ """
12
+ A Node Result Event emitted from a Merge Node.
13
+ """
14
+
15
+ def json(self, **kwargs: typing.Any) -> str:
16
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
17
+ return super().json(**kwargs_with_defaults)
18
+
19
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
20
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
21
+ return super().dict(**kwargs_with_defaults)
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic_v1.Extra.allow
27
+ json_encoders = {dt.datetime: serialize_datetime}
@@ -8,7 +8,7 @@ from ..core.pydantic_utilities import pydantic_v1
8
8
 
9
9
 
10
10
  class SearchResultDocument(pydantic_v1.BaseModel):
11
- id: str = pydantic_v1.Field()
11
+ id: typing.Optional[str] = pydantic_v1.Field(default=None)
12
12
  """
13
13
  The ID of the document.
14
14
  """
@@ -8,6 +8,11 @@ from ..core.pydantic_utilities import pydantic_v1
8
8
 
9
9
 
10
10
  class SearchResultDocumentRequest(pydantic_v1.BaseModel):
11
+ id: typing.Optional[str] = pydantic_v1.Field(default=None)
12
+ """
13
+ The ID of the document.
14
+ """
15
+
11
16
  label: str = pydantic_v1.Field()
12
17
  """
13
18
  The human-readable name for the document.
@@ -33,6 +33,11 @@ class SubmitCompletionActualRequest(pydantic_v1.BaseModel):
33
33
  Optionally provide the timestamp representing when this feedback was collected. Used for reporting purposes.
34
34
  """
35
35
 
36
+ metadata: typing.Optional[typing.Dict[str, typing.Any]] = pydantic_v1.Field(default=None)
37
+ """
38
+ Optionally provide additional metadata about the feedback submission.
39
+ """
40
+
36
41
  def json(self, **kwargs: typing.Any) -> str:
37
42
  kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
38
43
  return super().json(**kwargs_with_defaults)
@@ -7,6 +7,7 @@ import typing
7
7
  from .api_node_result import ApiNodeResult
8
8
  from .code_execution_node_result import CodeExecutionNodeResult
9
9
  from .conditional_node_result import ConditionalNodeResult
10
+ from .merge_node_result import MergeNodeResult
10
11
  from .metric_node_result import MetricNodeResult
11
12
  from .prompt_node_result import PromptNodeResult
12
13
  from .search_node_result import SearchNodeResult
@@ -85,6 +86,16 @@ class WorkflowNodeResultData_Terminal(TerminalNodeResult):
85
86
  populate_by_name = True
86
87
 
87
88
 
89
+ class WorkflowNodeResultData_Merge(MergeNodeResult):
90
+ type: typing.Literal["MERGE"] = "MERGE"
91
+
92
+ class Config:
93
+ frozen = True
94
+ smart_union = True
95
+ allow_population_by_field_name = True
96
+ populate_by_name = True
97
+
98
+
88
99
  class WorkflowNodeResultData_Subworkflow(SubworkflowNodeResult):
89
100
  type: typing.Literal["SUBWORKFLOW"] = "SUBWORKFLOW"
90
101
 
@@ -113,6 +124,7 @@ WorkflowNodeResultData = typing.Union[
113
124
  WorkflowNodeResultData_Conditional,
114
125
  WorkflowNodeResultData_Api,
115
126
  WorkflowNodeResultData_Terminal,
127
+ WorkflowNodeResultData_Merge,
116
128
  WorkflowNodeResultData_Subworkflow,
117
129
  WorkflowNodeResultData_Metric,
118
130
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -18,8 +18,7 @@ Description-Content-Type: text/markdown
18
18
  # Vellum Python Library
19
19
 
20
20
  [![pypi](https://img.shields.io/pypi/v/vellum-ai.svg)](https://pypi.python.org/pypi/vellum-ai)
21
- [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
22
-
21
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://buildwithfern.com/?utm_source=vellum-ai/vellum-client-python/readme)
23
22
 
24
23
  The Vellum Python Library provides access to the Vellum API from python.
25
24
 
@@ -1,8 +1,8 @@
1
- vellum/__init__.py,sha256=7bxQL-tedbBVxsVRww71qLi2ner_qwl4L0ObgQnB8aU,42011
1
+ vellum/__init__.py,sha256=Fx7oNTVA6Y6FaWPfZNfrKCFw7TuZFiBZtT2qNtwJA4Y,42157
2
2
  vellum/client.py,sha256=7JaU104s0u_WhB8QAqIZcMv9IyvU-a0nKVZhTPKiEpw,97089
3
3
  vellum/core/__init__.py,sha256=1pNSKkwyQvMl_F0wohBqmoQAITptg3zlvCwsoSSzy7c,853
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=J9irQrkIEo-ZYhJJ8lGoYr0m_II3FN5pC5lqtfemXrg,1697
5
+ vellum/core/client_wrapper.py,sha256=oFS87yxg-9ZRCM9UCoAWBaP8U1Su4KBE8D4AEHHQd_w,1697
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=sy1RUGZ3aJYuw998bZytxxo6QdgKmlnlgBaMvwEKCGg,1480
8
8
  vellum/core/http_client.py,sha256=5ok6hqgZDJhg57EHvMnr0BBaHdG50QxFPKaCZ9aVWTc,5059
@@ -58,7 +58,7 @@ vellum/terraform/document_index/__init__.py,sha256=qq2zENI22bUvqGk_a1lmsoTr5O_xC
58
58
  vellum/terraform/provider/__init__.py,sha256=K1yLlTZkYBxhD4bhUV1v23hxDGgbfsAIGsSyeB54dNQ,10298
59
59
  vellum/terraform/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
60
60
  vellum/terraform/versions.json,sha256=STW6Mg3BKDacFmbWHXziHxE90GWncZf4AIzCLiXm_7o,56
61
- vellum/types/__init__.py,sha256=ei9w0p8R1WpK8ouyjHDhOqVh_RmXqMW87iQHySk1lhE,56092
61
+ vellum/types/__init__.py,sha256=syEgst7rAccjONpiD38h9_n47NE8PTLckRIDFKZnND8,56283
62
62
  vellum/types/add_openai_api_key_enum.py,sha256=GB7sLK_Ou7-Xn73sKJHUo6Gx3TjyhU7uJvWZAg4UeaI,92
63
63
  vellum/types/api_node_result.py,sha256=SvYIi1T-N_P3FVjzv9I91PaCT0IN958A3easp5Q7jqE,983
64
64
  vellum/types/api_node_result_data.py,sha256=KFBmmizcEg73GwQMXUtEdJ4e9YGFpRLYAnalwxIcDug,1161
@@ -179,6 +179,8 @@ vellum/types/json_variable_value.py,sha256=KdKz67NgVwVHpxXFgSxFPBeGBdjzTwZ_VKe22
179
179
  vellum/types/json_vellum_value.py,sha256=c_fKVj3ZnjacNEGW8keuoSfsNs7MBSH7PkTNxZuWU4M,959
180
180
  vellum/types/logical_operator.py,sha256=MuuMZ1-gOCDvy1WDQkMFfiBNHsRCqKgJei-b3727sKc,487
181
181
  vellum/types/logprobs_enum.py,sha256=D_458cZX2CAb6dX_ovrQ6HARlJkYcZRadKwsi1Cr-JM,151
182
+ vellum/types/merge_enum.py,sha256=TeAaXV2eWEGJHR3BqHdtIRkHUhctvfUo_Wu8MeqHYtU,116
183
+ vellum/types/merge_node_result.py,sha256=R6AndgFRFuFQk8APapAr7bkv4vqkukz-D71kl8rIubU,905
182
184
  vellum/types/metadata_filter_config_request.py,sha256=_1CVIxmDmtXezTMWoaqeea9boe8hyCmmAn28u69NEUk,1355
183
185
  vellum/types/metadata_filter_rule_combinator.py,sha256=3Vpp1Mnv3As7efkxWTeV8qd4gdJ6OLoLhz_UeVBHAX8,165
184
186
  vellum/types/metadata_filter_rule_request.py,sha256=kHXDnPobjbdWXBWda2lZNeUjNgJ4S9tQBIALYh3UlAo,1371
@@ -272,8 +274,8 @@ vellum/types/search_node_result_data.py,sha256=bixMDjtlOKLFVkhUQHWkQcTffkbvYYfuo
272
274
  vellum/types/search_request_options_request.py,sha256=WI_MYTsu4pjILsaJvkC-1A-Ghi8ib5qQZdz3kUq9iSY,1622
273
275
  vellum/types/search_response.py,sha256=tMnotqttu7YEYteBDuuriI2HYIJsstG1UFs-3GuNzPs,1047
274
276
  vellum/types/search_result.py,sha256=an56LL9iowhUCIO6np-lQNpPUt2SaYaSsPqLByU3ig4,1304
275
- vellum/types/search_result_document.py,sha256=z4Y2S_MZY1ebb-MmojkxpUh1N7VHHdUV3OheE6UfF_M,1437
276
- vellum/types/search_result_document_request.py,sha256=xgR1HOrXdJUNUzQrK6f1KSaj508P1JgfsN6jejf7R0c,1365
277
+ vellum/types/search_result_document.py,sha256=MRzncZs2Ug9g0NLoFO5AwElFIpJ4Zs-wUMOuDqX9Yfk,1466
278
+ vellum/types/search_result_document_request.py,sha256=GVIvgn0htJJojCMPep2p3P_bcxf1ffNZ0XHhNPNsy-w,1473
277
279
  vellum/types/search_result_merging_request.py,sha256=Yx1iv-58kFMCayP_ngjhD8O-m2nvlIAfAQUz1pRxwKI,972
278
280
  vellum/types/search_result_request.py,sha256=fqqTr-id9cLg5cVxGavZSLOCJSTMBKPNRdkGAjJrytM,1333
279
281
  vellum/types/search_results_enum.py,sha256=qiQWwPnGtlWgG6JVCOAV8KzJarrhOeZrOAeb569grgA,133
@@ -298,7 +300,7 @@ vellum/types/string_enum.py,sha256=8uLrjmZyaGRDEf7Y6DpJF1e4abJct69wIoq6ZQX6F-s,1
298
300
  vellum/types/string_input_request.py,sha256=2c7ZbrA2r_Au12O-LnfMwY-5rQKzAqQkLVu-jc-qjTI,1026
299
301
  vellum/types/string_variable_value.py,sha256=YGjpJpTVnxywk0mtXisQw8BkIfTS_amY4JPugLQ6dW0,881
300
302
  vellum/types/string_vellum_value.py,sha256=UCk0yx0DHUrANEp-rPsXO34dUNRWuzQPcSR2BsVPnlU,931
301
- vellum/types/submit_completion_actual_request.py,sha256=D3JNFxE8DHJP7RaSQjDBsJiacOwsd3I8r6-peyNDES0,1825
303
+ vellum/types/submit_completion_actual_request.py,sha256=52BcHB_G2aj5EZrzAXVcmkrFWD1a7UJSzZKifWmr8KQ,2010
302
304
  vellum/types/submit_completion_actuals_error_response.py,sha256=f2XlGM5NBdwZLy4oOJN9LrcaHwW31fGtTCmzcJVzUV4,875
303
305
  vellum/types/submit_workflow_execution_actual_request.py,sha256=zR5Di5a9GC2fchGC9qLEXGELitg3UxCoQUqeIyeyLDc,1487
304
306
  vellum/types/subworkflow_enum.py,sha256=6Tvuegdga54mAY0ojP19x9HTbsjOm3gw4QrH_BpD4rY,128
@@ -398,7 +400,7 @@ vellum/types/workflow_execution_event_error_code.py,sha256=Vf-MTOx0KclZp35aajWDH
398
400
  vellum/types/workflow_execution_event_type.py,sha256=ESKqV3ItoAlqBooruf-i0AnmEh_GvCySZ0Co3r9Bvt0,170
399
401
  vellum/types/workflow_execution_node_result_event.py,sha256=qIjztqor0UcBTxbq7w7Is98Mqu0IgggUKY24qOHal4s,1139
400
402
  vellum/types/workflow_execution_workflow_result_event.py,sha256=PyMUdEwRMd8vjdimdcOXSvzPNd3PoacfDKuEmdrzpTU,1134
401
- vellum/types/workflow_node_result_data.py,sha256=wMPEIx8TSPFT8W9MrhAhbg2QmP88j8ANnLBdz7RIlUY,3299
403
+ vellum/types/workflow_node_result_data.py,sha256=Mo8g_HQylDahWy7K80AW8kD8090vbJrS3oqloZz5eWM,3625
402
404
  vellum/types/workflow_node_result_event.py,sha256=0tSTva8wAxMKSGWrbSRADqGcbR_A6FMSR7xkYLP9rZg,1745
403
405
  vellum/types/workflow_node_result_event_state.py,sha256=cC3CdfmXR8bPzSG4W6vDnndA9HAnfF3v4UzmyeVwxog,209
404
406
  vellum/types/workflow_output.py,sha256=iSz1VQAm0e4gJcJlB_HG6jI9P4gRx4nQhMzoTgzG4lM,3212
@@ -428,7 +430,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=gazaUrC5
428
430
  vellum/types/workflow_result_event_output_data_string.py,sha256=aVWIIGbLj4TJJhTTj6WzhbYXQkcZatKuhhNy8UYwXbw,1482
429
431
  vellum/types/workflow_stream_event.py,sha256=KA6Bkk_XA6AIPWR-1vKnwF1A8l_Bm5y0arQCWWWRpsk,911
430
432
  vellum/version.py,sha256=neLt8HBHHUtDF9M5fsyUzHT-pKooEPvceaLDqqIGb0s,77
431
- vellum_ai-0.6.0.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
432
- vellum_ai-0.6.0.dist-info/METADATA,sha256=vuUj8xLP9qDd0H_c_R8h9sSwQBQF32NW6ApoeoBHNFU,3549
433
- vellum_ai-0.6.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
434
- vellum_ai-0.6.0.dist-info/RECORD,,
433
+ vellum_ai-0.6.1.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
434
+ vellum_ai-0.6.1.dist-info/METADATA,sha256=_mRhMMPYsuRbxJP8olM7eTHlJyvM7UnLNjUIO_NiyTM,3591
435
+ vellum_ai-0.6.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
436
+ vellum_ai-0.6.1.dist-info/RECORD,,