diff --git a/数据库优化工程师.py b/数据库优化工程师.py index bc4ebe3..6e4ce6d 100644 --- a/数据库优化工程师.py +++ b/数据库优化工程师.py @@ -106,9 +106,9 @@ async def main(): create_session_summary=True, ), # Set add_history_to_messages=true to add the previous chat history to the messages sent to the Model. - #add_history_to_messages=True, + add_history_to_messages=True, # Number of historical responses to add to the messages. - #num_history_responses=3, + num_history_responses=3, markdown=True, knowledge=knowledge_base, search_knowledge=True, @@ -118,7 +118,8 @@ async def main(): # Enable the agent to read the chat history read_chat_history=True, ) - await agent.aprint_response("我现在想要记录用户对智能体和课程的使用权限及使用情况,需要如何设计表结构", stream=True) + # await agent.aprint_response("我现在想要记录用户对智能体和课程的使用权限及使用情况,需要如何设计表结构", stream=True) + await agent.aprint_response("调用get_chat_history", stream=True) # await agent.aprint_response("帮我分析一下aq.public数据库,并给出优化建议", stream=True) # await agent.aprint_response("阅读下 https://www.lucidchart.com/blog/database-design-best-practices 这篇文章", stream=True)