vellum-ai 0.14.21__py3-none-any.whl → 0.14.23__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.
Files changed (147) hide show
  1. vellum/__init__.py +122 -0
  2. vellum/client/core/client_wrapper.py +1 -1
  3. vellum/client/resources/workflow_deployments/client.py +250 -0
  4. vellum/client/types/__init__.py +122 -0
  5. vellum/client/types/api_request_parent_context.py +41 -0
  6. vellum/client/types/api_version_enum.py +5 -0
  7. vellum/client/types/base_output.py +21 -0
  8. vellum/client/types/code_resource_definition.py +31 -0
  9. vellum/client/types/external_input_descriptor.py +23 -0
  10. vellum/client/types/invoked_port.py +19 -0
  11. vellum/client/types/ml_model_usage_wrapper.py +21 -0
  12. vellum/client/types/node_event_display_context.py +30 -0
  13. vellum/client/types/node_execution_fulfilled_body.py +24 -0
  14. vellum/client/types/node_execution_fulfilled_event.py +49 -0
  15. vellum/client/types/node_execution_initiated_body.py +21 -0
  16. vellum/client/types/node_execution_initiated_event.py +49 -0
  17. vellum/client/types/node_execution_paused_body.py +20 -0
  18. vellum/client/types/node_execution_paused_event.py +49 -0
  19. vellum/client/types/node_execution_rejected_body.py +22 -0
  20. vellum/client/types/node_execution_rejected_event.py +49 -0
  21. vellum/client/types/node_execution_resumed_body.py +20 -0
  22. vellum/client/types/node_execution_resumed_event.py +49 -0
  23. vellum/client/types/node_execution_span.py +46 -0
  24. vellum/client/types/node_execution_span_attributes.py +19 -0
  25. vellum/client/types/node_execution_streaming_body.py +22 -0
  26. vellum/client/types/node_execution_streaming_event.py +49 -0
  27. vellum/client/types/node_parent_context.py +43 -0
  28. vellum/client/types/parent_context.py +21 -0
  29. vellum/client/types/prompt_deployment_parent_context.py +49 -0
  30. vellum/client/types/slim_workflow_execution_read.py +54 -0
  31. vellum/client/types/span_link.py +41 -0
  32. vellum/client/types/span_link_type_enum.py +5 -0
  33. vellum/client/types/vellum_code_resource_definition.py +25 -0
  34. vellum/client/types/vellum_node_execution_event.py +18 -0
  35. vellum/client/types/vellum_sdk_error.py +21 -0
  36. vellum/client/types/vellum_sdk_error_code_enum.py +20 -0
  37. vellum/client/types/vellum_span.py +7 -0
  38. vellum/client/types/vellum_workflow_execution_event.py +20 -0
  39. vellum/client/types/workflow_deployment_event_executions_response.py +55 -0
  40. vellum/client/types/workflow_deployment_parent_context.py +49 -0
  41. vellum/client/types/workflow_error.py +7 -0
  42. vellum/client/types/workflow_event_display_context.py +28 -0
  43. vellum/client/types/workflow_event_execution_read.py +60 -0
  44. vellum/client/types/workflow_execution_actual.py +30 -0
  45. vellum/client/types/workflow_execution_fulfilled_body.py +21 -0
  46. vellum/client/types/workflow_execution_fulfilled_event.py +49 -0
  47. vellum/client/types/workflow_execution_initiated_body.py +30 -0
  48. vellum/client/types/workflow_execution_initiated_event.py +53 -0
  49. vellum/client/types/workflow_execution_paused_body.py +22 -0
  50. vellum/client/types/workflow_execution_paused_event.py +49 -0
  51. vellum/client/types/workflow_execution_rejected_body.py +22 -0
  52. vellum/client/types/workflow_execution_rejected_event.py +49 -0
  53. vellum/client/types/workflow_execution_resumed_body.py +20 -0
  54. vellum/client/types/workflow_execution_resumed_event.py +49 -0
  55. vellum/client/types/workflow_execution_snapshotted_body.py +21 -0
  56. vellum/client/types/workflow_execution_snapshotted_event.py +51 -0
  57. vellum/client/types/workflow_execution_span.py +50 -0
  58. vellum/client/types/workflow_execution_span_attributes.py +19 -0
  59. vellum/client/types/workflow_execution_streaming_body.py +22 -0
  60. vellum/client/types/workflow_execution_streaming_event.py +49 -0
  61. vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +22 -0
  62. vellum/client/types/workflow_execution_view_online_eval_metric_result.py +30 -0
  63. vellum/client/types/workflow_initialization_error.py +24 -0
  64. vellum/client/types/workflow_parent_context.py +43 -0
  65. vellum/client/types/workflow_sandbox_parent_context.py +44 -0
  66. vellum/types/api_request_parent_context.py +3 -0
  67. vellum/types/api_version_enum.py +3 -0
  68. vellum/types/base_output.py +3 -0
  69. vellum/types/code_resource_definition.py +3 -0
  70. vellum/types/external_input_descriptor.py +3 -0
  71. vellum/types/invoked_port.py +3 -0
  72. vellum/types/ml_model_usage_wrapper.py +3 -0
  73. vellum/types/node_event_display_context.py +3 -0
  74. vellum/types/node_execution_fulfilled_body.py +3 -0
  75. vellum/types/node_execution_fulfilled_event.py +3 -0
  76. vellum/types/node_execution_initiated_body.py +3 -0
  77. vellum/types/node_execution_initiated_event.py +3 -0
  78. vellum/types/node_execution_paused_body.py +3 -0
  79. vellum/types/node_execution_paused_event.py +3 -0
  80. vellum/types/node_execution_rejected_body.py +3 -0
  81. vellum/types/node_execution_rejected_event.py +3 -0
  82. vellum/types/node_execution_resumed_body.py +3 -0
  83. vellum/types/node_execution_resumed_event.py +3 -0
  84. vellum/types/node_execution_span.py +3 -0
  85. vellum/types/node_execution_span_attributes.py +3 -0
  86. vellum/types/node_execution_streaming_body.py +3 -0
  87. vellum/types/node_execution_streaming_event.py +3 -0
  88. vellum/types/node_parent_context.py +3 -0
  89. vellum/types/parent_context.py +3 -0
  90. vellum/types/prompt_deployment_parent_context.py +3 -0
  91. vellum/types/slim_workflow_execution_read.py +3 -0
  92. vellum/types/span_link.py +3 -0
  93. vellum/types/span_link_type_enum.py +3 -0
  94. vellum/types/vellum_code_resource_definition.py +3 -0
  95. vellum/types/vellum_node_execution_event.py +3 -0
  96. vellum/types/vellum_sdk_error.py +3 -0
  97. vellum/types/vellum_sdk_error_code_enum.py +3 -0
  98. vellum/types/vellum_span.py +3 -0
  99. vellum/types/vellum_workflow_execution_event.py +3 -0
  100. vellum/types/workflow_deployment_event_executions_response.py +3 -0
  101. vellum/types/workflow_deployment_parent_context.py +3 -0
  102. vellum/types/workflow_error.py +3 -0
  103. vellum/types/workflow_event_display_context.py +3 -0
  104. vellum/types/workflow_event_execution_read.py +3 -0
  105. vellum/types/workflow_execution_actual.py +3 -0
  106. vellum/types/workflow_execution_fulfilled_body.py +3 -0
  107. vellum/types/workflow_execution_fulfilled_event.py +3 -0
  108. vellum/types/workflow_execution_initiated_body.py +3 -0
  109. vellum/types/workflow_execution_initiated_event.py +3 -0
  110. vellum/types/workflow_execution_paused_body.py +3 -0
  111. vellum/types/workflow_execution_paused_event.py +3 -0
  112. vellum/types/workflow_execution_rejected_body.py +3 -0
  113. vellum/types/workflow_execution_rejected_event.py +3 -0
  114. vellum/types/workflow_execution_resumed_body.py +3 -0
  115. vellum/types/workflow_execution_resumed_event.py +3 -0
  116. vellum/types/workflow_execution_snapshotted_body.py +3 -0
  117. vellum/types/workflow_execution_snapshotted_event.py +3 -0
  118. vellum/types/workflow_execution_span.py +3 -0
  119. vellum/types/workflow_execution_span_attributes.py +3 -0
  120. vellum/types/workflow_execution_streaming_body.py +3 -0
  121. vellum/types/workflow_execution_streaming_event.py +3 -0
  122. vellum/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -0
  123. vellum/types/workflow_execution_view_online_eval_metric_result.py +3 -0
  124. vellum/types/workflow_initialization_error.py +3 -0
  125. vellum/types/workflow_parent_context.py +3 -0
  126. vellum/types/workflow_sandbox_parent_context.py +3 -0
  127. vellum/utils/templating/constants.py +7 -2
  128. vellum/utils/templating/custom_filters.py +9 -0
  129. vellum/workflows/README.md +3 -2
  130. vellum/workflows/nodes/core/retry_node/tests/test_node.py +0 -23
  131. vellum/workflows/nodes/core/templating_node/tests/test_templating_node.py +18 -0
  132. vellum/workflows/nodes/displayable/api_node/tests/test_api_node.py +4 -2
  133. vellum/workflows/nodes/displayable/bases/api_node/node.py +1 -1
  134. vellum/workflows/workflows/base.py +2 -2
  135. vellum/workflows/workflows/tests/test_base_workflow.py +10 -0
  136. {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/METADATA +2 -3
  137. {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/RECORD +147 -25
  138. vellum_ee/workflows/display/nodes/vellum/base_adornment_node.py +63 -42
  139. vellum_ee/workflows/display/nodes/vellum/final_output_node.py +8 -0
  140. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +8 -0
  141. vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +12 -8
  142. vellum_ee/workflows/display/workflows/base_workflow_display.py +9 -27
  143. vellum_ee/workflows/display/workflows/tests/test_workflow_display.py +54 -0
  144. vellum_ee/workflows/display/workflows/vellum_workflow_display.py +2 -2
  145. {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/LICENSE +0 -0
  146. {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/WHEEL +0 -0
  147. {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,18 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .node_execution_initiated_event import NodeExecutionInitiatedEvent
5
+ from .node_execution_streaming_event import NodeExecutionStreamingEvent
6
+ from .node_execution_fulfilled_event import NodeExecutionFulfilledEvent
7
+ from .node_execution_rejected_event import NodeExecutionRejectedEvent
8
+ from .node_execution_paused_event import NodeExecutionPausedEvent
9
+ from .node_execution_resumed_event import NodeExecutionResumedEvent
10
+
11
+ VellumNodeExecutionEvent = typing.Union[
12
+ NodeExecutionInitiatedEvent,
13
+ NodeExecutionStreamingEvent,
14
+ NodeExecutionFulfilledEvent,
15
+ NodeExecutionRejectedEvent,
16
+ NodeExecutionPausedEvent,
17
+ NodeExecutionResumedEvent,
18
+ ]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .vellum_sdk_error_code_enum import VellumSdkErrorCodeEnum
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import typing
7
+ import pydantic
8
+
9
+
10
+ class VellumSdkError(UniversalBaseModel):
11
+ code: VellumSdkErrorCodeEnum
12
+ message: str
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ VellumSdkErrorCodeEnum = typing.Union[
6
+ typing.Literal[
7
+ "INVALID_WORKFLOW",
8
+ "INVALID_INPUTS",
9
+ "INVALID_OUTPUTS",
10
+ "INVALID_STATE",
11
+ "INVALID_CODE",
12
+ "INVALID_TEMPLATE",
13
+ "INTERNAL_ERROR",
14
+ "PROVIDER_ERROR",
15
+ "USER_DEFINED_ERROR",
16
+ "WORKFLOW_CANCELLED",
17
+ "NODE_EXECUTION",
18
+ ],
19
+ typing.Any,
20
+ ]
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .workflow_execution_span import WorkflowExecutionSpan
5
+ from .node_execution_span import NodeExecutionSpan
6
+
7
+ VellumSpan = typing.Union[WorkflowExecutionSpan, NodeExecutionSpan]
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .workflow_execution_initiated_event import WorkflowExecutionInitiatedEvent
5
+ from .workflow_execution_streaming_event import WorkflowExecutionStreamingEvent
6
+ from .workflow_execution_fulfilled_event import WorkflowExecutionFulfilledEvent
7
+ from .workflow_execution_rejected_event import WorkflowExecutionRejectedEvent
8
+ from .workflow_execution_paused_event import WorkflowExecutionPausedEvent
9
+ from .workflow_execution_resumed_event import WorkflowExecutionResumedEvent
10
+ from .workflow_execution_snapshotted_event import WorkflowExecutionSnapshottedEvent
11
+
12
+ VellumWorkflowExecutionEvent = typing.Union[
13
+ WorkflowExecutionInitiatedEvent,
14
+ WorkflowExecutionStreamingEvent,
15
+ WorkflowExecutionFulfilledEvent,
16
+ WorkflowExecutionRejectedEvent,
17
+ WorkflowExecutionPausedEvent,
18
+ WorkflowExecutionResumedEvent,
19
+ WorkflowExecutionSnapshottedEvent,
20
+ ]
@@ -0,0 +1,55 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .array_vellum_value import ArrayVellumValue
7
+ from .node_parent_context import NodeParentContext
8
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
9
+ from .span_link import SpanLink
10
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
11
+ from .workflow_parent_context import WorkflowParentContext
12
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
13
+ import typing
14
+ from .slim_workflow_execution_read import SlimWorkflowExecutionRead
15
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
16
+ import pydantic
17
+ from ..core.pydantic_utilities import update_forward_refs
18
+
19
+
20
+ class WorkflowDeploymentEventExecutionsResponse(UniversalBaseModel):
21
+ count: int
22
+ results: typing.List[SlimWorkflowExecutionRead]
23
+
24
+ if IS_PYDANTIC_V2:
25
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
26
+ else:
27
+
28
+ class Config:
29
+ frozen = True
30
+ smart_union = True
31
+ extra = pydantic.Extra.allow
32
+
33
+
34
+ update_forward_refs(
35
+ ApiRequestParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
36
+ )
37
+ update_forward_refs(
38
+ ArrayVellumValue, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
39
+ )
40
+ update_forward_refs(
41
+ NodeParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
42
+ )
43
+ update_forward_refs(
44
+ PromptDeploymentParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
45
+ )
46
+ update_forward_refs(SpanLink, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse)
47
+ update_forward_refs(
48
+ WorkflowDeploymentParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
49
+ )
50
+ update_forward_refs(
51
+ WorkflowParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
52
+ )
53
+ update_forward_refs(
54
+ WorkflowSandboxParentContext, WorkflowDeploymentEventExecutionsResponse=WorkflowDeploymentEventExecutionsResponse
55
+ )
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+ from ..core.pydantic_utilities import update_forward_refs
9
+
10
+
11
+ class WorkflowDeploymentParentContext(UniversalBaseModel):
12
+ parent: typing.Optional["ParentContext"] = None
13
+ links: typing.Optional[typing.List["SpanLink"]] = None
14
+ type: typing.Literal["WORKFLOW_RELEASE_TAG"] = "WORKFLOW_RELEASE_TAG"
15
+ span_id: str
16
+ deployment_id: str
17
+ deployment_name: str
18
+ deployment_history_item_id: str
19
+ release_tag_id: str
20
+ release_tag_name: str
21
+ external_id: typing.Optional[str] = None
22
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
23
+ workflow_version_id: str
24
+
25
+ if IS_PYDANTIC_V2:
26
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
+ else:
28
+
29
+ class Config:
30
+ frozen = True
31
+ smart_union = True
32
+ extra = pydantic.Extra.allow
33
+
34
+
35
+ from .api_request_parent_context import ApiRequestParentContext # noqa: E402
36
+ from .node_parent_context import NodeParentContext # noqa: E402
37
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext # noqa: E402
38
+ from .span_link import SpanLink # noqa: E402
39
+ from .workflow_parent_context import WorkflowParentContext # noqa: E402
40
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext # noqa: E402
41
+ from .parent_context import ParentContext # noqa: E402
42
+
43
+ update_forward_refs(ApiRequestParentContext, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
44
+ update_forward_refs(NodeParentContext, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
46
+ update_forward_refs(SpanLink, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
47
+ update_forward_refs(WorkflowParentContext, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
48
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowDeploymentParentContext=WorkflowDeploymentParentContext)
49
+ update_forward_refs(WorkflowDeploymentParentContext)
@@ -0,0 +1,7 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .workflow_event_error import WorkflowEventError
5
+ from .workflow_initialization_error import WorkflowInitializationError
6
+
7
+ WorkflowError = typing.Union[WorkflowEventError, WorkflowInitializationError]
@@ -0,0 +1,28 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+ from ..core.pydantic_utilities import update_forward_refs
9
+
10
+
11
+ class WorkflowEventDisplayContext(UniversalBaseModel):
12
+ node_displays: typing.Dict[str, "NodeEventDisplayContext"]
13
+ workflow_inputs: typing.Dict[str, str]
14
+ workflow_outputs: typing.Dict[str, str]
15
+
16
+ if IS_PYDANTIC_V2:
17
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
18
+ else:
19
+
20
+ class Config:
21
+ frozen = True
22
+ smart_union = True
23
+ extra = pydantic.Extra.allow
24
+
25
+
26
+ from .node_event_display_context import NodeEventDisplayContext # noqa: E402
27
+
28
+ update_forward_refs(WorkflowEventDisplayContext)
@@ -0,0 +1,60 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .node_parent_context import NodeParentContext
7
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
8
+ from .span_link import SpanLink
9
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
10
+ from .workflow_parent_context import WorkflowParentContext
11
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
12
+ from .array_vellum_value import ArrayVellumValue
13
+ from .node_event_display_context import NodeEventDisplayContext
14
+ from .workflow_event_display_context import WorkflowEventDisplayContext
15
+ import typing
16
+ import datetime as dt
17
+ from .execution_vellum_value import ExecutionVellumValue
18
+ from .workflow_error import WorkflowError
19
+ from .workflow_execution_actual import WorkflowExecutionActual
20
+ from .workflow_execution_view_online_eval_metric_result import WorkflowExecutionViewOnlineEvalMetricResult
21
+ from .workflow_execution_usage_calculation_fulfilled_body import WorkflowExecutionUsageCalculationFulfilledBody
22
+ from .vellum_span import VellumSpan
23
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
24
+ import pydantic
25
+ from ..core.pydantic_utilities import update_forward_refs
26
+
27
+
28
+ class WorkflowEventExecutionRead(UniversalBaseModel):
29
+ span_id: str
30
+ parent_context: typing.Optional[WorkflowDeploymentParentContext] = None
31
+ start: dt.datetime
32
+ end: typing.Optional[dt.datetime] = None
33
+ inputs: typing.List[ExecutionVellumValue]
34
+ outputs: typing.List[ExecutionVellumValue]
35
+ error: typing.Optional[WorkflowError] = None
36
+ latest_actual: typing.Optional[WorkflowExecutionActual] = None
37
+ metric_results: typing.List[WorkflowExecutionViewOnlineEvalMetricResult]
38
+ usage_results: typing.List[WorkflowExecutionUsageCalculationFulfilledBody]
39
+ spans: typing.List[VellumSpan]
40
+
41
+ if IS_PYDANTIC_V2:
42
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
43
+ else:
44
+
45
+ class Config:
46
+ frozen = True
47
+ smart_union = True
48
+ extra = pydantic.Extra.allow
49
+
50
+
51
+ update_forward_refs(ApiRequestParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
52
+ update_forward_refs(NodeParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
53
+ update_forward_refs(PromptDeploymentParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
54
+ update_forward_refs(SpanLink, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
55
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
56
+ update_forward_refs(WorkflowParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
57
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
58
+ update_forward_refs(ArrayVellumValue, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
59
+ update_forward_refs(NodeEventDisplayContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
60
+ update_forward_refs(WorkflowEventDisplayContext, WorkflowEventExecutionRead=WorkflowEventExecutionRead)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .array_vellum_value import ArrayVellumValue
6
+ from .execution_vellum_value import ExecutionVellumValue
7
+ import datetime as dt
8
+ import typing
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+ import pydantic
11
+ from ..core.pydantic_utilities import update_forward_refs
12
+
13
+
14
+ class WorkflowExecutionActual(UniversalBaseModel):
15
+ output: ExecutionVellumValue
16
+ timestamp: dt.datetime
17
+ quality: float
18
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
19
+
20
+ if IS_PYDANTIC_V2:
21
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(ArrayVellumValue, WorkflowExecutionActual=WorkflowExecutionActual)
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .vellum_code_resource_definition import VellumCodeResourceDefinition
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class WorkflowExecutionFulfilledBody(UniversalBaseModel):
11
+ workflow_definition: VellumCodeResourceDefinition
12
+ outputs: typing.Dict[str, typing.Optional[typing.Any]]
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .node_parent_context import NodeParentContext
7
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
8
+ from .span_link import SpanLink
9
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
10
+ from .workflow_parent_context import WorkflowParentContext
11
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
12
+ import typing
13
+ from .parent_context import ParentContext
14
+ from .workflow_execution_fulfilled_body import WorkflowExecutionFulfilledBody
15
+ import datetime as dt
16
+ from .api_version_enum import ApiVersionEnum
17
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
18
+ import pydantic
19
+ from ..core.pydantic_utilities import update_forward_refs
20
+
21
+
22
+ class WorkflowExecutionFulfilledEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.fulfilled"] = "workflow.execution.fulfilled"
26
+ body: WorkflowExecutionFulfilledBody
27
+ id: str
28
+ timestamp: dt.datetime
29
+ api_version: typing.Optional[ApiVersionEnum] = None
30
+ trace_id: str
31
+ span_id: str
32
+
33
+ if IS_PYDANTIC_V2:
34
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
35
+ else:
36
+
37
+ class Config:
38
+ frozen = True
39
+ smart_union = True
40
+ extra = pydantic.Extra.allow
41
+
42
+
43
+ update_forward_refs(ApiRequestParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
48
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
49
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionFulfilledEvent=WorkflowExecutionFulfilledEvent)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .node_event_display_context import NodeEventDisplayContext
6
+ from .workflow_event_display_context import WorkflowEventDisplayContext
7
+ from .vellum_code_resource_definition import VellumCodeResourceDefinition
8
+ import typing
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+ import pydantic
11
+ from ..core.pydantic_utilities import update_forward_refs
12
+
13
+
14
+ class WorkflowExecutionInitiatedBody(UniversalBaseModel):
15
+ workflow_definition: VellumCodeResourceDefinition
16
+ display_context: typing.Optional[WorkflowEventDisplayContext] = None
17
+ inputs: typing.Dict[str, typing.Optional[typing.Any]]
18
+
19
+ if IS_PYDANTIC_V2:
20
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
21
+ else:
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic.Extra.allow
27
+
28
+
29
+ update_forward_refs(NodeEventDisplayContext, WorkflowExecutionInitiatedBody=WorkflowExecutionInitiatedBody)
30
+ update_forward_refs(WorkflowEventDisplayContext, WorkflowExecutionInitiatedBody=WorkflowExecutionInitiatedBody)
@@ -0,0 +1,53 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .node_parent_context import NodeParentContext
7
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
8
+ from .span_link import SpanLink
9
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
10
+ from .workflow_parent_context import WorkflowParentContext
11
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
12
+ from .node_event_display_context import NodeEventDisplayContext
13
+ from .workflow_event_display_context import WorkflowEventDisplayContext
14
+ import typing
15
+ from .parent_context import ParentContext
16
+ from .workflow_execution_initiated_body import WorkflowExecutionInitiatedBody
17
+ import datetime as dt
18
+ from .api_version_enum import ApiVersionEnum
19
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
20
+ import pydantic
21
+ from ..core.pydantic_utilities import update_forward_refs
22
+
23
+
24
+ class WorkflowExecutionInitiatedEvent(UniversalBaseModel):
25
+ parent: typing.Optional[ParentContext] = None
26
+ links: typing.Optional[typing.List[SpanLink]] = None
27
+ name: typing.Literal["workflow.execution.initiated"] = "workflow.execution.initiated"
28
+ body: WorkflowExecutionInitiatedBody
29
+ id: str
30
+ timestamp: dt.datetime
31
+ api_version: typing.Optional[ApiVersionEnum] = None
32
+ trace_id: str
33
+ span_id: str
34
+
35
+ if IS_PYDANTIC_V2:
36
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
37
+ else:
38
+
39
+ class Config:
40
+ frozen = True
41
+ smart_union = True
42
+ extra = pydantic.Extra.allow
43
+
44
+
45
+ update_forward_refs(ApiRequestParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
46
+ update_forward_refs(NodeParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
47
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
48
+ update_forward_refs(SpanLink, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
49
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
50
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
51
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
52
+ update_forward_refs(NodeEventDisplayContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
53
+ update_forward_refs(WorkflowEventDisplayContext, WorkflowExecutionInitiatedEvent=WorkflowExecutionInitiatedEvent)
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .vellum_code_resource_definition import VellumCodeResourceDefinition
5
+ import typing
6
+ from .external_input_descriptor import ExternalInputDescriptor
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class WorkflowExecutionPausedBody(UniversalBaseModel):
12
+ workflow_definition: VellumCodeResourceDefinition
13
+ external_inputs: typing.List[ExternalInputDescriptor]
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .node_parent_context import NodeParentContext
7
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
8
+ from .span_link import SpanLink
9
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
10
+ from .workflow_parent_context import WorkflowParentContext
11
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
12
+ import typing
13
+ from .parent_context import ParentContext
14
+ from .workflow_execution_paused_body import WorkflowExecutionPausedBody
15
+ import datetime as dt
16
+ from .api_version_enum import ApiVersionEnum
17
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
18
+ import pydantic
19
+ from ..core.pydantic_utilities import update_forward_refs
20
+
21
+
22
+ class WorkflowExecutionPausedEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.paused"] = "workflow.execution.paused"
26
+ body: WorkflowExecutionPausedBody
27
+ id: str
28
+ timestamp: dt.datetime
29
+ api_version: typing.Optional[ApiVersionEnum] = None
30
+ trace_id: str
31
+ span_id: str
32
+
33
+ if IS_PYDANTIC_V2:
34
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
35
+ else:
36
+
37
+ class Config:
38
+ frozen = True
39
+ smart_union = True
40
+ extra = pydantic.Extra.allow
41
+
42
+
43
+ update_forward_refs(ApiRequestParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
48
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
49
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionPausedEvent=WorkflowExecutionPausedEvent)
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .vellum_code_resource_definition import VellumCodeResourceDefinition
5
+ from .vellum_sdk_error import VellumSdkError
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+ import pydantic
9
+
10
+
11
+ class WorkflowExecutionRejectedBody(UniversalBaseModel):
12
+ workflow_definition: VellumCodeResourceDefinition
13
+ error: VellumSdkError
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .api_request_parent_context import ApiRequestParentContext
6
+ from .node_parent_context import NodeParentContext
7
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext
8
+ from .span_link import SpanLink
9
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext
10
+ from .workflow_parent_context import WorkflowParentContext
11
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
12
+ import typing
13
+ from .parent_context import ParentContext
14
+ from .workflow_execution_rejected_body import WorkflowExecutionRejectedBody
15
+ import datetime as dt
16
+ from .api_version_enum import ApiVersionEnum
17
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
18
+ import pydantic
19
+ from ..core.pydantic_utilities import update_forward_refs
20
+
21
+
22
+ class WorkflowExecutionRejectedEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.rejected"] = "workflow.execution.rejected"
26
+ body: WorkflowExecutionRejectedBody
27
+ id: str
28
+ timestamp: dt.datetime
29
+ api_version: typing.Optional[ApiVersionEnum] = None
30
+ trace_id: str
31
+ span_id: str
32
+
33
+ if IS_PYDANTIC_V2:
34
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
35
+ else:
36
+
37
+ class Config:
38
+ frozen = True
39
+ smart_union = True
40
+ extra = pydantic.Extra.allow
41
+
42
+
43
+ update_forward_refs(ApiRequestParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
48
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
49
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionRejectedEvent=WorkflowExecutionRejectedEvent)
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .vellum_code_resource_definition import VellumCodeResourceDefinition
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import typing
7
+ import pydantic
8
+
9
+
10
+ class WorkflowExecutionResumedBody(UniversalBaseModel):
11
+ workflow_definition: VellumCodeResourceDefinition
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15
+ else:
16
+
17
+ class Config:
18
+ frozen = True
19
+ smart_union = True
20
+ extra = pydantic.Extra.allow