.NET: Change A2A default session store to NoopAgentSessionStore#6635
Open
SergeyMenshykh wants to merge 2 commits into
Open
.NET: Change A2A default session store to NoopAgentSessionStore#6635SergeyMenshykh wants to merge 2 commits into
SergeyMenshykh wants to merge 2 commits into
Conversation
Align the A2A hosting layer default session store with the AG-UI sibling by using NoopAgentSessionStore, making persistence an explicit opt-in choice. Update samples to document how to register a persistent session store for multi-turn conversations. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the .NET A2A hosting defaults to use NoopAgentSessionStore (making session persistence an explicit opt-in), and adjusts tests/samples to reflect the new default behavior and recommended production isolation setup.
Changes:
- Switch A2A’s default
AgentSessionStorefrom in-memory toNoopAgentSessionStore. - Update unit test naming/comments to reflect the new default session-store behavior.
- Update end-to-end samples to document session isolation requirements and how to opt into persistent session storage.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| dotnet/src/Microsoft.Agents.AI.Hosting.A2A/A2AServerServiceCollectionExtensions.cs | Changes the fallback session store to NoopAgentSessionStore when none is registered. |
| dotnet/tests/Microsoft.Agents.AI.Hosting.A2A.UnitTests/A2AServerServiceCollectionExtensionsTests.cs | Updates test naming/comments to describe the new noop session store default. |
| dotnet/samples/05-end-to-end/AgentWebChat/AgentWebChat.AgentHost/Program.cs | Documents production session isolation and the new default non-persistent session behavior. |
| dotnet/samples/05-end-to-end/A2AClientServer/A2AServer/Program.cs | Documents production session isolation and provides an example of explicitly registering a session store. |
Rename test to FallsBackToNoopSessionStoreDefaultAsync to avoid implying all stores default to noop (task store still uses InMemory). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2d7f0f0 to
651993c
Compare
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.
Align the A2A hosting layer default session store with the AG-UI sibling by using \NoopAgentSessionStore, making persistence an explicit opt-in choice.
Update samples to document how to register a persistent session store for multi-turn conversations.