Python: Fix stale agent.json reference in A2A sample docstring - #7281
Merged
eavanvalkenburg merged 2 commits intoJul 23, 2026
Conversation
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 09:24 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 09:24 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 09:24 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 09:25 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Python A2A hosting sample to consistently reference the current AgentCard endpoint (/.well-known/agent-card.json) instead of the stale /.well-known/agent.json path.
Changes:
- Updated the A2A server sample’s top-of-file documentation string to reference
/.well-known/agent-card.json. - Updated the sample’s startup console output to print the
agent-card.jsonendpoint. - Updated the accompanying
.httpsample requests to query/.well-known/agent-card.json.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| python/samples/04-hosting/a2a/a2a_server.py | Aligns in-file docs and the startup “Agent card” URL with the agent-card.json endpoint. |
| python/samples/04-hosting/a2a/a2a_server.http | Aligns sample HTTP requests with the agent-card.json endpoint. |
amit12cool
force-pushed
the
fix/a2a-agent-card-url
branch
from
July 23, 2026 11:13
a8a1d70 to
bf2b740
Compare
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 11:13 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 11:13 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 11:14 — with
GitHub Actions
Inactive
amit12cool
temporarily deployed
to
github-app-auth
July 23, 2026 11:19 — with
GitHub Actions
Inactive
eavanvalkenburg
approved these changes
Jul 23, 2026
eavanvalkenburg
enabled auto-merge
July 23, 2026 11:53
chetantoshniwal
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation & Context
The A2A hosting sample used
/.well-known/agent.jsonin three places, but thecorrect A2A specification path is
/.well-known/agent-card.json. These stalereferences made the sample broken and misleading out of the box.
Description & Review Guide
python/samples/04-hosting/a2a/a2a_server.http: corrected the agent cardGETendpoint for all three agents (hostInvoice,hostPolicy,hostLogistics) from/.well-known/agent.jsonto/.well-known/agent-card.json.python/samples/04-hosting/a2a/a2a_server.py: corrected the moduledocstring and the startup
printstatement that both referenced the old/.well-known/agent.jsonpath.Running the A2A sample now works end-to-end: agent card discovery
GETrequests succeed, and the URL printed to the console on startup matches the
actual endpoint.
Confirm no other files in the sample still reference the old
agent.jsonpath.Related Issue
Fixes #7286
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.