feat! REQUIRED: Let users directly pass an existing boto3 session int… #448
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 enhances the memory tool with comprehensive boto3 session injection capabilities, enabling flexible AWS authentication patterns for accessing Amazon Bedrock Knowledge Bases. The changes add two new public functions (set_memory_session and get_memory_session) and extend the existing memory tool to support custom session management.
Key Changes:
New Capabilities:
Related Issues
#380
Documentation and Tools PR
Type of Change
New feature
Testing
How have you tested the change?
Code Quality and Validation:
Integration Testing:
Repository Compatibility:
[x] I ran hatch run prepare - All formatting and linting checks pass
[x] Verified changes don't break functionality in consuming repositories
[x] Confirmed no new warnings introduced
[x] Validated all existing tests continue to pass
Checklist
[x] I have read the CONTRIBUTING document
[x] I have added any necessary tests that prove my fix is effective or my feature works
[x] I have updated the documentation accordingly
[x] I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
[x] My changes generate no new warnings
[x] Any dependent changes have been merged and published
Additional Quality Assurance Completed:
[x] All 27 code examples in documentation are syntactically correct and functional
[x] Function signatures validated against actual implementation
[x] Session management follows AWS security best practices
[x] Comprehensive error handling provides clear user feedback
[x] Full backward compatibility maintained for existing users