# 更新你的 Mastra 导出 确保更新你的 `src/mastra/index.ts` 文件以包含你的新内存智能体: ```typescript import { Mastra } from "@mastra/core"; import { memoryAgent } from "./agents"; export const mastra: Mastra = new Mastra({ agents: { memoryAgent, }, }); ``` 这一步对于让你的智能体在 Mastra playground 中可用至关重要。`mastra` 导出是你的 Mastra 应用程序的主入口点,它需要包含你想要使用的所有智能体。 通过将你的 `memoryAgent` 添加到 Mastra 配置中的 `agents` 对象,你正在将其注册到 Mastra 系统中,使其在 playground 和应用程序的其他部分中可用。