-
Notifications
You must be signed in to change notification settings - Fork 469
feat: add multiagent session/repository management. #1071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add multiagent session/repository management. #1071
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
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. |
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.