返回全部动态
Mastra 更新:新增工具结果防护与临时信号支持
原标题:August 5, 2026
AI 摘要
Mastra 发布 2026 年 8 月 5 日更新,引入 processToolResult 生命周期钩子以在工具结果进入消息历史前进行安全扫描或转换,新增 transient 信号支持临时上下文,并推出 @mastra/deepeval 可观测性导出器。此外,模型生成跨度现在包含完整工具定义,平台沙箱执行延迟大幅降低,同时修复了内存泄漏和会话恢复等问题。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
## Highlights ### Tool Result Guardrails via `processToolResult` A new `processToolResult` processor lifecycle hook runs after each tool execution and before results enter message history, enabling prompt-injection/sensitive-data scanning, transformation, or aborting the run before the LLM sees tool output. ### Transient Agent Signals (Per-turn Context Without Persistence) Signals now support `transient: true` end-to-end (`@mastra/core`, `@mastra/server`, `@mastra/memory`, and typed supp
发布时间:2026-08-10 17:06
抓取时间:2026-08-10 17:59
来源机构:Mastra