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

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 (76) hide show
  1. package/.docs/docs/channels.md +15 -0
  2. package/.docs/docs/harness/durable-agents.md +1 -1
  3. package/.docs/docs/harness/schedules.md +2 -0
  4. package/.docs/docs/mastra-platform/server.md +10 -6
  5. package/.docs/docs/mastra-platform/studio.md +1 -1
  6. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +2 -1
  7. package/.docs/docs/signals/thread-streams.md +34 -3
  8. package/.docs/docs/workflows/agents-and-tools.md +6 -1
  9. package/.docs/docs/workflows/scheduled-workflows.md +6 -2
  10. package/.docs/integrations/observability/opentelemetry.md +27 -4
  11. package/.docs/integrations/voice/speechify.md +23 -10
  12. package/.docs/models/gateways/merge-gateway.md +2 -1
  13. package/.docs/models/gateways/neon.md +2 -1
  14. package/.docs/models/gateways/netlify.md +1 -2
  15. package/.docs/models/gateways/openrouter.md +2 -2
  16. package/.docs/models/gateways/vercel.md +3 -1
  17. package/.docs/models/index.md +1 -1
  18. package/.docs/models/providers/aimlapi.md +2 -1
  19. package/.docs/models/providers/commandcode.md +2 -1
  20. package/.docs/models/providers/edenai.md +3 -1
  21. package/.docs/models/providers/empiriolabs.md +4 -4
  22. package/.docs/models/providers/huggingface.md +2 -1
  23. package/.docs/models/providers/inceptron.md +2 -2
  24. package/.docs/models/providers/kilo.md +11 -11
  25. package/.docs/models/providers/llmgateway-providers.md +4 -5
  26. package/.docs/models/providers/llmgateway.md +2 -2
  27. package/.docs/models/providers/lowrouter.md +2 -1
  28. package/.docs/models/providers/nano-gpt.md +15 -12
  29. package/.docs/models/providers/nearai.md +2 -1
  30. package/.docs/models/providers/openai.md +2 -1
  31. package/.docs/models/providers/requesty.md +3 -1
  32. package/.docs/models/providers/wandb.md +2 -2
  33. package/.docs/reference/agents/agent.md +3 -1
  34. package/.docs/reference/agents/channels.md +3 -1
  35. package/.docs/reference/agents/durable-agent.md +17 -9
  36. package/.docs/reference/channels/slack-provider.md +2 -0
  37. package/.docs/reference/client-js/agents.md +2 -0
  38. package/.docs/reference/client-js/observability.md +13 -14
  39. package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
  40. package/.docs/reference/core/mastra-model-gateway.md +5 -0
  41. package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
  42. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +4 -0
  43. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +4 -0
  44. package/.docs/reference/observability/tracing/interfaces.md +21 -1
  45. package/.docs/reference/processors/classifier-processor.md +1 -1
  46. package/.docs/reference/processors/processor-interface.md +1 -1
  47. package/.docs/reference/processors/provider-history-compat.md +13 -13
  48. package/.docs/reference/processors/stream-error-retry-processor.md +9 -5
  49. package/.docs/reference/schedules/overview.md +16 -0
  50. package/.docs/reference/storage/overview.md +26 -9
  51. package/.docs/reference/streaming/ChunkType.md +18 -0
  52. package/.docs/reference/streaming/agents/streamLegacy.md +1 -1
  53. package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
  54. package/.docs/reference/tools/document-chunker-tool.md +1 -1
  55. package/.docs/reference/vectors/astra.md +2 -0
  56. package/.docs/reference/vectors/azure-ai-search.md +1 -1
  57. package/.docs/reference/vectors/convex.md +1 -1
  58. package/.docs/reference/vectors/couchbase.md +12 -5
  59. package/.docs/reference/vectors/duckdb.md +5 -5
  60. package/.docs/reference/vectors/mongodb.md +5 -5
  61. package/.docs/reference/vectors/pinecone.md +1 -1
  62. package/.docs/reference/vectors/qdrant.md +1 -1
  63. package/.docs/reference/vectors/s3vectors.md +3 -0
  64. package/.docs/reference/vectors/upstash.md +8 -4
  65. package/.docs/reference/vectors/vectorize.md +4 -2
  66. package/.docs/reference/vectors/weaviate.md +1 -1
  67. package/.docs/reference/voice/voice.send.md +1 -1
  68. package/.docs/reference/workflows/run-methods/restart.md +1 -1
  69. package/.docs/reference/workflows/run-methods/resume.md +1 -1
  70. package/.docs/reference/workflows/run-methods/start.md +1 -1
  71. package/.docs/reference/workflows/run.md +2 -2
  72. package/.docs/reference/workflows/workflow-methods/dountil.md +1 -1
  73. package/.docs/reference/workspace/local-sandbox.md +3 -3
  74. package/.docs/reference/workspace/platform-sandbox.md +4 -2
  75. package/.docs/reference/workspace/workspace-class.md +11 -11
  76. package/package.json +5 -5
@@ -39,8 +39,8 @@ for await (const chunk of stream) {
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ---------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
41
  | `inceptron/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.37 |
42
- | `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.55 | $4 |
43
- | `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.67 | $3 |
42
+ | `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.58 | $4 |
43
+ | `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.56 | $3 |
44
44
  | `inceptron/zai-org/GLM-5.2` | 1.0M | | | | | | $0.99 | $2 |
45
45
  | `inceptron/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
46
46
  | `inceptron/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.17 | $0.60 |
@@ -43,7 +43,7 @@ for await (const chunk of stream) {
43
43
  | `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
44
44
  | `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
45
45
  | `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $1 |
46
- | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.12 | $8 |
46
+ | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.13 | $8 |
47
47
  | `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.04 | $0.17 |
48
48
  | `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
49
49
  | `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $10 |
@@ -52,10 +52,10 @@ for await (const chunk of stream) {
52
52
  | `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
53
53
  | `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
54
54
  | `kilo/~openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
55
- | `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
55
+ | `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $1 | $5 |
56
56
  | `kilo/~unbiased/pareto-latest` | 1.0M | | | | | | $0.80 | $3 |
57
57
  | `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
58
- | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.04 | $0.08 |
58
+ | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.04 | $0.07 |
59
59
  | `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.07 | $1 |
60
60
  | `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
61
61
  | `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
@@ -101,7 +101,7 @@ for await (const chunk of stream) {
101
101
  | `kilo/deepseek/deepseek-v3.1-terminus` | 164K | | | | | | $0.27 | $1 |
102
102
  | `kilo/deepseek/deepseek-v3.2` | 131K | | | | | | $0.28 | $0.42 |
103
103
  | `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
104
- | `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.09 | $0.18 |
104
+ | `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.05 | $0.09 |
105
105
  | `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
106
106
  | `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
107
107
  | `kilo/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
@@ -139,7 +139,6 @@ for await (const chunk of stream) {
139
139
  | `kilo/google/lyria-3-clip-preview` | 1.0M | | | | | | — | — |
140
140
  | `kilo/google/lyria-3-pro-preview` | 1.0M | | | | | | — | — |
141
141
  | `kilo/gryphe/mythomax-l2-13b` | 4K | | | | | | $0.08 | $0.11 |
142
- | `kilo/ibm-granite/granite-4.0-h-micro` | 131K | | | | | | $0.02 | $0.11 |
143
142
  | `kilo/ibm-granite/granite-4.2-8b` | 131K | | | | | | $0.06 | $0.15 |
144
143
  | `kilo/inception/mercury-2` | 128K | | | | | | $0.25 | $0.75 |
145
144
  | `kilo/inception/mercury-2.5` | 260K | | | | | | $0.20 | $0.75 |
@@ -184,7 +183,7 @@ for await (const chunk of stream) {
184
183
  | `kilo/minimax/minimax-m2.5` | 205K | | | | | | $0.27 | $0.95 |
185
184
  | `kilo/minimax/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
186
185
  | `kilo/minimax/minimax-m3` | 524K | | | | | | $0.22 | $0.88 |
187
- | `kilo/minimax/minimax-m3.1-flash` | 1.0M | | | | | | $0.10 | $0.55 |
186
+ | `kilo/minimax/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
188
187
  | `kilo/mistralai/codestral-2508` | 256K | | | | | | $0.30 | $0.90 |
189
188
  | `kilo/mistralai/devstral-2512` | 262K | | | | | | $0.40 | $2 |
190
189
  | `kilo/mistralai/ministral-14b-2512` | 262K | | | | | | $0.20 | $0.20 |
@@ -212,7 +211,7 @@ for await (const chunk of stream) {
212
211
  | `kilo/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
213
212
  | `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
214
213
  | `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.65 | $3 |
215
- | `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
214
+ | `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.56 | $3 |
216
215
  | `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
217
216
  | `kilo/moonshotai/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
218
217
  | `kilo/morph/morph-v3-fast` | 262K | | | | | | $0.80 | $1 |
@@ -223,7 +222,6 @@ for await (const chunk of stream) {
223
222
  | `kilo/nvidia/nemotron-3-nano-30b-a3b` | 262K | | | | | | $0.05 | $0.20 |
224
223
  | `kilo/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free` | 256K | | | | | | — | — |
225
224
  | `kilo/nvidia/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.08 | $0.45 |
226
- | `kilo/nvidia/nemotron-3-super-120b-a12b:free` | 262K | | | | | | — | — |
227
225
  | `kilo/nvidia/nemotron-3-ultra-550b-a55b` | 203K | | | | | | $0.40 | $2 |
228
226
  | `kilo/nvidia/nemotron-3-ultra-550b-a55b:free` | 1.0M | | | | | | — | — |
229
227
  | `kilo/nvidia/nemotron-3.5-content-safety` | 131K | | | | | | $0.20 | $0.20 |
@@ -281,6 +279,8 @@ for await (const chunk of stream) {
281
279
  | `kilo/openai/gpt-6-sol-pro` | 1.1M | | | | | | $2 | $10 |
282
280
  | `kilo/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
283
281
  | `kilo/openai/gpt-6.1-sol-pro` | 1.1M | | | | | | $2 | $10 |
282
+ | `kilo/openai/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
283
+ | `kilo/openai/gpt-6.1-terra-pro` | 1.1M | | | | | | $1 | $5 |
284
284
  | `kilo/openai/gpt-audio` | 128K | | | | | | $3 | $10 |
285
285
  | `kilo/openai/gpt-audio-mini` | 128K | | | | | | $0.60 | $2 |
286
286
  | `kilo/openai/gpt-chat-latest` | 400K | | | | | | $5 | $30 |
@@ -351,7 +351,7 @@ for await (const chunk of stream) {
351
351
  | `kilo/qwen/qwen3.8-max-prime` | 1.0M | | | | | | $4 | $12 |
352
352
  | `kilo/qwen/qwen3.8-omni-flash` | 1.0M | | | | | | $0.15 | $0.47 |
353
353
  | `kilo/recursive/flint-v1.0:free` | 262K | | | | | | — | — |
354
- | `kilo/reflection/beam-1.0-501b-a23b` | 1.0M | | | | | | $0.24 | $0.98 |
354
+ | `kilo/reflection/beam-1.0-501b-a23b` | 1.0M | | | | | | $0.25 | $1 |
355
355
  | `kilo/reflection/beam-free` | 1.0M | | | | | | — | — |
356
356
  | `kilo/rekaai/reka-edge` | 16K | | | | | | $0.10 | $0.10 |
357
357
  | `kilo/rekaai/reka-flash-3` | 66K | | | | | | $0.10 | $0.20 |
@@ -400,7 +400,7 @@ for await (const chunk of stream) {
400
400
  | `kilo/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
401
401
  | `kilo/x-ai/grok-4.7` | 500K | | | | | | $2 | $6 |
402
402
  | `kilo/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
403
- | `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
403
+ | `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.10 | $0.28 |
404
404
  | `kilo/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
405
405
  | `kilo/xiaomi/mimo-v2.6-pro-ultraspeed` | 1.0M | | | | | | $4 | $9 |
406
406
  | `kilo/xingchen-agi/xing4.0-29b-a4b:free` | 262K | | | | | | — | — |
@@ -413,7 +413,7 @@ for await (const chunk of stream) {
413
413
  | `kilo/z-ai/glm-4.7-flash` | 131K | | | | | | $0.06 | $0.40 |
414
414
  | `kilo/z-ai/glm-5` | 203K | | | | | | $1 | $3 |
415
415
  | `kilo/z-ai/glm-5-turbo` | 203K | | | | | | $1 | $4 |
416
- | `kilo/z-ai/glm-5.1` | 203K | | | | | | $1 | $4 |
416
+ | `kilo/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
417
417
  | `kilo/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
418
418
  | `kilo/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
419
419
  | `kilo/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![LLM Gateway logo](https://models.dev/logos/llmgateway-providers.svg)LLM Gateway
6
6
 
7
- Access 430 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
7
+ Access 429 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
10
10
 
@@ -64,6 +64,7 @@ for await (const chunk of stream) {
64
64
  | `llmgateway-providers/alibaba/qwen3.7-plus` | 984K | | | | | | $0.40 | $2 |
65
65
  | `llmgateway-providers/alibaba/qwen3.8-flash` | 984K | | | | | | $0.15 | $0.47 |
66
66
  | `llmgateway-providers/alibaba/qwen3.8-max` | 984K | | | | | | $2 | $6 |
67
+ | `llmgateway-providers/alibaba/qwen3.8-omni-flash` | 984K | | | | | | $0.15 | $0.47 |
67
68
  | `llmgateway-providers/alibaba/qwen35-397b-a17b` | 262K | | | | | | $0.60 | $4 |
68
69
  | `llmgateway-providers/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
69
70
  | `llmgateway-providers/anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
@@ -172,7 +173,6 @@ for await (const chunk of stream) {
172
173
  | `llmgateway-providers/cerebras/glm-4.7` | 200K | | | | | | $2 | $3 |
173
174
  | `llmgateway-providers/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
174
175
  | `llmgateway-providers/cerebras/llama-3.3-70b-instruct` | 128K | | | | | | $0.85 | $1 |
175
- | `llmgateway-providers/cerebras/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.60 | $1 |
176
176
  | `llmgateway-providers/consensusprotocol/deepseek-v4-flash` | 1.0M | | | | | | $0.10 | $0.20 |
177
177
  | `llmgateway-providers/consensusprotocol/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.55 |
178
178
  | `llmgateway-providers/consensusprotocol/gemma-4-31b-it` | 262K | | | | | | $0.10 | $0.25 |
@@ -316,14 +316,11 @@ for await (const chunk of stream) {
316
316
  | `llmgateway-providers/novita/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
317
317
  | `llmgateway-providers/novita/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
318
318
  | `llmgateway-providers/novita/qwen3-235b-a22b-fp8` | 41K | | | | | | $0.20 | $0.80 |
319
- | `llmgateway-providers/novita/qwen3-235b-a22b-instruct-2507` | 131K | | | | | | $0.09 | $0.58 |
320
319
  | `llmgateway-providers/novita/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.30 | $3 |
321
320
  | `llmgateway-providers/novita/qwen3-coder-30b-a3b-instruct` | 160K | | | | | | $0.07 | $0.27 |
322
321
  | `llmgateway-providers/novita/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.38 | $2 |
323
322
  | `llmgateway-providers/novita/qwen3-max` | 262K | | | | | | $0.84 | $3 |
324
323
  | `llmgateway-providers/novita/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.15 | $2 |
325
- | `llmgateway-providers/novita/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.30 | $2 |
326
- | `llmgateway-providers/novita/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.98 | $4 |
327
324
  | `llmgateway-providers/novita/qwen3-vl-30b-a3b-instruct` | 131K | | | | | | $0.20 | $0.70 |
328
325
  | `llmgateway-providers/novita/qwen3.5-122b-a10b` | 262K | | | | | | $0.40 | $3 |
329
326
  | `llmgateway-providers/novita/qwen3.6-35b-a3b` | 262K | | | | | | $0.25 | $1 |
@@ -361,6 +358,7 @@ for await (const chunk of stream) {
361
358
  | `llmgateway-providers/openai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
362
359
  | `llmgateway-providers/openai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
363
360
  | `llmgateway-providers/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
361
+ | `llmgateway-providers/openai/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
364
362
  | `llmgateway-providers/openai/gpt-live-transcribe` | — | | | | | | — | — |
365
363
  | `llmgateway-providers/openai/gpt-transcribe` | — | | | | | | — | — |
366
364
  | `llmgateway-providers/openai/o3` | 200K | | | | | | $2 | $8 |
@@ -388,6 +386,7 @@ for await (const chunk of stream) {
388
386
  | `llmgateway-providers/sakana/fugu-max` | 1.0M | | | | | | $2 | $6 |
389
387
  | `llmgateway-providers/sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
390
388
  | `llmgateway-providers/sakana/fugu-ultra-v2.0` | 1.0M | | | | | | $5 | $30 |
389
+ | `llmgateway-providers/sciforium/deepseek-v4.1-flash-1017` | 1.1M | | | | | | $0.15 | $0.60 |
391
390
  | `llmgateway-providers/scx-ai-gp/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
392
391
  | `llmgateway-providers/scx-ai-gp/glm-5.2` | 1.0M | | | | | | $0.60 | $2 |
393
392
  | `llmgateway-providers/scx-ai-gp/glm-5.2-fast` | 1.0M | | | | | | $2 | $7 |
@@ -129,6 +129,7 @@ for await (const chunk of stream) {
129
129
  | `llmgateway/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
130
130
  | `llmgateway/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
131
131
  | `llmgateway/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
132
+ | `llmgateway/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
132
133
  | `llmgateway/gpt-live-transcribe` | — | | | | | | — | — |
133
134
  | `llmgateway/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.14 |
134
135
  | `llmgateway/gpt-oss-20b` | 131K | | | | | | $0.04 | $0.19 |
@@ -203,7 +204,6 @@ for await (const chunk of stream) {
203
204
  | `llmgateway/qwen-plus-latest` | 1.0M | | | | | | $0.40 | $1 |
204
205
  | `llmgateway/qwen3-14b` | 33K | | | | | | $0.08 | $0.23 |
205
206
  | `llmgateway/qwen3-235b-a22b-fp8` | 41K | | | | | | $0.20 | $0.80 |
206
- | `llmgateway/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.09 | $0.58 |
207
207
  | `llmgateway/qwen3-235b-a22b-thinking-2507` | 262K | | | | | | $0.30 | $3 |
208
208
  | `llmgateway/qwen3-30b-a3b` | 33K | | | | | | $0.10 | $0.28 |
209
209
  | `llmgateway/qwen3-32b` | 41K | | | | | | $0.36 | $0.87 |
@@ -214,7 +214,6 @@ for await (const chunk of stream) {
214
214
  | `llmgateway/qwen3-max` | 262K | | | | | | $0.84 | $3 |
215
215
  | `llmgateway/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.15 | $2 |
216
216
  | `llmgateway/qwen3-vl-235b-a22b-instruct` | 262K | | | | | | $0.20 | $0.88 |
217
- | `llmgateway/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.98 | $4 |
218
217
  | `llmgateway/qwen3-vl-30b-a3b-instruct` | 262K | | | | | | $0.15 | $0.60 |
219
218
  | `llmgateway/qwen3-vl-plus` | 262K | | | | | | $0.20 | $2 |
220
219
  | `llmgateway/qwen3.5-122b-a10b` | 262K | | | | | | $0.40 | $3 |
@@ -232,6 +231,7 @@ for await (const chunk of stream) {
232
231
  | `llmgateway/Qwen3.8-27B` | 262K | | | | | | $0.08 | $0.35 |
233
232
  | `llmgateway/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
234
233
  | `llmgateway/qwen3.8-max` | 1.0M | | | | | | $2 | $5 |
234
+ | `llmgateway/qwen3.8-omni-flash` | 984K | | | | | | $0.15 | $0.47 |
235
235
  | `llmgateway/qwen35-397b-a17b` | 262K | | | | | | $0.60 | $4 |
236
236
  | `llmgateway/reka-edge-2603` | 16K | | | | | | $0.10 | $0.10 |
237
237
  | `llmgateway/seed-1-6-250615` | 256K | | | | | | $0.25 | $2 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![LowRouter logo](https://models.dev/logos/lowrouter.svg)LowRouter
6
6
 
7
- Access 31 LowRouter models through Mastra's model router. Authentication is handled automatically using the `LOWROUTER_API_KEY` environment variable.
7
+ Access 32 LowRouter models through Mastra's model router. Authentication is handled automatically using the `LOWROUTER_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [LowRouter documentation](https://lowrouter.ai/docs/models/available).
10
10
 
@@ -64,6 +64,7 @@ for await (const chunk of stream) {
64
64
  | `lowrouter/auto/openai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
65
65
  | `lowrouter/auto/openai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
66
66
  | `lowrouter/auto/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
67
+ | `lowrouter/auto/openai/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
67
68
  | `lowrouter/auto/openai/gpt-oss-120b` | 131K | | | | | | $0.17 | $0.68 |
68
69
  | `lowrouter/auto/openai/gpt-oss-20b` | 131K | | | | | | $0.11 | $0.47 |
69
70
  | `lowrouter/auto/openai/gpt-oss-safeguard-120b` | 131K | | | | | | $0.18 | $0.73 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NanoGPT logo](https://models.dev/logos/nano-gpt.svg)NanoGPT
6
6
 
7
- Access 649 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
7
+ Access 652 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
10
10
 
@@ -122,7 +122,7 @@ for await (const chunk of stream) {
122
122
  | `nano-gpt/deepseek-chat` | 128K | | | | | | $0.10 | $0.42 |
123
123
  | `nano-gpt/deepseek-chat-cheaper` | 128K | | | | | | $0.10 | $0.42 |
124
124
  | `nano-gpt/deepseek-v3-0324` | 128K | | | | | | $0.20 | $0.77 |
125
- | `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $0.13 | $0.40 |
125
+ | `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $0.14 | $0.42 |
126
126
  | `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.21 | $0.31 |
127
127
  | `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.21 | $0.31 |
128
128
  | `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -134,11 +134,15 @@ for await (const chunk of stream) {
134
134
  | `nano-gpt/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
135
135
  | `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
136
136
  | `nano-gpt/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.70 | $1 |
137
- | `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.13 | $0.40 |
138
- | `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $0.13 | $0.40 |
137
+ | `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.14 | $0.42 |
138
+ | `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $0.14 | $0.42 |
139
139
  | `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $0.70 | $1 |
140
140
  | `nano-gpt/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.09 | $0.25 |
141
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored` | 524K | | | | | | $0.33 | $1 |
142
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored:thinking` | 524K | | | | | | $0.33 | $1 |
141
143
  | `nano-gpt/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.60 |
144
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored` | 1.0M | | | | | | $0.33 | $1 |
145
+ | `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
142
146
  | `nano-gpt/deepseek/deepseek-v4.1-flash-1017:thinking` | 1.0M | | | | | | $0.10 | $0.60 |
143
147
  | `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored` | 1.0M | | | | | | $0.33 | $1 |
144
148
  | `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
@@ -248,9 +252,9 @@ for await (const chunk of stream) {
248
252
  | `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
249
253
  | `nano-gpt/google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.30 | $3 |
250
254
  | `nano-gpt/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
251
- | `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.09 | $0.30 |
255
+ | `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.07 | $0.24 |
252
256
  | `nano-gpt/google/gemma-4-26b-a4b-it-cybersecurity` | 262K | | | | | | $0.11 | $0.33 |
253
- | `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.09 | $0.30 |
257
+ | `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.07 | $0.24 |
254
258
  | `nano-gpt/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
255
259
  | `nano-gpt/google/gemma-4-31b-it:thinking` | 262K | | | | | | $0.10 | $0.34 |
256
260
  | `nano-gpt/google/gemma4-31b-splituntied` | 262K | | | | | | $0.10 | $0.30 |
@@ -352,9 +356,9 @@ for await (const chunk of stream) {
352
356
  | `nano-gpt/moonshotai/kimi-k2.5:thinking` | 262K | | | | | | $0.38 | $2 |
353
357
  | `nano-gpt/moonshotai/kimi-k2.6` | 262K | | | | | | $0.39 | $2 |
354
358
  | `nano-gpt/moonshotai/kimi-k2.6:thinking` | 262K | | | | | | $0.39 | $2 |
355
- | `nano-gpt/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
359
+ | `nano-gpt/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.60 | $3 |
356
360
  | `nano-gpt/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
357
- | `nano-gpt/moonshotai/kimi-k3` | 1.0M | | | | | | $1 | $6 |
361
+ | `nano-gpt/moonshotai/kimi-k3` | 1.0M | | | | | | $2 | $8 |
358
362
  | `nano-gpt/moonshotai/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
359
363
  | `nano-gpt/moonshotai/kimi-k3.1-pro-highspeed` | 1.0M | | | | | | $4 | $20 |
360
364
  | `nano-gpt/moonshotai/kimi-latest` | 1.0M | | | | | | $2 | $10 |
@@ -382,7 +386,6 @@ for await (const chunk of stream) {
382
386
  | `nano-gpt/nvidia/nemotron-3.5-lightning` | 1.0M | | | | | | $0.05 | $0.20 |
383
387
  | `nano-gpt/nvidia/nemotron-3.5-lightning:thinking` | 1.0M | | | | | | $0.05 | $0.20 |
384
388
  | `nano-gpt/nvidia/nemotron-3.5-super-vl` | 262K | | | | | | $0.15 | $0.50 |
385
- | `nano-gpt/openai/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
386
389
  | `nano-gpt/openai/gpt-4-turbo` | 128K | | | | | | $10 | $30 |
387
390
  | `nano-gpt/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
388
391
  | `nano-gpt/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
@@ -421,6 +424,8 @@ for await (const chunk of stream) {
421
424
  | `nano-gpt/openai/gpt-6-sol-pro` | 1.1M | | | | | | $2 | $10 |
422
425
  | `nano-gpt/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
423
426
  | `nano-gpt/openai/gpt-6.1-sol-pro` | 1.1M | | | | | | $2 | $10 |
427
+ | `nano-gpt/openai/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
428
+ | `nano-gpt/openai/gpt-6.1-terra-pro` | 1.1M | | | | | | $1 | $5 |
424
429
  | `nano-gpt/openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
425
430
  | `nano-gpt/openai/gpt-chat-latest` | 1.1M | | | | | | $2 | $10 |
426
431
  | `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $10 | $50 |
@@ -429,7 +434,7 @@ for await (const chunk of stream) {
429
434
  | `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.10 |
430
435
  | `nano-gpt/openai/gpt-oss-safeguard-20b` | 128K | | | | | | $0.07 | $0.30 |
431
436
  | `nano-gpt/openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
432
- | `nano-gpt/openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
437
+ | `nano-gpt/openai/gpt-terra-latest` | 1.1M | | | | | | $1 | $5 |
433
438
  | `nano-gpt/openai/o1` | 200K | | | | | | $15 | $60 |
434
439
  | `nano-gpt/openai/o1-pro` | 200K | | | | | | $150 | $600 |
435
440
  | `nano-gpt/openai/o3` | 200K | | | | | | $2 | $8 |
@@ -472,8 +477,6 @@ for await (const chunk of stream) {
472
477
  | `nano-gpt/qwen/qwen3-coder-30b-a3b-instruct` | 128K | | | | | | $0.10 | $0.40 |
473
478
  | `nano-gpt/qwen/qwen3-coder-flash` | 128K | | | | | | $0.30 | $2 |
474
479
  | `nano-gpt/qwen/qwen3-coder-next` | 262K | | | | | | $0.25 | $0.80 |
475
- | `nano-gpt/qwen/qwen3-max` | 256K | | | | | | $1 | $6 |
476
- | `nano-gpt/qwen/qwen3-max-2026-01-23` | 256K | | | | | | $1 | $6 |
477
480
  | `nano-gpt/qwen/qwen3-next-80b-a3b-instruct` | 262K | | | | | | $0.09 | $1 |
478
481
  | `nano-gpt/qwen/qwen3-next-80b-a3b-thinking` | 256K | | | | | | $0.15 | $0.65 |
479
482
  | `nano-gpt/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.30 | $2 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NEAR AI Cloud logo](https://models.dev/logos/nearai.svg)NEAR AI Cloud
6
6
 
7
- Access 56 NEAR AI Cloud models through Mastra's model router. Authentication is handled automatically using the `NEARAI_API_KEY` environment variable.
7
+ Access 57 NEAR AI Cloud models through Mastra's model router. Authentication is handled automatically using the `NEARAI_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [NEAR AI Cloud documentation](https://docs.near.ai/).
10
10
 
@@ -62,6 +62,7 @@ for await (const chunk of stream) {
62
62
  | `nearai/google/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
63
63
  | `nearai/moonshotai/kimi-k2.6` | 262K | | | | | | $0.81 | $4 |
64
64
  | `nearai/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $17 |
65
+ | `nearai/moonshotai/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
65
66
  | `nearai/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
66
67
  | `nearai/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
67
68
  | `nearai/openai/gpt-5` | 400K | | | | | | $1 | $10 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenAI logo](https://models.dev/logos/openai.svg)OpenAI
6
6
 
7
- Access 51 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
7
+ Access 52 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [OpenAI documentation](https://platform.openai.com/docs/models).
10
10
 
@@ -66,6 +66,7 @@ for await (const chunk of stream) {
66
66
  | `openai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
67
67
  | `openai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
68
68
  | `openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
69
+ | `openai/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
69
70
  | `openai/gpt-daybreak-blue-latest` | 1.1M | | | | | | $4 | $20 |
70
71
  | `openai/gpt-daybreak-red-latest` | 400K | | | | | | $13 | $75 |
71
72
  | `openai/gpt-image-1-mini` | — | | | | | | — | — |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Requesty logo](https://models.dev/logos/requesty.svg)Requesty
6
6
 
7
- Access 183 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
7
+ Access 185 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Requesty documentation](https://requesty.ai/solution/llm-routing/models).
10
10
 
@@ -140,6 +140,8 @@ for await (const chunk of stream) {
140
140
  | `requesty/gpt-6-sol@eu` | 1.1M | | | | | | $2 | $12 |
141
141
  | `requesty/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
142
142
  | `requesty/gpt-6.1-sol@eu` | 1.1M | | | | | | $2 | $12 |
143
+ | `requesty/gpt-6.1-terra` | 1.1M | | | | | | $1 | $5 |
144
+ | `requesty/gpt-6.1-terra@eu` | 1.1M | | | | | | $1 | $6 |
143
145
  | `requesty/grok-4.2-beta` | 2.0M | | | | | | $2 | $6 |
144
146
  | `requesty/grok-4.3` | 1.0M | | | | | | $1 | $3 |
145
147
  | `requesty/grok-4.5` | 500K | | | | | | $2 | $6 |
@@ -41,7 +41,7 @@ for await (const chunk of stream) {
41
41
  | `wandb/deepseek-ai/DeepSeek-V3.1` | 161K | | | | | | $0.55 | $2 |
42
42
  | `wandb/deepseek-ai/DeepSeek-V4-Flash-0731` | 262K | | | | | | $0.13 | $0.28 |
43
43
  | `wandb/deepseek-ai/DeepSeek-V4-Pro-0813` | 1.0M | | | | | | $1 | $4 |
44
- | `wandb/deepseek-ai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.15 | $0.65 |
44
+ | `wandb/deepseek-ai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.13 | $0.65 |
45
45
  | `wandb/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.10 | $0.30 |
46
46
  | `wandb/google/gemma-4-31B-it` | 262K | | | | | | $0.10 | $0.34 |
47
47
  | `wandb/ibm-granite/granite-4.2-8b` | 131K | | | | | | $0.06 | $0.15 |
@@ -49,7 +49,7 @@ for await (const chunk of stream) {
49
49
  | `wandb/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.71 | $0.71 |
50
50
  | `wandb/MiniMaxAI/MiniMax-M3` | 262K | | | | | | $0.23 | $0.96 |
51
51
  | `wandb/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.65 | $3 |
52
- | `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.71 | $4 |
52
+ | `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.60 | $3 |
53
53
  | `wandb/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B` | 262K | | | | | | $0.50 | $2 |
54
54
  | `wandb/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B` | 262K | | | | | | $0.07 | $0.20 |
55
55
  | `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.50 |
@@ -502,6 +502,8 @@ Subscribes to raw stream chunks for a memory thread. Use this before calling `se
502
502
 
503
503
  **options.hideSignals** (`boolean | AgentSignalType[]`): Use true to hide all recognized signals, false to show all, or an array to hide selected types from this subscription, including live, idle-persisted, and replayed signals. Other subscribers and the initiating stream keep their own policies.
504
504
 
505
+ **options.withRunStatus** (`boolean`): Emit ordered thread-run-status chunks for live and retained outcomes without closing the subscription.
506
+
505
507
  **options.withInitialHistory** (`boolean | { perPage?: number }`): Emit the stored thread messages as one thread-history chunk first, then only retained parts newer than that history, then live parts. Completed runs already in storage aren't replayed; pending tool approvals are still emitted. perPage limits how many recent messages are loaded (default 40). Without agent memory, or when the thread has no stored messages yet, the history chunk is emitted with an empty messages array.
506
508
 
507
509
  By default, subscriptions include every signal type, including reactive reminders. To hide reminders for one subscriber without affecting another:
@@ -527,7 +529,7 @@ for await (const chunk of subscription.stream) {
527
529
  }
528
530
  ```
529
531
 
530
- The `thread-history` chunk carries the newest `perPage` messages and a `hasMore` flag. See [Thread subscription chunks](https://mastra.ai/reference/streaming/ChunkType) for its shape.
532
+ The `thread-history` chunk carries the newest `perPage` messages, a `hasMore` flag, and `activeRunId` (the owning run or `null` when idle). Set `withRunStatus: true` to receive [run outcomes](https://mastra.ai/reference/streaming/ChunkType), including one per still-retained finished run. Both options add their chunk types to the inferred subscription stream only when requested. See [Thread subscription chunks](https://mastra.ai/reference/streaming/ChunkType) for its shape.
531
533
 
532
534
  `hideSignals: true` hides all recognized signal types. Set it to `false` to show all signals. An array accepts `user`, `state`, `reactive`, `notification`, `user-message`, and `system-reminder`. Matching normalizes `system-reminder` to `reactive` and `user-message` to `user`. An omitted option, `false`, or `[]` excludes nothing. Each subscriber filters its own live and replayed chunks, including remote pubsub events and idle-persisted signals. Filtering preserves non-signal chunks, unknown or malformed signal chunks, ordering, and completion/error events, even when every signal type is excluded.
533
535
 
@@ -98,7 +98,7 @@ const agent = new Agent({
98
98
 
99
99
  **cors** (`CorsOptions`): CORS configuration for this adapter webhook route. Use this for browser-based channel adapters that need cross-origin credentials.
100
100
 
101
- **formatError** (`(error: Error) => PostableMessage`): Override how errors are rendered in the chat. Return a user-friendly message instead of exposing the raw error. (Default: `"❌ Error: <error.message>"`)
101
+ **formatError** (`(error: Error, context: { requestContext?: RequestContext }) => PostableMessage`): Override how errors are rendered in the chat. Return a user-friendly message instead of exposing the raw error. context.requestContext is the failed run's request context, so the message can link back to whatever the run belongs to. (Default: `"❌ Error: <error.message>"`)
102
102
 
103
103
  **formatToolCall** (`(info: { toolName: string; args: Record<string, unknown>; result: unknown; isError?: boolean }) => PostableMessage | null`): \*\*Deprecated\*\* — use toolDisplay (function form) instead. When set, runs as a ToolDisplayFn that only fires on result/error events; running and approval events fall through to no render. Mutually exclusive with toolDisplay at the type level.
104
104
 
@@ -110,6 +110,8 @@ const agent = new Agent({
110
110
 
111
111
  **toolDisplay** (`'cards' | 'text' | 'timeline' | 'grouped' | 'hidden' | ToolDisplayFn`): How tool calls are rendered in the channel. "cards" posts per-tool running/result cards as rich Block Kit. "text" posts the same lifecycle as plain text (no Block Kit). "timeline" and "grouped" stream tool state as inline task_update chunks (requires streaming: true; Slack only today — other adapters may render a placeholder). "hidden" executes tools silently. Pass a function to render tool events yourself; return { kind: "post", message } for a discrete post/edit, { kind: "stream", chunk } to push into the streaming widget, or undefined to skip rendering that event. Add openIfEmpty: false to a stream result when its chunk should only apply to an active streaming session. Approve/deny prompts render as a separate built-in card in every string mode; a toolDisplay function receives the approval event and may replace the card by returning { kind: "post", message }. (Default: `'cards' ('grouped' for Slack)`)
112
112
 
113
+ **toolApprovers** (`'requester' | 'anyone'`): Who may approve or deny a pending tool call in this adapter's channel. By default, only the user who triggered the call can respond when their identity was recorded; runs without a recorded requester (such as scheduled runs) may allow another channel member to respond. Set 'anyone' to allow another channel member to respond even when a requester was recorded. Pending-approval and thread-mapping checks still apply. (Default: `'requester'`)
114
+
113
115
  **typingStatus** (`boolean | ((chunk: AgentChunkType, ctx: TypingStatusContext) => string | false | null | undefined | void)`): Control the platform typing indicator. true uses built-in defaults (is typing… on text, is calling {tool}… on tool-call, is waiting for approval… on tool-call-approval). false suppresses typing entirely — useful when a live streaming widget (e.g. toolDisplay: "grouped" in Slack) already conveys progress. Pass a function to set custom status copy per chunk; return a string to set the status, or false/null/undefined to leave it unchanged. Compose with defaultTypingStatus (exported from @mastra/core/channels) to fall back to defaults for chunks you don't handle. (Default: `true`)
114
116
 
115
117
  ## Tool display modes
@@ -201,6 +201,8 @@ A non-zero offset can skip earlier events. Aggregated values are built only from
201
201
 
202
202
  When the PubSub transport supports numeric offsets, an offset beyond the highest retained index replays nothing and also skips live events with lower indexes. The observer receives events only when the published index reaches the requested offset. If the index counter restarts below that offset, the observer can wait indefinitely. On a transport without numeric offset support, providing an offset starts with new live events and doesn't replay cached events. Replay is limited to events still available in the configured cache. Events can't be replayed when caching is disabled, `shouldCache` excludes the run topic, a cache write fails, or retained events have been cleared.
203
203
 
204
+ An evented agent (`createEventedAgent()`) on a cross-process PubSub, such as Redis Streams, numbers its events only when every process shares the server cache. Configure a shared cache such as `RedisServerCache` on the `Mastra` instance. With the default in-memory server cache, events aren't numbered, so an offset can't skip them: the observer can receive events from before the offset again, and Mastra logs a warning.
205
+
204
206
  By default `observe()` waits indefinitely for events. If the process running the run stops unexpectedly, the run stops producing events but never emits a completion event, so the observed stream would wait forever. Pass `idleTimeoutMs` to end the stream after a bounded period of silence. Before timing out, `observe()` can consult an optional `isAlive` check. Return `true` while work continues, such as during a long-running tool call or a pause for human input. A `false` result ends the stream with an error, as does omitting `isAlive`. A transient throw from `isAlive` is treated as "still alive", so a momentary check failure never ends a live stream.
205
207
 
206
208
  ```typescript
@@ -396,17 +398,23 @@ await output.text
396
398
  cleanup()
397
399
  ```
398
400
 
399
- `recover()` throws instead of recovering a run that isn't orphaned:
401
+ Recovery restarts from the persisted `durable-agentic-loop` checkpoint. The nested execution row alone isn't sufficient. Before starting a run, enable `recovery: { durableAgents: 'auto' }` on `Mastra`, or provide a `shouldPersistSnapshot` policy that includes `'running'`. Recovery is unavailable until the first running checkpoint is saved, even with persistence enabled. Enabling persistence after a crash can't reconstruct a missing checkpoint.
402
+
403
+ Model and tool calls after the checkpoint may run again. Make tool side effects idempotent. Recovery doesn't guarantee exactly-once execution.
404
+
405
+ `recover()` throws for unavailable checkpoints and runs that aren't orphaned:
400
406
 
401
- | Error ID | Thrown when |
402
- | ------------------------------------------- | -------------------------------------------------------------------- |
403
- | `DURABLE_AGENT_RUN_ACTIVE` | Another execution holds the run, and `force` isn't set. |
404
- | `DURABLE_AGENT_RECOVER_RUN_ACTIVE_LOCALLY` | This process is executing the run. `force` doesn't override this. |
405
- | `DURABLE_AGENT_RECOVER_ALREADY_IN_PROGRESS` | This process is already recovering the run. |
406
- | `DURABLE_AGENT_RECOVER_RUN_SUSPENDED` | The run is suspended. Continue it with `resume()`. |
407
- | `DURABLE_AGENT_EXECUTION_CONFLICT` | With `force`, another execution claimed the run during the takeover. |
407
+ | Error ID | Thrown when |
408
+ | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
409
+ | `DURABLE_AGENT_RECOVER_CHECKPOINT_NOT_AVAILABLE` | The loop row is still `pending` without a workflow input. No restartable checkpoint is available. No recovered execution starts, and any acquired recovery claim is released. |
410
+ | `DURABLE_AGENT_RUN_ACTIVE` | Another execution holds the run, and `force` isn't set. |
411
+ | `DURABLE_AGENT_RECOVER_RUN_ACTIVE_LOCALLY` | This process is executing the run. `force` doesn't override this. |
412
+ | `DURABLE_AGENT_RECOVER_ALREADY_IN_PROGRESS` | This process is already recovering the run. |
413
+ | `DURABLE_AGENT_RECOVER_RUN_SUSPENDED` | The run is suspended. Continue it with `resume()`. |
414
+ | `DURABLE_AGENT_RECOVER_RUN_NOT_ACTIVE` | The snapshot isn't restartable and isn't suspended. |
415
+ | `DURABLE_AGENT_EXECUTION_CONFLICT` | With `force`, another execution claimed the run during the takeover. |
408
416
 
409
- The server's `POST /agents/:agentId/recover` route returns these errors as `409 Conflict`.
417
+ The server's `POST /agents/:agentId/recover` route returns ownership, already-in-progress, suspended-run, and inactive-run conflicts as `409 Conflict`. An unavailable checkpoint returns `500 Internal Server Error`.
410
418
 
411
419
  **options.force** (`boolean`): Take the run over even while another execution holds it. That execution loses the run and stops, and streams for the run drop the events it still publishes. Its writes are rejected when the storage adapter supports run fencing. (Default: `false`)
412
420
 
@@ -61,6 +61,8 @@ await slack.configure({
61
61
 
62
62
  **toolDisplay** (`ToolDisplay`): How tool calls are rendered in Slack: 'cards', 'text', 'timeline', 'grouped', 'hidden', or a function. 'hidden' suppresses tool call/result rendering entirely. 'timeline' and 'grouped' require streaming. With streaming: false, only static modes are available and the default is 'cards'. (Default: `'grouped'`)
63
63
 
64
+ **toolApprovers** (`'requester' | 'anyone'`): Who can approve or deny tool calls. By default, only the user whose message triggered the call can respond when their identity was recorded; without a recorded requester, another channel member may respond. Set 'anyone' to allow another member of the shared Slack channel to approve or deny even when a requester was recorded. This bypasses only the requester check; the action still requires a pending approval in the same thread. (Default: `'requester'`)
65
+
64
66
  **typingStatus** (`boolean | TypingStatusFn`): Show a typing indicator while the agent works. Set false to disable, or pass a function to return custom status text per stream chunk (return undefined to fall back to the default for that chunk). (Default: `true`)
65
67
 
66
68
  **waitUntil** (`WaitUntilFn`): Returns a waitUntil for the current Slack webhook request. Required on serverless runtimes where Hono can't bridge the platform's ExecutionContext (Vercel, AWS Lambda). Without it, the invocation freezes after the 200 ack and kills the run mid-flight. Pass the bare waitUntil(promise) from your platform SDK (for example, @vercel/functions). Cloudflare Workers and Netlify users typically don't need this.
@@ -349,6 +349,8 @@ const { messages, initialHistoryPagination } = useChat({
349
349
 
350
350
  **threadId** (`string`): Thread ID to subscribe to.
351
351
 
352
+ **withRunStatus** (`boolean`): Emit live and retained thread-run-status outcomes. Callback types include these chunks only when requested. useChat enables this for its thread subscription. (Default: `false`)
353
+
352
354
  **processDataStream().reconnect** (`boolean | { maxRetries?: number; delayMs?: number }`): Reconnects the subscription stream after it closes or a reconnect request fails. true retries indefinitely with a one-second delay. A 4xx (other than 408 and 429) or 501 response stops reconnecting and rejects with that error.
353
355
 
354
356
  The subscription also exposes `abort(options?)` and `unsubscribe()`. `await subscription.abort({ clearPendingSignals: true })` requests an abort and clears pending signals without closing the subscription. Omit the flag to preserve pending input. `unsubscribe()` closes the subscription without aborting the run.
@@ -221,25 +221,24 @@ Presence filters use `{ op: 'exists', path: 'userId' }` to check for a non-null
221
221
 
222
222
  The response is `{ threads, page: { next } }`, without a total count. Each entry in `threads` contains these fields:
223
223
 
224
- | Returned fields | Meaning |
225
- | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
226
- | `threadId`, `organizationId` | Thread identity. Equal thread IDs in different organizations remain separate. |
227
- | `firstTraceId`, `lastTraceId` | Earliest and latest trace by start time. Equal start times use trace ID as a deterministic tie-breaker. |
228
- | `resourceId`, `userId`, `runId`, `sessionId`, `requestId`, `serviceName`, `experimentId`, `environment`, `executionSource` | First-trace context, or `null` when missing. |
229
- | `entityType`, `entityId`, `entityName`, `entityVersionId` | First-trace entity. |
230
- | `startedAt`, `endedAt` | Earliest start and maximum end time across the thread. |
231
- | `status` | `error` when the last-started trace's root span has an error, otherwise `success`. |
232
- | `traceCount` | Number of logical traces in the thread. |
233
- | `inputPreview` | First trace's input preview. |
234
- | `outputPreview`, `errorPreview` | Last-started trace's previews. |
235
- | `timeToFirstChunkMs` | First trace's root agent time to first chunk, in milliseconds. `null` when unavailable or the root isn't an agent. |
236
- | `model`, `provider` | Model/provider from the first completed model generation directly under the first trace's root agent. `null` when unavailable. |
224
+ | Returned fields | Meaning |
225
+ | -------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
226
+ | `threadId`, `organizationId` | Thread identity. Equal thread IDs in different organizations remain separate. |
227
+ | `firstTraceId`, `lastTraceId` | Earliest and latest trace by start time. Equal start times use trace ID as a deterministic tie-breaker. |
228
+ | `resourceId`, `userId`, `runId`, `sessionId`, `requestId`, `serviceName`, `experimentId`, `environment`, `executionSource` | First-trace context, or `null` when missing. |
229
+ | `entityType`, `entityId`, `entityName`, `entityVersionId` | First-trace entity. |
230
+ | `startedAt`, `endedAt` | Earliest start and maximum end time across the thread. |
231
+ | `status` | `error` when the last-started trace's root span has an error, otherwise `success`. |
232
+ | `traceCount` | Number of logical traces in the thread. |
233
+ | `inputPreview` | First trace's input preview. |
234
+ | `outputPreview`, `errorPreview` | Last-started trace's previews. |
235
+ | `timeToFirstChunkMs` | First trace's root agent time to first chunk, in milliseconds. `null` when unavailable or the root isn't an agent. |
237
236
 
238
237
  An earlier-started trace can finish last. In that case, it supplies `endedAt`, while the last-started trace still supplies status and output/error previews. Missing first-trace values aren't replaced with values from a later trace.
239
238
 
240
239
  ### Thread ordering and pagination
241
240
 
242
- Ordering accepts exactly one of `startedAt` or `endedAt`, with direction `asc` or `desc`. The default is `endedAt` descending. Pages default to 100 rows and allow at most 1,000. Pass `result.page.next` as `page.after` with the same time selector, filters, scope and ordering. A `null` cursor means no more pages are available. Pagination reflects live data, so new traces can move a thread between pages.
241
+ Ordering accepts exactly one of `startedAt` or `endedAt`, with direction `asc` or `desc`. The default is `endedAt` descending. Pages default to 25 rows and allow at most 100. Pass `result.page.next` as `page.after` with the same time selector, filters, scope and ordering. A `null` cursor means no more pages are available. Pagination reflects live data, so new traces can move a thread between pages.
243
242
 
244
243
  To load the traces within a thread, use [`queryTraces()`](#querying-traces) with a `threadId` filter and a time range covering the thread's activity.
245
244