返回全部动态

Mastra 发布 Agent 作用域、Trace 聚合与信号排队更新

原标题:October 15, 2026

Mastra Releases一手来源产品发布质量 78

AI 摘要

Mastra 发布更新,为 Agent 引入多租户身份作用域(scopes),支持按调用、Agent 配置或可信中间件注入,并让 Memory 从 resource/thread 作用域推导路由。同时新增端到端 Trace 聚合 API、Agent 类型化信号排队(queueSignal),以及存储层输入/输出/错误预览以加速 trace 列表查询。此外修复了长时与持久化工作流的可靠性问题,并包含若干破坏性变更。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

## Highlights ### Agent Scopes (multi-tenant identity + safer memory/thread routing) Agents now support `scopes` (`<type>:<value>`) passed per call, configured on the agent, or injected by trusted middleware via `MASTRA_SCOPES_KEY`; Mastra merges all three. Memory can derive `resource` and `thread` from `resource:`/`thread:` scopes (with conflicts now returning HTTP 400), nested calls can choose their own thread, and resumed runs preserve their original scopes (no adding new ones). ### Tr


发布时间:2026-10-16 16:13
抓取时间:2026-10-16 16:25
来源机构:Mastra
阅读原文github.com