Skip to content

Conversation

@ksmin23
Copy link

@ksmin23 ksmin23 commented Oct 11, 2025

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:

  • Refactored Memory Tools: The auto_save_to_memory_callback and search_memory functions have been updated to use the recommended memory_service and tool_context helpers from the ADK. This simplifies the implementation and improves maintainability.
  • Code Restructuring for AgentEngine: The source code directory structure has been updated to support deploying the agent, which uses Vertex AI Memory Bank, to AgentEngine. Dependencies have also been updated accordingly.
  • Improved Docstrings: Added more descriptive docstrings to clarify the functionality of the search_memory function.
  • Documentation Updates: The README.md file has been refined to provide clearer and more precise instructions for setup and usage.

Sungmin Kim and others added 5 commits October 10, 2025 16:49
This commit refactors the auto_save_to_memory_callback and search_memory functions.

- In agent.py, the logic for saving sessions to the memory bank is updated to directly use the memory_service from the invocation context, removing the need for manual VertexAiMemoryBankService initialization.
- In memory_tools.py, the search_memory tool is simplified to use the tool_context.search_memory helper method, which abstracts away the details of the memory service.

These changes align the implementation with the latest ADK documentation, improving code clarity and maintainability.
@google-cla
Copy link

google-cla bot commented Oct 11, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants