Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

🌱 support both legacy and new agent card endpoint for all agent examples - #116

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:agent-card
Feb 3, 2026
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:agent-card

Conversation

@pdettori

@pdettori pdettori commented Feb 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Updated all A2A agents to serve the agent card at both paths:

  • Legacy path: /.well-known/agent.json (default, for backward compatibility)
  • New standard path: /.well-known/agent-card.json (for Google ADK, Amazon Bedrock AgentCore, etc.)

Files Modified (9 total):

  1. a2a/weather_service/src/weather_service/agent.py
  2. a2a/slack_researcher/a2a_agent.py
  3. a2a/git_issue_agent/a2a_agent.py
  4. a2a/a2a_currency_converter/app/main.py
  5. a2a/a2a_contact_extractor/main.py
  6. a2a/image_service/src/image_service/agent.py
  7. a2a/reservation_service/src/reservation_service/agent.py
  8. a2a/file_organizer/src/file_organizer/agent.py
  9. a2a/generic_agent/src/generic_agent/agent.py

Changes Made:

  1. Added from starlette.routing import Route import
  2. Added a new route for /.well-known/agent-card.json that points to the same handler as the legacy path

Both paths now serve the identical agent card, ensuring compatibility with:

  • Older A2A clients (v0.2.x and below) using the legacy path
  • Modern frameworks (Google ADK, Amazon Bedrock AgentCore) using the new standard path

Related issue(s)

Fixes #115

🤖 Assisted by Claude Code

Copilot AI review requested due to automatic review settings February 3, 2026 03:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates all A2A agent examples to support the new standard agent card endpoint (/.well-known/agent-card.json) alongside the legacy endpoint (/.well-known/agent.json). This change ensures compatibility with modern frameworks like Google ADK and Amazon Bedrock AgentCore, which use the new standard path, while maintaining backward compatibility with older clients.

Changes:

  • Added import for starlette.routing.Route to all 9 agent files
  • Registered a new route for /.well-known/agent-card.json that reuses the same handler as the legacy path
  • Both endpoints now serve identical agent card data

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
a2a/weather_service/src/weather_service/agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/slack_researcher/a2a_agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/git_issue_agent/a2a_agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/a2a_currency_converter/app/main.py Added new agent-card.json route alongside legacy agent.json path
a2a/a2a_contact_extractor/main.py Added new agent-card.json route alongside legacy agent.json path
a2a/image_service/src/image_service/agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/reservation_service/src/reservation_service/agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/file_organizer/src/file_organizer/agent.py Added new agent-card.json route alongside legacy agent.json path
a2a/generic_agent/src/generic_agent/agent.py Added new agent-card.json route alongside legacy agent.json path

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread a2a/git_issue_agent/a2a_agent.py Resolved
Comment thread a2a/slack_researcher/a2a_agent.py Resolved
Signed-off-by: Paolo Dettori <[email protected]>

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings February 3, 2026 03:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread a2a/git_issue_agent/a2a_agent.py Resolved
Comment thread a2a/git_issue_agent/a2a_agent.py Resolved
@pdettori
pdettori merged commit da0907b into rossoctl:main Feb 3, 2026
2 checks passed
@pdettori
pdettori deleted the agent-card branch February 3, 2026 03:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Agents endpoints are outdated

2 participants