@mastra/mcp-docs-server 1.3.10-alpha.6 → 1.3.10-alpha.7

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 (409) 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/deployment/mastra-server.md +2 -0
  6. package/.docs/docs/deployment/monorepo.md +2 -0
  7. package/.docs/docs/evals/overview.md +2 -0
  8. package/.docs/docs/harness/background-tasks.md +4 -0
  9. package/.docs/docs/harness/durable-agents.md +5 -0
  10. package/.docs/docs/harness/goals.md +2 -0
  11. package/.docs/docs/harness/schedules.md +3 -0
  12. package/.docs/docs/mastra-platform/connect/providers.md +27 -26
  13. package/.docs/docs/mastra-platform/deploy.md +2 -0
  14. package/.docs/docs/mastra-platform/system-environment-variables.md +3 -0
  15. package/.docs/docs/mastra-platform/workspaces.md +1 -1
  16. package/.docs/docs/memory/message-history.md +3 -0
  17. package/.docs/docs/memory/observational-memory.md +10 -0
  18. package/.docs/docs/memory/overview.md +6 -0
  19. package/.docs/docs/memory/semantic-recall.md +5 -1
  20. package/.docs/docs/observability/logging.md +3 -0
  21. package/.docs/docs/observability/tracing/overview.md +16 -0
  22. package/.docs/docs/sandbox/search.md +11 -0
  23. package/.docs/docs/server/custom-adapters.md +53 -1
  24. package/.docs/docs/server/custom-api-routes.md +2 -0
  25. package/.docs/docs/server/request-context.md +6 -0
  26. package/.docs/docs/subagents.md +7 -1
  27. package/.docs/docs/workflows/agents-and-tools.md +10 -0
  28. package/.docs/docs/workflows/control-flow.md +57 -0
  29. package/.docs/docs/workflows/human-in-the-loop.md +3 -0
  30. package/.docs/docs/workflows/overview.md +9 -1
  31. package/.docs/docs/workflows/scheduled-workflows.md +4 -0
  32. package/.docs/docs/workflows/suspend-and-resume.md +6 -0
  33. package/.docs/docs/workflows/workflow-state.md +12 -0
  34. package/.docs/integrations/agentic-ui/copilotkit.md +2 -0
  35. package/.docs/integrations/auth/better-auth.md +2 -0
  36. package/.docs/integrations/auth/google.md +2 -0
  37. package/.docs/integrations/auth/okta.md +2 -0
  38. package/.docs/integrations/databases/aurora-dsql.md +2 -2
  39. package/.docs/integrations/databases/dynamodb.md +4 -4
  40. package/.docs/integrations/databases/postgresql.md +4 -4
  41. package/.docs/integrations/deploy/inngest.md +1 -0
  42. package/.docs/integrations/file-storage/archil.md +3 -3
  43. package/.docs/integrations/file-storage/mesa.md +1 -1
  44. package/.docs/integrations/observability/datadog.md +5 -0
  45. package/.docs/integrations/observability/langsmith.md +33 -0
  46. package/.docs/integrations/observability/sentry.md +22 -22
  47. package/.docs/integrations/sandboxes/cloudflare-sandbox.md +1 -1
  48. package/.docs/integrations/sandboxes/daytona.md +3 -3
  49. package/.docs/integrations/sandboxes/docker.md +1 -1
  50. package/.docs/integrations/sandboxes/e2b.md +5 -5
  51. package/.docs/integrations/sandboxes/modal.md +3 -3
  52. package/.docs/integrations/sandboxes/railway.md +3 -3
  53. package/.docs/integrations/sandboxes/vercel.md +4 -4
  54. package/.docs/integrations/tools/brightdata.md +1 -1
  55. package/.docs/integrations/tools/parallel.md +3 -3
  56. package/.docs/integrations/tools/perplexity.md +1 -1
  57. package/.docs/integrations/tools/tavily.md +1 -1
  58. package/.docs/integrations/voice/azure.md +4 -4
  59. package/.docs/integrations/voice/cloudflare.md +3 -3
  60. package/.docs/integrations/voice/deepgram.md +2 -2
  61. package/.docs/integrations/voice/elevenlabs.md +4 -4
  62. package/.docs/integrations/voice/gladia.md +10 -10
  63. package/.docs/integrations/voice/google.md +11 -11
  64. package/.docs/integrations/voice/inworld.md +23 -23
  65. package/.docs/integrations/voice/livekit.md +9 -6
  66. package/.docs/integrations/voice/mistral.md +2 -2
  67. package/.docs/integrations/voice/modelslab.md +1 -1
  68. package/.docs/integrations/voice/murf.md +1 -1
  69. package/.docs/integrations/voice/openai.md +5 -5
  70. package/.docs/integrations/voice/sarvam.md +6 -6
  71. package/.docs/integrations/voice/speechify.md +4 -4
  72. package/.docs/integrations/voice/xai.md +3 -3
  73. package/.docs/models/gateways/netlify.md +2 -4
  74. package/.docs/models/gateways/openrouter.md +1 -2
  75. package/.docs/models/index.md +7 -1
  76. package/.docs/models/providers/302ai.md +4 -0
  77. package/.docs/models/providers/abacus.md +4 -0
  78. package/.docs/models/providers/abliteration-ai.md +4 -0
  79. package/.docs/models/providers/above.md +4 -0
  80. package/.docs/models/providers/agentrouter.md +4 -0
  81. package/.docs/models/providers/agnes.md +4 -0
  82. package/.docs/models/providers/ai-router.md +4 -0
  83. package/.docs/models/providers/ai21.md +4 -0
  84. package/.docs/models/providers/aiand.md +8 -7
  85. package/.docs/models/providers/aimlapi.md +7 -10
  86. package/.docs/models/providers/ainetcafe.md +4 -0
  87. package/.docs/models/providers/aixy.md +4 -0
  88. package/.docs/models/providers/aki-io.md +4 -0
  89. package/.docs/models/providers/alibaba-cn.md +4 -0
  90. package/.docs/models/providers/alibaba-coding-plan-cn.md +4 -0
  91. package/.docs/models/providers/alibaba-coding-plan.md +4 -0
  92. package/.docs/models/providers/alibaba-token-plan-cn.md +4 -0
  93. package/.docs/models/providers/alibaba-token-plan.md +4 -0
  94. package/.docs/models/providers/alibaba.md +4 -0
  95. package/.docs/models/providers/ambient.md +4 -0
  96. package/.docs/models/providers/amd.md +4 -0
  97. package/.docs/models/providers/anthropic.md +4 -0
  98. package/.docs/models/providers/anyapi.md +4 -0
  99. package/.docs/models/providers/arcee.md +4 -0
  100. package/.docs/models/providers/atomic-chat.md +4 -0
  101. package/.docs/models/providers/auriko.md +4 -0
  102. package/.docs/models/providers/bailing.md +4 -0
  103. package/.docs/models/providers/baseten.md +4 -0
  104. package/.docs/models/providers/bee.md +4 -0
  105. package/.docs/models/providers/berget.md +4 -0
  106. package/.docs/models/providers/blueclaw.md +4 -0
  107. package/.docs/models/providers/bothub.md +4 -0
  108. package/.docs/models/providers/boundless.md +4 -0
  109. package/.docs/models/providers/cerebras.md +4 -0
  110. package/.docs/models/providers/chutes.md +16 -11
  111. package/.docs/models/providers/clarifai.md +4 -0
  112. package/.docs/models/providers/claudinio.md +4 -0
  113. package/.docs/models/providers/cline-pass.md +4 -0
  114. package/.docs/models/providers/cloudferro-sherlock.md +4 -0
  115. package/.docs/models/providers/cloudflare-workers-ai.md +4 -0
  116. package/.docs/models/providers/commandcode.md +4 -0
  117. package/.docs/models/providers/coralbricks.md +4 -0
  118. package/.docs/models/providers/cortecs.md +4 -0
  119. package/.docs/models/providers/crof.md +4 -0
  120. package/.docs/models/providers/crossmodel.md +4 -0
  121. package/.docs/models/providers/crusoe.md +4 -0
  122. package/.docs/models/providers/daoxe.md +4 -0
  123. package/.docs/models/providers/databricks.md +4 -0
  124. package/.docs/models/providers/deepinfra.md +4 -0
  125. package/.docs/models/providers/deepseek.md +4 -0
  126. package/.docs/models/providers/digitalocean.md +4 -0
  127. package/.docs/models/providers/dinference.md +4 -0
  128. package/.docs/models/providers/drun.md +4 -0
  129. package/.docs/models/providers/ebcloud.md +4 -0
  130. package/.docs/models/providers/echo.md +4 -0
  131. package/.docs/models/providers/edenai.md +9 -8
  132. package/.docs/models/providers/empiriolabs.md +4 -0
  133. package/.docs/models/providers/engy.md +4 -0
  134. package/.docs/models/providers/evroc.md +4 -0
  135. package/.docs/models/providers/fastrouter.md +4 -0
  136. package/.docs/models/providers/firepass.md +4 -0
  137. package/.docs/models/providers/fireworks-ai.md +4 -0
  138. package/.docs/models/providers/firmware.md +4 -0
  139. package/.docs/models/providers/freemodel.md +4 -0
  140. package/.docs/models/providers/friendli.md +4 -0
  141. package/.docs/models/providers/frogbot.md +4 -0
  142. package/.docs/models/providers/github-models.md +4 -0
  143. package/.docs/models/providers/gmicloud.md +4 -0
  144. package/.docs/models/providers/google.md +4 -0
  145. package/.docs/models/providers/greenpt.md +4 -0
  146. package/.docs/models/providers/groq.md +4 -0
  147. package/.docs/models/providers/helicone.md +4 -0
  148. package/.docs/models/providers/hetzner.md +4 -0
  149. package/.docs/models/providers/hpc-ai.md +4 -0
  150. package/.docs/models/providers/huggingface.md +4 -0
  151. package/.docs/models/providers/hyper.md +4 -0
  152. package/.docs/models/providers/iflowcn.md +4 -0
  153. package/.docs/models/providers/impossibl.md +4 -0
  154. package/.docs/models/providers/inception.md +4 -0
  155. package/.docs/models/providers/inceptron.md +9 -5
  156. package/.docs/models/providers/inco.md +4 -0
  157. package/.docs/models/providers/infer.md +4 -0
  158. package/.docs/models/providers/inference.md +4 -0
  159. package/.docs/models/providers/inferx.md +4 -0
  160. package/.docs/models/providers/infomaniak.md +4 -0
  161. package/.docs/models/providers/io-net.md +4 -0
  162. package/.docs/models/providers/iteracompute.md +4 -0
  163. package/.docs/models/providers/jalapeno.md +4 -0
  164. package/.docs/models/providers/jiekou.md +4 -0
  165. package/.docs/models/providers/kenari.md +4 -0
  166. package/.docs/models/providers/kilo.md +13 -10
  167. package/.docs/models/providers/kimi-code-plan-cn.md +4 -0
  168. package/.docs/models/providers/kimi-code-plan-global.md +4 -0
  169. package/.docs/models/providers/kimi-for-coding.md +4 -0
  170. package/.docs/models/providers/kiro.md +4 -0
  171. package/.docs/models/providers/klokintegration.md +4 -0
  172. package/.docs/models/providers/kosmik.md +4 -0
  173. package/.docs/models/providers/kuae-cloud-coding-plan.md +4 -0
  174. package/.docs/models/providers/lilac.md +4 -0
  175. package/.docs/models/providers/liquid.md +4 -0
  176. package/.docs/models/providers/llama.md +4 -0
  177. package/.docs/models/providers/llmgateway-providers.md +4 -0
  178. package/.docs/models/providers/llmgateway.md +4 -0
  179. package/.docs/models/providers/llmtech.md +4 -0
  180. package/.docs/models/providers/llmtr.md +4 -0
  181. package/.docs/models/providers/lmstudio.md +4 -0
  182. package/.docs/models/providers/longcat.md +4 -0
  183. package/.docs/models/providers/lowrouter.md +4 -0
  184. package/.docs/models/providers/lucidquery.md +4 -0
  185. package/.docs/models/providers/lynkr.md +4 -0
  186. package/.docs/models/providers/meganova.md +4 -0
  187. package/.docs/models/providers/melious.md +4 -0
  188. package/.docs/models/providers/meta.md +4 -0
  189. package/.docs/models/providers/minimax-cn-coding-plan.md +4 -0
  190. package/.docs/models/providers/minimax-cn.md +4 -0
  191. package/.docs/models/providers/minimax-coding-plan.md +4 -0
  192. package/.docs/models/providers/minimax.md +4 -0
  193. package/.docs/models/providers/mistral.md +4 -0
  194. package/.docs/models/providers/mixlayer.md +4 -0
  195. package/.docs/models/providers/moark.md +4 -0
  196. package/.docs/models/providers/modal.md +4 -0
  197. package/.docs/models/providers/model-oracle-ai.md +4 -0
  198. package/.docs/models/providers/modelis.md +4 -0
  199. package/.docs/models/providers/modelscope.md +4 -0
  200. package/.docs/models/providers/moonshotai-cn.md +4 -0
  201. package/.docs/models/providers/moonshotai.md +4 -0
  202. package/.docs/models/providers/morph.md +18 -6
  203. package/.docs/models/providers/munito-eu.md +4 -0
  204. package/.docs/models/providers/munito.md +4 -0
  205. package/.docs/models/providers/nan.md +4 -0
  206. package/.docs/models/providers/nano-gpt.md +22 -18
  207. package/.docs/models/providers/nearai.md +5 -2
  208. package/.docs/models/providers/nebius.md +4 -0
  209. package/.docs/models/providers/neosmith.md +4 -0
  210. package/.docs/models/providers/neuralwatt.md +4 -0
  211. package/.docs/models/providers/nova.md +4 -0
  212. package/.docs/models/providers/novita-ai.md +4 -0
  213. package/.docs/models/providers/nvidia.md +4 -0
  214. package/.docs/models/providers/oci.md +4 -0
  215. package/.docs/models/providers/ofox.md +4 -0
  216. package/.docs/models/providers/ollama-cloud.md +4 -0
  217. package/.docs/models/providers/openai.md +4 -0
  218. package/.docs/models/providers/opencode-go.md +4 -0
  219. package/.docs/models/providers/opencode.md +4 -1
  220. package/.docs/models/providers/openreason.md +4 -0
  221. package/.docs/models/providers/opper.md +4 -0
  222. package/.docs/models/providers/orcarouter.md +4 -0
  223. package/.docs/models/providers/ovhcloud.md +4 -0
  224. package/.docs/models/providers/pareto.md +4 -0
  225. package/.docs/models/providers/pendra.md +4 -0
  226. package/.docs/models/providers/perplexity-agent.md +4 -0
  227. package/.docs/models/providers/perplexity.md +4 -0
  228. package/.docs/models/providers/pioneer.md +4 -0
  229. package/.docs/models/providers/poe.md +4 -0
  230. package/.docs/models/providers/poolside.md +4 -0
  231. package/.docs/models/providers/prime.md +4 -0
  232. package/.docs/models/providers/privatemode-ai.md +4 -0
  233. package/.docs/models/providers/qihang-ai.md +4 -0
  234. package/.docs/models/providers/qiniu-ai.md +4 -0
  235. package/.docs/models/providers/reflection.md +4 -0
  236. package/.docs/models/providers/regolo-ai.md +4 -0
  237. package/.docs/models/providers/requesty.md +6 -1
  238. package/.docs/models/providers/routing-run.md +4 -0
  239. package/.docs/models/providers/runinfra.md +4 -0
  240. package/.docs/models/providers/sakana.md +4 -0
  241. package/.docs/models/providers/sambanova.md +4 -0
  242. package/.docs/models/providers/sarvam.md +4 -0
  243. package/.docs/models/providers/scaleway.md +4 -0
  244. package/.docs/models/providers/scnet-token-plan.md +4 -0
  245. package/.docs/models/providers/scx-ai.md +4 -0
  246. package/.docs/models/providers/scx.md +4 -0
  247. package/.docs/models/providers/sensenova.md +4 -0
  248. package/.docs/models/providers/siliconflow-cn.md +4 -0
  249. package/.docs/models/providers/siliconflow.md +4 -0
  250. package/.docs/models/providers/snowflake-cortex.md +4 -0
  251. package/.docs/models/providers/stackit.md +4 -0
  252. package/.docs/models/providers/standardcompute.md +4 -0
  253. package/.docs/models/providers/stepfun-ai-step-plan.md +4 -0
  254. package/.docs/models/providers/stepfun-ai.md +4 -0
  255. package/.docs/models/providers/stepfun-step-plan.md +4 -0
  256. package/.docs/models/providers/stepfun.md +4 -0
  257. package/.docs/models/providers/subconscious.md +4 -0
  258. package/.docs/models/providers/submodel.md +4 -0
  259. package/.docs/models/providers/synthetic.md +4 -0
  260. package/.docs/models/providers/tempr.md +4 -0
  261. package/.docs/models/providers/tencent-coding-plan.md +4 -0
  262. package/.docs/models/providers/tencent-token-plan.md +4 -0
  263. package/.docs/models/providers/tencent-tokenhub.md +4 -0
  264. package/.docs/models/providers/tensorx.md +4 -0
  265. package/.docs/models/providers/the-grid-ai.md +4 -0
  266. package/.docs/models/providers/thinkingmachines.md +4 -0
  267. package/.docs/models/providers/tinfoil.md +4 -0
  268. package/.docs/models/providers/togetherai.md +4 -0
  269. package/.docs/models/providers/tokengo.md +4 -0
  270. package/.docs/models/providers/tokenrouter.md +4 -0
  271. package/.docs/models/providers/trustedrouter.md +4 -0
  272. package/.docs/models/providers/umans-ai-coding-plan.md +4 -0
  273. package/.docs/models/providers/umans-ai.md +4 -0
  274. package/.docs/models/providers/unorouter.md +4 -0
  275. package/.docs/models/providers/upstage.md +4 -0
  276. package/.docs/models/providers/vancine.md +4 -0
  277. package/.docs/models/providers/vispark.md +4 -0
  278. package/.docs/models/providers/vivgrid.md +4 -0
  279. package/.docs/models/providers/volcengine-coding-plan.md +4 -0
  280. package/.docs/models/providers/volcengine.md +4 -0
  281. package/.docs/models/providers/vultr.md +4 -0
  282. package/.docs/models/providers/wafer.ai.md +4 -0
  283. package/.docs/models/providers/wallaby.md +4 -0
  284. package/.docs/models/providers/wandb.md +7 -3
  285. package/.docs/models/providers/xai.md +4 -0
  286. package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -0
  287. package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -0
  288. package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -0
  289. package/.docs/models/providers/xiaomi.md +4 -0
  290. package/.docs/models/providers/xpersona.md +4 -0
  291. package/.docs/models/providers/zai-coding-plan.md +4 -0
  292. package/.docs/models/providers/zai.md +4 -0
  293. package/.docs/models/providers/zeldoc.md +4 -0
  294. package/.docs/models/providers/zenifra.md +4 -0
  295. package/.docs/models/providers/zenmux.md +4 -0
  296. package/.docs/models/providers/zhipuai-coding-plan.md +4 -0
  297. package/.docs/models/providers/zhipuai.md +4 -0
  298. package/.docs/reference/acp/acp-agent.md +1 -1
  299. package/.docs/reference/acp/create-acp-tool.md +1 -1
  300. package/.docs/reference/agent-controller/agent-controller-class.md +1 -1
  301. package/.docs/reference/agents/agent.md +3 -1
  302. package/.docs/reference/agents/channels.md +20 -3
  303. package/.docs/reference/agents/createSkill.md +1 -1
  304. package/.docs/reference/agents/durable-agent.md +1 -1
  305. package/.docs/reference/agents/generate.md +4 -1
  306. package/.docs/reference/agents/generateLegacy.md +2 -2
  307. package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +1 -1
  308. package/.docs/reference/auth/auth0.md +2 -2
  309. package/.docs/reference/auth/better-auth.md +7 -3
  310. package/.docs/reference/auth/clerk.md +1 -1
  311. package/.docs/reference/auth/firebase.md +4 -4
  312. package/.docs/reference/auth/google.md +6 -6
  313. package/.docs/reference/auth/jwt.md +1 -1
  314. package/.docs/reference/auth/neon.md +6 -6
  315. package/.docs/reference/auth/okta.md +9 -8
  316. package/.docs/reference/auth/workos.md +3 -3
  317. package/.docs/reference/browser/agent-browser.md +1 -1
  318. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  319. package/.docs/reference/browser/stagehand-browser.md +1 -1
  320. package/.docs/reference/channels/slack-provider.md +2 -2
  321. package/.docs/reference/channels/teams-provider.md +2 -2
  322. package/.docs/reference/channels/telegram-provider.md +2 -2
  323. package/.docs/reference/client-js/agent-controller.md +3 -0
  324. package/.docs/reference/client-js/agents.md +2 -0
  325. package/.docs/reference/client-js/conversations.md +3 -3
  326. package/.docs/reference/client-js/responses.md +4 -4
  327. package/.docs/reference/client-js/workflows.md +2 -0
  328. package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
  329. package/.docs/reference/coding-agent/create-coding-agent.md +1 -1
  330. package/.docs/reference/connect/channels.md +1 -1
  331. package/.docs/reference/connect/providers.md +166 -112
  332. package/.docs/reference/connect/tools.md +9 -9
  333. package/.docs/reference/core/mastra-class.md +4 -2
  334. package/.docs/reference/core/mastra-model-gateway.md +1 -1
  335. package/.docs/reference/datasets/startExperiment.md +2 -2
  336. package/.docs/reference/deployer.md +6 -3
  337. package/.docs/reference/editor/blob-store-provider.md +2 -2
  338. package/.docs/reference/editor/tool-provider.md +1 -1
  339. package/.docs/reference/evals/answer-relevancy.md +2 -2
  340. package/.docs/reference/evals/answer-similarity.md +4 -2
  341. package/.docs/reference/evals/bias.md +2 -2
  342. package/.docs/reference/evals/content-similarity.md +2 -2
  343. package/.docs/reference/evals/hallucination.md +3 -3
  344. package/.docs/reference/evals/noise-sensitivity.md +1 -1
  345. package/.docs/reference/evals/prompt-alignment.md +10 -9
  346. package/.docs/reference/evals/scorer-utils.md +6 -4
  347. package/.docs/reference/evals/tone-consistency.md +5 -5
  348. package/.docs/reference/evals/tool-call-accuracy.md +4 -4
  349. package/.docs/reference/evals/trajectory-accuracy.md +1 -1
  350. package/.docs/reference/file-based-agents/schedules.md +1 -1
  351. package/.docs/reference/logging/pino-logger.md +1 -1
  352. package/.docs/reference/memory/memory-class.md +2 -2
  353. package/.docs/reference/memory/observational-memory.md +10 -10
  354. package/.docs/reference/memory/summarizeConversation.md +1 -1
  355. package/.docs/reference/memory/summarizeThread.md +1 -1
  356. package/.docs/reference/migrations/upgrade-to-v1/storage.md +1 -1
  357. package/.docs/reference/migrations/upgrade-to-v1/tools.md +7 -1
  358. package/.docs/reference/migrations/vnext-to-standard-apis.md +1 -1
  359. package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
  360. package/.docs/reference/observability/tracing/exporters/console-exporter.md +3 -3
  361. package/.docs/reference/observability/tracing/exporters/default-exporter.md +1 -1
  362. package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -0
  363. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +1 -1
  364. package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
  365. package/.docs/reference/processors/batch-parts-processor.md +1 -1
  366. package/.docs/reference/processors/file-upload-processor.md +4 -4
  367. package/.docs/reference/processors/processor-interface.md +4 -4
  368. package/.docs/reference/processors/response-cache.md +1 -1
  369. package/.docs/reference/processors/tool-search-processor.md +2 -2
  370. package/.docs/reference/processors/unicode-normalizer.md +1 -1
  371. package/.docs/reference/rag/chunking-and-embedding.md +1 -1
  372. package/.docs/reference/rag/database-config.md +20 -15
  373. package/.docs/reference/rag/extract-params.md +2 -2
  374. package/.docs/reference/rag/retrieval.md +11 -0
  375. package/.docs/reference/schedules/overview.md +1 -1
  376. package/.docs/reference/server/koa-adapter.md +2 -0
  377. package/.docs/reference/storage/overview.md +4 -4
  378. package/.docs/reference/streaming/agents/MastraModelOutput.md +3 -3
  379. package/.docs/reference/streaming/agents/stream.md +1 -1
  380. package/.docs/reference/streaming/agents/streamLegacy.md +1 -1
  381. package/.docs/reference/tools/ask-user-tool.md +1 -1
  382. package/.docs/reference/tools/bedrock-kb-tool.md +2 -2
  383. package/.docs/reference/tools/create-code-mode.md +1 -1
  384. package/.docs/reference/tools/mcp-client.md +5 -5
  385. package/.docs/reference/tools/mcp-server.md +2 -2
  386. package/.docs/reference/tools/task-tools.md +3 -1
  387. package/.docs/reference/tools/vector-query-tool.md +1 -0
  388. package/.docs/reference/vectors/astra.md +1 -1
  389. package/.docs/reference/vectors/azure-ai-search.md +1 -1
  390. package/.docs/reference/vectors/chroma.md +2 -2
  391. package/.docs/reference/vectors/mongodb.md +1 -1
  392. package/.docs/reference/vectors/pg.md +1 -1
  393. package/.docs/reference/voice/voice.speak.md +1 -1
  394. package/.docs/reference/voice/voice.updateConfig.md +1 -1
  395. package/.docs/reference/workflows/step.md +4 -0
  396. package/.docs/reference/workflows/workflow-methods/agent.md +2 -0
  397. package/.docs/reference/workflows/workflow-methods/classifier.md +5 -0
  398. package/.docs/reference/workflows/workflow-methods/map.md +2 -0
  399. package/.docs/reference/workflows/workflow.md +2 -2
  400. package/.docs/reference/workspace/factory-sandbox.md +11 -2
  401. package/.docs/reference/workspace/filesystem.md +2 -2
  402. package/.docs/reference/workspace/platform-filesystem.md +3 -3
  403. package/.docs/reference/workspace/platform-sandbox.md +6 -6
  404. package/.docs/reference/workspace/workspace-class.md +1 -1
  405. package/dist/index.js +1 -1
  406. package/dist/{src-DnH_jHt9.js → src-Cv7bX2-6.js} +10 -19
  407. package/dist/{src-DnH_jHt9.js.map → src-Cv7bX2-6.js.map} +1 -1
  408. package/dist/stdio.js +2 -3
  409. package/package.json +9 -9
@@ -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({
@@ -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
 
@@ -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
@@ -55,7 +55,7 @@ type TracingStorageStrategy = 'realtime' | 'batch-with-updates' | 'insert-only'
55
55
 
56
56
  - **realtime**: Immediately persists each event to storage
57
57
  - **batch-with-updates**: Batches creates and updates separately, applies in order
58
- - **insert-only**: Only processes SPAN\_ENDED events, ignores updates
58
+ - **insert-only**: Only processes SPAN_ENDED events, ignores updates
59
59
 
60
60
  ## Properties
61
61
 
@@ -86,6 +86,14 @@ const exporter = new LangSmithExporter({
86
86
  | `PROVIDER_TOOL_CALL` | `tool` |
87
87
  | All others | `chain` |
88
88
 
89
+ ## `langsmithRunIdFor`
90
+
91
+ ```typescript
92
+ function langsmithRunIdFor(spanId: string): string
93
+ ```
94
+
95
+ Returns the LangSmith run id the exporter uses for a Mastra span id. Scores submitted with `mastra.observability.addScore()` are attached to these runs as feedback, so no in-process state is needed.
96
+
89
97
  ## `withLangsmithMetadata`
90
98
 
91
99
  Helper function to add LangSmith-specific metadata to tracing options.
@@ -53,7 +53,7 @@ type TracingStorageStrategy = 'realtime' | 'batch-with-updates' | 'insert-only'
53
53
 
54
54
  - **realtime**: Immediately persists each event to storage
55
55
  - **batch-with-updates**: Batches creates and updates separately, applies in order
56
- - **insert-only**: Only processes SPAN\_ENDED events, ignores updates
56
+ - **insert-only**: Only processes SPAN_ENDED events, ignores updates
57
57
 
58
58
  ## Properties
59
59
 
@@ -37,7 +37,7 @@ Extends `BaseExporterConfig`, which includes:
37
37
  async exportTracingEvent(event: TracingEvent): Promise<void>
38
38
  ```
39
39
 
40
- Exports a tracing event to Sentry. Handles SPAN\_STARTED, SPAN\_UPDATED, and SPAN\_ENDED events.
40
+ Exports a tracing event to Sentry. Handles SPAN_STARTED, SPAN_UPDATED, and SPAN_ENDED events.
41
41
 
42
42
  ### flush
43
43
 
@@ -131,7 +131,7 @@ Mastra span types are mapped to Sentry operations:
131
131
  | `PROCESSOR_RUN` | `ai.processor` |
132
132
  | `GENERIC` | `ai.span` |
133
133
 
134
- MODEL\_STEP and MODEL\_CHUNK spans are skipped to simplify trace hierarchy. Their data is aggregated into MODEL\_GENERATION spans.
134
+ MODEL_STEP and MODEL_CHUNK spans are skipped to simplify trace hierarchy. Their data is aggregated into MODEL_GENERATION spans.
135
135
 
136
136
  ## Environment variables
137
137
 
@@ -153,7 +153,7 @@ The exporter sets these standard OpenTelemetry attributes:
153
153
  - `ai.span.type`: Mastra span type
154
154
  - `gen_ai.conversation.id`: Chat thread identifier, set from `metadata.threadId` to group spans in Sentry's Conversations view
155
155
 
156
- **MODEL\_GENERATION spans:**
156
+ **MODEL_GENERATION spans:**
157
157
 
158
158
  - `gen_ai.operation.name`: `chat`
159
159
  - `gen_ai.system`: Model provider
@@ -169,7 +169,7 @@ The exporter sets these standard OpenTelemetry attributes:
169
169
  - `gen_ai.request.temperature`: Temperature parameter
170
170
  - `gen_ai.completion_start_time`: First token time
171
171
 
172
- **TOOL\_CALL spans:**
172
+ **TOOL_CALL spans:**
173
173
 
174
174
  - `gen_ai.operation.name`: `execute_tool`
175
175
  - `gen_ai.tool.name`: Tool identifier
@@ -179,7 +179,7 @@ The exporter sets these standard OpenTelemetry attributes:
179
179
  - `gen_ai.tool.output`: Tool output
180
180
  - `tool.success`: Success flag
181
181
 
182
- **AGENT\_RUN spans:**
182
+ **AGENT_RUN spans:**
183
183
 
184
184
  - `gen_ai.operation.name`: `invoke_agent`
185
185
  - `gen_ai.agent.name`: Agent identifier
@@ -34,7 +34,7 @@ const processor = new BatchPartsProcessor({
34
34
 
35
35
  **name** (`string`): Processor display name. Always Batch Parts.
36
36
 
37
- **processOutputStream** (`(args: { part: ChunkType; streamParts: ChunkType[]; state: Record<string, any>; abort: (reason?: string) => never }) => Promise<ChunkType | null>`): Processes streaming output parts to batch them together
37
+ **processOutputStream** (`(args: { part: ChunkType; streamParts: ChunkType[]; state: Record<string, any>; abort: (reason?: string) => never; writer?: { custom: (data: ChunkType) => Promise<void> } }) => Promise<ChunkType | null>`): Processes streaming output parts to batch them together
38
38
 
39
39
  **flush** (`(state?: BatchPartsState) => ChunkType | null`): Force flush any remaining batched parts when the stream ends
40
40
 
@@ -186,19 +186,19 @@ The tripwire metadata has this shape:
186
186
 
187
187
  **processorId** (`'file-upload'`): Processor identifier.
188
188
 
189
- **code** (`FileUploadErrorCode`): One of the values of FILE\_UPLOAD\_ERROR\_CODES.
189
+ **code** (`FileUploadErrorCode`): One of the values of FILE_UPLOAD_ERROR_CODES.
190
190
 
191
191
  **fileName** (`string`): Name of the file that caused the stop, when a file did and it has a name.
192
192
 
193
193
  **mimeType** (`string`): MIME type of that file.
194
194
 
195
- **size** (`number`): Size of the file in bytes. Set with FILE\_TOO\_LARGE.
195
+ **size** (`number`): Size of the file in bytes. Set with FILE_TOO_LARGE.
196
196
 
197
- **maxFileSize** (`number`): Limit the file was checked against, in bytes. Set with FILE\_TOO\_LARGE.
197
+ **maxFileSize** (`number`): Limit the file was checked against, in bytes. Set with FILE_TOO_LARGE.
198
198
 
199
199
  **cause** (`string`): Message of the underlying error, or the invalid value returned by maxFileSize.
200
200
 
201
- **orphanPaths** (`string[]`): Sandbox paths that may still exist because cleanup after a failed upload did not succeed. Set with UPLOAD\_FAILED.
201
+ **orphanPaths** (`string[]`): Sandbox paths that may still exist because cleanup after a failed upload did not succeed. Set with UPLOAD_FAILED.
202
202
 
203
203
  `FILE_UPLOAD_ERROR_CODES` lists every code:
204
204
 
@@ -111,11 +111,11 @@ interface Processor<TId extends string = string, TTripwireMetadata = unknown> {
111
111
 
112
112
  **processDataParts** (`boolean`): When true, the processOutputStream method also receives data-\* chunks emitted by tools via writer.custom(). Defaults to false.
113
113
 
114
- **spanType** (`ProcessorSpanType`): Span type to trace this processor as, instead of the default PROCESSOR\_RUN. Use it when a processor belongs to a subsystem the user configured directly, so the trace names that subsystem rather than a pipeline phase. Restricted to span types whose attributes extend ProcessorPipelineAttributes, so the runtime can always record the processor position and message-list mutations on the span.
114
+ **spanType** (`ProcessorSpanType`): Span type to trace this processor as, instead of the default PROCESSOR_RUN. Use it when a processor belongs to a subsystem the user configured directly, so the trace names that subsystem rather than a pipeline phase. Restricted to span types whose attributes extend ProcessorPipelineAttributes, so the runtime can always record the processor position and message-list mutations on the span.
115
115
 
116
116
  **spanName** (`string | ((phase: ProcessorSpanPhase) => string)`): Span name, instead of the default \<phase> processor: \<id>. Pass a function to name each phase separately, which a processor that runs in more than one phase usually needs.
117
117
 
118
- **spanAttributes** (`Partial<SpanTypeMap[ProcessorSpanType]> | ((phase: ProcessorSpanPhase) => Partial<SpanTypeMap[ProcessorSpanType]>)`): Attributes set when the span is created. Needed when the declared span type has required attributes of its own, such as WORKSPACE\_ACTION.category. The pairing with spanType is not enforced by the type system.
118
+ **spanAttributes** (`Partial<SpanTypeMap[ProcessorSpanType]> | ((phase: ProcessorSpanPhase) => Partial<SpanTypeMap[ProcessorSpanType]>)`): Attributes set when the span is created. Needed when the declared span type has required attributes of its own, such as WORKSPACE_ACTION.category. The pairing with spanType is not enforced by the type system.
119
119
 
120
120
  **onViolation** (`(violation: ProcessorViolation) => void | Promise<void>`): Optional callback invoked when the processor detects a policy violation, regardless of strategy (block or warn). Use for side effects like alerting, logging to external systems, or emailing users. Errors thrown by this callback are silently caught to prevent interfering with processor logic. The violation object contains processorId, message, and a processor-specific detail field.
121
121
 
@@ -794,9 +794,9 @@ processToolResult?(args: ProcessToolResultArgs): ProcessorMessageResult;
794
794
 
795
795
  **args** (`unknown`): Arguments the LLM passed to the tool.
796
796
 
797
- **result** (`unknown`): Value returned by the tool. For client-executed tools this is the output of tool.execute() after it has passed through ensureSerializable. For provider-executed tools (e.g. Anthropic web\_search) it is the raw result from the provider stream, which is not run through ensureSerializable.
797
+ **result** (`unknown`): Value returned by the tool. For client-executed tools this is the output of tool.execute() after it has passed through ensureSerializable. For provider-executed tools (e.g. Anthropic web_search) it is the raw result from the provider stream, which is not run through ensureSerializable.
798
798
 
799
- **providerExecuted** (`boolean`): Whether this result came from a provider-executed tool such as Anthropic web\_search. Defaults to undefined for client-executed tools.
799
+ **providerExecuted** (`boolean`): Whether this result came from a provider-executed tool such as Anthropic web_search. Defaults to undefined for client-executed tools.
800
800
 
801
801
  **systemMessages** (`CoreMessage[]`): All system messages for read access.
802
802
 
@@ -49,7 +49,7 @@ See [Response caching](https://mastra.ai/docs/agents/processors) for the concept
49
49
 
50
50
  **ttl** (`number`): Time-to-live (seconds) for entries written by this processor. Defaults to 300 seconds (5 minutes), matching OpenRouter's reference implementation. (Default: `300`)
51
51
 
52
- **scope** (`string | null`): Tenant scope appended to the cache key. null opts out of scoping. When omitted, the processor falls back to the resource id resolved from the request context (MASTRA\_RESOURCE\_ID\_KEY) for automatic per-user isolation.
52
+ **scope** (`string | null`): Tenant scope appended to the cache key. null opts out of scoping. When omitted, the processor falls back to the resource id resolved from the request context (MASTRA_RESOURCE_ID_KEY) for automatic per-user isolation.
53
53
 
54
54
  **key** (`string | (inputs: ResponseCacheKeyInputs) => string | Promise<string>`): Override the auto-derived cache key. Pass a string to pin a key, or a function that receives { agentId, scope, model, prompt, stepNumber } and returns a key. If the function throws, the processor falls back to the deterministic hash so the call still benefits from caching.
55
55
 
@@ -39,9 +39,9 @@ const toolSearch = new ToolSearchProcessor({
39
39
 
40
40
  **options.search.minScore** (`number`): Minimum relevance score for including a tool in search results. Scores are raw BM25 relevance plus name-match boosts (+5 when a query term equals the tool ID, +2 when it appears in the ID). They are not normalized and often exceed 1. Scores depend on the tools in the catalog and their descriptions, so a threshold tuned for one tool set may not carry over to another. Tools scoring less than or equal to this value are excluded. Use small values such as 0 to 0.5 to require some term overlap.
41
41
 
42
- **options.search.autoLoad** (`boolean`): When true, tools returned by search\_tools are activated immediately as part of the search. The load\_tool meta-tool is not exposed, collapsing the two-step search then load flow into a single search step. Discovered tools become available on the next turn. Keep topK conservative since every match is activated.
42
+ **options.search.autoLoad** (`boolean`): When true, tools returned by search_tools are activated immediately as part of the search. The load_tool meta-tool is not exposed, collapsing the two-step search then load flow into a single search step. Discovered tools become available on the next turn. Keep topK conservative since every match is activated.
43
43
 
44
- **options.storage** (`'in-memory' | 'context'`): Where loaded-tool state lives. 'in-memory' (default) tracks loaded tools in an in-memory map per thread with TTL cleanup (see ttl); state is lost on restart and anonymous requests share a 'default' entry. 'context' derives loaded state from the conversation messages — a tool is loaded while a search\_tools/load\_tool result naming it remains in the messages; it works without memory (same-process only, and only for requests with a real thread ID), survives a restart whenever the messages are available again (memory with message history, or the caller resending the conversation), and de-loads automatically once that result is no longer present in the messages. The 'context' store is opt-in.
44
+ **options.storage** (`'in-memory' | 'context'`): Where loaded-tool state lives. 'in-memory' (default) tracks loaded tools in an in-memory map per thread with TTL cleanup (see ttl); state is lost on restart and anonymous requests share a 'default' entry. 'context' derives loaded state from the conversation messages — a tool is loaded while a search_tools/load_tool result naming it remains in the messages; it works without memory (same-process only, and only for requests with a real thread ID), survives a restart whenever the messages are available again (memory with message history, or the caller resending the conversation), and de-loads automatically once that result is no longer present in the messages. The 'context' store is opt-in.
45
45
 
46
46
  **options.ttl** (`number`): Time-to-live for in-memory thread state, in milliseconds. Only applies to the default storage: 'in-memory' store; after this duration of inactivity thread state is cleaned up. Set to 0 to disable cleanup. Ignored by the 'context' store.
47
47