Skip to content

Commit dfdd9ea

Browse files
authored
Merge pull request #119 from UiPath/feat/urt-handshake-synthetic-user-id
feat: map conversationalService.conversationalUserId to runtime context [JAR-9965]
2 parents 283e869 + efcb6f9 commit dfdd9ea

4 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎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.11.0"
3+
version = "0.11.1"
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/context.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ class UiPathRuntimeContext(BaseModel):
3737
)
3838
exchange_id: str | None = Field(None, description="Exchange identifier for CAS")
3939
message_id: str | None = Field(None, description="Message identifier for CAS")
40+
conversational_user_id: str | None = Field(
41+
None,
42+
description="Conversation owner id for CAS (a real cloud user id or a synthetic user id)",
43+
)
4044
voice_mode: Literal["session"] | None = Field(
4145
None, description="Voice job type for CAS"
4246
)
@@ -364,6 +368,7 @@ def from_config(
364368
"conversationalService.conversationId": "conversation_id",
365369
"conversationalService.exchangeId": "exchange_id",
366370
"conversationalService.messageId": "message_id",
371+
"conversationalService.conversationalUserId": "conversational_user_id",
367372
"mcpServer.id": "mcp_server_id",
368373
"mcpServer.slug": "mcp_server_slug",
369374
"voice.mode": "voice_mode",

‎tests/test_context.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def test_from_config_extracts_fps_properties_without_runtime(tmp_path: Path) ->
183183
"conversationalService.conversationId": "conv-123",
184184
"conversationalService.exchangeId": "ex-456",
185185
"conversationalService.messageId": "msg-789",
186+
"conversationalService.conversationalUserId": "owner-guid",
186187
"mcpServer.id": "server-id-123",
187188
"mcpServer.slug": "my-mcp-server",
188189
}
@@ -195,6 +196,7 @@ def test_from_config_extracts_fps_properties_without_runtime(tmp_path: Path) ->
195196
assert ctx.conversation_id == "conv-123"
196197
assert ctx.exchange_id == "ex-456"
197198
assert ctx.message_id == "msg-789"
199+
assert ctx.conversational_user_id == "owner-guid"
198200
assert ctx.mcp_server_id == "server-id-123"
199201
assert ctx.mcp_server_slug == "my-mcp-server"
200202

‎uv.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)