feat: Add SummarizingConversationManager#524
feat: Add SummarizingConversationManager#524jsamuel1 wants to merge 2 commits intostrands-agents:mainfrom
Conversation
|
Assessment: Request Changes This PR introduces a well-implemented SummarizingConversationManager that closely follows the Python SDK design. The core functionality is solid with good test coverage. Review Categories
The implementation is well-structured and the tests are comprehensive. Good work aligning with the Python SDK design! |
|
@jsamuel1 Love to get this. Any update? |
THanks for the prompt. I didn't see the comments above. Fixing now. |
|
All automated review feedback has been addressed in the latest push:
Re: API review label — happy to add |
|
Re: session persistence — after merging upstream |
efcac3d to
a8495d9
Compare
Combines the following feature branches: - feat/summarizing-conversation-manager (PR strands-agents#524) - feat/structured-output-integ-tests (PR strands-agents#588) - feat/interrupt-system (PR strands-agents#586) - feat/swarm-multi-agent (PR strands-agents#587) - feat/graph-multi-agent (PR strands-agents#594) All 1277 unit tests pass. No type errors.
764e6cc to
4417301
Compare
4417301 to
c09fa86
Compare
c09fa86 to
7b5c8cb
Compare
Adds a conversation manager that uses the model to summarize older messages when the context window fills up, preserving important context while staying within token limits. Includes reduceContext as a public method for external invocation.
- Extend ConversationManager (Plugin) instead of implementing HookProvider - Replace registerCallbacks with initAgent/reduce pattern - Add super() call in constructor - Update tests to use Plugin interface and mock agent tracked hooks --- Prompt: review the tests and fix them
2466cf8 to
87297cd
Compare
Implements summarizing conversation manager that preserves context by summarizing older messages instead of simply trimming them.
Features
Testing
Closes #279