Repository navigation
[AgentServer] Add A2A protocol host package - #49491
Open
Hameed Kunkanoor (Hameedkunkanoor) wants to merge 1 commit into
Open
Hameed Kunkanoor (Hameedkunkanoor) wants to merge 1 commit into
Hameed Kunkanoor (Hameedkunkanoor) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Hameed Kunkanoor (Hameedkunkanoor)
marked this pull request as ready for review
October 12, 2026 14:38
Contributor
Author
|
Companion Foundry sample PR: microsoft-foundry/foundry-samples#1066 |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Empty identity headers can be forwarded as valid Foundry call identifiers.
1 open finding
What changed in this PR
Adds the preview A2A v1.0 protocol host package for Azure AI Hosted Agents.
Changes:
- Implements canonical A2A routes and request-scoped Foundry identity.
- Adds standalone/multi-protocol samples and route tests.
- Registers packaging, CI, typing, and API review metadata.
| File | Description |
|---|---|
sdk/agentserver/tests.yml |
Adds A2A to test targeting. |
sdk/agentserver/cspell.yaml |
Configures A2A spelling exclusions. |
sdk/agentserver/ci.yml |
Registers the package artifact. |
azure-ai-agentserver-a2a/tests/test_server_routes.py |
Tests routing, context, and composition. |
azure-ai-agentserver-a2a/tests/conftest.py |
Provides an ASGI client fixture. |
samples/02-multi-protocol/requirements.txt |
Declares sample dependencies. |
samples/02-multi-protocol/multi_protocol.py |
Demonstrates protocol composition. |
samples/01-hello-world/hello_world.py |
Demonstrates standalone A2A hosting. |
azure-ai-agentserver-a2a/README.md |
Documents installation and usage. |
azure-ai-agentserver-a2a/pyrightconfig.json |
Configures Pyright. |
azure-ai-agentserver-a2a/pyproject.toml |
Defines package metadata and dependencies. |
azure-ai-agentserver-a2a/mypy.ini |
Configures mypy. |
azure-ai-agentserver-a2a/MANIFEST.in |
Defines source distribution contents. |
azure-ai-agentserver-a2a/LICENSE |
Adds the MIT license. |
azure-ai-agentserver-a2a/dev_requirements.txt |
Defines development dependencies. |
azure-ai-agentserver-a2a/CHANGELOG.md |
Records the initial preview. |
a2a/py.typed |
Marks the package as typed. |
a2a/_version.py |
Defines package version 1.0.0b1. |
a2a/_host.py |
Implements the A2A host and context middleware. |
a2a/__init__.py |
Exports the public host API. |
agentserver/__init__.py |
Extends the namespace package. |
ai/__init__.py |
Extends the namespace package. |
azure/__init__.py |
Extends the namespace package. |
api.metadata.yml |
Records API snapshot metadata. |
api.md |
Captures the public API surface. |
🧠 Review effort: Balanced
Comment on lines
+56
to
+58
| call_id=headers.get(FOUNDRY_CALL_ID), | ||
| user_id=headers.get(USER_ID), | ||
| session_id=headers.get(_SESSION_ID_HEADER), |
Contributor
Author
|
Hosted A2A end-to-end validation passed on 2026-10-12. Validated against an active Foundry hosted-agent version:
This validates the full Foundry authentication, public A2A routing, container hosting, native SDK request handling, and response artifact path—not only local ASGI behavior. |
This branch has not been deployed
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.

Description
Adds the initial preview
azure-ai-agentserver-a2apackage for hosting native A2A v1.0 agents in Azure AI Hosted Agent containers.The package:
POST /invocations/a2a;GET /invocations/a2a/.well-known/agent-card.json;Validation
python -m pytest tests -q— 9 passedazpysdk pylint .— 10.00/10azpysdk mypy .— passed, including samplesazpysdk pyright .— passedtwine check dist/*— passedgit diff --check— passedAll SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines