vellum-workflow-server 1.10.7__py3-none-any.whl → 1.11.0.post1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-workflow-server
3
- Version: 1.10.7
3
+ Version: 1.11.0.post1
4
4
  Summary:
5
5
  License: AGPL
6
6
  Requires-Python: >=3.9.0,<4
@@ -24,12 +24,13 @@ Requires-Dist: cryptography (==43.0.3)
24
24
  Requires-Dist: flask (==2.3.3)
25
25
  Requires-Dist: gunicorn (==23.0.0)
26
26
  Requires-Dist: orderly-set (==5.2.2)
27
+ Requires-Dist: orjson (==3.11.4)
27
28
  Requires-Dist: pebble (==5.0.7)
28
29
  Requires-Dist: pyjwt (==2.10.0)
29
30
  Requires-Dist: python-dotenv (==1.2.1)
30
31
  Requires-Dist: retrying (==1.3.4)
31
32
  Requires-Dist: sentry-sdk[flask] (==2.20.0)
32
- Requires-Dist: vellum-ai (==1.10.7)
33
+ Requires-Dist: vellum-ai (==1.11.0)
33
34
  Description-Content-Type: text/markdown
34
35
 
35
36
  # Vellum Workflow Runner Server
@@ -8,13 +8,13 @@ workflow_server/api/tests/test_input_display_mapping.py,sha256=drBZqMudFyB5wgiUO
8
8
  workflow_server/api/tests/test_workflow_view.py,sha256=B6B8mCirt3FvpPKRP_AyzPJ199k_gwLzAcQuWRkzEfA,32343
9
9
  workflow_server/api/tests/test_workflow_view_async_exec.py,sha256=eP_H2xI9SRfJdoJ6HPeynQecnxR50I_8aDCooF-YzIw,11952
10
10
  workflow_server/api/tests/test_workflow_view_stream_workflow_route.py,sha256=16ZxP_nuAIP1Cg4-4z6EQttn07SRY1GkVq2m53z6XaE,42389
11
- workflow_server/api/workflow_view.py,sha256=RiRO0Z_gCIbdcG9XX_PcB9j8Qx5K_2dXxxtkib6fezY,24601
12
- workflow_server/code_exec_runner.py,sha256=DLNNrinCRbnkSvlqVvSZ1wv_etI7r_kKAXNPGMj3jBk,2196
11
+ workflow_server/api/workflow_view.py,sha256=gYT1lWSYadiG5OLQpg09mJT4xz_foSmsIMvtO7GNbAo,24669
12
+ workflow_server/code_exec_runner.py,sha256=vJlCQ8FkcG8RfCZ34Ea2Xt6J7dNkU5EqA-KxRkbVOeo,2219
13
13
  workflow_server/config.py,sha256=I4hfTsjIbHxoSKylPCjKnrysPV0jO5nfRKwpKvEcfAE,2193
14
14
  workflow_server/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  workflow_server/core/cancel_workflow.py,sha256=QcEeYUIrxq4pub-z9BlGi5fLI3gVRml-56rMCW7j5Hc,2212
16
16
  workflow_server/core/events.py,sha256=24MA66DVQuaLJJcZrS8IL1Zq4Ohi9CoouKZ5VgoH3Cs,1402
17
- workflow_server/core/executor.py,sha256=xbySFdb9KHoqFDfiKMR77fViFVo3XEQ5ER54C1PlS8c,16948
17
+ workflow_server/core/executor.py,sha256=Drw6TcegjKFIoowDzeQzCf2QwblSa-stm70YBfFItRU,16968
18
18
  workflow_server/core/utils.py,sha256=mecVPqQkthrC4mpop3r8J3IWnBmKbDgqfCrSagyzVEg,2021
19
19
  workflow_server/core/workflow_executor_context.py,sha256=8faOdpU4cBeIbmOvg9VzD3eS5i_PKcH7tyNGzx_rehg,3899
20
20
  workflow_server/logging_config.py,sha256=Hvx1t8uhqMMinl-5qcef7ufUvzs6x14VRnCb7YZxEAg,1206
@@ -31,7 +31,7 @@ workflow_server/utils/tests/test_sentry_integration.py,sha256=14PfuW8AaQNNtqLmBs
31
31
  workflow_server/utils/tests/test_system_utils.py,sha256=_4GwXvVvU5BrATxUEWwQIPg0bzQXMWBtiBmjP8MTxJM,4314
32
32
  workflow_server/utils/tests/test_utils.py,sha256=0Nq6du8o-iBtTrip9_wgHES53JSiJbVdSXaBnPobw3s,6930
33
33
  workflow_server/utils/utils.py,sha256=m7iMJtor5SQLWu7jlJw-X5Q3nmbq69BCxTMv6qnFYrA,4835
34
- vellum_workflow_server-1.10.7.dist-info/METADATA,sha256=fmGtKTAbZbiiO93Cw18heCPbkQUjjicY2bEXEg2TB5U,2269
35
- vellum_workflow_server-1.10.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- vellum_workflow_server-1.10.7.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
37
- vellum_workflow_server-1.10.7.dist-info/RECORD,,
34
+ vellum_workflow_server-1.11.0.post1.dist-info/METADATA,sha256=sU_57FzsmfgTgFLvjdhj_4qSa5hFOlBPrnTtRndDQnc,2308
35
+ vellum_workflow_server-1.11.0.post1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
+ vellum_workflow_server-1.11.0.post1.dist-info/entry_points.txt,sha256=uB_0yPkr7YV6RhEXzvFReUM8P4OQBlVXD6TN6eb9-oc,277
37
+ vellum_workflow_server-1.11.0.post1.dist-info/RECORD,,
@@ -15,6 +15,7 @@ from uuid import uuid4
15
15
  from typing import Any, Dict, Generator, Iterator, Optional, Union, cast
16
16
 
17
17
  from flask import Blueprint, Response, current_app as app, request, stream_with_context
18
+ import orjson
18
19
  from pydantic import ValidationError
19
20
  from vellum_ee.workflows.display.nodes.get_node_display_class import get_node_display_class
20
21
  from vellum_ee.workflows.display.types import WorkflowDisplayContext
@@ -115,7 +116,7 @@ def stream_workflow_route() -> Response:
115
116
  for row in workflow_events:
116
117
  yield "\n"
117
118
  if isinstance(row, dict):
118
- dump = json.dumps(row)
119
+ dump = orjson.dumps(row).decode("utf-8")
119
120
  yield dump
120
121
  else:
121
122
  yield row
@@ -500,11 +501,11 @@ def stream_node_route() -> Response:
500
501
  break
501
502
 
502
503
  def generator() -> Generator[str, None, None]:
503
- yield json.dumps(vembda_initiated_event.model_dump(mode="json"))
504
+ yield orjson.dumps(vembda_initiated_event.model_dump(mode="json")).decode("utf-8")
504
505
 
505
506
  for row in node_events():
506
507
  yield "\n"
507
- yield json.dumps(row)
508
+ yield orjson.dumps(row).decode("utf-8")
508
509
 
509
510
  headers = {
510
511
  "X-Vellum-SDK-Version": vembda_initiated_event.body.sdk_version,
@@ -1,11 +1,12 @@
1
1
  from datetime import datetime
2
- import json
3
2
  import logging
4
3
  import os
5
4
  from threading import Event as ThreadingEvent
6
5
  from uuid import uuid4
7
6
  from typing import Optional
8
7
 
8
+ import orjson
9
+
9
10
  from workflow_server.core.events import VembdaExecutionInitiatedBody, VembdaExecutionInitiatedEvent
10
11
  from workflow_server.core.executor import stream_workflow
11
12
  from workflow_server.core.utils import serialize_vembda_rejected_event
@@ -29,7 +30,7 @@ def run_code_exec_stream() -> None:
29
30
  split_input = input_raw.split("\n--vellum-input-stop--\n")
30
31
  input_json = split_input[0]
31
32
 
32
- input_data = json.loads(input_json)
33
+ input_data = orjson.loads(input_json)
33
34
  context = WorkflowExecutorContext.model_validate(input_data)
34
35
 
35
36
  print("--vellum-output-start--") # noqa: T201
@@ -53,7 +54,7 @@ def run_code_exec_stream() -> None:
53
54
  cancel_signal=ThreadingEvent(),
54
55
  )
55
56
  for line in stream_iterator:
56
- print(f"{_EVENT_LINE}{json.dumps(line)}") # noqa: T201
57
+ print(f"{_EVENT_LINE}{orjson.dumps(line).decode('utf-8')}") # noqa: T201
57
58
  except Exception as e:
58
59
  logger.exception(e)
59
60
 
@@ -1,6 +1,5 @@
1
1
  from datetime import datetime, timezone
2
2
  from io import StringIO
3
- import json
4
3
  import logging
5
4
  from multiprocessing import Process, Queue
6
5
  import os
@@ -13,6 +12,7 @@ from traceback import format_exc
13
12
  from uuid import UUID, uuid4
14
13
  from typing import Any, Callable, Generator, Iterator, Optional, Tuple
15
14
 
15
+ import orjson
16
16
  from vellum_ee.workflows.display.utils.events import event_enricher
17
17
  from vellum_ee.workflows.server.virtual_file_loader import VirtualFileFinder
18
18
 
@@ -104,7 +104,7 @@ def _stream_workflow_wrapper(
104
104
  span_id_emitted = True
105
105
 
106
106
  for event in stream_iterator:
107
- queue.put(json.dumps(event))
107
+ queue.put(orjson.dumps(event).decode("utf-8"))
108
108
 
109
109
  except Exception as e:
110
110
  if not span_id_emitted: