feat: add multiagent session/repository management.#1071
Merged
JackYPCOnline merged 14 commits intostrands-agents:mainfrom Oct 29, 2025
Merged
feat: add multiagent session/repository management.#1071JackYPCOnline merged 14 commits intostrands-agents:mainfrom
JackYPCOnline merged 14 commits intostrands-agents:mainfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
JackYPCOnline
commented
Oct 22, 2025
zastrowm
requested changes
Oct 23, 2025
zastrowm
requested changes
Oct 23, 2025
Contributor
Author
|
answer this question: #1071 (comment) I don't think this is a new issue—it's an aspect we overlooked. Even in the single-agent case, we face this file completeness problem. Talked with Patrick and Dean about this change. We don't perform any validation or defensive checks when reading the session file, ensuring its completeness is crucial. |
zastrowm
requested changes
Oct 24, 2025
pgrayy
reviewed
Oct 27, 2025
pgrayy
previously approved these changes
Oct 28, 2025
pgrayy
approved these changes
Oct 29, 2025
zastrowm
approved these changes
Oct 29, 2025
dbschmigelski
pushed a commit
to schnetler/sdk-python
that referenced
this pull request
Nov 12, 2025
) * feat: add multiagent hooks, add serialize & deserialize function to multiagent base & agent result * feat: add multiagent session manager, register hooks, fix import issue, rename deserialize function # Conflicts: # src/strands/experimental/agent_config.py * Delete __init__.py * fix: address comments * fix: renaming function to keep consistent with existing code * feat: add multiagent session/repository management pattern * fix: fix unit tests * fix: address comments * fix: update parameter to use MultiAgentBase * fix: fix unit tests
dbschmigelski
pushed a commit
to dbschmigelski/sdk-python
that referenced
this pull request
Dec 9, 2025
) * feat: add multiagent hooks, add serialize & deserialize function to multiagent base & agent result * feat: add multiagent session manager, register hooks, fix import issue, rename deserialize function # Conflicts: # src/strands/experimental/agent_config.py * Delete __init__.py * fix: address comments * fix: renaming function to keep consistent with existing code * feat: add multiagent session/repository management pattern * fix: fix unit tests * fix: address comments * fix: update parameter to use MultiAgentBase * fix: fix unit tests
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
This is a split from multiagent session persistent part 2.
For more context, see origin: #900
Overview
This PR extends the session management system to support multi-agent workflows alongside existing single-agent functionality.
New APIs Added
SessionRepository Interface
SessionManager Base Class
Implementation Changes
FileSessionManager
multi_agents/instead ofagents/directorymulti_agent_<id>/multi_agent.jsonS3SessionManager
multi_agents/multi_agent_<id>/multi_agent.jsonRepositorySessionManager
Backward Compatibility
session_type=SessionType.AGENTmaintains existing behaviorIntegrate with Graph
Can correctly write to session , fire hooks on initializating, node finished, failed. Restore from saved session, start over if completed.
example state json:
Related Issues
Documentation PR
Type of Change
Bug fix
New feature
Breaking change
Documentation update
Other (please describe):
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.