feat(agent): Add long-term memory feature to Friday#125
Conversation
Summary of ChangesHello @hongxicheng, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the Friday agent by introducing long-term memory and external service integration via the Model Context Protocol (MCP). The changes provide Friday with the ability to remember past interactions through configurable embedding models and vector stores, and to connect with a variety of external services, both local and remote. The user experience is improved with new, intuitive configuration interfaces in the frontend. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a significant new feature: long-term memory for the Friday agent, using embeddings and a vector store. It also adds a comprehensive MCP (Model Context Protocol) server management system, both in the backend and with a new UI on the frontend. My review focuses on improving code maintainability by reducing duplication, enhancing robustness in attribute access, and adopting standard logging practices for better production readiness. Overall, this is a well-structured feature addition.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This PR introduces a significant new feature: long-term memory for the Friday agent, along with a UI for managing MCP servers. The implementation is extensive, covering both backend and frontend changes.
My review focuses on several key areas:
- Consistency: I've pointed out inconsistencies in JSON parsing between different parts of the application, which could lead to bugs.
- Correctness: I found a bug where a fallback for an API key was documented but not implemented, and another where a configuration field (
vectorStoreKwargs) was not being saved. - Maintainability: I've made suggestions to improve the extensibility of the code, particularly around provider-specific configurations, to make future enhancements easier.
Overall, this is a solid implementation of a complex feature. The new UI components and backend logic are well-structured. Addressing the issues I've raised will improve the robustness and maintainability of the new functionality.
|
This PR is marked as stale because there has been no activity for 30 days. Remove stale label or add new comments or this PR will be closed in 5 day. |
|
Close this stale PR. |
Description
This PR depends on PR #124 .


Related to #124 .
Checklist
Please check the following items before code is ready to be reviewed.
npm run formatcommand in the root directory