vellum-ai 0.8.6__py3-none-any.whl → 0.8.7__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
vellum/client.py CHANGED
@@ -449,6 +449,7 @@ class Vellum:
449
449
  workflow_deployment_name: typing.Optional[str] = OMIT,
450
450
  release_tag: typing.Optional[str] = OMIT,
451
451
  external_id: typing.Optional[str] = OMIT,
452
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
452
453
  request_options: typing.Optional[RequestOptions] = None,
453
454
  ) -> ExecuteWorkflowResponse:
454
455
  """
@@ -474,6 +475,9 @@ class Vellum:
474
475
  external_id : typing.Optional[str]
475
476
  Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment.
476
477
 
478
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
479
+ Arbitrary JSON metadata associated with this request. Can be used to capture additional monitoring data such as user id, session id, etc. for future analysis.
480
+
477
481
  request_options : typing.Optional[RequestOptions]
478
482
  Request-specific configuration.
479
483
 
@@ -509,6 +513,7 @@ class Vellum:
509
513
  "workflow_deployment_name": workflow_deployment_name,
510
514
  "release_tag": release_tag,
511
515
  "external_id": external_id,
516
+ "metadata": metadata,
512
517
  },
513
518
  request_options=request_options,
514
519
  omit=OMIT,
@@ -567,6 +572,7 @@ class Vellum:
567
572
  release_tag: typing.Optional[str] = OMIT,
568
573
  external_id: typing.Optional[str] = OMIT,
569
574
  event_types: typing.Optional[typing.Sequence[WorkflowExecutionEventType]] = OMIT,
575
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
570
576
  request_options: typing.Optional[RequestOptions] = None,
571
577
  ) -> typing.Iterator[WorkflowStreamEvent]:
572
578
  """
@@ -595,6 +601,9 @@ class Vellum:
595
601
  event_types : typing.Optional[typing.Sequence[WorkflowExecutionEventType]]
596
602
  Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution.
597
603
 
604
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
605
+ Arbitrary JSON metadata associated with this request. Can be used to capture additional monitoring data such as user id, session id, etc. for future analysis.
606
+
598
607
  request_options : typing.Optional[RequestOptions]
599
608
  Request-specific configuration.
600
609
 
@@ -629,6 +638,7 @@ class Vellum:
629
638
  release_tag="string",
630
639
  external_id="string",
631
640
  event_types=["NODE"],
641
+ metadata={"string": {"key": "value"}},
632
642
  )
633
643
  for chunk in response:
634
644
  yield chunk
@@ -645,6 +655,7 @@ class Vellum:
645
655
  "release_tag": release_tag,
646
656
  "external_id": external_id,
647
657
  "event_types": event_types,
658
+ "metadata": metadata,
648
659
  },
649
660
  request_options=request_options,
650
661
  omit=OMIT,
@@ -1632,6 +1643,7 @@ class AsyncVellum:
1632
1643
  workflow_deployment_name: typing.Optional[str] = OMIT,
1633
1644
  release_tag: typing.Optional[str] = OMIT,
1634
1645
  external_id: typing.Optional[str] = OMIT,
1646
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1635
1647
  request_options: typing.Optional[RequestOptions] = None,
1636
1648
  ) -> ExecuteWorkflowResponse:
1637
1649
  """
@@ -1657,6 +1669,9 @@ class AsyncVellum:
1657
1669
  external_id : typing.Optional[str]
1658
1670
  Optionally include a unique identifier for tracking purposes. Must be unique for a given workflow deployment.
1659
1671
 
1672
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1673
+ Arbitrary JSON metadata associated with this request. Can be used to capture additional monitoring data such as user id, session id, etc. for future analysis.
1674
+
1660
1675
  request_options : typing.Optional[RequestOptions]
1661
1676
  Request-specific configuration.
1662
1677
 
@@ -1700,6 +1715,7 @@ class AsyncVellum:
1700
1715
  "workflow_deployment_name": workflow_deployment_name,
1701
1716
  "release_tag": release_tag,
1702
1717
  "external_id": external_id,
1718
+ "metadata": metadata,
1703
1719
  },
1704
1720
  request_options=request_options,
1705
1721
  omit=OMIT,
@@ -1758,6 +1774,7 @@ class AsyncVellum:
1758
1774
  release_tag: typing.Optional[str] = OMIT,
1759
1775
  external_id: typing.Optional[str] = OMIT,
1760
1776
  event_types: typing.Optional[typing.Sequence[WorkflowExecutionEventType]] = OMIT,
1777
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1761
1778
  request_options: typing.Optional[RequestOptions] = None,
1762
1779
  ) -> typing.AsyncIterator[WorkflowStreamEvent]:
1763
1780
  """
@@ -1786,6 +1803,9 @@ class AsyncVellum:
1786
1803
  event_types : typing.Optional[typing.Sequence[WorkflowExecutionEventType]]
1787
1804
  Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution.
1788
1805
 
1806
+ metadata : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1807
+ Arbitrary JSON metadata associated with this request. Can be used to capture additional monitoring data such as user id, session id, etc. for future analysis.
1808
+
1789
1809
  request_options : typing.Optional[RequestOptions]
1790
1810
  Request-specific configuration.
1791
1811
 
@@ -1825,6 +1845,7 @@ class AsyncVellum:
1825
1845
  release_tag="string",
1826
1846
  external_id="string",
1827
1847
  event_types=["NODE"],
1848
+ metadata={"string": {"key": "value"}},
1828
1849
  )
1829
1850
  async for chunk in response:
1830
1851
  yield chunk
@@ -1844,6 +1865,7 @@ class AsyncVellum:
1844
1865
  "release_tag": release_tag,
1845
1866
  "external_id": external_id,
1846
1867
  "event_types": event_types,
1868
+ "metadata": metadata,
1847
1869
  },
1848
1870
  request_options=request_options,
1849
1871
  omit=OMIT,
@@ -17,7 +17,7 @@ class BaseClientWrapper:
17
17
  headers: typing.Dict[str, str] = {
18
18
  "X-Fern-Language": "Python",
19
19
  "X-Fern-SDK-Name": "vellum-ai",
20
- "X-Fern-SDK-Version": "0.8.6",
20
+ "X-Fern-SDK-Version": "0.8.7",
21
21
  }
22
22
  headers["X_API_KEY"] = self.api_key
23
23
  return headers
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-ai
3
- Version: 0.8.6
3
+ Version: 0.8.7
4
4
  Summary:
5
5
  License: MIT
6
6
  Requires-Python: >=3.8,<4.0
@@ -1,8 +1,8 @@
1
1
  vellum/__init__.py,sha256=sYfFTNke8uuFbEl3rRMDj2DIsxjSxRicUW_uxEx9ftI,30024
2
- vellum/client.py,sha256=3r_Zn6F459GgFC9La9__-66TIj7DywjwxLOYkpUZ9QY,99406
2
+ vellum/client.py,sha256=kUF5BvbURnGFgxkJC-ql8GZ6lRX7_i3h3EQNCC_SRIo,101036
3
3
  vellum/core/__init__.py,sha256=FzSvKbXjuM18Hdk3iGK-jsGY_DfouyRS659thZV5c1Y,1394
4
4
  vellum/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
5
- vellum/core/client_wrapper.py,sha256=pZfHMc9b9Qi6o9LjtXQhbEX4jvauDYLw0qwU58Ecn3s,1897
5
+ vellum/core/client_wrapper.py,sha256=RpTIosTnX7hFWiqTFmJqDkLpt_WlOMc8YTxVl366zNY,1897
6
6
  vellum/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
7
7
  vellum/core/file.py,sha256=vliNmlB7PbDfi4EKiVPNq5QaGXJ4zlDBGupv7Qciy7g,1520
8
8
  vellum/core/http_client.py,sha256=rZSidd9LazCjduvdBhZ7GDs4iGfn-OAfRGsDXB1z8f4,18882
@@ -481,7 +481,7 @@ vellum/types/workflow_result_event_output_data_search_results.py,sha256=U34IK7Zv
481
481
  vellum/types/workflow_result_event_output_data_string.py,sha256=tM3kgh6tEhD0dFEb_7UU0-UspeN4pUdINCcCrD64W74,1228
482
482
  vellum/types/workflow_stream_event.py,sha256=Wn3Yzuy9MqWAeo8tEaXDTKDEbJoA8DdYdMVq8EKuhu8,361
483
483
  vellum/version.py,sha256=jq-1PlAYxN9AXuaZqbYk9ak27SgE2lw9Ia5gx1b1gVI,76
484
- vellum_ai-0.8.6.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
485
- vellum_ai-0.8.6.dist-info/METADATA,sha256=JU-e72-3-FyVgJcJCVN7BgAl4YkGsOG_S8xZ4i59vRY,4394
486
- vellum_ai-0.8.6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
487
- vellum_ai-0.8.6.dist-info/RECORD,,
484
+ vellum_ai-0.8.7.dist-info/LICENSE,sha256=CcaljEIoOBaU-wItPH4PmM_mDCGpyuUY0Er1BGu5Ti8,1073
485
+ vellum_ai-0.8.7.dist-info/METADATA,sha256=Ch6_D1ekSO1Mv1wB8Zp4OHo0oQ6lvCaR5nmCiHqPX_A,4394
486
+ vellum_ai-0.8.7.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
487
+ vellum_ai-0.8.7.dist-info/RECORD,,