From 450e40fd91044be37a8d334466438e4986977f17 Mon Sep 17 00:00:00 2001 From: Yang Yexuan Date: Thu, 5 Mar 2026 16:58:49 +0800 Subject: [PATCH] Remove the tailing '/' to avoid the 404 `GET /.well-known/agent-card.json` will be 200 OK, but `GET //.well-known/agent-card.json` will be 404, RemoteAgent do not remove the tailing '/' when contructing the class with 'url' parameter. --- docs/docs/agent/agent-to-agent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/agent/agent-to-agent.md b/docs/docs/agent/agent-to-agent.md index eef52c7c..83459219 100644 --- a/docs/docs/agent/agent-to-agent.md +++ b/docs/docs/agent/agent-to-agent.md @@ -108,7 +108,7 @@ async def main(prompt: str) -> str: """ weather_agent = RemoteVeAgent( name="weather_agent", - url="http://localhost:8000/", # <--- url of A2A server + url="http://localhost:8000", # <--- url of A2A server ) print(f"Remote agent name is {weather_agent.name}.") print(f"Remote agent description is {weather_agent.description}.")