Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 packages/uipath-platform/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-platform"
version = "0.1.32"
version = "0.1.33"
description = "HTTP client library for programmatic access to UiPath Platform"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ def folder_identifier(self) -> str:

class GenericResourceOverwrite(ResourceOverwrite):
resource_type: Literal[
"process", "index", "app", "asset", "bucket", "mcpServer", "queue"
"process",
"index",
"app",
"asset",
"bucket",
"mcpServer",
"queue",
"remoteA2aAgent",
]
name: str = Field(alias="name")
folder_path: str = Field(alias="folderPath")
Expand Down
25 changes: 25 additions & 0 deletions packages/uipath/tests/sdk/test_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,28 @@ def test_parse_connection_with_capitalized_alias(self):
assert isinstance(overwrite, ConnectionResourceOverwrite)
assert overwrite.connection_id == "conn-456"
assert overwrite.folder_key == "folder2"


class TestRemoteA2aAgentResourceOverwrite:
"""Test that Remote A2A agent resources parse as GenericResourceOverwrite."""

def test_remote_a2a_agent_resource_overwrite(self):
overwrite = GenericResourceOverwrite(
resource_type="remoteA2aAgent",
name="basica2a",
folder_path="Customers/ProjectA",
)
assert overwrite.resource_type == "remoteA2aAgent"
assert overwrite.resource_identifier == "basica2a"
assert overwrite.folder_identifier == "Customers/ProjectA"

def test_parse_remote_a2a_agent(self):
"""Parser accepts a remoteA2aAgent-keyed overwrite without discriminator error."""
overwrite = ResourceOverwriteParser.parse(
key="remoteA2aAgent.basica2a.solution_folder",
value={"name": "basica2a", "folderPath": "Customers/ProjectA"},
)
assert isinstance(overwrite, GenericResourceOverwrite)
assert overwrite.resource_type == "remoteA2aAgent"
assert overwrite.resource_identifier == "basica2a"
assert overwrite.folder_identifier == "Customers/ProjectA"
2 changes: 1 addition & 1 deletion packages/uipath/uv.lock

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

Loading