fix: Fix the path for agent card in A2A demo

`AGENT_CARD_WELL_KNOWN_PATH` already contains a leading slash so is not needed in the `agent_card` URL.

PiperOrigin-RevId: 796537920
This commit is contained in:
Google Team Member
2025-08-18 12:49:20 -07:00
committed by Copybara-Service
parent 1fd58cb363
commit a117cf0af3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ prime_agent = RemoteA2aAgent(
name="prime_agent",
description="Agent that handles checking if numbers are prime.",
agent_card=(
f"http://localhost:8001/a2a/check_prime_agent{AGENT_CARD_WELL_KNOWN_PATH}"
f"http://localhost:8001/a2a/check_prime_agent/.well-known/agent-card.json"
),
)
+1 -1
View File
@@ -20,5 +20,5 @@ root_agent = RemoteA2aAgent(
description=(
"Helpful assistant that can roll dice and check if numbers are prime."
),
agent_card=f"http://localhost:8001/{AGENT_CARD_WELL_KNOWN_PATH}",
agent_card=f"http://localhost:8001{AGENT_CARD_WELL_KNOWN_PATH}",
)