vellum-workflow-server 1.3.10.post1__py3-none-any.whl → 1.3.10.post2__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.

Potentially problematic release.


This version of vellum-workflow-server might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-workflow-server
3
- Version: 1.3.10.post1
3
+ Version: 1.3.10.post2
4
4
  Summary:
5
5
  License: AGPL
6
6
  Requires-Python: >=3.9.0,<4
@@ -26,9 +26,9 @@ workflow_server/utils/system_utils.py,sha256=SVO7ofsoEXl7XduBtpiwHKMx7DTPmdC-uH6
26
26
  workflow_server/utils/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  workflow_server/utils/tests/test_sentry_integration.py,sha256=LGmWiaLhFrx-jslrRjRq9JY6Z5ShLZyx_N_L0-FU6OI,2100
28
28
  workflow_server/utils/tests/test_system_utils.py,sha256=_4GwXvVvU5BrATxUEWwQIPg0bzQXMWBtiBmjP8MTxJM,4314
29
- workflow_server/utils/tests/test_utils.py,sha256=qwK5Rmy3RQyjtlUrYAuGuDlBeRzZKsf1yS-y2IpUizQ,6452
30
- workflow_server/utils/utils.py,sha256=zcjnY6tSPf90VZOBm8w0NfxYWPQYAL9TCNlza231Odg,4535
31
- vellum_workflow_server-1.3.10.post1.dist-info/METADATA,sha256=8Ge-op2CDdZR4WgrpXRnZdFYPT_3kOd8gu3qUCgjY0A,2275
32
- vellum_workflow_server-1.3.10.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
- vellum_workflow_server-1.3.10.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
- vellum_workflow_server-1.3.10.post1.dist-info/RECORD,,
29
+ workflow_server/utils/tests/test_utils.py,sha256=0Nq6du8o-iBtTrip9_wgHES53JSiJbVdSXaBnPobw3s,6930
30
+ workflow_server/utils/utils.py,sha256=ZPoM1Suhid22dpB8oEFLux8wx-9iyzmSfWuYxSCrgWk,4774
31
+ vellum_workflow_server-1.3.10.post2.dist-info/METADATA,sha256=Loq_8QdX4WYdHgzTukQT5hrvMcnJ5qo7nOr9NF85guw,2275
32
+ vellum_workflow_server-1.3.10.post2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ vellum_workflow_server-1.3.10.post2.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
34
+ vellum_workflow_server-1.3.10.post2.dist-info/RECORD,,
@@ -7,8 +7,10 @@ from vellum import (
7
7
  SearchResultDocument,
8
8
  StringVellumValue,
9
9
  VellumAudio,
10
+ VellumDocument,
10
11
  VellumError,
11
12
  VellumImage,
13
+ VellumVideo,
12
14
  )
13
15
  from workflow_server.utils.utils import (
14
16
  convert_json_inputs_to_vellum,
@@ -50,6 +52,14 @@ from workflow_server.utils.utils import (
50
52
  {"type": "AUDIO", "name": "audio", "value": {"src": "https://example.com/audio.mp3"}},
51
53
  {"audio": VellumAudio(src="https://example.com/audio.mp3")},
52
54
  ),
55
+ (
56
+ {"type": "VIDEO", "name": "video", "value": {"src": "https://example.com/video.mp4"}},
57
+ {"video": VellumVideo(src="https://example.com/video.mp4")},
58
+ ),
59
+ (
60
+ {"type": "DOCUMENT", "name": "document", "value": {"src": "https://example.com/document.pdf"}},
61
+ {"document": VellumDocument(src="https://example.com/document.pdf")},
62
+ ),
53
63
  (
54
64
  {
55
65
  "type": "SEARCH_RESULTS",
@@ -117,6 +127,8 @@ from workflow_server.utils.utils import (
117
127
  "function_call",
118
128
  "image",
119
129
  "audio",
130
+ "video",
131
+ "document",
120
132
  "search_results",
121
133
  "error",
122
134
  "array",
@@ -11,7 +11,9 @@ from vellum import (
11
11
  FunctionCallInput,
12
12
  SearchResultsInput,
13
13
  VellumAudio,
14
+ VellumDocument,
14
15
  VellumImage,
16
+ VellumVideo,
15
17
  )
16
18
  from workflow_server.config import is_development
17
19
 
@@ -46,6 +48,10 @@ def convert_json_inputs_to_vellum(inputs: List[dict]) -> dict:
46
48
  vellum_inputs[name] = VellumImage.model_validate(value)
47
49
  elif type == "AUDIO":
48
50
  vellum_inputs[name] = VellumAudio.model_validate(value)
51
+ elif type == "VIDEO":
52
+ vellum_inputs[name] = VellumVideo.model_validate(value)
53
+ elif type == "DOCUMENT":
54
+ vellum_inputs[name] = VellumDocument.model_validate(value)
49
55
  else:
50
56
  vellum_inputs[name] = value
51
57