Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-runtime"
version = "0.8.6"
version = "0.8.7"
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
9 changes: 9 additions & 0 deletions src/uipath/runtime/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class UiPathRuntimeContext(BaseModel):
org_id: str | None = None
folder_key: str | None = None
process_key: str | None = None
parent_operation_id: str | None = None
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new field parent_operation_id lacks a description. Other similar fields like conversation_id, exchange_id, and message_id have Field descriptors with descriptions. Consider adding a Field descriptor with a description to maintain consistency with the codebase conventions. For example: parent_operation_id: str | None = Field(None, description="Parent operation identifier")

Suggested change
parent_operation_id: str | None = None
parent_operation_id: str | None = Field(
None, description="Parent operation identifier for CAS"
)

Copilot uses AI. Check for mistakes.
config_path: str = "uipath.json"
runtime_dir: str | None = Field(
"__uipath", description="Directory for runtime files"
Expand Down Expand Up @@ -376,6 +377,14 @@ def from_config(
attributes_set.add(attr_name)
setattr(instance, attr_name, runtime_config[config_key])

# Handle InternalArguments
internal_arguments = runtime_config.get("internalArguments", {})
if internal_arguments and isinstance(internal_arguments, dict):
parent_operation_id = internal_arguments.get("parentOperationId")
if parent_operation_id:
attributes_set.add("parent_operation_id")
instance.parent_operation_id = parent_operation_id

# Handle fpsProperties mapping
for config_key, attr_name in fps_mappings.items():
if config_key in fps_config and hasattr(instance, attr_name):
Expand Down
4 changes: 4 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def test_from_config_loads_runtime_and_fps_properties(tmp_path: Path) -> None:
"outputFile": "my_output.json",
"stateFile": "my_state.db",
"logsFile": "my_logs.log",
"internalArguments": {"parentOperationId": "operationId-123"},
},
"fpsProperties": {
"conversationalService.conversationId": "conv-abc",
Expand All @@ -229,6 +230,9 @@ def test_from_config_loads_runtime_and_fps_properties(tmp_path: Path) -> None:
assert ctx.state_file == "my_state.db"
assert ctx.logs_file == "my_logs.log"

# parentOperationId is mapped correctly from internal_arguments
Copy link

Copilot AI Feb 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after '#' in the comment. Python style conventions (PEP 8) recommend adding a space after the comment marker for better readability. The comment should read: # parentOperationId is mapped correctly from internal_arguments

Copilot uses AI. Check for mistakes.
assert ctx.parent_operation_id == "operationId-123"

# fpsProperties mapping
assert ctx.conversation_id == "conv-abc"
assert ctx.exchange_id == "ex-def"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading