-
Notifications
You must be signed in to change notification settings - Fork 451
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
base: main
Are you sure you want to change the base?
Conversation
…ultiagent base & agent result
…e, rename deserialize function
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. |
…#943) feat: Add Structured Output as part of the agent loop (strands-agents#943) Add comprehensive structured output functionality allowing agents to return Pydantic models in the AgentResult. Includes support for validation, retry logic, streaming, and async operations. - Add structured_output_model parameter to Agent constructor and invocation methods - Implement StructuredOutputTool for handling Pydantic model validation - Add structured output context management and retry mechanisms - Extend event system with StructuredOutputEvent and reasoning events - Add structured_output field to AgentResult for accessing parsed models - Support structured output in streaming and async operations - Add comprehensive test coverage for all structured output scenarios - Add integration tests for real-world usage patterns
Description
This is a split from multiagent session persistent part 2.
For more context, see origin: #900
fix import issue:
Overview
This PR extends the session management system to support multi-agent workflows alongside existing single-agent functionality.
New APIs Added
SessionType Enum Extension
SessionType.MULTI_AGENTto distinguish multi-agent sessions from single-agent sessionsSessionRepository 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 behaviorRelated 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.