vellum-ai 1.7.11__py3-none-any.whl → 1.7.13__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-ai might be problematic. Click here for more details.

Files changed (37) hide show
  1. vellum/__init__.py +2 -0
  2. vellum/client/core/client_wrapper.py +2 -2
  3. vellum/client/types/__init__.py +2 -0
  4. vellum/client/types/auth_type_enum.py +5 -0
  5. vellum/client/types/integration_name.py +4 -0
  6. vellum/client/types/slim_integration_auth_config_read.py +2 -0
  7. vellum/client/types/slim_workflow_execution_read.py +3 -3
  8. vellum/client/types/vellum_error_code_enum.py +1 -0
  9. vellum/client/types/vellum_sdk_error_code_enum.py +1 -0
  10. vellum/client/types/workflow_event_execution_read.py +3 -3
  11. vellum/client/types/workflow_execution_event_error_code.py +1 -0
  12. vellum/client/types/workflow_execution_snapshotted_body.py +1 -0
  13. vellum/types/auth_type_enum.py +3 -0
  14. vellum/workflows/events/workflow.py +18 -2
  15. vellum/workflows/nodes/displayable/bases/base_prompt_node/node.py +3 -0
  16. vellum/workflows/nodes/displayable/inline_prompt_node/tests/test_node.py +3 -0
  17. vellum/workflows/nodes/displayable/tool_calling_node/tests/test_node.py +52 -0
  18. vellum/workflows/nodes/displayable/tool_calling_node/utils.py +2 -0
  19. vellum/workflows/references/trigger.py +3 -9
  20. vellum/workflows/runner/runner.py +14 -8
  21. vellum/workflows/tests/triggers/test_vellum_integration_trigger.py +134 -176
  22. vellum/workflows/triggers/__init__.py +1 -2
  23. vellum/workflows/triggers/tests/test_integration.py +2 -2
  24. vellum/workflows/triggers/vellum_integration.py +133 -141
  25. vellum/workflows/types/trigger_exec_config.py +8 -11
  26. vellum/workflows/utils/uuids.py +33 -0
  27. {vellum_ai-1.7.11.dist-info → vellum_ai-1.7.13.dist-info}/METADATA +1 -1
  28. {vellum_ai-1.7.11.dist-info → vellum_ai-1.7.13.dist-info}/RECORD +34 -35
  29. vellum_ee/workflows/display/base.py +1 -3
  30. vellum_ee/workflows/display/nodes/vellum/inline_prompt_node.py +3 -1
  31. vellum_ee/workflows/display/workflows/base_workflow_display.py +14 -7
  32. vellum/workflows/triggers/slack.py +0 -101
  33. vellum/workflows/triggers/tests/test_slack.py +0 -180
  34. vellum_ee/workflows/display/tests/workflow_serialization/test_slack_trigger_serialization.py +0 -52
  35. {vellum_ai-1.7.11.dist-info → vellum_ai-1.7.13.dist-info}/LICENSE +0 -0
  36. {vellum_ai-1.7.11.dist-info → vellum_ai-1.7.13.dist-info}/WHEEL +0 -0
  37. {vellum_ai-1.7.11.dist-info → vellum_ai-1.7.13.dist-info}/entry_points.txt +0 -0
@@ -1,52 +0,0 @@
1
- from vellum_ee.workflows.display.workflows.get_vellum_workflow_display_class import get_workflow_display
2
-
3
- from tests.workflows.basic_trigger_slack.workflow import SlackTriggerWorkflow
4
-
5
-
6
- def test_serialize_slack_trigger_workflow():
7
- workflow_display = get_workflow_display(workflow_class=SlackTriggerWorkflow)
8
- serialized_workflow: dict = workflow_display.serialize()
9
-
10
- assert serialized_workflow.keys() == {
11
- "workflow_raw_data",
12
- "input_variables",
13
- "state_variables",
14
- "output_variables",
15
- "triggers",
16
- }
17
-
18
- triggers = serialized_workflow["triggers"]
19
- assert triggers == [
20
- {
21
- "id": "45855aa4-27a0-426b-b399-a8ff2932a684",
22
- "type": "SLACK_MESSAGE",
23
- "attributes": [
24
- {"id": "9d4bd7d7-314d-48b8-a483-f964ac3ca28a", "name": "channel", "type": "STRING", "value": None},
25
- {"id": "af4aac3c-74f2-4250-801b-f2dbd7745277", "name": "event_type", "type": "STRING", "value": None},
26
- {"id": "bdf8965f-b2f1-4f83-9a5a-e1532d73c795", "name": "message", "type": "STRING", "value": None},
27
- {"id": "5a910518-f875-497c-ab5f-680eecce2d1d", "name": "thread_ts", "type": "STRING", "value": None},
28
- {"id": "4aadb9ec-aabf-4a58-a9bb-41e89e8a20cb", "name": "timestamp", "type": "STRING", "value": None},
29
- {"id": "c16971a0-73a3-4b81-93dc-2bcaafa3585a", "name": "user", "type": "STRING", "value": None},
30
- ],
31
- }
32
- ]
33
-
34
- workflow_raw_data = serialized_workflow["workflow_raw_data"]
35
- nodes = workflow_raw_data["nodes"]
36
-
37
- process_node = next(node for node in nodes if node["type"] == "GENERIC" and node["label"] == "Process Message Node")
38
- assert "outputs" in process_node
39
- assert process_node["outputs"] == [
40
- {
41
- "id": "a1208db6-2daf-48a4-acee-71c8b1f42656",
42
- "name": "processed_message",
43
- "type": "STRING",
44
- "value": {
45
- "type": "TRIGGER_ATTRIBUTE",
46
- "trigger_id": "45855aa4-27a0-426b-b399-a8ff2932a684",
47
- "attribute_id": "bdf8965f-b2f1-4f83-9a5a-e1532d73c795",
48
- },
49
- }
50
- ]
51
-
52
- assert triggers[0]["id"] == process_node["outputs"][0]["value"]["trigger_id"]