# 测试您的记忆增强型智能体 让我们测试我们的两个记忆增强型智能体: 1. 确保您的开发服务器正在使用 `npm run dev` 运行 2. 在 `http://localhost:4111/` 打开 playground ## 测试记忆大师智能体 1. 选择您的 `MemoryMasterAgent` 2. 进行测试所有记忆功能的综合对话: - 分享个人信息:"Hi, I'm Taylor. I live in Boston and work as a software engineer." - 讨论项目:"I'm working on a web application with a deadline next month." - 切换话题:"Let's talk about my vacation plans for the summer." - 返回上一个话题:"Remind me, what was the deadline for my web application?" - 询问个人信息:"What do you know about me so far?" ## 测试学习助手 1. 选择您的 `Learning Assistant` 2. 进行关于学习编程的对话: - "I want to learn Python programming. I'm a complete beginner." - "My learning style is visual - I learn best with diagrams and examples." - "Can you explain variables and data types in Python?" - "Now I'd like to learn about functions." - "Let's switch topics. I'm also interested in learning web development." - "I have some experience with HTML and CSS already." - "Can you go back to Python? I forgot how functions work." 您的智能体应该展示我们探讨的所有记忆能力: - 记住最近的对话上下文 - 从较早的消息中回忆相关信息 - 在工作记忆中保持持久的用户信息 - 使用这些信息提供个性化和情境化的响应 这些测试有助于验证您的记忆增强型智能体按预期工作,并有效使用所有三种记忆功能。注意智能体如何处理上下文切换、从对话早期回忆信息,以及保持关于用户或任务的持久信息。