@mastra/mcp-docs-server 1.2.17-alpha.1 → 1.2.17-alpha.11
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/agent-approval.md +2 -0
- package/.docs/docs/agents/code-mode.md +2 -2
- package/.docs/docs/agents/processors.md +1 -1
- package/.docs/docs/agents/skills.md +1 -1
- package/.docs/docs/agents/using-tools.md +1 -1
- package/.docs/docs/capabilities/channels.md +34 -1
- package/.docs/docs/datasets/running-experiments.md +46 -0
- package/.docs/docs/harness/agent-controller.md +1 -1
- package/.docs/docs/mcp/overview.md +4 -5
- package/.docs/docs/server/request-context.md +21 -0
- package/.docs/docs/studio/overview.md +1 -1
- package/.docs/docs/workspace/filesystem.md +182 -153
- package/.docs/docs/workspace/lsp.md +4 -5
- package/.docs/docs/workspace/sandbox.md +234 -141
- package/.docs/docs/workspace/search.md +52 -4
- package/.docs/docs/workspace/skills.md +62 -33
- package/.docs/integrations/browsers/browser-viewer.md +2 -2
- package/.docs/integrations/databases/postgresql.md +2 -1
- package/.docs/integrations/file-storage/amazon-s3.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +1 -1
- package/.docs/integrations/file-storage/vercel-files.md +1 -1
- package/.docs/integrations/observability/opentelemetry.md +34 -2
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +1 -1
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/models/gateways/openrouter.md +3 -1
- package/.docs/models/gateways/vercel.md +1 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +14 -1
- package/.docs/models/providers/baseten.md +2 -1
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -1
- package/.docs/models/providers/cortecs.md +5 -2
- package/.docs/models/providers/crossmodel.md +2 -2
- package/.docs/models/providers/deepinfra.md +5 -1
- package/.docs/models/providers/edenai.md +227 -23
- package/.docs/models/providers/empiriolabs.md +2 -1
- package/.docs/models/providers/fireworks-ai.md +2 -1
- package/.docs/models/providers/huggingface.md +5 -1
- package/.docs/models/providers/hyper.md +7 -6
- package/.docs/models/providers/kilo.md +13 -11
- package/.docs/models/providers/merge-gateway.md +4 -2
- package/.docs/models/providers/nano-gpt.md +12 -10
- package/.docs/models/providers/nvidia.md +2 -1
- package/.docs/models/providers/ofox.md +32 -1
- package/.docs/models/providers/opencode-go.md +2 -1
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/models/providers/perplexity-agent.md +4 -2
- package/.docs/models/providers/qvac.md +35 -0
- package/.docs/models/providers/requesty.md +3 -3
- package/.docs/models/providers/zai-coding-plan.md +3 -2
- package/.docs/models/providers/zhipuai-coding-plan.md +2 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +26 -1
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/core/removeWorkspace.md +1 -1
- package/.docs/reference/datasets/addItem.md +5 -0
- package/.docs/reference/datasets/addItems.md +12 -2
- package/.docs/reference/datasets/startExperiment.md +1 -1
- package/.docs/reference/datasets/updateItem.md +3 -0
- package/.docs/reference/file-based-agents/workspace.md +3 -3
- package/.docs/reference/memory/observational-memory.md +4 -0
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +2 -0
- package/.docs/reference/processors/provider-history-compat.md +6 -5
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/pubsub/base.md +13 -3
- package/.docs/reference/pubsub/caching-pubsub.md +2 -0
- package/.docs/reference/pubsub/event-emitter.md +2 -0
- package/.docs/reference/pubsub/redis-streams.md +11 -3
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +11 -3
- package/.docs/reference/tools/mcp-client.md +34 -5
- package/.docs/reference/tools/mcp-server.md +4 -1
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +52 -15
- package/CHANGELOG.md +43 -0
- package/package.json +4 -4
- package/.docs/docs/workspace/overview.md +0 -416
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# NanoGPT
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 599 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
8
8
|
|
|
@@ -38,7 +38,6 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| ---------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `nano-gpt/abacusai/Dracarys-72B-Instruct` | 16K | | | | | | $0.49 | $0.49 |
|
|
40
40
|
| `nano-gpt/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
41
|
-
| `nano-gpt/aion-labs/aion-2.5` | 131K | | | | | | $1 | $3 |
|
|
42
41
|
| `nano-gpt/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
43
42
|
| `nano-gpt/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
44
43
|
| `nano-gpt/aion-labs/aion-rp-llama-3.1-8b` | 33K | | | | | | $0.80 | $2 |
|
|
@@ -145,25 +144,26 @@ for await (const chunk of stream) {
|
|
|
145
144
|
| `nano-gpt/deepseek-reasoner` | 64K | | | | | | $0.40 | $2 |
|
|
146
145
|
| `nano-gpt/deepseek-reasoner-cheaper` | 128K | | | | | | $0.40 | $2 |
|
|
147
146
|
| `nano-gpt/deepseek-v3-0324` | 128K | | | | | | $0.20 | $0.77 |
|
|
148
|
-
| `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $
|
|
147
|
+
| `nano-gpt/deepseek/deepseek-latest` | 1.0M | | | | | | $1 | $3 |
|
|
149
148
|
| `nano-gpt/deepseek/deepseek-prover-v2-671b` | 160K | | | | | | $1 | $3 |
|
|
150
149
|
| `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.28 | $0.42 |
|
|
151
150
|
| `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.28 | $0.42 |
|
|
152
|
-
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
151
|
+
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
153
152
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
154
153
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
155
154
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
156
155
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
157
156
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
158
|
-
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.
|
|
157
|
+
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
159
158
|
| `nano-gpt/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $2 |
|
|
160
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $
|
|
161
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $
|
|
159
|
+
| `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $3 |
|
|
160
|
+
| `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $1 | $3 |
|
|
162
161
|
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
163
162
|
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper:thinking` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
164
163
|
| `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $1 | $2 |
|
|
165
164
|
| `nano-gpt/dmind/dmind-1-mini` | 33K | | | | | | $0.20 | $0.40 |
|
|
166
165
|
| `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 16K | | | | | | $0.49 | $0.49 |
|
|
166
|
+
| `nano-gpt/dots-studio/dots-3-note-preview:free` | 393K | | | | | | — | — |
|
|
167
167
|
| `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
|
|
168
168
|
| `nano-gpt/doubao-1.5-pro-32k` | 32K | | | | | | $0.13 | $0.33 |
|
|
169
169
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
@@ -242,9 +242,9 @@ for await (const chunk of stream) {
|
|
|
242
242
|
| `nano-gpt/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
243
243
|
| `nano-gpt/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
244
244
|
| `nano-gpt/google/gemini-3.5-flash-thinking` | 1.0M | | | | | | $2 | $9 |
|
|
245
|
-
| `nano-gpt/google/gemini-3.6-flash` | 1.0M | | | | | | $
|
|
245
|
+
| `nano-gpt/google/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
246
246
|
| `nano-gpt/google/gemini-3.7-flash` | 1.0M | | | | | | $0.38 | $2 |
|
|
247
|
-
| `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $
|
|
247
|
+
| `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
248
248
|
| `nano-gpt/google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.30 | $3 |
|
|
249
249
|
| `nano-gpt/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
250
250
|
| `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.13 | $0.40 |
|
|
@@ -449,7 +449,6 @@ for await (const chunk of stream) {
|
|
|
449
449
|
| `nano-gpt/qwen/qwen3-14b` | 41K | | | | | | $0.08 | $0.24 |
|
|
450
450
|
| `nano-gpt/qwen/qwen3-235b-a22b` | 41K | | | | | | $0.30 | $0.50 |
|
|
451
451
|
| `nano-gpt/qwen/Qwen3-235B-A22B-Instruct-2507` | 256K | | | | | | $0.13 | $0.50 |
|
|
452
|
-
| `nano-gpt/qwen/Qwen3-235B-A22B-Instruct-2507-TEE` | 256K | | | | | | $0.13 | $0.50 |
|
|
453
452
|
| `nano-gpt/qwen/Qwen3-235B-A22B-Thinking-2507` | 256K | | | | | | $0.30 | $0.50 |
|
|
454
453
|
| `nano-gpt/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.10 | $0.30 |
|
|
455
454
|
| `nano-gpt/qwen/qwen3-32b` | 41K | | | | | | $0.10 | $0.30 |
|
|
@@ -543,6 +542,7 @@ for await (const chunk of stream) {
|
|
|
543
542
|
| `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $2 | $2 |
|
|
544
543
|
| `nano-gpt/TEE/gpt-oss-20b` | 131K | | | | | | $0.20 | $0.80 |
|
|
545
544
|
| `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $2 | $5 |
|
|
545
|
+
| `nano-gpt/TEE/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
546
546
|
| `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
547
547
|
| `nano-gpt/TEE/llama3-3-70b` | 128K | | | | | | $2 | $3 |
|
|
548
548
|
| `nano-gpt/TEE/muse-glimmer-30b` | 131K | | | | | | $0.35 | $2 |
|
|
@@ -632,6 +632,8 @@ for await (const chunk of stream) {
|
|
|
632
632
|
| `nano-gpt/zai-org/glm-5.1:thinking` | 200K | | | | | | $0.75 | $3 |
|
|
633
633
|
| `nano-gpt/zai-org/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
|
|
634
634
|
| `nano-gpt/zai-org/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
|
|
635
|
+
| `nano-gpt/zai-org/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
636
|
+
| `nano-gpt/zai-org/glm-5.3:thinking` | 1.0M | | | | | | $1 | $4 |
|
|
635
637
|
| `nano-gpt/zai-org/glm-latest` | 1.0M | | | | | | $0.42 | $1 |
|
|
636
638
|
|
|
637
639
|
## Advanced configuration
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Nvidia
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 100 Nvidia models through Mastra's model router. Authentication is handled automatically using the `NVIDIA_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Nvidia documentation](https://docs.api.nvidia.com/nim/).
|
|
8
8
|
|
|
@@ -63,6 +63,7 @@ for await (const chunk of stream) {
|
|
|
63
63
|
| `nvidia/meta/llama-3.3-70b-instruct` | 128K | | | | | | — | — |
|
|
64
64
|
| `nvidia/meta/llama-4-maverick-17b-128e-instruct` | 128K | | | | | | — | — |
|
|
65
65
|
| `nvidia/meta/llama-guard-4-12b` | 128K | | | | | | — | — |
|
|
66
|
+
| `nvidia/meta/muse-glimmer-30b` | 131K | | | | | | — | — |
|
|
66
67
|
| `nvidia/microsoft/phi-4-mini-instruct` | 131K | | | | | | — | — |
|
|
67
68
|
| `nvidia/microsoft/phi-4-multimodal-instruct` | 128K | | | | | | — | — |
|
|
68
69
|
| `nvidia/minimaxai/minimax-m2.7` | 205K | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Ofox
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 103 Ofox models through Mastra's model router. Authentication is handled automatically using the `OFOX_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Ofox documentation](https://ofox.ai/docs).
|
|
8
8
|
|
|
@@ -43,10 +43,12 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `ofox/anthropic/claude-opus-4.7` | 1.0M | | | | | | $5 | $25 |
|
|
44
44
|
| `ofox/anthropic/claude-opus-4.8` | 1.0M | | | | | | $5 | $25 |
|
|
45
45
|
| `ofox/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
46
|
+
| `ofox/anthropic/claude-sonnet-4.5` | 200K | | | | | | $3 | $15 |
|
|
46
47
|
| `ofox/anthropic/claude-sonnet-4.6` | 1.0M | | | | | | $3 | $15 |
|
|
47
48
|
| `ofox/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
48
49
|
| `ofox/bailian/qwen-flash` | 1.0M | | | | | | $0.02 | $0.22 |
|
|
49
50
|
| `ofox/bailian/qwen-max` | 33K | | | | | | $0.35 | $1 |
|
|
51
|
+
| `ofox/bailian/qwen-plus` | 1.0M | | | | | | $0.12 | $0.29 |
|
|
50
52
|
| `ofox/bailian/qwen-turbo` | 128K | | | | | | $0.05 | $0.09 |
|
|
51
53
|
| `ofox/bailian/qwen-vl-max` | 131K | | | | | | $0.23 | $0.58 |
|
|
52
54
|
| `ofox/bailian/qwen3-coder-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
@@ -55,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
55
57
|
| `ofox/bailian/qwen3-max` | 262K | | | | | | $0.36 | $1 |
|
|
56
58
|
| `ofox/bailian/qwen3.5-122b-a10b` | 256K | | | | | | $0.29 | $2 |
|
|
57
59
|
| `ofox/bailian/qwen3.5-27b` | 262K | | | | | | $0.29 | $2 |
|
|
60
|
+
| `ofox/bailian/qwen3.5-35b-a3b` | 262K | | | | | | $0.29 | $2 |
|
|
58
61
|
| `ofox/bailian/qwen3.5-397b-a17b` | 256K | | | | | | $0.55 | $4 |
|
|
59
62
|
| `ofox/bailian/qwen3.5-flash` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
60
63
|
| `ofox/bailian/qwen3.5-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
@@ -68,6 +71,7 @@ for await (const chunk of stream) {
|
|
|
68
71
|
| `ofox/deepseek/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.43 |
|
|
69
72
|
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
70
73
|
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.45 | $0.88 |
|
|
74
|
+
| `ofox/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.45 | $0.88 |
|
|
71
75
|
| `ofox/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
72
76
|
| `ofox/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
73
77
|
| `ofox/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -75,9 +79,20 @@ for await (const chunk of stream) {
|
|
|
75
79
|
| `ofox/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
76
80
|
| `ofox/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
77
81
|
| `ofox/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
82
|
+
| `ofox/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
78
83
|
| `ofox/google/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
|
|
84
|
+
| `ofox/minimax/m2-her` | 200K | | | | | | $0.30 | $1 |
|
|
85
|
+
| `ofox/minimax/minimax-m2` | 197K | | | | | | $0.30 | $1 |
|
|
86
|
+
| `ofox/minimax/minimax-m2.1` | 205K | | | | | | $0.30 | $1 |
|
|
87
|
+
| `ofox/minimax/minimax-m2.1-lightning` | 205K | | | | | | $0.30 | $2 |
|
|
88
|
+
| `ofox/minimax/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
89
|
+
| `ofox/minimax/minimax-m2.5-lightning` | 205K | | | | | | $0.30 | $2 |
|
|
90
|
+
| `ofox/minimax/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
91
|
+
| `ofox/minimax/minimax-m2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
|
|
92
|
+
| `ofox/minimax/minimax-m3` | 512K | | | | | | $0.60 | $2 |
|
|
79
93
|
| `ofox/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
80
94
|
| `ofox/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
95
|
+
| `ofox/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
81
96
|
| `ofox/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
82
97
|
| `ofox/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
83
98
|
| `ofox/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
@@ -86,17 +101,33 @@ for await (const chunk of stream) {
|
|
|
86
101
|
| `ofox/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
87
102
|
| `ofox/openai/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
88
103
|
| `ofox/openai/gpt-5-mini` | 256K | | | | | | $0.25 | $2 |
|
|
104
|
+
| `ofox/openai/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
89
105
|
| `ofox/openai/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
90
106
|
| `ofox/openai/gpt-5.1-codex-max` | 256K | | | | | | $1 | $10 |
|
|
91
107
|
| `ofox/openai/gpt-5.1-codex-mini` | 256K | | | | | | $0.25 | $2 |
|
|
92
108
|
| `ofox/openai/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
93
109
|
| `ofox/openai/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
110
|
+
| `ofox/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
111
|
+
| `ofox/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
94
112
|
| `ofox/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
95
113
|
| `ofox/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
114
|
+
| `ofox/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
96
115
|
| `ofox/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
97
116
|
| `ofox/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
98
117
|
| `ofox/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
99
118
|
| `ofox/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
119
|
+
| `ofox/volcengine/doubao-seed-1-6` | 256K | | | | | | $0.12 | $0.29 |
|
|
120
|
+
| `ofox/volcengine/doubao-seed-1-6-flash` | 256K | | | | | | $0.03 | $0.22 |
|
|
121
|
+
| `ofox/volcengine/doubao-seed-1-6-vision` | 256K | | | | | | $0.12 | $1 |
|
|
122
|
+
| `ofox/volcengine/doubao-seed-1-8` | 256K | | | | | | $0.12 | $0.29 |
|
|
123
|
+
| `ofox/volcengine/doubao-seed-2.0-code` | 256K | | | | | | $0.67 | $3 |
|
|
124
|
+
| `ofox/volcengine/doubao-seed-2.0-lite` | 256K | | | | | | $0.13 | $0.76 |
|
|
125
|
+
| `ofox/volcengine/doubao-seed-2.0-mini` | 256K | | | | | | $0.06 | $0.56 |
|
|
126
|
+
| `ofox/volcengine/doubao-seed-2.0-pro` | 256K | | | | | | $0.67 | $3 |
|
|
127
|
+
| `ofox/volcengine/doubao-seed-2.1-pro` | 256K | | | | | | $0.88 | $4 |
|
|
128
|
+
| `ofox/volcengine/doubao-seed-2.1-turbo` | 256K | | | | | | $0.44 | $2 |
|
|
129
|
+
| `ofox/volcengine/doubao-seed-character` | 256K | | | | | | $0.18 | $0.88 |
|
|
130
|
+
| `ofox/volcengine/doubao-seed-evolving` | 256K | | | | | | $0.88 | $4 |
|
|
100
131
|
| `ofox/x-ai/grok-4.1-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
101
132
|
| `ofox/x-ai/grok-4.20` | 2.0M | | | | | | $4 | $12 |
|
|
102
133
|
| `ofox/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Go
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 25 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
41
41
|
| `opencode-go/glm-5.1` | 203K | | | | | | $1 | $4 |
|
|
42
42
|
| `opencode-go/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
43
|
+
| `opencode-go/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
43
44
|
| `opencode-go/gpt-5.6-luna` | 1.1M | | | | | | $0.10 | $0.60 |
|
|
44
45
|
| `opencode-go/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
45
46
|
| `opencode-go/hy3` | 256K | | | | | | $0.14 | $0.58 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Zen
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 91 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -93,6 +93,7 @@ for await (const chunk of stream) {
|
|
|
93
93
|
| `opencode/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
94
94
|
| `opencode/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
95
95
|
| `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
96
|
+
| `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
96
97
|
| `opencode/nemotron-3-ultra-free` | 1.0M | | | | | | — | — |
|
|
97
98
|
| `opencode/nemotron-3.5-lightning-free` | 262K | | | | | | — | — |
|
|
98
99
|
| `opencode/qwen3.5-plus` | 262K | | | | | | $0.20 | $1 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Perplexity Agent
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 22 Perplexity Agent models through Mastra's model router. Authentication is handled automatically using the `PERPLEXITY_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Perplexity Agent documentation](https://docs.perplexity.ai/docs/agent-api/models).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `perplexity-agent/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
43
43
|
| `perplexity-agent/anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
44
44
|
| `perplexity-agent/anthropic/claude-sonnet-4-6` | 200K | | | | | | $3 | $15 |
|
|
45
|
+
| `perplexity-agent/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.13 | $0.26 |
|
|
45
46
|
| `perplexity-agent/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
46
47
|
| `perplexity-agent/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
47
48
|
| `perplexity-agent/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
@@ -56,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
56
57
|
| `perplexity-agent/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
57
58
|
| `perplexity-agent/perplexity/sonar` | 128K | | | | | | $0.25 | $3 |
|
|
58
59
|
| `perplexity-agent/xai/grok-4-1-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
60
|
+
| `perplexity-agent/xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
59
61
|
|
|
60
62
|
## Advanced configuration
|
|
61
63
|
|
|
@@ -85,7 +87,7 @@ const agent = new Agent({
|
|
|
85
87
|
model: ({ requestContext }) => {
|
|
86
88
|
const useAdvanced = requestContext.task === "complex";
|
|
87
89
|
return useAdvanced
|
|
88
|
-
? "perplexity-agent/xai/grok-4
|
|
90
|
+
? "perplexity-agent/xai/grok-4.6"
|
|
89
91
|
: "perplexity-agent/anthropic/claude-haiku-4-5";
|
|
90
92
|
}
|
|
91
93
|
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# QVAC
|
|
4
|
+
|
|
5
|
+
QVAC is available through the AI SDK. Install the provider package to use their models with Mastra.
|
|
6
|
+
|
|
7
|
+
For detailed provider-specific documentation, see the [AI SDK QVAC provider docs](https://ai-sdk.dev/providers/community-providers/qvac).
|
|
8
|
+
|
|
9
|
+
To use this provider with Mastra agents, see the [Agent Overview documentation](https://mastra.ai/docs/agents/overview).
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
**npm**:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @qvac/ai-sdk-provider
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**pnpm**:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm add @qvac/ai-sdk-provider
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Yarn**:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
yarn add @qvac/ai-sdk-provider
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Bun**:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bun add @qvac/ai-sdk-provider
|
|
35
|
+
```
|
|
@@ -60,12 +60,12 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `requesty/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
61
61
|
| `requesty/deepseek-v4-flash-0731@eu` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
62
62
|
| `requesty/gemini-2.5-flash@eu` | 1.0M | | | | | | $0.30 | $3 |
|
|
63
|
-
| `requesty/gemini-3.1-flash-lite@eu` | 1.0M | | | | | | $0.
|
|
63
|
+
| `requesty/gemini-3.1-flash-lite@eu` | 1.0M | | | | | | $0.28 | $2 |
|
|
64
64
|
| `requesty/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
65
|
-
| `requesty/gemini-3.5-flash@eu` | 1.0M | | | | | | $2 | $
|
|
65
|
+
| `requesty/gemini-3.5-flash@eu` | 1.0M | | | | | | $2 | $10 |
|
|
66
66
|
| `requesty/gemini-3.6-flash` | 1.0M | | | | | | $2 | $7 |
|
|
67
67
|
| `requesty/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
68
|
-
| `requesty/gemini-3.7-flash@eu` | 1.0M | | | | | | $0.
|
|
68
|
+
| `requesty/gemini-3.7-flash@eu` | 1.0M | | | | | | $0.82 | $4 |
|
|
69
69
|
| `requesty/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
70
70
|
| `requesty/glm-5.2@eu` | 1.0M | | | | | | $1 | $4 |
|
|
71
71
|
| `requesty/gpt-4.1-mini@eu` | 1.0M | | | | | | $0.44 | $2 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Z.AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 5 Z.AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Z.AI Coding Plan documentation](https://docs.z.ai/devpack/overview).
|
|
8
8
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `zai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
41
41
|
| `zai-coding-plan/glm-5.2` | 1.0M | | | | | | — | — |
|
|
42
42
|
| `zai-coding-plan/glm-5.2-highspeed` | 1.0M | | | | | | — | — |
|
|
43
|
+
| `zai-coding-plan/glm-5.3` | 1.0M | | | | | | — | — |
|
|
43
44
|
|
|
44
45
|
## Advanced configuration
|
|
45
46
|
|
|
@@ -69,7 +70,7 @@ const agent = new Agent({
|
|
|
69
70
|
model: ({ requestContext }) => {
|
|
70
71
|
const useAdvanced = requestContext.task === "complex";
|
|
71
72
|
return useAdvanced
|
|
72
|
-
? "zai-coding-plan/glm-5.
|
|
73
|
+
? "zai-coding-plan/glm-5.3"
|
|
73
74
|
: "zai-coding-plan/glm-4.7";
|
|
74
75
|
}
|
|
75
76
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Zhipu AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 8 Zhipu AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Zhipu AI Coding Plan documentation](https://docs.bigmodel.cn/cn/coding-plan/overview).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `zhipuai-coding-plan/glm-5.1` | 200K | | | | | | — | — |
|
|
43
43
|
| `zhipuai-coding-plan/glm-5.2` | 1.0M | | | | | | — | — |
|
|
44
44
|
| `zhipuai-coding-plan/glm-5.2-highspeed` | 1.0M | | | | | | — | — |
|
|
45
|
+
| `zhipuai-coding-plan/glm-5.3` | 1.0M | | | | | | — | — |
|
|
45
46
|
| `zhipuai-coding-plan/glm-5v-turbo` | 200K | | | | | | — | — |
|
|
46
47
|
|
|
47
48
|
## Advanced configuration
|
|
@@ -196,6 +196,31 @@ const session = await controller.getSessionByResource('project-42', 'editor-wind
|
|
|
196
196
|
|
|
197
197
|
Returns: `Promise<Session<TState> | undefined>`
|
|
198
198
|
|
|
199
|
+
#### `onSessionCreated(listener, options?)`
|
|
200
|
+
|
|
201
|
+
Subscribe to process-local notifications after `createSession()` materializes a new live session. Listener errors are isolated and don't prevent other listeners from running. Call the returned function to unsubscribe.
|
|
202
|
+
|
|
203
|
+
By default listeners are fire-and-forget. Pass `{ blocking: true }` to make `createSession()` await the listener before resolving the new session, so the host can prepare session state before the caller can start a run. Blocking listeners run sequentially in registration order, before fire-and-forget listeners are notified. A blocking listener must not call `createSession()` for the same `(resourceId, scope)` pair. That call would await its own hydration and deadlock.
|
|
204
|
+
|
|
205
|
+
```typescript
|
|
206
|
+
const unsubscribe = controller.onSessionCreated(
|
|
207
|
+
async session => {
|
|
208
|
+
const settings = await loadSettings(session.identity.getResourceId())
|
|
209
|
+
if (settings) await session.state.set(settings)
|
|
210
|
+
},
|
|
211
|
+
{ blocking: true },
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
// Default listeners stay fire-and-forget.
|
|
215
|
+
controller.onSessionCreated(session => {
|
|
216
|
+
console.log(`Created ${session.identity.getResourceId()}`)
|
|
217
|
+
})
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Listeners run once per newly materialized session, not for cached sessions returned by later `createSession()` calls. They run only in the current process and aren't persisted events.
|
|
221
|
+
|
|
222
|
+
Returns: `() => void`
|
|
223
|
+
|
|
199
224
|
#### `onSessionDeleted(listener)`
|
|
200
225
|
|
|
201
226
|
Subscribe to process-local notifications after `deleteSession()` tears down a live session. Listener errors are isolated and don't prevent other listeners from running. Call the returned function to unsubscribe.
|
|
@@ -472,5 +497,5 @@ await controller.stopIntervals()
|
|
|
472
497
|
- [AgentController guide](https://mastra.ai/docs/harness/agent-controller)
|
|
473
498
|
- [Session reference](https://mastra.ai/reference/agent-controller/session)
|
|
474
499
|
- [Agents](https://mastra.ai/docs/agents/overview)
|
|
475
|
-
- [
|
|
500
|
+
- [Sandbox](https://mastra.ai/docs/workspace/sandbox)
|
|
476
501
|
- [Channels](https://mastra.ai/docs/capabilities/channels)
|
|
@@ -229,4 +229,4 @@ browse skills install
|
|
|
229
229
|
|
|
230
230
|
- [BrowserViewer guide](https://mastra.ai/integrations/browsers/browser-viewer): Setup and usage walkthrough
|
|
231
231
|
- [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class API reference
|
|
232
|
-
- [
|
|
232
|
+
- [Sandbox](https://mastra.ai/docs/workspace/sandbox): Workspace configuration
|
|
@@ -483,7 +483,7 @@ export const mastra = new Mastra({
|
|
|
483
483
|
|
|
484
484
|
A Mastra workspace gives agents a persistent environment for storing files and executing commands. Agents inherit the global workspace on the `Mastra` class unless they have their own workspace configured.
|
|
485
485
|
|
|
486
|
-
See the [Workspace documentation](https://mastra.ai/docs/workspace/
|
|
486
|
+
See the [Workspace documentation](https://mastra.ai/docs/workspace/sandbox) for implementation details.
|
|
487
487
|
|
|
488
488
|
```typescript
|
|
489
489
|
import { Mastra } from '@mastra/core'
|
|
@@ -24,5 +24,5 @@ When `destroy` is `true` and `workspace.destroy()` throws, the call rejects with
|
|
|
24
24
|
|
|
25
25
|
## Related
|
|
26
26
|
|
|
27
|
-
- [
|
|
27
|
+
- [Sandbox](https://mastra.ai/docs/workspace/sandbox)
|
|
28
28
|
- [Workspace class](https://mastra.ai/reference/workspace/workspace-class)
|
|
@@ -18,6 +18,7 @@ const dataset = await mastra.datasets.get({ id: 'dataset-id' })
|
|
|
18
18
|
const item = await dataset.addItem({
|
|
19
19
|
input: { question: 'What is TypeScript?' },
|
|
20
20
|
groundTruth: { answer: 'A typed superset of JavaScript' },
|
|
21
|
+
scorerIds: ['accuracy', 'relevancy'],
|
|
21
22
|
metadata: { source: 'manual' },
|
|
22
23
|
})
|
|
23
24
|
|
|
@@ -30,6 +31,8 @@ console.log(item.id)
|
|
|
30
31
|
|
|
31
32
|
**groundTruth** (`unknown`): Expected output or ground truth for scoring.
|
|
32
33
|
|
|
34
|
+
**scorerIds** (`string[]`): Scorer IDs that override dataset-attached scorers for this item. An empty array runs no scorers for the item. Omit this field to inherit the dataset scorer IDs.
|
|
35
|
+
|
|
33
36
|
**metadata** (`Record<string, unknown>`): Arbitrary metadata for the item.
|
|
34
37
|
|
|
35
38
|
## Returns
|
|
@@ -46,6 +49,8 @@ console.log(item.id)
|
|
|
46
49
|
|
|
47
50
|
**result.groundTruth** (`unknown`): Ground truth data.
|
|
48
51
|
|
|
52
|
+
**result.scorerIds** (`string[]`): Scorer IDs selected for this item. An empty array is an explicit override that runs no scorers.
|
|
53
|
+
|
|
49
54
|
**result.metadata** (`Record<string, unknown>`): Item metadata.
|
|
50
55
|
|
|
51
56
|
**result.createdAt** (`Date`): When the item was created.
|
|
@@ -17,8 +17,16 @@ const dataset = await mastra.datasets.get({ id: 'dataset-id' })
|
|
|
17
17
|
|
|
18
18
|
const items = await dataset.addItems({
|
|
19
19
|
items: [
|
|
20
|
-
{
|
|
21
|
-
|
|
20
|
+
{
|
|
21
|
+
input: { question: 'What is AI?' },
|
|
22
|
+
groundTruth: { answer: 'Artificial Intelligence' },
|
|
23
|
+
scorerIds: ['accuracy'],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
input: { question: 'What is ML?' },
|
|
27
|
+
groundTruth: { answer: 'Machine Learning' },
|
|
28
|
+
scorerIds: [],
|
|
29
|
+
},
|
|
22
30
|
{ input: { question: 'What is DL?' }, metadata: { category: 'deep-learning' } },
|
|
23
31
|
],
|
|
24
32
|
})
|
|
@@ -34,6 +42,8 @@ console.log(`Added ${items.length} items`)
|
|
|
34
42
|
|
|
35
43
|
**items.groundTruth** (`unknown`): Expected output or ground truth.
|
|
36
44
|
|
|
45
|
+
**items.scorerIds** (`string[]`): Scorer IDs that override dataset-attached scorers for this item. An empty array runs no scorers for the item.
|
|
46
|
+
|
|
37
47
|
**items.metadata** (`Record<string, unknown>`): Arbitrary metadata.
|
|
38
48
|
|
|
39
49
|
## Returns
|
|
@@ -59,7 +59,7 @@ console.log(`Status: ${summary2.status}`)
|
|
|
59
59
|
|
|
60
60
|
**targetId** (`string`): ID of the registered target. Use with targetType.
|
|
61
61
|
|
|
62
|
-
**scorers** (`(MastraScorer | string)[] | AgentScorerConfig | WorkflowScorerConfig`): Scorers to evaluate each result. Accepts a flat array of MastraScorer instances or registered scorer IDs, or the same categorised config shape used by runEvals (AgentScorerConfig / WorkflowScorerConfig). Trajectory scorers (type: "trajectory") automatically receive a pre-extracted Trajectory as their output regardless of which form is used.
|
|
62
|
+
**scorers** (`(MastraScorer | string)[] | AgentScorerConfig | WorkflowScorerConfig`): Scorers to evaluate each result. Accepts a flat array of MastraScorer instances or registered scorer IDs, or the same categorised config shape used by runEvals (AgentScorerConfig / WorkflowScorerConfig). When this option is provided, including as \[] or an empty categorized config, it overrides item-level and dataset-level scorer IDs for every item. When omitted, each item uses its own scorerIds when present, then falls back to the dataset scorer IDs. Sources aren't merged. Trajectory scorers (type: "trajectory") automatically receive a pre-extracted Trajectory as their output regardless of which form is used. Workflow step scorers are supported only through this run-level categorized configuration. Their results carry the originating stepId and keep targetScope: "span" (matching runEvals).
|
|
63
63
|
|
|
64
64
|
**name** (`string`): Display name for the experiment.
|
|
65
65
|
|
|
@@ -19,6 +19,7 @@ const updated = await dataset.updateItem({
|
|
|
19
19
|
itemId: 'item-id',
|
|
20
20
|
input: { question: 'What is TypeScript?' },
|
|
21
21
|
groundTruth: { answer: 'A typed superset of JavaScript' },
|
|
22
|
+
scorerIds: null,
|
|
22
23
|
metadata: { reviewed: true },
|
|
23
24
|
})
|
|
24
25
|
```
|
|
@@ -31,6 +32,8 @@ const updated = await dataset.updateItem({
|
|
|
31
32
|
|
|
32
33
|
**groundTruth** (`unknown`): Updated ground truth.
|
|
33
34
|
|
|
35
|
+
**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.
|
|
36
|
+
|
|
34
37
|
**metadata** (`Record<string, unknown>`): Updated metadata.
|
|
35
38
|
|
|
36
39
|
## Returns
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
> **Beta:** Breaking changes may occur without a major version bump until the API is stable.
|
|
6
6
|
|
|
7
|
-
A [workspace](https://mastra.ai/docs/workspace/
|
|
7
|
+
A [workspace](https://mastra.ai/docs/workspace/sandbox) assembles capabilities such as filesystem access and command execution. The configured backends determine which tools are available. File-based agents get a default workspace automatically when discovered through `mastra dev` or `mastra build`. This default includes filesystem access and command execution, so agents can read and write files and run shell commands without extra configuration.
|
|
8
8
|
|
|
9
|
-
Use this page for the file-based convention. For workspace providers, tools, search, lifecycle, and sandbox details, see [
|
|
9
|
+
Use this page for the file-based convention. For workspace providers, tools, search, lifecycle, and sandbox details, see [Sandbox](https://mastra.ai/docs/workspace/sandbox).
|
|
10
10
|
|
|
11
11
|
## Default workspace
|
|
12
12
|
|
|
@@ -65,7 +65,7 @@ Customize the workspace when the default local directory isn't enough. Common re
|
|
|
65
65
|
- Add workspace search with BM25 or vector search.
|
|
66
66
|
- Share one workspace across multiple agents.
|
|
67
67
|
|
|
68
|
-
For provider patterns and runtime behavior, see the [
|
|
68
|
+
For provider patterns and runtime behavior, see the [sandbox guide](https://mastra.ai/docs/workspace/sandbox) and [workspace search](https://mastra.ai/docs/workspace/search).
|
|
69
69
|
|
|
70
70
|
## Runtime boundary
|
|
71
71
|
|
|
@@ -57,6 +57,8 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
57
57
|
|
|
58
58
|
**observation.instruction** (`string`): Custom instruction appended to the Observer's system prompt. Use this to customize what the Observer focuses on, such as domain-specific preferences or priorities.
|
|
59
59
|
|
|
60
|
+
**observation.continuationHints** (`boolean | { currentTask?: boolean; suggestedResponse?: boolean }`): Which continuation-hint sections the Observer emits. Pass false to disable both, or an object to disable them individually. Agents that drive their own control flow generally want { suggestedResponse: false } so memory does not compete for what the agent says next. A previously stored hint stops being injected into context once both observation and reflection disable its section.
|
|
61
|
+
|
|
60
62
|
**observation.threadTitle** (`boolean`): When true, the Observer suggests short thread titles and updates the thread title when the conversation topic meaningfully changes. This is opt-in and defaults to disabled.
|
|
61
63
|
|
|
62
64
|
**observation.extract** (`Extractor[]`): Custom values to extract after observation. Schema-less extractors are requested inline in the Observer output. Schema-backed extractors run as a follow-up structured output call and are stored in thread OM metadata.
|
|
@@ -97,6 +99,8 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
97
99
|
|
|
98
100
|
**reflection.instruction** (`string`): Custom instruction appended to the Reflector's system prompt. Use this to customize how the Reflector consolidates observations, such as prioritizing certain types of information.
|
|
99
101
|
|
|
102
|
+
**reflection.continuationHints** (`boolean | { currentTask?: boolean; suggestedResponse?: boolean }`): Which continuation-hint sections the Reflector emits. Pass false to disable both, or an object to disable them individually. A previously stored hint stops being injected into context once both observation and reflection disable its section.
|
|
103
|
+
|
|
100
104
|
**reflection.extract** (`Extractor[]`): Custom values to extract after reflection. Schema-less extractors are requested inline in the Reflector output. Schema-backed extractors run as a follow-up structured output call and are stored in thread OM metadata.
|
|
101
105
|
|
|
102
106
|
**reflection.observationTokens** (`number`): Token count of observations that triggers reflection. When observation tokens exceed this threshold, the Reflector agent is called to condense them.
|
|
@@ -189,6 +189,8 @@ When an organization has exhausted its observability quota, the Mastra platform
|
|
|
189
189
|
|
|
190
190
|
The probe timer doesn't keep the Node.js process alive, so short-lived and serverless processes exit normally while paused.
|
|
191
191
|
|
|
192
|
+
Every request the exporter sends (batch uploads for all five signal types, plus the traces recovery probe) includes the `x-mastra-observability-capabilities: quota-pause-v1` header. This tells the platform that the client understands the quota-pause contract, so it can safely respond with `402` instead of silently dropping telemetry for older clients that would retry it.
|
|
193
|
+
|
|
192
194
|
### Endpoint routing
|
|
193
195
|
|
|
194
196
|
- Base origins derive signal endpoints automatically
|
|
@@ -45,11 +45,12 @@ Mastra agents don't add this processor automatically. Add it explicitly when you
|
|
|
45
45
|
|
|
46
46
|
`ProviderHistoryCompat` includes these built-in compatibility rules:
|
|
47
47
|
|
|
48
|
-
| Rule | Provider
|
|
49
|
-
| ------------------------------------------- |
|
|
50
|
-
| `anthropic-tool-id-format` | Anthropic
|
|
51
|
-
| `cerebras-strip-reasoning-content` | Cerebras
|
|
52
|
-
| `anthropic-strip-foreign-reasoning-content` | Anthropic
|
|
48
|
+
| Rule | Provider | Timing | Behavior |
|
|
49
|
+
| ------------------------------------------- | ------------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
|
+
| `anthropic-tool-id-format` | Anthropic | Reactive API error recovery | Rewrites tool call IDs that contain characters outside `[a-zA-Z0-9_-]` and retries the request. |
|
|
51
|
+
| `cerebras-strip-reasoning-content` | Cerebras | Preemptive prompt rewrite | Removes assistant `reasoning` parts from the outbound prompt so they're not serialized as unsupported `reasoning_content` fields. |
|
|
52
|
+
| `anthropic-strip-foreign-reasoning-content` | Anthropic | Preemptive prompt rewrite | Removes non-Anthropic assistant `reasoning` parts from the outbound prompt. Anthropic-native thinking history is preserved. |
|
|
53
|
+
| `azure-system-reminder-transform` | Azure OpenAI | Preemptive prompt rewrite | Renames `<system-reminder>` wrappers in user text and system instructions to `<memory-context>` for the outbound request. Stored history remains unchanged. |
|
|
53
54
|
|
|
54
55
|
Preemptive rules run through `processLLMRequest` after Mastra converts messages to the model prompt format and before the prompt is sent to the provider. These rewrites affect only the current provider call.
|
|
55
56
|
|
|
@@ -112,4 +112,4 @@ Reserve workspace file tools such as `mastra_workspace_read_file` for explicit f
|
|
|
112
112
|
|
|
113
113
|
- [ToolSearchProcessor](https://mastra.ai/reference/processors/tool-search-processor)
|
|
114
114
|
- [Processors](https://mastra.ai/docs/agents/processors)
|
|
115
|
-
- [Workspace Skills](https://mastra.ai/docs/workspace/
|
|
115
|
+
- [Workspace Skills](https://mastra.ai/docs/workspace/skills)
|