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.
- vellum/__init__.py +122 -0
- vellum/client/core/client_wrapper.py +1 -1
- vellum/client/resources/workflow_deployments/client.py +250 -0
- vellum/client/types/__init__.py +122 -0
- vellum/client/types/api_request_parent_context.py +41 -0
- vellum/client/types/api_version_enum.py +5 -0
- vellum/client/types/base_output.py +21 -0
- vellum/client/types/code_resource_definition.py +31 -0
- vellum/client/types/external_input_descriptor.py +23 -0
- vellum/client/types/invoked_port.py +19 -0
- vellum/client/types/ml_model_usage_wrapper.py +21 -0
- vellum/client/types/node_event_display_context.py +30 -0
- vellum/client/types/node_execution_fulfilled_body.py +24 -0
- vellum/client/types/node_execution_fulfilled_event.py +49 -0
- vellum/client/types/node_execution_initiated_body.py +21 -0
- vellum/client/types/node_execution_initiated_event.py +49 -0
- vellum/client/types/node_execution_paused_body.py +20 -0
- vellum/client/types/node_execution_paused_event.py +49 -0
- vellum/client/types/node_execution_rejected_body.py +22 -0
- vellum/client/types/node_execution_rejected_event.py +49 -0
- vellum/client/types/node_execution_resumed_body.py +20 -0
- vellum/client/types/node_execution_resumed_event.py +49 -0
- vellum/client/types/node_execution_span.py +46 -0
- vellum/client/types/node_execution_span_attributes.py +19 -0
- vellum/client/types/node_execution_streaming_body.py +22 -0
- vellum/client/types/node_execution_streaming_event.py +49 -0
- vellum/client/types/node_parent_context.py +43 -0
- vellum/client/types/parent_context.py +21 -0
- vellum/client/types/prompt_deployment_parent_context.py +49 -0
- vellum/client/types/slim_workflow_execution_read.py +54 -0
- vellum/client/types/span_link.py +41 -0
- vellum/client/types/span_link_type_enum.py +5 -0
- vellum/client/types/vellum_code_resource_definition.py +25 -0
- vellum/client/types/vellum_node_execution_event.py +18 -0
- vellum/client/types/vellum_sdk_error.py +21 -0
- vellum/client/types/vellum_sdk_error_code_enum.py +20 -0
- vellum/client/types/vellum_span.py +7 -0
- vellum/client/types/vellum_workflow_execution_event.py +20 -0
- vellum/client/types/workflow_deployment_event_executions_response.py +55 -0
- vellum/client/types/workflow_deployment_parent_context.py +49 -0
- vellum/client/types/workflow_error.py +7 -0
- vellum/client/types/workflow_event_display_context.py +28 -0
- vellum/client/types/workflow_event_execution_read.py +60 -0
- vellum/client/types/workflow_execution_actual.py +30 -0
- vellum/client/types/workflow_execution_fulfilled_body.py +21 -0
- vellum/client/types/workflow_execution_fulfilled_event.py +49 -0
- vellum/client/types/workflow_execution_initiated_body.py +30 -0
- vellum/client/types/workflow_execution_initiated_event.py +53 -0
- vellum/client/types/workflow_execution_paused_body.py +22 -0
- vellum/client/types/workflow_execution_paused_event.py +49 -0
- vellum/client/types/workflow_execution_rejected_body.py +22 -0
- vellum/client/types/workflow_execution_rejected_event.py +49 -0
- vellum/client/types/workflow_execution_resumed_body.py +20 -0
- vellum/client/types/workflow_execution_resumed_event.py +49 -0
- vellum/client/types/workflow_execution_snapshotted_body.py +21 -0
- vellum/client/types/workflow_execution_snapshotted_event.py +51 -0
- vellum/client/types/workflow_execution_span.py +50 -0
- vellum/client/types/workflow_execution_span_attributes.py +19 -0
- vellum/client/types/workflow_execution_streaming_body.py +22 -0
- vellum/client/types/workflow_execution_streaming_event.py +49 -0
- vellum/client/types/workflow_execution_usage_calculation_fulfilled_body.py +22 -0
- vellum/client/types/workflow_execution_view_online_eval_metric_result.py +30 -0
- vellum/client/types/workflow_initialization_error.py +24 -0
- vellum/client/types/workflow_parent_context.py +43 -0
- vellum/client/types/workflow_sandbox_parent_context.py +44 -0
- vellum/types/api_request_parent_context.py +3 -0
- vellum/types/api_version_enum.py +3 -0
- vellum/types/base_output.py +3 -0
- vellum/types/code_resource_definition.py +3 -0
- vellum/types/external_input_descriptor.py +3 -0
- vellum/types/invoked_port.py +3 -0
- vellum/types/ml_model_usage_wrapper.py +3 -0
- vellum/types/node_event_display_context.py +3 -0
- vellum/types/node_execution_fulfilled_body.py +3 -0
- vellum/types/node_execution_fulfilled_event.py +3 -0
- vellum/types/node_execution_initiated_body.py +3 -0
- vellum/types/node_execution_initiated_event.py +3 -0
- vellum/types/node_execution_paused_body.py +3 -0
- vellum/types/node_execution_paused_event.py +3 -0
- vellum/types/node_execution_rejected_body.py +3 -0
- vellum/types/node_execution_rejected_event.py +3 -0
- vellum/types/node_execution_resumed_body.py +3 -0
- vellum/types/node_execution_resumed_event.py +3 -0
- vellum/types/node_execution_span.py +3 -0
- vellum/types/node_execution_span_attributes.py +3 -0
- vellum/types/node_execution_streaming_body.py +3 -0
- vellum/types/node_execution_streaming_event.py +3 -0
- vellum/types/node_parent_context.py +3 -0
- vellum/types/parent_context.py +3 -0
- vellum/types/prompt_deployment_parent_context.py +3 -0
- vellum/types/slim_workflow_execution_read.py +3 -0
- vellum/types/span_link.py +3 -0
- vellum/types/span_link_type_enum.py +3 -0
- vellum/types/vellum_code_resource_definition.py +3 -0
- vellum/types/vellum_node_execution_event.py +3 -0
- vellum/types/vellum_sdk_error.py +3 -0
- vellum/types/vellum_sdk_error_code_enum.py +3 -0
- vellum/types/vellum_span.py +3 -0
- vellum/types/vellum_workflow_execution_event.py +3 -0
- vellum/types/workflow_deployment_event_executions_response.py +3 -0
- vellum/types/workflow_deployment_parent_context.py +3 -0
- vellum/types/workflow_error.py +3 -0
- vellum/types/workflow_event_display_context.py +3 -0
- vellum/types/workflow_event_execution_read.py +3 -0
- vellum/types/workflow_execution_actual.py +3 -0
- vellum/types/workflow_execution_fulfilled_body.py +3 -0
- vellum/types/workflow_execution_fulfilled_event.py +3 -0
- vellum/types/workflow_execution_initiated_body.py +3 -0
- vellum/types/workflow_execution_initiated_event.py +3 -0
- vellum/types/workflow_execution_paused_body.py +3 -0
- vellum/types/workflow_execution_paused_event.py +3 -0
- vellum/types/workflow_execution_rejected_body.py +3 -0
- vellum/types/workflow_execution_rejected_event.py +3 -0
- vellum/types/workflow_execution_resumed_body.py +3 -0
- vellum/types/workflow_execution_resumed_event.py +3 -0
- vellum/types/workflow_execution_snapshotted_body.py +3 -0
- vellum/types/workflow_execution_snapshotted_event.py +3 -0
- vellum/types/workflow_execution_span.py +3 -0
- vellum/types/workflow_execution_span_attributes.py +3 -0
- vellum/types/workflow_execution_streaming_body.py +3 -0
- vellum/types/workflow_execution_streaming_event.py +3 -0
- vellum/types/workflow_execution_usage_calculation_fulfilled_body.py +3 -0
- vellum/types/workflow_execution_view_online_eval_metric_result.py +3 -0
- vellum/types/workflow_initialization_error.py +3 -0
- vellum/types/workflow_parent_context.py +3 -0
- vellum/types/workflow_sandbox_parent_context.py +3 -0
- vellum/utils/templating/constants.py +7 -2
- vellum/utils/templating/custom_filters.py +9 -0
- vellum/workflows/README.md +3 -2
- vellum/workflows/nodes/core/retry_node/tests/test_node.py +0 -23
- vellum/workflows/nodes/core/templating_node/tests/test_templating_node.py +18 -0
- vellum/workflows/nodes/displayable/api_node/tests/test_api_node.py +4 -2
- vellum/workflows/nodes/displayable/bases/api_node/node.py +1 -1
- vellum/workflows/workflows/base.py +2 -2
- vellum/workflows/workflows/tests/test_base_workflow.py +10 -0
- {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/METADATA +2 -3
- {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/RECORD +147 -25
- vellum_ee/workflows/display/nodes/vellum/base_adornment_node.py +63 -42
- vellum_ee/workflows/display/nodes/vellum/final_output_node.py +8 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_basic_terminal_node_serialization.py +8 -0
- vellum_ee/workflows/display/tests/workflow_serialization/test_complex_terminal_node_serialization.py +12 -8
- vellum_ee/workflows/display/workflows/base_workflow_display.py +9 -27
- vellum_ee/workflows/display/workflows/tests/test_workflow_display.py +54 -0
- vellum_ee/workflows/display/workflows/vellum_workflow_display.py +2 -2
- {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/LICENSE +0 -0
- {vellum_ai-0.14.21.dist-info → vellum_ai-0.14.23.dist-info}/WHEEL +0 -0
- {vellum_ai-0.14.21.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)
|