Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/uipath/runtime/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ class UiPathRuntimeContext(BaseModel):
)
exchange_id: str | None = Field(None, description="Exchange identifier for CAS")
message_id: str | None = Field(None, description="Message identifier for CAS")
synthetic_user_id: str | None = Field(
None, description="Conversation owner id (synthetic user) for CAS"
)
voice_mode: Literal["session"] | None = Field(
None, description="Voice job type for CAS"
)
Expand Down Expand Up @@ -364,6 +367,7 @@ def from_config(
"conversationalService.conversationId": "conversation_id",
"conversationalService.exchangeId": "exchange_id",
"conversationalService.messageId": "message_id",
"conversationalService.syntheticUserId": "synthetic_user_id",
"mcpServer.id": "mcp_server_id",
"mcpServer.slug": "mcp_server_slug",
"voice.mode": "voice_mode",
Expand Down
2 changes: 2 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def test_from_config_extracts_fps_properties_without_runtime(tmp_path: Path) ->
"conversationalService.conversationId": "conv-123",
"conversationalService.exchangeId": "ex-456",
"conversationalService.messageId": "msg-789",
"conversationalService.syntheticUserId": "owner-guid",
"mcpServer.id": "server-id-123",
"mcpServer.slug": "my-mcp-server",
}
Expand All @@ -195,6 +196,7 @@ def test_from_config_extracts_fps_properties_without_runtime(tmp_path: Path) ->
assert ctx.conversation_id == "conv-123"
assert ctx.exchange_id == "ex-456"
assert ctx.message_id == "msg-789"
assert ctx.synthetic_user_id == "owner-guid"
assert ctx.mcp_server_id == "server-id-123"
assert ctx.mcp_server_slug == "my-mcp-server"

Expand Down
Loading