@mastra/mcp-docs-server 1.3.6-alpha.7 → 1.3.6

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 (69) hide show
  1. package/.docs/docs/agents/processors.md +6 -5
  2. package/.docs/docs/browser.md +0 -2
  3. package/.docs/docs/deployment/mastra-server.md +2 -2
  4. package/.docs/docs/guides/authentication-identity.md +1 -1
  5. package/.docs/docs/harness/agent-controller.md +29 -0
  6. package/.docs/docs/harness/durable-agents.md +45 -9
  7. package/.docs/docs/harness/signals.md +12 -0
  8. package/.docs/docs/memory/message-history.md +15 -8
  9. package/.docs/docs/memory/observational-memory.md +33 -4
  10. package/.docs/docs/sandbox/overview.md +1 -0
  11. package/.docs/docs/server/pubsub.md +2 -0
  12. package/.docs/docs/subagents.md +1 -0
  13. package/.docs/docs/workflows/overview.md +2 -0
  14. package/.docs/integrations/sandboxes/blaxel.md +3 -1
  15. package/.docs/integrations/sandboxes/e2b.md +32 -1
  16. package/.docs/integrations/sandboxes/railway.md +13 -0
  17. package/.docs/integrations/sandboxes/sprites.md +219 -0
  18. package/.docs/integrations.md +1 -0
  19. package/.docs/models/environment-variables.md +2 -1
  20. package/.docs/models/gateways/merge-gateway.md +3 -1
  21. package/.docs/models/gateways/openrouter.md +1 -12
  22. package/.docs/models/gateways/vercel.md +2 -1
  23. package/.docs/models/index.md +3 -2
  24. package/.docs/models/providers/302ai.md +3 -1
  25. package/.docs/models/providers/ambient.md +17 -15
  26. package/.docs/models/providers/coralbricks.md +2 -2
  27. package/.docs/models/providers/cortecs.md +1 -1
  28. package/.docs/models/providers/deepinfra.md +2 -2
  29. package/.docs/models/providers/digitalocean.md +2 -1
  30. package/.docs/models/providers/edenai.md +305 -299
  31. package/.docs/models/providers/empiriolabs.md +4 -8
  32. package/.docs/models/providers/huggingface.md +7 -4
  33. package/.docs/models/providers/hyper.md +4 -6
  34. package/.docs/models/providers/kilo.md +33 -44
  35. package/.docs/models/providers/llmgateway-providers.md +6 -6
  36. package/.docs/models/providers/llmgateway.md +3 -7
  37. package/.docs/models/providers/lowrouter.md +84 -0
  38. package/.docs/models/providers/moark.md +17 -9
  39. package/.docs/models/providers/nano-gpt.md +12 -12
  40. package/.docs/models/providers/nearai.md +22 -3
  41. package/.docs/models/providers/neuralwatt.md +3 -1
  42. package/.docs/models/providers/novita-ai.md +43 -66
  43. package/.docs/models/providers/ofox.md +2 -1
  44. package/.docs/models/providers/tinfoil.md +1 -2
  45. package/.docs/models/providers.md +2 -1
  46. package/.docs/reference/agent-controller/agent-controller-class.md +15 -1
  47. package/.docs/reference/agent-controller/session.md +17 -6
  48. package/.docs/reference/agents/durable-agent.md +40 -4
  49. package/.docs/reference/agents/inngest-agent.md +27 -1
  50. package/.docs/reference/client-js/agent-controller.md +1 -1
  51. package/.docs/reference/client-js/agents.md +2 -2
  52. package/.docs/reference/client-js/datasets.md +19 -0
  53. package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
  54. package/.docs/reference/core/mastra-class.md +12 -4
  55. package/.docs/reference/index.md +2 -0
  56. package/.docs/reference/memory/observational-memory.md +8 -4
  57. package/.docs/reference/processors/file-upload-processor.md +236 -0
  58. package/.docs/reference/processors/processor-interface.md +2 -0
  59. package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
  60. package/.docs/reference/processors/unsupported-file-handler.md +69 -0
  61. package/.docs/reference/pubsub/lease-provider.md +2 -0
  62. package/.docs/reference/pubsub/valkey-streams.md +1 -1
  63. package/.docs/reference/server/routes.md +1 -0
  64. package/.docs/reference/storage/retention.md +21 -18
  65. package/.docs/reference/tools/isolated-vm-transport.md +0 -2
  66. package/.docs/reference/tools/mcp-client.md +5 -0
  67. package/.docs/reference/tools/quickjs-transport.md +0 -2
  68. package/.docs/reference/workspace/platform-sandbox.md +17 -2
  69. package/package.json +6 -6
@@ -109,9 +109,9 @@ for await (const chunk of stream) {
109
109
  | `nano-gpt/bytedance/doubao-seed-2.1-turbo` | 256K | | | | | | $0.50 | $3 |
110
110
  | `nano-gpt/bytedance/doubao-seed-character` | 128K | | | | | | $0.12 | $0.29 |
111
111
  | `nano-gpt/celeris-1` | 8K | | | | | | $2 | $6 |
112
- | `nano-gpt/claw-high` | 1.0M | | | | | | $0.70 | $2 |
113
- | `nano-gpt/claw-low` | 1.0M | | | | | | $0.70 | $2 |
114
- | `nano-gpt/claw-medium` | 1.0M | | | | | | $0.70 | $2 |
112
+ | `nano-gpt/claw-high` | 1.0M | | | | | | $0.60 | $1 |
113
+ | `nano-gpt/claw-low` | 1.0M | | | | | | $0.60 | $1 |
114
+ | `nano-gpt/claw-medium` | 1.0M | | | | | | $0.60 | $1 |
115
115
  | `nano-gpt/cohere/command-r-plus-08-2024` | 128K | | | | | | $3 | $14 |
116
116
  | `nano-gpt/command-a-reasoning-08-2025` | 256K | | | | | | $3 | $10 |
117
117
  | `nano-gpt/deepcogito/cogito-v1-preview-qwen-32B` | 128K | | | | | | $2 | $2 |
@@ -248,9 +248,9 @@ for await (const chunk of stream) {
248
248
  | `nano-gpt/google/gemma4-31b-splituntied` | 262K | | | | | | $0.10 | $0.30 |
249
249
  | `nano-gpt/Gryphe/MythoMax-L2-13b` | 4K | | | | | | $0.10 | $0.10 |
250
250
  | `nano-gpt/heabsy/cyberheabsy` | 1.0M | | | | | | $2 | $5 |
251
- | `nano-gpt/hermes-high` | 1.0M | | | | | | $0.70 | $2 |
252
- | `nano-gpt/hermes-low` | 1.0M | | | | | | $0.70 | $2 |
253
- | `nano-gpt/hermes-medium` | 1.0M | | | | | | $0.70 | $2 |
251
+ | `nano-gpt/hermes-high` | 1.0M | | | | | | $0.60 | $1 |
252
+ | `nano-gpt/hermes-low` | 1.0M | | | | | | $0.60 | $1 |
253
+ | `nano-gpt/hermes-medium` | 1.0M | | | | | | $0.60 | $1 |
254
254
  | `nano-gpt/holo3-35b-a3b` | 66K | | | | | | $0.25 | $2 |
255
255
  | `nano-gpt/holo3-35b-a3b:thinking` | 66K | | | | | | $0.25 | $2 |
256
256
  | `nano-gpt/huihui-ai/DeepSeek-R1-Distill-Llama-70B-abliterated` | 16K | | | | | | $0.70 | $0.70 |
@@ -447,7 +447,7 @@ for await (const chunk of stream) {
447
447
  | `nano-gpt/qwen/qwen3-coder` | 262K | | | | | | $0.13 | $0.50 |
448
448
  | `nano-gpt/qwen/qwen3-coder-30b-a3b-instruct` | 128K | | | | | | $0.10 | $0.40 |
449
449
  | `nano-gpt/qwen/qwen3-coder-flash` | 128K | | | | | | $0.30 | $2 |
450
- | `nano-gpt/qwen/qwen3-coder-next` | 262K | | | | | | $0.20 | $2 |
450
+ | `nano-gpt/qwen/qwen3-coder-next` | 262K | | | | | | $0.25 | $0.80 |
451
451
  | `nano-gpt/qwen/qwen3-coder-plus` | 128K | | | | | | $1 | $5 |
452
452
  | `nano-gpt/qwen/qwen3-max` | 256K | | | | | | $1 | $6 |
453
453
  | `nano-gpt/qwen/qwen3-max-2026-01-23` | 256K | | | | | | $1 | $6 |
@@ -498,8 +498,8 @@ for await (const chunk of stream) {
498
498
  | `nano-gpt/qwen/qwen3.8-27b-queen` | 524K | | | | | | $0.25 | $2 |
499
499
  | `nano-gpt/qwen/qwen3.8-27b-swift` | 262K | | | | | | $0.10 | $0.60 |
500
500
  | `nano-gpt/qwen/qwen3.8-27b-synthia` | 262K | | | | | | $0.10 | $0.60 |
501
- | `nano-gpt/qwen/qwen3.8-27b-uncensored` | 1.0M | | | | | | $0.15 | $1 |
502
- | `nano-gpt/qwen/qwen3.8-27b-uncensored:thinking` | 1.0M | | | | | | $0.15 | $1 |
501
+ | `nano-gpt/qwen/qwen3.8-27b-uncensored` | 1.0M | | | | | | $0.75 | $3 |
502
+ | `nano-gpt/qwen/qwen3.8-27b-uncensored:thinking` | 1.0M | | | | | | $0.75 | $3 |
503
503
  | `nano-gpt/qwen/qwen3.8-27b:thinking` | 1.0M | | | | | | $0.15 | $0.70 |
504
504
  | `nano-gpt/qwen/qwen3.8-flash` | 992K | | | | | | $0.14 | $0.42 |
505
505
  | `nano-gpt/qwen/qwen3.8-max` | 991K | | | | | | $2 | $6 |
@@ -638,17 +638,17 @@ for await (const chunk of stream) {
638
638
  | `nano-gpt/z-ai/glm-5.1:thinking` | 200K | | | | | | $0.75 | $3 |
639
639
  | `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
640
640
  | `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
641
- | `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $0.70 | $2 |
641
+ | `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $0.60 | $1 |
642
642
  | `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.30 |
643
643
  | `nano-gpt/z-ai/glm-5.3-flash-apex` | 1.0M | | | | | | $0.15 | $0.50 |
644
644
  | `nano-gpt/z-ai/glm-5.3-flash-apex-abliterated` | 1.0M | | | | | | $0.15 | $0.50 |
645
645
  | `nano-gpt/z-ai/glm-5.3-flash-cybersecurity` | 1.0M | | | | | | $0.15 | $0.50 |
646
646
  | `nano-gpt/z-ai/glm-5.3-flash-uncensored` | 1.0M | | | | | | $0.20 | $0.80 |
647
647
  | `nano-gpt/z-ai/glm-5.3-uncensored` | 1.0M | | | | | | $1 | $2 |
648
- | `nano-gpt/z-ai/glm-5.3:thinking` | 1.0M | | | | | | $0.70 | $2 |
648
+ | `nano-gpt/z-ai/glm-5.3:thinking` | 1.0M | | | | | | $0.60 | $1 |
649
649
  | `nano-gpt/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
650
650
  | `nano-gpt/z-ai/glm-5v-turbo:thinking` | 203K | | | | | | $1 | $4 |
651
- | `nano-gpt/z-ai/glm-latest` | 1.0M | | | | | | $0.70 | $2 |
651
+ | `nano-gpt/z-ai/glm-latest` | 1.0M | | | | | | $0.60 | $1 |
652
652
 
653
653
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
654
654
 
@@ -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 32 NEAR AI Cloud models through Mastra's model router. Authentication is handled automatically using the `NEARAI_API_KEY` environment variable.
7
+ Access 51 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
 
@@ -38,17 +38,26 @@ for await (const chunk of stream) {
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `nearai/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
42
+ | `nearai/anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
41
43
  | `nearai/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
42
44
  | `nearai/anthropic/claude-opus-4-6` | 200K | | | | | | $5 | $25 |
43
45
  | `nearai/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
46
+ | `nearai/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
47
+ | `nearai/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
44
48
  | `nearai/anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
45
49
  | `nearai/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
50
+ | `nearai/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
46
51
  | `nearai/black-forest-labs/FLUX.2-klein-4B` | 128K | | | | | | $1 | $1 |
52
+ | `nearai/deepseek/deepseek-v3.2` | 128K | | | | | | $1 | $1 |
47
53
  | `nearai/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
48
54
  | `nearai/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
49
55
  | `nearai/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
50
56
  | `nearai/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
51
57
  | `nearai/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
58
+ | `nearai/google/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
59
+ | `nearai/moonshotai/kimi-k2.6` | 262K | | | | | | $0.81 | $4 |
60
+ | `nearai/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $17 |
52
61
  | `nearai/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
53
62
  | `nearai/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
54
63
  | `nearai/openai/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
@@ -61,6 +70,12 @@ for await (const chunk of stream) {
61
70
  | `nearai/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
62
71
  | `nearai/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
63
72
  | `nearai/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
73
+ | `nearai/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
74
+ | `nearai/openai/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
75
+ | `nearai/openai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
76
+ | `nearai/openai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
77
+ | `nearai/openai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
78
+ | `nearai/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
64
79
  | `nearai/openai/o3` | 200K | | | | | | $2 | $8 |
65
80
  | `nearai/openai/o3-mini` | 200K | | | | | | $1 | $4 |
66
81
  | `nearai/openai/o4-mini` | 200K | | | | | | $1 | $4 |
@@ -68,8 +83,12 @@ for await (const chunk of stream) {
68
83
  | `nearai/Qwen/Qwen3-Embedding-0.6B` | 33K | | | | | | $0.01 | $0.01 |
69
84
  | `nearai/Qwen/Qwen3-Reranker-0.6B` | 41K | | | | | | $0.01 | $0.01 |
70
85
  | `nearai/Qwen/Qwen3-VL-30B-A3B-Instruct` | 16K | | | | | | $0.15 | $0.55 |
86
+ | `nearai/qwen/qwen3.5-397b-a17b` | 262K | | | | | | $0.50 | $3 |
71
87
  | `nearai/Qwen/Qwen3.6-35B-A3B-FP8` | 262K | | | | | | $0.17 | $1 |
72
- | `nearai/zai-org/GLM-5.1-FP8` | 203K | | | | | | $1 | $4 |
88
+ | `nearai/qwen/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
89
+ | `nearai/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.04 | $1 |
90
+ | `nearai/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
91
+ | `nearai/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
73
92
 
74
93
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
75
94
 
@@ -101,7 +120,7 @@ const agent = new Agent({
101
120
  model: ({ requestContext }) => {
102
121
  const useAdvanced = requestContext.task === "complex";
103
122
  return useAdvanced
104
- ? "nearai/zai-org/GLM-5.1-FP8"
123
+ ? "nearai/z-ai/glm-5.3-flash"
105
124
  : "nearai/Qwen/Qwen3-Embedding-0.6B";
106
125
  }
107
126
  });
@@ -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 |
@@ -2,11 +2,11 @@
2
2
 
3
3
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
4
4
 
5
- # ![NovitaAI logo](https://models.dev/logos/novita-ai.svg)NovitaAI
5
+ # ![Novita AI logo](https://models.dev/logos/novita-ai.svg)Novita AI
6
6
 
7
- Access 107 NovitaAI models through Mastra's model router. Authentication is handled automatically using the `NOVITA_API_KEY` environment variable.
7
+ Access 84 Novita AI models through Mastra's model router. Authentication is handled automatically using the `NOVITA_API_KEY` environment variable.
8
8
 
9
- Learn more in the [NovitaAI documentation](https://novita.ai/docs/guides/introduction).
9
+ Learn more in the [Novita AI documentation](https://novita.ai/docs/guides/introduction).
10
10
 
11
11
  ```bash
12
12
  NOVITA_API_KEY=your-api-key
@@ -19,7 +19,7 @@ const agent = new Agent({
19
19
  id: "my-agent",
20
20
  name: "My Agent",
21
21
  instructions: "You are a helpful assistant",
22
- model: "novita-ai/baichuan/baichuan-m2-32b"
22
+ model: "novita-ai/apodex/apodex-1.1-mini"
23
23
  });
24
24
 
25
25
  // Generate a response
@@ -32,61 +32,50 @@ for await (const chunk of stream) {
32
32
  }
33
33
  ```
34
34
 
35
- > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [NovitaAI documentation](https://novita.ai/docs/guides/introduction) for details.
35
+ > **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Novita AI documentation](https://novita.ai/docs/guides/introduction) for details.
36
36
 
37
37
  ## Models
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | ------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `novita-ai/apodex/apodex-1.1-mini` | 262K | | | | | | — | — |
42
+ | `novita-ai/baai/bge-m3` | 8K | | | | | | $0.01 | — |
43
+ | `novita-ai/baai/bge-reranker-v2-m3` | 8K | | | | | | $0.01 | — |
41
44
  | `novita-ai/baichuan/baichuan-m2-32b` | 131K | | | | | | $0.07 | $0.07 |
45
+ | `novita-ai/baidu/cobuddy` | 131K | | | | | | $0.28 | $1 |
42
46
  | `novita-ai/baidu/ernie-4.5-21B-a3b` | 120K | | | | | | $0.07 | $0.28 |
43
- | `novita-ai/baidu/ernie-4.5-21B-a3b-thinking` | 131K | | | | | | $0.07 | $0.28 |
44
- | `novita-ai/baidu/ernie-4.5-300b-a47b-paddle` | 123K | | | | | | $0.28 | $1 |
45
- | `novita-ai/baidu/ernie-4.5-vl-28b-a3b` | 30K | | | | | | $0.14 | $0.56 |
46
- | `novita-ai/baidu/ernie-4.5-vl-28b-a3b-thinking` | 131K | | | | | | $0.39 | $0.39 |
47
- | `novita-ai/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
48
- | `novita-ai/deepseek/deepseek-ocr` | 8K | | | | | | $0.03 | $0.03 |
47
+ | `novita-ai/deepseek/deepseek_v3` | 64K | | | | | | $0.89 | $0.89 |
49
48
  | `novita-ai/deepseek/deepseek-ocr-2` | 8K | | | | | | $0.03 | $0.03 |
50
- | `novita-ai/deepseek/deepseek-prover-v2-671b` | 160K | | | | | | $0.70 | $3 |
51
49
  | `novita-ai/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.70 | $3 |
52
50
  | `novita-ai/deepseek/deepseek-r1-0528-qwen3-8b` | 128K | | | | | | $0.06 | $0.09 |
53
- | `novita-ai/deepseek/deepseek-r1-distill-llama-70b` | 8K | | | | | | $0.80 | $0.80 |
54
- | `novita-ai/deepseek/deepseek-r1-distill-qwen-14b` | 33K | | | | | | $0.15 | $0.15 |
55
- | `novita-ai/deepseek/deepseek-r1-distill-qwen-32b` | 64K | | | | | | $0.30 | $0.30 |
56
51
  | `novita-ai/deepseek/deepseek-r1-turbo` | 64K | | | | | | $0.70 | $3 |
57
- | `novita-ai/deepseek/deepseek-v3-0324` | 164K | | | | | | $0.27 | $1 |
58
- | `novita-ai/deepseek/deepseek-v3-turbo` | 64K | | | | | | $0.40 | $1 |
59
- | `novita-ai/deepseek/deepseek-v3.1` | 131K | | | | | | $0.27 | $1 |
60
- | `novita-ai/deepseek/deepseek-v3.1-terminus` | 131K | | | | | | $0.27 | $1 |
61
- | `novita-ai/deepseek/deepseek-v3.2` | 164K | | | | | | $0.27 | $0.40 |
62
- | `novita-ai/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
63
- | `novita-ai/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
52
+ | `novita-ai/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
64
53
  | `novita-ai/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
54
+ | `novita-ai/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
55
+ | `novita-ai/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
65
56
  | `novita-ai/google/gemma-3-12b-it` | 131K | | | | | | $0.05 | $0.10 |
66
57
  | `novita-ai/google/gemma-3-27b-it` | 98K | | | | | | $0.12 | $0.20 |
67
58
  | `novita-ai/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.13 | $0.40 |
68
59
  | `novita-ai/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
69
60
  | `novita-ai/gryphe/mythomax-l2-13b` | 4K | | | | | | $0.09 | $0.09 |
70
- | `novita-ai/inclusionai/ling-2.6-1t` | 262K | | | | | | $0.30 | $3 |
71
- | `novita-ai/inclusionai/ling-2.6-flash` | 262K | | | | | | $0.10 | $0.30 |
72
- | `novita-ai/inclusionai/ring-2.6-1t` | 262K | | | | | | $0.30 | $3 |
73
- | `novita-ai/kwaipilot/kat-coder-pro` | 256K | | | | | | $0.30 | $1 |
74
- | `novita-ai/meta-llama/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
75
- | `novita-ai/meta-llama/llama-3-8b-instruct` | 8K | | | | | | $0.04 | $0.04 |
61
+ | `novita-ai/inclusionai/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
62
+ | `novita-ai/inclusionai/ling-3.0-flash-fin` | 262K | | | | | | $0.07 | $0.22 |
63
+ | `novita-ai/inclusionai/ling-3.0-flash-sante` | 262K | | | | | | $0.07 | $0.22 |
64
+ | `novita-ai/inclusionai/ling-3.0-flash-vl` | 262K | | | | | | $0.07 | $0.22 |
65
+ | `novita-ai/inclusionai/ling-3.1-flash` | 262K | | | | | | — | — |
76
66
  | `novita-ai/meta-llama/llama-3.1-8b-instruct` | 16K | | | | | | $0.02 | $0.05 |
77
- | `novita-ai/meta-llama/llama-3.2-3b-instruct` | 33K | | | | | | $0.03 | $0.05 |
78
- | `novita-ai/meta-llama/llama-3.3-70b-instruct` | 131K | | | | | | $0.14 | $0.40 |
67
+ | `novita-ai/meta-llama/llama-3.2-1b-instruct` | 131K | | | | | | $0.02 | $0.02 |
68
+ | `novita-ai/meta-llama/llama-3.3-70b-instruct` | 12K | | | | | | $0.14 | $0.40 |
79
69
  | `novita-ai/meta-llama/llama-4-maverick-17b-128e-instruct-fp8` | 1.0M | | | | | | $0.27 | $0.85 |
80
70
  | `novita-ai/meta-llama/llama-4-scout-17b-16e-instruct` | 131K | | | | | | $0.18 | $0.59 |
81
71
  | `novita-ai/microsoft/wizardlm-2-8x22b` | 66K | | | | | | $0.62 | $0.62 |
82
- | `novita-ai/minimax/minimax-m2` | 205K | | | | | | $0.30 | $1 |
83
- | `novita-ai/minimax/minimax-m2.1` | 205K | | | | | | $0.30 | $1 |
72
+ | `novita-ai/mindai/macaron-v1-tall` | 262K | | | | | | $0.25 | $1 |
73
+ | `novita-ai/mindai/macaron-v1-venti` | 1.0M | | | | | | $0.82 | $2 |
84
74
  | `novita-ai/minimax/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
85
- | `novita-ai/minimax/minimax-m2.5-highspeed` | 205K | | | | | | $0.60 | $2 |
86
75
  | `novita-ai/minimax/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
87
76
  | `novita-ai/minimax/minimax-m2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
77
+ | `novita-ai/minimax/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
88
78
  | `novita-ai/minimaxai/minimax-m1-80k` | 1.0M | | | | | | $0.55 | $2 |
89
- | `novita-ai/mistralai/mistral-nemo` | 60K | | | | | | $0.04 | $0.17 |
90
79
  | `novita-ai/moonshotai/kimi-k2-0905` | 262K | | | | | | $0.60 | $3 |
91
80
  | `novita-ai/moonshotai/kimi-k2-instruct` | 131K | | | | | | $0.57 | $2 |
92
81
  | `novita-ai/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
@@ -95,47 +84,33 @@ for await (const chunk of stream) {
95
84
  | `novita-ai/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
96
85
  | `novita-ai/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
97
86
  | `novita-ai/nousresearch/hermes-2-pro-llama-3-8b` | 8K | | | | | | $0.14 | $0.14 |
87
+ | `novita-ai/nvidia/nemotron-3-nano-30b-a3b` | 262K | | | | | | $0.05 | $0.20 |
98
88
  | `novita-ai/openai/gpt-oss-120b` | 131K | | | | | | $0.05 | $0.25 |
99
- | `novita-ai/openai/gpt-oss-20b` | 131K | | | | | | $0.04 | $0.15 |
100
89
  | `novita-ai/paddlepaddle/paddleocr-vl` | 16K | | | | | | $0.02 | $0.02 |
101
- | `novita-ai/qwen/qwen-2.5-72b-instruct` | 32K | | | | | | $0.38 | $0.40 |
102
90
  | `novita-ai/qwen/qwen-mt-plus` | 16K | | | | | | $0.25 | $0.75 |
103
- | `novita-ai/qwen/qwen2.5-7b-instruct` | 32K | | | | | | $0.07 | $0.07 |
104
- | `novita-ai/qwen/qwen2.5-vl-72b-instruct` | 33K | | | | | | $0.80 | $0.80 |
105
- | `novita-ai/qwen/qwen3-235b-a22b-fp8` | 41K | | | | | | $0.20 | $0.80 |
106
- | `novita-ai/qwen/qwen3-235b-a22b-instruct-2507` | 131K | | | | | | $0.09 | $0.58 |
107
- | `novita-ai/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.30 | $3 |
108
- | `novita-ai/qwen/qwen3-30b-a3b-fp8` | 41K | | | | | | $0.09 | $0.45 |
109
- | `novita-ai/qwen/qwen3-32b-fp8` | 41K | | | | | | $0.10 | $0.45 |
110
- | `novita-ai/qwen/qwen3-4b-fp8` | 128K | | | | | | $0.03 | $0.03 |
111
- | `novita-ai/qwen/qwen3-8b-fp8` | 128K | | | | | | $0.04 | $0.14 |
112
- | `novita-ai/qwen/qwen3-coder-30b-a3b-instruct` | 160K | | | | | | $0.07 | $0.27 |
113
- | `novita-ai/qwen/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.38 | $2 |
114
- | `novita-ai/qwen/qwen3-coder-next` | 262K | | | | | | $0.20 | $2 |
115
- | `novita-ai/qwen/qwen3-max` | 262K | | | | | | $2 | $8 |
116
- | `novita-ai/qwen/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.15 | $2 |
117
- | `novita-ai/qwen/qwen3-next-80b-a3b-thinking` | 131K | | | | | | $0.15 | $2 |
118
- | `novita-ai/qwen/qwen3-omni-30b-a3b-instruct` | 66K | | | | | | $0.25 | $0.97 |
91
+ | `novita-ai/qwen/qwen3-embedding-8b` | 33K | | | | | | $0.07 | — |
119
92
  | `novita-ai/qwen/qwen3-omni-30b-a3b-thinking` | 66K | | | | | | $0.25 | $0.97 |
120
- | `novita-ai/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.30 | $2 |
121
- | `novita-ai/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.98 | $4 |
93
+ | `novita-ai/qwen/qwen3-reranker-8b` | 33K | | | | | | $0.05 | — |
122
94
  | `novita-ai/qwen/qwen3-vl-30b-a3b-instruct` | 131K | | | | | | $0.20 | $0.70 |
123
- | `novita-ai/qwen/qwen3-vl-30b-a3b-thinking` | 131K | | | | | | $0.20 | $1 |
124
- | `novita-ai/qwen/qwen3-vl-8b-instruct` | 131K | | | | | | $0.08 | $0.50 |
125
95
  | `novita-ai/qwen/qwen3.5-122b-a10b` | 262K | | | | | | $0.40 | $3 |
126
96
  | `novita-ai/qwen/qwen3.5-27b` | 262K | | | | | | $0.30 | $2 |
127
97
  | `novita-ai/qwen/qwen3.5-35b-a3b` | 262K | | | | | | $0.25 | $2 |
128
98
  | `novita-ai/qwen/qwen3.5-397b-a17b` | 262K | | | | | | $0.60 | $4 |
99
+ | `novita-ai/qwen/qwen3.6-27b` | 262K | | | | | | $0.60 | $4 |
100
+ | `novita-ai/qwen/qwen3.6-35b-a3b` | 262K | | | | | | $0.25 | $1 |
129
101
  | `novita-ai/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
130
- | `novita-ai/sao10K/l3-70b-euryale-v2.1` | 8K | | | | | | $1 | $1 |
131
- | `novita-ai/sao10K/l3-8b-lunaris` | 8K | | | | | | $0.05 | $0.05 |
132
- | `novita-ai/sao10K/L3-8B-stheno-v3.2` | 8K | | | | | | $0.05 | $0.05 |
133
- | `novita-ai/sao10K/l31-70b-euryale-v2.2` | 8K | | | | | | $1 | $1 |
134
- | `novita-ai/xiaomimimo/mimo-v2-flash` | 262K | | | | | | $0.10 | $0.30 |
135
- | `novita-ai/xiaomimimo/mimo-v2-pro` | 1.0M | | | | | | $2 | $6 |
102
+ | `novita-ai/qwen/qwen3.8-2.4t-a95b` | 1.0M | | | | | | $2 | $6 |
103
+ | `novita-ai/qwen/qwen3.8-27b` | 1.0M | | | | | | $0.42 | $3 |
104
+ | `novita-ai/qwen/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
105
+ | `novita-ai/qwen/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
106
+ | `novita-ai/stepfun/step-3.7-flash` | 262K | | | | | | $0.20 | $1 |
107
+ | `novita-ai/tencent/hy3` | 262K | | | | | | $0.14 | $0.58 |
108
+ | `novita-ai/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
109
+ | `novita-ai/xiaomimimo/mimo-v2.5` | 1.0M | | | | | | $0.17 | $0.34 |
136
110
  | `novita-ai/xiaomimimo/mimo-v2.5-pro` | 1.0M | | | | | | $0.52 | $1 |
111
+ | `novita-ai/xiaomimimo/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
112
+ | `novita-ai/xiaomimimo/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
137
113
  | `novita-ai/zai-org/autoglm-phone-9b-multilingual` | 66K | | | | | | $0.04 | $0.14 |
138
- | `novita-ai/zai-org/glm-4.5` | 131K | | | | | | $0.60 | $2 |
139
114
  | `novita-ai/zai-org/glm-4.5-air` | 131K | | | | | | $0.13 | $0.85 |
140
115
  | `novita-ai/zai-org/glm-4.5v` | 66K | | | | | | $0.60 | $2 |
141
116
  | `novita-ai/zai-org/glm-4.6` | 205K | | | | | | $0.55 | $2 |
@@ -145,6 +120,8 @@ for await (const chunk of stream) {
145
120
  | `novita-ai/zai-org/glm-5` | 203K | | | | | | $1 | $3 |
146
121
  | `novita-ai/zai-org/glm-5.1` | 205K | | | | | | $1 | $4 |
147
122
  | `novita-ai/zai-org/glm-5.2` | 1.0M | | | | | | $1 | $4 |
123
+ | `novita-ai/zai-org/glm-5.3` | 1.0M | | | | | | $1 | $4 |
124
+ | `novita-ai/zai-org/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
148
125
 
149
126
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
150
127
 
@@ -158,7 +135,7 @@ const agent = new Agent({
158
135
  name: "custom-agent",
159
136
  model: {
160
137
  url: "https://api.novita.ai/openai",
161
- id: "novita-ai/baichuan/baichuan-m2-32b",
138
+ id: "novita-ai/apodex/apodex-1.1-mini",
162
139
  apiKey: process.env.NOVITA_API_KEY,
163
140
  headers: {
164
141
  "X-Custom-Header": "value"
@@ -176,8 +153,8 @@ const agent = new Agent({
176
153
  model: ({ requestContext }) => {
177
154
  const useAdvanced = requestContext.task === "complex";
178
155
  return useAdvanced
179
- ? "novita-ai/zai-org/glm-5.2"
180
- : "novita-ai/baichuan/baichuan-m2-32b";
156
+ ? "novita-ai/zai-org/glm-5.3-flash"
157
+ : "novita-ai/apodex/apodex-1.1-mini";
181
158
  }
182
159
  });
183
160
  ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Ofox logo](https://models.dev/logos/ofox.svg)Ofox
6
6
 
7
- Access 151 Ofox models through Mastra's model router. Authentication is handled automatically using the `OFOX_API_KEY` environment variable.
7
+ Access 152 Ofox models through Mastra's model router. Authentication is handled automatically using the `OFOX_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Ofox documentation](https://ofox.ai/docs).
10
10
 
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
41
41
  | `ofox/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
42
42
  | `ofox/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
43
43
  | `ofox/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
44
+ | `ofox/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
44
45
  | `ofox/anthropic/claude-opus-4.5` | 200K | | | | | | $5 | $25 |
45
46
  | `ofox/anthropic/claude-opus-4.6` | 1.0M | | | | | | $5 | $25 |
46
47
  | `ofox/anthropic/claude-opus-4.7` | 1.0M | | | | | | $5 | $25 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Tinfoil logo](https://models.dev/logos/tinfoil.svg)Tinfoil
6
6
 
7
- Access 9 Tinfoil models through Mastra's model router. Authentication is handled automatically using the `TINFOIL_API_KEY` environment variable.
7
+ Access 8 Tinfoil models through Mastra's model router. Authentication is handled automatically using the `TINFOIL_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Tinfoil documentation](https://docs.tinfoil.sh).
10
10
 
@@ -41,7 +41,6 @@ for await (const chunk of stream) {
41
41
  | `tinfoil/deepseek-v4-1-flash` | 1.0M | | | | | | $0.65 | $1 |
42
42
  | `tinfoil/gemma4-31b` | 262K | | | | | | $0.40 | $1 |
43
43
  | `tinfoil/glm-5-3` | 1.0M | | | | | | $2 | $6 |
44
- | `tinfoil/glm-5-3-flash` | 1.0M | | | | | | $0.40 | $1 |
45
44
  | `tinfoil/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
46
45
  | `tinfoil/gpt-oss-safeguard-120b` | 131K | | | | | | $0.15 | $0.60 |
47
46
  | `tinfoil/kimi-k3` | 262K | | | | | | $4 | $20 |
@@ -108,6 +108,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
108
108
  - [LLMTR](https://mastra.ai/models/providers/llmtr)
109
109
  - [LMStudio](https://mastra.ai/models/providers/lmstudio)
110
110
  - [LongCat](https://mastra.ai/models/providers/longcat)
111
+ - [LowRouter](https://mastra.ai/models/providers/lowrouter)
111
112
  - [LucidQuery](https://mastra.ai/models/providers/lucidquery)
112
113
  - [Lynkr](https://mastra.ai/models/providers/lynkr)
113
114
  - [Meganova](https://mastra.ai/models/providers/meganova)
@@ -133,7 +134,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
133
134
  - [NeoSmith](https://mastra.ai/models/providers/neosmith)
134
135
  - [Neuralwatt](https://mastra.ai/models/providers/neuralwatt)
135
136
  - [Nova](https://mastra.ai/models/providers/nova)
136
- - [NovitaAI](https://mastra.ai/models/providers/novita-ai)
137
+ - [Novita AI](https://mastra.ai/models/providers/novita-ai)
137
138
  - [Nvidia](https://mastra.ai/models/providers/nvidia)
138
139
  - [OCI Generative AI](https://mastra.ai/models/providers/oci)
139
140
  - [Ofox](https://mastra.ai/models/providers/ofox)
@@ -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
  })
@@ -164,7 +164,7 @@ Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
164
164
 
165
165
  #### `resume(runId, resumeData, options?)`
166
166
 
167
- Resumes a suspended run, for example after a tool approval. Pass the `runId` from the original stream and the data the run was waiting on. Throws if no registry entry exists for the run.
167
+ Resumes a suspended run, for example after a tool approval. Pass the `runId` from the original stream and the data the run was waiting on. Throws if no registry entry exists for the run. If another execution holds the run, `resume()` waits up to 5 seconds for it to finish, then throws `DURABLE_AGENT_EXECUTION_CONFLICT`. See [run ownership](https://mastra.ai/docs/harness/durable-agents).
168
168
 
169
169
  ```typescript
170
170
  const { output, cleanup } = await durableAgent.resume(runId, {
@@ -324,11 +324,18 @@ interface DurableAgentListActiveRunsResult {
324
324
 
325
325
  #### `recoverActiveRuns(options?)`
326
326
 
327
- Discovers runs stuck in `running` status for this agent and re-drives them from the last persisted snapshot. Accepts the same filters and pagination as `listActiveRuns()`, plus `runId`. Returns a summary of what was recovered.
327
+ Discovers runs stuck in `running` status for this agent and re-drives them from the last persisted snapshot. Accepts the same filters and pagination as `listActiveRuns()`, plus `runId`. Returns the outcome for each run.
328
328
 
329
329
  ```typescript
330
330
  const result = await durableAgent.recoverActiveRuns()
331
- // { recovered: [{ runId, status }], succeeded: 2, failed: 0 }
331
+ // {
332
+ // recovered: [
333
+ // { runId: 'run-1', status: 'success' },
334
+ // { runId: 'run-2', status: 'skipped', reason: 'run-active', retryAt: 1760123456789 },
335
+ // ],
336
+ // succeeded: 1,
337
+ // failed: 0,
338
+ // }
332
339
  ```
333
340
 
334
341
  Pass a `runId` to recover a single known run:
@@ -337,11 +344,26 @@ Pass a `runId` to recover a single known run:
337
344
  await durableAgent.recoverActiveRuns({ runId: 'run-abc-123' })
338
345
  ```
339
346
 
347
+ A run that another execution still drives isn't taken over. Its entry has `status: 'skipped'` and a `reason`, and `recoverActiveRuns()` doesn't check it again. For a run held by another process, `retryAt` is the time after which that claim lapses unless renewed. Call `recoverActiveRuns({ runId })` after it to recover the run if its process crashed. [`mastra.recoverAllDurableAgents()`](https://mastra.ai/reference/core/mastra-class) schedules these re-checks itself.
348
+
349
+ | `reason` | Meaning |
350
+ | --------------------- | ------------------------------------------------------------------------------ |
351
+ | `run-active` | Another execution, possibly in another process, holds the run. Sets `retryAt`. |
352
+ | `run-active-locally` | This process is executing the run. |
353
+ | `already-in-progress` | This process is already recovering the run. |
354
+
340
355
  Returns:
341
356
 
342
357
  ```typescript
343
358
  interface DurableAgentRecoverActiveRunsResult {
344
- recovered: Array<{ runId: string; status: 'success' | 'failed'; error?: Error }>
359
+ recovered: Array<{
360
+ runId: string
361
+ status: 'success' | 'failed' | 'skipped'
362
+ error?: Error
363
+ reason?: 'run-active' | 'run-active-locally' | 'already-in-progress'
364
+ // Epoch milliseconds
365
+ retryAt?: number
366
+ }>
345
367
  succeeded: number
346
368
  failed: number
347
369
  }
@@ -363,6 +385,20 @@ await output.text
363
385
  cleanup()
364
386
  ```
365
387
 
388
+ `recover()` throws instead of recovering a run that isn't orphaned:
389
+
390
+ | Error ID | Thrown when |
391
+ | ------------------------------------------- | -------------------------------------------------------------------- |
392
+ | `DURABLE_AGENT_RUN_ACTIVE` | Another execution holds the run, and `force` isn't set. |
393
+ | `DURABLE_AGENT_RECOVER_RUN_ACTIVE_LOCALLY` | This process is executing the run. `force` doesn't override this. |
394
+ | `DURABLE_AGENT_RECOVER_ALREADY_IN_PROGRESS` | This process is already recovering the run. |
395
+ | `DURABLE_AGENT_RECOVER_RUN_SUSPENDED` | The run is suspended. Continue it with `resume()`. |
396
+ | `DURABLE_AGENT_EXECUTION_CONFLICT` | With `force`, another execution claimed the run during the takeover. |
397
+
398
+ The server's `POST /agents/:agentId/recover` route returns these errors as `409 Conflict`.
399
+
400
+ **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`)
401
+
366
402
  Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
367
403
 
368
404
  ## Stream options