feat(python-tutor): Enhance short/long-term memory example with Vertex AI Memory Bank #400
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 pull request introduces a series of enhancements to the python-tutor agent, focusing on the use of Vertex AI Memory Bank for both short and long-term memory. The changes also include refactoring the agent's memory management tools to align with Agent Development Kit (ADK) best practices and improving the overall clarity of the documentation.
Key changes include:
auto_save_to_memory_callbackandsearch_memoryfunctions have been updated to use the recommendedmemory_serviceandtool_contexthelpers from the ADK. This simplifies the implementation and improves maintainability.search_memoryfunction.README.mdfile has been refined to provide clearer and more precise instructions for setup and usage.