feat(session): add DatabaseSessionManager for PostgreSQL/MySQL/SQLite support #285
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 PR adds comprehensive documentation for the new
DatabaseSessionManager
feature, which enables SQL database persistence for agent sessions (PostgreSQL, MySQL, and SQLite).The documentation aligns with SDK PR #1031 and will be ready to merge once that PR is released.
Key Documentation Added:
Type of Change
Motivation and Context
The DatabaseSessionManager provides a cloud-agnostic, cost-effective alternative to S3-based session storage for production deployments. This documentation enables users to:
Areas Affected
Modified Files:
docs/user-guide/concepts/agents/session-management.md
docs/examples/README.md
mkdocs.yml
New Files:
docs/examples/python/database_session_manager.py
docs/examples/python/database_session_manager.md
Implementation Details
Documentation Structure:
User Guide Section:
pip install strands-agents[database]
)Example Structure:
Design Decisions:
Checklist
mkdocs serve
Additional Notes
docs/api-reference/session.md
until the SDK feature is released to PyPIfeature/database-session-manager
matches the SDK PR branchRelated SDK PR: strands-agents/sdk-python#1031
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.