npm / @mastra/evals
@mastra/evals
What changed in @mastra/evals 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
2 new APIs and options2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@mastra/evals 14 changes
New APIs and options 2
New helper returns a tool-level view of trajectory steps for use in custom scorers.
ExpectedStep now supports provider_tool_call steps for typed trajectory expectations; the trajectory scorer compares toolArgs, toolResult, and success.
Fixes and other changes 2
In non-strict mode, repeated tools in expectedToolOrder now match separate calls, while extra calls between matches remain allowed.
Trajectory checks now read tool calls consistently from traces and messages, avoiding wrapper steps skewing scores, maxSteps counts, redundant-call indexes, forbidden sequences, and retry detection.