From 61222f7b4845a01bed1729db678df820a1795b8f Mon Sep 17 00:00:00 2001 From: Radu Mihai Gheorghe Date: Thu, 9 Apr 2026 16:18:15 +0300 Subject: [PATCH] fix: remove unwanted a2a fields --- packages/uipath/pyproject.toml | 2 +- .../uipath/src/uipath/agent/models/agent.py | 9 +------- .../uipath/tests/agent/models/test_agent.py | 21 +++++-------------- packages/uipath/uv.lock | 2 +- 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/packages/uipath/pyproject.toml b/packages/uipath/pyproject.toml index 234a9c2d8..7eb42ce59 100644 --- a/packages/uipath/pyproject.toml +++ b/packages/uipath/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath" -version = "2.10.45" +version = "2.10.46" description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools." readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/packages/uipath/src/uipath/agent/models/agent.py b/packages/uipath/src/uipath/agent/models/agent.py index f3121d9dd..679ddb808 100644 --- a/packages/uipath/src/uipath/agent/models/agent.py +++ b/packages/uipath/src/uipath/agent/models/agent.py @@ -467,17 +467,10 @@ class AgentA2aResourceConfig(BaseAgentResourceConfig): ) id: str slug: str = Field(..., alias="slug") - agent_card_url: str = Field(default="", alias="agentCardUrl") - is_active: bool = Field(default=True, alias="isActive") + folder_path: str = Field(alias="folderPath") cached_agent_card: Optional[Dict[str, Any]] = Field( default=None, alias="cachedAgentCard" ) - created_at: Optional[str] = Field(default=None, alias="createdAt") - created_by: Optional[str] = Field(default=None, alias="createdBy") - updated_at: Optional[str] = Field(default=None, alias="updatedAt") - updated_by: Optional[str] = Field(default=None, alias="updatedBy") - a2a_url: str = Field(default="", alias="a2aUrl") - folder_path: Optional[str] = Field(default=None, alias="folderPath") _RECIPIENT_TYPE_NORMALIZED_MAP: Mapping[int | str, AgentEscalationRecipientType] = { diff --git a/packages/uipath/tests/agent/models/test_agent.py b/packages/uipath/tests/agent/models/test_agent.py index d730f7e31..750564deb 100644 --- a/packages/uipath/tests/agent/models/test_agent.py +++ b/packages/uipath/tests/agent/models/test_agent.py @@ -3614,8 +3614,7 @@ def test_a2a_resource(self): "name": "Philosopher Agent", "slug": "philosopher-agent", "description": "A philosophical agent that answers questions with wisdom and philosopher quotes", - "agentCardUrl": "", - "isActive": True, + "folderPath": "shared", "cachedAgentCard": { "name": "Philosopher Agent", "description": "Philosopher Agent assistant", @@ -3666,10 +3665,6 @@ def test_a2a_resource(self): ], "version": "0.7.70", }, - "createdAt": "2026-03-15T10:12:47.9073065", - "createdBy": "f4bc4946-baed-4083-82b9-03d334bbacbe", - "updatedAt": None, - "updatedBy": None, } ], "features": [], @@ -3693,13 +3688,8 @@ def test_a2a_resource(self): a2a_resource.description == "A philosophical agent that answers questions with wisdom and philosopher quotes" ) - assert a2a_resource.is_active is True - assert a2a_resource.agent_card_url == "" assert a2a_resource.id == "755e2f7d-5a3d-47f3-8e9d-7ff0bf226357" - assert a2a_resource.created_at == "2026-03-15T10:12:47.9073065" - assert a2a_resource.created_by == "f4bc4946-baed-4083-82b9-03d334bbacbe" - assert a2a_resource.updated_at is None - assert a2a_resource.updated_by is None + assert a2a_resource.folder_path == "shared" # Validate cached agent card is a plain dict card = a2a_resource.cached_agent_card @@ -3737,7 +3727,7 @@ def test_a2a_resource_without_cached_card(self): "name": "Minimal A2A Agent", "slug": "minimal-a2a", "description": "A minimal A2A agent", - "isActive": False, + "folderPath": "shared", } ], "features": [], @@ -3756,10 +3746,8 @@ def test_a2a_resource_without_cached_card(self): assert isinstance(a2a_resource, AgentA2aResourceConfig) assert a2a_resource.name == "Minimal A2A Agent" assert a2a_resource.slug == "minimal-a2a" - assert a2a_resource.is_active is False + assert a2a_resource.folder_path == "shared" assert a2a_resource.cached_agent_card is None - assert a2a_resource.agent_card_url == "" - assert a2a_resource.created_at is None def test_a2a_resource_case_insensitive(self): """Test that A2A resource type is parsed case-insensitively.""" @@ -3785,6 +3773,7 @@ def test_a2a_resource_case_insensitive(self): "name": "Case Test Agent", "slug": "case-test", "description": "Testing case insensitive parsing", + "folderPath": "shared", } ], "features": [], diff --git a/packages/uipath/uv.lock b/packages/uipath/uv.lock index b7fed5ea5..3c06d2318 100644 --- a/packages/uipath/uv.lock +++ b/packages/uipath/uv.lock @@ -2543,7 +2543,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.10.45" +version = "2.10.46" source = { editable = "." } dependencies = [ { name = "applicationinsights" },