-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation
Milestone
Description
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Describe the bug
Agent published using to_a2a and deployed to Google Cloud Run mandatorily adds port to the URL in Agent Card, which breaks calling it from A2AClient
To Reproduce
Steps to reproduce the behavior:
- Create a simple agent and expose by using the to_a2a() function.
- Deploy it to cloud run. Once deployed you will see that the URL in Agent card is pointing to localhost:8000
- Now, redeploy it by modifying URL to include cloud run service host, example: a2a_app = to_a2a(root_agent, host="...cloud run service host...")
- Once deployed check the Agent card from cloud run, you will notice that the URL in the card will be "url": "http://...cloud run service host..:8000",
- This URL will be used by "@a2a-js/sdk/client" or any other client once integrated. But cloud run service does not accept port and the client would fail with A2A Client Communication Error
Expected behavior
to_a2a() function should not mandate port while constructing agent card URL. Below code in agent_to_a2y.py should be corrected

Metadata
Metadata
Assignees
Labels
core[Component] This issue is related to the core interface and implementation[Component] This issue is related to the core interface and implementation