返回全部动态

Mastra 发布更新:TokenCostControl 重命名及多项新功能

原标题:August 14, 2026

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

AI 摘要

Mastra 发布了 2026 年 8 月 14 日的更新,主要亮点包括将 CostGuardProcessor 重命名为 TokenCostControl,并新增了更丰富的预算选项(如 warnAtPercent、按请求的 maxCost 函数、新的成本范围等)。同时,为 agent 和 controller 增加了活动运行检查 API,并修复了可观测性、数据脱敏和内存召回等问题。此外,还包含多项破坏性变更和补丁修复。

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

正文节选

## Highlights ### TokenCostControl (renamed from CostGuard) with richer budgeting `CostGuardProcessor` is now `TokenCostControl` (id: `'token-cost-control'`) with better diagnostics/reliability and new budgeting options like `warnAtPercent`, per-request `maxCost` functions, new cost scopes (`user`/`organization`/`session`), and optional per-model/provider breakdowns. ### Active run introspection for agents/controllers (core, server, client-js) New `Agent.listActiveThreadRuns()` / `AgentC


发布时间:2026-08-17 00:01
抓取时间:2026-08-17 00:45
来源机构:Mastra
阅读原文github.com