vellum-ai 0.14.22__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 (139) 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/workflows/nodes/core/retry_node/tests/test_node.py +0 -23
  128. vellum/workflows/workflows/base.py +2 -2
  129. vellum/workflows/workflows/tests/test_base_workflow.py +10 -0
  130. {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.23.dist-info}/METADATA +1 -1
  131. {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.23.dist-info}/RECORD +139 -17
  132. vellum_ee/workflows/display/nodes/vellum/final_output_node.py +8 -0
  133. vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +8 -0
  134. vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +12 -8
  135. vellum_ee/workflows/display/workflows/base_workflow_display.py +0 -6
  136. vellum_ee/workflows/display/workflows/tests/test_workflow_display.py +14 -0
  137. {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.23.dist-info}/LICENSE +0 -0
  138. {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.23.dist-info}/WHEEL +0 -0
  139. {vellum_ai-0.14.22.dist-info → vellum_ai-0.14.23.dist-info}/entry_points.txt +0 -0
@@ -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_resumed_body import WorkflowExecutionResumedBody
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 WorkflowExecutionResumedEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.resumed"] = "workflow.execution.resumed"
26
+ body: WorkflowExecutionResumedBody
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, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
48
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
49
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionResumedEvent=WorkflowExecutionResumedEvent)
@@ -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 WorkflowExecutionSnapshottedBody(UniversalBaseModel):
11
+ workflow_definition: VellumCodeResourceDefinition
12
+ state: 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,51 @@
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_snapshotted_body import WorkflowExecutionSnapshottedBody
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 WorkflowExecutionSnapshottedEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.snapshotted"] = "workflow.execution.snapshotted"
26
+ body: WorkflowExecutionSnapshottedBody
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, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
47
+ update_forward_refs(
48
+ WorkflowDeploymentParentContext, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent
49
+ )
50
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
51
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionSnapshottedEvent=WorkflowExecutionSnapshottedEvent)
@@ -0,0 +1,50 @@
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_event_display_context import NodeEventDisplayContext
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_event_display_context import WorkflowEventDisplayContext
12
+ from .workflow_parent_context import WorkflowParentContext
13
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext
14
+ import typing
15
+ from .vellum_workflow_execution_event import VellumWorkflowExecutionEvent
16
+ from .workflow_execution_span_attributes import WorkflowExecutionSpanAttributes
17
+ import datetime as dt
18
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
19
+ import pydantic
20
+ from ..core.pydantic_utilities import update_forward_refs
21
+
22
+
23
+ class WorkflowExecutionSpan(UniversalBaseModel):
24
+ name: typing.Literal["workflow.execution"] = "workflow.execution"
25
+ events: typing.List[VellumWorkflowExecutionEvent]
26
+ attributes: WorkflowExecutionSpanAttributes
27
+ span_id: str
28
+ start_ts: dt.datetime
29
+ end_ts: dt.datetime
30
+ parent_span_id: typing.Optional[str] = None
31
+
32
+ if IS_PYDANTIC_V2:
33
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
34
+ else:
35
+
36
+ class Config:
37
+ frozen = True
38
+ smart_union = True
39
+ extra = pydantic.Extra.allow
40
+
41
+
42
+ update_forward_refs(ApiRequestParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
43
+ update_forward_refs(NodeEventDisplayContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
46
+ update_forward_refs(SpanLink, WorkflowExecutionSpan=WorkflowExecutionSpan)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
48
+ update_forward_refs(WorkflowEventDisplayContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
49
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
50
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionSpan=WorkflowExecutionSpan)
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class WorkflowExecutionSpanAttributes(UniversalBaseModel):
10
+ label: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -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 .base_output import BaseOutput
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import typing
8
+ import pydantic
9
+
10
+
11
+ class WorkflowExecutionStreamingBody(UniversalBaseModel):
12
+ workflow_definition: VellumCodeResourceDefinition
13
+ output: BaseOutput
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_streaming_body import WorkflowExecutionStreamingBody
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 WorkflowExecutionStreamingEvent(UniversalBaseModel):
23
+ parent: typing.Optional[ParentContext] = None
24
+ links: typing.Optional[typing.List[SpanLink]] = None
25
+ name: typing.Literal["workflow.execution.streaming"] = "workflow.execution.streaming"
26
+ body: WorkflowExecutionStreamingBody
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, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
44
+ update_forward_refs(NodeParentContext, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
45
+ update_forward_refs(PromptDeploymentParentContext, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
46
+ update_forward_refs(SpanLink, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
47
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
48
+ update_forward_refs(WorkflowParentContext, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
49
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowExecutionStreamingEvent=WorkflowExecutionStreamingEvent)
@@ -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
+ import typing
5
+ from .ml_model_usage_wrapper import MlModelUsageWrapper
6
+ from .price import Price
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class WorkflowExecutionUsageCalculationFulfilledBody(UniversalBaseModel):
12
+ usage: typing.List[MlModelUsageWrapper]
13
+ cost: typing.List[Price]
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,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
+ import typing
7
+ from .execution_vellum_value import ExecutionVellumValue
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+ import pydantic
10
+ from ..core.pydantic_utilities import update_forward_refs
11
+
12
+
13
+ class WorkflowExecutionViewOnlineEvalMetricResult(UniversalBaseModel):
14
+ outputs: typing.List[ExecutionVellumValue]
15
+ label: str
16
+ metric_id: str
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
20
+ else:
21
+
22
+ class Config:
23
+ frozen = True
24
+ smart_union = True
25
+ extra = pydantic.Extra.allow
26
+
27
+
28
+ update_forward_refs(
29
+ ArrayVellumValue, WorkflowExecutionViewOnlineEvalMetricResult=WorkflowExecutionViewOnlineEvalMetricResult
30
+ )
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class WorkflowInitializationError(UniversalBaseModel):
10
+ """
11
+ Workflow initialization error.
12
+ """
13
+
14
+ code: str
15
+ message: str
16
+
17
+ if IS_PYDANTIC_V2:
18
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,43 @@
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 .vellum_code_resource_definition import VellumCodeResourceDefinition
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+ from ..core.pydantic_utilities import update_forward_refs
10
+
11
+
12
+ class WorkflowParentContext(UniversalBaseModel):
13
+ parent: typing.Optional["ParentContext"] = None
14
+ links: typing.Optional[typing.List["SpanLink"]] = None
15
+ workflow_definition: VellumCodeResourceDefinition
16
+ type: typing.Literal["WORKFLOW"] = "WORKFLOW"
17
+ span_id: str
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
+ from .api_request_parent_context import ApiRequestParentContext # noqa: E402
30
+ from .node_parent_context import NodeParentContext # noqa: E402
31
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext # noqa: E402
32
+ from .span_link import SpanLink # noqa: E402
33
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext # noqa: E402
34
+ from .workflow_sandbox_parent_context import WorkflowSandboxParentContext # noqa: E402
35
+ from .parent_context import ParentContext # noqa: E402
36
+
37
+ update_forward_refs(ApiRequestParentContext, WorkflowParentContext=WorkflowParentContext)
38
+ update_forward_refs(NodeParentContext, WorkflowParentContext=WorkflowParentContext)
39
+ update_forward_refs(PromptDeploymentParentContext, WorkflowParentContext=WorkflowParentContext)
40
+ update_forward_refs(SpanLink, WorkflowParentContext=WorkflowParentContext)
41
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowParentContext=WorkflowParentContext)
42
+ update_forward_refs(WorkflowSandboxParentContext, WorkflowParentContext=WorkflowParentContext)
43
+ update_forward_refs(WorkflowParentContext)
@@ -0,0 +1,44 @@
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 WorkflowSandboxParentContext(UniversalBaseModel):
12
+ parent: typing.Optional["ParentContext"] = None
13
+ links: typing.Optional[typing.List["SpanLink"]] = None
14
+ type: typing.Literal["WORKFLOW_SANDBOX"] = "WORKFLOW_SANDBOX"
15
+ span_id: str
16
+ sandbox_id: str
17
+ sandbox_history_item_id: str
18
+ scenario_id: str
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
+ from .api_request_parent_context import ApiRequestParentContext # noqa: E402
31
+ from .node_parent_context import NodeParentContext # noqa: E402
32
+ from .prompt_deployment_parent_context import PromptDeploymentParentContext # noqa: E402
33
+ from .span_link import SpanLink # noqa: E402
34
+ from .workflow_deployment_parent_context import WorkflowDeploymentParentContext # noqa: E402
35
+ from .workflow_parent_context import WorkflowParentContext # noqa: E402
36
+ from .parent_context import ParentContext # noqa: E402
37
+
38
+ update_forward_refs(ApiRequestParentContext, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
39
+ update_forward_refs(NodeParentContext, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
40
+ update_forward_refs(PromptDeploymentParentContext, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
41
+ update_forward_refs(SpanLink, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
42
+ update_forward_refs(WorkflowDeploymentParentContext, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
43
+ update_forward_refs(WorkflowParentContext, WorkflowSandboxParentContext=WorkflowSandboxParentContext)
44
+ update_forward_refs(WorkflowSandboxParentContext)
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.api_request_parent_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.api_version_enum import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.base_output import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.code_resource_definition import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.external_input_descriptor import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.invoked_port import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.ml_model_usage_wrapper import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_event_display_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_fulfilled_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_fulfilled_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_initiated_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_initiated_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_paused_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_paused_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_rejected_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_rejected_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_resumed_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_resumed_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_span import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_span_attributes import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_streaming_body import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_execution_streaming_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.node_parent_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.parent_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.prompt_deployment_parent_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.slim_workflow_execution_read import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.span_link import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.span_link_type_enum import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_code_resource_definition import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_node_execution_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_sdk_error import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_sdk_error_code_enum import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_span import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.vellum_workflow_execution_event import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.workflow_deployment_event_executions_response import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.workflow_deployment_parent_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.workflow_error import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.workflow_event_display_context import *
@@ -0,0 +1,3 @@
1
+ # WARNING: This file will be removed in a future release. Please import from "vellum.client" instead.
2
+
3
+ from vellum.client.types.workflow_event_execution_read import *