Skip to content

Commit f0b87dc

Browse files
chore: support for multiple resume triggers
1 parent f77bffa commit f0b87dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/uipath/runtime/result.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class UiPathRuntimeResult(UiPathRuntimeEvent):
2424
output: dict[str, Any] | BaseModel | str | None = None
2525
status: UiPathRuntimeStatus = UiPathRuntimeStatus.SUCCESSFUL
2626
trigger: UiPathResumeTrigger | None = None
27+
triggers: list[UiPathResumeTrigger] | None = None
2728
error: UiPathErrorContract | None = None
2829

2930
event_type: UiPathRuntimeEventType = Field(
@@ -50,6 +51,9 @@ def to_dict(self) -> dict[str, Any]:
5051
if self.trigger:
5152
result["resume"] = self.trigger.model_dump(by_alias=True)
5253

54+
if self.triggers:
55+
result["triggers"] = self.triggers.model_dump(by_alias=True)
56+
5357
if self.error:
5458
result["error"] = self.error.model_dump()
5559

0 commit comments

Comments
 (0)