Mastra 更新:工具可读完整对话,记忆召回支持分页
原标题:October 1, 2026
AI 摘要
Mastra 发布 2026 年 10 月 1 日更新,核心包 @mastra/core 升至 1.74.0,新增 agent.getMessages() 让工具在标准与持久化 agent 循环中读取完整对话上下文;观测记忆历史支持 groupId 过滤、排序和 recordId 查询,记忆召回可围绕搜索命中分页浏览观测组。Playground UI 新增无障碍表单组件并移除部分旧 API,同时修复 Slack 重命名后 @提及失效、Factory 凭证加载等问题,并提升安全依赖版本。
正文节选
## Highlights ### Tool Context Can Read the Full Conversation (`agent.getMessages()`) Tools now have access to the current conversation state via `context.agent.getMessages()` in both standard and durable agent loops, including remembered messages and in-run responses—enabling richer, context-aware tool behavior without changing the existing input-only `messages` field. ### Observational Memory History Search (Filtering, Ordering, Record Lookup) `getObservationalMemoryHistory` gained gro