Skip to content

Commit 9038bc6

Browse files
authored
fix(agent-models): add a2aUrl to AgentA2aResourceConfig (#1743)
1 parent 968e4ae commit 9038bc6

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

packages/uipath/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath"
3-
version = "2.11.9"
3+
version = "2.11.10"
44
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath/src/uipath/agent/models/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ class AgentA2aResourceConfig(BaseAgentResourceConfig):
544544
id: str
545545
slug: str = Field(..., alias="slug")
546546
folder_path: str = Field(alias="folderPath")
547+
a2a_url: str = Field(..., alias="a2aUrl")
547548
cached_agent_card: Optional[Dict[str, Any]] = Field(
548549
default=None, alias="cachedAgentCard"
549550
)

packages/uipath/tests/agent/models/test_agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3995,6 +3995,7 @@ def test_a2a_resource(self):
39953995
"slug": "philosopher-agent",
39963996
"description": "A philosophical agent that answers questions with wisdom and philosopher quotes",
39973997
"folderPath": "shared",
3998+
"a2a_url": "https://cloud.uipath.com/a2a/5045dca3",
39983999
"cachedAgentCard": {
39994000
"name": "Philosopher Agent",
40004001
"description": "Philosopher Agent assistant",
@@ -4070,6 +4071,7 @@ def test_a2a_resource(self):
40704071
)
40714072
assert a2a_resource.id == "755e2f7d-5a3d-47f3-8e9d-7ff0bf226357"
40724073
assert a2a_resource.folder_path == "shared"
4074+
assert a2a_resource.a2a_url == "https://cloud.uipath.com/a2a/5045dca3"
40734075

40744076
# Validate cached agent card is a plain dict
40754077
card = a2a_resource.cached_agent_card
@@ -4108,6 +4110,7 @@ def test_a2a_resource_without_cached_card(self):
41084110
"slug": "minimal-a2a",
41094111
"description": "A minimal A2A agent",
41104112
"folderPath": "shared",
4113+
"a2a_url": "https://cloud.uipath.com/a2a/abc-123",
41114114
}
41124115
],
41134116
"features": [],
@@ -4127,6 +4130,7 @@ def test_a2a_resource_without_cached_card(self):
41274130
assert a2a_resource.name == "Minimal A2A Agent"
41284131
assert a2a_resource.slug == "minimal-a2a"
41294132
assert a2a_resource.folder_path == "shared"
4133+
assert a2a_resource.a2a_url == "https://cloud.uipath.com/a2a/abc-123"
41304134
assert a2a_resource.cached_agent_card is None
41314135

41324136
def test_a2a_resource_case_insensitive(self):
@@ -4154,6 +4158,7 @@ def test_a2a_resource_case_insensitive(self):
41544158
"slug": "case-test",
41554159
"description": "Testing case insensitive parsing",
41564160
"folderPath": "shared",
4161+
"a2a_url": "https://cloud.uipath.com/a2a/case-test-id",
41574162
}
41584163
],
41594164
"features": [],

packages/uipath/uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)