Skip to content

Commit 99228df

Browse files
AAgnihotryclaude
andcommitted
Add missing emit_exchange_error_event method
Added emit_exchange_error_event method to WebChatBridge to comply with UiPathChatProtocol. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 67a77ac commit 99228df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/uipath/dev/services/chat_bridge.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ async def emit_exchange_end_event(self) -> None:
5454
if self.on_exchange_end:
5555
self.on_exchange_end()
5656

57+
async def emit_exchange_error_event(self, error: Exception) -> None:
58+
"""Send an exchange error event."""
59+
logger.error(f"Exchange error: {error}")
60+
5761
async def wait_for_resume(self) -> dict[str, Any]:
5862
"""Wait for the user to respond to an interrupt."""
5963
self._resume_event.clear()

0 commit comments

Comments
 (0)