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 packages/uipath/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 1 addition & 8 deletions packages/uipath/src/uipath/agent/models/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {
Expand Down
21 changes: 5 additions & 16 deletions packages/uipath/tests/agent/models/test_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": [],
Expand All @@ -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
Expand Down Expand Up @@ -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": [],
Expand All @@ -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."""
Expand All @@ -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": [],
Expand Down
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