feat: add working A2A server sample - #209
Draft
Tsuyoshi Ushio (TsuyoshiUshio) wants to merge 2 commits into
Draft
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a4a082c-9c31-498a-b398-82c5a94e3190
Tsuyoshi Ushio (TsuyoshiUshio)
added this pull request to stack #210
September 9, 2026 06:08
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a4a082c-9c31-498a-b398-82c5a94e3190
5 tasks
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
Implements the experimental P3 simple non-SSE A2A server above #208. It adds opt-in typed A2A configuration, per-agent Agent Card and JSON-RPC routes, public Microsoft Agent Framework hosting-a2a conversion, and reuse of the existing authenticated non-streaming runtime runner.
The runnable incident-triage sample now uses a real MAF
A2AAgentas its primary caller. That client runs in an isolated MAF 1.15+ environment across HTTP, so the server/runtime remains on its verified core 1.13 tuple.Experimental P3 profile
1.0; an absent version is treated as0.3and rejected.SendMessagerequests containing user text parts and returns one direct agentMessage.returnImmediatelyvalues; the flag has no effect for a direct Message.streaming: falseandpushNotifications: false.DFAppworkflow bindings.P4 Task persistence and P5 streaming are intentionally not included. Durable dependency optionalization is also out of scope. Any runtime-wide MAF core/OpenAI/Foundry upgrade is a separate standalone compatibility-validation PR (
PV), not bundled with P3/P4/P5 or optional-Durable work.Runnable incident-triage story
From the repository root, create independent server and client environments:
Copy
samples\a2a-incident-triage\src\local.settings.template.jsontolocal.settings.json, configure the repository's normal model credentials, start Azurite separately, and run the host from the server environment:In a second terminal, use the MAF client. It resolves the explicit
/agents/main/.well-known/agent-card.jsonpath, selects JSONRPC 1.0, and callsA2AAgent.run():Use
python raw_client.py(and--return-immediately) to inspect and modify the raw Agent Card/JSON-RPC wire contract. Both clients accept--function-keythrough public HTTP client headers.Dependencies
The server/runtime
[a2a]extra remains:agent-framework-hosting-a2a==1.0.0a260730agent-framework-hosting==1.0.0a260730a2a-sdk[http-server]==1.1.21.13.0The client-only sample requirements pin
agent-framework-a2a==1.0.0b260821, which resolves a MAF core 1.15+ client environment. It does not install the editable runtime and is not added to root runtime/dev extras. Existing OpenAI/Foundry pins and the mandatory Durable dependency remain unchanged.Validation
python -m ruff check src testspython -m mypy srcpython eng/scripts/generate_config_reference.py --checkpython -m pytest --cache-clear --cov=./src/azure_functions_agents --cov-report=xml --cov-branch tests— 1,230 passed, 58 deselectedA2AAgent.run()plus raw JSON-RPC passedagent-framework-a2a 1.0.0b260821, core1.16.0, SDK1.1.2, no runtime package1.13.0with the original hosting tupleStack
tsuyoshiushio-a2a-frd-and-design(f435721f6eadbb3d6795b3d2f8f012f9edd7733d)