Skip to content

Commit 270ea9b

Browse files
authored
refactor(spec)!: Update Agent Card Well-Known Path to /.well-known/agent-card.json (#320)
Follow-up to a2aproject/A2A#841 and protocol-registries/well-known-uris#66 Release-As: 0.3.0
1 parent cd94167 commit 270ea9b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/client/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ async def test_init_strips_slashes(self, mock_httpx_client: AsyncMock):
165165
resolver = A2ACardResolver(
166166
httpx_client=mock_httpx_client,
167167
base_url='http://example.com/', # With trailing slash
168-
agent_card_path='/.well-known/agent.json/', # With leading/trailing slash
168+
agent_card_path='/.well-known/agent-card.json/', # With leading/trailing slash
169169
)
170170
assert (
171171
resolver.base_url == 'http://example.com'
172172
) # Trailing slash stripped
173173
# constructor lstrips agent_card_path, but keeps trailing if provided
174-
assert resolver.agent_card_path == '.well-known/agent.json/'
174+
assert resolver.agent_card_path == '.well-known/agent-card.json/'
175175

176176
@pytest.mark.asyncio
177177
async def test_get_agent_card_success_public_only(

tests/server/apps/jsonrpc/test_serialization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def test_starlette_agent_card_with_api_key_scheme_alias(
5858
app_instance = A2AStarletteApplication(agent_card_with_api_key, handler)
5959
client = TestClient(app_instance.build())
6060

61-
response = client.get('/.well-known/agent.json')
61+
response = client.get('/.well-known/agent-card.json')
6262
assert response.status_code == 200
6363
response_data = response.json()
6464

@@ -90,7 +90,7 @@ def test_fastapi_agent_card_with_api_key_scheme_alias(
9090
app_instance = A2AFastAPIApplication(agent_card_with_api_key, handler)
9191
client = TestClient(app_instance.build())
9292

93-
response = client.get('/.well-known/agent.json')
93+
response = client.get('/.well-known/agent-card.json')
9494
assert response.status_code == 200
9595
response_data = response.json()
9696

0 commit comments

Comments
 (0)