11"""Result of an execution with status and optional error information."""
22
33from enum import Enum
4- from typing import Any , Dict , List , Literal , Optional , Union
4+ from typing import Any , Literal , Optional , Union
55
66from pydantic import BaseModel , Field
77
@@ -56,7 +56,7 @@ class UiPathResumeTrigger(BaseModel):
5656class UiPathRuntimeResult (UiPathRuntimeEvent ):
5757 """Result of an execution with status and optional error information."""
5858
59- output : Optional [Union [Dict [str , Any ], BaseModel ]] = None
59+ output : Optional [Union [dict [str , Any ], BaseModel ]] = None
6060 status : UiPathRuntimeStatus = UiPathRuntimeStatus .SUCCESSFUL
6161 resume : Optional [UiPathResumeTrigger ] = None
6262 error : Optional [UiPathErrorContract ] = None
@@ -65,7 +65,7 @@ class UiPathRuntimeResult(UiPathRuntimeEvent):
6565 default = UiPathRuntimeEventType .RUNTIME_RESULT , frozen = True
6666 )
6767
68- def to_dict (self ) -> Dict [str , Any ]:
68+ def to_dict (self ) -> dict [str , Any ]:
6969 """Convert to dictionary format for output."""
7070 if self .output is None :
7171 output_data = {}
@@ -98,4 +98,4 @@ class UiPathBreakpointResult(UiPathRuntimeResult):
9898 breakpoint_node : str # Which node the breakpoint is at
9999 breakpoint_type : Literal ["before" , "after" ] # Before or after the node
100100 current_state : dict [str , Any ] | Any # Current workflow state at breakpoint
101- next_nodes : List [str ] # Which node(s) will execute next
101+ next_nodes : list [str ] # Which node(s) will execute next
0 commit comments