@mastra/mcp-docs-server 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645

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 (672) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +1 -15
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +1 -7
  3. package/.docs/organized/changelogs/%40internal%2Fplayground.md +60 -0
  4. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +201 -1
  5. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +1 -55
  6. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +368 -168
  7. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +362 -162
  8. package/.docs/organized/changelogs/%40mastra%2Fastra.md +201 -1
  9. package/.docs/organized/changelogs/%40mastra%2Fauth.md +52 -0
  10. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +201 -1
  11. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +701 -191
  12. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +400 -200
  13. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +596 -191
  14. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +629 -190
  15. package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +235 -0
  16. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +502 -0
  17. package/.docs/organized/changelogs/%40mastra%2Fcore.md +376 -176
  18. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +201 -1
  19. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +360 -160
  20. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +201 -1
  21. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +201 -1
  22. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +201 -1
  23. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +377 -177
  24. package/.docs/organized/changelogs/%40mastra%2Fduckdb.md +112 -0
  25. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +575 -197
  26. package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +133 -0
  27. package/.docs/organized/changelogs/%40mastra%2Fevals.md +211 -11
  28. package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +64 -0
  29. package/.docs/organized/changelogs/%40mastra%2Flance.md +621 -191
  30. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +788 -192
  31. package/.docs/organized/changelogs/%40mastra%2Floggers.md +201 -1
  32. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +336 -136
  33. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +201 -1
  34. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +384 -184
  35. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +576 -178
  36. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +729 -196
  37. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +670 -191
  38. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +231 -31
  39. package/.docs/organized/changelogs/%40mastra%2Fpg.md +913 -167
  40. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +248 -48
  41. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +376 -176
  42. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +204 -4
  43. package/.docs/organized/changelogs/%40mastra%2Frag.md +414 -214
  44. package/.docs/organized/changelogs/%40mastra%2Freact.md +358 -158
  45. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +101 -0
  46. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +220 -0
  47. package/.docs/organized/changelogs/%40mastra%2Fserver.md +363 -163
  48. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +201 -1
  49. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +640 -193
  50. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +201 -1
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +201 -1
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +201 -1
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +201 -1
  54. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +201 -1
  55. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +107 -1
  56. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +183 -0
  57. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +201 -1
  58. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +201 -1
  59. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +201 -1
  60. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +201 -1
  61. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +201 -1
  62. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +201 -1
  63. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +201 -1
  64. package/.docs/organized/changelogs/create-mastra.md +291 -91
  65. package/.docs/organized/changelogs/mastra.md +365 -165
  66. package/.docs/organized/code-examples/a2a.md +6 -4
  67. package/.docs/organized/code-examples/agent-v6.md +221 -0
  68. package/.docs/organized/code-examples/agui.md +16 -12
  69. package/.docs/organized/code-examples/ai-elements.md +4 -4
  70. package/.docs/organized/code-examples/ai-sdk-useChat.md +16 -22
  71. package/.docs/organized/code-examples/ai-sdk-v5.md +9 -6
  72. package/.docs/organized/code-examples/assistant-ui.md +7 -7
  73. package/.docs/organized/code-examples/bird-checker-with-express.md +7 -6
  74. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +8 -7
  75. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +8 -7
  76. package/.docs/organized/code-examples/client-side-tools.md +6 -5
  77. package/.docs/organized/code-examples/crypto-chatbot.md +7 -7
  78. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +9 -178
  79. package/.docs/organized/code-examples/fireworks-r1.md +5 -5
  80. package/.docs/organized/code-examples/heads-up-game.md +8 -5
  81. package/.docs/organized/code-examples/inngest.md +1075 -0
  82. package/.docs/organized/code-examples/mcp-configuration.md +6 -7
  83. package/.docs/organized/code-examples/mcp-registry-registry.md +3 -2
  84. package/.docs/organized/code-examples/mcp-server-adapters.md +720 -0
  85. package/.docs/organized/code-examples/memory-per-resource-example.md +7 -5
  86. package/.docs/organized/code-examples/memory-todo-agent.md +2 -1
  87. package/.docs/organized/code-examples/memory-with-context.md +3 -2
  88. package/.docs/organized/code-examples/memory-with-libsql.md +4 -2
  89. package/.docs/organized/code-examples/memory-with-mongodb.md +4 -2
  90. package/.docs/organized/code-examples/memory-with-pg.md +4 -2
  91. package/.docs/organized/code-examples/memory-with-processors.md +15 -10
  92. package/.docs/organized/code-examples/memory-with-upstash.md +5 -3
  93. package/.docs/organized/code-examples/openapi-spec-writer.md +36 -35
  94. package/.docs/organized/code-examples/processors-with-ai-sdk.md +14 -0
  95. package/.docs/organized/code-examples/quick-start.md +8 -39
  96. package/.docs/organized/code-examples/server-app-access.md +342 -0
  97. package/.docs/organized/code-examples/server-express-adapter.md +87 -0
  98. package/.docs/organized/code-examples/server-fastify-adapter.md +83 -0
  99. package/.docs/organized/code-examples/server-hono-adapter.md +85 -0
  100. package/.docs/organized/code-examples/server-koa-adapter.md +94 -0
  101. package/.docs/organized/code-examples/stock-price-tool.md +27 -27
  102. package/.docs/organized/code-examples/weather-agent.md +21 -16
  103. package/.docs/organized/code-examples/workflow-ai-recruiter.md +5 -4
  104. package/.docs/organized/code-examples/workflow-with-inline-steps.md +11 -14
  105. package/.docs/organized/code-examples/workflow-with-memory.md +18 -17
  106. package/.docs/organized/code-examples/workflow-with-separate-steps.md +4 -4
  107. package/.docs/organized/code-examples/workflow-with-suspend-resume.md +5 -4
  108. package/.docs/raw/agents/adding-voice.mdx +92 -23
  109. package/.docs/raw/agents/agent-approval.mdx +386 -0
  110. package/.docs/raw/agents/agent-memory.mdx +53 -41
  111. package/.docs/raw/agents/guardrails.mdx +141 -68
  112. package/.docs/raw/agents/network-approval.mdx +281 -0
  113. package/.docs/raw/agents/networks.mdx +79 -19
  114. package/.docs/raw/agents/overview.mdx +69 -194
  115. package/.docs/raw/agents/processors.mdx +496 -0
  116. package/.docs/raw/agents/structured-output.mdx +294 -0
  117. package/.docs/raw/agents/using-tools.mdx +86 -22
  118. package/.docs/raw/community/contributing-templates.mdx +1 -1
  119. package/.docs/raw/community/discord.mdx +2 -2
  120. package/.docs/raw/community/licensing.mdx +1 -1
  121. package/.docs/raw/course/01-first-agent/04-project-structure.md +2 -0
  122. package/.docs/raw/course/01-first-agent/05-running-playground.md +5 -5
  123. package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
  124. package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +2 -1
  125. package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +3 -3
  126. package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
  127. package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +3 -3
  128. package/.docs/raw/course/01-first-agent/15-installing-memory.md +1 -1
  129. package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +3 -3
  130. package/.docs/raw/course/01-first-agent/17-testing-memory.md +2 -2
  131. package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +2 -2
  132. package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +1 -1
  133. package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +1 -1
  134. package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +1 -1
  135. package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +1 -1
  136. package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +1 -1
  137. package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +5 -3
  138. package/.docs/raw/course/02-agent-tools-mcp/32-conclusion.md +1 -1
  139. package/.docs/raw/course/03-agent-memory/03-installing-memory.md +1 -1
  140. package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +2 -2
  141. package/.docs/raw/course/03-agent-memory/07-understanding-memory-threads.md +35 -0
  142. package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +1 -2
  143. package/.docs/raw/course/03-agent-memory/10-storage-configuration.md +2 -3
  144. package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +3 -1
  145. package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +6 -5
  146. package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +2 -1
  147. package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +5 -4
  148. package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +4 -4
  149. package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +4 -4
  150. package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +4 -4
  151. package/.docs/raw/course/04-workflows/07-using-playground.md +1 -1
  152. package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +2 -2
  153. package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +2 -3
  154. package/.docs/raw/deployment/cloud-providers.mdx +22 -0
  155. package/.docs/raw/deployment/mastra-server.mdx +140 -0
  156. package/.docs/raw/deployment/monorepo.mdx +106 -42
  157. package/.docs/raw/deployment/overview.mdx +37 -50
  158. package/.docs/raw/deployment/web-framework.mdx +18 -20
  159. package/.docs/raw/deployment/workflow-runners.mdx +16 -0
  160. package/.docs/raw/evals/built-in-scorers.mdx +54 -0
  161. package/.docs/raw/{scorers → evals}/custom-scorers.mdx +68 -22
  162. package/.docs/raw/{scorers → evals}/overview.mdx +19 -20
  163. package/.docs/raw/evals/running-in-ci.mdx +113 -0
  164. package/.docs/raw/getting-started/{installation.mdx → manual-install.mdx} +30 -103
  165. package/.docs/raw/getting-started/mcp-docs-server.mdx +57 -32
  166. package/.docs/raw/getting-started/project-structure.mdx +4 -4
  167. package/.docs/raw/getting-started/start.mdx +88 -0
  168. package/.docs/raw/getting-started/studio.mdx +39 -56
  169. package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +151 -0
  170. package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1581 -0
  171. package/.docs/raw/{frameworks/agentic-uis → guides/build-your-ui}/assistant-ui.mdx +75 -23
  172. package/.docs/raw/guides/build-your-ui/copilotkit.mdx +227 -0
  173. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +13 -13
  174. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +18 -19
  175. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +7 -9
  176. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/cloudflare-deployer.mdx +10 -7
  177. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +22 -27
  178. package/.docs/raw/guides/deployment/index.mdx +32 -0
  179. package/.docs/raw/guides/deployment/inngest.mdx +673 -0
  180. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/netlify-deployer.mdx +52 -17
  181. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/vercel-deployer.mdx +10 -7
  182. package/.docs/raw/guides/getting-started/astro.mdx +441 -0
  183. package/.docs/raw/guides/getting-started/express.mdx +128 -0
  184. package/.docs/raw/guides/getting-started/hono.mdx +227 -0
  185. package/.docs/raw/guides/getting-started/next-js.mdx +388 -0
  186. package/.docs/raw/guides/getting-started/nuxt.mdx +505 -0
  187. package/.docs/raw/guides/getting-started/quickstart.mdx +97 -0
  188. package/.docs/raw/guides/getting-started/sveltekit.mdx +329 -0
  189. package/.docs/raw/guides/getting-started/vite-react.mdx +425 -0
  190. package/.docs/raw/guides/guide/ai-recruiter.mdx +263 -0
  191. package/.docs/raw/guides/guide/chef-michel.mdx +268 -0
  192. package/.docs/raw/guides/guide/notes-mcp-server.mdx +450 -0
  193. package/.docs/raw/guides/guide/research-assistant.mdx +379 -0
  194. package/.docs/raw/guides/guide/stock-agent.mdx +183 -0
  195. package/.docs/raw/guides/guide/web-search.mdx +293 -0
  196. package/.docs/raw/guides/guide/whatsapp-chat-bot.mdx +421 -0
  197. package/.docs/raw/guides/index.mdx +10 -0
  198. package/.docs/raw/guides/migrations/agentnetwork.mdx +114 -0
  199. package/.docs/raw/guides/migrations/ai-sdk-v4-to-v5.mdx +119 -0
  200. package/.docs/raw/guides/migrations/upgrade-to-v1/_template.mdx +50 -0
  201. package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +416 -0
  202. package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +62 -0
  203. package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +363 -0
  204. package/.docs/raw/guides/migrations/upgrade-to-v1/deployment.mdx +42 -0
  205. package/.docs/raw/guides/migrations/upgrade-to-v1/evals.mdx +260 -0
  206. package/.docs/raw/guides/migrations/upgrade-to-v1/mastra.mdx +160 -0
  207. package/.docs/raw/guides/migrations/upgrade-to-v1/mcp.mdx +114 -0
  208. package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +306 -0
  209. package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +120 -0
  210. package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +73 -0
  211. package/.docs/raw/guides/migrations/upgrade-to-v1/rag.mdx +47 -0
  212. package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +596 -0
  213. package/.docs/raw/guides/migrations/upgrade-to-v1/tools.mdx +180 -0
  214. package/.docs/raw/guides/migrations/upgrade-to-v1/tracing.mdx +335 -0
  215. package/.docs/raw/guides/migrations/upgrade-to-v1/vectors.mdx +92 -0
  216. package/.docs/raw/guides/migrations/upgrade-to-v1/voice.mdx +39 -0
  217. package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +353 -0
  218. package/.docs/raw/guides/migrations/vnext-to-standard-apis.mdx +365 -0
  219. package/.docs/raw/index.mdx +9 -9
  220. package/.docs/raw/mastra-cloud/deployment.mdx +86 -0
  221. package/.docs/raw/mastra-cloud/observability.mdx +17 -25
  222. package/.docs/raw/mastra-cloud/overview.mdx +15 -49
  223. package/.docs/raw/mastra-cloud/setup.mdx +64 -0
  224. package/.docs/raw/mastra-cloud/studio.mdx +35 -0
  225. package/.docs/raw/mcp/overview.mdx +393 -0
  226. package/.docs/raw/mcp/publishing-mcp-server.mdx +142 -0
  227. package/.docs/raw/memory/memory-processors.mdx +273 -82
  228. package/.docs/raw/memory/message-history.mdx +72 -0
  229. package/.docs/raw/memory/overview.mdx +42 -76
  230. package/.docs/raw/memory/semantic-recall.mdx +77 -59
  231. package/.docs/raw/memory/storage.mdx +248 -0
  232. package/.docs/raw/memory/working-memory.mdx +41 -21
  233. package/.docs/raw/observability/logging.mdx +21 -20
  234. package/.docs/raw/observability/overview.mdx +37 -35
  235. package/.docs/raw/observability/tracing/bridges/otel.mdx +203 -0
  236. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/arize.mdx +89 -24
  237. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +40 -20
  238. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/cloud.mdx +34 -21
  239. package/.docs/raw/observability/tracing/exporters/datadog.mdx +175 -0
  240. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/default.mdx +45 -28
  241. package/.docs/raw/observability/tracing/exporters/laminar.mdx +89 -0
  242. package/.docs/raw/observability/tracing/exporters/langfuse.mdx +205 -0
  243. package/.docs/raw/observability/tracing/exporters/langsmith.mdx +121 -0
  244. package/.docs/raw/observability/tracing/exporters/otel.mdx +457 -0
  245. package/.docs/raw/observability/tracing/exporters/posthog.mdx +137 -0
  246. package/.docs/raw/observability/tracing/exporters/sentry.mdx +198 -0
  247. package/.docs/raw/observability/tracing/overview.mdx +1128 -0
  248. package/.docs/raw/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +40 -20
  249. package/.docs/raw/rag/chunking-and-embedding.mdx +37 -49
  250. package/.docs/raw/rag/graph-rag.mdx +223 -0
  251. package/.docs/raw/rag/overview.mdx +11 -17
  252. package/.docs/raw/rag/retrieval.mdx +110 -97
  253. package/.docs/raw/rag/vector-databases.mdx +150 -29
  254. package/.docs/raw/reference/agents/agent.mdx +54 -50
  255. package/.docs/raw/reference/agents/generate.mdx +410 -146
  256. package/.docs/raw/reference/agents/generateLegacy.mdx +13 -11
  257. package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +24 -16
  258. package/.docs/raw/reference/agents/getDefaultOptions.mdx +71 -0
  259. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +25 -17
  260. package/.docs/raw/reference/agents/getDescription.mdx +4 -2
  261. package/.docs/raw/reference/agents/getInstructions.mdx +12 -10
  262. package/.docs/raw/reference/agents/getLLM.mdx +14 -12
  263. package/.docs/raw/reference/agents/getMemory.mdx +13 -11
  264. package/.docs/raw/reference/agents/getModel.mdx +14 -12
  265. package/.docs/raw/reference/agents/getTools.mdx +11 -9
  266. package/.docs/raw/reference/agents/getVoice.mdx +12 -10
  267. package/.docs/raw/reference/agents/listAgents.mdx +13 -11
  268. package/.docs/raw/reference/agents/listScorers.mdx +71 -0
  269. package/.docs/raw/reference/agents/listTools.mdx +71 -0
  270. package/.docs/raw/reference/agents/listWorkflows.mdx +71 -0
  271. package/.docs/raw/reference/agents/network.mdx +134 -60
  272. package/.docs/raw/reference/ai-sdk/chat-route.mdx +130 -0
  273. package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +119 -0
  274. package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +66 -0
  275. package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +118 -0
  276. package/.docs/raw/reference/ai-sdk/network-route.mdx +102 -0
  277. package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +293 -0
  278. package/.docs/raw/reference/ai-sdk/to-ai-sdk-v4-messages.mdx +130 -0
  279. package/.docs/raw/reference/ai-sdk/to-ai-sdk-v5-messages.mdx +110 -0
  280. package/.docs/raw/reference/ai-sdk/with-mastra.mdx +122 -0
  281. package/.docs/raw/reference/ai-sdk/workflow-route.mdx +113 -0
  282. package/.docs/raw/reference/auth/auth0.mdx +9 -7
  283. package/.docs/raw/reference/auth/clerk.mdx +9 -7
  284. package/.docs/raw/reference/auth/firebase.mdx +12 -11
  285. package/.docs/raw/reference/auth/jwt.mdx +9 -7
  286. package/.docs/raw/reference/auth/supabase.mdx +9 -7
  287. package/.docs/raw/reference/auth/workos.mdx +9 -7
  288. package/.docs/raw/reference/cli/create-mastra.mdx +13 -11
  289. package/.docs/raw/reference/cli/mastra.mdx +72 -23
  290. package/.docs/raw/reference/client-js/agents.mdx +316 -86
  291. package/.docs/raw/reference/client-js/error-handling.mdx +4 -4
  292. package/.docs/raw/reference/client-js/logs.mdx +4 -2
  293. package/.docs/raw/reference/client-js/mastra-client.mdx +20 -18
  294. package/.docs/raw/reference/client-js/memory.mdx +116 -20
  295. package/.docs/raw/reference/client-js/observability.mdx +14 -12
  296. package/.docs/raw/reference/client-js/telemetry.mdx +3 -1
  297. package/.docs/raw/reference/client-js/tools.mdx +4 -2
  298. package/.docs/raw/reference/client-js/vectors.mdx +3 -1
  299. package/.docs/raw/reference/client-js/workflows.mdx +132 -87
  300. package/.docs/raw/reference/configuration.mdx +761 -0
  301. package/.docs/raw/reference/core/addGateway.mdx +61 -0
  302. package/.docs/raw/reference/core/getAgent.mdx +4 -2
  303. package/.docs/raw/reference/core/getAgentById.mdx +4 -2
  304. package/.docs/raw/reference/core/getDeployer.mdx +4 -2
  305. package/.docs/raw/reference/core/getGateway.mdx +61 -0
  306. package/.docs/raw/reference/core/getGatewayById.mdx +64 -0
  307. package/.docs/raw/reference/core/getLogger.mdx +5 -3
  308. package/.docs/raw/reference/core/getMCPServer.mdx +34 -16
  309. package/.docs/raw/reference/core/getMCPServerById.mdx +83 -0
  310. package/.docs/raw/reference/core/getMemory.mdx +50 -9
  311. package/.docs/raw/reference/core/getScorer.mdx +6 -4
  312. package/.docs/raw/reference/core/getScorerById.mdx +81 -0
  313. package/.docs/raw/reference/core/getServer.mdx +7 -5
  314. package/.docs/raw/reference/core/getStorage.mdx +6 -4
  315. package/.docs/raw/reference/core/getStoredAgentById.mdx +185 -0
  316. package/.docs/raw/reference/core/getTelemetry.mdx +6 -4
  317. package/.docs/raw/reference/core/getVector.mdx +4 -2
  318. package/.docs/raw/reference/core/getWorkflow.mdx +4 -2
  319. package/.docs/raw/reference/core/{getAgents.mdx → listAgents.mdx} +8 -6
  320. package/.docs/raw/reference/core/listGateways.mdx +55 -0
  321. package/.docs/raw/reference/core/{getLogs.mdx → listLogs.mdx} +9 -7
  322. package/.docs/raw/reference/core/{getLogsByRunId.mdx → listLogsByRunId.mdx} +9 -7
  323. package/.docs/raw/reference/core/listMCPServers.mdx +67 -0
  324. package/.docs/raw/reference/core/listMemory.mdx +74 -0
  325. package/.docs/raw/reference/core/listScorers.mdx +45 -0
  326. package/.docs/raw/reference/core/listStoredAgents.mdx +153 -0
  327. package/.docs/raw/reference/core/{getVectors.mdx → listVectors.mdx} +8 -6
  328. package/.docs/raw/reference/core/{getWorkflows.mdx → listWorkflows.mdx} +8 -6
  329. package/.docs/raw/reference/core/mastra-class.mdx +47 -23
  330. package/.docs/raw/reference/core/mastra-model-gateway.mdx +229 -0
  331. package/.docs/raw/reference/core/setLogger.mdx +5 -3
  332. package/.docs/raw/reference/core/setStorage.mdx +8 -5
  333. package/.docs/raw/reference/deployer/cloudflare.mdx +24 -55
  334. package/.docs/raw/reference/deployer/deployer.mdx +3 -8
  335. package/.docs/raw/reference/deployer/netlify.mdx +6 -4
  336. package/.docs/raw/reference/deployer/vercel.mdx +8 -7
  337. package/.docs/raw/reference/evals/answer-relevancy.mdx +99 -128
  338. package/.docs/raw/reference/evals/answer-similarity.mdx +196 -0
  339. package/.docs/raw/reference/evals/bias.mdx +91 -112
  340. package/.docs/raw/reference/evals/completeness.mdx +93 -118
  341. package/.docs/raw/reference/evals/content-similarity.mdx +73 -117
  342. package/.docs/raw/reference/evals/context-precision.mdx +195 -137
  343. package/.docs/raw/reference/{scorers → evals}/context-relevance.mdx +19 -17
  344. package/.docs/raw/reference/{scorers → evals}/create-scorer.mdx +80 -63
  345. package/.docs/raw/reference/evals/faithfulness.mdx +94 -122
  346. package/.docs/raw/reference/evals/hallucination.mdx +89 -134
  347. package/.docs/raw/reference/evals/keyword-coverage.mdx +94 -126
  348. package/.docs/raw/reference/{scorers → evals}/mastra-scorer.mdx +9 -5
  349. package/.docs/raw/reference/{scorers → evals}/noise-sensitivity.mdx +22 -20
  350. package/.docs/raw/reference/evals/prompt-alignment.mdx +606 -182
  351. package/.docs/raw/reference/{scorers/run-experiment.mdx → evals/run-evals.mdx} +21 -20
  352. package/.docs/raw/reference/evals/scorer-utils.mdx +365 -0
  353. package/.docs/raw/reference/evals/textual-difference.mdx +80 -118
  354. package/.docs/raw/reference/evals/tone-consistency.mdx +80 -126
  355. package/.docs/raw/reference/{scorers → evals}/tool-call-accuracy.mdx +37 -33
  356. package/.docs/raw/reference/evals/toxicity.mdx +93 -97
  357. package/.docs/raw/reference/index.mdx +2 -0
  358. package/.docs/raw/reference/{observability/logging → logging}/pino-logger.mdx +12 -10
  359. package/.docs/raw/reference/memory/clone-utilities.mdx +345 -0
  360. package/.docs/raw/reference/memory/cloneThread.mdx +237 -0
  361. package/.docs/raw/reference/memory/createThread.mdx +7 -5
  362. package/.docs/raw/reference/memory/deleteMessages.mdx +10 -8
  363. package/.docs/raw/reference/memory/getThreadById.mdx +4 -2
  364. package/.docs/raw/reference/memory/listThreads.mdx +187 -0
  365. package/.docs/raw/reference/memory/memory-class.mdx +38 -29
  366. package/.docs/raw/reference/memory/{query.mdx → recall.mdx} +60 -61
  367. package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +181 -0
  368. package/.docs/raw/reference/observability/tracing/configuration.mdx +292 -0
  369. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/arize.mdx +66 -18
  370. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +35 -11
  371. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/cloud-exporter.mdx +32 -20
  372. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/console-exporter.mdx +53 -18
  373. package/.docs/raw/reference/observability/tracing/exporters/datadog.mdx +172 -0
  374. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/default-exporter.mdx +53 -42
  375. package/.docs/raw/reference/observability/tracing/exporters/laminar.mdx +139 -0
  376. package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +184 -0
  377. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/langsmith.mdx +38 -9
  378. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/otel.mdx +87 -80
  379. package/.docs/raw/reference/observability/tracing/exporters/posthog.mdx +153 -0
  380. package/.docs/raw/reference/observability/tracing/exporters/sentry.mdx +224 -0
  381. package/.docs/raw/reference/observability/tracing/instances.mdx +166 -0
  382. package/.docs/raw/reference/observability/{ai-tracing → tracing}/interfaces.mdx +165 -94
  383. package/.docs/raw/reference/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +6 -4
  384. package/.docs/raw/reference/observability/{ai-tracing/span.mdx → tracing/spans.mdx} +60 -44
  385. package/.docs/raw/reference/processors/batch-parts-processor.mdx +22 -18
  386. package/.docs/raw/reference/processors/language-detector.mdx +41 -37
  387. package/.docs/raw/reference/processors/message-history-processor.mdx +134 -0
  388. package/.docs/raw/reference/processors/moderation-processor.mdx +66 -35
  389. package/.docs/raw/reference/processors/pii-detector.mdx +67 -37
  390. package/.docs/raw/reference/processors/processor-interface.mdx +805 -0
  391. package/.docs/raw/reference/processors/prompt-injection-detector.mdx +40 -35
  392. package/.docs/raw/reference/processors/semantic-recall-processor.mdx +202 -0
  393. package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +38 -36
  394. package/.docs/raw/reference/processors/token-limiter-processor.mdx +80 -40
  395. package/.docs/raw/reference/processors/tool-call-filter.mdx +127 -0
  396. package/.docs/raw/reference/processors/unicode-normalizer.mdx +26 -19
  397. package/.docs/raw/reference/processors/working-memory-processor.mdx +224 -0
  398. package/.docs/raw/reference/rag/chunk.mdx +7 -13
  399. package/.docs/raw/reference/rag/database-config.mdx +12 -10
  400. package/.docs/raw/reference/rag/document.mdx +3 -1
  401. package/.docs/raw/reference/rag/embeddings.mdx +8 -6
  402. package/.docs/raw/reference/rag/extract-params.mdx +58 -4
  403. package/.docs/raw/reference/rag/graph-rag.mdx +3 -1
  404. package/.docs/raw/reference/rag/metadata-filters.mdx +32 -9
  405. package/.docs/raw/reference/rag/rerank.mdx +4 -3
  406. package/.docs/raw/reference/rag/rerankWithScorer.mdx +3 -2
  407. package/.docs/raw/reference/server/create-route.mdx +330 -0
  408. package/.docs/raw/reference/server/express-adapter.mdx +221 -0
  409. package/.docs/raw/reference/server/fastify-adapter.mdx +130 -0
  410. package/.docs/raw/reference/server/hono-adapter.mdx +204 -0
  411. package/.docs/raw/reference/server/koa-adapter.mdx +129 -0
  412. package/.docs/raw/reference/server/mastra-server.mdx +334 -0
  413. package/.docs/raw/reference/server/routes.mdx +313 -0
  414. package/.docs/raw/reference/storage/cloudflare-d1.mdx +44 -2
  415. package/.docs/raw/reference/storage/cloudflare.mdx +13 -3
  416. package/.docs/raw/reference/storage/composite.mdx +245 -0
  417. package/.docs/raw/reference/storage/convex.mdx +166 -0
  418. package/.docs/raw/reference/storage/dynamodb.mdx +135 -13
  419. package/.docs/raw/reference/storage/lance.mdx +40 -3
  420. package/.docs/raw/reference/storage/libsql.mdx +92 -31
  421. package/.docs/raw/reference/storage/mongodb.mdx +149 -11
  422. package/.docs/raw/reference/storage/mssql.mdx +53 -6
  423. package/.docs/raw/{server-db/storage.mdx → reference/storage/overview.mdx} +15 -90
  424. package/.docs/raw/reference/storage/postgresql.mdx +268 -80
  425. package/.docs/raw/reference/storage/upstash.mdx +80 -3
  426. package/.docs/raw/reference/streaming/ChunkType.mdx +33 -5
  427. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +68 -7
  428. package/.docs/raw/reference/streaming/agents/stream.mdx +126 -156
  429. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +11 -9
  430. package/.docs/raw/reference/streaming/workflows/observeStream.mdx +13 -13
  431. package/.docs/raw/reference/streaming/workflows/{resumeStreamVNext.mdx → resumeStream.mdx} +60 -18
  432. package/.docs/raw/reference/streaming/workflows/stream.mdx +112 -38
  433. package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +172 -0
  434. package/.docs/raw/reference/templates/overview.mdx +6 -8
  435. package/.docs/raw/reference/tools/client.mdx +5 -3
  436. package/.docs/raw/reference/tools/create-tool.mdx +306 -36
  437. package/.docs/raw/reference/tools/document-chunker-tool.mdx +3 -1
  438. package/.docs/raw/reference/tools/graph-rag-tool.mdx +59 -22
  439. package/.docs/raw/reference/tools/mcp-client.mdx +248 -31
  440. package/.docs/raw/reference/tools/mcp-server.mdx +442 -56
  441. package/.docs/raw/reference/tools/vector-query-tool.mdx +106 -42
  442. package/.docs/raw/reference/vectors/astra.mdx +6 -4
  443. package/.docs/raw/reference/vectors/chroma.mdx +87 -5
  444. package/.docs/raw/reference/vectors/convex.mdx +431 -0
  445. package/.docs/raw/reference/vectors/couchbase.mdx +39 -24
  446. package/.docs/raw/reference/vectors/duckdb.mdx +464 -0
  447. package/.docs/raw/reference/vectors/elasticsearch.mdx +318 -0
  448. package/.docs/raw/reference/vectors/lance.mdx +45 -27
  449. package/.docs/raw/reference/vectors/libsql.mdx +102 -15
  450. package/.docs/raw/reference/vectors/mongodb.mdx +133 -14
  451. package/.docs/raw/reference/vectors/opensearch.mdx +68 -20
  452. package/.docs/raw/reference/vectors/pg.mdx +105 -43
  453. package/.docs/raw/reference/vectors/pinecone.mdx +90 -8
  454. package/.docs/raw/reference/vectors/qdrant.mdx +185 -6
  455. package/.docs/raw/reference/vectors/s3vectors.mdx +10 -8
  456. package/.docs/raw/reference/vectors/turbopuffer.mdx +81 -5
  457. package/.docs/raw/reference/vectors/upstash.mdx +62 -7
  458. package/.docs/raw/reference/vectors/vectorize.mdx +6 -4
  459. package/.docs/raw/reference/voice/azure.mdx +98 -81
  460. package/.docs/raw/reference/voice/cloudflare.mdx +3 -1
  461. package/.docs/raw/reference/voice/composite-voice.mdx +76 -29
  462. package/.docs/raw/reference/voice/deepgram.mdx +3 -1
  463. package/.docs/raw/reference/voice/elevenlabs.mdx +3 -1
  464. package/.docs/raw/reference/voice/google-gemini-live.mdx +6 -3
  465. package/.docs/raw/reference/voice/google.mdx +162 -21
  466. package/.docs/raw/reference/voice/mastra-voice.mdx +3 -1
  467. package/.docs/raw/reference/voice/murf.mdx +3 -1
  468. package/.docs/raw/reference/voice/openai-realtime.mdx +6 -3
  469. package/.docs/raw/reference/voice/openai.mdx +3 -1
  470. package/.docs/raw/reference/voice/playai.mdx +3 -1
  471. package/.docs/raw/reference/voice/sarvam.mdx +3 -1
  472. package/.docs/raw/reference/voice/speechify.mdx +3 -1
  473. package/.docs/raw/reference/voice/voice.addInstructions.mdx +6 -4
  474. package/.docs/raw/reference/voice/voice.addTools.mdx +8 -5
  475. package/.docs/raw/reference/voice/voice.answer.mdx +6 -2
  476. package/.docs/raw/reference/voice/voice.close.mdx +5 -2
  477. package/.docs/raw/reference/voice/voice.connect.mdx +7 -3
  478. package/.docs/raw/reference/voice/voice.events.mdx +3 -1
  479. package/.docs/raw/reference/voice/voice.getSpeakers.mdx +4 -1
  480. package/.docs/raw/reference/voice/voice.listen.mdx +93 -53
  481. package/.docs/raw/reference/voice/voice.off.mdx +4 -2
  482. package/.docs/raw/reference/voice/voice.on.mdx +7 -3
  483. package/.docs/raw/reference/voice/voice.send.mdx +6 -2
  484. package/.docs/raw/reference/voice/voice.speak.mdx +82 -41
  485. package/.docs/raw/reference/voice/voice.updateConfig.mdx +4 -2
  486. package/.docs/raw/reference/workflows/run-methods/cancel.mdx +59 -9
  487. package/.docs/raw/reference/workflows/run-methods/restart.mdx +142 -0
  488. package/.docs/raw/reference/workflows/run-methods/resume.mdx +63 -17
  489. package/.docs/raw/reference/workflows/run-methods/start.mdx +68 -22
  490. package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +145 -0
  491. package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +312 -0
  492. package/.docs/raw/reference/workflows/run.mdx +38 -15
  493. package/.docs/raw/reference/workflows/step.mdx +73 -7
  494. package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +5 -3
  495. package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +4 -2
  496. package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +45 -14
  497. package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +4 -2
  498. package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +4 -2
  499. package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +72 -5
  500. package/.docs/raw/reference/workflows/workflow-methods/map.mdx +80 -3
  501. package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +4 -2
  502. package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +5 -7
  503. package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +5 -7
  504. package/.docs/raw/reference/workflows/workflow-methods/then.mdx +4 -2
  505. package/.docs/raw/reference/workflows/workflow.mdx +207 -11
  506. package/.docs/raw/{auth → server/auth}/auth0.mdx +47 -28
  507. package/.docs/raw/{auth → server/auth}/clerk.mdx +42 -21
  508. package/.docs/raw/{auth → server/auth}/firebase.mdx +54 -32
  509. package/.docs/raw/{auth → server/auth}/index.mdx +9 -7
  510. package/.docs/raw/{auth → server/auth}/jwt.mdx +29 -17
  511. package/.docs/raw/{auth → server/auth}/supabase.mdx +52 -32
  512. package/.docs/raw/{auth → server/auth}/workos.mdx +48 -29
  513. package/.docs/raw/server/custom-adapters.mdx +396 -0
  514. package/.docs/raw/{server-db → server}/custom-api-routes.mdx +11 -11
  515. package/.docs/raw/{server-db → server}/mastra-client.mdx +41 -44
  516. package/.docs/raw/server/mastra-server.mdx +86 -0
  517. package/.docs/raw/{server-db → server}/middleware.mdx +43 -41
  518. package/.docs/raw/server/request-context.mdx +235 -0
  519. package/.docs/raw/server/server-adapters.mdx +410 -0
  520. package/.docs/raw/streaming/events.mdx +18 -9
  521. package/.docs/raw/streaming/overview.mdx +52 -28
  522. package/.docs/raw/streaming/tool-streaming.mdx +75 -33
  523. package/.docs/raw/streaming/workflow-streaming.mdx +15 -21
  524. package/.docs/raw/tools-mcp/advanced-usage.mdx +11 -9
  525. package/.docs/raw/tools-mcp/mcp-overview.mdx +72 -27
  526. package/.docs/raw/tools-mcp/overview.mdx +21 -20
  527. package/.docs/raw/voice/overview.mdx +124 -42
  528. package/.docs/raw/voice/speech-to-speech.mdx +14 -7
  529. package/.docs/raw/voice/speech-to-text.mdx +8 -4
  530. package/.docs/raw/voice/text-to-speech.mdx +7 -4
  531. package/.docs/raw/workflows/agents-and-tools.mdx +73 -26
  532. package/.docs/raw/workflows/control-flow.mdx +697 -134
  533. package/.docs/raw/workflows/error-handling.mdx +198 -42
  534. package/.docs/raw/workflows/human-in-the-loop.mdx +161 -210
  535. package/.docs/raw/workflows/input-data-mapping.mdx +11 -9
  536. package/.docs/raw/workflows/overview.mdx +202 -83
  537. package/.docs/raw/workflows/snapshots.mdx +28 -50
  538. package/.docs/raw/workflows/suspend-and-resume.mdx +125 -208
  539. package/.docs/raw/workflows/time-travel.mdx +317 -0
  540. package/.docs/raw/workflows/workflow-state.mdx +189 -0
  541. package/CHANGELOG.md +419 -4
  542. package/README.md +47 -2
  543. package/dist/{chunk-TUAHUTTB.js → chunk-4CM2BQNP.js} +27 -4
  544. package/dist/index.d.ts.map +1 -1
  545. package/dist/logger.d.ts +3 -0
  546. package/dist/logger.d.ts.map +1 -1
  547. package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
  548. package/dist/prepare-docs/package-changes.d.ts.map +1 -1
  549. package/dist/prepare-docs/prepare.js +1 -1
  550. package/dist/prompts/migration.d.ts +6 -0
  551. package/dist/prompts/migration.d.ts.map +1 -0
  552. package/dist/stdio.js +1107 -40
  553. package/dist/tools/course.d.ts.map +1 -1
  554. package/dist/tools/embedded-docs.d.ts +276 -0
  555. package/dist/tools/embedded-docs.d.ts.map +1 -0
  556. package/dist/tools/migration.d.ts +40 -0
  557. package/dist/tools/migration.d.ts.map +1 -0
  558. package/package.json +17 -17
  559. package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
  560. package/.docs/raw/deployment/server-deployment.mdx +0 -81
  561. package/.docs/raw/deployment/serverless-platforms/index.mdx +0 -55
  562. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +0 -671
  563. package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +0 -123
  564. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +0 -382
  565. package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +0 -176
  566. package/.docs/raw/frameworks/servers/express.mdx +0 -209
  567. package/.docs/raw/frameworks/web-frameworks/astro.mdx +0 -602
  568. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +0 -379
  569. package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +0 -486
  570. package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +0 -255
  571. package/.docs/raw/getting-started/templates.mdx +0 -65
  572. package/.docs/raw/mastra-cloud/dashboard.mdx +0 -100
  573. package/.docs/raw/mastra-cloud/setting-up.mdx +0 -105
  574. package/.docs/raw/memory/conversation-history.mdx +0 -23
  575. package/.docs/raw/memory/storage/memory-with-libsql.mdx +0 -140
  576. package/.docs/raw/memory/storage/memory-with-pg.mdx +0 -138
  577. package/.docs/raw/memory/storage/memory-with-upstash.mdx +0 -146
  578. package/.docs/raw/memory/threads-and-resources.mdx +0 -95
  579. package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +0 -122
  580. package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +0 -88
  581. package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +0 -263
  582. package/.docs/raw/observability/ai-tracing/overview.mdx +0 -812
  583. package/.docs/raw/observability/nextjs-tracing.mdx +0 -109
  584. package/.docs/raw/observability/otel-tracing.mdx +0 -189
  585. package/.docs/raw/reference/agents/getScorers.mdx +0 -69
  586. package/.docs/raw/reference/agents/getWorkflows.mdx +0 -69
  587. package/.docs/raw/reference/client-js/workflows-legacy.mdx +0 -143
  588. package/.docs/raw/reference/core/getMCPServers.mdx +0 -36
  589. package/.docs/raw/reference/core/getScorerByName.mdx +0 -78
  590. package/.docs/raw/reference/core/getScorers.mdx +0 -43
  591. package/.docs/raw/reference/core/setTelemetry.mdx +0 -36
  592. package/.docs/raw/reference/evals/context-position.mdx +0 -197
  593. package/.docs/raw/reference/evals/context-relevancy.mdx +0 -196
  594. package/.docs/raw/reference/evals/contextual-recall.mdx +0 -196
  595. package/.docs/raw/reference/evals/summarization.mdx +0 -212
  596. package/.docs/raw/reference/legacyWorkflows/after.mdx +0 -89
  597. package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +0 -79
  598. package/.docs/raw/reference/legacyWorkflows/commit.mdx +0 -33
  599. package/.docs/raw/reference/legacyWorkflows/createRun.mdx +0 -76
  600. package/.docs/raw/reference/legacyWorkflows/else.mdx +0 -68
  601. package/.docs/raw/reference/legacyWorkflows/events.mdx +0 -305
  602. package/.docs/raw/reference/legacyWorkflows/execute.mdx +0 -110
  603. package/.docs/raw/reference/legacyWorkflows/if.mdx +0 -108
  604. package/.docs/raw/reference/legacyWorkflows/resume.mdx +0 -158
  605. package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +0 -133
  606. package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +0 -207
  607. package/.docs/raw/reference/legacyWorkflows/start.mdx +0 -87
  608. package/.docs/raw/reference/legacyWorkflows/step-class.mdx +0 -100
  609. package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +0 -137
  610. package/.docs/raw/reference/legacyWorkflows/step-function.mdx +0 -93
  611. package/.docs/raw/reference/legacyWorkflows/step-options.mdx +0 -69
  612. package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +0 -196
  613. package/.docs/raw/reference/legacyWorkflows/suspend.mdx +0 -70
  614. package/.docs/raw/reference/legacyWorkflows/then.mdx +0 -72
  615. package/.docs/raw/reference/legacyWorkflows/until.mdx +0 -168
  616. package/.docs/raw/reference/legacyWorkflows/watch.mdx +0 -124
  617. package/.docs/raw/reference/legacyWorkflows/while.mdx +0 -168
  618. package/.docs/raw/reference/legacyWorkflows/workflow.mdx +0 -234
  619. package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +0 -79
  620. package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +0 -110
  621. package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +0 -186
  622. package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +0 -238
  623. package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +0 -116
  624. package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +0 -117
  625. package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +0 -81
  626. package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +0 -121
  627. package/.docs/raw/reference/observability/otel-tracing/providers/braintrust.mdx +0 -40
  628. package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +0 -40
  629. package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +0 -20
  630. package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +0 -73
  631. package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +0 -41
  632. package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +0 -84
  633. package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +0 -48
  634. package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +0 -43
  635. package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +0 -40
  636. package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +0 -40
  637. package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +0 -40
  638. package/.docs/raw/reference/scorers/answer-relevancy.mdx +0 -227
  639. package/.docs/raw/reference/scorers/answer-similarity.mdx +0 -439
  640. package/.docs/raw/reference/scorers/bias.mdx +0 -228
  641. package/.docs/raw/reference/scorers/completeness.mdx +0 -214
  642. package/.docs/raw/reference/scorers/content-similarity.mdx +0 -197
  643. package/.docs/raw/reference/scorers/context-precision.mdx +0 -352
  644. package/.docs/raw/reference/scorers/faithfulness.mdx +0 -241
  645. package/.docs/raw/reference/scorers/hallucination.mdx +0 -252
  646. package/.docs/raw/reference/scorers/keyword-coverage.mdx +0 -229
  647. package/.docs/raw/reference/scorers/prompt-alignment.mdx +0 -668
  648. package/.docs/raw/reference/scorers/textual-difference.mdx +0 -203
  649. package/.docs/raw/reference/scorers/tone-consistency.mdx +0 -211
  650. package/.docs/raw/reference/scorers/toxicity.mdx +0 -228
  651. package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +0 -47
  652. package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +0 -153
  653. package/.docs/raw/reference/workflows/run-methods/watch.mdx +0 -73
  654. package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +0 -70
  655. package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +0 -66
  656. package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +0 -24
  657. package/.docs/raw/scorers/evals-old-api/overview.mdx +0 -106
  658. package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +0 -85
  659. package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +0 -58
  660. package/.docs/raw/scorers/off-the-shelf-scorers.mdx +0 -50
  661. package/.docs/raw/server-db/production-server.mdx +0 -89
  662. package/.docs/raw/server-db/runtime-context.mdx +0 -193
  663. package/.docs/raw/workflows/inngest-workflow.mdx +0 -363
  664. package/.docs/raw/workflows-legacy/control-flow.mdx +0 -774
  665. package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +0 -239
  666. package/.docs/raw/workflows-legacy/error-handling.mdx +0 -187
  667. package/.docs/raw/workflows-legacy/nested-workflows.mdx +0 -360
  668. package/.docs/raw/workflows-legacy/overview.mdx +0 -182
  669. package/.docs/raw/workflows-legacy/runtime-variables.mdx +0 -156
  670. package/.docs/raw/workflows-legacy/steps.mdx +0 -115
  671. package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +0 -406
  672. package/.docs/raw/workflows-legacy/variables.mdx +0 -318
@@ -1,302 +1,502 @@
1
1
  # @mastra/core
2
2
 
3
- ## 0.22.2
3
+ ## 1.0.4
4
4
 
5
- ### Patch Changes
5
+ ## 1.0.4-alpha.0
6
6
 
7
- - Fix nested workflow events and networks ([#9132](https://github.com/mastra-ai/mastra/pull/9132))
7
+ ## 1.0.0
8
8
 
9
- ## 0.22.2-alpha.0
9
+ ### Major Changes
10
10
 
11
- ### Patch Changes
11
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
12
12
 
13
- - Fix nested workflow events and networks ([#9132](https://github.com/mastra-ai/mastra/pull/9132))
13
+ - Scorers for Agents will now use `MastraDBMessage` instead of `UIMessage` ([#9702](https://github.com/mastra-ai/mastra/pull/9702))
14
+ - Scorer input/output types now use `MastraDBMessage[]` with nested `content` object structure
15
+ - Added `getTextContentFromMastraDBMessage()` helper function to extract text content from `MastraDBMessage` objects
16
+ - Added `createTestMessage()` helper function for creating `MastraDBMessage` objects in tests with optional tool invocations support
17
+ - Updated `extractToolCalls()` to access tool invocations from nested `content` structure
18
+ - Updated `getUserMessageFromRunInput()` and `getAssistantMessageFromRunOutput()` to use new message structure
19
+ - Removed `createUIMessage()`
14
20
 
15
- ## 0.22.1
21
+ - Every Mastra primitive (agent, MCPServer, workflow, tool, processor, scorer, and vector) now has a get, list, and add method associated with it. Each primitive also now requires an id to be set. ([#9675](https://github.com/mastra-ai/mastra/pull/9675))
16
22
 
17
- ## 0.22.1-alpha.0
23
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
18
24
 
19
- ## 0.22.0
25
+ - Update handlers to use `listWorkflowRuns` instead of `getWorkflowRuns`. Fix type names from `StoragelistThreadsByResourceIdInput/Output` to `StorageListThreadsByResourceIdInput/Output`. ([#9507](https://github.com/mastra-ai/mastra/pull/9507))
20
26
 
21
- ### Minor Changes
27
+ - Refactor workflow and tool types to remove Zod-specific constraints ([#11814](https://github.com/mastra-ai/mastra/pull/11814))
22
28
 
23
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
29
+ Removed Zod-specific type constraints across all workflow implementations and tool types, replacing them with generic types. This ensures type consistency across default, evented, and inngest workflows while preparing for Zod v4 migration.
24
30
 
25
- ### Patch Changes
31
+ **Workflow Changes:**
32
+ - Removed `z.ZodObject<any>` and `z.ZodType<any>` constraints from all workflow generic types
33
+ - Updated method signatures to use `TInput` and `TState` directly instead of `z.infer<TInput>` and `z.infer<TState>`
34
+ - Aligned conditional types across all workflow implementations using `TInput extends unknown` pattern
35
+ - Fixed `TSteps` generic to properly use `TEngineType` instead of `any`
26
36
 
27
- - Update provider registry and model documentation with latest models and providers ([`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac))
37
+ **Tool Changes:**
38
+ - Removed Zod schema constraints from `ToolExecutionContext` and related interfaces
39
+ - Simplified type parameters from `TSuspendSchema extends ZodLikeSchema` to `TSuspend` and `TResume`
40
+ - Updated tool execution context types to use generic types
28
41
 
29
- - Update provider registry and model documentation with latest models and providers ([`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec))
42
+ **Type Utilities:**
43
+ - Refactored type helpers to work with generic schemas instead of Zod-specific types
44
+ - Updated type extraction utilities for better compatibility
30
45
 
31
- - Add deprecation warnings for format:ai-sdk ([#9018](https://github.com/mastra-ai/mastra/pull/9018))
46
+ This change maintains backward compatibility while improving type consistency and preparing for Zod v4 support across all affected packages.
32
47
 
33
- - network routing agent text delta ai-sdk streaming ([#8979](https://github.com/mastra-ai/mastra/pull/8979))
48
+ - Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
34
49
 
35
- - Support writing custom top level stream chunks ([#8922](https://github.com/mastra-ai/mastra/pull/8922))
50
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
36
51
 
37
- - Fix incorrect type assertions in Tool class. Created `MastraToolInvocationOptions` type to properly extend AI SDK's `ToolInvocationOptions` with Mastra-specific properties (`suspend`, `resumeData`, `writableStream`). Removed unsafe type assertions from tool execution code. ([#9033](https://github.com/mastra-ai/mastra/pull/9033))
52
+ **Storage changes:**
53
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
54
+ - All storage implementations support `perPage: false`:
55
+ - Memory: `listMessages()`
56
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
57
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
38
58
 
39
- - fix(core): Fix Gemini message ordering validation errors (#7287, #8053) ([#8069](https://github.com/mastra-ai/mastra/pull/8069))
59
+ **Memory changes:**
60
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
61
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
40
62
 
41
- Fixes Gemini API "single turn requests" validation error by ensuring the first non-system message is from the user role. This resolves errors when:
42
- - Messages start with assistant role (e.g., from memory truncation)
43
- - Tool-call sequences begin with assistant messages
63
+ **Stricter validation:**
64
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
44
65
 
45
- **Breaking Change**: Empty or system-only message lists now throw an error instead of adding a placeholder user message, preventing confusing LLM responses.
66
+ **Migration:**
46
67
 
47
- This fix handles both issue #7287 (tool-call ordering) and #8053 (single-turn validation) by inserting a placeholder user message when needed.
68
+ ```typescript
69
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
70
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
71
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
72
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
73
+
74
+ // Memory: Replace selectBy with flat parameters
75
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
76
+ + memory.query({ threadId, perPage: 20, include: [...] })
77
+
78
+ // Client SDK
79
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
80
+ + thread.listMessages({ page: 0, perPage: 20 })
81
+ ```
82
+
83
+ - **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
84
+
85
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
86
+
87
+ **Migration:**
88
+
89
+ ```typescript
90
+ // Before
91
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
92
+
93
+ // After
94
+ const result = await storage.listMessages({
95
+ threadId: 'thread-1',
96
+ page: 0,
97
+ perPage: 50,
98
+ });
99
+ const messages = result.messages; // Access messages array
100
+ console.log(result.total); // Total count
101
+ console.log(result.hasMore); // Whether more pages exist
102
+ ```
48
103
 
49
- - Add support for external trace and parent span IDs in TracingOptions. This enables integration with external tracing systems by allowing new AI traces to be started with existing traceId and parentSpanId values. The implementation includes OpenTelemetry-compatible ID validation (32 hex chars for trace IDs, 16 hex chars for span IDs). ([#9053](https://github.com/mastra-ai/mastra/pull/9053))
104
+ **Message ordering default**
50
105
 
51
- - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
106
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
52
107
 
53
- - Fix tracing context propagation to agent steps in workflows ([#9074](https://github.com/mastra-ai/mastra/pull/9074))
108
+ **To use DESC ordering (newest first):**
54
109
 
55
- When creating a workflow step from an agent using `createStep(myAgent)`, the tracing context was not being passed to the agent's `stream()` and `streamLegacy()` methods. This caused tracing spans to break in the workflow chain.
110
+ ```typescript
111
+ const result = await storage.listMessages({
112
+ threadId: 'thread-1',
113
+ orderBy: { field: 'createdAt', direction: 'DESC' },
114
+ });
115
+ ```
56
116
 
57
- This fix ensures that `tracingContext` is properly propagated to both agent.stream() and agent.streamLegacy() calls, matching the behavior of tool steps which already propagate tracingContext correctly.
117
+ **Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
58
118
 
59
- - Fixes how reasoning chunks are stored in memory to prevent data loss and ensure they are consolidated as single message parts rather than split into word-level fragments. ([#9041](https://github.com/mastra-ai/mastra/pull/9041))
119
+ **Migration:**
60
120
 
61
- - fixes an issue where input processors couldn't add system or assistant messages. Previously all messages from input processors were forced to be user messages, causing an error when trying to add other role types. ([#8835](https://github.com/mastra-ai/mastra/pull/8835))
121
+ ```typescript
122
+ // Before
123
+ const response = await client.getThreadMessages(threadId, { agentId });
62
124
 
63
- - fix(core): Validate structured output at text-end instead of flush ([#8934](https://github.com/mastra-ai/mastra/pull/8934))
125
+ // After
126
+ const response = await client.listThreadMessages(threadId, { agentId });
127
+ ```
64
128
 
65
- Fixes structured output validation for Bedrock and LMStudio by moving validation from `flush()` to `text-end` chunk. Eliminates `finishReason` heuristics, adds special token extraction for LMStudio, and validates at the correct point in stream lifecycle.
129
+ The response format remains the same.
66
130
 
67
- - fix model.loop.test.ts tests to use structuredOutput.schema and add assertions ([#8926](https://github.com/mastra-ai/mastra/pull/8926))
131
+ **Removed `StorageGetMessagesArg` type**
68
132
 
69
- - Add `initialState` as an option to `.streamVNext()` ([#9071](https://github.com/mastra-ai/mastra/pull/9071))
133
+ Use `StorageListMessagesInput` instead:
70
134
 
71
- - added resourceId and runId to workflow_run metadata in ai tracing ([#9031](https://github.com/mastra-ai/mastra/pull/9031))
135
+ ```typescript
136
+ // Before
137
+ import type { StorageGetMessagesArg } from '@mastra/core';
72
138
 
73
- - When using OpenAI models with JSON response format, automatically enable strict schema validation. ([#8924](https://github.com/mastra-ai/mastra/pull/8924))
139
+ // After
140
+ import type { StorageListMessagesInput } from '@mastra/core';
141
+ ```
74
142
 
75
- - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
143
+ - - Removes modelSettings.abortSignal in favour of top-level abortSignal only. Also removes the deprecated output field - use structuredOutput.schema instead. ([`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6))
144
+ - The deprecated generateVNext() and streamVNext() methods have been removed since they're now the stable generate() and stream() methods.
145
+ - The deprecated `output` option has been removed entirely, in favour of `structuredOutput`.
76
146
 
77
- - Fix TypeScript type errors when using provider-defined tools from external AI SDK packages. ([#8940](https://github.com/mastra-ai/mastra/pull/8940))
147
+ Method renames to clarify the API surface:
148
+ - getDefaultGenerateOptions → getDefaultGenerateOptionsLegacy
149
+ - getDefaultStreamOptions → getDefaultStreamOptionsLegacy
150
+ - getDefaultVNextStreamOptions → getDefaultStreamOptions
78
151
 
79
- Agents can now accept provider tools like `google.tools.googleSearch()` without type errors. Creates new `@internal/external-types` package to centralize AI SDK type re-exports and adds `ProviderDefinedTool` structural type to handle tools from different package versions/instances due to TypeScript's module path discrimination.
152
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
80
153
 
81
- - feat(ai-tracing): Add automatic metadata extraction from RuntimeContext to spans ([#9072](https://github.com/mastra-ai/mastra/pull/9072))
154
+ - Replace `getThreadsByResourceIdPaginated` with `listThreadsByResourceId` across memory handlers. Update client SDK to use `listThreads()` with `offset`/`limit` parameters instead of deprecated `getMemoryThreads()`. Consolidate `/api/memory/threads` routes to single paginated endpoint. ([#9508](https://github.com/mastra-ai/mastra/pull/9508))
82
155
 
83
- Enables automatic extraction of RuntimeContext values as metadata for AI tracing spans across entire traces.
156
+ - Add new list methods to storage API: `listMessages`, `listMessagesById`, `listThreadsByResourceId`, and `listWorkflowRuns`. Most methods are currently wrappers around existing methods. Full implementations will be added when migrating away from legacy methods. ([#9489](https://github.com/mastra-ai/mastra/pull/9489))
84
157
 
85
- Key features:
86
- - Configure `runtimeContextKeys` in TracingConfig to extract specific keys from RuntimeContext
87
- - Add per-request keys via `tracingOptions.runtimeContextKeys` for trace-specific additions
88
- - Supports dot notation for nested values (e.g., 'user.id', 'session.data.experimentId')
89
- - TraceState computed once at root span and inherited by all child spans
90
- - Explicit metadata in span options takes precedence over extracted metadata
158
+ - Update tool execution signature ([#9587](https://github.com/mastra-ai/mastra/pull/9587))
91
159
 
92
- Example:
160
+ Consolidated the 3 different execution contexts to one
93
161
 
94
162
  ```typescript
95
- const mastra = new Mastra({
96
- observability: {
97
- configs: {
98
- default: {
99
- runtimeContextKeys: ['userId', 'environment', 'tenantId'],
100
- },
101
- },
102
- },
103
- });
163
+ // before depending on the context the tool was executed in
164
+ tool.execute({ context: data });
165
+ tool.execute({ context: { inputData: data } });
166
+ tool.execute(data);
104
167
 
105
- await agent.generate({
106
- messages,
107
- runtimeContext,
108
- tracingOptions: {
109
- runtimeContextKeys: ['experimentId'], // Adds to configured keys
110
- },
111
- });
168
+ // now, for all contexts
169
+ tool.execute(data, context);
112
170
  ```
113
171
 
114
- - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
115
-
116
- - Refactor workflowstream into workflow output with fullStream property ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
172
+ **Before:**
117
173
 
118
- - Added the ability to use model router configs for embedders (eg "openai/text-embedding-ada-002") ([#8992](https://github.com/mastra-ai/mastra/pull/8992))
174
+ ```typescript
175
+ inputSchema: z.object({ something: z.string() }),
176
+ execute: async ({ context, tracingContext, runId, ... }) => {
177
+ return doSomething(context.string);
178
+ }
179
+ ```
119
180
 
120
- - Always set supportsStructuredOutputs true for openai compatible provider. ([#8933](https://github.com/mastra-ai/mastra/pull/8933))
181
+ **After:**
121
182
 
122
- - Support for custom resume labels mapping to step to be resumed ([#8941](https://github.com/mastra-ai/mastra/pull/8941))
183
+ ```typescript
184
+ inputSchema: z.object({ something: z.string() }),
185
+ execute: async (inputData, context) => {
186
+ const { agent, mcp, workflow, ...sharedContext } = context
187
+
188
+ // context that only an agent would get like toolCallId, messages, suspend, resume, etc
189
+ if (agent) {
190
+ doSomething(inputData.something, agent)
191
+ // context that only a workflow would get like runId, state, suspend, resume, etc
192
+ } else if (workflow) {
193
+ doSomething(inputData.something, workflow)
194
+ // context that only a workflow would get like "extra", "elicitation"
195
+ } else if (mcp) {
196
+ doSomething(inputData.something, mcp)
197
+ } else {
198
+ // Running a tool in no execution context
199
+ return doSomething(inputData.something);
200
+ }
201
+ }
202
+ ```
123
203
 
124
- - added tracing of LLM steps & chunks ([#9058](https://github.com/mastra-ai/mastra/pull/9058))
204
+ - The `@mastra/core` package no longer allows top-level imports except for `Mastra` and `type Config`. You must use subpath imports for all other imports. ([#9544](https://github.com/mastra-ai/mastra/pull/9544))
125
205
 
126
- - Fixed an issue where a custom URL in model router still validated unknown providers against the known providers list. Custom URL means we don't necessarily know the provider. This allows local providers like Ollama to work properly ([#8989](https://github.com/mastra-ai/mastra/pull/8989))
206
+ For example:
127
207
 
128
- - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
208
+ ```diff
209
+ import { Mastra, type Config } from "@mastra/core";
210
+ - import { Agent } from "@mastra/core";
211
+ - import { createTool } from "@mastra/core";
212
+ - import { createStep } from "@mastra/core";
129
213
 
130
- - feat: inject schema context into main agent for processor mode structured output ([#8886](https://github.com/mastra-ai/mastra/pull/8886))
214
+ + import { Agent } from "@mastra/core/agent";
215
+ + import { createTool } from "@mastra/core/tools";
216
+ + import { createStep } from "@mastra/core/workflows";
217
+ ```
131
218
 
132
- - Added providerOptions types to generate/stream for main builtin model router providers (openai/anthropic/google/xai) ([#8995](https://github.com/mastra-ai/mastra/pull/8995))
219
+ - This simplifies the Memory API by removing the confusing rememberMessages method and renaming query to recall for better clarity. ([#9701](https://github.com/mastra-ai/mastra/pull/9701))
133
220
 
134
- - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
221
+ The rememberMessages method name implied it might persist data when it was actually just retrieving messages, same as query. Having two methods that did essentially the same thing was unnecessary.
135
222
 
136
- ## 0.22.0-alpha.1
223
+ Before:
137
224
 
138
- ### Minor Changes
225
+ ```typescript
226
+ // Two methods that did the same thing
227
+ memory.rememberMessages({ threadId, resourceId, config, vectorMessageSearch });
228
+ memory.query({ threadId, resourceId, perPage, vectorSearchString });
229
+ ```
139
230
 
140
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
231
+ After:
141
232
 
142
- ### Patch Changes
233
+ ```typescript
234
+ // Single unified method with clear purpose
235
+ memory.recall({ threadId, resourceId, perPage, vectorMessageSearch, threadConfig });
236
+ ```
143
237
 
144
- - Update provider registry and model documentation with latest models and providers ([`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec))
238
+ All usages have been updated across the codebase including tests. The agent now calls recall directly with the appropriate parameters.
145
239
 
146
- - Fix incorrect type assertions in Tool class. Created `MastraToolInvocationOptions` type to properly extend AI SDK's `ToolInvocationOptions` with Mastra-specific properties (`suspend`, `resumeData`, `writableStream`). Removed unsafe type assertions from tool execution code. ([#9033](https://github.com/mastra-ai/mastra/pull/9033))
240
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
147
241
 
148
- - Add support for external trace and parent span IDs in TracingOptions. This enables integration with external tracing systems by allowing new AI traces to be started with existing traceId and parentSpanId values. The implementation includes OpenTelemetry-compatible ID validation (32 hex chars for trace IDs, 16 hex chars for span IDs). ([#9053](https://github.com/mastra-ai/mastra/pull/9053))
242
+ - Implement listMessages API for replacing previous methods ([#9531](https://github.com/mastra-ai/mastra/pull/9531))
149
243
 
150
- - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
244
+ - Rename `defaultVNextStreamOptions` to `defaultOptions`. Add "Legacy" suffix to v1 option properties and methods (`defaultGenerateOptions` → `defaultGenerateOptionsLegacy`, `defaultStreamOptions` → `defaultStreamOptionsLegacy`). ([#9535](https://github.com/mastra-ai/mastra/pull/9535))
151
245
 
152
- - Fix tracing context propagation to agent steps in workflows ([#9074](https://github.com/mastra-ai/mastra/pull/9074))
246
+ - **Breaking Change**: Convert OUTPUT generic from `OutputSchema` constraint to plain generic ([#11741](https://github.com/mastra-ai/mastra/pull/11741))
153
247
 
154
- When creating a workflow step from an agent using `createStep(myAgent)`, the tracing context was not being passed to the agent's `stream()` and `streamLegacy()` methods. This caused tracing spans to break in the workflow chain.
248
+ This change removes the direct dependency on Zod typings in the public API by converting all `OUTPUT extends OutputSchema` generic constraints to plain `OUTPUT` generics throughout the codebase. This is preparation for moving to a standard schema approach.
249
+ - All generic type parameters previously constrained to `OutputSchema` (e.g., `<OUTPUT extends OutputSchema = undefined>`) are now plain generics with defaults (e.g., `<OUTPUT = undefined>`)
250
+ - Affects all public APIs including `Agent`, `MastraModelOutput`, `AgentExecutionOptions`, and stream/generate methods
251
+ - `InferSchemaOutput<OUTPUT>` replaced with `OUTPUT` throughout
252
+ - `PartialSchemaOutput<OUTPUT>` replaced with `Partial<OUTPUT>`
253
+ - Schema fields now use `NonNullable<OutputSchema<OUTPUT>>` instead of `OUTPUT` directly
254
+ - Added `FullOutput<OUTPUT>` type representing complete output with all fields
255
+ - Added `AgentExecutionOptionsBase<OUTPUT>` type
256
+ - `getFullOutput()` method now returns `Promise<FullOutput<OUTPUT>>`
257
+ - `Agent` class now generic: `Agent<TAgentId, TTools, TOutput>`
258
+ - `agent.generate()` and `agent.stream()` methods have updated signatures
259
+ - `MastraModelOutput<OUTPUT>` no longer requires `OutputSchema` constraint
260
+ - Network route and streaming APIs updated to use plain OUTPUT generic
155
261
 
156
- This fix ensures that `tracingContext` is properly propagated to both agent.stream() and agent.streamLegacy() calls, matching the behavior of tool steps which already propagate tracingContext correctly.
262
+ **Before:**
157
263
 
158
- - Fixes how reasoning chunks are stored in memory to prevent data loss and ensure they are consolidated as single message parts rather than split into word-level fragments. ([#9041](https://github.com/mastra-ai/mastra/pull/9041))
264
+ ```typescript
265
+ const output = await agent.generate<z.ZodType>([...], {
266
+ structuredOutput: { schema: mySchema }
267
+ });
159
268
 
160
- - fixes an issue where input processors couldn't add system or assistant messages. Previously all messages from input processors were forced to be user messages, causing an error when trying to add other role types. ([#8835](https://github.com/mastra-ai/mastra/pull/8835))
269
+ **After:**
270
+ const output = await agent.generate<z.infer<typeof mySchema>>([...], {
271
+ structuredOutput: { schema: mySchema }
272
+ });
273
+ // Or rely on type inference:
274
+ const output = await agent.generate([...], {
275
+ structuredOutput: { schema: mySchema }
276
+ });
161
277
 
162
- - Add `initialState` as an option to `.streamVNext()` ([#9071](https://github.com/mastra-ai/mastra/pull/9071))
278
+ ```
163
279
 
164
- - added resourceId and runId to workflow_run metadata in ai tracing ([#9031](https://github.com/mastra-ai/mastra/pull/9031))
280
+ - Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
165
281
 
166
- - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
282
+ - Remove `getMessagesById` method from storage interfaces in favor of `listMessagesById`. The new method only returns V2-format messages and removes the format parameter, simplifying the API surface. Users should migrate from `getMessagesById({ messageIds, format })` to `listMessagesById({ messageIds })`. ([#9534](https://github.com/mastra-ai/mastra/pull/9534))
167
283
 
168
- - Fix TypeScript type errors when using provider-defined tools from external AI SDK packages. ([#8940](https://github.com/mastra-ai/mastra/pull/8940))
284
+ - Experimental auth -> auth ([#9660](https://github.com/mastra-ai/mastra/pull/9660))
169
285
 
170
- Agents can now accept provider tools like `google.tools.googleSearch()` without type errors. Creates new `@internal/external-types` package to centralize AI SDK type re-exports and adds `ProviderDefinedTool` structural type to handle tools from different package versions/instances due to TypeScript's module path discrimination.
286
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
171
287
 
172
- - feat(ai-tracing): Add automatic metadata extraction from RuntimeContext to spans ([#9072](https://github.com/mastra-ai/mastra/pull/9072))
288
+ - Removed MastraMessageV3 intermediary format, now we go from MastraDBMessage->aiv5 formats and back directly ([#9094](https://github.com/mastra-ai/mastra/pull/9094))
173
289
 
174
- Enables automatic extraction of RuntimeContext values as metadata for AI tracing spans across entire traces.
290
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
175
291
 
176
- Key features:
177
- - Configure `runtimeContextKeys` in TracingConfig to extract specific keys from RuntimeContext
178
- - Add per-request keys via `tracingOptions.runtimeContextKeys` for trace-specific additions
179
- - Supports dot notation for nested values (e.g., 'user.id', 'session.data.experimentId')
180
- - TraceState computed once at root span and inherited by all child spans
181
- - Explicit metadata in span options takes precedence over extracted metadata
292
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
182
293
 
183
- Example:
294
+ **What's Changed**
295
+ - Removed legacy v1 watch event handlers and types
296
+ - Renamed `watch-v2` to `watch` throughout the codebase
297
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
298
+ - Removed `/watch` HTTP endpoints from server and deployer
299
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
184
300
 
185
- ```typescript
186
- const mastra = new Mastra({
187
- observability: {
188
- configs: {
189
- default: {
190
- runtimeContextKeys: ['userId', 'environment', 'tenantId'],
191
- },
192
- },
193
- },
194
- });
301
+ - Remove various deprecated APIs from agent class. ([#9257](https://github.com/mastra-ai/mastra/pull/9257))
302
+ - `agent.llm` → `agent.getLLM()`
303
+ - `agent.tools` → `agent.getTools()`
304
+ - `agent.instructions` → `agent.getInstructions()`
305
+ - `agent.speak()` → `agent.voice.speak()`
306
+ - `agent.getSpeakers()` → `agent.voice.getSpeakers()`
307
+ - `agent.listen` → `agent.voice.listen()`
308
+ - `agent.fetchMemory` → `(await agent.getMemory()).query()`
309
+ - `agent.toStep` → Add agent directly to the step, workflows handle the transformation
195
310
 
196
- await agent.generate({
197
- messages,
198
- runtimeContext,
199
- tracingOptions: {
200
- runtimeContextKeys: ['experimentId'], // Adds to configured keys
201
- },
202
- });
203
- ```
311
+ - Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
204
312
 
205
- - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
313
+ All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
206
314
 
207
- - Refactor workflowstream into workflow output with fullStream property ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
315
+ **Affected APIs:**
316
+ - `Memory.listThreadsByResourceId()`
317
+ - `Memory.listMessages()`
318
+ - `Storage.listWorkflowRuns()`
208
319
 
209
- - added tracing of LLM steps & chunks ([#9058](https://github.com/mastra-ai/mastra/pull/9058))
320
+ **Migration:**
210
321
 
211
- - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
322
+ ```typescript
323
+ // Before
324
+ await memory.listThreadsByResourceId({
325
+ resourceId: 'user-123',
326
+ offset: 20,
327
+ limit: 10,
328
+ });
212
329
 
213
- ## 0.21.2-alpha.0
330
+ // After
331
+ await memory.listThreadsByResourceId({
332
+ resourceId: 'user-123',
333
+ page: 2, // page = Math.floor(offset / limit)
334
+ perPage: 10,
335
+ });
214
336
 
215
- ### Patch Changes
337
+ // Before
338
+ await memory.listMessages({
339
+ threadId: 'thread-456',
340
+ offset: 20,
341
+ limit: 10,
342
+ });
216
343
 
217
- - Update provider registry and model documentation with latest models and providers ([`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac))
344
+ // After
345
+ await memory.listMessages({
346
+ threadId: 'thread-456',
347
+ page: 2,
348
+ perPage: 10,
349
+ });
218
350
 
219
- - Add deprecation warnings for format:ai-sdk ([#9018](https://github.com/mastra-ai/mastra/pull/9018))
351
+ // Before
352
+ await storage.listWorkflowRuns({
353
+ workflowName: 'my-workflow',
354
+ offset: 20,
355
+ limit: 10,
356
+ });
220
357
 
221
- - network routing agent text delta ai-sdk streaming ([#8979](https://github.com/mastra-ai/mastra/pull/8979))
358
+ // After
359
+ await storage.listWorkflowRuns({
360
+ workflowName: 'my-workflow',
361
+ page: 2,
362
+ perPage: 10,
363
+ });
364
+ ```
222
365
 
223
- - Support writing custom top level stream chunks ([#8922](https://github.com/mastra-ai/mastra/pull/8922))
366
+ **Additional improvements:**
367
+ - Added validation for negative `page` values in all storage implementations
368
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
369
+ - Added reusable query parser utilities for consistent validation in handlers
224
370
 
225
- - fix(core): Fix Gemini message ordering validation errors (#7287, #8053) ([#8069](https://github.com/mastra-ai/mastra/pull/8069))
371
+ - ```ts ([#9709](https://github.com/mastra-ai/mastra/pull/9709))
372
+ import { Mastra } from '@mastra/core';
373
+ import { Observability } from '@mastra/observability'; // Explicit import
226
374
 
227
- Fixes Gemini API "single turn requests" validation error by ensuring the first non-system message is from the user role. This resolves errors when:
228
- - Messages start with assistant role (e.g., from memory truncation)
229
- - Tool-call sequences begin with assistant messages
375
+ const mastra = new Mastra({
376
+ ...other_config,
377
+ observability: new Observability({
378
+ default: { enabled: true },
379
+ }), // Instance
380
+ });
381
+ ```
230
382
 
231
- **Breaking Change**: Empty or system-only message lists now throw an error instead of adding a placeholder user message, preventing confusing LLM responses.
383
+ Instead of:
232
384
 
233
- This fix handles both issue #7287 (tool-call ordering) and #8053 (single-turn validation) by inserting a placeholder user message when needed.
385
+ ```ts
386
+ import { Mastra } from '@mastra/core';
387
+ import '@mastra/observability/init'; // Explicit import
234
388
 
235
- - fix(core): Validate structured output at text-end instead of flush ([#8934](https://github.com/mastra-ai/mastra/pull/8934))
389
+ const mastra = new Mastra({
390
+ ...other_config,
391
+ observability: {
392
+ default: { enabled: true },
393
+ },
394
+ });
395
+ ```
236
396
 
237
- Fixes structured output validation for Bedrock and LMStudio by moving validation from `flush()` to `text-end` chunk. Eliminates `finishReason` heuristics, adds special token extraction for LMStudio, and validates at the correct point in stream lifecycle.
397
+ Also renamed a bunch of:
398
+ - `Tracing` things to `Observability` things.
399
+ - `AI-` things to just things.
238
400
 
239
- - fix model.loop.test.ts tests to use structuredOutput.schema and add assertions ([#8926](https://github.com/mastra-ai/mastra/pull/8926))
401
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
240
402
 
241
- - When using OpenAI models with JSON response format, automatically enable strict schema validation. ([#8924](https://github.com/mastra-ai/mastra/pull/8924))
403
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
242
404
 
243
- - Added the ability to use model router configs for embedders (eg "openai/text-embedding-ada-002") ([#8992](https://github.com/mastra-ai/mastra/pull/8992))
405
+ - Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
244
406
 
245
- - Always set supportsStructuredOutputs true for openai compatible provider. ([#8933](https://github.com/mastra-ai/mastra/pull/8933))
407
+ - Renamed MastraStorage to MastraCompositeStore for better clarity. The old MastraStorage name remains available as a deprecated alias for backward compatibility, but will be removed in a future version. ([#12093](https://github.com/mastra-ai/mastra/pull/12093))
246
408
 
247
- - Support for custom resume labels mapping to step to be resumed ([#8941](https://github.com/mastra-ai/mastra/pull/8941))
409
+ **Migration:**
248
410
 
249
- - Fixed an issue where a custom URL in model router still validated unknown providers against the known providers list. Custom URL means we don't necessarily know the provider. This allows local providers like Ollama to work properly ([#8989](https://github.com/mastra-ai/mastra/pull/8989))
411
+ Update your imports and usage:
250
412
 
251
- - feat: inject schema context into main agent for processor mode structured output ([#8886](https://github.com/mastra-ai/mastra/pull/8886))
413
+ ```typescript
414
+ // Before
415
+ import { MastraStorage } from '@mastra/core/storage';
252
416
 
253
- - Added providerOptions types to generate/stream for main builtin model router providers (openai/anthropic/google/xai) ([#8995](https://github.com/mastra-ai/mastra/pull/8995))
417
+ const storage = new MastraStorage({
418
+ id: 'composite',
419
+ domains: { ... }
420
+ });
254
421
 
255
- - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
422
+ // After
423
+ import { MastraCompositeStore } from '@mastra/core/storage';
256
424
 
257
- ## 0.21.1
425
+ const storage = new MastraCompositeStore({
426
+ id: 'composite',
427
+ domains: { ... }
428
+ });
429
+ ```
258
430
 
259
- ### Patch Changes
431
+ The new name better reflects that this is a composite storage implementation that routes different domains (workflows, traces, messages) to different underlying stores, avoiding confusion with the general "Mastra Storage" concept.
260
432
 
261
- - Update provider registry with latest models and providers ([`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a))
433
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
262
434
 
263
- - Update provider registry and model documentation with latest models and providers ([`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2))
435
+ - Changed `.branch()` result schema to make all branch output fields optional. ([#10693](https://github.com/mastra-ai/mastra/pull/10693))
264
436
 
265
- - Ability to call agents as tools with .generate()/.stream() ([#8863](https://github.com/mastra-ai/mastra/pull/8863))
437
+ **Breaking change**: Branch outputs are now optional since only one branch executes at runtime. Update your workflow schemas to handle optional branch results.
266
438
 
267
- - Add runId to `agent-execution-event-{string}` and `workflow-execution-event-{string}` event streamed in network ([#8862](https://github.com/mastra-ai/mastra/pull/8862))
439
+ **Before:**
268
440
 
269
- ## 0.21.1-alpha.0
441
+ ```typescript
442
+ const workflow = createWorkflow({...})
443
+ .branch([
444
+ [condition1, stepA], // outputSchema: { result: z.string() }
445
+ [condition2, stepB], // outputSchema: { data: z.number() }
446
+ ])
447
+ .map({
448
+ finalResult: { step: stepA, path: 'result' } // Expected non-optional
449
+ });
450
+ ```
270
451
 
271
- ### Patch Changes
452
+ **After:**
272
453
 
273
- - Update provider registry with latest models and providers ([`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a))
454
+ ```typescript
455
+ const workflow = createWorkflow({...})
456
+ .branch([
457
+ [condition1, stepA],
458
+ [condition2, stepB],
459
+ ])
460
+ .map({
461
+ finalResult: {
462
+ step: stepA,
463
+ path: 'result' // Now optional - provide fallback
464
+ }
465
+ });
466
+ ```
274
467
 
275
- - Update provider registry and model documentation with latest models and providers ([`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2))
468
+ **Why**: Branch conditionals execute only one path, so non-executed branches don't produce outputs. The type system now correctly reflects this runtime behavior.
276
469
 
277
- - Ability to call agents as tools with .generate()/.stream() ([#8863](https://github.com/mastra-ai/mastra/pull/8863))
470
+ Related issue: https://github.com/mastra-ai/mastra/issues/10642
278
471
 
279
- - Add runId to `agent-execution-event-{string}` and `workflow-execution-event-{string}` event streamed in network ([#8862](https://github.com/mastra-ai/mastra/pull/8862))
472
+ - Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
280
473
 
281
- ## 0.21.0
474
+ - **Breaking Changes:** ([#9045](https://github.com/mastra-ai/mastra/pull/9045))
475
+ - Moved `generateTitle` from `threads.generateTitle` to top-level memory option
476
+ - Changed default value from `true` to `false`
477
+ - Using `threads.generateTitle` now throws an error
282
478
 
283
- ### Minor Changes
479
+ **Migration:**
480
+ Replace `threads: { generateTitle: true }` with `generateTitle: true` at the top level of memory options.
284
481
 
285
- - Standardize model configuration across all Mastra components ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
482
+ **Playground:**
483
+ The playground UI now displays thread IDs instead of "Chat from" when titles aren't generated.
286
484
 
287
- All model configuration points now accept the same flexible `MastraModelConfig` type as the `Agent` class:
288
- - **Scorers**: Judge models now support magic strings, config objects, and dynamic functions
289
- - **Input/Output Processors**: ModerationProcessor and PIIDetector accept flexible model configs
290
- - **Relevance Scorers**: MastraAgentRelevanceScorer supports all model config types
485
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
486
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
291
487
 
292
- This change provides:
293
- - Consistent API across all components
294
- - Support for magic strings (e.g., `"openai/gpt-4o"`)
295
- - Support for OpenAI-compatible configs with custom URLs
296
- - Support for dynamic model resolution functions
297
- - Full backward compatibility with existing code
488
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
298
489
 
299
- Example:
490
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
300
491
 
492
+ - Use tool's outputSchema to validate results and return an error object if schema does not match output results. ([#9664](https://github.com/mastra-ai/mastra/pull/9664))
301
493
 
302
- ... 4512 more lines hidden. See full changelog in package directory.
494
+ ```typescript
495
+ const getUserTool = createTool({
496
+ id: 'get-user',
497
+ outputSchema: z.object({
498
+ id: z.string(),
499
+ name: z.string(),
500
+ email: z.string().email(),
501
+
502
+ ... 11704 more lines hidden. See full changelog in package directory.