vellum-workflow-server 1.5.3__tar.gz → 1.5.3.post1__tar.gz

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.

Files changed (33) hide show
  1. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/PKG-INFO +1 -1
  2. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/pyproject.toml +1 -1
  3. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/executor.py +3 -51
  4. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/README.md +0 -0
  5. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/__init__.py +0 -0
  6. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/__init__.py +0 -0
  7. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/auth_middleware.py +0 -0
  8. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/healthz_view.py +0 -0
  9. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/tests/__init__.py +0 -0
  10. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/tests/test_input_display_mapping.py +0 -0
  11. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/tests/test_workflow_view.py +0 -0
  12. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/tests/test_workflow_view_stream_workflow_route.py +0 -0
  13. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/api/workflow_view.py +0 -0
  14. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/code_exec_runner.py +0 -0
  15. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/config.py +0 -0
  16. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/__init__.py +0 -0
  17. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/cancel_workflow.py +0 -0
  18. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/events.py +0 -0
  19. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/utils.py +0 -0
  20. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/core/workflow_executor_context.py +0 -0
  21. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/server.py +0 -0
  22. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/start.py +0 -0
  23. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/__init__.py +0 -0
  24. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/exit_handler.py +0 -0
  25. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/log_proxy.py +0 -0
  26. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/oom_killer.py +0 -0
  27. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/sentry.py +0 -0
  28. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/system_utils.py +0 -0
  29. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/tests/__init__.py +0 -0
  30. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/tests/test_sentry_integration.py +0 -0
  31. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/tests/test_system_utils.py +0 -0
  32. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/tests/test_utils.py +0 -0
  33. {vellum_workflow_server-1.5.3 → vellum_workflow_server-1.5.3.post1}/src/workflow_server/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vellum-workflow-server
3
- Version: 1.5.3
3
+ Version: 1.5.3.post1
4
4
  Summary:
5
5
  License: AGPL
6
6
  Requires-Python: >=3.9.0,<4
@@ -3,7 +3,7 @@ name = "vellum-workflow-server"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "vellum-workflow-server"
6
- version = "1.5.3"
6
+ version = "1.5.3.post1"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -23,14 +23,6 @@ from vellum.workflows import BaseWorkflow
23
23
  from vellum.workflows.emitters.base import BaseWorkflowEmitter
24
24
  from vellum.workflows.emitters.vellum_emitter import VellumEmitter
25
25
  from vellum.workflows.events.exception_handling import stream_initialization_exception
26
- from vellum.workflows.events.node import (
27
- NodeExecutionFulfilledBody,
28
- NodeExecutionFulfilledEvent,
29
- NodeExecutionInitiatedBody,
30
- NodeExecutionInitiatedEvent,
31
- NodeExecutionStreamingBody,
32
- NodeExecutionStreamingEvent,
33
- )
34
26
  from vellum.workflows.events.types import BaseEvent
35
27
  from vellum.workflows.events.workflow import WorkflowEventDisplayContext
36
28
  from vellum.workflows.exceptions import WorkflowInitializationException
@@ -290,51 +282,11 @@ def stream_node(
290
282
  workflow_definition=workflow.__class__,
291
283
  )
292
284
 
293
- workflow_inputs = _get_workflow_inputs(executor_context, workflow.__class__)
294
- workflow_state = _get_workflow_state(executor_context, workflow_inputs=workflow_inputs)
295
- node = Node(
296
- state=workflow_state,
297
- context=workflow._context,
298
- )
299
-
300
285
  def call_node() -> Generator[dict[str, Any], Any, None]:
301
286
  executor_context.stream_start_time = time.time_ns()
302
- span_id = uuid4()
303
- yield NodeExecutionInitiatedEvent(
304
- id=uuid4(),
305
- timestamp=datetime.now(),
306
- trace_id=executor_context.trace_id,
307
- span_id=span_id,
308
- body=NodeExecutionInitiatedBody(
309
- node_definition=Node,
310
- inputs=node._inputs,
311
- ),
312
- ).model_dump(mode="json")
313
- node_outputs = node.run()
314
-
315
- if isinstance(node_outputs, (Iterator)):
316
- for node_output in node_outputs:
317
- yield NodeExecutionStreamingEvent(
318
- id=uuid4(),
319
- timestamp=datetime.now(),
320
- trace_id=executor_context.trace_id,
321
- span_id=span_id,
322
- body=NodeExecutionStreamingBody(
323
- node_definition=Node,
324
- output=node_output,
325
- ),
326
- ).model_dump(mode="json")
327
- else:
328
- yield NodeExecutionFulfilledEvent(
329
- id=uuid4(),
330
- timestamp=datetime.now(),
331
- trace_id=executor_context.trace_id,
332
- span_id=span_id,
333
- body=NodeExecutionFulfilledBody(
334
- node_definition=Node,
335
- outputs=node_outputs,
336
- ),
337
- ).model_dump(mode="json")
287
+
288
+ for event in workflow.run_node(Node, inputs=executor_context.inputs): # type: ignore[arg-type]
289
+ yield event.model_dump(mode="json")
338
290
 
339
291
  return _call_stream(
340
292
  executor_context=executor_context,