Skip to content

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Dec 5, 2025

Description

This PR updates the UiPath SDK to use chat runtime for conversational agents in both run and debug commands. The changes integrate UiPathChatRuntime as a wrapper around the base runtime when conversation context (conversation_id and exchange_id) is present, enabling proper streaming of chat events to the conversational agent service (CAS).

  • Upgraded uipath-runtime dependency from 0.2.2 to 0.2.3 fix: add chat context ids uipath-runtime-python#45
  • Integrated UiPathChatRuntime wrapper in execute_runtime (cli_run.py) and debug command (cli_debug.py) to handle conversational agents
  • Refactored get_chat_bridge() to extract conversation_id and exchange_id from context instead of separate parameters
  • Renamed WebSocketChatBridge to SocketIOChatBridge for clearer implementation naming

Development Package

  • Add this package as a dependency in your pyproject.toml:
[project]
dependencies = [
  # Exact version:
  "uipath==2.2.24.dev1009943294",

  # Any version from PR
  "uipath>=2.2.24.dev1009940000,<2.2.24.dev1009950000"
]

[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[tool.uv.sources]
uipath = { index = "testpypi" }

@cristipufu cristipufu self-assigned this Dec 5, 2025
@cristipufu cristipufu added the build:dev Create a dev build from the pr label Dec 5, 2025
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Dec 5, 2025
@cristipufu cristipufu force-pushed the fix/stream_run_debug branch from 09dae2a to 2eedd63 Compare December 6, 2025 08:26
@cristipufu cristipufu changed the title fix: stream debug run in console fix: use chat runtime on run and debug Dec 6, 2025

This comment was marked as outdated.

@cristipufu cristipufu force-pushed the fix/stream_run_debug branch 2 times, most recently from 87fd46c to 18c6512 Compare December 6, 2025 08:35
@cristipufu cristipufu force-pushed the fix/stream_run_debug branch from 18c6512 to 738f5dd Compare December 6, 2025 08:36
@cristipufu cristipufu merged commit 4001fe0 into main Dec 6, 2025
67 checks passed
@cristipufu cristipufu deleted the fix/stream_run_debug branch December 6, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:dev Create a dev build from the pr test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants