mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
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: 796543208
This commit is contained in:
committed by
Copybara-Service
parent
004a0a0f2d
commit
fa64545a9d
@@ -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/.well-known/agent-card.json"
|
||||
f"http://localhost:8001/a2a/check_prime_agent{AGENT_CARD_WELL_KNOWN_PATH}"
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@@ -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}",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user