@mastra/mcp-docs-server 1.3.6-alpha.3 → 1.3.6-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/observability/tracing/overview.md +1 -1
- package/.docs/docs/workflows/time-travel.md +5 -3
- package/.docs/integrations/deploy/temporal.md +23 -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/netlify.md +3 -5
- package/.docs/models/gateways/openrouter.md +2 -2
- package/.docs/models/gateways/vercel.md +1 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +0 -2
- package/.docs/models/providers/edenai.md +4 -4
- package/.docs/models/providers/kilo.md +14 -13
- package/.docs/models/providers/llmgateway-providers.md +1 -2
- package/.docs/models/providers/mistral.md +1 -1
- package/.docs/models/providers/nano-gpt.md +29 -27
- package/.docs/models/providers/opencode-go.md +3 -2
- package/.docs/models/providers/opencode.md +2 -2
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/requesty.md +5 -2
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
- package/.docs/reference/client-js/memory.md +1 -1
- 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/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/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/logging/pino-logger.md +3 -3
- 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/tools.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +10 -1
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +1 -1
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/project-structure.md +11 -13
- 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/rerank.md +5 -4
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/rag/retrieval.md +7 -5
- package/.docs/reference/server/mastra-server.md +2 -2
- package/.docs/reference/workflows/run-methods/restart.md +6 -0
- package/.docs/reference/workspace/platform-sandbox.md +33 -1
- package/package.json +4 -4
|
@@ -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
|
|
|
@@ -60,7 +60,7 @@ for await (const chunk of stream) {
|
|
|
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
62
|
| `nano-gpt/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
63
|
-
| `nano-gpt/anthropic/claude-haiku-latest` |
|
|
63
|
+
| `nano-gpt/anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
64
64
|
| `nano-gpt/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
65
65
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking` | 200K | | | | | | $15 | $75 |
|
|
66
66
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking:1024` | 200K | | | | | | $15 | $75 |
|
|
@@ -109,9 +109,9 @@ for await (const chunk of stream) {
|
|
|
109
109
|
| `nano-gpt/bytedance/doubao-seed-2.1-turbo` | 256K | | | | | | $0.50 | $3 |
|
|
110
110
|
| `nano-gpt/bytedance/doubao-seed-character` | 128K | | | | | | $0.12 | $0.29 |
|
|
111
111
|
| `nano-gpt/celeris-1` | 8K | | | | | | $2 | $6 |
|
|
112
|
-
| `nano-gpt/claw-high` | 1.0M | | | | | | $
|
|
113
|
-
| `nano-gpt/claw-low` | 1.0M | | | | | | $
|
|
114
|
-
| `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 |
|
|
115
115
|
| `nano-gpt/cohere/command-r-plus-08-2024` | 128K | | | | | | $3 | $14 |
|
|
116
116
|
| `nano-gpt/command-a-reasoning-08-2025` | 256K | | | | | | $3 | $10 |
|
|
117
117
|
| `nano-gpt/deepcogito/cogito-v1-preview-qwen-32B` | 128K | | | | | | $2 | $2 |
|
|
@@ -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
|
# 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
|
|
|
@@ -68,6 +68,7 @@ for await (const chunk of stream) {
|
|
|
68
68
|
| `opencode-go/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
69
69
|
| `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
70
70
|
| `opencode-go/space-bunny` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
71
|
+
| `opencode-go/step-5-preview-free` | 1.0M | | | | | | — | — |
|
|
71
72
|
|
|
72
73
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
73
74
|
|
|
@@ -99,7 +100,7 @@ const agent = new Agent({
|
|
|
99
100
|
model: ({ requestContext }) => {
|
|
100
101
|
const useAdvanced = requestContext.task === "complex";
|
|
101
102
|
return useAdvanced
|
|
102
|
-
? "opencode-go/
|
|
103
|
+
? "opencode-go/step-5-preview-free"
|
|
103
104
|
: "opencode-go/claude-haiku-5-5";
|
|
104
105
|
}
|
|
105
106
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Zen
|
|
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
|
|
|
@@ -59,7 +59,6 @@ for await (const chunk of stream) {
|
|
|
59
59
|
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
60
60
|
| `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
61
61
|
| `opencode/exo-free` | 1.0M | | | | | | — | — |
|
|
62
|
-
| `opencode/fledge-alpha-free` | 1.0M | | | | | | — | — |
|
|
63
62
|
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
64
63
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
65
64
|
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
@@ -122,6 +121,7 @@ for await (const chunk of stream) {
|
|
|
122
121
|
| `opencode/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
123
122
|
| `opencode/qwen3.8-max` | 262K | | | | | | $2 | $6 |
|
|
124
123
|
| `opencode/space-bunny-free` | 1.0M | | | | | | — | — |
|
|
124
|
+
| `opencode/step-5-preview-free` | 1.0M | | | | | | — | — |
|
|
125
125
|
|
|
126
126
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
127
127
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# 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 |
|
|
@@ -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 |
|
|
@@ -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
|
|
|
@@ -204,7 +204,7 @@ const workingMemory = await mastraClient.getWorkingMemory({
|
|
|
204
204
|
|
|
205
205
|
The response includes:
|
|
206
206
|
|
|
207
|
-
- `workingMemory`: The current working memory content (string or null)
|
|
207
|
+
- `workingMemory`: The current working memory content (a string or `null`). When using a JSON or schema-based working memory template, the content is a JSON-encoded string
|
|
208
208
|
- `source`: Whether the memory is from `"thread"` or `"resource"` scope
|
|
209
209
|
- `workingMemoryTemplate`: The template used for working memory (if configured)
|
|
210
210
|
- `threadExists`: Whether the thread exists
|
|
@@ -34,10 +34,20 @@ const updated = await dataset.updateItem({
|
|
|
34
34
|
|
|
35
35
|
**groundTruth** (`unknown`): Updated ground truth.
|
|
36
36
|
|
|
37
|
+
**expectedTrajectory** (`unknown`): Updated expected trajectory for trajectory scorers.
|
|
38
|
+
|
|
39
|
+
**toolMocks** (`DatasetItemToolMock[]`): Updated static tool mocks used during experiments. Each mock has toolName, args, output, and an optional matchArgs ('strict' | 'ignore').
|
|
40
|
+
|
|
41
|
+
**unmockedToolPolicy** (`'allow' | 'deny'`): Overrides how the experiment handles tool calls that are not declared in toolMocks.
|
|
42
|
+
|
|
43
|
+
**requestContext** (`Record<string, unknown>`): Updated request context applied when the item runs.
|
|
44
|
+
|
|
37
45
|
**scorerIds** (`string[] | null`): Scorer IDs that override dataset-attached scorers for this item. Use \[] to run no scorers, null to remove the override and restore dataset inheritance, or omit the field to preserve the current value.
|
|
38
46
|
|
|
39
47
|
**metadata** (`Record<string, unknown>`): Updated metadata.
|
|
40
48
|
|
|
49
|
+
**source** (`{ type: 'csv' | 'json' | 'trace' | 'llm' | 'experiment-result' | 'candidate-screener'; referenceId?: string }`): Updated provenance of the item.
|
|
50
|
+
|
|
41
51
|
## Returns
|
|
42
52
|
|
|
43
53
|
**result** (`Promise<DatasetItem>`): The updated dataset item. See dataset.addItem() for the item shape.
|
|
@@ -115,6 +115,6 @@ With `studio: true`:
|
|
|
115
115
|
└── node_modules/
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
When studio is enabled, the routing is configured so that
|
|
118
|
+
When studio is enabled, the routing is configured so that `/` and the Studio routes listed in the Studio build's route manifest are served from `index.html` for client-side routing, and static assets (JS, CSS) are served from Vercel's Edge CDN with no function invocations. All other paths, including `/api/*` and custom routes registered with `registerApiRoute()`, are handled by the serverless function. Custom routes that fall under a Studio route (for example, `/agents/custom`) are served from `index.html` instead, so register custom routes outside Studio's route roots.
|
|
119
119
|
|
|
120
120
|
This folder is generated during build and shouldn't be committed to version control.
|
|
@@ -44,7 +44,7 @@ class CustomDeployer extends Deployer {
|
|
|
44
44
|
|
|
45
45
|
## Methods
|
|
46
46
|
|
|
47
|
-
**getEnvFiles** (`() => Promise<string[]>`): Returns
|
|
47
|
+
**getEnvFiles** (`() => Promise<string[]>`): Returns the environment files to be used during deployment. By default, it returns every existing file among '.env', '.env.local', and '.env.production', in that order (lowest to highest precedence).
|
|
48
48
|
|
|
49
49
|
**deploy** (`(outputDirectory: string) => Promise<void>`): Abstract method that must be implemented by subclasses. Handles the deployment process to the specified output directory.
|
|
50
50
|
|
|
@@ -65,7 +65,7 @@ The Deployer class inherits the following key methods from the Bundler class:
|
|
|
65
65
|
The Deployer abstract class implements a structured deployment lifecycle:
|
|
66
66
|
|
|
67
67
|
1. **Initialization**: The deployer is initialized with a name and creates a Deps instance for dependency management.
|
|
68
|
-
2. **Environment Setup**: The `getEnvFiles` method identifies environment files (.env.production
|
|
68
|
+
2. **Environment Setup**: The `getEnvFiles` method identifies the environment files (`.env`, `.env.local`, `.env.production`) to be used during deployment.
|
|
69
69
|
3. **Preparation**: The `prepare` method (inherited from Bundler) cleans the output directory and creates necessary subdirectories.
|
|
70
70
|
4. **Bundling**: The `_bundle` method (inherited from Bundler) packages the application code and its dependencies.
|
|
71
71
|
5. **Deployment**: The abstract `deploy` method is implemented by subclasses to handle the actual deployment process.
|
|
@@ -74,23 +74,16 @@ The Deployer abstract class implements a structured deployment lifecycle:
|
|
|
74
74
|
|
|
75
75
|
The Deployer class includes built-in support for environment file management through the `getEnvFiles` method. This method:
|
|
76
76
|
|
|
77
|
-
- Looks for environment files in a predefined order
|
|
78
|
-
-
|
|
79
|
-
- Returns an array of found environment files
|
|
77
|
+
- Looks for environment files in a predefined order, from lowest to highest precedence: `.env`, `.env.local`, `.env.production`
|
|
78
|
+
- Returns every file that exists, in that order, so values in later files override earlier ones
|
|
80
79
|
- Returns an empty array if no environment files are found
|
|
81
80
|
|
|
82
81
|
```typescript
|
|
83
82
|
getEnvFiles(): Promise<string[]> {
|
|
84
|
-
const possibleFiles = ['.env
|
|
83
|
+
const possibleFiles = ['.env', '.env.local', '.env.production'];
|
|
84
|
+
const fileService = new FileService();
|
|
85
85
|
|
|
86
|
-
|
|
87
|
-
const fileService = new FileService();
|
|
88
|
-
const envFile = fileService.getFirstExistingFile(possibleFiles);
|
|
89
|
-
|
|
90
|
-
return Promise.resolve([envFile]);
|
|
91
|
-
} catch {}
|
|
92
|
-
|
|
93
|
-
return Promise.resolve([]);
|
|
86
|
+
return Promise.resolve(fileService.getExistingFiles(possibleFiles));
|
|
94
87
|
}
|
|
95
88
|
```
|
|
96
89
|
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type {
|
|
39
|
+
import type { BlobStoreProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { BlobStore } from '@mastra/core/storage'
|
|
40
41
|
|
|
41
42
|
export const myBlobStoreProvider: BlobStoreProvider<{ bucket: string; region: string }> = {
|
|
42
43
|
id: 'my-blob-store',
|
|
@@ -31,12 +31,13 @@ new MastraEditor({
|
|
|
31
31
|
|
|
32
32
|
**configSchema** (`Record<string, unknown>`): JSON Schema describing provider-specific configuration. Used by the UI to render config forms.
|
|
33
33
|
|
|
34
|
-
**createBrowser** (`(config: TConfig) => MastraBrowser | Promise<MastraBrowser>`): Create a runtime MastraBrowser instance from the stored config.
|
|
34
|
+
**createBrowser** (`(config: TConfig) => MastraBrowser | Promise<MastraBrowser>`): Create a runtime MastraBrowser instance from the stored config. For a static browser config, it is called once per agent hydration and the resulting instance is cached alongside the agent.
|
|
35
35
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { BrowserProvider
|
|
39
|
+
import type { BrowserProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { MastraBrowser } from '@mastra/core/browser'
|
|
40
41
|
|
|
41
42
|
export const myBrowserProvider: BrowserProvider<{ apiKey: string }> = {
|
|
42
43
|
id: 'my-browser',
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { FilesystemProvider
|
|
39
|
+
import type { FilesystemProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { WorkspaceFilesystem } from '@mastra/core/workspace'
|
|
40
41
|
|
|
41
42
|
export const myFilesystemProvider: FilesystemProvider<{ bucket: string; region: string }> = {
|
|
42
43
|
id: 'my-fs',
|
|
@@ -36,7 +36,8 @@ new MastraEditor({
|
|
|
36
36
|
## Implementing a provider
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import type { SandboxProvider
|
|
39
|
+
import type { SandboxProvider } from '@mastra/core/editor'
|
|
40
|
+
import type { WorkspaceSandbox } from '@mastra/core/workspace'
|
|
40
41
|
|
|
41
42
|
export const mySandboxProvider: SandboxProvider<{ apiKey: string }> = {
|
|
42
43
|
id: 'my-sandbox',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# StorageWorkspaceRef
|
|
6
6
|
|
|
7
|
-
`StorageWorkspaceRef` is the discriminated union used to attach a workspace to a stored agent. It
|
|
7
|
+
`StorageWorkspaceRef` is the discriminated union used to attach a workspace to a stored agent. It points at a workspace registered on the Mastra runtime by ID, embeds a workspace snapshot inline, or names a workspace provider registered on `MastraEditor.workspaces` that builds the workspace.
|
|
8
8
|
|
|
9
9
|
It's the type used by [`BuilderAgentDefaults.workspace`](https://agent-builder.mastra.ai/reference/builder-agent-defaults) and by stored agent records.
|
|
10
10
|
|
|
@@ -45,6 +45,23 @@ new MastraEditor({
|
|
|
45
45
|
},
|
|
46
46
|
},
|
|
47
47
|
})
|
|
48
|
+
|
|
49
|
+
// Variant 3 — build the workspace with a registered workspace provider
|
|
50
|
+
new MastraEditor({
|
|
51
|
+
workspaces: { 'my-provider': myWorkspaceProvider },
|
|
52
|
+
builder: {
|
|
53
|
+
enabled: true,
|
|
54
|
+
configuration: {
|
|
55
|
+
agent: {
|
|
56
|
+
workspace: {
|
|
57
|
+
type: 'provider',
|
|
58
|
+
provider: 'my-provider',
|
|
59
|
+
config: { region: 'us-east-1' },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
})
|
|
48
65
|
```
|
|
49
66
|
|
|
50
67
|
## Variants
|
|
@@ -61,6 +78,14 @@ new MastraEditor({
|
|
|
61
78
|
|
|
62
79
|
**{ type: 'inline'; config: StorageWorkspaceSnapshotType }.config** (`StorageWorkspaceSnapshotType`): Serialized workspace configuration (filesystem, sandbox, mounts, search, skills, tools). See the StorageWorkspaceSnapshotType section below for the field list.
|
|
63
80
|
|
|
81
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }** (`ProviderRef`): Build the entire workspace with a workspace provider registered on MastraEditor.workspaces. The ref is stored as-is in the agent snapshot; no separate workspace record is persisted.
|
|
82
|
+
|
|
83
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.type** (`'provider'`): Discriminant. Must be the literal "provider".
|
|
84
|
+
|
|
85
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.provider** (`string`): Id of a workspace provider registered via new MastraEditor({ workspaces }).
|
|
86
|
+
|
|
87
|
+
**{ type: 'provider'; provider: string; config: Record\<string, unknown> }.config** (`Record<string, unknown>`): Provider-specific configuration passed to the provider's createWorkspace(config).
|
|
88
|
+
|
|
64
89
|
## `StorageWorkspaceSnapshotType`
|
|
65
90
|
|
|
66
91
|
The shape embedded under `{ type: 'inline', config }`. Defined in `@mastra/core/storage`.
|
|
@@ -87,7 +112,7 @@ The shape embedded under `{ type: 'inline', config }`. Defined in `@mastra/core/
|
|
|
87
112
|
|
|
88
113
|
## Hydration
|
|
89
114
|
|
|
90
|
-
`StorageWorkspaceRef` is resolved lazily on `mastra.editor.agent.getById()`, not on `list()`. The editor looks up filesystem and sandbox providers on `MastraEditor.filesystems` / `MastraEditor.sandboxes` and materializes a runtime `Workspace`. Missing providers surface as a warning and the workspace is omitted.
|
|
115
|
+
`StorageWorkspaceRef` is resolved lazily on `mastra.editor.agent.getById()`, not on `list()`. The editor looks up filesystem and sandbox providers on `MastraEditor.filesystems` / `MastraEditor.sandboxes` and materializes a runtime `Workspace`. Missing providers surface as a warning and the workspace is omitted. For `{ type: 'provider' }` refs, the editor calls `createWorkspace(config)` on the provider registered on `MastraEditor.workspaces`. An unregistered provider throws an error.
|
|
91
116
|
|
|
92
117
|
## Related
|
|
93
118
|
|
|
@@ -10,9 +10,11 @@ The `createAnswerRelevancyScorer()` function accepts a single options object wit
|
|
|
10
10
|
|
|
11
11
|
**model** (`LanguageModel`): Configuration for the model used to evaluate relevancy.
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**options** (`Record<'uncertaintyWeight' | 'scale', number>`): Configuration options for the scorer. (Default: `{ uncertaintyWeight: 0.3, scale: 1 }`)
|
|
14
14
|
|
|
15
|
-
**
|
|
15
|
+
**options.uncertaintyWeight** (`number`): Weight given to 'unsure' verdicts in scoring (0-1).
|
|
16
|
+
|
|
17
|
+
**options.scale** (`number`): Maximum score value.
|
|
16
18
|
|
|
17
19
|
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but the return value includes LLM-specific fields as documented below.
|
|
18
20
|
|
|
@@ -26,7 +26,7 @@ The `createAnswerSimilarityScorer()` function creates a scorer that evaluates ho
|
|
|
26
26
|
|
|
27
27
|
**options.scale** (`number`): Score scaling factor.
|
|
28
28
|
|
|
29
|
-
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but
|
|
29
|
+
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but expects ground truth to be provided in the run object. When `options.requireGroundTruth` is `true` (the default), a run without ground truth throws an error. Set it to `false` to score runs without ground truth as 0.
|
|
30
30
|
|
|
31
31
|
## `.run()` returns
|
|
32
32
|
|
|
@@ -10,7 +10,9 @@ The `createBiasScorer()` function accepts a single options object with the follo
|
|
|
10
10
|
|
|
11
11
|
**model** (`LanguageModel`): Configuration for the model used to evaluate bias.
|
|
12
12
|
|
|
13
|
-
**
|
|
13
|
+
**options** (`BiasMetricOptions`): Configuration options for the scorer.
|
|
14
|
+
|
|
15
|
+
**options.scale** (`number`): Maximum score value.
|
|
14
16
|
|
|
15
17
|
This function returns an instance of the MastraScorer class. The `.run()` method accepts the same input as other scorers (see the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer)), but the return value includes LLM-specific fields as documented below.
|
|
16
18
|
|
|
@@ -44,7 +44,7 @@ The scorer evaluates textual similarity through character-level matching and con
|
|
|
44
44
|
- Considers relative positions
|
|
45
45
|
- Accounts for length differences
|
|
46
46
|
|
|
47
|
-
Final score: `similarity_value
|
|
47
|
+
Final score: `similarity_value` (0-1, returned directly from the string-similarity comparison)
|
|
48
48
|
|
|
49
49
|
## Example
|
|
50
50
|
|
|
@@ -30,7 +30,7 @@ Use when running evaluations against curated test sets:
|
|
|
30
30
|
|
|
31
31
|
**options** (`ContextRecallMetricOptions`): Configuration options for the scorer
|
|
32
32
|
|
|
33
|
-
Either `context` or `contextExtractor` must be provided. When both are provided, `contextExtractor` is used only if the run input and output are agent-shaped (`MastraDBMessage[]
|
|
33
|
+
Either `context` or `contextExtractor` must be provided. When both are provided, `contextExtractor` is used only if the run input and output are agent-shaped: the input must be an agent run-input object (`{ inputMessages, rememberedMessages, systemMessages, taggedSystemMessages }`) and the output must be a `MastraDBMessage[]`. Otherwise the scorer falls back to `context`.
|
|
34
34
|
|
|
35
35
|
## `.run()` returns
|
|
36
36
|
|