@mastra/mcp-docs-server 1.3.5 → 1.3.6-alpha.10
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/human-in-the-loop.md +5 -3
- package/.docs/docs/agents/processors.md +15 -8
- package/.docs/docs/agents/tools.md +24 -0
- package/.docs/docs/browser.md +0 -2
- package/.docs/docs/channels.md +4 -0
- package/.docs/docs/evals/experiments.md +3 -0
- package/.docs/docs/guides/authentication-identity.md +1 -1
- package/.docs/docs/harness/agent-controller.md +29 -0
- package/.docs/docs/mastra-platform/connect/channels.md +153 -0
- package/.docs/docs/mastra-platform/connect/overview.md +102 -0
- package/.docs/docs/mastra-platform/connect/providers.md +149 -0
- package/.docs/docs/mastra-platform/connect/tools.md +129 -0
- package/.docs/docs/mastra-platform/overview.md +2 -0
- package/.docs/docs/memory/memory-processors.md +2 -5
- package/.docs/docs/memory/message-history.md +15 -8
- package/.docs/docs/memory/observational-memory.md +33 -4
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +16 -0
- package/.docs/docs/observability/feedback.md +20 -0
- package/.docs/docs/observability/tracing/overview.md +31 -1
- package/.docs/docs/subagents.md +10 -8
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/time-travel.md +5 -3
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +60 -0
- package/.docs/integrations/deploy/temporal.md +23 -0
- package/.docs/integrations/observability/langfuse.md +2 -0
- package/.docs/integrations/sandboxes/docker.md +61 -0
- package/.docs/integrations/sandboxes/e2b.md +37 -0
- package/.docs/models/embeddings.md +1 -1
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +4 -5
- package/.docs/models/gateways/openrouter.md +4 -3
- package/.docs/models/gateways/vercel.md +4 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba.md +1 -1
- package/.docs/models/providers/anthropic.md +4 -3
- package/.docs/models/providers/berget.md +1 -1
- package/.docs/models/providers/coralbricks.md +1 -2
- package/.docs/models/providers/cortecs.md +5 -2
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +0 -2
- package/.docs/models/providers/edenai.md +11 -8
- package/.docs/models/providers/hyper.md +4 -6
- package/.docs/models/providers/kilo.md +20 -18
- package/.docs/models/providers/llmgateway-providers.md +6 -2
- package/.docs/models/providers/llmgateway.md +4 -1
- package/.docs/models/providers/mistral.md +10 -17
- package/.docs/models/providers/nano-gpt.md +32 -30
- package/.docs/models/providers/neuralwatt.md +3 -1
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/opencode-go.md +7 -5
- package/.docs/models/providers/opencode.md +3 -2
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/requesty.md +7 -4
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +15 -1
- package/.docs/reference/agent-controller/session.md +17 -6
- package/.docs/reference/agents/durable-agent.md +2 -0
- package/.docs/reference/agents/generate.md +3 -1
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/network.md +2 -0
- package/.docs/reference/ai-sdk/chat-route.md +4 -0
- package/.docs/reference/ai-sdk/handle-chat-stream.md +3 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +3 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/classifier/classifier.md +35 -35
- package/.docs/reference/cli/mastra.md +20 -3
- package/.docs/reference/client-js/memory.md +13 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/connect/channels.md +91 -0
- package/.docs/reference/connect/credential.md +63 -0
- package/.docs/reference/connect/providers.md +1065 -0
- package/.docs/reference/connect/tools.md +157 -0
- package/.docs/reference/core/getClassifier.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +10 -2
- package/.docs/reference/datasets/addItem.md +2 -2
- package/.docs/reference/datasets/datasets-manager.md +1 -0
- package/.docs/reference/datasets/delete.md +1 -1
- package/.docs/reference/datasets/getExperiment.md +5 -1
- package/.docs/reference/datasets/startExperimentAsync.md +1 -0
- package/.docs/reference/datasets/updateItem.md +10 -0
- package/.docs/reference/deployer/vercel.md +1 -1
- package/.docs/reference/deployer.md +7 -14
- package/.docs/reference/editor/blob-store-provider.md +2 -1
- package/.docs/reference/editor/browser-provider.md +3 -2
- package/.docs/reference/editor/filesystem-provider.md +2 -1
- package/.docs/reference/editor/processor-provider.md +2 -2
- package/.docs/reference/editor/sandbox-provider.md +2 -1
- package/.docs/reference/editor/storage-workspace-ref.md +27 -2
- package/.docs/reference/evals/answer-relevancy.md +4 -2
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +3 -1
- package/.docs/reference/evals/content-similarity.md +1 -1
- package/.docs/reference/evals/context-recall.md +1 -1
- package/.docs/reference/evals/context-relevance.md +6 -6
- package/.docs/reference/evals/create-classifier-scorer.md +5 -5
- package/.docs/reference/evals/hallucination.md +7 -8
- package/.docs/reference/evals/keyword-coverage.md +4 -4
- package/.docs/reference/evals/noise-sensitivity.md +6 -6
- package/.docs/reference/evals/prompt-alignment.md +1 -1
- package/.docs/reference/evals/run-evals.md +1 -1
- package/.docs/reference/evals/scorer-utils.md +8 -8
- package/.docs/reference/evals/tone-consistency.md +23 -24
- package/.docs/reference/evals/tool-call-accuracy.md +19 -15
- package/.docs/reference/evals/toxicity.md +3 -1
- package/.docs/reference/index.md +6 -0
- package/.docs/reference/logging/pino-logger.md +4 -4
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/memory-class.md +2 -2
- package/.docs/reference/memory/observational-memory.md +8 -4
- package/.docs/reference/memory/summarizeConversation.md +1 -1
- package/.docs/reference/migrations/ai-sdk-v4-to-v5.md +2 -2
- package/.docs/reference/migrations/upgrade-to-v1/mcp.md +2 -0
- package/.docs/reference/migrations/upgrade-to-v1/memory.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/tools.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +10 -1
- package/.docs/reference/observability/tracing/exporters/posthog.md +9 -2
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +8 -1
- package/.docs/reference/observability/tracing/trace-query.md +46 -20
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +6 -6
- package/.docs/reference/processors/file-upload-processor.md +236 -0
- package/.docs/reference/processors/message-history-processor.md +3 -2
- package/.docs/reference/processors/model-selection-processor.md +11 -11
- package/.docs/reference/processors/processor-interface.md +2 -0
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -3
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/unsupported-file-handler.md +69 -0
- package/.docs/reference/processors/working-memory-processor.md +3 -2
- package/.docs/reference/project-structure.md +11 -13
- package/.docs/reference/pubsub/unix-socket-pubsub.md +6 -2
- package/.docs/reference/rag/chunk.md +2 -2
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/database-config.md +14 -2
- package/.docs/reference/rag/document.md +7 -2
- package/.docs/reference/rag/extract-params.md +5 -5
- package/.docs/reference/rag/graph-rag-guide.md +1 -1
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +5 -4
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/rag/retrieval.md +7 -5
- package/.docs/reference/rag/vector-databases.md +1 -1
- package/.docs/reference/server/mastra-server.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +3 -1
- package/.docs/reference/streaming/workflows/resumeStream.md +2 -0
- package/.docs/reference/streaming/workflows/stream.md +2 -0
- package/.docs/reference/tools/ask-user-tool.md +5 -1
- package/.docs/reference/tools/isolated-vm-transport.md +0 -2
- package/.docs/reference/tools/quickjs-transport.md +0 -2
- package/.docs/reference/workflows/run-methods/restart.md +8 -0
- package/.docs/reference/workflows/run-methods/resume.md +2 -0
- package/.docs/reference/workflows/run-methods/start.md +2 -0
- package/.docs/reference/workflows/run-methods/timeTravel.md +2 -0
- package/.docs/reference/workflows/step.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +36 -2
- package/package.json +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
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
|
|
|
@@ -59,7 +59,8 @@ for await (const chunk of stream) {
|
|
|
59
59
|
| `nano-gpt/anthropic/claude-fable-latest` | 1.0M | | | | | | $10 | $50 |
|
|
60
60
|
| `nano-gpt/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
61
61
|
| `nano-gpt/anthropic/claude-haiku-4.5:thinking` | 200K | | | | | | $1 | $5 |
|
|
62
|
-
| `nano-gpt/anthropic/claude-haiku-
|
|
62
|
+
| `nano-gpt/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
63
|
+
| `nano-gpt/anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
63
64
|
| `nano-gpt/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
64
65
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking` | 200K | | | | | | $15 | $75 |
|
|
65
66
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking:1024` | 200K | | | | | | $15 | $75 |
|
|
@@ -108,9 +109,9 @@ for await (const chunk of stream) {
|
|
|
108
109
|
| `nano-gpt/bytedance/doubao-seed-2.1-turbo` | 256K | | | | | | $0.50 | $3 |
|
|
109
110
|
| `nano-gpt/bytedance/doubao-seed-character` | 128K | | | | | | $0.12 | $0.29 |
|
|
110
111
|
| `nano-gpt/celeris-1` | 8K | | | | | | $2 | $6 |
|
|
111
|
-
| `nano-gpt/claw-high` | 1.0M | | | | | | $
|
|
112
|
-
| `nano-gpt/claw-low` | 1.0M | | | | | | $
|
|
113
|
-
| `nano-gpt/claw-medium` | 1.0M | | | | | | $
|
|
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 |
|
|
114
115
|
| `nano-gpt/cohere/command-r-plus-08-2024` | 128K | | | | | | $3 | $14 |
|
|
115
116
|
| `nano-gpt/command-a-reasoning-08-2025` | 256K | | | | | | $3 | $10 |
|
|
116
117
|
| `nano-gpt/deepcogito/cogito-v1-preview-qwen-32B` | 128K | | | | | | $2 | $2 |
|
|
@@ -132,6 +133,8 @@ for await (const chunk of stream) {
|
|
|
132
133
|
| `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.28 | $0.42 |
|
|
133
134
|
| `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.28 | $0.42 |
|
|
134
135
|
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
136
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0423` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
137
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0423:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
135
138
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
136
139
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
137
140
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
@@ -147,8 +150,6 @@ for await (const chunk of stream) {
|
|
|
147
150
|
| `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
|
|
148
151
|
| `nano-gpt/doubao-1.5-pro-32k` | 32K | | | | | | $0.13 | $0.33 |
|
|
149
152
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
150
|
-
| `nano-gpt/doubao-seed-1-6-250615` | 256K | | | | | | $0.20 | $0.51 |
|
|
151
|
-
| `nano-gpt/doubao-seed-1-6-flash-250615` | 256K | | | | | | $0.04 | $0.37 |
|
|
152
153
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
153
154
|
| `nano-gpt/doubao-seed-2-0-lite-260215` | 256K | | | | | | $0.15 | $0.87 |
|
|
154
155
|
| `nano-gpt/doubao-seed-2-0-mini-260215` | 256K | | | | | | $0.05 | $0.48 |
|
|
@@ -158,7 +159,6 @@ for await (const chunk of stream) {
|
|
|
158
159
|
| `nano-gpt/ernie-5.0-thinking-preview` | 128K | | | | | | $1 | $4 |
|
|
159
160
|
| `nano-gpt/ernie-5.1` | 119K | | | | | | $0.75 | $3 |
|
|
160
161
|
| `nano-gpt/ernie-5.1:thinking` | 119K | | | | | | $0.75 | $3 |
|
|
161
|
-
| `nano-gpt/ernie-x1.1-preview` | 64K | | | | | | $0.15 | $0.60 |
|
|
162
162
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0` | 33K | | | | | | $2 | $2 |
|
|
163
163
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1` | 33K | | | | | | $2 | $2 |
|
|
164
164
|
| `nano-gpt/EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2` | 16K | | | | | | $0.80 | $0.80 |
|
|
@@ -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 |
|
|
@@ -246,9 +248,9 @@ for await (const chunk of stream) {
|
|
|
246
248
|
| `nano-gpt/google/gemma4-31b-splituntied` | 262K | | | | | | $0.10 | $0.30 |
|
|
247
249
|
| `nano-gpt/Gryphe/MythoMax-L2-13b` | 4K | | | | | | $0.10 | $0.10 |
|
|
248
250
|
| `nano-gpt/heabsy/cyberheabsy` | 1.0M | | | | | | $2 | $5 |
|
|
249
|
-
| `nano-gpt/hermes-high` | 1.0M | | | | | | $
|
|
250
|
-
| `nano-gpt/hermes-low` | 1.0M | | | | | | $
|
|
251
|
-
| `nano-gpt/hermes-medium` | 1.0M | | | | | | $
|
|
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 |
|
|
252
254
|
| `nano-gpt/holo3-35b-a3b` | 66K | | | | | | $0.25 | $2 |
|
|
253
255
|
| `nano-gpt/holo3-35b-a3b:thinking` | 66K | | | | | | $0.25 | $2 |
|
|
254
256
|
| `nano-gpt/huihui-ai/DeepSeek-R1-Distill-Llama-70B-abliterated` | 16K | | | | | | $0.70 | $0.70 |
|
|
@@ -331,10 +333,10 @@ for await (const chunk of stream) {
|
|
|
331
333
|
| `nano-gpt/moonshotai/kimi-k2-instruct-0711` | 128K | | | | | | $0.40 | $2 |
|
|
332
334
|
| `nano-gpt/moonshotai/Kimi-K2-Instruct-0905` | 262K | | | | | | $0.40 | $2 |
|
|
333
335
|
| `nano-gpt/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
|
|
334
|
-
| `nano-gpt/moonshotai/kimi-k2.5` |
|
|
335
|
-
| `nano-gpt/moonshotai/kimi-k2.5:thinking` |
|
|
336
|
-
| `nano-gpt/moonshotai/kimi-k2.6` |
|
|
337
|
-
| `nano-gpt/moonshotai/kimi-k2.6:thinking` |
|
|
336
|
+
| `nano-gpt/moonshotai/kimi-k2.5` | 262K | | | | | | $0.30 | $2 |
|
|
337
|
+
| `nano-gpt/moonshotai/kimi-k2.5:thinking` | 262K | | | | | | $0.30 | $2 |
|
|
338
|
+
| `nano-gpt/moonshotai/kimi-k2.6` | 262K | | | | | | $0.50 | $3 |
|
|
339
|
+
| `nano-gpt/moonshotai/kimi-k2.6:thinking` | 262K | | | | | | $0.50 | $3 |
|
|
338
340
|
| `nano-gpt/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
339
341
|
| `nano-gpt/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
340
342
|
| `nano-gpt/moonshotai/kimi-k3` | 1.0M | | | | | | $2 | $10 |
|
|
@@ -404,7 +406,7 @@ for await (const chunk of stream) {
|
|
|
404
406
|
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $10 | $50 |
|
|
405
407
|
| `nano-gpt/openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
406
408
|
| `nano-gpt/openai/gpt-oss-120b` | 128K | | | | | | $0.35 | $0.75 |
|
|
407
|
-
| `nano-gpt/openai/gpt-oss-20b` |
|
|
409
|
+
| `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.20 | $0.30 |
|
|
408
410
|
| `nano-gpt/openai/gpt-oss-safeguard-20b` | 128K | | | | | | $0.07 | $0.30 |
|
|
409
411
|
| `nano-gpt/openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
|
|
410
412
|
| `nano-gpt/openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
|
|
@@ -453,23 +455,23 @@ for await (const chunk of stream) {
|
|
|
453
455
|
| `nano-gpt/qwen/qwen3-next-80b-a3b-thinking` | 256K | | | | | | $0.15 | $0.65 |
|
|
454
456
|
| `nano-gpt/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.30 | $2 |
|
|
455
457
|
| `nano-gpt/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.50 | $6 |
|
|
456
|
-
| `nano-gpt/qwen/qwen3.5-122b-a10b` |
|
|
457
|
-
| `nano-gpt/qwen/qwen3.5-122b-a10b:thinking` |
|
|
458
|
+
| `nano-gpt/qwen/qwen3.5-122b-a10b` | 262K | | | | | | $0.44 | $3 |
|
|
459
|
+
| `nano-gpt/qwen/qwen3.5-122b-a10b:thinking` | 262K | | | | | | $0.44 | $3 |
|
|
458
460
|
| `nano-gpt/qwen/qwen3.5-27b` | 260K | | | | | | $0.27 | $2 |
|
|
459
461
|
| `nano-gpt/qwen/qwen3.5-27b:thinking` | 260K | | | | | | $0.27 | $2 |
|
|
460
462
|
| `nano-gpt/qwen/qwen3.5-35b-a3b` | 260K | | | | | | $0.23 | $2 |
|
|
461
463
|
| `nano-gpt/qwen/qwen3.5-35b-a3b:thinking` | 260K | | | | | | $0.23 | $2 |
|
|
462
|
-
| `nano-gpt/qwen/qwen3.5-397b-a17b` |
|
|
463
|
-
| `nano-gpt/qwen/qwen3.5-397b-a17b:thinking` |
|
|
464
|
-
| `nano-gpt/qwen/qwen3.5-9b` |
|
|
464
|
+
| `nano-gpt/qwen/qwen3.5-397b-a17b` | 262K | | | | | | $0.60 | $4 |
|
|
465
|
+
| `nano-gpt/qwen/qwen3.5-397b-a17b:thinking` | 262K | | | | | | $0.60 | $4 |
|
|
466
|
+
| `nano-gpt/qwen/qwen3.5-9b` | 262K | | | | | | $0.05 | $0.15 |
|
|
465
467
|
| `nano-gpt/qwen/qwen3.5-flash` | 992K | | | | | | $0.10 | $0.40 |
|
|
466
468
|
| `nano-gpt/qwen/qwen3.5-flash:thinking` | 992K | | | | | | $0.10 | $0.40 |
|
|
467
469
|
| `nano-gpt/qwen/qwen3.5-omni-flash` | 49K | | | | | | — | — |
|
|
468
470
|
| `nano-gpt/qwen/qwen3.5-omni-plus` | 984K | | | | | | — | — |
|
|
469
471
|
| `nano-gpt/qwen/qwen3.5-plus` | 984K | | | | | | $0.40 | $2 |
|
|
470
472
|
| `nano-gpt/qwen/qwen3.5-plus:thinking` | 984K | | | | | | $0.40 | $2 |
|
|
471
|
-
| `nano-gpt/qwen/qwen3.6-27b` |
|
|
472
|
-
| `nano-gpt/qwen/qwen3.6-27b:thinking` |
|
|
473
|
+
| `nano-gpt/qwen/qwen3.6-27b` | 262K | | | | | | $0.20 | $2 |
|
|
474
|
+
| `nano-gpt/qwen/qwen3.6-27b:thinking` | 262K | | | | | | $0.20 | $2 |
|
|
473
475
|
| `nano-gpt/qwen/qwen3.6-35b-a3b` | 262K | | | | | | $0.11 | $0.80 |
|
|
474
476
|
| `nano-gpt/qwen/qwen3.6-35b-a3b:thinking` | 262K | | | | | | $0.11 | $0.80 |
|
|
475
477
|
| `nano-gpt/qwen/qwen3.6-flash` | 992K | | | | | | $0.19 | $1 |
|
|
@@ -481,7 +483,7 @@ for await (const chunk of stream) {
|
|
|
481
483
|
| `nano-gpt/qwen/qwen3.7-max:thinking` | 1.0M | | | | | | $3 | $8 |
|
|
482
484
|
| `nano-gpt/qwen/qwen3.7-plus` | 992K | | | | | | $0.40 | $2 |
|
|
483
485
|
| `nano-gpt/qwen/qwen3.7-plus:thinking` | 984K | | | | | | $0.40 | $2 |
|
|
484
|
-
| `nano-gpt/qwen/qwen3.8-27b` |
|
|
486
|
+
| `nano-gpt/qwen/qwen3.8-27b` | 1.0M | | | | | | $0.15 | $0.70 |
|
|
485
487
|
| `nano-gpt/qwen/qwen3.8-27b-antislop` | 262K | | | | | | $0.10 | $0.60 |
|
|
486
488
|
| `nano-gpt/qwen/qwen3.8-27b-cybersecurity` | 262K | | | | | | $0.10 | $0.60 |
|
|
487
489
|
| `nano-gpt/qwen/qwen3.8-27b-darkidol` | 262K | | | | | | $0.10 | $0.60 |
|
|
@@ -496,9 +498,9 @@ for await (const chunk of stream) {
|
|
|
496
498
|
| `nano-gpt/qwen/qwen3.8-27b-queen` | 524K | | | | | | $0.25 | $2 |
|
|
497
499
|
| `nano-gpt/qwen/qwen3.8-27b-swift` | 262K | | | | | | $0.10 | $0.60 |
|
|
498
500
|
| `nano-gpt/qwen/qwen3.8-27b-synthia` | 262K | | | | | | $0.10 | $0.60 |
|
|
499
|
-
| `nano-gpt/qwen/qwen3.8-27b-uncensored` |
|
|
500
|
-
| `nano-gpt/qwen/qwen3.8-27b-uncensored:thinking` |
|
|
501
|
-
| `nano-gpt/qwen/qwen3.8-27b:thinking` |
|
|
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 |
|
|
503
|
+
| `nano-gpt/qwen/qwen3.8-27b:thinking` | 1.0M | | | | | | $0.15 | $0.70 |
|
|
502
504
|
| `nano-gpt/qwen/qwen3.8-flash` | 992K | | | | | | $0.14 | $0.42 |
|
|
503
505
|
| `nano-gpt/qwen/qwen3.8-max` | 991K | | | | | | $2 | $6 |
|
|
504
506
|
| `nano-gpt/qwen/qwen3.8-max-0902` | 992K | | | | | | $2 | $6 |
|
|
@@ -636,17 +638,17 @@ for await (const chunk of stream) {
|
|
|
636
638
|
| `nano-gpt/z-ai/glm-5.1:thinking` | 200K | | | | | | $0.75 | $3 |
|
|
637
639
|
| `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
|
|
638
640
|
| `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
|
|
639
|
-
| `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $
|
|
641
|
+
| `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $0.70 | $2 |
|
|
640
642
|
| `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.30 |
|
|
641
643
|
| `nano-gpt/z-ai/glm-5.3-flash-apex` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
642
644
|
| `nano-gpt/z-ai/glm-5.3-flash-apex-abliterated` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
643
645
|
| `nano-gpt/z-ai/glm-5.3-flash-cybersecurity` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
644
646
|
| `nano-gpt/z-ai/glm-5.3-flash-uncensored` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
645
647
|
| `nano-gpt/z-ai/glm-5.3-uncensored` | 1.0M | | | | | | $1 | $2 |
|
|
646
|
-
| `nano-gpt/z-ai/glm-5.3:thinking` | 1.0M | | | | | | $
|
|
648
|
+
| `nano-gpt/z-ai/glm-5.3:thinking` | 1.0M | | | | | | $0.70 | $2 |
|
|
647
649
|
| `nano-gpt/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
|
|
648
650
|
| `nano-gpt/z-ai/glm-5v-turbo:thinking` | 203K | | | | | | $1 | $4 |
|
|
649
|
-
| `nano-gpt/z-ai/glm-latest` | 1.0M | | | | | | $
|
|
651
|
+
| `nano-gpt/z-ai/glm-latest` | 1.0M | | | | | | $0.70 | $2 |
|
|
650
652
|
|
|
651
653
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
652
654
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Neuralwatt
|
|
6
6
|
|
|
7
|
-
Access
|
|
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
|
# Ollama Cloud
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 25 Ollama Cloud models through Mastra's model router. Authentication is handled automatically using the `OLLAMA_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Ollama Cloud documentation](https://docs.ollama.com/cloud).
|
|
10
10
|
|
|
@@ -58,6 +58,7 @@ for await (const chunk of stream) {
|
|
|
58
58
|
| `ollama-cloud/minimax-m2.7` | 197K | | | | | | $0.30 | $1 |
|
|
59
59
|
| `ollama-cloud/minimax-m3` | 512K | | | | | | $0.60 | $2 |
|
|
60
60
|
| `ollama-cloud/mistral-large-3:675b` | 262K | | | | | | $0.50 | $2 |
|
|
61
|
+
| `ollama-cloud/mistral-large-4` | 1.0M | | | | | | $1 | $4 |
|
|
61
62
|
| `ollama-cloud/nemotron-3-nano:30b` | 1.0M | | | | | | $0.06 | $0.24 |
|
|
62
63
|
| `ollama-cloud/nemotron-3-super` | 262K | | | | | | $0.01 | $0.60 |
|
|
63
64
|
| `ollama-cloud/nemotron-3-ultra` | 262K | | | | | | $0.10 | $3 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Go
|
|
6
6
|
|
|
7
|
-
Access
|
|
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
|
|
|
@@ -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: "opencode-go/
|
|
22
|
+
model: "opencode-go/claude-haiku-5-5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `opencode-go/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
41
42
|
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
42
43
|
| `opencode-go/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
43
44
|
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
@@ -67,6 +68,7 @@ for await (const chunk of stream) {
|
|
|
67
68
|
| `opencode-go/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
68
69
|
| `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
69
70
|
| `opencode-go/space-bunny` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
71
|
+
| `opencode-go/step-5-preview-free` | 1.0M | | | | | | — | — |
|
|
70
72
|
|
|
71
73
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
72
74
|
|
|
@@ -80,7 +82,7 @@ const agent = new Agent({
|
|
|
80
82
|
name: "custom-agent",
|
|
81
83
|
model: {
|
|
82
84
|
url: "https://opencode.ai/zen/go/v1",
|
|
83
|
-
id: "opencode-go/
|
|
85
|
+
id: "opencode-go/claude-haiku-5-5",
|
|
84
86
|
apiKey: process.env.OPENCODE_API_KEY,
|
|
85
87
|
headers: {
|
|
86
88
|
"X-Custom-Header": "value"
|
|
@@ -98,8 +100,8 @@ const agent = new Agent({
|
|
|
98
100
|
model: ({ requestContext }) => {
|
|
99
101
|
const useAdvanced = requestContext.task === "complex";
|
|
100
102
|
return useAdvanced
|
|
101
|
-
? "opencode-go/
|
|
102
|
-
: "opencode-go/
|
|
103
|
+
? "opencode-go/step-5-preview-free"
|
|
104
|
+
: "opencode-go/claude-haiku-5-5";
|
|
103
105
|
}
|
|
104
106
|
});
|
|
105
107
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Zen
|
|
6
6
|
|
|
7
|
-
Access
|
|
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
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `opencode/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
43
43
|
| `opencode/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
44
44
|
| `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
45
|
+
| `opencode/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
45
46
|
| `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
46
47
|
| `opencode/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
47
48
|
| `opencode/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -58,7 +59,6 @@ for await (const chunk of stream) {
|
|
|
58
59
|
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
59
60
|
| `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
60
61
|
| `opencode/exo-free` | 1.0M | | | | | | — | — |
|
|
61
|
-
| `opencode/fledge-alpha-free` | 1.0M | | | | | | — | — |
|
|
62
62
|
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
63
63
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
64
64
|
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
@@ -121,6 +121,7 @@ for await (const chunk of stream) {
|
|
|
121
121
|
| `opencode/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
122
122
|
| `opencode/qwen3.8-max` | 262K | | | | | | $2 | $6 |
|
|
123
123
|
| `opencode/space-bunny-free` | 1.0M | | | | | | — | — |
|
|
124
|
+
| `opencode/step-5-preview-free` | 1.0M | | | | | | — | — |
|
|
124
125
|
|
|
125
126
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
126
127
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OVHcloud AI Endpoints
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 13 OVHcloud AI Endpoints models through Mastra's model router. Authentication is handled automatically using the `OVHCLOUD_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OVHcloud AI Endpoints documentation](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/catalog//).
|
|
10
10
|
|
|
@@ -45,7 +45,6 @@ for await (const chunk of stream) {
|
|
|
45
45
|
| `ovhcloud/mistral-nemo-instruct-2407` | 66K | | | | | | $0.14 | $0.14 |
|
|
46
46
|
| `ovhcloud/mistral-small-3.2-24b-instruct-2506` | 131K | | | | | | $0.10 | $0.31 |
|
|
47
47
|
| `ovhcloud/qwen2.5-vl-72b-instruct` | 33K | | | | | | $1 | $1 |
|
|
48
|
-
| `ovhcloud/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.07 | $0.26 |
|
|
49
48
|
| `ovhcloud/qwen3.5-397b-a17b` | 262K | | | | | | $0.71 | $4 |
|
|
50
49
|
| `ovhcloud/qwen3.5-9b` | 262K | | | | | | $0.12 | $0.18 |
|
|
51
50
|
| `ovhcloud/qwen3.6-27b` | 262K | | | | | | $0.47 | $3 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Requesty
|
|
6
6
|
|
|
7
|
-
Access
|
|
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
|
|
|
@@ -38,12 +38,14 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
-
| `requesty/claude-fable-5` | 1.0M | | | | | | $
|
|
41
|
+
| `requesty/claude-fable-5` | 1.0M | | | | | | $11 | $55 |
|
|
42
42
|
| `requesty/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
|
|
43
43
|
| `requesty/claude-fable-5.1@eu` | 1.0M | | | | | | $11 | $55 |
|
|
44
44
|
| `requesty/claude-fable-5@eu` | 1.0M | | | | | | $11 | $55 |
|
|
45
45
|
| `requesty/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
46
46
|
| `requesty/claude-haiku-4-5@eu` | 200K | | | | | | $1 | $6 |
|
|
47
|
+
| `requesty/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
48
|
+
| `requesty/claude-haiku-5-5@eu` | 1.0M | | | | | | $0.11 | $0.55 |
|
|
47
49
|
| `requesty/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
48
50
|
| `requesty/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
49
51
|
| `requesty/claude-opus-4-5@eu` | 200K | | | | | | $6 | $28 |
|
|
@@ -146,6 +148,7 @@ for await (const chunk of stream) {
|
|
|
146
148
|
| `requesty/inkling` | 66K | | | | | | $2 | $5 |
|
|
147
149
|
| `requesty/inkling-256k` | 262K | | | | | | $2 | $5 |
|
|
148
150
|
| `requesty/kat-coder-pro` | 256K | | | | | | $0.30 | $1 |
|
|
151
|
+
| `requesty/kimi-k2.5@eu` | 128K | | | | | | $0.72 | $4 |
|
|
149
152
|
| `requesty/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
150
153
|
| `requesty/kimi-k2.6@eu` | 256K | | | | | | $0.95 | $4 |
|
|
151
154
|
| `requesty/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -167,8 +170,8 @@ for await (const chunk of stream) {
|
|
|
167
170
|
| `requesty/minimax-m2.7-highspeed` | 200K | | | | | | $0.60 | $2 |
|
|
168
171
|
| `requesty/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
169
172
|
| `requesty/minimax-m3@eu` | 1.0M | | | | | | $0.40 | $2 |
|
|
170
|
-
| `requesty/mistral-large-4` |
|
|
171
|
-
| `requesty/mistral-large-4@eu` |
|
|
173
|
+
| `requesty/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
174
|
+
| `requesty/mistral-large-4@eu` | 524K | | | | | | $0.68 | $2 |
|
|
172
175
|
| `requesty/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
|
|
173
176
|
| `requesty/mistral-medium-3-5@eu` | 262K | | | | | | $2 | $8 |
|
|
174
177
|
| `requesty/mistral-medium-latest` | 131K | | | | | | $0.44 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vivgrid
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 37 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
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `vivgrid/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
42
42
|
| `vivgrid/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
43
|
+
| `vivgrid/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
44
|
| `vivgrid/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
44
45
|
| `vivgrid/claude-opus-5-5` | 1.0M | | | | | | $4 | $20 |
|
|
45
46
|
| `vivgrid/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
@@ -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
|
|
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.
|
|
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,
|
|
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
|
|
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
|
})
|
|
@@ -181,6 +181,8 @@ Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
|
|
|
181
181
|
|
|
182
182
|
Reconnects to an existing run. Use this after a network disconnection. For the supported general reconnect flow, omit `offset` to replay all available cached events before receiving live events.
|
|
183
183
|
|
|
184
|
+
For runs configured with `structuredOutput`, an observer in another process reconstructs `output.object` from the persisted schema and replayed text.
|
|
185
|
+
|
|
184
186
|
```typescript
|
|
185
187
|
const { output } = await durableAgent.observe(runId, {
|
|
186
188
|
onChunk: chunk => console.log(chunk),
|
|
@@ -64,7 +64,7 @@ const result = await agent.generate('message for agent')
|
|
|
64
64
|
|
|
65
65
|
**options.delegation.onDelegationComplete** (`(context: DelegationCompleteContext) => { feedback?: string } | void | Promise<{ feedback?: string } | void>`): Called after a subagent delegation completes. The context includes a bail() method to stop further execution, and you can return { feedback } to guide the supervisor's next action. Feedback is saved to supervisor memory as an assistant message.
|
|
66
66
|
|
|
67
|
-
**options.delegation.messageFilter** (`(context: MessageFilterContext) =>
|
|
67
|
+
**options.delegation.messageFilter** (`(context: MessageFilterContext) => ModelMessage[] | Promise<ModelMessage[]>`): Callback function called before delegating to a subagent. Use this to filter the messages that are passed to the subagent.
|
|
68
68
|
|
|
69
69
|
**options.scorers** (`MastraScorers | Record<string, { scorer: MastraScorer['name']; sampling?: ScoringSamplingConfig }>`): Evaluation scorers to run on the execution results.
|
|
70
70
|
|
|
@@ -220,6 +220,8 @@ const result = await agent.generate('message for agent')
|
|
|
220
220
|
|
|
221
221
|
**options.tracingOptions.parentSpanId** (`string`): Parent span ID to use for this execution (1-16 hexadecimal characters). If provided, the root span will be created as a child of this span.
|
|
222
222
|
|
|
223
|
+
**options.tracingOptions.nestUnderParent** (`boolean`): Set to true together with parentSpanId to attach this run as a child of that span inside the existing trace, for example an LLM judge under the run it scores. Exporters then keep the trace's own name, input, output, and tags. Leave unset when parentSpanId comes from your own tracing system. Ignored without a valid traceId and parentSpanId.
|
|
224
|
+
|
|
223
225
|
**options.tracingOptions.tags** (`string[]`): Tags to apply to this trace. String labels for categorizing and filtering traces.
|
|
224
226
|
|
|
225
227
|
**options.versions** (`VersionOverrides`): Per-invocation version overrides for sub-agent delegation. Merged on top of Mastra instance-level versions and propagated automatically through sub-agent calls via requestContext. Requires the editor package. See Editor versioning.
|
|
@@ -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
|
|
|
@@ -76,6 +76,8 @@ await agent.network(`
|
|
|
76
76
|
|
|
77
77
|
**options.tracingOptions.parentSpanId** (`string`): Parent span ID to use for this execution (1-16 hexadecimal characters). If provided, the root span will be created as a child of this span.
|
|
78
78
|
|
|
79
|
+
**options.tracingOptions.nestUnderParent** (`boolean`): Set to true together with parentSpanId to attach this run as a child of that span inside the existing trace, for example an LLM judge under the run it scores. Exporters then keep the trace's own name, input, output, and tags. Leave unset when parentSpanId comes from your own tracing system. Ignored without a valid traceId and parentSpanId.
|
|
80
|
+
|
|
79
81
|
**options.tracingOptions.tags** (`string[]`): Tags to apply to this trace. String labels for categorizing and filtering traces.
|
|
80
82
|
|
|
81
83
|
**options.telemetry** (`TelemetrySettings`): Settings for OTLP telemetry collection during streaming (not Tracing).
|
|
@@ -71,6 +71,10 @@ export const mastra = new Mastra({
|
|
|
71
71
|
|
|
72
72
|
**sendSources** (`boolean`): Whether to include source citations in the stream. (Default: `false`)
|
|
73
73
|
|
|
74
|
+
**includeSubAgentMetadata** (`boolean`): Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. These parts can include sub-agent reasoning and tool calls and results. Set to false if your clients should not receive them. (Default: `true`)
|
|
75
|
+
|
|
76
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined). See the AI SDK message metadata docs for details.
|
|
77
|
+
|
|
74
78
|
**heartbeatMs** (`number`): Interval in milliseconds for SSE heartbeats that keep connections active through infrastructure with idle timeouts.
|
|
75
79
|
|
|
76
80
|
## Additional configuration
|
|
@@ -94,6 +94,8 @@ return withSseHeartbeat(createUIMessageStreamResponse({ stream }), 15000)
|
|
|
94
94
|
|
|
95
95
|
**sendSources** (`boolean`): Whether to include source citations in the stream. (Default: `false`)
|
|
96
96
|
|
|
97
|
+
**includeSubAgentMetadata** (`boolean`): Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. These parts can include sub-agent reasoning and tool calls and results. Set to false if your clients should not receive them. (Default: `true`)
|
|
98
|
+
|
|
97
99
|
**onError** (`(error: unknown) => string`): Called when the stream encounters an error. Return the string that will be sent to the client as the error message. Use this to sanitize errors before they reach the client — for example, to prevent internal infrastructure details from leaking to end users.
|
|
98
100
|
|
|
99
|
-
**messageMetadata** (`(options: { part: UIMessageStreamPart }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. See the AI SDK message metadata docs for details.
|
|
101
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined). See the AI SDK message metadata docs for details.
|
|
@@ -80,9 +80,11 @@ The second parameter is an options object:
|
|
|
80
80
|
|
|
81
81
|
**sendSources** (`boolean`): (Agent only) Whether to include source citations in the output. (Default: `false`)
|
|
82
82
|
|
|
83
|
+
**includeSubAgentMetadata** (`boolean`): (Agent only) Whether to stream sub-agent progress as data-tool-agent and data-tool-agent-step parts when the agent delegates to sub-agents. handleChatStream() and chatRoute() enable this by default. (Default: `false`)
|
|
84
|
+
|
|
83
85
|
**includeTextStreamParts** (`boolean`): (Workflow only) Whether to include text stream parts in the output. (Default: `true`)
|
|
84
86
|
|
|
85
|
-
**messageMetadata** (`(options: { part: UIMessageStreamPart }) => Record<string, unknown> | undefined`): (Agent only) A function that receives the current stream part and returns metadata to attach to start and finish chunks.
|
|
87
|
+
**messageMetadata** (`(options: { part: UIMessageStreamPart; traceId?: string }) => Record<string, unknown> | undefined`): (Agent only) A function that receives the current stream part and returns metadata to attach to start and finish chunks. Also receives the run's traceId (undefined when tracing is disabled), so you can return it as metadata, for example ({ part, traceId }) => (part.type === 'start' ? { traceId } : undefined).
|
|
86
88
|
|
|
87
89
|
**onError** (`(error: unknown) => string`): (Agent only) A function to handle errors during stream conversion. Receives the error and should return a string representation.
|
|
88
90
|
|
|
@@ -9,7 +9,7 @@ Converts messages from input formats to AI SDK V4 UI message format. This functi
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
import { toAISdkV4Messages } from '@mastra/ai-sdk'
|
|
12
|
+
import { toAISdkV4Messages } from '@mastra/ai-sdk/ui'
|
|
13
13
|
import { useChat } from 'ai/react' // AI SDK V4
|
|
14
14
|
|
|
15
15
|
// Stored messages from your database, memory or API
|
|
@@ -64,7 +64,7 @@ Returns an array of AI SDK V4 `UIMessage` objects with the following structure:
|
|
|
64
64
|
### Converting text messages
|
|
65
65
|
|
|
66
66
|
```typescript
|
|
67
|
-
import { toAISdkV4Messages } from '@mastra/ai-sdk'
|
|
67
|
+
import { toAISdkV4Messages } from '@mastra/ai-sdk/ui'
|
|
68
68
|
|
|
69
69
|
const messages = toAISdkV4Messages(['Hello', 'How can I help you today?'])
|
|
70
70
|
// Returns array of UIMessage objects with user role and content string
|
|
@@ -74,7 +74,7 @@ const messages = toAISdkV4Messages(['Hello', 'How can I help you today?'])
|
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
76
|
import { MastraClient } from '@mastra/client-js'
|
|
77
|
-
import { toAISdkV4Messages } from '@mastra/ai-sdk'
|
|
77
|
+
import { toAISdkV4Messages } from '@mastra/ai-sdk/ui'
|
|
78
78
|
|
|
79
79
|
const client = new MastraClient()
|
|
80
80
|
|
|
@@ -185,7 +185,7 @@ Returns: `Promise<void>`
|
|
|
185
185
|
|
|
186
186
|
## Default manifest
|
|
187
187
|
|
|
188
|
-
When `connect()` builds a Slack app, the generated manifest requests a default set of bot scopes and event subscriptions. Override
|
|
188
|
+
When `connect()` builds a Slack app, the generated manifest requests a default set of bot scopes and event subscriptions. Configuring slash commands also adds the `commands` scope. Override the defaults with the `manifest` option on `connect()`.
|
|
189
189
|
|
|
190
190
|
| Default bot scopes | Default bot events |
|
|
191
191
|
| ------------------- | ------------------ |
|