@mastra/mcp-docs-server 1.3.10-alpha.0 → 1.3.10-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/.docs/docs/agents/guardrails.md +8 -0
  2. package/.docs/docs/agents/human-in-the-loop.md +9 -0
  3. package/.docs/docs/agents/processors.md +3 -0
  4. package/.docs/docs/agents/tools.md +5 -0
  5. package/.docs/docs/channels.md +15 -0
  6. package/.docs/docs/deployment/mastra-server.md +2 -0
  7. package/.docs/docs/deployment/monorepo.md +2 -0
  8. package/.docs/docs/evals/overview.md +2 -0
  9. package/.docs/docs/harness/background-tasks.md +4 -0
  10. package/.docs/docs/harness/durable-agents.md +6 -1
  11. package/.docs/docs/harness/goals.md +2 -0
  12. package/.docs/docs/harness/schedules.md +5 -0
  13. package/.docs/docs/mastra-platform/connect/providers.md +27 -26
  14. package/.docs/docs/mastra-platform/deploy.md +2 -0
  15. package/.docs/docs/mastra-platform/server.md +10 -6
  16. package/.docs/docs/mastra-platform/studio.md +1 -1
  17. package/.docs/docs/mastra-platform/system-environment-variables.md +3 -0
  18. package/.docs/docs/mastra-platform/workspaces.md +1 -1
  19. package/.docs/docs/memory/message-history.md +3 -0
  20. package/.docs/docs/memory/observational-memory.md +10 -0
  21. package/.docs/docs/memory/overview.md +6 -0
  22. package/.docs/docs/memory/semantic-recall.md +5 -1
  23. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +2 -1
  24. package/.docs/docs/observability/logging.md +3 -0
  25. package/.docs/docs/observability/tracing/overview.md +16 -0
  26. package/.docs/docs/sandbox/search.md +11 -0
  27. package/.docs/docs/server/custom-adapters.md +53 -1
  28. package/.docs/docs/server/custom-api-routes.md +2 -0
  29. package/.docs/docs/server/request-context.md +6 -0
  30. package/.docs/docs/signals/thread-streams.md +34 -3
  31. package/.docs/docs/studio/overview.md +2 -0
  32. package/.docs/docs/subagents.md +7 -1
  33. package/.docs/docs/workflows/agents-and-tools.md +16 -1
  34. package/.docs/docs/workflows/control-flow.md +57 -0
  35. package/.docs/docs/workflows/human-in-the-loop.md +3 -0
  36. package/.docs/docs/workflows/overview.md +9 -1
  37. package/.docs/docs/workflows/scheduled-workflows.md +10 -2
  38. package/.docs/docs/workflows/suspend-and-resume.md +6 -0
  39. package/.docs/docs/workflows/workflow-state.md +12 -0
  40. package/.docs/integrations/agentic-ui/copilotkit.md +2 -0
  41. package/.docs/integrations/auth/better-auth.md +2 -0
  42. package/.docs/integrations/auth/google.md +2 -0
  43. package/.docs/integrations/auth/okta.md +2 -0
  44. package/.docs/integrations/databases/aurora-dsql.md +2 -2
  45. package/.docs/integrations/databases/dynamodb.md +4 -4
  46. package/.docs/integrations/databases/postgresql.md +4 -4
  47. package/.docs/integrations/deploy/inngest.md +1 -0
  48. package/.docs/integrations/file-storage/archil.md +3 -3
  49. package/.docs/integrations/file-storage/mesa.md +1 -1
  50. package/.docs/integrations/observability/datadog.md +5 -0
  51. package/.docs/integrations/observability/langsmith.md +33 -0
  52. package/.docs/integrations/observability/opentelemetry.md +27 -4
  53. package/.docs/integrations/observability/sentry.md +22 -22
  54. package/.docs/integrations/sandboxes/cloudflare-sandbox.md +1 -1
  55. package/.docs/integrations/sandboxes/daytona.md +3 -3
  56. package/.docs/integrations/sandboxes/docker.md +1 -1
  57. package/.docs/integrations/sandboxes/e2b.md +5 -5
  58. package/.docs/integrations/sandboxes/modal.md +3 -3
  59. package/.docs/integrations/sandboxes/railway.md +3 -3
  60. package/.docs/integrations/sandboxes/vercel.md +4 -4
  61. package/.docs/integrations/tools/brightdata.md +1 -1
  62. package/.docs/integrations/tools/parallel.md +3 -3
  63. package/.docs/integrations/tools/perplexity.md +1 -1
  64. package/.docs/integrations/tools/tavily.md +1 -1
  65. package/.docs/integrations/voice/azure.md +4 -4
  66. package/.docs/integrations/voice/cloudflare.md +3 -3
  67. package/.docs/integrations/voice/deepgram.md +2 -2
  68. package/.docs/integrations/voice/elevenlabs.md +4 -4
  69. package/.docs/integrations/voice/gladia.md +10 -10
  70. package/.docs/integrations/voice/google.md +11 -11
  71. package/.docs/integrations/voice/inworld.md +23 -23
  72. package/.docs/integrations/voice/livekit.md +9 -6
  73. package/.docs/integrations/voice/mistral.md +2 -2
  74. package/.docs/integrations/voice/modelslab.md +1 -1
  75. package/.docs/integrations/voice/murf.md +1 -1
  76. package/.docs/integrations/voice/openai.md +5 -5
  77. package/.docs/integrations/voice/sarvam.md +6 -6
  78. package/.docs/integrations/voice/speechify.md +25 -12
  79. package/.docs/integrations/voice/xai.md +3 -3
  80. package/.docs/models/environment-variables.md +2 -0
  81. package/.docs/models/gateways/merge-gateway.md +3 -1
  82. package/.docs/models/gateways/neon.md +2 -1
  83. package/.docs/models/gateways/netlify.md +2 -5
  84. package/.docs/models/gateways/openrouter.md +5 -6
  85. package/.docs/models/gateways/vercel.md +5 -6
  86. package/.docs/models/index.md +9 -1
  87. package/.docs/models/providers/302ai.md +4 -0
  88. package/.docs/models/providers/abacus.md +4 -0
  89. package/.docs/models/providers/abliteration-ai.md +4 -0
  90. package/.docs/models/providers/above.md +4 -0
  91. package/.docs/models/providers/agentrouter.md +4 -0
  92. package/.docs/models/providers/agnes.md +4 -0
  93. package/.docs/models/providers/ai-router.md +4 -0
  94. package/.docs/models/providers/ai21.md +4 -0
  95. package/.docs/models/providers/aiand.md +8 -7
  96. package/.docs/models/providers/aimlapi.md +9 -10
  97. package/.docs/models/providers/ainetcafe.md +4 -0
  98. package/.docs/models/providers/aixy.md +4 -0
  99. package/.docs/models/providers/aki-io.md +4 -0
  100. package/.docs/models/providers/alibaba-cn.md +4 -0
  101. package/.docs/models/providers/alibaba-coding-plan-cn.md +4 -0
  102. package/.docs/models/providers/alibaba-coding-plan.md +4 -0
  103. package/.docs/models/providers/alibaba-token-plan-cn.md +4 -0
  104. package/.docs/models/providers/alibaba-token-plan.md +4 -0
  105. package/.docs/models/providers/alibaba.md +4 -0
  106. package/.docs/models/providers/ambient.md +5 -1
  107. package/.docs/models/providers/amd.md +4 -0
  108. package/.docs/models/providers/anthropic.md +4 -0
  109. package/.docs/models/providers/anyapi.md +4 -0
  110. package/.docs/models/providers/arcee.md +4 -0
  111. package/.docs/models/providers/atomic-chat.md +4 -0
  112. package/.docs/models/providers/auriko.md +4 -0
  113. package/.docs/models/providers/bailing.md +4 -0
  114. package/.docs/models/providers/baseten.md +4 -0
  115. package/.docs/models/providers/bee.md +4 -0
  116. package/.docs/models/providers/berget.md +4 -0
  117. package/.docs/models/providers/blueclaw.md +4 -0
  118. package/.docs/models/providers/bothub.md +4 -0
  119. package/.docs/models/providers/boundless.md +4 -0
  120. package/.docs/models/providers/cerebras.md +4 -0
  121. package/.docs/models/providers/chutes.md +18 -11
  122. package/.docs/models/providers/clarifai.md +4 -0
  123. package/.docs/models/providers/claudinio.md +4 -0
  124. package/.docs/models/providers/cline-pass.md +6 -0
  125. package/.docs/models/providers/cloudferro-sherlock.md +4 -0
  126. package/.docs/models/providers/cloudflare-workers-ai.md +4 -0
  127. package/.docs/models/providers/commandcode.md +6 -1
  128. package/.docs/models/providers/coralbricks.md +4 -0
  129. package/.docs/models/providers/cortecs.md +8 -3
  130. package/.docs/models/providers/crof.md +4 -0
  131. package/.docs/models/providers/crossmodel.md +4 -0
  132. package/.docs/models/providers/crusoe.md +4 -0
  133. package/.docs/models/providers/daoxe.md +4 -0
  134. package/.docs/models/providers/databricks.md +4 -0
  135. package/.docs/models/providers/deepinfra.md +4 -0
  136. package/.docs/models/providers/deepseek.md +4 -0
  137. package/.docs/models/providers/digitalocean.md +6 -1
  138. package/.docs/models/providers/dinference.md +4 -0
  139. package/.docs/models/providers/drun.md +4 -0
  140. package/.docs/models/providers/ebcloud.md +4 -0
  141. package/.docs/models/providers/echo.md +4 -0
  142. package/.docs/models/providers/edenai.md +22 -8
  143. package/.docs/models/providers/empiriolabs.md +8 -4
  144. package/.docs/models/providers/engy.md +4 -0
  145. package/.docs/models/providers/evroc.md +4 -0
  146. package/.docs/models/providers/fastrouter.md +4 -0
  147. package/.docs/models/providers/firepass.md +4 -0
  148. package/.docs/models/providers/fireworks-ai.md +4 -0
  149. package/.docs/models/providers/firmware.md +4 -0
  150. package/.docs/models/providers/freemodel.md +4 -0
  151. package/.docs/models/providers/friendli.md +15 -12
  152. package/.docs/models/providers/frogbot.md +4 -0
  153. package/.docs/models/providers/github-models.md +4 -0
  154. package/.docs/models/providers/gmicloud.md +4 -0
  155. package/.docs/models/providers/google.md +4 -0
  156. package/.docs/models/providers/greenpt.md +4 -0
  157. package/.docs/models/providers/groq.md +4 -0
  158. package/.docs/models/providers/helicone.md +4 -0
  159. package/.docs/models/providers/hetzner.md +4 -0
  160. package/.docs/models/providers/hpc-ai.md +4 -0
  161. package/.docs/models/providers/huggingface.md +6 -1
  162. package/.docs/models/providers/hyper.md +4 -0
  163. package/.docs/models/providers/iflowcn.md +4 -0
  164. package/.docs/models/providers/impossibl.md +4 -0
  165. package/.docs/models/providers/inception.md +4 -0
  166. package/.docs/models/providers/inceptron.md +10 -6
  167. package/.docs/models/providers/inco.md +4 -0
  168. package/.docs/models/providers/infer.md +4 -0
  169. package/.docs/models/providers/inference.md +4 -0
  170. package/.docs/models/providers/inferx.md +4 -0
  171. package/.docs/models/providers/infomaniak.md +4 -0
  172. package/.docs/models/providers/io-net.md +4 -0
  173. package/.docs/models/providers/iteracompute.md +4 -0
  174. package/.docs/models/providers/jalapeno.md +4 -0
  175. package/.docs/models/providers/jiekou.md +4 -0
  176. package/.docs/models/providers/kenari.md +4 -0
  177. package/.docs/models/providers/kilo.md +27 -24
  178. package/.docs/models/providers/kimi-code-plan-cn.md +7 -1
  179. package/.docs/models/providers/kimi-code-plan-global.md +7 -1
  180. package/.docs/models/providers/kimi-for-coding.md +4 -0
  181. package/.docs/models/providers/kiro.md +4 -0
  182. package/.docs/models/providers/klokintegration.md +4 -0
  183. package/.docs/models/providers/kosmik.md +4 -0
  184. package/.docs/models/providers/kuae-cloud-coding-plan.md +4 -0
  185. package/.docs/models/providers/lilac.md +4 -0
  186. package/.docs/models/providers/liquid.md +4 -0
  187. package/.docs/models/providers/llama.md +4 -0
  188. package/.docs/models/providers/llmgateway-providers.md +19 -9
  189. package/.docs/models/providers/llmgateway.md +12 -6
  190. package/.docs/models/providers/llmtech.md +4 -0
  191. package/.docs/models/providers/llmtr.md +4 -0
  192. package/.docs/models/providers/lmstudio.md +4 -0
  193. package/.docs/models/providers/longcat.md +4 -0
  194. package/.docs/models/providers/lowrouter.md +6 -1
  195. package/.docs/models/providers/lucidquery.md +4 -0
  196. package/.docs/models/providers/lynkr.md +4 -0
  197. package/.docs/models/providers/meganova.md +4 -0
  198. package/.docs/models/providers/melious.md +4 -0
  199. package/.docs/models/providers/meta.md +4 -0
  200. package/.docs/models/providers/minimax-cn-coding-plan.md +4 -0
  201. package/.docs/models/providers/minimax-cn.md +4 -0
  202. package/.docs/models/providers/minimax-coding-plan.md +4 -0
  203. package/.docs/models/providers/minimax.md +4 -0
  204. package/.docs/models/providers/mistral.md +4 -0
  205. package/.docs/models/providers/mixlayer.md +4 -0
  206. package/.docs/models/providers/moark.md +4 -0
  207. package/.docs/models/providers/modal.md +4 -0
  208. package/.docs/models/providers/model-oracle-ai.md +4 -0
  209. package/.docs/models/providers/modelis.md +4 -0
  210. package/.docs/models/providers/modelscope.md +4 -0
  211. package/.docs/models/providers/moonshotai-cn.md +8 -2
  212. package/.docs/models/providers/moonshotai.md +8 -2
  213. package/.docs/models/providers/morph.md +18 -6
  214. package/.docs/models/providers/munito-eu.md +84 -0
  215. package/.docs/models/providers/munito.md +85 -0
  216. package/.docs/models/providers/nan.md +4 -0
  217. package/.docs/models/providers/nano-gpt.md +651 -619
  218. package/.docs/models/providers/nearai.md +5 -1
  219. package/.docs/models/providers/nebius.md +33 -27
  220. package/.docs/models/providers/neosmith.md +4 -0
  221. package/.docs/models/providers/neuralwatt.md +4 -0
  222. package/.docs/models/providers/nova.md +4 -0
  223. package/.docs/models/providers/novita-ai.md +7 -1
  224. package/.docs/models/providers/nvidia.md +4 -0
  225. package/.docs/models/providers/oci.md +4 -0
  226. package/.docs/models/providers/ofox.md +4 -0
  227. package/.docs/models/providers/ollama-cloud.md +4 -0
  228. package/.docs/models/providers/openai.md +6 -1
  229. package/.docs/models/providers/opencode-go.md +8 -2
  230. package/.docs/models/providers/opencode.md +4 -1
  231. package/.docs/models/providers/openreason.md +4 -0
  232. package/.docs/models/providers/opper.md +4 -0
  233. package/.docs/models/providers/orcarouter.md +4 -0
  234. package/.docs/models/providers/ovhcloud.md +4 -0
  235. package/.docs/models/providers/pareto.md +4 -0
  236. package/.docs/models/providers/pendra.md +4 -0
  237. package/.docs/models/providers/perplexity-agent.md +4 -0
  238. package/.docs/models/providers/perplexity.md +4 -0
  239. package/.docs/models/providers/pioneer.md +4 -0
  240. package/.docs/models/providers/poe.md +4 -0
  241. package/.docs/models/providers/poolside.md +4 -0
  242. package/.docs/models/providers/prime.md +7 -2
  243. package/.docs/models/providers/privatemode-ai.md +4 -0
  244. package/.docs/models/providers/qihang-ai.md +4 -0
  245. package/.docs/models/providers/qiniu-ai.md +4 -0
  246. package/.docs/models/providers/reflection.md +4 -0
  247. package/.docs/models/providers/regolo-ai.md +4 -0
  248. package/.docs/models/providers/requesty.md +10 -1
  249. package/.docs/models/providers/routing-run.md +4 -0
  250. package/.docs/models/providers/runinfra.md +4 -0
  251. package/.docs/models/providers/sakana.md +4 -0
  252. package/.docs/models/providers/sambanova.md +4 -0
  253. package/.docs/models/providers/sarvam.md +4 -0
  254. package/.docs/models/providers/scaleway.md +4 -0
  255. package/.docs/models/providers/scnet-token-plan.md +4 -0
  256. package/.docs/models/providers/scx-ai.md +4 -0
  257. package/.docs/models/providers/scx.md +4 -0
  258. package/.docs/models/providers/sensenova.md +4 -0
  259. package/.docs/models/providers/siliconflow-cn.md +4 -0
  260. package/.docs/models/providers/siliconflow.md +4 -0
  261. package/.docs/models/providers/snowflake-cortex.md +4 -0
  262. package/.docs/models/providers/stackit.md +4 -0
  263. package/.docs/models/providers/standardcompute.md +4 -0
  264. package/.docs/models/providers/stepfun-ai-step-plan.md +4 -0
  265. package/.docs/models/providers/stepfun-ai.md +4 -0
  266. package/.docs/models/providers/stepfun-step-plan.md +4 -0
  267. package/.docs/models/providers/stepfun.md +4 -0
  268. package/.docs/models/providers/subconscious.md +4 -0
  269. package/.docs/models/providers/submodel.md +4 -0
  270. package/.docs/models/providers/synthetic.md +4 -0
  271. package/.docs/models/providers/tempr.md +4 -0
  272. package/.docs/models/providers/tencent-coding-plan.md +4 -0
  273. package/.docs/models/providers/tencent-token-plan.md +4 -0
  274. package/.docs/models/providers/tencent-tokenhub.md +4 -0
  275. package/.docs/models/providers/tensorx.md +4 -0
  276. package/.docs/models/providers/the-grid-ai.md +4 -0
  277. package/.docs/models/providers/thinkingmachines.md +4 -0
  278. package/.docs/models/providers/tinfoil.md +4 -0
  279. package/.docs/models/providers/togetherai.md +4 -0
  280. package/.docs/models/providers/tokengo.md +4 -0
  281. package/.docs/models/providers/tokenrouter.md +4 -0
  282. package/.docs/models/providers/trustedrouter.md +4 -0
  283. package/.docs/models/providers/umans-ai-coding-plan.md +4 -0
  284. package/.docs/models/providers/umans-ai.md +4 -0
  285. package/.docs/models/providers/unorouter.md +4 -0
  286. package/.docs/models/providers/upstage.md +4 -0
  287. package/.docs/models/providers/vancine.md +4 -0
  288. package/.docs/models/providers/vispark.md +4 -0
  289. package/.docs/models/providers/vivgrid.md +30 -39
  290. package/.docs/models/providers/volcengine-coding-plan.md +4 -0
  291. package/.docs/models/providers/volcengine.md +4 -0
  292. package/.docs/models/providers/vultr.md +4 -0
  293. package/.docs/models/providers/wafer.ai.md +4 -0
  294. package/.docs/models/providers/wallaby.md +4 -0
  295. package/.docs/models/providers/wandb.md +9 -5
  296. package/.docs/models/providers/xai.md +4 -0
  297. package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -0
  298. package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -0
  299. package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -0
  300. package/.docs/models/providers/xiaomi.md +4 -0
  301. package/.docs/models/providers/xpersona.md +4 -0
  302. package/.docs/models/providers/zai-coding-plan.md +4 -0
  303. package/.docs/models/providers/zai.md +4 -0
  304. package/.docs/models/providers/zeldoc.md +4 -0
  305. package/.docs/models/providers/zenifra.md +4 -0
  306. package/.docs/models/providers/zenmux.md +4 -0
  307. package/.docs/models/providers/zhipuai-coding-plan.md +4 -0
  308. package/.docs/models/providers/zhipuai.md +4 -0
  309. package/.docs/models/providers.md +2 -0
  310. package/.docs/reference/acp/acp-agent.md +1 -1
  311. package/.docs/reference/acp/create-acp-tool.md +1 -1
  312. package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
  313. package/.docs/reference/agent-controller/session.md +5 -5
  314. package/.docs/reference/agents/agent.md +8 -4
  315. package/.docs/reference/agents/channels.md +26 -7
  316. package/.docs/reference/agents/createSkill.md +1 -1
  317. package/.docs/reference/agents/durable-agent.md +29 -21
  318. package/.docs/reference/agents/generate.md +4 -1
  319. package/.docs/reference/agents/generateLegacy.md +2 -2
  320. package/.docs/reference/agents/inngest-agent.md +2 -0
  321. package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +1 -1
  322. package/.docs/reference/auth/auth0.md +2 -2
  323. package/.docs/reference/auth/better-auth.md +7 -3
  324. package/.docs/reference/auth/clerk.md +1 -1
  325. package/.docs/reference/auth/firebase.md +4 -4
  326. package/.docs/reference/auth/google.md +6 -6
  327. package/.docs/reference/auth/jwt.md +1 -1
  328. package/.docs/reference/auth/neon.md +6 -6
  329. package/.docs/reference/auth/okta.md +9 -8
  330. package/.docs/reference/auth/workos.md +3 -3
  331. package/.docs/reference/browser/agent-browser.md +1 -1
  332. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  333. package/.docs/reference/browser/stagehand-browser.md +1 -1
  334. package/.docs/reference/channels/slack-provider.md +4 -2
  335. package/.docs/reference/channels/teams-provider.md +2 -2
  336. package/.docs/reference/channels/telegram-provider.md +2 -2
  337. package/.docs/reference/client-js/agent-controller.md +4 -1
  338. package/.docs/reference/client-js/agents.md +21 -1
  339. package/.docs/reference/client-js/conversations.md +3 -3
  340. package/.docs/reference/client-js/datasets.md +1 -1
  341. package/.docs/reference/client-js/observability.md +13 -14
  342. package/.docs/reference/client-js/responses.md +4 -4
  343. package/.docs/reference/client-js/workflows.md +2 -0
  344. package/.docs/reference/code-sdk/mount-agent-controller.md +2 -2
  345. package/.docs/reference/coding-agent/create-coding-agent.md +1 -1
  346. package/.docs/reference/configuration.md +1 -1
  347. package/.docs/reference/connect/channels.md +2 -2
  348. package/.docs/reference/connect/providers.md +166 -112
  349. package/.docs/reference/connect/tools.md +16 -16
  350. package/.docs/reference/core/mastra-class.md +7 -5
  351. package/.docs/reference/core/mastra-model-gateway.md +6 -1
  352. package/.docs/reference/datasets/startExperiment.md +17 -2
  353. package/.docs/reference/deployer.md +6 -3
  354. package/.docs/reference/editor/blob-store-provider.md +2 -2
  355. package/.docs/reference/editor/tool-provider.md +1 -1
  356. package/.docs/reference/evals/answer-relevancy.md +2 -2
  357. package/.docs/reference/evals/answer-similarity.md +4 -2
  358. package/.docs/reference/evals/bias.md +2 -2
  359. package/.docs/reference/evals/content-similarity.md +2 -2
  360. package/.docs/reference/evals/hallucination.md +3 -3
  361. package/.docs/reference/evals/noise-sensitivity.md +1 -1
  362. package/.docs/reference/evals/prompt-alignment.md +10 -9
  363. package/.docs/reference/evals/rubric.md +1 -1
  364. package/.docs/reference/evals/run-evals.md +1 -1
  365. package/.docs/reference/evals/scorer-utils.md +6 -4
  366. package/.docs/reference/evals/tone-consistency.md +5 -5
  367. package/.docs/reference/evals/tool-call-accuracy.md +4 -4
  368. package/.docs/reference/evals/trajectory-accuracy.md +1 -1
  369. package/.docs/reference/file-based-agents/schedules.md +1 -1
  370. package/.docs/reference/logging/pino-logger.md +1 -1
  371. package/.docs/reference/memory/memory-class.md +2 -2
  372. package/.docs/reference/memory/observational-memory.md +10 -10
  373. package/.docs/reference/memory/summarizeConversation.md +1 -1
  374. package/.docs/reference/memory/summarizeThread.md +1 -1
  375. package/.docs/reference/migrations/upgrade-to-v1/storage.md +1 -1
  376. package/.docs/reference/migrations/upgrade-to-v1/tools.md +7 -1
  377. package/.docs/reference/migrations/vnext-to-standard-apis.md +1 -1
  378. package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
  379. package/.docs/reference/observability/tracing/bridges/otel.md +1 -1
  380. package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
  381. package/.docs/reference/observability/tracing/exporters/console-exporter.md +3 -3
  382. package/.docs/reference/observability/tracing/exporters/default-exporter.md +1 -1
  383. package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -0
  384. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +4 -0
  385. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +5 -1
  386. package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
  387. package/.docs/reference/observability/tracing/interfaces.md +21 -1
  388. package/.docs/reference/processors/batch-parts-processor.md +1 -1
  389. package/.docs/reference/processors/classifier-processor.md +1 -1
  390. package/.docs/reference/processors/file-upload-processor.md +8 -8
  391. package/.docs/reference/processors/moderation-processor.md +1 -1
  392. package/.docs/reference/processors/processor-interface.md +5 -5
  393. package/.docs/reference/processors/provider-history-compat.md +13 -12
  394. package/.docs/reference/processors/response-cache.md +1 -1
  395. package/.docs/reference/processors/stream-error-retry-processor.md +9 -5
  396. package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
  397. package/.docs/reference/processors/token-limiter-processor.md +1 -1
  398. package/.docs/reference/processors/tool-call-filter.md +1 -1
  399. package/.docs/reference/processors/tool-search-processor.md +3 -3
  400. package/.docs/reference/processors/unicode-normalizer.md +1 -1
  401. package/.docs/reference/pubsub/redis-streams.md +10 -0
  402. package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
  403. package/.docs/reference/rag/chunking-and-embedding.md +1 -1
  404. package/.docs/reference/rag/database-config.md +20 -15
  405. package/.docs/reference/rag/extract-params.md +2 -2
  406. package/.docs/reference/rag/retrieval.md +11 -0
  407. package/.docs/reference/schedules/overview.md +17 -1
  408. package/.docs/reference/server/koa-adapter.md +2 -0
  409. package/.docs/reference/signals/notifications.md +2 -2
  410. package/.docs/reference/storage/overview.md +30 -13
  411. package/.docs/reference/storage/retention.md +1 -1
  412. package/.docs/reference/streaming/ChunkType.md +20 -2
  413. package/.docs/reference/streaming/agents/MastraModelOutput.md +3 -3
  414. package/.docs/reference/streaming/agents/stream.md +4 -4
  415. package/.docs/reference/streaming/agents/streamLegacy.md +2 -2
  416. package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
  417. package/.docs/reference/tools/ask-user-tool.md +1 -1
  418. package/.docs/reference/tools/bedrock-kb-tool.md +2 -2
  419. package/.docs/reference/tools/create-code-mode.md +1 -1
  420. package/.docs/reference/tools/create-tool.md +2 -2
  421. package/.docs/reference/tools/document-chunker-tool.md +1 -1
  422. package/.docs/reference/tools/mcp-client.md +6 -6
  423. package/.docs/reference/tools/mcp-server.md +4 -4
  424. package/.docs/reference/tools/task-tools.md +3 -1
  425. package/.docs/reference/tools/vector-query-tool.md +1 -0
  426. package/.docs/reference/vectors/astra.md +3 -1
  427. package/.docs/reference/vectors/azure-ai-search.md +2 -2
  428. package/.docs/reference/vectors/chroma.md +2 -2
  429. package/.docs/reference/vectors/convex.md +1 -1
  430. package/.docs/reference/vectors/couchbase.md +12 -5
  431. package/.docs/reference/vectors/duckdb.md +5 -5
  432. package/.docs/reference/vectors/mongodb.md +6 -6
  433. package/.docs/reference/vectors/pg.md +1 -1
  434. package/.docs/reference/vectors/pinecone.md +1 -1
  435. package/.docs/reference/vectors/qdrant.md +1 -1
  436. package/.docs/reference/vectors/s3vectors.md +3 -0
  437. package/.docs/reference/vectors/turbopuffer.md +1 -1
  438. package/.docs/reference/vectors/upstash.md +8 -4
  439. package/.docs/reference/vectors/vectorize.md +4 -2
  440. package/.docs/reference/vectors/weaviate.md +1 -1
  441. package/.docs/reference/voice/voice.send.md +1 -1
  442. package/.docs/reference/voice/voice.speak.md +1 -1
  443. package/.docs/reference/voice/voice.updateConfig.md +1 -1
  444. package/.docs/reference/workflows/run-methods/restart.md +1 -1
  445. package/.docs/reference/workflows/run-methods/resume.md +1 -1
  446. package/.docs/reference/workflows/run-methods/start.md +1 -1
  447. package/.docs/reference/workflows/run-methods/timeTravel.md +1 -1
  448. package/.docs/reference/workflows/run.md +2 -2
  449. package/.docs/reference/workflows/step.md +4 -0
  450. package/.docs/reference/workflows/workflow-methods/agent.md +2 -0
  451. package/.docs/reference/workflows/workflow-methods/classifier.md +5 -0
  452. package/.docs/reference/workflows/workflow-methods/dountil.md +1 -1
  453. package/.docs/reference/workflows/workflow-methods/map.md +2 -0
  454. package/.docs/reference/workflows/workflow.md +2 -2
  455. package/.docs/reference/workspace/factory-sandbox.md +11 -2
  456. package/.docs/reference/workspace/filesystem.md +2 -2
  457. package/.docs/reference/workspace/local-sandbox.md +3 -3
  458. package/.docs/reference/workspace/platform-filesystem.md +3 -3
  459. package/.docs/reference/workspace/platform-sandbox.md +10 -8
  460. package/.docs/reference/workspace/sandbox.md +1 -1
  461. package/.docs/reference/workspace/workspace-class.md +13 -13
  462. package/dist/index.js +1 -1
  463. package/dist/{src-DnH_jHt9.js → src-Cv7bX2-6.js} +10 -19
  464. package/dist/{src-DnH_jHt9.js.map → src-Cv7bX2-6.js.map} +1 -1
  465. package/dist/stdio.js +2 -3
  466. package/package.json +14 -14
@@ -23,7 +23,10 @@ class CustomDeployer extends Deployer {
23
23
  await this.prepare(outputDirectory)
24
24
 
25
25
  // Bundle the application
26
- await this._bundle('server.ts', 'mastra.ts', outputDirectory)
26
+ await this._bundle('server.ts', 'mastra.ts', {
27
+ projectRoot: process.cwd(),
28
+ outputDirectory,
29
+ })
27
30
 
28
31
  // Custom deployment logic
29
32
  }
@@ -54,9 +57,9 @@ The Deployer class inherits the following key methods from the Bundler class:
54
57
 
55
58
  **prepare** (`(outputDirectory: string) => Promise<void>`): Prepares the output directory by cleaning it and creating necessary subdirectories.
56
59
 
57
- **writePackageJson** (`(outputDirectory: string, dependencies: Map<string, string>) => Promise<void>`): Generates a package.json file in the output directory with the specified dependencies.
60
+ **writePackageJson** (`(outputDirectory: string, dependencies: Map<string, string | ExternalDependencyInfo>, resolutions?: Record<string, string>) => Promise<void>`): Generates a package.json file in the output directory with the specified dependencies. When resolutions is non-empty, it is written to the resolutions field.
58
61
 
59
- **\_bundle** (`(serverFile: string, mastraEntryFile: string, outputDirectory: string, bundleLocation?: string) => Promise<void>`): Bundles the application using the specified server and Mastra entry files.
62
+ **\_bundle** (`(serverFile: string, mastraEntryFile: string, options: { projectRoot: string; outputDirectory: string; enableEsmShim?: boolean; alias?: Record<string, string> }, toolsPaths?: (string | string[])[], bundleLocation?: string) => Promise<void>`): Bundles the application using the specified server and Mastra entry files. bundleLocation defaults to the bundler output directory inside options.outputDirectory.
60
63
 
61
64
  ## Core concepts
62
65
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  `BlobStoreProvider` is the interface a package implements to register a blob store with [`MastraEditor`](https://mastra.ai/reference/editor/mastra-editor). Blob stores hold content-addressable skill blobs and other large artifacts produced by the editor.
8
8
 
9
- The built-in `storage` provider uses the configured storage backend's `blobs` domain. External providers (for example, S3) are supplied via `MastraEditorConfig.blobStores`.
9
+ The editor doesn't register a built-in blob store provider. When no provider ID is given, it falls back to the configured storage backend's `blobs` domain. External providers (for example, S3) are supplied via `MastraEditorConfig.blobStores`.
10
10
 
11
11
  ## Usage example
12
12
 
@@ -23,7 +23,7 @@ new MastraEditor({
23
23
 
24
24
  ## Properties
25
25
 
26
- **id** (`string`): Unique provider identifier (for example, "storage", "s3").
26
+ **id** (`string`): Unique provider identifier (for example, "s3").
27
27
 
28
28
  **name** (`string`): Human-readable name for UI display.
29
29
 
@@ -154,7 +154,7 @@ type ComposioUserIdResolver = (
154
154
  ) => Promise<string | undefined> | string | undefined
155
155
  ```
156
156
 
157
- **requestContext** (`RequestContext`): Live per-request context. Client-provided non-reserved entries are untrusted. Derive identity and authorize connectedAccountId only from validated, server-populated fields such as MASTRA\_USER\_KEY, read with getRaw().
157
+ **requestContext** (`RequestContext`): Live per-request context. Client-provided non-reserved entries are untrusted. Derive identity and authorize connectedAccountId only from validated, server-populated fields such as MASTRA_USER_KEY, read with getRaw().
158
158
 
159
159
  **toolkit** (`string`): Toolkit slug the identity is being resolved for, when known.
160
160
 
@@ -8,7 +8,7 @@ The `createAnswerRelevancyScorer()` function accepts a single options object wit
8
8
 
9
9
  ## Parameters
10
10
 
11
- **model** (`LanguageModel`): Configuration for the model used to evaluate relevancy.
11
+ **model** (`MastraModelConfig`): Configuration for the model used to evaluate relevancy.
12
12
 
13
13
  **options** (`Record<'uncertaintyWeight' | 'scale', number>`): Configuration options for the scorer. (Default: `{ uncertaintyWeight: 0.3, scale: 1 }`)
14
14
 
@@ -58,7 +58,7 @@ The scorer evaluates relevancy through query-answer alignment, considering compl
58
58
 
59
59
  ### Score Interpretation
60
60
 
61
- A relevancy score between 0 and 1:
61
+ A relevancy score between 0 and `scale` (0 to 1 with the default scale). The ranges below assume the default scale:
62
62
 
63
63
  - **1.0**: The response fully answers the query with relevant and focused information.
64
64
  - **0.7 to 0.9**: The response mostly answers the query but may include minor unrelated content.
@@ -8,7 +8,7 @@ The `createAnswerSimilarityScorer()` function creates a scorer that evaluates ho
8
8
 
9
9
  ## Parameters
10
10
 
11
- **model** (`LanguageModel`): The language model used to evaluate semantic similarity between outputs and ground truth.
11
+ **model** (`MastraModelConfig`): The language model used to evaluate semantic similarity between outputs and ground truth.
12
12
 
13
13
  **options** (`AnswerSimilarityOptions`): Configuration options for the scorer.
14
14
 
@@ -55,7 +55,9 @@ The scorer uses a multi-step process:
55
55
  3. **Score**: Calculates weighted similarity with penalties for contradictions
56
56
  4. **Reason**: Generates human-readable explanation
57
57
 
58
- Score calculation: `max(0, base_score - contradiction_penalty - missing_penalty - extra_info_penalty) × scale`
58
+ Score calculation: `max(0, min(1, base_score - contradiction_penalty - extra_info_penalty)) × scale`
59
+
60
+ `base_score` is the sum of per-match credits, minus `missingPenalty` for each missing unit, divided by `ground_truth_units × (1 + exactMatchBonus)`. The score is 0 when the ground truth has no units.
59
61
 
60
62
  ## Example
61
63
 
@@ -8,7 +8,7 @@ The `createBiasScorer()` function accepts a single options object with the follo
8
8
 
9
9
  ## Parameters
10
10
 
11
- **model** (`LanguageModel`): Configuration for the model used to evaluate bias.
11
+ **model** (`MastraModelConfig`): Configuration for the model used to evaluate bias.
12
12
 
13
13
  **options** (`BiasMetricOptions`): Configuration options for the scorer.
14
14
 
@@ -71,7 +71,7 @@ Final score: `(biased_opinions / total_opinions) * scale`
71
71
 
72
72
  ### Score interpretation
73
73
 
74
- A bias score between 0 and 1:
74
+ A bias score between 0 and `scale` (0 to 1 with the default scale). The ranges below assume the default scale:
75
75
 
76
76
  - **1.0**: Contains explicit discriminatory or stereotypical statements.
77
77
  - **0.7 to 0.9**: Includes strong prejudiced assumptions or generalizations.
@@ -10,9 +10,9 @@ The `createContentSimilarityScorer()` function measures the textual similarity b
10
10
 
11
11
  The `createContentSimilarityScorer()` function accepts a single options object with the following properties:
12
12
 
13
- **ignoreCase** (`boolean`): Whether to ignore case differences when comparing strings. (Default: `true`)
13
+ **ignoreCase** (`boolean`): Whether to ignore case differences when comparing strings. Defaults to true only when no options object is passed. If you pass an options object, an omitted value is treated as false. (Default: `true`)
14
14
 
15
- **ignoreWhitespace** (`boolean`): Whether to normalize whitespace when comparing strings. (Default: `true`)
15
+ **ignoreWhitespace** (`boolean`): Whether to normalize whitespace when comparing strings. Defaults to true only when no options object is passed. If you pass an options object, an omitted value is treated as false. (Default: `true`)
16
16
 
17
17
  This function returns an instance of the MastraScorer class. See the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer) for details on the `.run()` method and its input/output.
18
18
 
@@ -10,7 +10,7 @@ The `createHallucinationScorer()` function evaluates whether an LLM generates fa
10
10
 
11
11
  The `createHallucinationScorer()` function accepts a single options object with the following properties:
12
12
 
13
- **model** (`LanguageModel`): Configuration for the model used to evaluate hallucination.
13
+ **model** (`MastraModelConfig`): Configuration for the model used to evaluate hallucination.
14
14
 
15
15
  **options** (`Options`): Configuration options.
16
16
 
@@ -65,7 +65,7 @@ The scorer evaluates hallucination through contradiction detection and unsupport
65
65
  - Divides by total statements
66
66
  - Scales to configured range
67
67
 
68
- Final score: `(hallucinated_statements / total_statements) * scale`
68
+ Final score: `min(1, hallucinated_statements / total_statements) * scale` when `total_statements > 0`, otherwise `0`.
69
69
 
70
70
  ### Important Considerations
71
71
 
@@ -87,7 +87,7 @@ Final score: `(hallucinated_statements / total_statements) * scale`
87
87
 
88
88
  ### Score interpretation
89
89
 
90
- A hallucination score between 0 and 1:
90
+ A hallucination score between 0 and `scale` (0 to 1 with the default scale). The ranges below assume the default scale:
91
91
 
92
92
  - **0.0**: No hallucination, all claims match the context.
93
93
  - **0.3 to 0.4**: Low hallucination, a few contradictions.
@@ -126,7 +126,7 @@ Where:
126
126
 
127
127
  - `llm_score` = Direct robustness score from LLM analysis
128
128
  - `calculated_score` = Average of impact weights across dimensions
129
- - `issues_penalty` = min(major\_issues × penalty\_rate, max\_penalty)
129
+ - `issues_penalty` = min(major_issues × penalty_rate, max_penalty)
130
130
 
131
131
  ### Impact Level Weights
132
132
 
@@ -114,11 +114,11 @@ Evaluates compliance with system guidelines only:
114
114
 
115
115
  #### Both Mode ('both' - default)
116
116
 
117
- Combines evaluation of both user and system alignment:
117
+ Evaluates user and system alignment together in a single analysis:
118
118
 
119
- - **User alignment**: 70% of final score (using user mode weights)
120
- - **System compliance**: 30% of final score (using system mode weights)
121
- - Provides balanced assessment of user satisfaction and system adherence
119
+ - The judge assesses each dimension against both the user prompt and the system guidelines
120
+ - The resulting dimension scores are combined using the user mode weights
121
+ - The scorer computes no separate system score, so the result isn't a blend of user mode and system mode scores
122
122
 
123
123
  ### Scoring Formula
124
124
 
@@ -141,17 +141,18 @@ Final Score = Weighted Score × scale
141
141
  **Both Mode (default):**
142
142
 
143
143
  ```text
144
- User Score = (user dimensions with user weights)
145
- System Score = (system dimensions with system weights)
146
- Weighted Score = (User Score × 0.7) + (System Score × 0.3)
144
+ Weighted Score = (intent_score × 0.4) + (requirements_score × 0.3) +
145
+ (completeness_score × 0.2) + (appropriateness_score × 0.1)
147
146
  Final Score = Weighted Score × scale
148
147
  ```
149
148
 
149
+ In both mode, each dimension score comes from the combined analysis of the user prompt and the system guidelines.
150
+
150
151
  **Weight Distribution Rationale**:
151
152
 
152
153
  - **User Mode**: Prioritizes intent (40%) and requirements (30%) for user satisfaction
153
154
  - **System Mode**: Balances behavioral compliance (35%) and constraints (35%) equally
154
- - **Both Mode**: 70/30 split ensures user needs are primary while maintaining system compliance
155
+ - **Both Mode**: Uses the user mode weights over a combined analysis, so user needs stay primary while system guidelines are still assessed
155
156
 
156
157
  ### Score Interpretation
157
158
 
@@ -583,7 +584,7 @@ const result = await scorer.run({
583
584
 
584
585
  #### Both Mode - Combined Evaluation (Default)
585
586
 
586
- Evaluates both user intent fulfillment and system compliance with weighted scoring (70% user, 30% system):
587
+ Evaluates user intent fulfillment and system compliance together in a single analysis:
587
588
 
588
589
  ```typescript
589
590
  const scorer = createPromptAlignmentScorerLLM({
@@ -108,7 +108,7 @@ The scorer runs in two phases:
108
108
  1. **Grade**: The judge model evaluates each criterion independently and returns a per-criterion verdict (`satisfied` / not) with reasoning.
109
109
  2. **Score**: The scorer returns `1` only when every required criterion is `satisfied` and treats every criterion as required when none are marked. All other results receive `0`.
110
110
 
111
- The `reason` summarizes the result and lists each criterion with its verdict, so a failing grade gives the agent targeted, useful feedback rather than a generic "try again".
111
+ The `reason` summarizes the result and lists each criterion with its verdict, giving the agent specific feedback on a failing grade rather than a generic "try again".
112
112
 
113
113
  ## Related
114
114
 
@@ -381,7 +381,7 @@ const result = await runEvals({
381
381
  // result.verdict: 'passed' | 'scored' | 'failed'
382
382
  ```
383
383
 
384
- Each turn runs `agent.generate()` with the same `threadId`, so the agent sees the full conversation history. `runEvals` also injects a `resourceId` (Mastra memory scopes messages by resource + thread), defaulting it to the generated thread. Pass `targetOptions.memory.resource` to pin a specific one. Cross-turn recall requires the agent to have a memory store configured. Otherwise turns run in isolation. Mix single-turn (`input`) and multi-turn (`inputs`) items in the same `data` array. When using `inputs`, `input` can be omitted.
384
+ Each turn runs `agent.generate()` with the same `threadId` to give the agent access to the full conversation history. `runEvals` also injects a `resourceId` (Mastra memory scopes messages by resource + thread), defaulting it to the generated thread. Pass `targetOptions.memory.resource` to pin a specific one. Cross-turn recall requires the agent to have a memory store configured. Otherwise turns run in isolation. Mix single-turn (`input`) and multi-turn (`inputs`) items in the same `data` array. When using `inputs`, `input` can be omitted.
385
385
 
386
386
  Scoring uses the accumulated output from all turns as `run.output`, but only the first turn as `run.input`. Prefer output-based scorers (`checks.includes`, `checks.calledTool`, `checks.similarity`) for multi-turn. Input-relative scorers (e.g. faithfulness) only see the first turn's input. Trajectory scorers that read from the trace (`AgentScorerConfig.trajectory`) resolve against the last turn's span. Tool-call checks that read `run.output` (like `checks.calledTool`) still see every turn.
387
387
 
@@ -393,10 +393,12 @@ Creates a test run object for trajectory scorers. Wraps a `Trajectory` into the
393
393
  import { createTrajectoryTestRun } from '@mastra/evals/scorers/utils'
394
394
 
395
395
  const run = createTrajectoryTestRun({
396
- steps: [
397
- { stepType: 'tool_call', name: 'search', toolArgs: { q: 'test' } },
398
- { stepType: 'tool_call', name: 'summarize' },
399
- ],
396
+ trajectory: {
397
+ steps: [
398
+ { stepType: 'tool_call', name: 'search', toolArgs: { q: 'test' } },
399
+ { stepType: 'tool_call', name: 'summarize' },
400
+ ],
401
+ },
400
402
  })
401
403
 
402
404
  const result = await trajectoryScorer.run(run)
@@ -4,13 +4,13 @@
4
4
 
5
5
  # Tone consistency scorer
6
6
 
7
- The `createToneScorer()` function evaluates the text's emotional tone and sentiment consistency. It can operate in two modes: comparing the agent output's sentiment against a configured `referenceTone`, or analyzing tone stability across the sentences of the agent output.
7
+ The `createToneScorer()` function evaluates the text's emotional tone and sentiment consistency. It can operate in two modes: comparing the agent output's sentiment against a non-empty `referenceTone`, or analyzing tone stability across the sentences of the agent output.
8
8
 
9
9
  ## Parameters
10
10
 
11
11
  The `createToneScorer()` function accepts an optional config object with the following properties:
12
12
 
13
- **referenceTone** (`string`): Reference text whose sentiment the agent output is compared against. When omitted, the scorer measures sentiment stability across the output's sentences instead.
13
+ **referenceTone** (`string`): Reference text whose sentiment the agent output is compared against. When omitted or empty, the scorer measures sentiment stability across the output's sentences instead.
14
14
 
15
15
  This function returns an instance of the MastraScorer class. See the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer) for details on the `.run()` method and its input/output.
16
16
 
@@ -51,14 +51,14 @@ The scorer evaluates sentiment consistency through tone pattern analysis and mod
51
51
  - Computes sentiment scores
52
52
  - Measures tone variations
53
53
 
54
- 2. Calculates mode-specific score: **Tone Consistency** (`referenceTone` set):
54
+ 2. Calculates mode-specific score: **Tone Consistency** (non-empty `referenceTone`):
55
55
 
56
56
  - Compares the output's sentiment with the `referenceTone` sentiment
57
57
  - Calculates the absolute sentiment difference
58
- - Score = max(0, 1 - sentiment\_difference) **Tone Stability** (no `referenceTone`):
58
+ - Score = max(0, 1 - sentiment_difference) **Tone Stability** (`referenceTone` omitted or empty):
59
59
  - Analyzes sentiment across the output's sentences
60
60
  - Calculates sentiment variance
61
- - Score = max(0, 1 - sentiment\_variance)
61
+ - Score = max(0, 1 - sentiment_variance)
62
62
 
63
63
  Final score: `mode_specific_score`
64
64
 
@@ -33,11 +33,11 @@ The `createToolCallAccuracyScorerCode()` function from `@mastra/evals/scorers/pr
33
33
 
34
34
  ### Parameters
35
35
 
36
- **expectedTool** (`string`): The name of the tool that should be called for the given task. Ignored when expectedToolOrder is provided.
36
+ **expectedTool** (`string`): The name of the tool that should be called for the given task. Determines the score when expectedToolOrder is omitted or empty. With a non-empty expectedToolOrder it does not affect the score, but still populates correctToolCalled.
37
37
 
38
38
  **strictMode** (`boolean`): Controls evaluation strictness. For single tool mode: only exact single tool calls accepted. For order checking mode: tools must match exactly with no extra tools allowed.
39
39
 
40
- **expectedToolOrder** (`string[]`): Array of tool names in the expected calling order. When provided, enables order checking mode and ignores expectedTool parameter.
40
+ **expectedToolOrder** (`string[]`): Array of tool names in the expected calling order. A non-empty array enables order checking mode, which determines the score. An empty array scores in single tool mode using expectedTool, but still populates correctOrderCalled.
41
41
 
42
42
  This function returns an instance of the MastraScorer class. See the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer) for details on the `.run()` method and its input/output.
43
43
 
@@ -47,14 +47,14 @@ The code-based scorer operates in two distinct modes:
47
47
 
48
48
  #### Single Tool Mode
49
49
 
50
- When `expectedToolOrder` isn't provided, the scorer evaluates single tool selection:
50
+ When `expectedToolOrder` isn't provided or is empty, the score reflects single tool selection:
51
51
 
52
52
  - **Standard Mode (strictMode: false)**: Returns `1` if the expected tool is called, regardless of other tools
53
53
  - **Strict Mode (strictMode: true)**: Returns `1` only if exactly one tool is called and it matches the expected tool
54
54
 
55
55
  #### Order Checking Mode
56
56
 
57
- When `expectedToolOrder` is provided, the scorer validates tool calling sequence:
57
+ When a non-empty `expectedToolOrder` is provided, the score reflects the tool calling sequence:
58
58
 
59
59
  - **Strict Order (strictMode: true)**: Tools must be called in exactly the specified order with no extra tools
60
60
  - **Flexible Order (strictMode: false)**: Expected tools must appear in correct relative order (extra tools allowed)
@@ -116,7 +116,7 @@ Omit `stepType` entirely to match any step by name only.
116
116
 
117
117
  **stepType** (`TrajectoryStepType`): Step type discriminant. When set, enables autocomplete for that variant's fields. If omitted, matches any step type with the given name.
118
118
 
119
- **(variant fields)** (`varies`): Type-specific fields from the corresponding TrajectoryStep variant. For example, toolArgs and toolResult for tool\_call, modelId for model\_generation, output for workflow\_step. All optional — only specified fields are compared.
119
+ **(variant fields)** (`varies`): Type-specific fields from the corresponding TrajectoryStep variant. For example, toolArgs and toolResult for tool_call, modelId for model_generation, output for workflow_step. All optional — only specified fields are compared.
120
120
 
121
121
  **children** (`TrajectoryExpectation`): Nested expectation config for this step's children. Overrides the parent config for evaluating children of this step.
122
122
 
@@ -122,7 +122,7 @@ Frontmatter accepts every option below except `handler`, which needs a function
122
122
 
123
123
  **handler** (`(ctx) => AgentScheduleHandlerResult | null | undefined | void | Promise<AgentScheduleHandlerResult | null | undefined | void>`): Computes the fire at trigger time and can be async. Return overrides to apply as an AgentScheduleHandlerResult (Partial\<ScheduleEffective>), or null to skip this fire. Returning nothing applies no overrides, which fails the fire because handler mode has no stored prompt. Set this or prompt, not both.
124
124
 
125
- **timezone** (`string`): IANA timezone the cron is evaluated in (e.g. America/New\_York). Defaults to the host process timezone, which varies by deployment, so set this explicitly for anything time-of-day sensitive. DST transitions are handled by the timezone rules, so 0 9 \* \* \* stays 9am local across the shift.
125
+ **timezone** (`string`): IANA timezone the cron is evaluated in (e.g. America/New_York). Defaults to the host process timezone, which varies by deployment, so set this explicitly for anything time-of-day sensitive. DST transitions are handled by the timezone rules, so 0 9 \* \* \* stays 9am local across the shift.
126
126
 
127
127
  **name** (`string`): Free-form label shown in Studio and filterable via mastra.schedules.list({ name }).
128
128
 
@@ -36,7 +36,7 @@ export const mastra = new Mastra({
36
36
 
37
37
  **prettyPrint** (`boolean`): When false, disables pino-pretty and writes raw JSON lines (useful for log aggregators). (Default: `true`)
38
38
 
39
- **mixin** (`pino.MixinFn`): Pino mixin function merged into every log object (for example request-scoped traceId or other shared metadata).
39
+ **mixin** (`pino.LoggerOptions['mixin']`): Pino mixin function merged into every log object (for example request-scoped traceId or other shared metadata).
40
40
 
41
41
  **customLevels** (`Record<string, number>`): Custom log levels and numeric values, forwarded to Pino. Standard severity is still logged via debug, info, warn, and error; extra levels follow Pino’s custom-level behavior.
42
42
 
@@ -37,11 +37,11 @@ export const agent = new Agent({
37
37
 
38
38
  **embedder** (`EmbeddingModel<string> | EmbeddingModelV2<string>`): Embedder instance for vector embeddings. Required when semantic recall is enabled.
39
39
 
40
- **embeddingDimension** (`number`): Output dimension of the embedder, as a positive integer. When set, Memory uses it to name the semantic recall index instead of embedding a probe string on first use. It must match the vectors the embedder returns: a mismatch throws a MASTRA\_MEMORY\_EMBEDDING\_DIMENSION\_MISMATCH error before any index is created. See Setting the embedding dimension.
40
+ **embeddingDimension** (`number`): Output dimension of the embedder, as a positive integer. When set, Memory uses it to name the semantic recall index instead of embedding a probe string on first use. It must match the vectors the embedder returns: a mismatch throws a MASTRA_MEMORY_EMBEDDING_DIMENSION_MISMATCH error before any index is created. See Setting the embedding dimension.
41
41
 
42
42
  **options** (`MemoryConfig`): Memory configuration options.
43
43
 
44
- **options.lastMessages** (`number | false`): Number of most recent messages to include in context. Set to false to disable the message history feature entirely (messages are not loaded into context or saved). Use Number.MAX\_SAFE\_INTEGER to retrieve all messages with no limit. To load messages without saving new ones, use the readOnly option. The window slides forward on every request, so once a thread exceeds the limit, each turn invalidates the provider prompt cache. For long-running conversations, use Observational Memory instead.
44
+ **options.lastMessages** (`number | false`): Number of most recent messages to include in context. Set to false to disable the message history feature entirely (messages are not loaded into context or saved). Use Number.MAX_SAFE_INTEGER to retrieve all messages with no limit. To load messages without saving new ones, use the readOnly option. The window slides forward on every request, so once a thread exceeds the limit, each turn invalidates the provider prompt cache. For long-running conversations, use Observational Memory instead.
45
45
 
46
46
  **options.messageHistory** (`{ maxTokens: number; atMaxRemoveTokens?: number }`): Token budget for the complete prompt, including remembered history, system instructions, context, and the current turn. When the prompt exceeds maxTokens, the oldest remembered messages are dropped until the prompt is at most maxTokens - atMaxRemoveTokens (defaults to 25% of maxTokens). Protected content is never removed. Linked tool calls and results are removed together. During agent runs, trimmed history is excluded from later turns via a persisted per-thread boundary, but the messages themselves stay in storage. When set without an explicit lastMessages, the default 10-message cap is not applied. Set maxTokens to 0 to disable message history. Prefer this over lastMessages, since message count is a poor proxy for context size.
47
47
 
@@ -37,15 +37,15 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
37
37
 
38
38
  **enabled** (`boolean`): Enable or disable Observational Memory. When omitted from a config object, defaults to true. Only enabled: false explicitly disables it. (Default: `true`)
39
39
 
40
- **model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Cannot be used together with observation.model or reflection.model. When all model fields are omitted, each role defaults to "auto". Automatic selection prefers google/gemini-2.5-flash when GOOGLE\_GENERATIVE\_AI\_API\_KEY is configured, then a low-cost model for the active provider, then the active main model. Use "default" for the legacy fixed default. (Default: `'auto'`)
40
+ **model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Cannot be used together with observation.model or reflection.model. When all model fields are omitted, each role defaults to "auto". Automatic selection prefers google/gemini-2.5-flash when GOOGLE_GENERATIVE_AI_API_KEY is configured, then a low-cost model for the active provider, then the active main model. Use "default" for the legacy fixed default. (Default: `'auto'`)
41
41
 
42
- **autoModels** (`Record<string, string>`): Overrides the model automatic selection picks for a provider, keyed by provider ID. For example, { openai: "\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_" }. Providers not listed use the built-in pick.
42
+ **autoModels** (`Record<string, string>`): Overrides the model automatic selection picks for a provider, keyed by provider ID. For example, { openai: "\_\_GATEWAY_OPENAI_MODEL_LUNA\_\_" }. Providers not listed use the built-in pick.
43
43
 
44
44
  **resolveModel** (`(modelId: string, context: { requestContext?: RequestContext }) => MastraModelConfig | Promise<MastraModelConfig>`): Creates the model automatic selection picked, so it can use your credentials and routing. Receives only concrete model IDs, never "auto". When omitted, the picked ID goes through Mastra model routing.
45
45
 
46
46
  **scope** (`'resource' | 'thread'`): Memory scope for observations. 'thread' keeps observations per-thread. 'resource' is deprecated and will be removed in a future release. It shares observations across all threads for a resource and works much worse than thread scope for prompt caching and agent understanding. For cross-thread continuity, use thread scope with retrieval or resource-scoped working memory. See resource scope (deprecated). (Default: `'thread'`)
47
47
 
48
- **activateAfterIdle** (`number | string | false | "auto" | Record<string, number | string | false | "auto">`): Time before buffered observations are forced to activate after inactivity, even before observation.messageTokens is reached. Accepts a numeric millisecond value such as 300\_000, duration strings like "5m" or "1hr", "auto" for a provider-aware prompt cache TTL, false to disable inherited observation idle activation, or an object of per-provider TTLs such as { default: "auto", anthropic: "1h" }. Object keys match the actor model provider before the first ., case-insensitively, so anthropic covers the direct Anthropic provider but not Claude through another provider such as amazon-bedrock; default covers every other provider. Reflections do not inherit this setting. Use reflection.activateAfterIdle to opt reflections into idle activation.
48
+ **activateAfterIdle** (`number | string | false | "auto" | Record<string, number | string | false | "auto">`): Time before buffered observations are forced to activate after inactivity, even before observation.messageTokens is reached. Accepts a numeric millisecond value such as 300_000, duration strings like "5m" or "1hr", "auto" for a provider-aware prompt cache TTL, false to disable inherited observation idle activation, or an object of per-provider TTLs such as { default: "auto", anthropic: "1h" }. Object keys match the actor model provider before the first ., case-insensitively, so anthropic covers the direct Anthropic provider but not Claude through another provider such as amazon-bedrock; default covers every other provider. Reflections do not inherit this setting. Use reflection.activateAfterIdle to opt reflections into idle activation.
49
49
 
50
50
  **activateOnProviderChange** (`boolean`): Force buffered observations to activate when the actor provider or model changes. Reflections do not inherit this setting. Use reflection.activateOnProviderChange to opt reflections into provider-change activation. (Default: `false`)
51
51
 
@@ -59,7 +59,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
59
59
 
60
60
  **observation** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
61
61
 
62
- **observation.model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Observer agent. With 'auto', each observation uses the Gemini default when GOOGLE\_GENERATIVE\_AI\_API\_KEY is set, otherwise a low-cost model for the calling agent's effective provider, then the calling model or configured model instance. Cannot be set if a top-level model is also provided. If neither this nor the top-level model is set, falls back to reflection.model.
62
+ **observation.model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Observer agent. With 'auto', each observation uses the Gemini default when GOOGLE_GENERATIVE_AI_API_KEY is set, otherwise a low-cost model for the calling agent's effective provider, then the calling model or configured model instance. Cannot be set if a top-level model is also provided. If neither this nor the top-level model is set, falls back to reflection.model.
63
63
 
64
64
  **observation.instruction** (`string`): Custom instruction appended to the Observer's system prompt. Use this to customize what the Observer focuses on, such as domain-specific preferences or priorities.
65
65
 
@@ -75,13 +75,13 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
75
75
 
76
76
  **observation.maxRetries** (`number`): Retries after the initial Observer model call on transient provider errors. Governs OM's own retry ladder; the Observer model call itself is configured with no provider-level retries.
77
77
 
78
- **observation.failurePolicy** (`'abort' | 'continue'`): Terminal policy once Observer retries are exhausted in a synchronous observation. Background buffered observation failures are reported as om\_buffering\_failed and never stop the turn. 'abort' aborts the agent turn. 'continue' emits the existing failure diagnostic, keeps the failed input pending for a later cycle, and allows the main agent turn to continue. Persistence, indexing, transform, locking, invariant, and explicit abort failures remain fatal. This setting doesn't prevent the underlying provider error or change blockAfter or attachment handling, and it has no backstop for a sustained outage: pending messages keep accruing in the main agent's context until they reach the model's context limit.
78
+ **observation.failurePolicy** (`'abort' | 'continue'`): Terminal policy once Observer retries are exhausted in a synchronous observation. Background buffered observation failures are reported as om_buffering_failed and never stop the turn. 'abort' aborts the agent turn. 'continue' emits the existing failure diagnostic, keeps the failed input pending for a later cycle, and allows the main agent turn to continue. Persistence, indexing, transform, locking, invariant, and explicit abort failures remain fatal. This setting doesn't prevent the underlying provider error or change blockAfter or attachment handling, and it has no backstop for a sustained outage: pending messages keep accruing in the main agent's context until they reach the model's context limit.
79
79
 
80
80
  **observation.messageTokens** (`number`): Token count of unobserved messages that triggers observation. When unobserved message tokens exceed this threshold, the Observer agent is called. Text is estimated locally with tokenx. Image parts are included with model-aware heuristics when possible, with deterministic fallbacks when image metadata is incomplete. Image-like file parts are counted the same way when uploads are normalized as files.
81
81
 
82
82
  **observation.maxTokensPerBatch** (`number`): Maximum tokens per batch when observing multiple threads in resource scope (deprecated). Threads are chunked into batches of this size and processed in parallel. Lower values mean more parallelism but more API calls.
83
83
 
84
- **observation.modelSettings** (`ObservationalMemoryModelSettings`): Model settings for the Observer agent. The temperature: 0.3 default is only applied when the resolved model is known to support temperature. The maxOutputTokens: 100\_000 default is only applied with default model selection (no model set, "default", or a ModelByInputTokens selector). Custom models get no maxOutputTokens default.
84
+ **observation.modelSettings** (`ObservationalMemoryModelSettings`): Model settings for the Observer agent. The temperature: 0.3 default is only applied when the resolved model is known to support temperature. The maxOutputTokens: 100_000 default is only applied with default model selection (no model set, "default", or a ModelByInputTokens selector). Custom models get no maxOutputTokens default.
85
85
 
86
86
  **observation.modelSettings.temperature** (`number`): Temperature for generation. Lower values produce more consistent output. The 0.3 default is only applied when the resolved model is known to support temperature.
87
87
 
@@ -107,11 +107,11 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
107
107
 
108
108
  **reflection** (`ObservationalMemoryReflectionConfig`): Configuration for the reflection step. Controls when the Reflector agent runs and how it behaves.
109
109
 
110
- **reflection.model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Reflector agent. With 'auto', each reflection uses the Gemini default when GOOGLE\_GENERATIVE\_AI\_API\_KEY is set, otherwise a low-cost model for the calling agent's effective provider, then the calling model or configured model instance. Cannot be set if a top-level model is also provided. If neither this nor the top-level model is set, falls back to observation.model.
110
+ **reflection.model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Reflector agent. With 'auto', each reflection uses the Gemini default when GOOGLE_GENERATIVE_AI_API_KEY is set, otherwise a low-cost model for the calling agent's effective provider, then the calling model or configured model instance. Cannot be set if a top-level model is also provided. If neither this nor the top-level model is set, falls back to observation.model.
111
111
 
112
112
  **reflection.maxRetries** (`number`): Retries after the initial Reflector model call on transient provider errors. Governs OM's own retry ladder; the Reflector model call itself is configured with no provider-level retries.
113
113
 
114
- **reflection.failurePolicy** (`'abort' | 'continue'`): Terminal policy once Reflector retries are exhausted in a synchronous reflection. Background buffered reflection failures are reported as om\_buffering\_failed and never stop the turn. 'abort' aborts the agent turn. 'continue' emits the failure diagnostic and allows the turn to continue, leaving already-persisted observations committed and deferring reflection to the next threshold crossing. A provider outage usually takes out both stages, so set the policy on observation too if the turn should survive one.
114
+ **reflection.failurePolicy** (`'abort' | 'continue'`): Terminal policy once Reflector retries are exhausted in a synchronous reflection. Background buffered reflection failures are reported as om_buffering_failed and never stop the turn. 'abort' aborts the agent turn. 'continue' emits the failure diagnostic and allows the turn to continue, leaving already-persisted observations committed and deferring reflection to the next threshold crossing. A provider outage usually takes out both stages, so set the policy on observation too if the turn should survive one.
115
115
 
116
116
  **reflection.instruction** (`string`): Custom instruction appended to the Reflector's system prompt. Use this to customize how the Reflector consolidates observations, such as prioritizing certain types of information.
117
117
 
@@ -121,7 +121,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
121
121
 
122
122
  **reflection.observationTokens** (`number`): Token count of observations that triggers reflection. When observation tokens exceed this threshold, the Reflector agent is called to condense them.
123
123
 
124
- **reflection.modelSettings** (`ObservationalMemoryModelSettings`): Model settings for the Reflector agent. The temperature: 0 default is only applied when the resolved model is known to support temperature. The maxOutputTokens: 100\_000 default is only applied with default model selection (no model set, "default", or a ModelByInputTokens selector). Custom models get no maxOutputTokens default.
124
+ **reflection.modelSettings** (`ObservationalMemoryModelSettings`): Model settings for the Reflector agent. The temperature: 0 default is only applied when the resolved model is known to support temperature. The maxOutputTokens: 100_000 default is only applied with default model selection (no model set, "default", or a ModelByInputTokens selector). Custom models get no maxOutputTokens default.
125
125
 
126
126
  **reflection.modelSettings.temperature** (`number`): Temperature for generation. Lower values produce more consistent output. The 0 default is only applied when the resolved model is known to support temperature.
127
127
 
@@ -961,7 +961,7 @@ const memory = new Memory({
961
961
 
962
962
  #### Parameters
963
963
 
964
- **toolNames** (`readonly string[]`): Tool names whose results are redacted. Defaults to the built-in skill tools: skill, skill\_search, and skill\_read. Use this to redact a different set of tool results.
964
+ **toolNames** (`readonly string[]`): Tool names whose results are redacted. Defaults to the built-in skill tools: skill, skill_search, and skill_read. Use this to redact a different set of tool results.
965
965
 
966
966
  #### Returns
967
967
 
@@ -24,7 +24,7 @@ const result = await summarizeConversation({
24
24
 
25
25
  ## Parameters
26
26
 
27
- **model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_'. Pass an array of { model, maxRetries } entries to fall back to the next model when one fails.
27
+ **model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model that runs the summarization, such as a router string like '\_\_GATEWAY_OPENAI_MODEL_LUNA\_\_'. Pass an array of { model, maxRetries } entries to fall back to the next model when one fails.
28
28
 
29
29
  **messages** (`MastraDBMessage[]`): The conversation to summarize. When empty, the function returns an empty result without calling the model.
30
30
 
@@ -26,7 +26,7 @@ const result = await memory.summarizeThread({
26
26
 
27
27
  **threadId** (`string`): The unique identifier of the thread to summarize.
28
28
 
29
- **model** (`string | LanguageModel | DynamicModel`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_'.
29
+ **model** (`string | LanguageModel | DynamicModel`): Model that runs the summarization, such as a router string like '\_\_GATEWAY_OPENAI_MODEL_LUNA\_\_'.
30
30
 
31
31
  **resourceId** (`string`): ID of the resource that owns the thread. If provided, validates thread ownership. Also passed to extractor contexts.
32
32
 
@@ -550,7 +550,7 @@ To migrate, use storage APIs directly for testing instead of specialized evals t
550
550
  + // Use storage APIs directly for testing
551
551
  ```
552
552
 
553
- ### TABLE\_EVALS from MSSQL storage
553
+ ### TABLE_EVALS from MSSQL storage
554
554
 
555
555
  The `TABLE_EVALS` table has been removed from MSSQL storage implementations. This change reflects the removal of legacy evals functionality.
556
556
 
@@ -82,7 +82,13 @@ createTool({
82
82
  });
83
83
  ```
84
84
 
85
- The `suspendPayload` gets validated against the `suspendSchema` when the tool is executed. If the suspendPayload doesn't match the `suspendSchema`, a warning is logged and the error is returned as tool output, but suspension continues. Also, when the tool is resumed, the `resumeData` gets validated against the `resumeSchema`. If the resumeData doesn't match the `resumeSchema`, the tool will return a `ValidationError`, preventing the tool resumption.
85
+ The `suspendPayload` is validated against the `suspendSchema` when the tool is executed. What happens when the `suspendPayload` doesn't match the `suspendSchema` depends on how the tool runs:
86
+
87
+ - **Agent**: The validation error is returned as the tool output and a warning is logged, but suspension continues.
88
+ - **Direct `execute()` call**: The validation error is returned as the tool output without logging a warning.
89
+ - **Workflow step**: The step fails with a suspend data validation error, and the workflow run fails.
90
+
91
+ Also, when the tool is resumed, the `resumeData` gets validated against the `resumeSchema`. If the resumeData doesn't match the `resumeSchema`, the tool will return a `ValidationError`, preventing the tool resumption.
86
92
 
87
93
  To skip the `suspendSchema` or `resumeSchema` validation, don't define `suspendSchema` or `resumeSchema` in the tool creation.
88
94
 
@@ -146,7 +146,7 @@ The following options are available in the standard `.stream()` and `generate()`
146
146
 
147
147
  - `structuredOutput` - Enhanced structured output with model override and custom options.
148
148
 
149
- - `jsonPromptInjection` - Used to override the default behaviour of passing response\_format to the model. This will inject context into the prompt to coerce the model into returning structured outputs.
149
+ - `jsonPromptInjection` - Used to override the default behaviour of passing response_format to the model. This will inject context into the prompt to coerce the model into returning structured outputs.
150
150
 
151
151
  - `model` - If a model is added this will create a sub agent to structure the response from the main agent. The main agent will call tools and return text, and the sub agent will return an object that conforms to your schema provided. This is a replacement for `experimental_output`.
152
152
 
@@ -39,14 +39,16 @@ Token metrics are emitted from `MODEL_GENERATION` and `CLASSIFIER_EVALUATION` sp
39
39
 
40
40
  ### Input token metrics
41
41
 
42
- | Metric name | Description |
43
- | --------------------------------------- | ---------------------------------------------- |
44
- | `mastra_model_total_input_tokens` | Total input tokens |
45
- | `mastra_model_input_text_tokens` | Text tokens in the input prompt |
46
- | `mastra_model_input_cache_read_tokens` | Tokens read from prompt cache (e.g. Anthropic) |
47
- | `mastra_model_input_cache_write_tokens` | Tokens written to prompt cache |
48
- | `mastra_model_input_audio_tokens` | Audio tokens in the input (multimodal models) |
49
- | `mastra_model_input_image_tokens` | Image tokens in the input (vision models) |
42
+ | Metric name | Description |
43
+ | ------------------------------------------ | ------------------------------------------------------------------- |
44
+ | `mastra_model_total_input_tokens` | Total input tokens |
45
+ | `mastra_model_input_text_tokens` | Text tokens in the input prompt |
46
+ | `mastra_model_input_cache_read_tokens` | Tokens read from prompt cache (e.g. Anthropic) |
47
+ | `mastra_model_input_cache_write_tokens` | Tokens written to prompt cache |
48
+ | `mastra_model_input_cache_write_5m_tokens` | Tokens written to prompt cache with a 5-minute TTL (e.g. Anthropic) |
49
+ | `mastra_model_input_cache_write_1h_tokens` | Tokens written to prompt cache with a 1-hour TTL (e.g. Anthropic) |
50
+ | `mastra_model_input_audio_tokens` | Audio tokens in the input (multimodal models) |
51
+ | `mastra_model_input_image_tokens` | Image tokens in the input (vision models) |
50
52
 
51
53
  ### Output token metrics
52
54
 
@@ -56,7 +56,7 @@ If no `LoggerProvider` is registered globally, emission is a silent no-op.
56
56
  async flush(): Promise<void>
57
57
  ```
58
58
 
59
- Force flushes the tracer provider and logger provider if they support `forceFlush`. The global providers are resolved at flush time, so a `LoggerProvider` registered after the bridge was constructed is flushed too. Useful in serverless environments where you need to drain telemetry before the runtime terminates. Your OTEL SDK may still hold a batch it has already started exporting; call `sdk.shutdown()` as well before the process exits; the provider's own `forceFlush()` doesn't wait for that batch either.
59
+ Force flushes the tracer provider and logger provider if they support `forceFlush`. The global providers are resolved at flush time, so a `LoggerProvider` registered after the bridge was constructed is flushed too. Useful in serverless environments where you need to drain telemetry before the runtime terminates. Call `sdk.shutdown()` as well before the process exits to wait for any batch your OTEL SDK has already started exporting. Neither this method nor the provider's own `forceFlush()` waits for that batch.
60
60
 
61
61
  ### `shutdown`
62
62
 
@@ -43,9 +43,9 @@ Extends `BaseExporterConfig`, which includes:
43
43
  - `logger?: IMastraLogger` - Logger instance
44
44
  - `logLevel?: LogLevel | 'debug' | 'info' | 'warn' | 'error'` - Log level (default: INFO)
45
45
 
46
- **apiKey** (`string`): Confident AI API key. Falls back to the CONFIDENT\_API\_KEY env var. The exporter disables itself when no key is found.
46
+ **apiKey** (`string`): Confident AI API key. Falls back to the CONFIDENT_API_KEY env var. The exporter disables itself when no key is found.
47
47
 
48
- **environment** (`string`): Trace environment. Falls back to CONFIDENT\_TRACE\_ENVIRONMENT, then 'development'.
48
+ **environment** (`string`): Trace environment. Falls back to CONFIDENT_TRACE_ENVIRONMENT, then 'development'.
49
49
 
50
50
  **name** (`string`): Trace name applied to every trace. Defaults to the Mastra serviceName.
51
51
 
@@ -46,7 +46,7 @@ Logs shutdown message.
46
46
 
47
47
  The exporter outputs different formats based on event type:
48
48
 
49
- ### SPAN\_STARTED
49
+ ### SPAN_STARTED
50
50
 
51
51
  ```text
52
52
  🚀 SPAN_STARTED
@@ -59,7 +59,7 @@ The exporter outputs different formats based on event type:
59
59
  ────────────────────────────────────────
60
60
  ```
61
61
 
62
- ### SPAN\_ENDED
62
+ ### SPAN_ENDED
63
63
 
64
64
  ```text
65
65
  ✅ SPAN_ENDED
@@ -75,7 +75,7 @@ The exporter outputs different formats based on event type:
75
75
  ────────────────────────────────────────
76
76
  ```
77
77
 
78
- ### SPAN\_UPDATED
78
+ ### SPAN_UPDATED
79
79
 
80
80
  ```text
81
81
  📝 SPAN_UPDATED