Repository navigation
Add native A2A echo hosted-agent sample - #1066
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>
Hameed Kunkanoor (Hameedkunkanoor)
requested a review
from a team
as a code owner
October 12, 2026 14:43
6 tasks done
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Hameed Kunkanoor (Hameedkunkanoor)
deployed
to
L4-validation
October 12, 2026 14:43 — with
GitHub Actions
Active
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. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The sample depends on an unpublished package, omits required uv artifacts, and presents a hosted path that is not yet service-enabled.
3 open findings
What changed in this PR
Adds a native A2A v1 echo agent to the Python Bring Your Own hosted-agent samples.
Changes:
- Implements the A2A echo server and validation client.
- Adds deployment, dependency, and usage documentation.
- Registers the sample while excluding unsupported cloud CI execution.
| File | Description |
|---|---|
.azure-pipelines/scripts/hosted-agent-samples-ci-skiplist |
Excludes A2A from generic cloud CI. |
samples/python/hosted-agents/README.md |
Adds A2A to the sample index. |
.../echo/AGENTS.md |
Documents contributor workflows. |
.../echo/CLAUDE.md |
Redirects instructions to AGENTS.md. |
.../echo/README.md |
Documents setup, deployment, and validation. |
.../echo/azure.yaml |
Defines the hosted A2A deployment. |
.../echo/src/echo-a2a/.agentignore |
Excludes local Python artifacts. |
.../echo/src/echo-a2a/.azdignore |
Excludes local deployment artifacts. |
.../echo/src/echo-a2a/.gitignore |
Excludes generated local files. |
.../echo/src/echo-a2a/main.py |
Implements the native echo executor and host. |
.../echo/src/echo-a2a/requirements.txt |
Pins runtime dependencies. |
.../echo/src/echo-a2a/test_client.py |
Adds local and hosted A2A validation. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| $endpoint = "$projectEndpoint/agents/echo-a2a/endpoint/protocols/a2a" | ||
| ``` | ||
|
|
||
| Run the dedicated hosted E2E client: |
Comment on lines
+1
to
+2
| # This file was autogenerated by uv via the following command: | ||
| # uv export --frozen --no-dev --no-emit-project --format requirements-txt --no-hashes --output-file requirements.txt |
| | **SDK** | `agent-framework-foundry-hosting` (includes core, openai, foundry, orchestrations) | `langchain-azure-ai[hosting]` (`ResponsesHostServer` / `InvocationsHostServer`) | `azure-ai-agentserver-responses` / `azure-ai-agentserver-invocations` / `azure-ai-agentserver-a2a`, or `azure-ai-agentserver-core` for fully custom HTTP | | ||
| | **Foundry integration** | Native — sessions, tools, memory, streaming all built in | Native via `langchain_azure_ai.agents.hosting` — sessions, streaming, and tool-call surfacing built in for LangGraph agents (`create_agent`) and custom `StateGraph`s | Core adapter hosts the web server and exposes `/invocations` and `/responses` endpoints; you supply the agent logic | | ||
| | **Protocols** | Responses and Invocations | Responses and Invocations | Responses and Invocations | | ||
| | **Protocols** | Responses and Invocations | Responses and Invocations | Responses, Invocations, and A2A | |
This branch was successfully 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.


Summary
Adds a minimal native A2A v1 echo agent to the Python Bring Your Own hosted-agent samples.
The sample demonstrates:
a2a-sdkAgent Card, JSON-RPC, Task, artifact, and executor behavior;azure-ai-agentserver-a2aon Foundry's canonical A2A routes;azd;Dependency
This PR depends on Azure/azure-sdk-for-python#49491 and publication of
azure-ai-agentserver-a2a==1.0.0b1to PyPI. Until publication, the repository's--resolvedependency policy check is expected to reportPYREQ012; the committed artifact intentionally uses the final public package pin rather than a nonportable local wheel.The sample is listed in the hosted-agent cloud CI skip list because the shared runner currently supports only Responses and Invocations. A2A requires Agent Card discovery plus JSON-RPC Task handling, which the sample's dedicated
test_client.pyprovides.Validation
/readinessprobe — passedEcho: hello from sample validation)git diff --check— passedPYREQ012untilazure-ai-agentserver-a2a==1.0.0b1is publishedRelated PR