@mastra/mcp-docs-server 1.2.24-alpha.7 → 1.2.24
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.
- package/.docs/docs/agents/processors.md +1 -0
- package/.docs/docs/evals/datasets.md +13 -3
- package/.docs/docs/evals/experiments.md +8 -0
- package/.docs/docs/guides/agent-lifecycle.md +161 -0
- package/.docs/docs/harness/durable-agents.md +11 -0
- package/.docs/docs/index.md +7 -7
- package/.docs/docs/server/middleware.md +17 -7
- package/.docs/docs/server/request-context.md +7 -5
- package/.docs/docs/workflows/control-flow.md +0 -8
- package/.docs/integrations/browsers/browser-viewer.md +10 -2
- package/.docs/integrations/databases/clickhouse.md +6 -0
- package/.docs/integrations/deploy/kubernetes-helm.md +13 -2
- package/.docs/integrations/frameworks/tanstack-start.md +3 -3
- package/.docs/integrations/observability/langfuse.md +3 -0
- package/.docs/integrations/tools/parallel.md +2 -2
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/neon.md +5 -1
- package/.docs/models/gateways/netlify.md +3 -3
- package/.docs/models/gateways/openrouter.md +8 -9
- package/.docs/models/gateways/vercel.md +9 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +52 -33
- package/.docs/models/providers/anthropic.md +1 -31
- package/.docs/models/providers/cerebras.md +6 -36
- package/.docs/models/providers/cline-pass.md +2 -1
- package/.docs/models/providers/cortecs.md +2 -5
- package/.docs/models/providers/crof.md +27 -26
- package/.docs/models/providers/crossmodel.md +2 -2
- package/.docs/models/providers/crusoe.md +7 -4
- package/.docs/models/providers/deepinfra.md +2 -33
- package/.docs/models/providers/digitalocean.md +2 -1
- package/.docs/models/providers/edenai.md +12 -9
- package/.docs/models/providers/fireworks-ai.md +3 -1
- package/.docs/models/providers/freemodel.md +0 -28
- package/.docs/models/providers/google.md +1 -31
- package/.docs/models/providers/groq.md +1 -31
- package/.docs/models/providers/hyper.md +6 -5
- package/.docs/models/providers/kilo.md +18 -18
- package/.docs/models/providers/kimi-for-coding.md +0 -28
- package/.docs/models/providers/llmgateway-providers.md +10 -5
- package/.docs/models/providers/llmgateway.md +6 -4
- package/.docs/models/providers/meta.md +0 -28
- package/.docs/models/providers/minimax-cn-coding-plan.md +0 -28
- package/.docs/models/providers/minimax-cn.md +0 -28
- package/.docs/models/providers/minimax-coding-plan.md +0 -28
- package/.docs/models/providers/minimax.md +1 -31
- package/.docs/models/providers/mistral.md +1 -31
- package/.docs/models/providers/moonshotai-cn.md +4 -10
- package/.docs/models/providers/moonshotai.md +4 -10
- package/.docs/models/providers/nano-gpt.md +15 -17
- package/.docs/models/providers/neosmith.md +0 -28
- package/.docs/models/providers/ofox.md +2 -1
- package/.docs/models/providers/openai.md +3 -32
- package/.docs/models/providers/opencode.md +6 -1
- package/.docs/models/providers/orcarouter.md +2 -2
- package/.docs/models/providers/perplexity-agent.md +0 -28
- package/.docs/models/providers/perplexity.md +1 -31
- package/.docs/models/providers/privatemode-ai.md +3 -1
- package/.docs/models/providers/requesty.md +9 -8
- package/.docs/models/providers/sensenova.md +3 -1
- package/.docs/models/providers/subconscious.md +0 -28
- package/.docs/models/providers/thinkingmachines.md +0 -28
- package/.docs/models/providers/togetherai.md +1 -31
- package/.docs/models/providers/vivgrid.md +9 -32
- package/.docs/models/providers/wandb.md +3 -2
- package/.docs/models/providers/xai.md +4 -34
- package/.docs/reference/agent-controller/session.md +2 -0
- package/.docs/reference/agents/durable-agent.md +7 -1
- package/.docs/reference/build-with-ai.md +8 -24
- package/.docs/reference/cli/mastra.md +30 -0
- package/.docs/reference/client-js/datasets.md +56 -1
- package/.docs/reference/client-js/mastra-client.md +3 -1
- package/.docs/reference/client-js/observability.md +14 -0
- package/.docs/reference/datasets/dataset.md +1 -0
- package/.docs/reference/datasets/datasets-manager.md +14 -0
- package/.docs/reference/datasets/deleteExperiment.md +47 -9
- package/.docs/reference/datasets/purgeItem.md +41 -0
- package/.docs/reference/editor/versioning.md +1 -1
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +16 -0
- package/.docs/reference/processors/processor-interface.md +21 -83
- package/.docs/reference/server/routes.md +44 -19
- package/.docs/reference/tools/graph-rag-tool.md +3 -1
- package/.docs/reference/tools/vector-query-tool.md +4 -2
- package/package.json +6 -6
|
@@ -77,32 +77,4 @@ const agent = new Agent({
|
|
|
77
77
|
: "neosmith/neosmith.intelligent-basic";
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Direct provider installation
|
|
83
|
-
|
|
84
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
85
|
-
|
|
86
|
-
**npm**:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm install @ai-sdk/openai
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**pnpm**:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pnpm add @ai-sdk/openai
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
**Yarn**:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
yarn add @ai-sdk/openai
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Bun**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
bun add @ai-sdk/openai
|
|
108
80
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Ofox
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 115 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
|
|
|
@@ -125,6 +125,7 @@ for await (const chunk of stream) {
|
|
|
125
125
|
| `ofox/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
126
126
|
| `ofox/openai/gpt-5.6-sol` | 1.1M | | | | | | $3 | $15 |
|
|
127
127
|
| `ofox/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
128
|
+
| `ofox/openai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
128
129
|
| `ofox/volcengine/doubao-seed-1-6` | 256K | | | | | | $0.12 | $0.29 |
|
|
129
130
|
| `ofox/volcengine/doubao-seed-1-6-flash` | 256K | | | | | | $0.03 | $0.22 |
|
|
130
131
|
| `ofox/volcengine/doubao-seed-1-6-vision` | 256K | | | | | | $0.12 | $1 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenAI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 48 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
|
|
|
@@ -62,6 +62,7 @@ for await (const chunk of stream) {
|
|
|
62
62
|
| `openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
63
63
|
| `openai/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
64
64
|
| `openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
65
|
+
| `openai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
65
66
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
66
67
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
67
68
|
| `openai/gpt-image-2` | — | | | | | | $5 | $30 |
|
|
@@ -173,34 +174,4 @@ const response = await agent.generate("Hello!", {
|
|
|
173
174
|
|
|
174
175
|
**forceReasoning** (`boolean | undefined`)
|
|
175
176
|
|
|
176
|
-
**allowedTools** (`{ toolNames: string[]; mode?: "auto" | "required" | undefined; } | undefined`)
|
|
177
|
-
|
|
178
|
-
## Direct provider installation
|
|
179
|
-
|
|
180
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
181
|
-
|
|
182
|
-
**npm**:
|
|
183
|
-
|
|
184
|
-
```bash
|
|
185
|
-
npm install @ai-sdk/openai
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
**pnpm**:
|
|
189
|
-
|
|
190
|
-
```bash
|
|
191
|
-
pnpm add @ai-sdk/openai
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
**Yarn**:
|
|
195
|
-
|
|
196
|
-
```bash
|
|
197
|
-
yarn add @ai-sdk/openai
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
**Bun**:
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
bun add @ai-sdk/openai
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
For detailed provider-specific documentation, see the [AI SDK OpenAI provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/openai).
|
|
177
|
+
**allowedTools** (`{ toolNames: string[]; mode?: "auto" | "required" | undefined; } | undefined`)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Zen
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 102 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
|
|
|
@@ -52,6 +52,7 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `opencode/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
53
53
|
| `opencode/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
54
54
|
| `opencode/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
55
|
+
| `opencode/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
55
56
|
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
56
57
|
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
57
58
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
@@ -63,6 +64,8 @@ for await (const chunk of stream) {
|
|
|
63
64
|
| `opencode/glm-5` | 205K | | | | | | $1 | $3 |
|
|
64
65
|
| `opencode/glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
65
66
|
| `opencode/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
67
|
+
| `opencode/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
68
|
+
| `opencode/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
66
69
|
| `opencode/gpt-5` | 400K | | | | | | $1 | $9 |
|
|
67
70
|
| `opencode/gpt-5-codex` | 400K | | | | | | $1 | $9 |
|
|
68
71
|
| `opencode/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
@@ -83,6 +86,7 @@ for await (const chunk of stream) {
|
|
|
83
86
|
| `opencode/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
84
87
|
| `opencode/gpt-5.6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
85
88
|
| `opencode/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
89
|
+
| `opencode/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
86
90
|
| `opencode/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
87
91
|
| `opencode/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
88
92
|
| `opencode/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
@@ -97,6 +101,7 @@ for await (const chunk of stream) {
|
|
|
97
101
|
| `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
98
102
|
| `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
99
103
|
| `opencode/muse-spark-1.2-contributor-free` | 1.0M | | | | | | — | — |
|
|
104
|
+
| `opencode/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
|
|
100
105
|
| `opencode/muse-spark-1.3-contributor-free` | 1.0M | | | | | | — | — |
|
|
101
106
|
| `opencode/nemotron-3-ultra-free` | 1.0M | | | | | | — | — |
|
|
102
107
|
| `opencode/nemotron-3.5-lightning-free` | 262K | | | | | | — | — |
|
|
@@ -142,7 +142,6 @@ for await (const chunk of stream) {
|
|
|
142
142
|
| `orcarouter/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
143
143
|
| `orcarouter/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.35 | $1 |
|
|
144
144
|
| `orcarouter/qwen/qwen3.8-27b` | 262K | | | | | | $0.33 | $2 |
|
|
145
|
-
| `orcarouter/qwen/qwen3.8-27b-free` | 66K | | | | | | — | — |
|
|
146
145
|
| `orcarouter/qwen/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
147
146
|
| `orcarouter/tencent/hy3` | 256K | | | | | | $0.18 | $0.59 |
|
|
148
147
|
| `orcarouter/tencent/hy3-free` | 256K | | | | | | — | — |
|
|
@@ -155,6 +154,7 @@ for await (const chunk of stream) {
|
|
|
155
154
|
| `orcarouter/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
156
155
|
| `orcarouter/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
157
156
|
| `orcarouter/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.07 | $0.25 |
|
|
157
|
+
| `orcarouter/z-ai/glm-5.3-flash-free` | 1.0M | | | | | | — | — |
|
|
158
158
|
|
|
159
159
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
160
160
|
|
|
@@ -186,7 +186,7 @@ const agent = new Agent({
|
|
|
186
186
|
model: ({ requestContext }) => {
|
|
187
187
|
const useAdvanced = requestContext.task === "complex";
|
|
188
188
|
return useAdvanced
|
|
189
|
-
? "orcarouter/z-ai/glm-5.3-flash"
|
|
189
|
+
? "orcarouter/z-ai/glm-5.3-flash-free"
|
|
190
190
|
: "orcarouter/anthropic/claude-fable-5";
|
|
191
191
|
}
|
|
192
192
|
});
|
|
@@ -95,32 +95,4 @@ const agent = new Agent({
|
|
|
95
95
|
: "perplexity-agent/anthropic/claude-haiku-4-5";
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Direct provider installation
|
|
101
|
-
|
|
102
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
103
|
-
|
|
104
|
-
**npm**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm install @ai-sdk/openai
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**pnpm**:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
pnpm add @ai-sdk/openai
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Yarn**:
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
yarn add @ai-sdk/openai
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Bun**:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
bun add @ai-sdk/openai
|
|
126
98
|
```
|
|
@@ -74,34 +74,4 @@ const agent = new Agent({
|
|
|
74
74
|
: "perplexity/sonar";
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Direct provider installation
|
|
80
|
-
|
|
81
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/perplexity) for more details.
|
|
82
|
-
|
|
83
|
-
**npm**:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm install @ai-sdk/perplexity
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
**pnpm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
pnpm add @ai-sdk/perplexity
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Yarn**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
yarn add @ai-sdk/perplexity
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Bun**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
bun add @ai-sdk/perplexity
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
For detailed provider-specific documentation, see the [AI SDK Perplexity provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/perplexity).
|
|
77
|
+
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Privatemode AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 9 Privatemode AI models through Mastra's model router. Authentication is handled automatically using the `PRIVATEMODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Privatemode AI documentation](https://docs.privatemode.ai).
|
|
10
10
|
|
|
@@ -39,6 +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
|
| `privatemode-ai/deepseek-ocr-2` | 8K | | | | | | $0.89 | $1 |
|
|
42
|
+
| `privatemode-ai/glm-5.3` | 256K | | | | | | $2 | $9 |
|
|
43
|
+
| `privatemode-ai/glm-latest` | 256K | | | | | | $2 | $9 |
|
|
42
44
|
| `privatemode-ai/gpt-oss-120b` | 128K | | | | | | $0.50 | $2 |
|
|
43
45
|
| `privatemode-ai/kimi-k2.6` | 256K | | | | | | $2 | $9 |
|
|
44
46
|
| `privatemode-ai/kimi-latest` | 256K | | | | | | $2 | $9 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Requesty
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 153 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
|
|
|
@@ -62,9 +62,9 @@ for await (const chunk of stream) {
|
|
|
62
62
|
| `requesty/claude-sonnet-4@eu` | 1.0M | | | | | | $3 | $15 |
|
|
63
63
|
| `requesty/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
64
64
|
| `requesty/claude-sonnet-5@eu` | 1.0M | | | | | | $2 | $11 |
|
|
65
|
-
| `requesty/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
66
|
-
| `requesty/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.
|
|
67
|
-
| `requesty/deepseek-v4-flash-0731@eu` | 1.0M | | | | | | $0.
|
|
65
|
+
| `requesty/deepseek-v4-flash` | 1.0M | | | | | | $0.28 | $0.56 |
|
|
66
|
+
| `requesty/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.28 | $0.56 |
|
|
67
|
+
| `requesty/deepseek-v4-flash-0731@eu` | 1.0M | | | | | | $0.28 | $0.56 |
|
|
68
68
|
| `requesty/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
69
69
|
| `requesty/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
70
70
|
| `requesty/deepseek-v4-pro-0813@eu` | 1.0M | | | | | | $2 | $4 |
|
|
@@ -97,8 +97,8 @@ for await (const chunk of stream) {
|
|
|
97
97
|
| `requesty/glm-5.2-fast` | 1.0M | | | | | | $2 | $7 |
|
|
98
98
|
| `requesty/glm-5.2@eu` | 1.0M | | | | | | $1 | $4 |
|
|
99
99
|
| `requesty/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
100
|
-
| `requesty/glm-5.3-flash` | 1.0M | | | | | | $0.20 | $0.
|
|
101
|
-
| `requesty/glm-5.3-flash@eu` | 1.0M | | | | | | $0.20 | $0.
|
|
100
|
+
| `requesty/glm-5.3-flash` | 1.0M | | | | | | $0.20 | $0.60 |
|
|
101
|
+
| `requesty/glm-5.3-flash@eu` | 1.0M | | | | | | $0.20 | $0.60 |
|
|
102
102
|
| `requesty/glm-5.3@eu` | 1.0M | | | | | | $1 | $4 |
|
|
103
103
|
| `requesty/gpt-4.1-mini@eu` | 1.0M | | | | | | $0.44 | $2 |
|
|
104
104
|
| `requesty/gpt-4.1-nano@eu` | 1.0M | | | | | | $0.11 | $0.44 |
|
|
@@ -123,6 +123,7 @@ for await (const chunk of stream) {
|
|
|
123
123
|
| `requesty/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
124
124
|
| `requesty/gpt-5.6-terra@eu` | 1.1M | | | | | | $2 | $13 |
|
|
125
125
|
| `requesty/gpt-5@eu` | 400K | | | | | | $1 | $11 |
|
|
126
|
+
| `requesty/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
126
127
|
| `requesty/grok-4.2-beta` | 2.0M | | | | | | $2 | $6 |
|
|
127
128
|
| `requesty/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
128
129
|
| `requesty/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
@@ -136,8 +137,8 @@ for await (const chunk of stream) {
|
|
|
136
137
|
| `requesty/kimi-k2.6@eu` | 256K | | | | | | $0.95 | $4 |
|
|
137
138
|
| `requesty/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
138
139
|
| `requesty/kimi-k2.7-code@eu` | 262K | | | | | | $1 | $5 |
|
|
139
|
-
| `requesty/kimi-k3` | 1.0M | | | | | | $
|
|
140
|
-
| `requesty/kimi-k3@eu` | 1.0M | | | | | | $
|
|
140
|
+
| `requesty/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
141
|
+
| `requesty/kimi-k3@eu` | 1.0M | | | | | | $3 | $15 |
|
|
141
142
|
| `requesty/laguna-m.1` | 33K | | | | | | — | — |
|
|
142
143
|
| `requesty/laguna-xs.2` | 33K | | | | | | — | — |
|
|
143
144
|
| `requesty/leanstral-1-5` | 262K | | | | | | — | — |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# SenseNova (China)
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 5 SenseNova (China) models through Mastra's model router. Authentication is handled automatically using the `SENSENOVA_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [SenseNova (China) documentation](https://platform.sensenova.cn/docs).
|
|
10
10
|
|
|
@@ -39,7 +39,9 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `sensenova/deepseek-v4-flash` | 1.0M | | | | | | — | — |
|
|
42
|
+
| `sensenova/deepseek-v4-pro` | 1.0M | | | | | | — | — |
|
|
42
43
|
| `sensenova/glm-5.2` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `sensenova/kimi-k3` | 1.0M | | | | | | — | — |
|
|
43
45
|
| `sensenova/sensenova-6.8-flash-lite` | 262K | | | | | | — | — |
|
|
44
46
|
|
|
45
47
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -75,32 +75,4 @@ const agent = new Agent({
|
|
|
75
75
|
: "subconscious/subconscious/glm-5.2";
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Direct provider installation
|
|
81
|
-
|
|
82
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
83
|
-
|
|
84
|
-
**npm**:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm install @ai-sdk/anthropic
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**pnpm**:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
pnpm add @ai-sdk/anthropic
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Yarn**:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
yarn add @ai-sdk/anthropic
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Bun**:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
bun add @ai-sdk/anthropic
|
|
106
78
|
```
|
|
@@ -75,32 +75,4 @@ const agent = new Agent({
|
|
|
75
75
|
: "thinkingmachines/thinkingmachines/Inkling";
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Direct provider installation
|
|
81
|
-
|
|
82
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
83
|
-
|
|
84
|
-
**npm**:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm install @ai-sdk/anthropic
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**pnpm**:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
pnpm add @ai-sdk/anthropic
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Yarn**:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
yarn add @ai-sdk/anthropic
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Bun**:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
bun add @ai-sdk/anthropic
|
|
106
78
|
```
|
|
@@ -96,34 +96,4 @@ const agent = new Agent({
|
|
|
96
96
|
: "togetherai/LiquidAI/LFM2-24B-A2B";
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Direct provider installation
|
|
102
|
-
|
|
103
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/togetherai) for more details.
|
|
104
|
-
|
|
105
|
-
**npm**:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
npm install @ai-sdk/togetherai
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**pnpm**:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
pnpm add @ai-sdk/togetherai
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Yarn**:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
yarn add @ai-sdk/togetherai
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
**Bun**:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
bun add @ai-sdk/togetherai
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
For detailed provider-specific documentation, see the [AI SDK Together AI provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/togetherai).
|
|
99
|
+
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vivgrid
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 27 Vivgrid models through Mastra's model router. Authentication is handled automatically using the `VIVGRID_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vivgrid documentation](https://docs.vivgrid.com/models).
|
|
10
10
|
|
|
@@ -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: "vivgrid/
|
|
22
|
+
model: "vivgrid/claude-fable-5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -38,12 +38,16 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `vivgrid/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
42
|
+
| `vivgrid/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
41
43
|
| `vivgrid/deepseek-v3.2` | 128K | | | | | | $0.28 | $0.42 |
|
|
42
44
|
| `vivgrid/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
43
45
|
| `vivgrid/deepseek-v4-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
46
|
+
| `vivgrid/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $3 |
|
|
44
47
|
| `vivgrid/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
45
48
|
| `vivgrid/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
46
49
|
| `vivgrid/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
50
|
+
| `vivgrid/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
47
51
|
| `vivgrid/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
48
52
|
| `vivgrid/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
49
53
|
| `vivgrid/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -59,6 +63,7 @@ for await (const chunk of stream) {
|
|
|
59
63
|
| `vivgrid/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
60
64
|
| `vivgrid/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
61
65
|
| `vivgrid/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
66
|
+
| `vivgrid/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
62
67
|
| `vivgrid/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
63
68
|
|
|
64
69
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -73,7 +78,7 @@ const agent = new Agent({
|
|
|
73
78
|
name: "custom-agent",
|
|
74
79
|
model: {
|
|
75
80
|
url: "https://api.vivgrid.com/v1",
|
|
76
|
-
id: "vivgrid/
|
|
81
|
+
id: "vivgrid/claude-fable-5",
|
|
77
82
|
apiKey: process.env.VIVGRID_API_KEY,
|
|
78
83
|
headers: {
|
|
79
84
|
"X-Custom-Header": "value"
|
|
@@ -92,35 +97,7 @@ const agent = new Agent({
|
|
|
92
97
|
const useAdvanced = requestContext.task === "complex";
|
|
93
98
|
return useAdvanced
|
|
94
99
|
? "vivgrid/kimi-k3"
|
|
95
|
-
: "vivgrid/
|
|
100
|
+
: "vivgrid/claude-fable-5";
|
|
96
101
|
}
|
|
97
102
|
});
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Direct provider installation
|
|
101
|
-
|
|
102
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
103
|
-
|
|
104
|
-
**npm**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm install @ai-sdk/openai
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**pnpm**:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
pnpm add @ai-sdk/openai
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Yarn**:
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
yarn add @ai-sdk/openai
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Bun**:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
bun add @ai-sdk/openai
|
|
126
103
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Weights & Biases
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 27 Weights & Biases models through Mastra's model router. Authentication is handled automatically using the `WANDB_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Weights & Biases documentation](https://docs.wandb.ai).
|
|
10
10
|
|
|
@@ -64,6 +64,7 @@ for await (const chunk of stream) {
|
|
|
64
64
|
| `wandb/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.25 | $1 |
|
|
65
65
|
| `wandb/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.40 | $3 |
|
|
66
66
|
| `wandb/zai-org/GLM-5.2` | 1.0M | | | | | | $0.76 | $2 |
|
|
67
|
+
| `wandb/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
67
68
|
|
|
68
69
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
69
70
|
|
|
@@ -95,7 +96,7 @@ const agent = new Agent({
|
|
|
95
96
|
model: ({ requestContext }) => {
|
|
96
97
|
const useAdvanced = requestContext.task === "complex";
|
|
97
98
|
return useAdvanced
|
|
98
|
-
? "wandb/zai-org/GLM-5.
|
|
99
|
+
? "wandb/zai-org/GLM-5.3-Flash"
|
|
99
100
|
: "wandb/JetBrains/Mellum2-12B-A2.5B-Instruct";
|
|
100
101
|
}
|
|
101
102
|
});
|
|
@@ -43,9 +43,9 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `xai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
44
44
|
| `xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
45
45
|
| `xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
46
|
-
| `xai/grok-imagine-image` |
|
|
47
|
-
| `xai/grok-imagine-image-2.0` |
|
|
48
|
-
| `xai/grok-imagine-image-quality` |
|
|
46
|
+
| `xai/grok-imagine-image` | 16K | | | | | | — | — |
|
|
47
|
+
| `xai/grok-imagine-image-2.0` | 64K | | | | | | — | — |
|
|
48
|
+
| `xai/grok-imagine-image-quality` | 16K | | | | | | — | — |
|
|
49
49
|
| `xai/grok-imagine-video` | 1K | | | | | | — | — |
|
|
50
50
|
| `xai/grok-imagine-video-1.5` | 1K | | | | | | — | — |
|
|
51
51
|
|
|
@@ -108,34 +108,4 @@ const response = await agent.generate("Hello!", {
|
|
|
108
108
|
|
|
109
109
|
**parallel\_function\_calling** (`boolean | undefined`)
|
|
110
110
|
|
|
111
|
-
**searchParameters** (`{ mode: "off" | "auto" | "on"; returnCitations?: boolean | undefined; fromDate?: string | undefined; toDate?: string | undefined; maxSearchResults?: number | undefined; sources?: ({ ...; } | ... 2 more ... | { ...; })[] | undefined; } | undefined`)
|
|
112
|
-
|
|
113
|
-
## Direct provider installation
|
|
114
|
-
|
|
115
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/xai) for more details.
|
|
116
|
-
|
|
117
|
-
**npm**:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
npm install @ai-sdk/xai
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
**pnpm**:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
pnpm add @ai-sdk/xai
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
**Yarn**:
|
|
130
|
-
|
|
131
|
-
```bash
|
|
132
|
-
yarn add @ai-sdk/xai
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
**Bun**:
|
|
136
|
-
|
|
137
|
-
```bash
|
|
138
|
-
bun add @ai-sdk/xai
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
For detailed provider-specific documentation, see the [AI SDK xAI provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/xai).
|
|
111
|
+
**searchParameters** (`{ mode: "off" | "auto" | "on"; returnCitations?: boolean | undefined; fromDate?: string | undefined; toDate?: string | undefined; maxSearchResults?: number | undefined; sources?: ({ ...; } | ... 2 more ... | { ...; })[] | undefined; } | undefined`)
|
|
@@ -105,6 +105,8 @@ await session.sendMessage({
|
|
|
105
105
|
})
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
When `requestContext` carries `MASTRA_MESSAGE_AUTHOR_KEY`, the stored message names that sender under `content.providerMetadata.mastra.author`. See [Reserved keys](https://mastra.ai/docs/server/request-context).
|
|
109
|
+
|
|
108
110
|
#### `steer({ content, requestContext? })`
|
|
109
111
|
|
|
110
112
|
Queue steering content into an active run.
|
|
@@ -43,7 +43,7 @@ cleanup()
|
|
|
43
43
|
|
|
44
44
|
### Using the `durable` config flag
|
|
45
45
|
|
|
46
|
-
Set `durable: true` on `AgentConfig` and the agent is automatically wrapped with `createDurableAgent` when it's attached to a `Mastra` instance. Use an object to forward advanced options such as `cache`, `pubsub`, `maxSteps`, or `
|
|
46
|
+
Set `durable: true` on `AgentConfig` and the agent is automatically wrapped with `createDurableAgent` when it's attached to a `Mastra` instance. Use an object to forward advanced options such as `cache`, `pubsub`, `maxSteps`, `cleanupTimeoutMs`, or `shouldCache`.
|
|
47
47
|
|
|
48
48
|
```typescript
|
|
49
49
|
import { Mastra } from '@mastra/core'
|
|
@@ -90,6 +90,8 @@ Returns: `DurableAgent`
|
|
|
90
90
|
|
|
91
91
|
**maxSteps** (`number`): Maximum number of steps for the agentic loop.
|
|
92
92
|
|
|
93
|
+
**shouldCache** (`(topic: string) => boolean`): Per-topic opt-out of the replay cache. Return false to publish a topic straight to the underlying PubSub without recording it; subscribers of that topic receive live events only and cannot resume from an offset. Useful for trading replay for minimum publish latency on hot topics when the cache is remote (for example, cross-region Redis). Run-local topics are always excluded, regardless of this option.
|
|
94
|
+
|
|
93
95
|
## `createEventedAgent(options)`
|
|
94
96
|
|
|
95
97
|
Wraps an `Agent` with fire-and-forget durable execution on the built-in workflow engine. Like `createDurableAgent`, it returns a result you stream from, but the underlying workflow runs non-blocking (via `startAsync`) instead of running to completion before the stream is wired up. Use it when you want the run to progress independently of the caller. It doesn't accept `id` or `name` overrides.
|
|
@@ -112,6 +114,8 @@ Returns: `EventedAgent` (a subclass of `DurableAgent`)
|
|
|
112
114
|
|
|
113
115
|
**maxSteps** (`number`): Maximum number of steps for the agentic loop.
|
|
114
116
|
|
|
117
|
+
**shouldCache** (`(topic: string) => boolean`): Per-topic opt-out of the replay cache. Return false to publish a topic straight to the underlying PubSub without recording it; subscribers of that topic receive live events only and cannot resume from an offset. Useful for trading replay for minimum publish latency on hot topics when the cache is remote (for example, cross-region Redis). Run-local topics are always excluded, regardless of this option.
|
|
118
|
+
|
|
115
119
|
## Constructor parameters
|
|
116
120
|
|
|
117
121
|
The `DurableAgent` class accepts the same options as `createDurableAgent`, plus `cleanupTimeoutMs`. Prefer the factory unless you need to subclass.
|
|
@@ -128,6 +132,8 @@ The `DurableAgent` class accepts the same options as `createDurableAgent`, plus
|
|
|
128
132
|
|
|
129
133
|
**maxSteps** (`number`): Maximum number of steps for the agentic loop.
|
|
130
134
|
|
|
135
|
+
**shouldCache** (`(topic: string) => boolean`): Per-topic opt-out of the replay cache. Return false to publish a topic straight to the underlying PubSub without recording it; subscribers of that topic receive live events only and cannot resume from an offset. Useful for trading replay for minimum publish latency on hot topics when the cache is remote (for example, cross-region Redis). Run-local topics are always excluded, regardless of this option.
|
|
136
|
+
|
|
131
137
|
**cleanupTimeoutMs** (`number`): Grace period in milliseconds before registry entries are cleaned up automatically after a stream finishes or errors. Set to 0 to disable auto-cleanup and require a manual cleanup() call. Auto-cleanup does not fire on suspended events. (Default: `30000`)
|
|
132
138
|
|
|
133
139
|
## Methods
|