Skip to content

Commit 3062bd0

Browse files
scottcmgclaude
andcommitted
feat: rename syntheticUserId to conversationalUserId [JAR-9965]
Match the CAS-side rename: the forwarded conversation owner id may be a real cloud user id or a synthetic user id, so 'synthetic' was misleading. Renames the context field (conversational_user_id) and the FpsProperties key (conversationalService.conversationalUserId). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1642ce3 commit 3062bd0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/uipath/runtime/context.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ 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-
synthetic_user_id: str | None = Field(
41-
None, description="Conversation owner id (synthetic user) 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)",
4243
)
4344
voice_mode: Literal["session"] | None = Field(
4445
None, description="Voice job type for CAS"
@@ -367,7 +368,7 @@ def from_config(
367368
"conversationalService.conversationId": "conversation_id",
368369
"conversationalService.exchangeId": "exchange_id",
369370
"conversationalService.messageId": "message_id",
370-
"conversationalService.syntheticUserId": "synthetic_user_id",
371+
"conversationalService.conversationalUserId": "conversational_user_id",
371372
"mcpServer.id": "mcp_server_id",
372373
"mcpServer.slug": "mcp_server_slug",
373374
"voice.mode": "voice_mode",

tests/test_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +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.syntheticUserId": "owner-guid",
186+
"conversationalService.conversationalUserId": "owner-guid",
187187
"mcpServer.id": "server-id-123",
188188
"mcpServer.slug": "my-mcp-server",
189189
}
@@ -196,7 +196,7 @@ def test_from_config_extracts_fps_properties_without_runtime(tmp_path: Path) ->
196196
assert ctx.conversation_id == "conv-123"
197197
assert ctx.exchange_id == "ex-456"
198198
assert ctx.message_id == "msg-789"
199-
assert ctx.synthetic_user_id == "owner-guid"
199+
assert ctx.conversational_user_id == "owner-guid"
200200
assert ctx.mcp_server_id == "server-id-123"
201201
assert ctx.mcp_server_slug == "my-mcp-server"
202202

0 commit comments

Comments
 (0)