Skip to content

Commit d0134ae

Browse files
feat: propagate errors from agent runtime to CAS
1 parent 87a6484 commit d0134ae

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.9.3"
3+
version = "0.9.4"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/runtime/chat/runtime.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
UiPathStreamOptions,
1212
)
1313
from uipath.runtime.chat.protocol import UiPathChatProtocol
14+
from uipath.runtime.errors import UiPathBaseRuntimeError, UiPathErrorContract
1415
from uipath.runtime.events import (
1516
UiPathRuntimeEvent,
1617
UiPathRuntimeMessageEvent,
@@ -19,7 +20,6 @@
1920
UiPathRuntimeResult,
2021
UiPathRuntimeStatus,
2122
)
22-
from uipath.runtime.errors import UiPathBaseRuntimeError, UiPathErrorContract
2323
from uipath.runtime.schema import UiPathRuntimeSchema
2424

2525
logger = logging.getLogger(__name__)
@@ -129,7 +129,9 @@ async def stream(
129129
for trigger in api_triggers:
130130
await self.chat_bridge.emit_interrupt_event(trigger)
131131

132-
resume_data = (await self.chat_bridge.wait_for_resume())
132+
resume_data = (
133+
await self.chat_bridge.wait_for_resume()
134+
)
133135

134136
assert trigger.interrupt_id is not None, (
135137
"Trigger interrupt_id cannot be None"
@@ -169,9 +171,7 @@ async def _emit_error_event(self, error_id: str, message: str) -> None:
169171
message=message,
170172
)
171173
except Exception:
172-
logger.warning(
173-
"Failed to emit exchange error event", exc_info=True
174-
)
174+
logger.warning("Failed to emit exchange error event", exc_info=True)
175175

176176
async def get_schema(self) -> UiPathRuntimeSchema:
177177
"""Get schema from the delegate runtime."""

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)