| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
The A2A hosting layer now forwards the caller-supplied SendMessageConfiguration from RequestContext.Configuration into AgentRunOptions.AdditionalProperties under the key 'a2a.configuration'. This covers all three handler paths: non-streaming, streaming, and task continuation. The server-configured AgentRunMode remains authoritative for AllowBackgroundResponses — the caller's ReturnImmediately is forwarded but does not override the server decision. Closes microsoft#5869 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 5ee820de-3e34-493b-a19c-1db6bc04871d
There was a problem hiding this comment.
This PR updates the .NET A2A hosting adapter to forward the caller-provided MessageSendParams.Configuration (SendMessageConfiguration) into AgentRunOptions.AdditionalProperties so hosted agents can observe request configuration through the normal RunAsync/RunStreamingAsync options path.
Changes:
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI.Hosting.A2A/A2AAgentHandler.cs | Centralizes AgentRunOptions creation and forwards SendMessageConfiguration via AdditionalProperties. |
| dotnet/tests/Microsoft.Agents.AI.Hosting.A2A.UnitTests/A2AAgentHandlerTests.cs | Adds coverage for configuration forwarding and run-mode authority behavior. |
Sorry, something went wrong.
There was a problem hiding this comment.
Reviewers: 5 | Confidence: 89% | Result: All clear
Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach
Automated review by SergeyMenshykh's agents
Sorry, something went wrong.
There was a problem hiding this comment.
Reviewers: 5 | Confidence: 88% | Result: All clear
Reviewed: Correctness, Security Reliability, Test Coverage, Failure Modes, Design Approach
Automated review by SergeyMenshykh's agents
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Motivation & Context
RequestContext.Configuration (SendMessageConfiguration) is never read by the A2A hosting layer, so agent authors cannot see the caller's acceptedOutputModes, historyLength, etc. through AgentRunOptions.
Description & Review Guide
Related Issue
Closes #5869
Contribution Checklist