@mastra/mcp-docs-server 1.3.6-alpha.5 → 1.3.6-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 (37) hide show
  1. package/.docs/docs/agents/processors.md +6 -5
  2. package/.docs/docs/browser.md +0 -2
  3. package/.docs/docs/guides/authentication-identity.md +1 -1
  4. package/.docs/docs/harness/agent-controller.md +29 -0
  5. package/.docs/docs/memory/message-history.md +15 -8
  6. package/.docs/docs/memory/observational-memory.md +33 -4
  7. package/.docs/integrations/sandboxes/docker.md +61 -0
  8. package/.docs/integrations/sandboxes/e2b.md +37 -0
  9. package/.docs/models/gateways/netlify.md +3 -5
  10. package/.docs/models/gateways/openrouter.md +2 -2
  11. package/.docs/models/gateways/vercel.md +2 -1
  12. package/.docs/models/index.md +1 -1
  13. package/.docs/models/providers/cortecs.md +3 -2
  14. package/.docs/models/providers/deepinfra.md +0 -2
  15. package/.docs/models/providers/edenai.md +7 -6
  16. package/.docs/models/providers/hyper.md +4 -6
  17. package/.docs/models/providers/kilo.md +15 -15
  18. package/.docs/models/providers/mistral.md +1 -1
  19. package/.docs/models/providers/nano-gpt.md +3 -1
  20. package/.docs/models/providers/neuralwatt.md +3 -1
  21. package/.docs/models/providers/opencode-go.md +3 -2
  22. package/.docs/models/providers/opencode.md +2 -2
  23. package/.docs/models/providers/requesty.md +2 -1
  24. package/.docs/reference/agent-controller/agent-controller-class.md +15 -1
  25. package/.docs/reference/agent-controller/session.md +17 -6
  26. package/.docs/reference/agents/inngest-agent.md +1 -1
  27. package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
  28. package/.docs/reference/index.md +2 -0
  29. package/.docs/reference/memory/observational-memory.md +8 -4
  30. package/.docs/reference/processors/file-upload-processor.md +236 -0
  31. package/.docs/reference/processors/processor-interface.md +2 -0
  32. package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
  33. package/.docs/reference/processors/unsupported-file-handler.md +69 -0
  34. package/.docs/reference/tools/isolated-vm-transport.md +0 -2
  35. package/.docs/reference/tools/quickjs-transport.md +0 -2
  36. package/.docs/reference/workspace/platform-sandbox.md +36 -2
  37. package/package.json +3 -3
@@ -42,20 +42,20 @@ for await (const chunk of stream) {
42
42
  | `kilo/~anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
43
43
  | `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
44
44
  | `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
45
- | `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.04 | $1 |
46
- | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.11 | $8 |
47
- | `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $0.39 |
45
+ | `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $1 |
46
+ | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.20 | $8 |
47
+ | `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $1 |
48
48
  | `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
49
49
  | `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
50
- | `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.45 | $13 |
50
+ | `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.49 | $13 |
51
51
  | `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
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
55
  | `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
56
56
  | `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
57
- | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.03 | $3 |
58
- | `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.04 | $12 |
57
+ | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.03 | $0.61 |
58
+ | `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.03 | $4 |
59
59
  | `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
60
60
  | `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
61
61
  | `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
@@ -85,7 +85,6 @@ for await (const chunk of stream) {
85
85
  | `kilo/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
86
86
  | `kilo/anthropic/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $10 |
87
87
  | `kilo/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.80 |
88
- | `kilo/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
89
88
  | `kilo/bytedance-seed/seed-1.6` | 262K | | | | | | $0.25 | $2 |
90
89
  | `kilo/bytedance-seed/seed-1.6-flash` | 262K | | | | | | $0.07 | $0.30 |
91
90
  | `kilo/bytedance-seed/seed-2-1-turbo` | 262K | | | | | | $0.50 | $3 |
@@ -100,7 +99,7 @@ for await (const chunk of stream) {
100
99
  | `kilo/cohere/command-r-plus-08-2024` | 128K | | | | | | $3 | $10 |
101
100
  | `kilo/cohere/command-r7b-12-2024` | 128K | | | | | | $0.04 | $0.15 |
102
101
  | `kilo/cohere/north-mini-code:free` | 256K | | | | | | — | — |
103
- | `kilo/deepseek/deepseek-chat` | 128K | | | | | | $0.26 | $1 |
102
+ | `kilo/deepseek/deepseek-chat` | 164K | | | | | | $0.32 | $0.89 |
104
103
  | `kilo/deepseek/deepseek-chat-v3-0324` | 128K | | | | | | $0.29 | $1 |
105
104
  | `kilo/deepseek/deepseek-chat-v3.1` | 164K | | | | | | $0.25 | $0.95 |
106
105
  | `kilo/deepseek/deepseek-r1` | 64K | | | | | | $0.70 | $3 |
@@ -110,7 +109,7 @@ for await (const chunk of stream) {
110
109
  | `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
111
110
  | `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
112
111
  | `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
113
- | `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.44 | $1 |
112
+ | `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
114
113
  | `kilo/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
115
114
  | `kilo/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
116
115
  | `kilo/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
@@ -152,7 +151,7 @@ for await (const chunk of stream) {
152
151
  | `kilo/inception/mercury-2.5` | 260K | | | | | | $0.20 | $0.75 |
153
152
  | `kilo/inclusionai/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
154
153
  | `kilo/inclusionai/ling-3.0-flash-fin` | 262K | | | | | | $0.07 | $0.22 |
155
- | `kilo/inclusionai/ling-3.0-flash-sante:free` | 262K | | | | | | — | — |
154
+ | `kilo/inclusionai/ling-3.0-flash-sante` | 262K | | | | | | $0.07 | $0.22 |
156
155
  | `kilo/inclusionai/ling-3.0-flash-vl` | 262K | | | | | | $0.07 | $0.22 |
157
156
  | `kilo/inclusionai/ling-3.1-flash` | 262K | | | | | | — | — |
158
157
  | `kilo/inference-net/schematron-v2-small` | 128K | | | | | | $0.05 | $0.23 |
@@ -197,7 +196,7 @@ for await (const chunk of stream) {
197
196
  | `kilo/mistralai/mistral-large` | 128K | | | | | | $2 | $6 |
198
197
  | `kilo/mistralai/mistral-large-2407` | 131K | | | | | | $2 | $6 |
199
198
  | `kilo/mistralai/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
200
- | `kilo/mistralai/mistral-large-4-0` | 524K | | | | | | $1 | $4 |
199
+ | `kilo/mistralai/mistral-large-4-0` | 1.0M | | | | | | $0.68 | $2 |
201
200
  | `kilo/mistralai/mistral-medium-3` | 131K | | | | | | $0.40 | $2 |
202
201
  | `kilo/mistralai/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
203
202
  | `kilo/mistralai/mistral-medium-3.1` | 131K | | | | | | $0.40 | $2 |
@@ -231,7 +230,7 @@ for await (const chunk of stream) {
231
230
  | `kilo/nvidia/nemotron-3-ultra-550b-a55b:free` | 1.0M | | | | | | — | — |
232
231
  | `kilo/nvidia/nemotron-3.5-content-safety` | 131K | | | | | | $0.20 | $0.20 |
233
232
  | `kilo/nvidia/nemotron-3.5-content-safety:free` | 128K | | | | | | — | — |
234
- | `kilo/nvidia/nemotron-3.5-lightning` | 262K | | | | | | $0.04 | $0.18 |
233
+ | `kilo/nvidia/nemotron-3.5-lightning` | 262K | | | | | | $0.03 | $0.12 |
235
234
  | `kilo/nvidia/nemotron-3.5-lightning:free` | 1.0M | | | | | | — | — |
236
235
  | `kilo/openai/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
237
236
  | `kilo/openai/gpt-3.5-turbo-0613` | 4K | | | | | | $1 | $2 |
@@ -325,7 +324,7 @@ for await (const chunk of stream) {
325
324
  | `kilo/qwen/qwen3-235b-a22b-2507` | 262K | | | | | | $0.15 | $0.60 |
326
325
  | `kilo/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.23 | $2 |
327
326
  | `kilo/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.13 | $0.52 |
328
- | `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 128K | | | | | | $0.13 | $0.52 |
327
+ | `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 262K | | | | | | $0.13 | $0.52 |
329
328
  | `kilo/qwen/qwen3-30b-a3b-thinking-2507` | 82K | | | | | | $0.20 | $2 |
330
329
  | `kilo/qwen/qwen3-32b` | 41K | | | | | | $0.08 | $0.28 |
331
330
  | `kilo/qwen/qwen3-8b` | 131K | | | | | | $0.12 | $0.46 |
@@ -336,7 +335,7 @@ for await (const chunk of stream) {
336
335
  | `kilo/qwen/qwen3-coder-plus` | 1.0M | | | | | | $0.65 | $3 |
337
336
  | `kilo/qwen/qwen3-max` | 262K | | | | | | $0.78 | $4 |
338
337
  | `kilo/qwen/qwen3-max-thinking` | 262K | | | | | | $0.78 | $4 |
339
- | `kilo/qwen/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.10 | $0.78 |
338
+ | `kilo/qwen/qwen3-next-80b-a3b-instruct` | 262K | | | | | | $0.10 | $0.78 |
340
339
  | `kilo/qwen/qwen3-next-80b-a3b-thinking` | 131K | | | | | | $0.15 | $1 |
341
340
  | `kilo/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.26 | $1 |
342
341
  | `kilo/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.40 | $4 |
@@ -386,7 +385,8 @@ for await (const chunk of stream) {
386
385
  | `kilo/stealth/qwen3.6-plus` | 1.0M | | | | | | $0.25 | $2 |
387
386
  | `kilo/stepfun/step-3.5-flash` | 262K | | | | | | $0.10 | $0.30 |
388
387
  | `kilo/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
389
- | `kilo/stepfun/step-3.7-flash:free` | 262K | | | | | | — | — |
388
+ | `kilo/stepfun/step-5-preview` | 1.0M | | | | | | $1 | $3 |
389
+ | `kilo/stepfun/step-5-preview-free` | 1.0M | | | | | | — | — |
390
390
  | `kilo/tencent/hunyuan-a13b-instruct` | 131K | | | | | | $0.14 | $0.57 |
391
391
  | `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
392
392
  | `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
@@ -45,7 +45,7 @@ for await (const chunk of stream) {
45
45
  | `mistral/ministral-8b-latest` | 262K | | | | | | $0.10 | $0.10 |
46
46
  | `mistral/mistral-embed` | 8K | | | | | | $0.10 | — |
47
47
  | `mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
48
- | `mistral/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
48
+ | `mistral/mistral-large-4` | 1.0M | | | | | | $0.68 | $2 |
49
49
  | `mistral/mistral-large-latest` | 262K | | | | | | $0.50 | $2 |
50
50
  | `mistral/mistral-medium-2604` | 262K | | | | | | $2 | $8 |
51
51
  | `mistral/mistral-medium-latest` | 262K | | | | | | $2 | $8 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NanoGPT logo](https://models.dev/logos/nano-gpt.svg)NanoGPT
6
6
 
7
- Access 609 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
7
+ Access 611 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
 
@@ -192,6 +192,7 @@ for await (const chunk of stream) {
192
192
  | `nano-gpt/gemma-4-12b-it-semancer` | 131K | | | | | | $0.05 | $0.25 |
193
193
  | `nano-gpt/gemma-4-12b-it-station-keeper` | 131K | | | | | | $0.05 | $0.25 |
194
194
  | `nano-gpt/gemma-4-26b-a4b-it-chimerax` | 262K | | | | | | $0.12 | $0.38 |
195
+ | `nano-gpt/gemma-4-26b-a4b-it-chimeraxheretic` | 262K | | | | | | $0.12 | $0.38 |
195
196
  | `nano-gpt/gemma-4-26b-a4b-it-darksoul` | 262K | | | | | | $0.12 | $0.38 |
196
197
  | `nano-gpt/gemma-4-26b-a4b-it-luminous` | 262K | | | | | | $0.12 | $0.38 |
197
198
  | `nano-gpt/gemma-4-26b-a4b-it-moonlight` | 262K | | | | | | $0.12 | $0.38 |
@@ -211,6 +212,7 @@ for await (const chunk of stream) {
211
212
  | `nano-gpt/gemma-4-31b-it-gemsicle` | 262K | | | | | | $0.10 | $0.45 |
212
213
  | `nano-gpt/gemma-4-31b-it-isometry` | 262K | | | | | | $0.10 | $0.45 |
213
214
  | `nano-gpt/gemma-4-31b-it-novelist` | 262K | | | | | | $0.10 | $0.45 |
215
+ | `nano-gpt/gemma-4-31b-it-scarlet` | 262K | | | | | | $0.10 | $0.45 |
214
216
  | `nano-gpt/Gemma-4-31B-MeroMero-v2` | 262K | | | | | | $0.10 | $0.45 |
215
217
  | `nano-gpt/Gemma-4-31B-MeroMero-v2:thinking` | 262K | | | | | | $0.10 | $0.45 |
216
218
  | `nano-gpt/Gemma-4-31B-Queen` | 262K | | | | | | $0.31 | $0.31 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Neuralwatt logo](https://models.dev/logos/neuralwatt.svg)Neuralwatt
6
6
 
7
- Access 29 Neuralwatt models through Mastra's model router. Authentication is handled automatically using the `NEURALWATT_API_KEY` environment variable.
7
+ Access 31 Neuralwatt models through Mastra's model router. Authentication is handled automatically using the `NEURALWATT_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Neuralwatt documentation](https://portal.neuralwatt.com/docs).
10
10
 
@@ -54,6 +54,8 @@ for await (const chunk of stream) {
54
54
  | `neuralwatt/kimi-k3` | 1.0M | | | | | | $3 | $15 |
55
55
  | `neuralwatt/kimi-k3-fast` | 1.0M | | | | | | $3 | $15 |
56
56
  | `neuralwatt/kimi-k3-flex` | 1.0M | | | | | | $2 | $10 |
57
+ | `neuralwatt/mimo-v2.6-pro` | 1.0M | | | | | | $0.87 | $2 |
58
+ | `neuralwatt/mimo-v2.6-pro-flex` | 1.0M | | | | | | $0.57 | $1 |
57
59
  | `neuralwatt/qwen-3.8-27b` | 262K | | | | | | $0.45 | $3 |
58
60
  | `neuralwatt/qwen-3.8-27b-flex` | 262K | | | | | | $0.29 | $2 |
59
61
  | `neuralwatt/qwen3.6-35b` | 131K | | | | | | $0.29 | $1 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode Go logo](https://models.dev/logos/opencode-go.svg)OpenCode Go
6
6
 
7
- Access 35 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 36 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/go).
10
10
 
@@ -68,6 +68,7 @@ for await (const chunk of stream) {
68
68
  | `opencode-go/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
69
69
  | `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
70
70
  | `opencode-go/space-bunny` | 1.0M | | | | | | $0.15 | $0.60 |
71
+ | `opencode-go/step-5-preview-free` | 1.0M | | | | | | — | — |
71
72
 
72
73
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
73
74
 
@@ -99,7 +100,7 @@ const agent = new Agent({
99
100
  model: ({ requestContext }) => {
100
101
  const useAdvanced = requestContext.task === "complex";
101
102
  return useAdvanced
102
- ? "opencode-go/space-bunny-free"
103
+ ? "opencode-go/step-5-preview-free"
103
104
  : "opencode-go/claude-haiku-5-5";
104
105
  }
105
106
  });
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode Zen logo](https://models.dev/logos/opencode.svg)OpenCode Zen
6
6
 
7
- Access 119 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 120 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
10
10
 
@@ -59,7 +59,6 @@ for await (const chunk of stream) {
59
59
  | `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
60
60
  | `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
61
61
  | `opencode/exo-free` | 1.0M | | | | | | — | — |
62
- | `opencode/fledge-alpha-free` | 1.0M | | | | | | — | — |
63
62
  | `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
64
63
  | `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
65
64
  | `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
@@ -122,6 +121,7 @@ for await (const chunk of stream) {
122
121
  | `opencode/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
123
122
  | `opencode/qwen3.8-max` | 262K | | | | | | $2 | $6 |
124
123
  | `opencode/space-bunny-free` | 1.0M | | | | | | — | — |
124
+ | `opencode/step-5-preview-free` | 1.0M | | | | | | — | — |
125
125
 
126
126
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
127
127
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Requesty logo](https://models.dev/logos/requesty.svg)Requesty
6
6
 
7
- Access 170 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
7
+ Access 171 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
 
@@ -148,6 +148,7 @@ for await (const chunk of stream) {
148
148
  | `requesty/inkling` | 66K | | | | | | $2 | $5 |
149
149
  | `requesty/inkling-256k` | 262K | | | | | | $2 | $5 |
150
150
  | `requesty/kat-coder-pro` | 256K | | | | | | $0.30 | $1 |
151
+ | `requesty/kimi-k2.5@eu` | 128K | | | | | | $0.72 | $4 |
151
152
  | `requesty/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
152
153
  | `requesty/kimi-k2.6@eu` | 256K | | | | | | $0.95 | $4 |
153
154
  | `requesty/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
@@ -136,7 +136,21 @@ A message lifecycle starts with the initial message in `message_start`. Compact
136
136
 
137
137
  **gateways** (`MastraModelGatewayInterface[]`): Custom model gateways merged with the built-in gateways.
138
138
 
139
- **omConfig** (`AgentControllerOMConfig`): Default observational memory models and thresholds.
139
+ **omConfig** (`AgentControllerOMConfig`): Default observational memory model selections, automatic model resolver, and thresholds.
140
+
141
+ **omConfig.defaultObserverModelId** (`string`): Concrete observer fallback used when automatic resolution returns no model or throws.
142
+
143
+ **omConfig.observerModel** (`'auto' | string`): Default observer model. Use 'auto' to follow the active main model.
144
+
145
+ **omConfig.defaultReflectorModelId** (`string`): Concrete reflector fallback used when automatic resolution returns no model or throws.
146
+
147
+ **omConfig.reflectorModel** (`'auto' | string`): Default reflector model. Use 'auto' to follow the active main model.
148
+
149
+ **omConfig.resolveAutoModelId** (`(args: ResolveAutoOMModelArgs) => string | undefined`): Synchronously resolves an automatic role selection to a concrete model ID from the role, current main model, and read-only session state.
150
+
151
+ **omConfig.defaultObservationThreshold** (`number`): Default observation threshold in tokens.
152
+
153
+ **omConfig.defaultReflectionThreshold** (`number`): Default reflection threshold in tokens.
140
154
 
141
155
  **disableBuiltinTools** (`BuiltinToolId[]`): Built-in controller tools to omit from runs.
142
156
 
@@ -519,11 +519,24 @@ The client SDK exposes the same operation as `session.switchModel(modelId, { thi
519
519
 
520
520
  ## Observational Memory
521
521
 
522
- The observational-memory model selection, grouped by role under `session.om.observer` and `session.om.reflector`. Both roles expose the same methods. Reads return the value from session state when set, falling back to the controller's `omConfig` defaults.
522
+ The observational-memory model selection, grouped by role under `session.om.observer` and `session.om.reflector`. Both roles expose the same methods. Selection intent and the effective concrete model ID are separate values.
523
+
524
+ ### `session.om.observer.model()` / `session.om.reflector.model()`
525
+
526
+ Return the role's configured model.
527
+
528
+ ```typescript
529
+ const observerModel = session.om.observer.model()
530
+ const reflectorModel = session.om.reflector.model()
531
+ ```
532
+
533
+ Returns: `'auto' | string | undefined`
534
+
535
+ `'auto'` follows the active main model. Any other string is an explicit model ID.
523
536
 
524
537
  ### `session.om.observer.modelId()` / `session.om.reflector.modelId()`
525
538
 
526
- Return the role's model ID, or `undefined` when neither session state nor `omConfig` provides one.
539
+ Return the role's effective concrete model ID. For an automatic selection, the controller calls `omConfig.resolveAutoModelId` with the role, current main model ID, and read-only session state. If that resolver returns no model or throws, the role uses its concrete `omConfig` fallback.
527
540
 
528
541
  ```typescript
529
542
  const observer = session.om.observer.modelId()
@@ -541,12 +554,10 @@ const reflectionThreshold = session.om.reflector.threshold()
541
554
 
542
555
  ### `session.om.observer.switchModel({ modelId })` / `session.om.reflector.switchModel({ modelId })`
543
556
 
544
- Switch the role's model. Persists the setting to thread metadata and emits an `om_model_changed` event.
557
+ Switch one role between automatic and explicit selection. Pass `'auto'` to follow the active main model, or pass a concrete model ID to pin the role. Automatic selection clears the role's stale concrete model ID. The other role is unchanged. The emitted `om_model_changed` event continues to contain the effective concrete `modelId`.
545
558
 
546
559
  ```typescript
547
- await session.om.observer.switchModel({
548
- modelId: 'anthropic/claude-haiku-4-5',
549
- })
560
+ await session.om.observer.switchModel({ modelId: 'auto' })
550
561
  await session.om.reflector.switchModel({
551
562
  modelId: 'anthropic/claude-haiku-4-5',
552
563
  })
@@ -263,7 +263,7 @@ Returns: `boolean`
263
263
 
264
264
  **maxSteps** (`number`): Maximum number of steps to run.
265
265
 
266
- **toolsets** (`object`): Additional tool sets available for this run.
266
+ **toolsets** (`object`): Additional tool sets available for this run. Toolset tools contain server-side code that cannot be serialized, so they only work when the Inngest worker runs in the same process as the caller. A worker in a separate process throws an error naming the missing tools. Register these tools on the agent instead. The worker matches toolset tools by name, so if a toolset tool shares a name with an agent tool, the agent tool runs.
267
267
 
268
268
  **clientTools** (`object`): Client-side tools available during execution.
269
269
 
@@ -51,7 +51,7 @@ For the behavioral prompt Mastra Code uses, covering repository exploration, edi
51
51
 
52
52
  **signals** (`SignalProvider[]`): Signal providers for the agent. A TaskSignalProvider is added only when memory is configured, and it is merged into the providers you pass rather than replacing them. Without memory, the agent gets exactly the providers you pass, or none.
53
53
 
54
- **errorProcessors** (`Processor[]`): Error processors for the agent. When omitted, defaults to unknown stream-error retries with specialized ECONNRESET and bad-request policies, plus PrefillErrorHandler, ProviderHistoryCompat, and CyberRefusalHandler.
54
+ **errorProcessors** (`Processor[]`): Error processors for the agent. When omitted, defaults to unknown stream-error retries with specialized ECONNRESET and bad-request policies, plus PrefillErrorHandler, ProviderHistoryCompat, UnsupportedFileHandler, and CyberRefusalHandler.
55
55
 
56
56
  **outputProcessors** (`Processor[]`): Output processors for the agent. When omitted, defaults to CyberRefusalHandler.
57
57
 
@@ -196,7 +196,7 @@ The default [`StreamErrorRetryProcessor`](https://mastra.ai/reference/processors
196
196
  - Network resets (`ECONNRESET` / `socket hang up`) retry up to twice with exponential backoff (`1000ms * 2^retryCount`, capped at `30000ms`).
197
197
  - Bad-request errors retry once after `2000ms`.
198
198
 
199
- Specific network-reset and bad-request policies take precedence over the unknown-error policy. Passing `errorProcessors` sets the base list: any of the three shared defaults your list doesn't name by `id` is still added, at the position its `id` gives it. An empty list gets all three. Setting `errorProcessorDefaults: false` keeps your list exactly as given, adding none of the shared defaults. Without a list, the agent then runs no error processors. A `StreamErrorRetryProcessor` added this way uses the shared defaults, so it retries neither unknown errors nor bad-request (HTTP 400) responses. Supply your own instance in the list to keep either policy. `PrefillErrorHandler` and `ProviderHistoryCompat` are also included for provider compatibility: both repair errors caused by the shape of the message history, such as a provider rejecting a conversation that ends with an assistant message.
199
+ Specific network-reset and bad-request policies take precedence over the unknown-error policy. Passing `errorProcessors` sets the base list: any of the four shared defaults your list doesn't name by `id` is still added, at the position its `id` gives it. An empty list gets all four. Setting `errorProcessorDefaults: false` keeps your list exactly as given, adding none of the shared defaults. Without a list, the agent then runs no error processors. A `StreamErrorRetryProcessor` added this way uses the shared defaults, so it retries neither unknown errors nor bad-request (HTTP 400) responses. Supply your own instance in the list to keep either policy. `PrefillErrorHandler` and `ProviderHistoryCompat` are also included for provider compatibility: both repair errors caused by the shape of the message history, such as a provider rejecting a conversation that ends with an assistant message.
200
200
 
201
201
  [`CyberRefusalHandler`](https://mastra.ai/reference/processors/cyber-refusal-handler) retries once when an OpenAI or Anthropic cybersecurity safeguard refuses a step, which often happens to ordinary coding work. It runs in both `errorProcessors` (OpenAI refusals are API errors) and `outputProcessors` (Anthropic refusals finish the step). Passing either list replaces that half of the handler.
202
202
 
@@ -276,6 +276,7 @@ The Reference section provides documentation of Mastra's API, including paramete
276
276
  - [BatchPartsProcessor](https://mastra.ai/reference/processors/batch-parts-processor)
277
277
  - [ClassifierProcessor](https://mastra.ai/reference/processors/classifier-processor)
278
278
  - [CyberRefusalHandler](https://mastra.ai/reference/processors/cyber-refusal-handler)
279
+ - [FileUploadProcessor](https://mastra.ai/reference/processors/file-upload-processor)
279
280
  - [LanguageDetector](https://mastra.ai/reference/processors/language-detector)
280
281
  - [MemoryInputFilter](https://mastra.ai/reference/processors/memory-input-filter)
281
282
  - [MessageHistory](https://mastra.ai/reference/processors/message-history-processor)
@@ -297,6 +298,7 @@ The Reference section provides documentation of Mastra's API, including paramete
297
298
  - [ToolCallFilter](https://mastra.ai/reference/processors/tool-call-filter)
298
299
  - [ToolSearchProcessor](https://mastra.ai/reference/processors/tool-search-processor)
299
300
  - [UnicodeNormalizer](https://mastra.ai/reference/processors/unicode-normalizer)
301
+ - [UnsupportedFileHandler](https://mastra.ai/reference/processors/unsupported-file-handler)
300
302
  - [WorkingMemory](https://mastra.ai/reference/processors/working-memory-processor)
301
303
  - [CachingPubSub](https://mastra.ai/reference/pubsub/caching-pubsub)
302
304
  - [EventEmitterPubSub](https://mastra.ai/reference/pubsub/event-emitter)
@@ -29,7 +29,7 @@ export const agent = new Agent({
29
29
 
30
30
  ## Configuration
31
31
 
32
- The `observationalMemory` option accepts `true`, a configuration object, or `false`. Setting `true` enables OM with `google/gemini-2.5-flash` as the default model. When passing a config object, set `model` at the top level or on `observation.model` and/or `reflection.model`; when all model fields are omitted, OM falls back to `google/gemini-2.5-flash`.
32
+ The `observationalMemory` option accepts `true`, a configuration object, or `false`. Setting `true` enables OM with automatic model selection. When passing a config object, set `model` at the top level or on `observation.model` and/or `reflection.model`. When all model fields are omitted, each role defaults to `'auto'`.
33
33
 
34
34
  Observer input is multimodal-aware. OM keeps text placeholders like `[Image #1: screenshot.png]` in the transcript it builds for the Observer, and also sends the underlying image parts when possible. This applies to both single-thread observation and batched multi-thread observation. Non-image files appear as placeholders only.
35
35
 
@@ -37,7 +37,11 @@ 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** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with observation.model or reflection.model — an error will be thrown if both are set. When this and observation.model/reflection.model are all omitted, OM falls back to google/gemini-2.5-flash. Use "default" to explicitly use the default model (google/gemini-2.5-flash). (Default: `'google/gemini-2.5-flash'`)
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
+
42
+ **autoModels** (`Record<string, string>`): Overrides the model automatic selection picks for a provider, keyed by provider ID. For example, { openai: "\_\_GATEWAY\_OPENAI\_MODEL\_NANO\_\_" }. Providers not listed use the built-in pick.
43
+
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.
41
45
 
42
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'`)
43
47
 
@@ -55,7 +59,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
55
59
 
56
60
  **observation** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
57
61
 
58
- **observation.model** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Observer agent. 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.
59
63
 
60
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.
61
65
 
@@ -101,7 +105,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
101
105
 
102
106
  **reflection** (`ObservationalMemoryReflectionConfig`): Configuration for the reflection step. Controls when the Reflector agent runs and how it behaves.
103
107
 
104
- **reflection.model** (`string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for the Reflector agent. 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.
108
+ **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.
105
109
 
106
110
  **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.
107
111