@mastra/mcp-docs-server 1.2.17-alpha.11 → 1.2.17-alpha.14
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/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/docs/agents/code-mode.md +3 -3
- package/.docs/docs/agents/guardrails.md +1 -1
- package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
- package/.docs/docs/agents/networks.md +3 -3
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +2 -2
- package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
- package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
- package/.docs/docs/{server/auth → auth}/fga.md +1 -1
- package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
- package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
- package/.docs/docs/{server/auth → auth}/workers.md +2 -2
- package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
- package/.docs/docs/{agents → connections}/a2a.md +2 -2
- package/.docs/docs/{agents → connections}/acp.md +1 -1
- package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
- package/.docs/docs/connections/overview.md +5 -5
- package/.docs/docs/{agents → connections}/sdk-agents.md +1 -1
- package/.docs/docs/deployment/mastra-server.md +2 -2
- package/.docs/docs/deployment/overview.md +1 -1
- package/.docs/docs/deployment/sandbox.md +3 -3
- package/.docs/docs/deployment/workers.md +4 -4
- package/.docs/docs/guides/multi-agent-systems.md +7 -7
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/durable-agents.md +2 -2
- package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
- package/.docs/docs/harness/overview.md +11 -10
- package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
- package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
- package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +3 -3
- package/.docs/docs/{workspace → sandbox}/search.md +2 -2
- package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
- package/.docs/docs/server/custom-api-routes.md +2 -2
- package/.docs/docs/server/mastra-client.md +2 -2
- package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
- package/.docs/docs/server/pubsub.md +2 -2
- package/.docs/docs/server/server-adapters.md +4 -4
- package/.docs/docs/{agents/skills.md → skills.md} +4 -4
- package/.docs/docs/{storage/overview.md → storage.md} +1 -1
- package/.docs/docs/studio/auth.md +4 -4
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +2 -2
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +2 -2
- package/.docs/integrations/browsers/browser-viewer.md +6 -6
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +2 -2
- package/.docs/integrations/channels/discord.md +2 -2
- package/.docs/integrations/channels/github.md +1 -1
- package/.docs/integrations/channels/imessage.md +4 -4
- package/.docs/integrations/channels/slack.md +5 -5
- package/.docs/integrations/channels/teams.md +2 -2
- package/.docs/integrations/channels/telegram.md +2 -2
- package/.docs/integrations/channels/whatsapp.md +2 -2
- package/.docs/integrations/databases/postgresql.md +1 -0
- package/.docs/integrations/deploy/amazon-ec2.md +2 -2
- package/.docs/integrations/deploy/aws-lambda.md +3 -3
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +3 -3
- package/.docs/integrations/deploy/kubernetes.md +11 -11
- package/.docs/integrations/deploy/netlify.md +3 -3
- package/.docs/integrations/deploy/vercel.md +2 -2
- 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 +2 -2
- package/.docs/integrations/file-storage/vercel-files.md +1 -1
- package/.docs/integrations/frameworks/astro.md +1 -1
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +1 -1
- package/.docs/integrations/frameworks/next-js.md +1 -1
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/vite-react.md +1 -1
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +4 -3
- package/.docs/integrations/sandboxes/e2b.md +1 -1
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/models/environment-variables.md +5 -0
- package/.docs/models/gateways/openrouter.md +2 -1
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +2 -1
- package/.docs/models/providers/alibaba-token-plan.md +2 -1
- package/.docs/models/providers/amd.md +73 -0
- package/.docs/models/providers/arcee.md +79 -0
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/cerebras.md +2 -3
- package/.docs/models/providers/chutes.md +2 -1
- package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crof.md +1 -1
- package/.docs/models/providers/crossmodel.md +3 -2
- package/.docs/models/providers/deepinfra.md +4 -1
- package/.docs/models/providers/digitalocean.md +3 -2
- package/.docs/models/providers/edenai.md +17 -5
- package/.docs/models/providers/empiriolabs.md +10 -1
- package/.docs/models/providers/huggingface.md +4 -1
- package/.docs/models/providers/hyper.md +8 -7
- package/.docs/models/providers/inferx.md +19 -13
- package/.docs/models/providers/jalapeno.md +89 -0
- package/.docs/models/providers/kilo.md +11 -10
- package/.docs/models/providers/llmtr.md +35 -10
- package/.docs/models/providers/merge-gateway.md +3 -1
- package/.docs/models/providers/nano-gpt.md +9 -13
- package/.docs/models/providers/ofox.md +3 -3
- package/.docs/models/providers/opencode-go.md +2 -2
- package/.docs/models/providers/runinfra.md +76 -0
- package/.docs/models/providers/scnet-token-plan.md +85 -0
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +2 -1
- package/.docs/models/providers/umans-ai.md +2 -1
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/models/providers/xai.md +2 -1
- package/.docs/models/providers.md +5 -0
- package/.docs/reference/acp/acp-agent.md +2 -2
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
- package/.docs/reference/agents/agent.md +2 -2
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/createSkill.md +2 -2
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +6 -6
- package/.docs/reference/agents/listTools.md +2 -2
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
- package/.docs/reference/ai-sdk/network-route.md +1 -1
- package/.docs/reference/auth/fga.md +5 -5
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/browser/browser-viewer.md +2 -2
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +2 -2
- package/.docs/reference/build-with-ai.md +2 -2
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/cli/mastra.md +2 -0
- package/.docs/reference/client-js/agents.md +4 -4
- package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
- package/.docs/reference/configuration.md +6 -6
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getMCPServer.md +1 -1
- package/.docs/reference/core/getMCPServerById.md +1 -1
- package/.docs/reference/core/getTool.md +1 -1
- package/.docs/reference/core/getToolById.md +1 -1
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listTools.md +1 -1
- package/.docs/reference/core/removeWorkspace.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/editor/prompt-blocks.md +2 -2
- package/.docs/reference/editor/tool-provider.md +1 -1
- package/.docs/reference/editor/tools.md +1 -1
- package/.docs/reference/editor/versioning.md +3 -3
- package/.docs/reference/evals/prompt-alignment.md +18 -0
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/file-based-agents/memory.md +2 -2
- package/.docs/reference/file-based-agents/server.md +3 -3
- package/.docs/reference/file-based-agents/skills.md +1 -1
- package/.docs/reference/file-based-agents/storage.md +3 -3
- package/.docs/reference/file-based-agents/subagents.md +1 -1
- package/.docs/reference/file-based-agents/workspace.md +3 -3
- package/.docs/reference/manual-install.md +3 -3
- package/.docs/reference/migrations/network-to-supervisor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/tool-call-filter.md +7 -7
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +3 -3
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/schedules/overview.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +3 -1
- package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
- package/.docs/reference/tools/ask-user-tool.md +1 -1
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +4 -4
- package/.docs/reference/tools/mcp-server.md +47 -2
- package/.docs/reference/tools/submit-plan-tool.md +1 -1
- package/.docs/reference/tools/task-tools.md +2 -2
- package/.docs/reference/vectors/vectorize.md +12 -2
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -3
- package/.docs/reference/workspace/process-manager.md +20 -4
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/CHANGELOG.md +15 -0
- package/package.json +5 -5
- /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
- /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
- /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
- /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
- /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
- /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# NanoGPT
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 595 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
|
|
|
@@ -150,26 +150,21 @@ for await (const chunk of stream) {
|
|
|
150
150
|
| `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.28 | $0.42 |
|
|
151
151
|
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
152
152
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
153
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
154
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
155
153
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
156
154
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
157
155
|
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
158
156
|
| `nano-gpt/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $2 |
|
|
159
157
|
| `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $3 |
|
|
160
158
|
| `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $1 | $3 |
|
|
161
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
162
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper:thinking` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
163
159
|
| `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $1 | $2 |
|
|
164
160
|
| `nano-gpt/dmind/dmind-1-mini` | 33K | | | | | | $0.20 | $0.40 |
|
|
165
161
|
| `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 16K | | | | | | $0.49 | $0.49 |
|
|
166
|
-
| `nano-gpt/dots-studio/dots-3-note-preview
|
|
162
|
+
| `nano-gpt/dots-studio/dots-3-note-preview` | 393K | | | | | | $0.10 | $0.20 |
|
|
167
163
|
| `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
|
|
168
164
|
| `nano-gpt/doubao-1.5-pro-32k` | 32K | | | | | | $0.13 | $0.33 |
|
|
169
165
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
170
166
|
| `nano-gpt/doubao-seed-1-6-250615` | 256K | | | | | | $0.20 | $0.51 |
|
|
171
167
|
| `nano-gpt/doubao-seed-1-6-flash-250615` | 256K | | | | | | $0.04 | $0.37 |
|
|
172
|
-
| `nano-gpt/doubao-seed-1-8-251215` | 128K | | | | | | $0.61 | $6 |
|
|
173
168
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
174
169
|
| `nano-gpt/doubao-seed-2-0-lite-260215` | 256K | | | | | | $0.15 | $0.87 |
|
|
175
170
|
| `nano-gpt/doubao-seed-2-0-mini-260215` | 256K | | | | | | $0.05 | $0.48 |
|
|
@@ -316,8 +311,6 @@ for await (const chunk of stream) {
|
|
|
316
311
|
| `nano-gpt/minimax/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
317
312
|
| `nano-gpt/minimax/minimax-m3:thinking` | 512K | | | | | | $0.30 | $1 |
|
|
318
313
|
| `nano-gpt/MiniMaxAI/MiniMax-M1-80k` | 1.0M | | | | | | $0.61 | $2 |
|
|
319
|
-
| `nano-gpt/mirothinker-1-7-deepresearch` | 262K | | | | | | $4 | $25 |
|
|
320
|
-
| `nano-gpt/mirothinker-1-7-deepresearch-mini` | 262K | | | | | | $1 | $10 |
|
|
321
314
|
| `nano-gpt/mistral-code-agent-latest` | 262K | | | | | | $0.40 | $2 |
|
|
322
315
|
| `nano-gpt/mistral-code-latest` | 256K | | | | | | $0.30 | $0.90 |
|
|
323
316
|
| `nano-gpt/mistral-small-31-24b-instruct` | 128K | | | | | | $0.10 | $0.30 |
|
|
@@ -474,14 +467,17 @@ for await (const chunk of stream) {
|
|
|
474
467
|
| `nano-gpt/qwen3-max-2026-01-23` | 256K | | | | | | $1 | $6 |
|
|
475
468
|
| `nano-gpt/qwen3-vl-235b-a22b-instruct-original` | 33K | | | | | | $0.50 | $1 |
|
|
476
469
|
| `nano-gpt/qwen3-vl-235b-a22b-thinking` | 33K | | | | | | $0.50 | $6 |
|
|
470
|
+
| `nano-gpt/qwen3.5-0.8b` | 262K | | | | | | $0.06 | $0.12 |
|
|
477
471
|
| `nano-gpt/qwen3.5-122b-a10b` | 131K | | | | | | $0.44 | $3 |
|
|
478
472
|
| `nano-gpt/qwen3.5-122b-a10b:thinking` | 131K | | | | | | $0.44 | $3 |
|
|
479
473
|
| `nano-gpt/qwen3.5-27b` | 260K | | | | | | $0.27 | $2 |
|
|
480
474
|
| `nano-gpt/Qwen3.5-27B-BlueStar-v3-Derestricted` | 262K | | | | | | $0.31 | $0.31 |
|
|
481
475
|
| `nano-gpt/Qwen3.5-27B-Queen-Derestricted` | 262K | | | | | | $0.31 | $0.31 |
|
|
482
476
|
| `nano-gpt/qwen3.5-27b:thinking` | 260K | | | | | | $0.27 | $2 |
|
|
477
|
+
| `nano-gpt/qwen3.5-2b` | 262K | | | | | | $0.08 | $0.16 |
|
|
483
478
|
| `nano-gpt/qwen3.5-35b-a3b` | 260K | | | | | | $0.23 | $2 |
|
|
484
479
|
| `nano-gpt/qwen3.5-35b-a3b:thinking` | 260K | | | | | | $0.23 | $2 |
|
|
480
|
+
| `nano-gpt/qwen3.5-4b` | 262K | | | | | | $0.10 | $0.20 |
|
|
485
481
|
| `nano-gpt/qwen3.5-flash` | 992K | | | | | | $0.10 | $0.40 |
|
|
486
482
|
| `nano-gpt/qwen3.5-flash:thinking` | 992K | | | | | | $0.10 | $0.40 |
|
|
487
483
|
| `nano-gpt/qwen3.5-omni-flash` | 49K | | | | | | — | — |
|
|
@@ -493,6 +489,8 @@ for await (const chunk of stream) {
|
|
|
493
489
|
| `nano-gpt/qwen3.7-max:thinking` | 1.0M | | | | | | $3 | $8 |
|
|
494
490
|
| `nano-gpt/qwen3.7-plus` | 992K | | | | | | $0.40 | $2 |
|
|
495
491
|
| `nano-gpt/qwen3.7-plus:thinking` | 984K | | | | | | $0.40 | $2 |
|
|
492
|
+
| `nano-gpt/qwen3.8-27b` | 262K | | | | | | $0.20 | $1 |
|
|
493
|
+
| `nano-gpt/qwen3.8-27b:thinking` | 262K | | | | | | $0.20 | $1 |
|
|
496
494
|
| `nano-gpt/qwen3.8-max` | 991K | | | | | | $2 | $6 |
|
|
497
495
|
| `nano-gpt/qwen3.8-max:thinking` | 991K | | | | | | $2 | $6 |
|
|
498
496
|
| `nano-gpt/ReadyArt/MS3.2-The-Omega-Directive-24B-Unslop-v2.0` | 16K | | | | | | $0.50 | $0.50 |
|
|
@@ -519,16 +517,14 @@ for await (const chunk of stream) {
|
|
|
519
517
|
| `nano-gpt/Steelskull/L3.3-MS-Evayale-70B` | 16K | | | | | | $0.49 | $0.49 |
|
|
520
518
|
| `nano-gpt/Steelskull/L3.3-MS-Nevoria-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
521
519
|
| `nano-gpt/Steelskull/L3.3-Nevoria-R1-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
522
|
-
| `nano-gpt/step-2-16k-exp` | 16K | | | | | | $7 | $20 |
|
|
523
|
-
| `nano-gpt/step-2-mini` | 8K | | | | | | $0.20 | $0.41 |
|
|
524
|
-
| `nano-gpt/step-3` | 66K | | | | | | $0.25 | $0.65 |
|
|
525
520
|
| `nano-gpt/step-r1-v-mini` | 128K | | | | | | $3 | $11 |
|
|
526
521
|
| `nano-gpt/stepfun-ai/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
527
522
|
| `nano-gpt/stepfun-ai/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
528
523
|
| `nano-gpt/stepfun/step-3.7-flash:thinking` | 262K | | | | | | $0.20 | $1 |
|
|
529
|
-
| `nano-gpt/TEE/deepseek-v3.1` | 164K | | | | | | $1 | $3 |
|
|
530
524
|
| `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $0.50 | $1 |
|
|
531
525
|
| `nano-gpt/TEE/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
|
|
526
|
+
| `nano-gpt/TEE/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
527
|
+
| `nano-gpt/TEE/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $1 | $4 |
|
|
532
528
|
| `nano-gpt/TEE/gemma-3-27b-it` | 131K | | | | | | $0.20 | $0.80 |
|
|
533
529
|
| `nano-gpt/TEE/gemma-4-26b-a4b-uncensored` | 66K | | | | | | $0.15 | $0.70 |
|
|
534
530
|
| `nano-gpt/TEE/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.46 |
|
|
@@ -69,9 +69,9 @@ for await (const chunk of stream) {
|
|
|
69
69
|
| `ofox/bailian/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
70
70
|
| `ofox/bailian/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
71
71
|
| `ofox/deepseek/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.43 |
|
|
72
|
-
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
73
|
-
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $
|
|
74
|
-
| `ofox/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $
|
|
72
|
+
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.44 | $1 |
|
|
73
|
+
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
74
|
+
| `ofox/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
75
75
|
| `ofox/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
76
76
|
| `ofox/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
77
77
|
| `ofox/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -36,8 +36,8 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
-
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
40
|
-
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.
|
|
39
|
+
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
40
|
+
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
41
41
|
| `opencode-go/glm-5.1` | 203K | | | | | | $1 | $4 |
|
|
42
42
|
| `opencode-go/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
43
43
|
| `opencode-go/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# RunInfra
|
|
4
|
+
|
|
5
|
+
Access 4 RunInfra models through Mastra's model router. Authentication is handled automatically using the `RUNINFRA_GATEWAY_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [RunInfra documentation](https://runinfra.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
RUNINFRA_GATEWAY_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [RunInfra documentation](https://runinfra.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `runinfra/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.27 |
|
|
40
|
+
| `runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4` | 262K | | | | | | $2 | $6 |
|
|
41
|
+
| `runinfra/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.15 |
|
|
42
|
+
| `runinfra/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.10 | $0.40 |
|
|
43
|
+
|
|
44
|
+
## Advanced configuration
|
|
45
|
+
|
|
46
|
+
### Custom headers
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const agent = new Agent({
|
|
50
|
+
id: "custom-agent",
|
|
51
|
+
name: "custom-agent",
|
|
52
|
+
model: {
|
|
53
|
+
url: "https://api.runinfra.ai/v1",
|
|
54
|
+
id: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4",
|
|
55
|
+
apiKey: process.env.RUNINFRA_GATEWAY_KEY,
|
|
56
|
+
headers: {
|
|
57
|
+
"X-Custom-Header": "value"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Dynamic model selection
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const agent = new Agent({
|
|
67
|
+
id: "dynamic-agent",
|
|
68
|
+
name: "Dynamic Agent",
|
|
69
|
+
model: ({ requestContext }) => {
|
|
70
|
+
const useAdvanced = requestContext.task === "complex";
|
|
71
|
+
return useAdvanced
|
|
72
|
+
? "runinfra/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"
|
|
73
|
+
: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# SCNet Token Plan
|
|
4
|
+
|
|
5
|
+
Access 13 SCNet Token Plan models through Mastra's model router. Authentication is handled automatically using the `SCNET_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [SCNet Token Plan documentation](https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/plans/token-plan.html).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
SCNET_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "scnet-token-plan/DeepSeek-V3.2"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [SCNet Token Plan documentation](https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/plans/token-plan.html) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `scnet-token-plan/DeepSeek-V3.2` | 128K | | | | | | — | — |
|
|
40
|
+
| `scnet-token-plan/DeepSeek-V4-Flash` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `scnet-token-plan/GLM-5` | 205K | | | | | | — | — |
|
|
42
|
+
| `scnet-token-plan/GLM-5.1` | 200K | | | | | | — | — |
|
|
43
|
+
| `scnet-token-plan/GLM-5.2` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `scnet-token-plan/Kimi-K2.5` | 262K | | | | | | — | — |
|
|
45
|
+
| `scnet-token-plan/Kimi-K2.6` | 262K | | | | | | — | — |
|
|
46
|
+
| `scnet-token-plan/Kimi-K2.7-Code` | 262K | | | | | | — | — |
|
|
47
|
+
| `scnet-token-plan/Kimi-K3` | 1.0M | | | | | | — | — |
|
|
48
|
+
| `scnet-token-plan/MiMo-V2.5-Pro` | 1.0M | | | | | | — | — |
|
|
49
|
+
| `scnet-token-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
|
|
50
|
+
| `scnet-token-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
|
|
51
|
+
| `scnet-token-plan/MiniMax-M3` | 512K | | | | | | — | — |
|
|
52
|
+
|
|
53
|
+
## Advanced configuration
|
|
54
|
+
|
|
55
|
+
### Custom headers
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
const agent = new Agent({
|
|
59
|
+
id: "custom-agent",
|
|
60
|
+
name: "custom-agent",
|
|
61
|
+
model: {
|
|
62
|
+
url: "https://api.scnet.cn/api/llm/v1",
|
|
63
|
+
id: "scnet-token-plan/DeepSeek-V3.2",
|
|
64
|
+
apiKey: process.env.SCNET_API_KEY,
|
|
65
|
+
headers: {
|
|
66
|
+
"X-Custom-Header": "value"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Dynamic model selection
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
const agent = new Agent({
|
|
76
|
+
id: "dynamic-agent",
|
|
77
|
+
name: "Dynamic Agent",
|
|
78
|
+
model: ({ requestContext }) => {
|
|
79
|
+
const useAdvanced = requestContext.task === "complex";
|
|
80
|
+
return useAdvanced
|
|
81
|
+
? "scnet-token-plan/MiniMax-M3"
|
|
82
|
+
: "scnet-token-plan/DeepSeek-V3.2";
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Together AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 36 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
8
8
|
|
|
@@ -37,6 +37,7 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| `togetherai/deepcogito/cogito-v2-1-671b` | 164K | | | | | | $1 | $1 |
|
|
38
38
|
| `togetherai/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
39
39
|
| `togetherai/deepseek-ai/DeepSeek-V4-Pro` | 512K | | | | | | $2 | $3 |
|
|
40
|
+
| `togetherai/deepseek-ai/DeepSeek-V4-Pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
40
41
|
| `togetherai/google/gemma-3n-E4B-it` | 33K | | | | | | $0.06 | $0.12 |
|
|
41
42
|
| `togetherai/google/gemma-4-31B-it` | 262K | | | | | | $0.39 | $0.97 |
|
|
42
43
|
| `togetherai/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 9 Umans AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_CODING_PLAN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI Coding Plan documentation](https://app.umans.ai/offers/code/docs).
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| --------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `umans-ai-coding-plan/umans-coder` | 262K | | | | | | — | — |
|
|
40
40
|
| `umans-ai-coding-plan/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `umans-ai-coding-plan/umans-deepseek-v4-pro-0813` | 1.0M | | | | | | — | — |
|
|
41
42
|
| `umans-ai-coding-plan/umans-flash` | 262K | | | | | | — | — |
|
|
42
43
|
| `umans-ai-coding-plan/umans-glm-5.1` | 205K | | | | | | — | — |
|
|
43
44
|
| `umans-ai-coding-plan/umans-glm-5.2` | 406K | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 8 Umans AI models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI documentation](https://app.umans.ai/offers/code/docs/orgs).
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `umans-ai/umans-coder` | 262K | | | | | | $0.95 | $4 |
|
|
40
40
|
| `umans-ai/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `umans-ai/umans-deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
41
42
|
| `umans-ai/umans-flash` | 262K | | | | | | $0.15 | $1 |
|
|
42
43
|
| `umans-ai/umans-glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
43
44
|
| `umans-ai/umans-glm-5.2` | 406K | | | | | | $1 | $4 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vivgrid
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 20 Vivgrid models through Mastra's model router. Authentication is handled automatically using the `VIVGRID_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Vivgrid documentation](https://docs.vivgrid.com/models).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `vivgrid/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
43
43
|
| `vivgrid/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
44
44
|
| `vivgrid/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
+
| `vivgrid/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
45
46
|
| `vivgrid/gpt-5-mini` | 272K | | | | | | $0.25 | $2 |
|
|
46
47
|
| `vivgrid/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
47
48
|
| `vivgrid/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# xAI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 12 xAI models through Mastra's model router. Authentication is handled automatically using the `XAI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [xAI documentation](https://docs.x.ai/docs/models).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
43
43
|
| `xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
44
44
|
| `xai/grok-imagine-image` | 8K | | | | | | — | — |
|
|
45
|
+
| `xai/grok-imagine-image-2.0` | 8K | | | | | | — | — |
|
|
45
46
|
| `xai/grok-imagine-image-quality` | 8K | | | | | | — | — |
|
|
46
47
|
| `xai/grok-imagine-video` | 1K | | | | | | — | — |
|
|
47
48
|
| `xai/grok-imagine-video-1.5` | 1K | | | | | | — | — |
|
|
@@ -24,7 +24,9 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
24
24
|
- [Alibaba Token Plan](https://mastra.ai/models/providers/alibaba-token-plan)
|
|
25
25
|
- [Alibaba Token Plan (China)](https://mastra.ai/models/providers/alibaba-token-plan-cn)
|
|
26
26
|
- [Ambient](https://mastra.ai/models/providers/ambient)
|
|
27
|
+
- [AMD](https://mastra.ai/models/providers/amd)
|
|
27
28
|
- [AnyAPI](https://mastra.ai/models/providers/anyapi)
|
|
29
|
+
- [Arcee](https://mastra.ai/models/providers/arcee)
|
|
28
30
|
- [Atomic Chat](https://mastra.ai/models/providers/atomic-chat)
|
|
29
31
|
- [Auriko](https://mastra.ai/models/providers/auriko)
|
|
30
32
|
- [Bailing](https://mastra.ai/models/providers/bailing)
|
|
@@ -73,6 +75,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
73
75
|
- [InferX](https://mastra.ai/models/providers/inferx)
|
|
74
76
|
- [Infomaniak](https://mastra.ai/models/providers/infomaniak)
|
|
75
77
|
- [IO.NET](https://mastra.ai/models/providers/io-net)
|
|
78
|
+
- [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno)
|
|
76
79
|
- [Jiekou.AI](https://mastra.ai/models/providers/jiekou)
|
|
77
80
|
- [Kenari](https://mastra.ai/models/providers/kenari)
|
|
78
81
|
- [Kilo Gateway](https://mastra.ai/models/providers/kilo)
|
|
@@ -126,9 +129,11 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
126
129
|
- [Regolo AI](https://mastra.ai/models/providers/regolo-ai)
|
|
127
130
|
- [Requesty](https://mastra.ai/models/providers/requesty)
|
|
128
131
|
- [routing.run](https://mastra.ai/models/providers/routing-run)
|
|
132
|
+
- [RunInfra](https://mastra.ai/models/providers/runinfra)
|
|
129
133
|
- [Sakana AI](https://mastra.ai/models/providers/sakana)
|
|
130
134
|
- [Sarvam AI](https://mastra.ai/models/providers/sarvam)
|
|
131
135
|
- [Scaleway](https://mastra.ai/models/providers/scaleway)
|
|
136
|
+
- [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan)
|
|
132
137
|
- [SCX.ai](https://mastra.ai/models/providers/scx)
|
|
133
138
|
- [SiliconFlow](https://mastra.ai/models/providers/siliconflow)
|
|
134
139
|
- [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn)
|
|
@@ -224,9 +224,9 @@ Use this callback to enforce local policy or inspect the permission title. It ca
|
|
|
224
224
|
|
|
225
225
|
## Related
|
|
226
226
|
|
|
227
|
-
- [Agent Client Protocol docs](https://mastra.ai/docs/
|
|
227
|
+
- [Agent Client Protocol docs](https://mastra.ai/docs/connections/acp)
|
|
228
228
|
- [createACPTool() reference](https://mastra.ai/reference/acp/create-acp-tool)
|
|
229
229
|
- [Agent reference](https://mastra.ai/reference/agents/agent)
|
|
230
|
-
- [Subagents](https://mastra.ai/docs/
|
|
230
|
+
- [Subagents](https://mastra.ai/docs/subagents)
|
|
231
231
|
- [Agent Client Protocol introduction](https://agentclientprotocol.com/overview/introduction)
|
|
232
232
|
- [Agent Client Protocol schema](https://agentclientprotocol.com/protocol/schema)
|
|
@@ -154,7 +154,7 @@ Return a fully custom `Client` implementation when you need to change the standa
|
|
|
154
154
|
|
|
155
155
|
## Related
|
|
156
156
|
|
|
157
|
-
- [Agent Client Protocol docs](https://mastra.ai/docs/
|
|
157
|
+
- [Agent Client Protocol docs](https://mastra.ai/docs/connections/acp)
|
|
158
158
|
- [AcpAgent class reference](https://mastra.ai/reference/acp/acp-agent)
|
|
159
159
|
- [Tool reference](https://mastra.ai/reference/tools/create-tool)
|
|
160
160
|
- [Agent Client Protocol introduction](https://agentclientprotocol.com/overview/introduction)
|
|
@@ -497,5 +497,5 @@ await controller.stopIntervals()
|
|
|
497
497
|
- [AgentController guide](https://mastra.ai/docs/harness/agent-controller)
|
|
498
498
|
- [Session reference](https://mastra.ai/reference/agent-controller/session)
|
|
499
499
|
- [Agents](https://mastra.ai/docs/agents/overview)
|
|
500
|
-
- [Sandbox](https://mastra.ai/docs/
|
|
501
|
-
- [Channels](https://mastra.ai/docs/
|
|
500
|
+
- [Sandbox](https://mastra.ai/docs/sandbox/overview)
|
|
501
|
+
- [Channels](https://mastra.ai/docs/channels)
|
|
@@ -387,7 +387,7 @@ const result = await agent.sendNotificationSignal(
|
|
|
387
387
|
|
|
388
388
|
Returns `{ record: NotificationRecord, decision: NotificationDeliveryDecision, runId?: string, signal?: CreatedAgentSignal, persisted?: Promise<void>, accepted?: Promise<SendAgentSignalAccepted> }`. `record` is the stored inbox record. `decision` is the delivery-policy result. `signal` and `runId` are present when ingress emits a signal immediately, including the immediate summary emitted for active high-priority notifications. `persisted` is present when the emitted signal is persisted without waking an idle thread. `accepted` is present when a signal is emitted and resolves at decision-time, once Mastra decides what to do with it: `{ action: 'wake', runId, output }` when this process runs the agent (it started or won the lease to start the run), `{ action: 'deliver', runId }` when the signal is forwarded onto an existing run, or `{ action: 'persist' }` / `{ action: 'discard' }` when nothing ran. `runId` on the accepted result is present only on `wake` and `deliver`. On the `wake` action, `output` is the agent stream for in-process consumption.
|
|
389
389
|
|
|
390
|
-
Default delivery is priority-aware. `urgent` notifications deliver immediately. `high` notifications deliver immediately when the thread is idle. When the thread is active, Mastra emits a summary immediately and keeps `deliverAt` for later full delivery when the thread is idle. `medium` notifications deliver immediately when idle and batch into summaries when active. `low` notifications batch into summaries in both active and idle threads. Idle low-priority summaries reach subscribers without waking the model loop. For the full flow, visit [Signals](https://mastra.ai/docs/
|
|
390
|
+
Default delivery is priority-aware. `urgent` notifications deliver immediately. `high` notifications deliver immediately when the thread is idle. When the thread is active, Mastra emits a summary immediately and keeps `deliverAt` for later full delivery when the thread is idle. `medium` notifications deliver immediately when idle and batch into summaries when active. `low` notifications batch into summaries in both active and idle threads. Idle low-priority summaries reach subscribers without waking the model loop. For the full flow, visit [Signals](https://mastra.ai/docs/harness/signals).
|
|
391
391
|
|
|
392
392
|
Configure `notifications.deliveryPolicy` on the agent when some notifications should wait for a different dispatch window or summary rollup:
|
|
393
393
|
|
|
@@ -564,7 +564,7 @@ When you register the [`MastraEditor`](https://mastra.ai/reference/editor/mastra
|
|
|
564
564
|
|
|
565
565
|
**editor** (`false | { instructions?: boolean; tools?: boolean | { description?: boolean } }`): Omit to allow editing instructions and tools. Set to false to lock the agent. Set instructions: true to allow instruction edits. Set tools: true to allow tool membership and description edits, or tools: { description: true } to allow only description edits.
|
|
566
566
|
|
|
567
|
-
The agent's `id`, `name`, and `model` always come from code and can't be overridden through Editor. See [Editor](https://mastra.ai/docs/editor
|
|
567
|
+
The agent's `id`, `name`, and `model` always come from code and can't be overridden through Editor. See [Editor](https://mastra.ai/docs/studio/editor) for usage.
|
|
568
568
|
|
|
569
569
|
## Returns
|
|
570
570
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Added in:** `@mastra/core@1.22.0`
|
|
6
6
|
|
|
7
|
-
Channels connect agents to messaging platforms. Configure them via the `channels` property on the `Agent` constructor. The object you pass is a `ChannelConfig`. See the [Channels overview](https://mastra.ai/docs/
|
|
7
|
+
Channels connect agents to messaging platforms. Configure them via the `channels` property on the `Agent` constructor. The object you pass is a `ChannelConfig`. See the [Channels overview](https://mastra.ai/docs/channels) for concepts and platform setup instructions.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -382,6 +382,6 @@ type InlineLinkEntry =
|
|
|
382
382
|
|
|
383
383
|
## Related
|
|
384
384
|
|
|
385
|
-
- [Channels overview](https://mastra.ai/docs/
|
|
385
|
+
- [Channels overview](https://mastra.ai/docs/channels): Concepts, quickstart, and platform setup
|
|
386
386
|
- [Agent class](https://mastra.ai/reference/agents/agent): Constructor parameters and methods
|
|
387
387
|
- [Chat SDK adapters](https://chat-sdk.dev/adapters): Adapter configuration and platform setup
|
|
@@ -74,7 +74,7 @@ createSkill({ name: '', description: 'test', instructions: 'test' })
|
|
|
74
74
|
|
|
75
75
|
## Related
|
|
76
76
|
|
|
77
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
78
|
-
- [Workspace skills](https://mastra.ai/docs/
|
|
77
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
78
|
+
- [Workspace skills](https://mastra.ai/docs/sandbox/skills)
|
|
79
79
|
- [`.getSkill()` reference](https://mastra.ai/reference/agents/getSkill)
|
|
80
80
|
- [`.listSkills()` reference](https://mastra.ai/reference/agents/listSkills)
|
|
@@ -55,6 +55,6 @@ When both agent-level skills and workspace skills are configured, `.getSkill()`
|
|
|
55
55
|
|
|
56
56
|
## Related
|
|
57
57
|
|
|
58
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
58
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
59
59
|
- [`.listSkills()` reference](https://mastra.ai/reference/agents/listSkills)
|
|
60
60
|
- [`createSkill()` reference](https://mastra.ai/reference/agents/createSkill)
|
|
@@ -50,6 +50,6 @@ When both agent-level skills and workspace skills are configured, `.listSkills()
|
|
|
50
50
|
|
|
51
51
|
## Related
|
|
52
52
|
|
|
53
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
53
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
54
54
|
- [`.getSkill()` reference](https://mastra.ai/reference/agents/getSkill)
|
|
55
55
|
- [`createSkill()` reference](https://mastra.ai/reference/agents/createSkill)
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**Added in:** `@mastra/core@1.43.0`
|
|
6
6
|
|
|
7
|
-
The `.listSuspendedRuns()` method lists suspended agent runs from workflow snapshot storage: runs waiting on a tool call requiring [approval](https://mastra.ai/docs/agents/
|
|
7
|
+
The `.listSuspendedRuns()` method lists suspended agent runs from workflow snapshot storage: runs waiting on a tool call requiring [approval](https://mastra.ai/docs/agents/human-in-the-loop), or on a tool that called `suspend()`. Because discovery is backed by storage rather than in-memory state, it works after a server restart and across multiple server instances.
|
|
8
8
|
|
|
9
|
-
Pass the returned `runId` to [`resumeStream()`](https://mastra.ai/docs/agents/
|
|
9
|
+
Pass the returned `runId` to [`resumeStream()`](https://mastra.ai/docs/agents/human-in-the-loop), `approveToolCall()`, or `declineToolCall()` to continue the run.
|
|
10
10
|
|
|
11
11
|
The filter contract mirrors the workflow run listing APIs (`listWorkflowRuns`), plus the agent-level `threadId` filter.
|
|
12
12
|
|
|
@@ -83,11 +83,11 @@ interface AgentRunToolCall {
|
|
|
83
83
|
|
|
84
84
|
## Discovery scope
|
|
85
85
|
|
|
86
|
-
Results are scoped to runs started by the agent you call `listSuspendedRuns()` on: snapshots persist the owning agent's id, so runs started by other agents on the same Mastra instance aren't returned. In [supervisor setups](https://mastra.ai/docs/agents/
|
|
86
|
+
Results are scoped to runs started by the agent you call `listSuspendedRuns()` on: snapshots persist the owning agent's id, so runs started by other agents on the same Mastra instance aren't returned. In [supervisor setups](https://mastra.ai/docs/agents/human-in-the-loop) the supervisor sees its outer run (the one to resume), while a subagent's inner run is only visible from the subagent itself. Filter by `threadId` and `resourceId` to scope results to one conversation.
|
|
87
87
|
|
|
88
|
-
Run snapshots are only persisted while a run is waiting on input and are deleted when it finishes, so suspended runs are the only runs discoverable from storage. Suspended runs only survive restarts when the Mastra instance has a persistent [storage provider](https://mastra.ai/docs/storage
|
|
88
|
+
Run snapshots are only persisted while a run is waiting on input and are deleted when it finishes, so suspended runs are the only runs discoverable from storage. Suspended runs only survive restarts when the Mastra instance has a persistent [storage provider](https://mastra.ai/docs/storage) configured. With the default in-memory store, snapshots are lost on restart.
|
|
89
89
|
|
|
90
90
|
## Related
|
|
91
91
|
|
|
92
|
-
- [Agent approval](https://mastra.ai/docs/agents/
|
|
93
|
-
- [Storage](https://mastra.ai/docs/storage
|
|
92
|
+
- [Agent approval](https://mastra.ai/docs/agents/human-in-the-loop)
|
|
93
|
+
- [Storage](https://mastra.ai/docs/storage)
|
|
@@ -30,5 +30,5 @@ await agent.listTools({
|
|
|
30
30
|
|
|
31
31
|
## Related
|
|
32
32
|
|
|
33
|
-
- [Using tools with agents](https://mastra.ai/docs/agents/
|
|
34
|
-
- [Creating tools](https://mastra.ai/docs/mcp
|
|
33
|
+
- [Using tools with agents](https://mastra.ai/docs/agents/tools)
|
|
34
|
+
- [Creating tools](https://mastra.ai/docs/connections/mcp)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The `.network()` method enables multi-agent collaboration and routing. This method accepts messages and optional execution options.
|
|
6
6
|
|
|
7
|
-
> **Deprecated:** The `.network()` primitive has been deprecated and will be removed in a future major release. Use [supervisor agents](https://mastra.ai/docs/
|
|
7
|
+
> **Deprecated:** The `.network()` primitive has been deprecated and will be removed in a future major release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# handleNetworkStream()
|
|
4
4
|
|
|
5
|
-
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/
|
|
5
|
+
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
6
6
|
|
|
7
7
|
Framework-agnostic handler for streaming network execution in AI SDK-compatible format. Use this function directly when you need to handle network streaming outside Hono or Mastra's own [apiRoutes](https://mastra.ai/docs/server/custom-api-routes) feature.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# networkRoute()
|
|
4
4
|
|
|
5
|
-
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/
|
|
5
|
+
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
6
6
|
|
|
7
7
|
Creates a network route handler for streaming network execution using the AI SDK format. This function registers an HTTP `POST` endpoint that accepts messages, executes an agent network, and streams the response back to the client in AI SDK-compatible format. Agent networks allow a routing agent to delegate tasks to other agents. You have to use it inside a [custom API route](https://mastra.ai/docs/server/custom-api-routes).
|
|
8
8
|
|