@mastra/mcp-docs-server 1.1.25-alpha.4 → 1.1.25-alpha.7
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/adding-voice.md +4 -4
- package/.docs/docs/deployment/mastra-server.md +4 -4
- package/.docs/docs/deployment/monorepo.md +3 -3
- package/.docs/docs/evals/custom-scorers.md +2 -2
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/memory/memory-processors.md +3 -3
- package/.docs/docs/memory/message-history.md +2 -2
- package/.docs/docs/memory/observational-memory.md +1 -1
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/overview.md +1 -1
- package/.docs/docs/observability/tracing/bridges/otel.md +2 -2
- package/.docs/docs/observability/tracing/exporters/cloud.md +7 -7
- package/.docs/docs/observability/tracing/exporters/default.md +2 -2
- package/.docs/docs/observability/tracing/overview.md +21 -21
- package/.docs/docs/server/custom-adapters.md +5 -5
- package/.docs/docs/server/custom-api-routes.md +3 -3
- package/.docs/docs/server/middleware.md +0 -24
- package/.docs/docs/studio/observability.md +1 -1
- package/.docs/docs/voice/speech-to-text.md +7 -7
- package/.docs/docs/voice/text-to-speech.md +10 -10
- package/.docs/docs/workspace/filesystem.md +4 -4
- package/.docs/docs/workspace/skills.md +3 -3
- package/.docs/guides/agent-frameworks/ai-sdk.md +4 -4
- package/.docs/guides/build-your-ui/ai-sdk-ui.md +4 -4
- package/.docs/guides/deployment/mastra-platform.md +122 -3
- package/.docs/guides/migrations/mastra-cloud.md +3 -7
- package/.docs/guides/migrations/upgrade-to-v1/tracing.md +1 -1
- package/.docs/models/embeddings.md +3 -3
- package/.docs/models/gateways/openrouter.md +3 -2
- package/.docs/models/index.md +5 -5
- package/.docs/models/providers/huggingface.md +2 -1
- package/.docs/models/providers/kilo.md +25 -27
- package/.docs/models/providers/synthetic.md +3 -2
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/reference/agents/channels.md +3 -3
- package/.docs/reference/ai-sdk/chat-route.md +2 -0
- package/.docs/reference/ai-sdk/handle-chat-stream.md +2 -0
- package/.docs/reference/ai-sdk/handle-network-stream.md +2 -0
- package/.docs/reference/ai-sdk/network-route.md +2 -0
- package/.docs/reference/client-js/observability.md +2 -2
- package/.docs/reference/core/addGateway.md +5 -5
- package/.docs/reference/core/getGateway.md +5 -5
- package/.docs/reference/core/getGatewayById.md +5 -5
- package/.docs/reference/core/getMCPServer.md +2 -2
- package/.docs/reference/core/getMCPServerById.md +2 -2
- package/.docs/reference/core/getScorer.md +3 -3
- package/.docs/reference/core/getScorerById.md +3 -3
- package/.docs/reference/core/listGateways.md +5 -5
- package/.docs/reference/core/listMCPServers.md +2 -2
- package/.docs/reference/core/listScorers.md +3 -3
- package/.docs/reference/core/mastra-model-gateway.md +5 -5
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-relevance.md +3 -3
- package/.docs/reference/evals/mastra-scorer.md +4 -4
- package/.docs/reference/evals/noise-sensitivity.md +6 -6
- package/.docs/reference/evals/prompt-alignment.md +12 -12
- package/.docs/reference/evals/run-evals.md +6 -6
- package/.docs/reference/evals/scorer-utils.md +3 -3
- package/.docs/reference/evals/trajectory-accuracy.md +3 -3
- package/.docs/reference/observability/tracing/bridges/otel.md +3 -3
- package/.docs/reference/observability/tracing/configuration.md +12 -12
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +10 -10
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +8 -8
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +8 -8
- package/.docs/reference/observability/tracing/exporters/otel.md +3 -3
- package/.docs/reference/observability/tracing/instances.md +7 -7
- package/.docs/reference/observability/tracing/interfaces.md +6 -6
- package/.docs/reference/observability/tracing/spans.md +6 -6
- package/.docs/reference/processors/processor-interface.md +3 -3
- package/.docs/reference/server/create-route.md +3 -3
- package/.docs/reference/server/express-adapter.md +4 -4
- package/.docs/reference/server/fastify-adapter.md +4 -4
- package/.docs/reference/server/hono-adapter.md +4 -4
- package/.docs/reference/server/koa-adapter.md +4 -4
- package/.docs/reference/server/mastra-server.md +3 -3
- package/.docs/reference/server/register-api-route.md +4 -4
- package/.docs/reference/server/routes.md +2 -2
- package/.docs/reference/storage/overview.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +3 -3
- package/.docs/reference/streaming/agents/MastraModelOutput.md +2 -2
- package/.docs/reference/voice/cloudflare.md +3 -3
- package/.docs/reference/voice/voice.connect.md +4 -4
- package/.docs/reference/voice/voice.listen.md +3 -3
- package/.docs/reference/workflows/run-methods/startAsync.md +1 -1
- package/.docs/reference/workspace/vercel.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +1 -1
- package/CHANGELOG.md +8 -0
- package/package.json +4 -4
|
@@ -129,7 +129,7 @@ export const mastra = new Mastra({
|
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
- `DefaultExporter` persists traces to your storage backend for [Studio](https://mastra.ai/docs/studio/observability).
|
|
132
|
-
- `CloudExporter`
|
|
132
|
+
- `CloudExporter` Sends observability data to hosted Mastra Studio when `MASTRA_CLOUD_ACCESS_TOKEN` is set.
|
|
133
133
|
- `SensitiveDataFilter` redacts passwords, tokens, and keys from span data before export.
|
|
134
134
|
|
|
135
135
|
See the [observability overview](https://mastra.ai/docs/observability/overview) for the full configuration, including composite storage with DuckDB for metrics.
|
|
@@ -192,12 +192,10 @@ jobs:
|
|
|
192
192
|
runs-on: ubuntu-latest
|
|
193
193
|
steps:
|
|
194
194
|
- uses: actions/checkout@v4
|
|
195
|
+
- uses: pnpm/action-setup@v4
|
|
195
196
|
- uses: actions/setup-node@v4
|
|
196
197
|
with:
|
|
197
198
|
node-version: '22'
|
|
198
|
-
- uses: pnpm/action-setup@v4
|
|
199
|
-
with:
|
|
200
|
-
version: 10
|
|
201
199
|
- run: pnpm install
|
|
202
200
|
- run: pnpm mastra server deploy --yes --config .mastra-project.json
|
|
203
201
|
env:
|
|
@@ -220,12 +218,10 @@ jobs:
|
|
|
220
218
|
runs-on: ubuntu-latest
|
|
221
219
|
steps:
|
|
222
220
|
- uses: actions/checkout@v4
|
|
221
|
+
- uses: pnpm/action-setup@v4
|
|
223
222
|
- uses: actions/setup-node@v4
|
|
224
223
|
with:
|
|
225
224
|
node-version: '22'
|
|
226
|
-
- uses: pnpm/action-setup@v4
|
|
227
|
-
with:
|
|
228
|
-
version: 10
|
|
229
225
|
- run: pnpm install
|
|
230
226
|
- run: pnpm mastra studio deploy --yes --config .mastra-project.json
|
|
231
227
|
env:
|
|
@@ -46,7 +46,7 @@ export const mastra = new Mastra({
|
|
|
46
46
|
serviceName: 'mastra',
|
|
47
47
|
exporters: [
|
|
48
48
|
new DefaultExporter(), // Persists traces to storage for Studio
|
|
49
|
-
new CloudExporter(), // Sends observability data to Mastra
|
|
49
|
+
new CloudExporter(), // Sends observability data to hosted Mastra Studio (if MASTRA_CLOUD_ACCESS_TOKEN is set)
|
|
50
50
|
],
|
|
51
51
|
spanOutputProcessors: [
|
|
52
52
|
new SensitiveDataFilter(), // Redacts sensitive data like passwords, tokens, keys
|
|
@@ -156,6 +156,6 @@ try {
|
|
|
156
156
|
|
|
157
157
|
## Next Steps
|
|
158
158
|
|
|
159
|
-
- [Memory & Semantic Recall](https://mastra.ai/docs/memory/semantic-recall)
|
|
160
|
-
- [RAG & Chunking](https://mastra.ai/docs/rag/chunking-and-embedding)
|
|
161
|
-
- [Vector Databases](https://mastra.ai/docs/rag/vector-databases)
|
|
159
|
+
- [Memory & Semantic Recall](https://mastra.ai/docs/memory/semantic-recall): Use embeddings for agent memory
|
|
160
|
+
- [RAG & Chunking](https://mastra.ai/docs/rag/chunking-and-embedding): Build retrieval-augmented generation systems
|
|
161
|
+
- [Vector Databases](https://mastra.ai/docs/rag/vector-databases): Store and query embeddings
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenRouter
|
|
2
2
|
|
|
3
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
3
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 176 models through Mastra's model router.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
6
6
|
|
|
@@ -55,6 +55,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
55
55
|
| `cognitivecomputations/dolphin-mistral-24b-venice-edition:free` |
|
|
56
56
|
| `deepseek/deepseek-chat-v3-0324` |
|
|
57
57
|
| `deepseek/deepseek-chat-v3.1` |
|
|
58
|
+
| `deepseek/deepseek-r1` |
|
|
58
59
|
| `deepseek/deepseek-r1-distill-llama-70b` |
|
|
59
60
|
| `deepseek/deepseek-v3.1-terminus` |
|
|
60
61
|
| `deepseek/deepseek-v3.1-terminus:exacto` |
|
|
@@ -158,6 +159,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
158
159
|
| `openai/gpt-oss-20b:free` |
|
|
159
160
|
| `openai/gpt-oss-safeguard-20b` |
|
|
160
161
|
| `openai/o4-mini` |
|
|
162
|
+
| `openrouter/elephant-alpha` |
|
|
161
163
|
| `openrouter/free` |
|
|
162
164
|
| `prime-intellect/intellect-3` |
|
|
163
165
|
| `qwen/qwen-2.5-coder-32b-instruct` |
|
|
@@ -184,7 +186,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
184
186
|
| `sourceful/riverflow-v2-max-preview` |
|
|
185
187
|
| `sourceful/riverflow-v2-standard-preview` |
|
|
186
188
|
| `stepfun/step-3.5-flash` |
|
|
187
|
-
| `stepfun/step-3.5-flash:free` |
|
|
188
189
|
| `x-ai/grok-3` |
|
|
189
190
|
| `x-ai/grok-3-beta` |
|
|
190
191
|
| `x-ai/grok-3-mini` |
|
package/.docs/models/index.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Model Providers
|
|
2
2
|
|
|
3
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
3
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 3610 models from 99 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **One API for any model
|
|
7
|
+
- **One API for any model**: Access any model without having to install and manage additional provider dependencies.
|
|
8
8
|
|
|
9
|
-
- **Access the newest AI
|
|
9
|
+
- **Access the newest AI**: Use new models the moment they're released, no matter which provider they come from. Avoid vendor lock-in with Mastra's provider-agnostic interface.
|
|
10
10
|
|
|
11
|
-
- [**Mix and match models**](#mix-and-match-models)
|
|
11
|
+
- [**Mix and match models**](#mix-and-match-models): Use different models for different tasks. For example, run GPT-5-mini for large-context processing, then switch to Claude Opus 4.6 for reasoning tasks.
|
|
12
12
|
|
|
13
|
-
- [**Model fallbacks**](#model-fallbacks)
|
|
13
|
+
- [**Model fallbacks**](#model-fallbacks): If a provider experiences an outage, Mastra can automatically switch to another provider at the application level, minimizing latency compared to API gateways.
|
|
14
14
|
|
|
15
15
|
## Basic usage
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Hugging Face
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 22 Hugging Face models through Mastra's model router. Authentication is handled automatically using the `HF_TOKEN` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Hugging Face documentation](https://huggingface.co).
|
|
6
6
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `huggingface/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.28 | $0.40 |
|
|
39
39
|
| `huggingface/MiniMaxAI/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
|
|
40
40
|
| `huggingface/MiniMaxAI/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
41
|
+
| `huggingface/MiniMaxAI/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
|
|
41
42
|
| `huggingface/moonshotai/Kimi-K2-Instruct` | 131K | | | | | | $1 | $3 |
|
|
42
43
|
| `huggingface/moonshotai/Kimi-K2-Instruct-0905` | 262K | | | | | | $1 | $3 |
|
|
43
44
|
| `huggingface/moonshotai/Kimi-K2-Thinking` | 262K | | | | | | $0.60 | $3 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Kilo Gateway
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 334 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
6
6
|
|
|
@@ -41,13 +41,9 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `kilo/aion-labs/aion-rp-llama-3.1-8b` | 33K | | | | | | $0.80 | $2 |
|
|
42
42
|
| `kilo/alfredpros/codellama-7b-instruct-solidity` | 4K | | | | | | $0.80 | $1 |
|
|
43
43
|
| `kilo/alibaba/tongyi-deepresearch-30b-a3b` | 131K | | | | | | $0.09 | $0.45 |
|
|
44
|
-
| `kilo/allenai/molmo-2-8b` | 37K | | | | | | $0.20 | $0.20 |
|
|
45
44
|
| `kilo/allenai/olmo-2-0325-32b-instruct` | 128K | | | | | | $0.05 | $0.20 |
|
|
46
45
|
| `kilo/allenai/olmo-3-32b-think` | 66K | | | | | | $0.15 | $0.50 |
|
|
47
|
-
| `kilo/allenai/olmo-3-7b-instruct` | 66K | | | | | | $0.10 | $0.20 |
|
|
48
|
-
| `kilo/allenai/olmo-3-7b-think` | 66K | | | | | | $0.12 | $0.20 |
|
|
49
46
|
| `kilo/allenai/olmo-3.1-32b-instruct` | 66K | | | | | | $0.20 | $0.60 |
|
|
50
|
-
| `kilo/allenai/olmo-3.1-32b-think` | 66K | | | | | | $0.15 | $0.50 |
|
|
51
47
|
| `kilo/alpindale/goliath-120b` | 6K | | | | | | $4 | $8 |
|
|
52
48
|
| `kilo/amazon/nova-2-lite-v1` | 1.0M | | | | | | $0.30 | $3 |
|
|
53
49
|
| `kilo/amazon/nova-lite-v1` | 300K | | | | | | $0.06 | $0.24 |
|
|
@@ -57,7 +53,6 @@ for await (const chunk of stream) {
|
|
|
57
53
|
| `kilo/anthracite-org/magnum-v4-72b` | 16K | | | | | | $3 | $5 |
|
|
58
54
|
| `kilo/anthropic/claude-3-haiku` | 200K | | | | | | $0.25 | $1 |
|
|
59
55
|
| `kilo/anthropic/claude-3.5-haiku` | 200K | | | | | | $0.80 | $4 |
|
|
60
|
-
| `kilo/anthropic/claude-3.5-sonnet` | 200K | | | | | | $6 | $30 |
|
|
61
56
|
| `kilo/anthropic/claude-3.7-sonnet` | 200K | | | | | | $3 | $15 |
|
|
62
57
|
| `kilo/anthropic/claude-3.7-sonnet:thinking` | 200K | | | | | | $3 | $15 |
|
|
63
58
|
| `kilo/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
@@ -65,13 +60,15 @@ for await (const chunk of stream) {
|
|
|
65
60
|
| `kilo/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
66
61
|
| `kilo/anthropic/claude-opus-4.5` | 200K | | | | | | $5 | $25 |
|
|
67
62
|
| `kilo/anthropic/claude-opus-4.6` | 1.0M | | | | | | $5 | $25 |
|
|
63
|
+
| `kilo/anthropic/claude-opus-4.6-fast` | 1.0M | | | | | | $30 | $150 |
|
|
68
64
|
| `kilo/anthropic/claude-sonnet-4` | 200K | | | | | | $3 | $15 |
|
|
69
65
|
| `kilo/anthropic/claude-sonnet-4.5` | 1.0M | | | | | | $3 | $15 |
|
|
70
66
|
| `kilo/anthropic/claude-sonnet-4.6` | 1.0M | | | | | | $3 | $15 |
|
|
71
67
|
| `kilo/arcee-ai/coder-large` | 33K | | | | | | $0.50 | $0.80 |
|
|
72
68
|
| `kilo/arcee-ai/maestro-reasoning` | 131K | | | | | | $0.90 | $3 |
|
|
73
69
|
| `kilo/arcee-ai/spotlight` | 131K | | | | | | $0.18 | $0.18 |
|
|
74
|
-
| `kilo/arcee-ai/trinity-large-
|
|
70
|
+
| `kilo/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.22 | $0.85 |
|
|
71
|
+
| `kilo/arcee-ai/trinity-large-thinking:free` | 262K | | | | | | — | — |
|
|
75
72
|
| `kilo/arcee-ai/trinity-mini` | 131K | | | | | | $0.04 | $0.15 |
|
|
76
73
|
| `kilo/arcee-ai/virtuoso-large` | 131K | | | | | | $0.75 | $1 |
|
|
77
74
|
| `kilo/baidu/ernie-4.5-21b-a3b` | 120K | | | | | | $0.07 | $0.28 |
|
|
@@ -79,6 +76,7 @@ for await (const chunk of stream) {
|
|
|
79
76
|
| `kilo/baidu/ernie-4.5-300b-a47b` | 123K | | | | | | $0.28 | $1 |
|
|
80
77
|
| `kilo/baidu/ernie-4.5-vl-28b-a3b` | 30K | | | | | | $0.14 | $0.56 |
|
|
81
78
|
| `kilo/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
|
|
79
|
+
| `kilo/bytedance-seed/dola-seed-2.0-pro:free` | 256K | | | | | | — | — |
|
|
82
80
|
| `kilo/bytedance-seed/seed-1.6` | 262K | | | | | | $0.25 | $2 |
|
|
83
81
|
| `kilo/bytedance-seed/seed-1.6-flash` | 262K | | | | | | $0.07 | $0.30 |
|
|
84
82
|
| `kilo/bytedance-seed/seed-2.0-lite` | 262K | | | | | | $0.25 | $2 |
|
|
@@ -88,7 +86,6 @@ for await (const chunk of stream) {
|
|
|
88
86
|
| `kilo/cohere/command-r-08-2024` | 128K | | | | | | $0.15 | $0.60 |
|
|
89
87
|
| `kilo/cohere/command-r-plus-08-2024` | 128K | | | | | | $3 | $10 |
|
|
90
88
|
| `kilo/cohere/command-r7b-12-2024` | 128K | | | | | | $0.04 | $0.15 |
|
|
91
|
-
| `kilo/corethink:free` | 78K | | | | | | — | — |
|
|
92
89
|
| `kilo/deepcogito/cogito-v2.1-671b` | 128K | | | | | | $1 | $1 |
|
|
93
90
|
| `kilo/deepseek/deepseek-chat` | 164K | | | | | | $0.32 | $0.89 |
|
|
94
91
|
| `kilo/deepseek/deepseek-chat-v3-0324` | 164K | | | | | | $0.20 | $0.77 |
|
|
@@ -103,8 +100,6 @@ for await (const chunk of stream) {
|
|
|
103
100
|
| `kilo/deepseek/deepseek-v3.2-speciale` | 164K | | | | | | $0.40 | $1 |
|
|
104
101
|
| `kilo/eleutherai/llemma_7b` | 4K | | | | | | $0.80 | $1 |
|
|
105
102
|
| `kilo/essentialai/rnj-1-instruct` | 33K | | | | | | $0.15 | $0.15 |
|
|
106
|
-
| `kilo/giga-potato` | 256K | | | | | | — | — |
|
|
107
|
-
| `kilo/giga-potato-thinking` | 256K | | | | | | — | — |
|
|
108
103
|
| `kilo/google/gemini-2.0-flash-001` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
109
104
|
| `kilo/google/gemini-2.0-flash-lite-001` | 1.0M | | | | | | $0.07 | $0.30 |
|
|
110
105
|
| `kilo/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
@@ -116,7 +111,6 @@ for await (const chunk of stream) {
|
|
|
116
111
|
| `kilo/google/gemini-2.5-pro-preview-05-06` | 1.0M | | | | | | $1 | $10 |
|
|
117
112
|
| `kilo/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
118
113
|
| `kilo/google/gemini-3-pro-image-preview` | 66K | | | | | | $2 | $12 |
|
|
119
|
-
| `kilo/google/gemini-3-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
120
114
|
| `kilo/google/gemini-3.1-flash-image-preview` | 66K | | | | | | $0.50 | $3 |
|
|
121
115
|
| `kilo/google/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
122
116
|
| `kilo/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
@@ -127,6 +121,10 @@ for await (const chunk of stream) {
|
|
|
127
121
|
| `kilo/google/gemma-3-27b-it` | 128K | | | | | | $0.03 | $0.11 |
|
|
128
122
|
| `kilo/google/gemma-3-4b-it` | 131K | | | | | | $0.04 | $0.08 |
|
|
129
123
|
| `kilo/google/gemma-3n-e4b-it` | 33K | | | | | | $0.02 | $0.04 |
|
|
124
|
+
| `kilo/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.12 | $0.40 |
|
|
125
|
+
| `kilo/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
|
|
126
|
+
| `kilo/google/lyria-3-clip-preview` | 1.0M | | | | | | — | — |
|
|
127
|
+
| `kilo/google/lyria-3-pro-preview` | 1.0M | | | | | | — | — |
|
|
130
128
|
| `kilo/gryphe/mythomax-l2-13b` | 4K | | | | | | $0.06 | $0.06 |
|
|
131
129
|
| `kilo/ibm-granite/granite-4.0-h-micro` | 131K | | | | | | $0.02 | $0.11 |
|
|
132
130
|
| `kilo/inception/mercury` | 128K | | | | | | $0.25 | $0.75 |
|
|
@@ -138,19 +136,12 @@ for await (const chunk of stream) {
|
|
|
138
136
|
| `kilo/kilo-auto/free` | 205K | | | | | | — | — |
|
|
139
137
|
| `kilo/kilo-auto/frontier` | 1.0M | | | | | | $5 | $25 |
|
|
140
138
|
| `kilo/kilo-auto/small` | 400K | | | | | | $0.05 | $0.40 |
|
|
141
|
-
| `kilo/
|
|
142
|
-
| `kilo/kilo/auto-free` | 205K | | | | | | — | — |
|
|
143
|
-
| `kilo/kilo/auto-small` | 400K | | | | | | $0.05 | $0.40 |
|
|
144
|
-
| `kilo/kwaipilot/kat-coder-pro` | 256K | | | | | | $0.21 | $0.83 |
|
|
139
|
+
| `kilo/kwaipilot/kat-coder-pro-v2` | 256K | | | | | | $0.30 | $1 |
|
|
145
140
|
| `kilo/liquid/lfm-2-24b-a2b` | 33K | | | | | | $0.03 | $0.12 |
|
|
146
|
-
| `kilo/liquid/lfm-2.2-6b` | 33K | | | | | | $0.01 | $0.02 |
|
|
147
|
-
| `kilo/liquid/lfm2-8b-a1b` | 33K | | | | | | $0.01 | $0.02 |
|
|
148
141
|
| `kilo/mancer/weaver` | 8K | | | | | | $0.75 | $1 |
|
|
149
142
|
| `kilo/meituan/longcat-flash-chat` | 131K | | | | | | $0.20 | $0.80 |
|
|
150
143
|
| `kilo/meta-llama/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
|
|
151
144
|
| `kilo/meta-llama/llama-3-8b-instruct` | 8K | | | | | | $0.03 | $0.04 |
|
|
152
|
-
| `kilo/meta-llama/llama-3.1-405b` | 33K | | | | | | $4 | $4 |
|
|
153
|
-
| `kilo/meta-llama/llama-3.1-405b-instruct` | 131K | | | | | | $4 | $4 |
|
|
154
145
|
| `kilo/meta-llama/llama-3.1-70b-instruct` | 131K | | | | | | $0.40 | $0.40 |
|
|
155
146
|
| `kilo/meta-llama/llama-3.1-8b-instruct` | 16K | | | | | | $0.02 | $0.05 |
|
|
156
147
|
| `kilo/meta-llama/llama-3.2-11b-vision-instruct` | 131K | | | | | | $0.05 | $0.05 |
|
|
@@ -187,6 +178,7 @@ for await (const chunk of stream) {
|
|
|
187
178
|
| `kilo/mistralai/mistral-nemo` | 131K | | | | | | $0.02 | $0.04 |
|
|
188
179
|
| `kilo/mistralai/mistral-saba` | 33K | | | | | | $0.20 | $0.60 |
|
|
189
180
|
| `kilo/mistralai/mistral-small-24b-instruct-2501` | 33K | | | | | | $0.05 | $0.08 |
|
|
181
|
+
| `kilo/mistralai/mistral-small-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
190
182
|
| `kilo/mistralai/mistral-small-3.1-24b-instruct` | 128K | | | | | | $0.35 | $0.56 |
|
|
191
183
|
| `kilo/mistralai/mistral-small-3.2-24b-instruct` | 131K | | | | | | $0.06 | $0.18 |
|
|
192
184
|
| `kilo/mistralai/mistral-small-creative` | 33K | | | | | | $0.10 | $0.30 |
|
|
@@ -198,7 +190,6 @@ for await (const chunk of stream) {
|
|
|
198
190
|
| `kilo/moonshotai/kimi-k2-0905` | 131K | | | | | | $0.40 | $2 |
|
|
199
191
|
| `kilo/moonshotai/kimi-k2-thinking` | 131K | | | | | | $0.47 | $2 |
|
|
200
192
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.45 | $2 |
|
|
201
|
-
| `kilo/morph-warp-grep-v2` | 256K | | | | | | — | — |
|
|
202
193
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
203
194
|
| `kilo/morph/morph-v3-large` | 262K | | | | | | $0.90 | $2 |
|
|
204
195
|
| `kilo/nex-agi/deepseek-v3.1-nex-n1` | 131K | | | | | | $0.27 | $1 |
|
|
@@ -208,8 +199,10 @@ for await (const chunk of stream) {
|
|
|
208
199
|
| `kilo/nousresearch/hermes-4-405b` | 131K | | | | | | $1 | $3 |
|
|
209
200
|
| `kilo/nousresearch/hermes-4-70b` | 131K | | | | | | $0.13 | $0.40 |
|
|
210
201
|
| `kilo/nvidia/llama-3.1-nemotron-70b-instruct` | 131K | | | | | | $1 | $1 |
|
|
202
|
+
| `kilo/nvidia/llama-3.1-nemotron-ultra-253b-v1` | 131K | | | | | | $0.60 | $2 |
|
|
211
203
|
| `kilo/nvidia/llama-3.3-nemotron-super-49b-v1.5` | 131K | | | | | | $0.10 | $0.40 |
|
|
212
204
|
| `kilo/nvidia/nemotron-3-nano-30b-a3b` | 262K | | | | | | $0.05 | $0.20 |
|
|
205
|
+
| `kilo/nvidia/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.10 | $0.50 |
|
|
213
206
|
| `kilo/nvidia/nemotron-3-super-120b-a12b:free` | 262K | | | | | | — | — |
|
|
214
207
|
| `kilo/nvidia/nemotron-nano-12b-v2-vl` | 131K | | | | | | $0.20 | $0.60 |
|
|
215
208
|
| `kilo/nvidia/nemotron-nano-9b-v2` | 131K | | | | | | $0.04 | $0.16 |
|
|
@@ -255,6 +248,8 @@ for await (const chunk of stream) {
|
|
|
255
248
|
| `kilo/openai/gpt-5.3-chat` | 128K | | | | | | $2 | $14 |
|
|
256
249
|
| `kilo/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
257
250
|
| `kilo/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
251
|
+
| `kilo/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
252
|
+
| `kilo/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
258
253
|
| `kilo/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
259
254
|
| `kilo/openai/gpt-audio` | 128K | | | | | | $3 | $10 |
|
|
260
255
|
| `kilo/openai/gpt-audio-mini` | 128K | | | | | | $0.60 | $2 |
|
|
@@ -274,8 +269,6 @@ for await (const chunk of stream) {
|
|
|
274
269
|
| `kilo/openrouter/auto` | 2.0M | | | | | | — | — |
|
|
275
270
|
| `kilo/openrouter/bodybuilder` | 128K | | | | | | — | — |
|
|
276
271
|
| `kilo/openrouter/free` | 200K | | | | | | — | — |
|
|
277
|
-
| `kilo/openrouter/healer-alpha` | 262K | | | | | | — | — |
|
|
278
|
-
| `kilo/openrouter/hunter-alpha` | 1.0M | | | | | | — | — |
|
|
279
272
|
| `kilo/perplexity/sonar` | 127K | | | | | | $1 | $1 |
|
|
280
273
|
| `kilo/perplexity/sonar-deep-research` | 128K | | | | | | $2 | $8 |
|
|
281
274
|
| `kilo/perplexity/sonar-pro` | 200K | | | | | | $3 | $15 |
|
|
@@ -285,7 +278,6 @@ for await (const chunk of stream) {
|
|
|
285
278
|
| `kilo/qwen/qwen-2.5-72b-instruct` | 33K | | | | | | $0.12 | $0.39 |
|
|
286
279
|
| `kilo/qwen/qwen-2.5-7b-instruct` | 33K | | | | | | $0.04 | $0.10 |
|
|
287
280
|
| `kilo/qwen/qwen-2.5-coder-32b-instruct` | 33K | | | | | | $0.20 | $0.20 |
|
|
288
|
-
| `kilo/qwen/qwen-2.5-vl-7b-instruct` | 33K | | | | | | $0.20 | $0.20 |
|
|
289
281
|
| `kilo/qwen/qwen-max` | 33K | | | | | | $1 | $4 |
|
|
290
282
|
| `kilo/qwen/qwen-plus` | 1.0M | | | | | | $0.40 | $1 |
|
|
291
283
|
| `kilo/qwen/qwen-plus-2025-07-28` | 1.0M | | | | | | $0.26 | $0.78 |
|
|
@@ -328,7 +320,10 @@ for await (const chunk of stream) {
|
|
|
328
320
|
| `kilo/qwen/qwen3.5-9b` | 256K | | | | | | $0.05 | $0.15 |
|
|
329
321
|
| `kilo/qwen/qwen3.5-flash-02-23` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
330
322
|
| `kilo/qwen/qwen3.5-plus-02-15` | 1.0M | | | | | | $0.26 | $2 |
|
|
323
|
+
| `kilo/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.33 | $2 |
|
|
331
324
|
| `kilo/qwen/qwq-32b` | 33K | | | | | | $0.15 | $0.40 |
|
|
325
|
+
| `kilo/rekaai/reka-edge` | 16K | | | | | | $0.10 | $0.10 |
|
|
326
|
+
| `kilo/rekaai/reka-flash-3` | 66K | | | | | | $0.10 | $0.20 |
|
|
332
327
|
| `kilo/relace/relace-apply-3` | 256K | | | | | | $0.85 | $1 |
|
|
333
328
|
| `kilo/relace/relace-search` | 256K | | | | | | $1 | $3 |
|
|
334
329
|
| `kilo/sao10k/l3-euryale-70b` | 8K | | | | | | $1 | $1 |
|
|
@@ -337,7 +332,6 @@ for await (const chunk of stream) {
|
|
|
337
332
|
| `kilo/sao10k/l3.1-euryale-70b` | 131K | | | | | | $0.85 | $0.85 |
|
|
338
333
|
| `kilo/sao10k/l3.3-euryale-70b` | 131K | | | | | | $0.65 | $0.75 |
|
|
339
334
|
| `kilo/stepfun/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
340
|
-
| `kilo/stepfun/step-3.5-flash:free` | 256K | | | | | | — | — |
|
|
341
335
|
| `kilo/switchpoint/router` | 131K | | | | | | $0.85 | $3 |
|
|
342
336
|
| `kilo/tencent/hunyuan-a13b-instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
343
337
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
@@ -355,11 +349,13 @@ for await (const chunk of stream) {
|
|
|
355
349
|
| `kilo/x-ai/grok-4` | 256K | | | | | | $3 | $15 |
|
|
356
350
|
| `kilo/x-ai/grok-4-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
357
351
|
| `kilo/x-ai/grok-4.1-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
358
|
-
| `kilo/x-ai/grok-4.20
|
|
359
|
-
| `kilo/x-ai/grok-4.20-multi-agent
|
|
352
|
+
| `kilo/x-ai/grok-4.20` | 2.0M | | | | | | $2 | $6 |
|
|
353
|
+
| `kilo/x-ai/grok-4.20-multi-agent` | 2.0M | | | | | | $2 | $6 |
|
|
360
354
|
| `kilo/x-ai/grok-code-fast-1` | 256K | | | | | | $0.20 | $2 |
|
|
361
355
|
| `kilo/x-ai/grok-code-fast-1:optimized:free` | 256K | | | | | | — | — |
|
|
362
356
|
| `kilo/xiaomi/mimo-v2-flash` | 262K | | | | | | $0.09 | $0.29 |
|
|
357
|
+
| `kilo/xiaomi/mimo-v2-omni` | 262K | | | | | | $0.40 | $2 |
|
|
358
|
+
| `kilo/xiaomi/mimo-v2-pro` | 1.0M | | | | | | $1 | $3 |
|
|
363
359
|
| `kilo/z-ai/glm-4-32b` | 128K | | | | | | $0.10 | $0.10 |
|
|
364
360
|
| `kilo/z-ai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
365
361
|
| `kilo/z-ai/glm-4.5-air` | 131K | | | | | | $0.13 | $0.85 |
|
|
@@ -369,7 +365,9 @@ for await (const chunk of stream) {
|
|
|
369
365
|
| `kilo/z-ai/glm-4.7` | 203K | | | | | | $0.38 | $2 |
|
|
370
366
|
| `kilo/z-ai/glm-4.7-flash` | 203K | | | | | | $0.06 | $0.40 |
|
|
371
367
|
| `kilo/z-ai/glm-5` | 203K | | | | | | $0.72 | $2 |
|
|
368
|
+
| `kilo/z-ai/glm-5-turbo` | 203K | | | | | | $1 | $4 |
|
|
372
369
|
| `kilo/z-ai/glm-5.1` | 203K | | | | | | $1 | $4 |
|
|
370
|
+
| `kilo/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
|
|
373
371
|
|
|
374
372
|
## Advanced configuration
|
|
375
373
|
|
|
@@ -399,7 +397,7 @@ const agent = new Agent({
|
|
|
399
397
|
model: ({ requestContext }) => {
|
|
400
398
|
const useAdvanced = requestContext.task === "complex";
|
|
401
399
|
return useAdvanced
|
|
402
|
-
? "kilo/z-ai/glm-
|
|
400
|
+
? "kilo/z-ai/glm-5v-turbo"
|
|
403
401
|
: "kilo/ai21/jamba-large-1.7";
|
|
404
402
|
}
|
|
405
403
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Synthetic
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 32 Synthetic models through Mastra's model router. Authentication is handled automatically using the `SYNTHETIC_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Synthetic documentation](https://synthetic.new/pricing).
|
|
6
6
|
|
|
@@ -65,6 +65,7 @@ for await (const chunk of stream) {
|
|
|
65
65
|
| `synthetic/hf:zai-org/GLM-4.7` | 200K | | | | | | $0.55 | $2 |
|
|
66
66
|
| `synthetic/hf:zai-org/GLM-4.7-Flash` | 197K | | | | | | $0.06 | $0.40 |
|
|
67
67
|
| `synthetic/hf:zai-org/GLM-5` | 197K | | | | | | $1 | $3 |
|
|
68
|
+
| `synthetic/hf:zai-org/GLM-5.1` | 197K | | | | | | $1 | $3 |
|
|
68
69
|
|
|
69
70
|
## Advanced configuration
|
|
70
71
|
|
|
@@ -94,7 +95,7 @@ const agent = new Agent({
|
|
|
94
95
|
model: ({ requestContext }) => {
|
|
95
96
|
const useAdvanced = requestContext.task === "complex";
|
|
96
97
|
return useAdvanced
|
|
97
|
-
? "synthetic/hf:zai-org/GLM-5"
|
|
98
|
+
? "synthetic/hf:zai-org/GLM-5.1"
|
|
98
99
|
: "synthetic/hf:MiniMaxAI/MiniMax-M2";
|
|
99
100
|
}
|
|
100
101
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Together AI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 15 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
6
6
|
|
|
@@ -39,6 +39,7 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| `togetherai/google/gemma-4-31B-it` | 262K | | | | | | $0.20 | $0.50 |
|
|
40
40
|
| `togetherai/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.88 | $0.88 |
|
|
41
41
|
| `togetherai/MiniMaxAI/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
42
|
+
| `togetherai/MiniMaxAI/MiniMax-M2.7` | 203K | | | | | | $0.30 | $1 |
|
|
42
43
|
| `togetherai/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.50 | $3 |
|
|
43
44
|
| `togetherai/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
44
45
|
| `togetherai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput` | 262K | | | | | | $0.20 | $0.60 |
|
|
@@ -159,6 +159,6 @@ type InlineLinkEntry =
|
|
|
159
159
|
|
|
160
160
|
## Related
|
|
161
161
|
|
|
162
|
-
- [Channels guide](https://mastra.ai/docs/agents/channels)
|
|
163
|
-
- [Agent class](https://mastra.ai/reference/agents/agent)
|
|
164
|
-
- [Chat SDK adapters](https://chat-sdk.dev/adapters)
|
|
162
|
+
- [Channels guide](https://mastra.ai/docs/agents/channels): Concepts, quickstart, and platform setup
|
|
163
|
+
- [Agent class](https://mastra.ai/reference/agents/agent): Constructor parameters and methods
|
|
164
|
+
- [Chat SDK adapters](https://chat-sdk.dev/adapters): Adapter configuration and platform setup
|
|
@@ -55,6 +55,8 @@ export const mastra = new Mastra({
|
|
|
55
55
|
|
|
56
56
|
**agent** (`string`): The ID of the agent to use for this chat route. Required if the path doesn't include \`:agentId\`.
|
|
57
57
|
|
|
58
|
+
**agentVersion** (`{ versionId: string } | { status?: 'draft' | 'published' }`): Selects a specific agent version. Pass \`{ versionId: '\<id>' }\` to target an exact version, or \`{ status: 'draft' }\` / \`{ status: 'published' }\` to resolve by status. When the route is called, query parameters \`?versionId=\<id>\` or \`?status=draft|published\` take precedence over this static value. Requires the \[Editor]\(/docs/editor/overview) to be configured.
|
|
59
|
+
|
|
58
60
|
**defaultOptions** (`AgentExecutionOptions`): Default options passed to agent execution. These can include instructions, memory configuration, maxSteps, and other execution settings.
|
|
59
61
|
|
|
60
62
|
**sendStart** (`boolean`): Whether to send start events in the stream. (Default: `true`)
|
|
@@ -37,6 +37,8 @@ export async function POST(req: Request) {
|
|
|
37
37
|
|
|
38
38
|
**agentId** (`string`): The ID of the agent to use for chat.
|
|
39
39
|
|
|
40
|
+
**agentVersion** (`{ versionId: string } | { status?: 'draft' | 'published' }`): Selects a specific agent version. Pass \`{ versionId: '\<id>' }\` to target an exact version, or \`{ status: 'draft' }\` / \`{ status: 'published' }\` to resolve by status. Requires the \[Editor]\(/docs/editor/overview) to be configured.
|
|
41
|
+
|
|
40
42
|
**params** (`ChatStreamHandlerParams`): Parameters for the chat stream, including messages and optional resume data.
|
|
41
43
|
|
|
42
44
|
**params.messages** (`UIMessage[]`): Array of messages in the conversation.
|
|
@@ -38,6 +38,8 @@ export async function POST(req: Request) {
|
|
|
38
38
|
|
|
39
39
|
**agentId** (`string`): The ID of the routing agent to execute as a network.
|
|
40
40
|
|
|
41
|
+
**agentVersion** (`{ versionId: string } | { status?: 'draft' | 'published' }`): Selects a specific agent version. Pass \`{ versionId: '\<id>' }\` to target an exact version, or \`{ status: 'draft' }\` / \`{ status: 'published' }\` to resolve by status. Requires the \[Editor]\(/docs/editor/overview) to be configured.
|
|
42
|
+
|
|
41
43
|
**params** (`NetworkStreamHandlerParams`): The request parameters containing messages and execution options. Includes \`messages\` (required) and any AgentExecutionOptions like \`memory\`, \`maxSteps\`, \`runId\`, etc.
|
|
42
44
|
|
|
43
45
|
**defaultOptions** (`AgentExecutionOptions`): Default options passed to agent execution. These are merged with params, with params taking precedence.
|
|
@@ -53,6 +53,8 @@ export const mastra = new Mastra({
|
|
|
53
53
|
|
|
54
54
|
**agent** (`string`): The ID of the routing agent to use for this network route. Required if the path doesn't include \`:agentId\`.
|
|
55
55
|
|
|
56
|
+
**agentVersion** (`{ versionId: string } | { status?: 'draft' | 'published' }`): Selects a specific agent version. Pass \`{ versionId: '\<id>' }\` to target an exact version, or \`{ status: 'draft' }\` / \`{ status: 'published' }\` to resolve by status. When the route is called, query parameters \`?versionId=\<id>\` or \`?status=draft|published\` take precedence over this static value. Requires the \[Editor]\(/docs/editor/overview) to be configured.
|
|
57
|
+
|
|
56
58
|
**defaultOptions** (`AgentExecutionOptions`): Default options passed to agent execution. These can include instructions, memory configuration, maxSteps, and other execution settings.
|
|
57
59
|
|
|
58
60
|
## Additional configuration
|
|
@@ -68,5 +68,5 @@ const scores = await mastraClient.listScoresBySpan({
|
|
|
68
68
|
|
|
69
69
|
## Related
|
|
70
70
|
|
|
71
|
-
- [Agents API](https://mastra.ai/reference/client-js/agents)
|
|
72
|
-
- [Workflows API](https://mastra.ai/reference/client-js/workflows)
|
|
71
|
+
- [Agents API](https://mastra.ai/reference/client-js/agents): Learn about agent interactions that generate traces
|
|
72
|
+
- [Workflows API](https://mastra.ai/reference/client-js/workflows): Understand workflow execution monitoring
|
|
@@ -35,8 +35,8 @@ Void. The gateway is added to the internal registry.
|
|
|
35
35
|
|
|
36
36
|
## Related
|
|
37
37
|
|
|
38
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
39
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
40
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
41
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
42
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
38
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
39
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
40
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
41
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
42
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -31,8 +31,8 @@ Throws an error if no gateway is found with the specified key.
|
|
|
31
31
|
|
|
32
32
|
## Related
|
|
33
33
|
|
|
34
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
35
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
36
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
37
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
38
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
34
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
35
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
36
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
37
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
38
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -34,8 +34,8 @@ console.log(gateway.name) // 'My Custom Gateway'
|
|
|
34
34
|
|
|
35
35
|
## Related
|
|
36
36
|
|
|
37
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
38
|
-
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways)
|
|
39
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
40
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
41
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
37
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
38
|
+
- [Mastra.listGateways()](https://mastra.ai/reference/core/listGateways): List all gateways
|
|
39
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
40
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
41
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -38,8 +38,8 @@ const serverById = mastra.getMCPServerById('my-mcp-server')
|
|
|
38
38
|
|
|
39
39
|
## Related methods
|
|
40
40
|
|
|
41
|
-
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById)
|
|
42
|
-
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
41
|
+
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById): Retrieve an MCP server by its intrinsic `id` property
|
|
42
|
+
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers): List all registered MCP servers
|
|
43
43
|
|
|
44
44
|
## See also
|
|
45
45
|
|
|
@@ -46,8 +46,8 @@ const serverByKey = mastra.getMCPServer('customKey')
|
|
|
46
46
|
|
|
47
47
|
## Related methods
|
|
48
48
|
|
|
49
|
-
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer)
|
|
50
|
-
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
49
|
+
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer): Retrieve an MCP server by its registry key
|
|
50
|
+
- [Mastra.listMCPServers()](https://mastra.ai/reference/core/listMCPServers): List all registered MCP servers
|
|
51
51
|
|
|
52
52
|
## See also
|
|
53
53
|
|
|
@@ -49,6 +49,6 @@ try {
|
|
|
49
49
|
|
|
50
50
|
## Related
|
|
51
51
|
|
|
52
|
-
- [listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
53
|
-
- [getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
54
|
-
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers)
|
|
52
|
+
- [listScorers()](https://mastra.ai/reference/core/listScorers): Get all registered scorers
|
|
53
|
+
- [getScorerById()](https://mastra.ai/reference/core/getScorerById): Get a scorer by its id property
|
|
54
|
+
- [Custom Scorers](https://mastra.ai/docs/evals/custom-scorers): Learn how to create custom scorers
|
|
@@ -49,6 +49,6 @@ try {
|
|
|
49
49
|
|
|
50
50
|
## Related
|
|
51
51
|
|
|
52
|
-
- [getScorer()](https://mastra.ai/reference/core/getScorer)
|
|
53
|
-
- [listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
54
|
-
- [createScorer()](https://mastra.ai/reference/evals/create-scorer)
|
|
52
|
+
- [getScorer()](https://mastra.ai/reference/core/getScorer): Get a scorer by its registration key
|
|
53
|
+
- [listScorers()](https://mastra.ai/reference/core/listScorers): Get all registered scorers
|
|
54
|
+
- [createScorer()](https://mastra.ai/reference/evals/create-scorer): Learn how to create scorers with ids
|
|
@@ -33,8 +33,8 @@ None.
|
|
|
33
33
|
|
|
34
34
|
## Related
|
|
35
35
|
|
|
36
|
-
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway)
|
|
37
|
-
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById)
|
|
38
|
-
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway)
|
|
39
|
-
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
40
|
-
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways)
|
|
36
|
+
- [Mastra.getGateway()](https://mastra.ai/reference/core/getGateway): Get gateway by registration key
|
|
37
|
+
- [Mastra.getGatewayById()](https://mastra.ai/reference/core/getGatewayById): Get gateway by ID
|
|
38
|
+
- [Mastra.addGateway()](https://mastra.ai/reference/core/addGateway): Add a gateway
|
|
39
|
+
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway): Gateway base class
|
|
40
|
+
- [Custom Gateways Guide](https://mastra.ai/models/gateways/custom-gateways): Creating custom gateways
|
|
@@ -46,8 +46,8 @@ This method doesn't accept any parameters.
|
|
|
46
46
|
|
|
47
47
|
## Related methods
|
|
48
48
|
|
|
49
|
-
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer)
|
|
50
|
-
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById)
|
|
49
|
+
- [Mastra.getMCPServer()](https://mastra.ai/reference/core/getMCPServer): Retrieve an MCP server by its registry key
|
|
50
|
+
- [Mastra.getMCPServerById()](https://mastra.ai/reference/core/getMCPServerById): Retrieve an MCP server by its intrinsic `id` property
|
|
51
51
|
|
|
52
52
|
## See also
|
|
53
53
|
|
|
@@ -24,6 +24,6 @@ This method takes no parameters.
|
|
|
24
24
|
|
|
25
25
|
## Related
|
|
26
26
|
|
|
27
|
-
- [getScorer()](https://mastra.ai/reference/core/getScorer)
|
|
28
|
-
- [getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
29
|
-
- [Scorers Overview](https://mastra.ai/docs/evals/overview)
|
|
27
|
+
- [getScorer()](https://mastra.ai/reference/core/getScorer): Get a specific scorer by key
|
|
28
|
+
- [getScorerById()](https://mastra.ai/reference/core/getScorerById): Get a scorer by its id property
|
|
29
|
+
- [Scorers Overview](https://mastra.ai/docs/evals/overview): Learn about creating and using scorers
|