Skip to content

Conversation

glide-the
Copy link
Collaborator

本次 PR 对项目架构进行了系统性重构,重点在于引入 MCP 工具和连接管理、精简聊天链路、规范提示和工具调用格式,并移除了不再维护的前端代码。这些改动显著提升了代码的可维护性、可扩展性和稳定性。建议合并后配合部署测试,重点关注 MCP 工具调用、数据库会话管理以及新的提示模板在实际应用中的表现。

…nd improving output parsing. Update agent registry to handle MCP connections and streamline tool retrieval. Refactor tests to accommodate new MCP client configurations.
…xecution and output handling. Update agents registry to support MCP tools and improve output parsing in relevant modules.
…ing directory support and refining output parsing logic. Update prompt template to include current working directory as an input variable. Refactor integration tests for improved agent execution and tool handling.
…cal usage rules and improving parameter validation in Pydantic models. Update tool descriptions to emphasize required fields and ensure proper execution format. Streamline chat functionality to support new agent configurations and improve overall tool handling.
…ting. Update parameter validation in knowledge tools to emphasize required fields. Add a new README file for project documentation, detailing installation, configuration, and usage instructions.
…les. Enhance output parsing in PlatformKnowledgeOutputParser to handle additional tool tags, improving overall agent functionality and internal processing.
…t executor setup code, streamlining the return process for model data.
…ks and simplifying the initialization of the agent executor. Streamline the process for setting up the full chain for chat input.
…se operations. Replace the conversation memory handling with direct database interactions for message retrieval and updates. Remove unused conversation buffer memory class to streamline the codebase.
…of BaseToolOutput from langchain_chatchat. This change enhances code consistency and prepares for future tool enhancements.
…EM_PROMPT. Refactor namespace in MCPToolAction for improved clarity and adjust intermediate_steps type in PlatformToolsRunnable to accommodate string outputs.
…sage content before XML wrapping. This change improves the handling of message formatting by removing unnecessary tags, enhancing overall output integrity.
…abase models, and web UI integration. Implement CRUD operations for MCP connections and profiles, enhancing the overall system for managing connections with detailed configurations and settings.
…retrieving, creating, updating, resetting, and deleting MCP profiles. Refactor database interaction to remove session dependency in profile-related functions, enhancing code clarity and maintainability.
… operations and refactoring database interaction to return dictionaries instead of model instances. This improves error handling and response consistency across the API, while also updating the web UI to support editing and deleting connections with better user feedback.
…oved session state handling and validation. Refactor button actions for adding connections and streamline the form submission process, ensuring better user experience and error handling.
… fields, replacing them with server_name and transport. Update related CRUD operations and logging for consistency. Enhance database model to support additional connection configurations and improve web UI for better user experience.
…API routes for improved clarity and maintainability.
… replacing `st.experimental_rerun()` with `st.rerun()` for improved session state handling and consistency in UI behavior.
… command fields, enhancing flexibility in request body. Refactor connection retrieval function for consistency in naming conventions.
…ses instead of HTTP exceptions. Update related database retrieval logic and enhance web UI with toggle functionality for enabling/disabling connections, improving user experience and error handling.
…d database models to streamline connection management. Update related functions and UI components to reflect this change, enhancing clarity and maintainability.
… schemas, API routes, and database models. Update related functions to store command within the config dictionary, enhancing configuration clarity. Adjust web UI to reflect these changes, improving user experience and maintainability.
… schemas and API requests, consolidating it within the config dictionary. Update related functions and the web UI to enhance clarity and maintainability, while improving session state handling for timeout and working directory settings.
… MCP connection support. Update chat function to include use_mcp parameter, allowing for dynamic MCP connection management. Adjust web UI to incorporate MCP usage toggle, improving user experience and flexibility in agent interactions.
…uration based on the presence of tools in the request body. This change enhances the robustness of the chat function by preventing potential errors when no tools are provided.
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant