@mastra/mcp-docs-server 1.1.8 → 1.1.9-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/adding-voice.md +4 -4
- package/.docs/docs/agents/agent-approval.md +3 -3
- package/.docs/docs/agents/agent-memory.md +3 -3
- package/.docs/docs/agents/guardrails.md +3 -3
- package/.docs/docs/agents/network-approval.md +5 -2
- package/.docs/docs/agents/networks.md +2 -2
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/processors.md +42 -24
- package/.docs/docs/agents/structured-output.md +2 -2
- package/.docs/docs/agents/supervisor-agents.md +3 -3
- package/.docs/docs/agents/using-tools.md +3 -3
- package/.docs/docs/build-with-ai/mcp-docs-server.md +5 -5
- package/.docs/docs/build-with-ai/skills.md +2 -2
- package/.docs/docs/community/contributing-templates.md +1 -1
- package/.docs/docs/community/discord.md +3 -3
- package/.docs/docs/community/licensing.md +2 -2
- package/.docs/docs/deployment/cloud-providers.md +2 -2
- package/.docs/docs/deployment/mastra-server.md +2 -2
- package/.docs/docs/deployment/monorepo.md +1 -1
- package/.docs/docs/deployment/overview.md +3 -3
- package/.docs/docs/deployment/studio.md +3 -3
- package/.docs/docs/deployment/web-framework.md +2 -2
- package/.docs/docs/deployment/workflow-runners.md +1 -1
- package/.docs/docs/evals/built-in-scorers.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +6 -6
- package/.docs/docs/evals/overview.md +2 -2
- package/.docs/docs/evals/running-in-ci.md +6 -6
- package/.docs/docs/getting-started/build-with-ai.md +3 -3
- package/.docs/docs/getting-started/manual-install.md +1 -1
- package/.docs/docs/getting-started/project-structure.md +2 -2
- package/.docs/docs/index.md +63 -17
- package/.docs/docs/mastra-cloud/deployment.md +1 -1
- package/.docs/docs/mastra-cloud/studio.md +1 -1
- package/.docs/docs/mcp/overview.md +1 -1
- package/.docs/docs/mcp/publishing-mcp-server.md +4 -4
- package/.docs/docs/memory/memory-processors.md +9 -9
- package/.docs/docs/memory/message-history.md +4 -4
- package/.docs/docs/memory/observational-memory.md +11 -7
- package/.docs/docs/memory/semantic-recall.md +9 -9
- package/.docs/docs/memory/storage.md +1 -1
- package/.docs/docs/memory/working-memory.md +20 -20
- package/.docs/docs/observability/datasets/overview.md +1 -1
- package/.docs/docs/observability/datasets/running-experiments.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/overview.md +5 -5
- package/.docs/docs/observability/tracing/bridges/otel.md +9 -9
- package/.docs/docs/observability/tracing/exporters/arize.md +3 -3
- package/.docs/docs/observability/tracing/exporters/braintrust.md +1 -1
- package/.docs/docs/observability/tracing/exporters/cloud.md +2 -2
- package/.docs/docs/observability/tracing/exporters/datadog.md +3 -3
- package/.docs/docs/observability/tracing/exporters/default.md +8 -8
- package/.docs/docs/observability/tracing/exporters/laminar.md +1 -1
- package/.docs/docs/observability/tracing/exporters/langfuse.md +3 -3
- package/.docs/docs/observability/tracing/exporters/langsmith.md +4 -4
- package/.docs/docs/observability/tracing/exporters/otel.md +8 -8
- package/.docs/docs/observability/tracing/exporters/posthog.md +2 -2
- package/.docs/docs/observability/tracing/exporters/sentry.md +4 -4
- package/.docs/docs/observability/tracing/overview.md +24 -24
- package/.docs/docs/observability/tracing/processors/sensitive-data-filter.md +13 -13
- package/.docs/docs/rag/chunking-and-embedding.md +5 -5
- package/.docs/docs/rag/overview.md +2 -2
- package/.docs/docs/rag/retrieval.md +4 -4
- package/.docs/docs/rag/vector-databases.md +13 -13
- package/.docs/docs/server/auth/auth0.md +2 -2
- package/.docs/docs/server/auth/clerk.md +1 -1
- package/.docs/docs/server/auth/composite-auth.md +9 -9
- package/.docs/docs/server/auth/custom-auth-provider.md +12 -12
- package/.docs/docs/server/auth/firebase.md +3 -3
- package/.docs/docs/server/auth/jwt.md +1 -1
- package/.docs/docs/server/auth/simple-auth.md +9 -9
- package/.docs/docs/server/auth/supabase.md +1 -1
- package/.docs/docs/server/auth/workos.md +1 -1
- package/.docs/docs/server/auth.md +2 -2
- package/.docs/docs/server/custom-adapters.md +7 -7
- 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 +2 -2
- package/.docs/docs/server/request-context.md +2 -2
- package/.docs/docs/server/server-adapters.md +3 -3
- package/.docs/docs/streaming/events.md +2 -2
- package/.docs/docs/streaming/overview.md +2 -2
- package/.docs/docs/streaming/tool-streaming.md +46 -32
- package/.docs/docs/streaming/workflow-streaming.md +1 -1
- package/.docs/docs/voice/overview.md +3 -3
- package/.docs/docs/voice/speech-to-speech.md +1 -1
- package/.docs/docs/voice/speech-to-text.md +2 -2
- package/.docs/docs/voice/text-to-speech.md +2 -2
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/control-flow.md +45 -3
- package/.docs/docs/workflows/error-handling.md +4 -4
- package/.docs/docs/workflows/overview.md +3 -3
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/docs/workflows/time-travel.md +3 -3
- package/.docs/docs/workflows/workflow-state.md +1 -1
- package/.docs/docs/workspace/filesystem.md +3 -3
- package/.docs/docs/workspace/overview.md +53 -8
- package/.docs/docs/workspace/sandbox.md +72 -13
- package/.docs/docs/workspace/search.md +1 -1
- package/.docs/docs/workspace/skills.md +4 -4
- package/.docs/guides/build-your-ui/ai-sdk-ui.md +2 -2
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit.md +2 -2
- package/.docs/guides/deployment/digital-ocean.md +1 -1
- package/.docs/guides/deployment/inngest.md +4 -4
- package/.docs/guides/getting-started/astro.md +1 -1
- package/.docs/guides/getting-started/electron.md +1 -1
- package/.docs/guides/getting-started/next-js.md +1 -1
- package/.docs/guides/getting-started/vite-react.md +1 -1
- package/.docs/guides/guide/ai-recruiter.md +4 -4
- package/.docs/guides/guide/chef-michel.md +4 -4
- package/.docs/guides/guide/code-review-bot.md +3 -3
- package/.docs/guides/guide/dev-assistant.md +5 -5
- package/.docs/guides/guide/docs-manager.md +3 -3
- package/.docs/guides/guide/github-actions-pr-description.md +4 -4
- package/.docs/guides/guide/notes-mcp-server.md +4 -4
- package/.docs/guides/guide/research-assistant.md +4 -4
- package/.docs/guides/guide/research-coordinator.md +1 -1
- package/.docs/guides/guide/stock-agent.md +6 -6
- package/.docs/guides/guide/web-search.md +2 -2
- package/.docs/guides/guide/whatsapp-chat-bot.md +1 -1
- package/.docs/guides/migrations/agentnetwork.md +1 -1
- package/.docs/guides/migrations/ai-sdk-v4-to-v5.md +3 -3
- package/.docs/guides/migrations/network-to-supervisor.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/client.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/deployment.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/evals.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/mastra.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/memory.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/overview.md +3 -3
- package/.docs/guides/migrations/upgrade-to-v1/storage.md +4 -4
- package/.docs/guides/migrations/upgrade-to-v1/tools.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/tracing.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/vectors.md +3 -3
- package/.docs/guides/migrations/upgrade-to-v1/voice.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/workflows.md +6 -6
- package/.docs/guides/migrations/vnext-to-standard-apis.md +3 -3
- package/.docs/models/embeddings.md +4 -4
- package/.docs/models/gateways/custom-gateways.md +4 -4
- package/.docs/models/gateways/netlify.md +2 -3
- package/.docs/models/gateways/openrouter.md +9 -2
- package/.docs/models/gateways/vercel.md +11 -2
- package/.docs/models/gateways.md +2 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +3 -3
- package/.docs/models/providers/abacus.md +24 -14
- package/.docs/models/providers/aihubmix.md +10 -5
- package/.docs/models/providers/alibaba-cn.md +83 -74
- package/.docs/models/providers/alibaba-coding-plan-cn.md +78 -0
- package/.docs/models/providers/alibaba-coding-plan.md +78 -0
- package/.docs/models/providers/alibaba.md +3 -3
- package/.docs/models/providers/anthropic.md +4 -4
- package/.docs/models/providers/bailing.md +3 -3
- package/.docs/models/providers/baseten.md +3 -3
- package/.docs/models/providers/berget.md +3 -3
- package/.docs/models/providers/cerebras.md +4 -4
- package/.docs/models/providers/chutes.md +7 -6
- package/.docs/models/providers/clarifai.md +81 -0
- package/.docs/models/providers/cloudferro-sherlock.md +8 -7
- package/.docs/models/providers/cloudflare-workers-ai.md +6 -5
- package/.docs/models/providers/cortecs.md +10 -8
- package/.docs/models/providers/deepinfra.md +11 -6
- package/.docs/models/providers/deepseek.md +4 -4
- package/.docs/models/providers/drun.md +73 -0
- package/.docs/models/providers/evroc.md +3 -3
- package/.docs/models/providers/fastrouter.md +3 -3
- package/.docs/models/providers/fireworks-ai.md +3 -3
- package/.docs/models/providers/firmware.md +31 -23
- package/.docs/models/providers/friendli.md +3 -3
- package/.docs/models/providers/github-models.md +3 -3
- package/.docs/models/providers/google.md +7 -5
- package/.docs/models/providers/groq.md +4 -4
- package/.docs/models/providers/helicone.md +3 -3
- package/.docs/models/providers/huggingface.md +3 -3
- package/.docs/models/providers/iflowcn.md +3 -3
- package/.docs/models/providers/inception.md +7 -5
- package/.docs/models/providers/inference.md +3 -3
- package/.docs/models/providers/io-net.md +3 -3
- package/.docs/models/providers/jiekou.md +3 -3
- package/.docs/models/providers/kilo.md +6 -4
- package/.docs/models/providers/kimi-for-coding.md +4 -4
- package/.docs/models/providers/kuae-cloud-coding-plan.md +3 -3
- package/.docs/models/providers/llama.md +3 -3
- package/.docs/models/providers/lmstudio.md +3 -3
- package/.docs/models/providers/lucidquery.md +3 -3
- package/.docs/models/providers/meganova.md +3 -3
- package/.docs/models/providers/minimax-cn-coding-plan.md +4 -4
- package/.docs/models/providers/minimax-cn.md +4 -4
- package/.docs/models/providers/minimax-coding-plan.md +4 -4
- package/.docs/models/providers/minimax.md +4 -4
- package/.docs/models/providers/mistral.md +4 -4
- package/.docs/models/providers/moark.md +3 -3
- package/.docs/models/providers/modelscope.md +3 -3
- package/.docs/models/providers/moonshotai-cn.md +3 -3
- package/.docs/models/providers/moonshotai.md +3 -3
- package/.docs/models/providers/morph.md +3 -3
- package/.docs/models/providers/nano-gpt.md +523 -42
- package/.docs/models/providers/nebius.md +37 -37
- package/.docs/models/providers/nova.md +3 -3
- package/.docs/models/providers/novita-ai.md +3 -3
- package/.docs/models/providers/nvidia.md +7 -5
- package/.docs/models/providers/ollama-cloud.md +4 -5
- package/.docs/models/providers/openai.md +7 -5
- package/.docs/models/providers/opencode-go.md +3 -3
- package/.docs/models/providers/opencode.md +39 -36
- package/.docs/models/providers/ovhcloud.md +3 -3
- package/.docs/models/providers/perplexity-agent.md +4 -4
- package/.docs/models/providers/perplexity.md +4 -4
- package/.docs/models/providers/poe.md +11 -5
- package/.docs/models/providers/privatemode-ai.md +3 -3
- package/.docs/models/providers/qihang-ai.md +3 -3
- package/.docs/models/providers/qiniu-ai.md +23 -8
- package/.docs/models/providers/requesty.md +20 -4
- package/.docs/models/providers/scaleway.md +3 -3
- package/.docs/models/providers/siliconflow-cn.md +10 -4
- package/.docs/models/providers/siliconflow.md +3 -3
- package/.docs/models/providers/stackit.md +3 -3
- package/.docs/models/providers/stepfun.md +3 -3
- package/.docs/models/providers/submodel.md +3 -3
- package/.docs/models/providers/synthetic.md +3 -3
- package/.docs/models/providers/togetherai.md +5 -7
- package/.docs/models/providers/upstage.md +3 -3
- package/.docs/models/providers/vivgrid.md +4 -4
- package/.docs/models/providers/vultr.md +3 -3
- package/.docs/models/providers/wandb.md +3 -3
- package/.docs/models/providers/xai.md +34 -31
- package/.docs/models/providers/xiaomi.md +4 -4
- package/.docs/models/providers/zai-coding-plan.md +3 -3
- package/.docs/models/providers/zai.md +3 -3
- package/.docs/models/providers/zenmux.md +7 -5
- package/.docs/models/providers/zhipuai-coding-plan.md +3 -3
- package/.docs/models/providers/zhipuai.md +3 -3
- package/.docs/models/providers.md +4 -0
- package/.docs/reference/agents/agent.md +3 -3
- package/.docs/reference/agents/generateLegacy.md +1 -1
- package/.docs/reference/agents/getDefaultGenerateOptions.md +1 -1
- package/.docs/reference/agents/getDefaultOptions.md +1 -1
- package/.docs/reference/agents/getDefaultStreamOptions.md +1 -1
- package/.docs/reference/agents/getDescription.md +1 -1
- package/.docs/reference/agents/network.md +5 -3
- package/.docs/reference/ai-sdk/handle-chat-stream.md +2 -0
- package/.docs/reference/ai-sdk/handle-network-stream.md +2 -0
- package/.docs/reference/ai-sdk/network-route.md +2 -0
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v5-messages.md +1 -1
- package/.docs/reference/auth/auth0.md +7 -7
- package/.docs/reference/auth/better-auth.md +2 -2
- package/.docs/reference/auth/clerk.md +1 -1
- package/.docs/reference/auth/firebase.md +5 -5
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/auth/supabase.md +1 -1
- package/.docs/reference/auth/workos.md +6 -6
- package/.docs/reference/cli/mastra.md +5 -5
- package/.docs/reference/client-js/agents.md +22 -22
- package/.docs/reference/client-js/error-handling.md +2 -2
- package/.docs/reference/client-js/logs.md +2 -2
- package/.docs/reference/client-js/mastra-client.md +2 -2
- package/.docs/reference/client-js/memory.md +6 -6
- package/.docs/reference/client-js/observability.md +4 -4
- package/.docs/reference/client-js/telemetry.md +1 -1
- package/.docs/reference/client-js/tools.md +3 -3
- package/.docs/reference/client-js/vectors.md +2 -2
- package/.docs/reference/client-js/workflows.md +12 -12
- package/.docs/reference/configuration.md +62 -6
- package/.docs/reference/core/getDeployer.md +1 -1
- package/.docs/reference/core/getGatewayById.md +1 -1
- package/.docs/reference/core/getLogger.md +1 -1
- package/.docs/reference/core/getMCPServer.md +2 -2
- package/.docs/reference/core/getMCPServerById.md +2 -2
- package/.docs/reference/core/getMemory.md +1 -1
- package/.docs/reference/core/getScorer.md +4 -4
- package/.docs/reference/core/getScorerById.md +2 -2
- package/.docs/reference/core/getServer.md +1 -1
- package/.docs/reference/core/getStorage.md +1 -1
- package/.docs/reference/core/getStoredAgentById.md +3 -3
- package/.docs/reference/core/getTelemetry.md +1 -1
- package/.docs/reference/core/getWorkflow.md +1 -1
- package/.docs/reference/core/listAgents.md +1 -1
- package/.docs/reference/core/listMCPServers.md +3 -3
- package/.docs/reference/core/listMemory.md +1 -1
- package/.docs/reference/core/listScorers.md +1 -1
- package/.docs/reference/core/listStoredAgents.md +3 -3
- package/.docs/reference/core/listVectors.md +1 -1
- package/.docs/reference/core/mastra-class.md +2 -2
- package/.docs/reference/core/mastra-model-gateway.md +11 -11
- package/.docs/reference/core/setLogger.md +1 -1
- package/.docs/reference/core/setStorage.md +1 -1
- package/.docs/reference/datasets/dataset.md +2 -2
- package/.docs/reference/datasets/datasets-manager.md +1 -1
- package/.docs/reference/datasets/get.md +2 -2
- package/.docs/reference/datasets/getDetails.md +1 -1
- package/.docs/reference/datasets/listItems.md +1 -1
- package/.docs/reference/deployer/vercel.md +1 -1
- package/.docs/reference/deployer.md +4 -4
- package/.docs/reference/evals/answer-relevancy.md +4 -4
- package/.docs/reference/evals/answer-similarity.md +3 -3
- package/.docs/reference/evals/bias.md +4 -4
- package/.docs/reference/evals/completeness.md +6 -6
- package/.docs/reference/evals/content-similarity.md +3 -3
- package/.docs/reference/evals/context-precision.md +9 -9
- package/.docs/reference/evals/context-relevance.md +7 -7
- package/.docs/reference/evals/create-scorer.md +7 -7
- package/.docs/reference/evals/faithfulness.md +3 -3
- package/.docs/reference/evals/hallucination.md +8 -14
- package/.docs/reference/evals/keyword-coverage.md +4 -4
- package/.docs/reference/evals/mastra-scorer.md +7 -7
- package/.docs/reference/evals/noise-sensitivity.md +11 -11
- package/.docs/reference/evals/prompt-alignment.md +5 -5
- package/.docs/reference/evals/run-evals.md +5 -5
- package/.docs/reference/evals/scorer-utils.md +17 -17
- package/.docs/reference/evals/textual-difference.md +4 -4
- package/.docs/reference/evals/tone-consistency.md +5 -5
- package/.docs/reference/evals/tool-call-accuracy.md +10 -10
- package/.docs/reference/evals/toxicity.md +3 -3
- package/.docs/reference/harness/harness-class.md +5 -3
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/memory/clone-utilities.md +7 -7
- package/.docs/reference/memory/cloneThread.md +5 -5
- package/.docs/reference/memory/createThread.md +1 -1
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/getThreadById.md +1 -1
- package/.docs/reference/memory/listThreads.md +3 -3
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/memory/observational-memory.md +8 -6
- package/.docs/reference/memory/recall.md +1 -1
- package/.docs/reference/observability/tracing/bridges/otel.md +6 -6
- package/.docs/reference/observability/tracing/configuration.md +17 -17
- package/.docs/reference/observability/tracing/exporters/arize.md +4 -4
- package/.docs/reference/observability/tracing/exporters/braintrust.md +3 -3
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +6 -6
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +4 -4
- package/.docs/reference/observability/tracing/exporters/datadog.md +4 -4
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +6 -6
- package/.docs/reference/observability/tracing/exporters/laminar.md +2 -2
- package/.docs/reference/observability/tracing/exporters/langfuse.md +4 -4
- package/.docs/reference/observability/tracing/exporters/langsmith.md +6 -6
- package/.docs/reference/observability/tracing/exporters/otel.md +12 -12
- package/.docs/reference/observability/tracing/exporters/posthog.md +3 -3
- package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
- package/.docs/reference/observability/tracing/instances.md +9 -9
- package/.docs/reference/observability/tracing/interfaces.md +39 -39
- package/.docs/reference/observability/tracing/processors/sensitive-data-filter.md +6 -6
- package/.docs/reference/observability/tracing/spans.md +15 -13
- package/.docs/reference/processors/message-history-processor.md +1 -1
- package/.docs/reference/processors/processor-interface.md +21 -17
- package/.docs/reference/processors/token-limiter-processor.md +2 -2
- package/.docs/reference/rag/chunk.md +2 -2
- package/.docs/reference/rag/database-config.md +8 -8
- package/.docs/reference/rag/document.md +11 -11
- package/.docs/reference/rag/embeddings.md +5 -5
- package/.docs/reference/rag/extract-params.md +8 -8
- package/.docs/reference/rag/graph-rag.md +4 -4
- package/.docs/reference/rag/metadata-filters.md +15 -15
- package/.docs/reference/rag/rerank.md +2 -2
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/server/create-route.md +2 -0
- package/.docs/reference/server/express-adapter.md +1 -1
- package/.docs/reference/server/fastify-adapter.md +1 -1
- package/.docs/reference/server/hono-adapter.md +1 -1
- package/.docs/reference/server/koa-adapter.md +2 -2
- package/.docs/reference/server/mastra-server.md +16 -16
- package/.docs/reference/server/register-api-route.md +7 -7
- package/.docs/reference/server/routes.md +1 -1
- package/.docs/reference/storage/cloudflare-d1.md +5 -5
- package/.docs/reference/storage/cloudflare.md +3 -3
- package/.docs/reference/storage/composite.md +1 -1
- package/.docs/reference/storage/convex.md +6 -6
- package/.docs/reference/storage/dynamodb.md +7 -7
- package/.docs/reference/storage/lance.md +5 -5
- package/.docs/reference/storage/libsql.md +1 -1
- package/.docs/reference/storage/mongodb.md +6 -6
- package/.docs/reference/storage/mssql.md +4 -4
- package/.docs/reference/storage/overview.md +2 -2
- package/.docs/reference/storage/postgresql.md +7 -7
- package/.docs/reference/storage/upstash.md +4 -4
- package/.docs/reference/streaming/ChunkType.md +13 -13
- package/.docs/reference/streaming/agents/MastraModelOutput.md +6 -6
- package/.docs/reference/streaming/agents/stream.md +2 -2
- package/.docs/reference/streaming/agents/streamLegacy.md +1 -1
- package/.docs/reference/streaming/workflows/observeStream.md +2 -2
- package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
- package/.docs/reference/streaming/workflows/stream.md +1 -1
- package/.docs/reference/templates/overview.md +4 -4
- package/.docs/reference/tools/create-tool.md +10 -10
- package/.docs/reference/tools/document-chunker-tool.md +4 -4
- package/.docs/reference/tools/graph-rag-tool.md +7 -7
- package/.docs/reference/tools/mcp-client.md +13 -13
- package/.docs/reference/tools/mcp-server.md +27 -27
- package/.docs/reference/tools/vector-query-tool.md +12 -12
- package/.docs/reference/vectors/astra.md +13 -13
- package/.docs/reference/vectors/chroma.md +18 -18
- package/.docs/reference/vectors/convex.md +15 -15
- package/.docs/reference/vectors/couchbase.md +21 -21
- package/.docs/reference/vectors/duckdb.md +17 -17
- package/.docs/reference/vectors/elasticsearch.md +14 -14
- package/.docs/reference/vectors/lance.md +22 -22
- package/.docs/reference/vectors/libsql.md +15 -15
- package/.docs/reference/vectors/mongodb.md +18 -18
- package/.docs/reference/vectors/opensearch.md +11 -11
- package/.docs/reference/vectors/pg.md +23 -21
- package/.docs/reference/vectors/pinecone.md +15 -15
- package/.docs/reference/vectors/qdrant.md +15 -15
- package/.docs/reference/vectors/s3vectors.md +22 -22
- package/.docs/reference/vectors/turbopuffer.md +14 -14
- package/.docs/reference/vectors/upstash.md +15 -15
- package/.docs/reference/vectors/vectorize.md +16 -16
- package/.docs/reference/voice/azure.md +12 -10
- package/.docs/reference/voice/cloudflare.md +9 -7
- package/.docs/reference/voice/composite-voice.md +5 -5
- package/.docs/reference/voice/deepgram.md +5 -5
- package/.docs/reference/voice/elevenlabs.md +7 -7
- package/.docs/reference/voice/google-gemini-live.md +22 -22
- package/.docs/reference/voice/google.md +12 -12
- package/.docs/reference/voice/mastra-voice.md +18 -18
- package/.docs/reference/voice/murf.md +8 -8
- package/.docs/reference/voice/openai-realtime.md +19 -17
- package/.docs/reference/voice/openai.md +12 -8
- package/.docs/reference/voice/playai.md +9 -7
- package/.docs/reference/voice/sarvam.md +8 -6
- package/.docs/reference/voice/speechify.md +11 -9
- package/.docs/reference/voice/voice.addInstructions.md +4 -4
- package/.docs/reference/voice/voice.addTools.md +3 -3
- package/.docs/reference/voice/voice.answer.md +2 -2
- package/.docs/reference/voice/voice.close.md +4 -4
- package/.docs/reference/voice/voice.connect.md +9 -7
- package/.docs/reference/voice/voice.events.md +4 -4
- package/.docs/reference/voice/voice.getSpeakers.md +4 -4
- package/.docs/reference/voice/voice.listen.md +17 -11
- package/.docs/reference/voice/voice.off.md +4 -4
- package/.docs/reference/voice/voice.on.md +5 -5
- package/.docs/reference/voice/voice.send.md +2 -2
- package/.docs/reference/voice/voice.speak.md +19 -9
- package/.docs/reference/voice/voice.updateConfig.md +4 -4
- package/.docs/reference/workflows/run-methods/startAsync.md +1 -1
- package/.docs/reference/workflows/run-methods/timeTravel.md +1 -1
- package/.docs/reference/workflows/run.md +3 -3
- package/.docs/reference/workflows/step.md +2 -2
- package/.docs/reference/workflows/workflow-methods/create-run.md +1 -1
- package/.docs/reference/workflows/workflow.md +1 -1
- package/.docs/reference/workspace/blaxel-sandbox.md +164 -0
- package/.docs/reference/workspace/daytona-sandbox.md +50 -141
- package/.docs/reference/workspace/e2b-sandbox.md +41 -77
- package/.docs/reference/workspace/filesystem.md +25 -11
- package/.docs/reference/workspace/gcs-filesystem.md +21 -1
- package/.docs/reference/workspace/local-filesystem.md +24 -10
- package/.docs/reference/workspace/local-sandbox.md +27 -102
- package/.docs/reference/workspace/process-manager.md +296 -0
- package/.docs/reference/workspace/s3-filesystem.md +21 -1
- package/.docs/reference/workspace/sandbox.md +9 -1
- package/.docs/reference/workspace/workspace-class.md +95 -27
- package/CHANGELOG.md +15 -0
- package/dist/tools/course.d.ts +7 -27
- package/dist/tools/course.d.ts.map +1 -1
- package/dist/tools/docs.d.ts +6 -18
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/embedded-docs.d.ts +12 -112
- package/dist/tools/embedded-docs.d.ts.map +1 -1
- package/dist/tools/migration.d.ts +6 -26
- package/dist/tools/migration.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Qiniu
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 91 Qiniu models through Mastra's model router. Authentication is handled automatically using the `QINIU_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Qiniu documentation](https://developer.qiniu.com/aitokenapi).
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
8
|
+
QINIU_API_KEY=your-api-key
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
@@ -60,6 +60,10 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `qiniu-ai/doubao-seed-1.6` | 256K | | | | | | — | — |
|
|
61
61
|
| `qiniu-ai/doubao-seed-1.6-flash` | 256K | | | | | | — | — |
|
|
62
62
|
| `qiniu-ai/doubao-seed-1.6-thinking` | 256K | | | | | | — | — |
|
|
63
|
+
| `qiniu-ai/doubao-seed-2.0-code` | 256K | | | | | | — | — |
|
|
64
|
+
| `qiniu-ai/doubao-seed-2.0-lite` | 256K | | | | | | — | — |
|
|
65
|
+
| `qiniu-ai/doubao-seed-2.0-mini` | 256K | | | | | | — | — |
|
|
66
|
+
| `qiniu-ai/doubao-seed-2.0-pro` | 256K | | | | | | — | — |
|
|
63
67
|
| `qiniu-ai/gemini-2.0-flash` | 1.0M | | | | | | — | — |
|
|
64
68
|
| `qiniu-ai/gemini-2.0-flash-lite` | 1.0M | | | | | | — | — |
|
|
65
69
|
| `qiniu-ai/gemini-2.5-flash` | 1.0M | | | | | | — | — |
|
|
@@ -76,12 +80,16 @@ for await (const chunk of stream) {
|
|
|
76
80
|
| `qiniu-ai/kimi-k2` | 128K | | | | | | — | — |
|
|
77
81
|
| `qiniu-ai/kling-v2-6` | 100.0M | | | | | | — | — |
|
|
78
82
|
| `qiniu-ai/meituan/longcat-flash-chat` | 131K | | | | | | — | — |
|
|
83
|
+
| `qiniu-ai/meituan/longcat-flash-lite` | 256K | | | | | | — | — |
|
|
79
84
|
| `qiniu-ai/mimo-v2-flash` | 256K | | | | | | — | — |
|
|
80
85
|
| `qiniu-ai/MiniMax-M1` | 1.0M | | | | | | — | — |
|
|
81
86
|
| `qiniu-ai/minimax/minimax-m2` | 200K | | | | | | — | — |
|
|
82
87
|
| `qiniu-ai/minimax/minimax-m2.1` | 205K | | | | | | — | — |
|
|
88
|
+
| `qiniu-ai/minimax/minimax-m2.5` | 205K | | | | | | — | — |
|
|
89
|
+
| `qiniu-ai/minimax/minimax-m2.5-highspeed` | 205K | | | | | | — | — |
|
|
83
90
|
| `qiniu-ai/moonshotai/kimi-k2-0905` | 256K | | | | | | — | — |
|
|
84
91
|
| `qiniu-ai/moonshotai/kimi-k2-thinking` | 256K | | | | | | — | — |
|
|
92
|
+
| `qiniu-ai/moonshotai/kimi-k2.5` | 256K | | | | | | — | — |
|
|
85
93
|
| `qiniu-ai/openai/gpt-5` | 400K | | | | | | — | — |
|
|
86
94
|
| `qiniu-ai/openai/gpt-5.2` | 400K | | | | | | — | — |
|
|
87
95
|
| `qiniu-ai/qwen-max-2025-01-25` | 128K | | | | | | — | — |
|
|
@@ -93,13 +101,18 @@ for await (const chunk of stream) {
|
|
|
93
101
|
| `qiniu-ai/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | — | — |
|
|
94
102
|
| `qiniu-ai/qwen3-235b-a22b-thinking-2507` | 262K | | | | | | — | — |
|
|
95
103
|
| `qiniu-ai/qwen3-30b-a3b` | 40K | | | | | | — | — |
|
|
104
|
+
| `qiniu-ai/qwen3-30b-a3b-instruct-2507` | 128K | | | | | | — | — |
|
|
105
|
+
| `qiniu-ai/qwen3-30b-a3b-thinking-2507` | 126K | | | | | | — | — |
|
|
96
106
|
| `qiniu-ai/qwen3-32b` | 40K | | | | | | — | — |
|
|
97
107
|
| `qiniu-ai/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | — | — |
|
|
98
108
|
| `qiniu-ai/qwen3-max` | 262K | | | | | | — | — |
|
|
99
109
|
| `qiniu-ai/qwen3-max-preview` | 256K | | | | | | — | — |
|
|
100
110
|
| `qiniu-ai/qwen3-next-80b-a3b-instruct` | 131K | | | | | | — | — |
|
|
101
111
|
| `qiniu-ai/qwen3-next-80b-a3b-thinking` | 131K | | | | | | — | — |
|
|
112
|
+
| `qiniu-ai/qwen3-vl-30b-a3b-thinking` | 128K | | | | | | — | — |
|
|
113
|
+
| `qiniu-ai/qwen3.5-397b-a17b` | 256K | | | | | | — | — |
|
|
102
114
|
| `qiniu-ai/stepfun-ai/gelab-zero-4b-preview` | 8K | | | | | | — | — |
|
|
115
|
+
| `qiniu-ai/stepfun/step-3.5-flash` | 64K | | | | | | — | — |
|
|
103
116
|
| `qiniu-ai/x-ai/grok-4-fast` | 2.0M | | | | | | — | — |
|
|
104
117
|
| `qiniu-ai/x-ai/grok-4-fast-non-reasoning` | 2.0M | | | | | | — | — |
|
|
105
118
|
| `qiniu-ai/x-ai/grok-4-fast-reasoning` | 2.0M | | | | | | — | — |
|
|
@@ -107,22 +120,24 @@ for await (const chunk of stream) {
|
|
|
107
120
|
| `qiniu-ai/x-ai/grok-4.1-fast-non-reasoning` | 2.0M | | | | | | — | — |
|
|
108
121
|
| `qiniu-ai/x-ai/grok-4.1-fast-reasoning` | 20.0M | | | | | | — | — |
|
|
109
122
|
| `qiniu-ai/x-ai/grok-code-fast-1` | 256K | | | | | | — | — |
|
|
123
|
+
| `qiniu-ai/xiaomi/mimo-v2-flash` | 256K | | | | | | — | — |
|
|
110
124
|
| `qiniu-ai/z-ai/autoglm-phone-9b` | 13K | | | | | | — | — |
|
|
111
125
|
| `qiniu-ai/z-ai/glm-4.6` | 200K | | | | | | — | — |
|
|
112
126
|
| `qiniu-ai/z-ai/glm-4.7` | 200K | | | | | | — | — |
|
|
127
|
+
| `qiniu-ai/z-ai/glm-5` | 200K | | | | | | — | — |
|
|
113
128
|
|
|
114
|
-
## Advanced
|
|
129
|
+
## Advanced configuration
|
|
115
130
|
|
|
116
|
-
### Custom
|
|
131
|
+
### Custom headers
|
|
117
132
|
|
|
118
133
|
```typescript
|
|
119
134
|
const agent = new Agent({
|
|
120
135
|
id: "custom-agent",
|
|
121
136
|
name: "custom-agent",
|
|
122
137
|
model: {
|
|
123
|
-
url: "https://api.qnaigc.com
|
|
138
|
+
url: "https://api.qnaigc.com/v1",
|
|
124
139
|
id: "qiniu-ai/MiniMax-M1",
|
|
125
|
-
apiKey: process.env.
|
|
140
|
+
apiKey: process.env.QINIU_API_KEY,
|
|
126
141
|
headers: {
|
|
127
142
|
"X-Custom-Header": "value"
|
|
128
143
|
}
|
|
@@ -130,7 +145,7 @@ const agent = new Agent({
|
|
|
130
145
|
});
|
|
131
146
|
```
|
|
132
147
|
|
|
133
|
-
### Dynamic
|
|
148
|
+
### Dynamic model selection
|
|
134
149
|
|
|
135
150
|
```typescript
|
|
136
151
|
const agent = new Agent({
|
|
@@ -139,7 +154,7 @@ const agent = new Agent({
|
|
|
139
154
|
model: ({ requestContext }) => {
|
|
140
155
|
const useAdvanced = requestContext.task === "complex";
|
|
141
156
|
return useAdvanced
|
|
142
|
-
? "qiniu-ai/z-ai/glm-
|
|
157
|
+
? "qiniu-ai/z-ai/glm-5"
|
|
143
158
|
: "qiniu-ai/MiniMax-M1";
|
|
144
159
|
}
|
|
145
160
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Requesty
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 36 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Requesty documentation](https://requesty.ai/solution/llm-routing/models).
|
|
6
6
|
|
|
@@ -49,15 +49,31 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `requesty/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
50
50
|
| `requesty/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
51
51
|
| `requesty/openai/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
52
|
+
| `requesty/openai/gpt-5-chat` | 400K | | | | | | $1 | $10 |
|
|
53
|
+
| `requesty/openai/gpt-5-codex` | 400K | | | | | | $1 | $10 |
|
|
54
|
+
| `requesty/openai/gpt-5-image` | 400K | | | | | | $5 | $10 |
|
|
52
55
|
| `requesty/openai/gpt-5-mini` | 128K | | | | | | $0.25 | $2 |
|
|
53
56
|
| `requesty/openai/gpt-5-nano` | 16K | | | | | | $0.05 | $0.40 |
|
|
57
|
+
| `requesty/openai/gpt-5-pro` | 400K | | | | | | $15 | $120 |
|
|
58
|
+
| `requesty/openai/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
59
|
+
| `requesty/openai/gpt-5.1-chat` | 128K | | | | | | $1 | $10 |
|
|
60
|
+
| `requesty/openai/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
61
|
+
| `requesty/openai/gpt-5.1-codex-max` | 400K | | | | | | $1 | $9 |
|
|
62
|
+
| `requesty/openai/gpt-5.1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
63
|
+
| `requesty/openai/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
64
|
+
| `requesty/openai/gpt-5.2-chat` | 128K | | | | | | $2 | $14 |
|
|
65
|
+
| `requesty/openai/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
66
|
+
| `requesty/openai/gpt-5.2-pro` | 400K | | | | | | $21 | $168 |
|
|
67
|
+
| `requesty/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
68
|
+
| `requesty/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
69
|
+
| `requesty/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
54
70
|
| `requesty/openai/o4-mini` | 200K | | | | | | $1 | $4 |
|
|
55
71
|
| `requesty/xai/grok-4` | 256K | | | | | | $3 | $15 |
|
|
56
72
|
| `requesty/xai/grok-4-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
57
73
|
|
|
58
|
-
## Advanced
|
|
74
|
+
## Advanced configuration
|
|
59
75
|
|
|
60
|
-
### Custom
|
|
76
|
+
### Custom headers
|
|
61
77
|
|
|
62
78
|
```typescript
|
|
63
79
|
const agent = new Agent({
|
|
@@ -74,7 +90,7 @@ const agent = new Agent({
|
|
|
74
90
|
});
|
|
75
91
|
```
|
|
76
92
|
|
|
77
|
-
### Dynamic
|
|
93
|
+
### Dynamic model selection
|
|
78
94
|
|
|
79
95
|
```typescript
|
|
80
96
|
const agent = new Agent({
|
|
@@ -49,9 +49,9 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `scaleway/voxtral-small-24b-2507` | 32K | | | | | | $0.15 | $0.35 |
|
|
50
50
|
| `scaleway/whisper-large-v3` | — | | | | | | $0.00 | — |
|
|
51
51
|
|
|
52
|
-
## Advanced
|
|
52
|
+
## Advanced configuration
|
|
53
53
|
|
|
54
|
-
### Custom
|
|
54
|
+
### Custom headers
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
57
|
const agent = new Agent({
|
|
@@ -68,7 +68,7 @@ const agent = new Agent({
|
|
|
68
68
|
});
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
-
### Dynamic
|
|
71
|
+
### Dynamic model selection
|
|
72
72
|
|
|
73
73
|
```typescript
|
|
74
74
|
const agent = new Agent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SiliconFlow (China)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 78 SiliconFlow (China) models through Mastra's model router. Authentication is handled automatically using the `SILICONFLOW_CN_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [SiliconFlow (China) documentation](https://cloud.siliconflow.com/models).
|
|
6
6
|
|
|
@@ -94,6 +94,12 @@ for await (const chunk of stream) {
|
|
|
94
94
|
| `siliconflow-cn/Qwen/Qwen3-VL-32B-Thinking` | 262K | | | | | | $0.20 | $2 |
|
|
95
95
|
| `siliconflow-cn/Qwen/Qwen3-VL-8B-Instruct` | 262K | | | | | | $0.18 | $0.68 |
|
|
96
96
|
| `siliconflow-cn/Qwen/Qwen3-VL-8B-Thinking` | 262K | | | | | | $0.18 | $2 |
|
|
97
|
+
| `siliconflow-cn/Qwen/Qwen3.5-122B-A10B` | 262K | | | | | | $0.29 | $2 |
|
|
98
|
+
| `siliconflow-cn/Qwen/Qwen3.5-27B` | 262K | | | | | | $0.26 | $2 |
|
|
99
|
+
| `siliconflow-cn/Qwen/Qwen3.5-35B-A3B` | 262K | | | | | | $0.23 | $2 |
|
|
100
|
+
| `siliconflow-cn/Qwen/Qwen3.5-397B-A17B` | 262K | | | | | | $0.29 | $2 |
|
|
101
|
+
| `siliconflow-cn/Qwen/Qwen3.5-4B` | 262K | | | | | | — | — |
|
|
102
|
+
| `siliconflow-cn/Qwen/Qwen3.5-9B` | 262K | | | | | | $0.22 | $2 |
|
|
97
103
|
| `siliconflow-cn/Qwen/QwQ-32B` | 131K | | | | | | $0.15 | $0.58 |
|
|
98
104
|
| `siliconflow-cn/stepfun-ai/Step-3.5-Flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
99
105
|
| `siliconflow-cn/tencent/Hunyuan-A13B-Instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
@@ -107,9 +113,9 @@ for await (const chunk of stream) {
|
|
|
107
113
|
| `siliconflow-cn/zai-org/GLM-4.6` | 205K | | | | | | $0.50 | $2 |
|
|
108
114
|
| `siliconflow-cn/zai-org/GLM-4.6V` | 131K | | | | | | $0.30 | $0.90 |
|
|
109
115
|
|
|
110
|
-
## Advanced
|
|
116
|
+
## Advanced configuration
|
|
111
117
|
|
|
112
|
-
### Custom
|
|
118
|
+
### Custom headers
|
|
113
119
|
|
|
114
120
|
```typescript
|
|
115
121
|
const agent = new Agent({
|
|
@@ -126,7 +132,7 @@ const agent = new Agent({
|
|
|
126
132
|
});
|
|
127
133
|
```
|
|
128
134
|
|
|
129
|
-
### Dynamic
|
|
135
|
+
### Dynamic model selection
|
|
130
136
|
|
|
131
137
|
```typescript
|
|
132
138
|
const agent = new Agent({
|
|
@@ -105,9 +105,9 @@ for await (const chunk of stream) {
|
|
|
105
105
|
| `siliconflow/zai-org/GLM-4.7` | 205K | | | | | | $0.60 | $2 |
|
|
106
106
|
| `siliconflow/zai-org/GLM-5` | 205K | | | | | | $1 | $3 |
|
|
107
107
|
|
|
108
|
-
## Advanced
|
|
108
|
+
## Advanced configuration
|
|
109
109
|
|
|
110
|
-
### Custom
|
|
110
|
+
### Custom headers
|
|
111
111
|
|
|
112
112
|
```typescript
|
|
113
113
|
const agent = new Agent({
|
|
@@ -124,7 +124,7 @@ const agent = new Agent({
|
|
|
124
124
|
});
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
### Dynamic
|
|
127
|
+
### Dynamic model selection
|
|
128
128
|
|
|
129
129
|
```typescript
|
|
130
130
|
const agent = new Agent({
|
|
@@ -43,9 +43,9 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `stackit/Qwen/Qwen3-VL-235B-A22B-Instruct-FP8` | 218K | | | | | | $2 | $2 |
|
|
44
44
|
| `stackit/Qwen/Qwen3-VL-Embedding-8B` | 32K | | | | | | $0.09 | $0.09 |
|
|
45
45
|
|
|
46
|
-
## Advanced
|
|
46
|
+
## Advanced configuration
|
|
47
47
|
|
|
48
|
-
### Custom
|
|
48
|
+
### Custom headers
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
51
|
const agent = new Agent({
|
|
@@ -62,7 +62,7 @@ const agent = new Agent({
|
|
|
62
62
|
});
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
### Dynamic
|
|
65
|
+
### Dynamic model selection
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
68
|
const agent = new Agent({
|
|
@@ -38,9 +38,9 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `stepfun/step-2-16k` | 16K | | | | | | $5 | $16 |
|
|
39
39
|
| `stepfun/step-3.5-flash` | 256K | | | | | | $0.10 | $0.29 |
|
|
40
40
|
|
|
41
|
-
## Advanced
|
|
41
|
+
## Advanced configuration
|
|
42
42
|
|
|
43
|
-
### Custom
|
|
43
|
+
### Custom headers
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
46
|
const agent = new Agent({
|
|
@@ -57,7 +57,7 @@ const agent = new Agent({
|
|
|
57
57
|
});
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
### Dynamic
|
|
60
|
+
### Dynamic model selection
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
63
|
const agent = new Agent({
|
|
@@ -44,9 +44,9 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `submodel/zai-org/GLM-4.5-Air` | 131K | | | | | | $0.10 | $0.50 |
|
|
45
45
|
| `submodel/zai-org/GLM-4.5-FP8` | 131K | | | | | | $0.20 | $0.80 |
|
|
46
46
|
|
|
47
|
-
## Advanced
|
|
47
|
+
## Advanced configuration
|
|
48
48
|
|
|
49
|
-
### Custom
|
|
49
|
+
### Custom headers
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
52
|
const agent = new Agent({
|
|
@@ -63,7 +63,7 @@ const agent = new Agent({
|
|
|
63
63
|
});
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
### Dynamic
|
|
66
|
+
### Dynamic model selection
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
const agent = new Agent({
|
|
@@ -61,9 +61,9 @@ for await (const chunk of stream) {
|
|
|
61
61
|
| `synthetic/hf:zai-org/GLM-4.6` | 200K | | | | | | $0.55 | $2 |
|
|
62
62
|
| `synthetic/hf:zai-org/GLM-4.7` | 200K | | | | | | $0.55 | $2 |
|
|
63
63
|
|
|
64
|
-
## Advanced
|
|
64
|
+
## Advanced configuration
|
|
65
65
|
|
|
66
|
-
### Custom
|
|
66
|
+
### Custom headers
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
const agent = new Agent({
|
|
@@ -80,7 +80,7 @@ const agent = new Agent({
|
|
|
80
80
|
});
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
### Dynamic
|
|
83
|
+
### Dynamic model selection
|
|
84
84
|
|
|
85
85
|
```typescript
|
|
86
86
|
const agent = new Agent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Together AI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 17 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
6
6
|
|
|
@@ -39,8 +39,6 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| `togetherai/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.88 | $0.88 |
|
|
40
40
|
| `togetherai/MiniMaxAI/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
41
41
|
| `togetherai/moonshotai/Kimi-K2-Instruct` | 131K | | | | | | $1 | $3 |
|
|
42
|
-
| `togetherai/moonshotai/Kimi-K2-Instruct-0905` | 262K | | | | | | $1 | $3 |
|
|
43
|
-
| `togetherai/moonshotai/Kimi-K2-Thinking` | 262K | | | | | | $1 | $4 |
|
|
44
42
|
| `togetherai/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.50 | $3 |
|
|
45
43
|
| `togetherai/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
46
44
|
| `togetherai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput` | 262K | | | | | | $0.20 | $0.60 |
|
|
@@ -52,9 +50,9 @@ for await (const chunk of stream) {
|
|
|
52
50
|
| `togetherai/zai-org/GLM-4.7` | 200K | | | | | | $0.45 | $2 |
|
|
53
51
|
| `togetherai/zai-org/GLM-5` | 203K | | | | | | $1 | $3 |
|
|
54
52
|
|
|
55
|
-
## Advanced
|
|
53
|
+
## Advanced configuration
|
|
56
54
|
|
|
57
|
-
### Custom
|
|
55
|
+
### Custom headers
|
|
58
56
|
|
|
59
57
|
```typescript
|
|
60
58
|
const agent = new Agent({
|
|
@@ -70,7 +68,7 @@ const agent = new Agent({
|
|
|
70
68
|
});
|
|
71
69
|
```
|
|
72
70
|
|
|
73
|
-
### Dynamic
|
|
71
|
+
### Dynamic model selection
|
|
74
72
|
|
|
75
73
|
```typescript
|
|
76
74
|
const agent = new Agent({
|
|
@@ -85,7 +83,7 @@ const agent = new Agent({
|
|
|
85
83
|
});
|
|
86
84
|
```
|
|
87
85
|
|
|
88
|
-
## Direct
|
|
86
|
+
## Direct provider installation
|
|
89
87
|
|
|
90
88
|
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/togetherai) for more details.
|
|
91
89
|
|
|
@@ -38,9 +38,9 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `upstage/solar-pro2` | 66K | | | | | | $0.25 | $0.25 |
|
|
39
39
|
| `upstage/solar-pro3` | 131K | | | | | | $0.25 | $0.25 |
|
|
40
40
|
|
|
41
|
-
## Advanced
|
|
41
|
+
## Advanced configuration
|
|
42
42
|
|
|
43
|
-
### Custom
|
|
43
|
+
### Custom headers
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
46
|
const agent = new Agent({
|
|
@@ -57,7 +57,7 @@ const agent = new Agent({
|
|
|
57
57
|
});
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
### Dynamic
|
|
60
|
+
### Dynamic model selection
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
63
|
const agent = new Agent({
|
|
@@ -43,9 +43,9 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `vivgrid/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
44
44
|
| `vivgrid/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
45
45
|
|
|
46
|
-
## Advanced
|
|
46
|
+
## Advanced configuration
|
|
47
47
|
|
|
48
|
-
### Custom
|
|
48
|
+
### Custom headers
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
51
|
const agent = new Agent({
|
|
@@ -62,7 +62,7 @@ const agent = new Agent({
|
|
|
62
62
|
});
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
### Dynamic
|
|
65
|
+
### Dynamic model selection
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
68
|
const agent = new Agent({
|
|
@@ -77,7 +77,7 @@ const agent = new Agent({
|
|
|
77
77
|
});
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
## Direct
|
|
80
|
+
## Direct provider installation
|
|
81
81
|
|
|
82
82
|
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
83
83
|
|
|
@@ -40,9 +40,9 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `vultr/kimi-k2-instruct` | 59K | | | | | | $0.20 | $0.20 |
|
|
41
41
|
| `vultr/qwen2.5-coder-32b-instruct` | 13K | | | | | | $0.20 | $0.20 |
|
|
42
42
|
|
|
43
|
-
## Advanced
|
|
43
|
+
## Advanced configuration
|
|
44
44
|
|
|
45
|
-
### Custom
|
|
45
|
+
### Custom headers
|
|
46
46
|
|
|
47
47
|
```typescript
|
|
48
48
|
const agent = new Agent({
|
|
@@ -59,7 +59,7 @@ const agent = new Agent({
|
|
|
59
59
|
});
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
### Dynamic
|
|
62
|
+
### Dynamic model selection
|
|
63
63
|
|
|
64
64
|
```typescript
|
|
65
65
|
const agent = new Agent({
|
|
@@ -45,9 +45,9 @@ for await (const chunk of stream) {
|
|
|
45
45
|
| `wandb/Qwen/Qwen3-235B-A22B-Thinking-2507` | 262K | | | | | | $0.10 | $0.10 |
|
|
46
46
|
| `wandb/Qwen/Qwen3-Coder-480B-A35B-Instruct` | 262K | | | | | | $1 | $2 |
|
|
47
47
|
|
|
48
|
-
## Advanced
|
|
48
|
+
## Advanced configuration
|
|
49
49
|
|
|
50
|
-
### Custom
|
|
50
|
+
### Custom headers
|
|
51
51
|
|
|
52
52
|
```typescript
|
|
53
53
|
const agent = new Agent({
|
|
@@ -64,7 +64,7 @@ const agent = new Agent({
|
|
|
64
64
|
});
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### Dynamic
|
|
67
|
+
### Dynamic model selection
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
70
|
const agent = new Agent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# xAI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 25 xAI models through Mastra's model router. Authentication is handled automatically using the `XAI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [xAI documentation](https://docs.x.ai/docs/models).
|
|
6
6
|
|
|
@@ -30,34 +30,37 @@ for await (const chunk of stream) {
|
|
|
30
30
|
|
|
31
31
|
## Models
|
|
32
32
|
|
|
33
|
-
| Model
|
|
34
|
-
|
|
|
35
|
-
| `xai/grok-2`
|
|
36
|
-
| `xai/grok-2-1212`
|
|
37
|
-
| `xai/grok-2-latest`
|
|
38
|
-
| `xai/grok-2-vision`
|
|
39
|
-
| `xai/grok-2-vision-1212`
|
|
40
|
-
| `xai/grok-2-vision-latest`
|
|
41
|
-
| `xai/grok-3`
|
|
42
|
-
| `xai/grok-3-fast`
|
|
43
|
-
| `xai/grok-3-fast-latest`
|
|
44
|
-
| `xai/grok-3-latest`
|
|
45
|
-
| `xai/grok-3-mini`
|
|
46
|
-
| `xai/grok-3-mini-fast`
|
|
47
|
-
| `xai/grok-3-mini-fast-latest`
|
|
48
|
-
| `xai/grok-3-mini-latest`
|
|
49
|
-
| `xai/grok-4`
|
|
50
|
-
| `xai/grok-4-1-fast`
|
|
51
|
-
| `xai/grok-4-1-fast-non-reasoning`
|
|
52
|
-
| `xai/grok-4-fast`
|
|
53
|
-
| `xai/grok-4-fast-non-reasoning`
|
|
54
|
-
| `xai/grok-beta`
|
|
55
|
-
| `xai/grok-
|
|
56
|
-
| `xai/grok-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
33
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
34
|
+
| ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
35
|
+
| `xai/grok-2` | 131K | | | | | | $2 | $10 |
|
|
36
|
+
| `xai/grok-2-1212` | 131K | | | | | | $2 | $10 |
|
|
37
|
+
| `xai/grok-2-latest` | 131K | | | | | | $2 | $10 |
|
|
38
|
+
| `xai/grok-2-vision` | 8K | | | | | | $2 | $10 |
|
|
39
|
+
| `xai/grok-2-vision-1212` | 8K | | | | | | $2 | $10 |
|
|
40
|
+
| `xai/grok-2-vision-latest` | 8K | | | | | | $2 | $10 |
|
|
41
|
+
| `xai/grok-3` | 131K | | | | | | $3 | $15 |
|
|
42
|
+
| `xai/grok-3-fast` | 131K | | | | | | $5 | $25 |
|
|
43
|
+
| `xai/grok-3-fast-latest` | 131K | | | | | | $5 | $25 |
|
|
44
|
+
| `xai/grok-3-latest` | 131K | | | | | | $3 | $15 |
|
|
45
|
+
| `xai/grok-3-mini` | 131K | | | | | | $0.30 | $0.50 |
|
|
46
|
+
| `xai/grok-3-mini-fast` | 131K | | | | | | $0.60 | $4 |
|
|
47
|
+
| `xai/grok-3-mini-fast-latest` | 131K | | | | | | $0.60 | $4 |
|
|
48
|
+
| `xai/grok-3-mini-latest` | 131K | | | | | | $0.30 | $0.50 |
|
|
49
|
+
| `xai/grok-4` | 256K | | | | | | $3 | $15 |
|
|
50
|
+
| `xai/grok-4-1-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
51
|
+
| `xai/grok-4-1-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
52
|
+
| `xai/grok-4-fast` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
53
|
+
| `xai/grok-4-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
54
|
+
| `xai/grok-4.20-experimental-beta-0304-non-reasoning` | 2.0M | | | | | | $2 | $6 |
|
|
55
|
+
| `xai/grok-4.20-experimental-beta-0304-reasoning` | 2.0M | | | | | | $2 | $6 |
|
|
56
|
+
| `xai/grok-4.20-multi-agent-experimental-beta-0304` | 2.0M | | | | | | $2 | $6 |
|
|
57
|
+
| `xai/grok-beta` | 131K | | | | | | $5 | $15 |
|
|
58
|
+
| `xai/grok-code-fast-1` | 256K | | | | | | $0.20 | $2 |
|
|
59
|
+
| `xai/grok-vision-beta` | 8K | | | | | | $5 | $15 |
|
|
60
|
+
|
|
61
|
+
## Advanced configuration
|
|
62
|
+
|
|
63
|
+
### Custom headers
|
|
61
64
|
|
|
62
65
|
```typescript
|
|
63
66
|
const agent = new Agent({
|
|
@@ -73,7 +76,7 @@ const agent = new Agent({
|
|
|
73
76
|
});
|
|
74
77
|
```
|
|
75
78
|
|
|
76
|
-
### Dynamic
|
|
79
|
+
### Dynamic model selection
|
|
77
80
|
|
|
78
81
|
```typescript
|
|
79
82
|
const agent = new Agent({
|
|
@@ -110,7 +113,7 @@ const response = await agent.generate("Hello!", {
|
|
|
110
113
|
|
|
111
114
|
**searchParameters** (`{ mode: "off" | "auto" | "on"; returnCitations?: boolean | undefined; fromDate?: string | undefined; toDate?: string | undefined; maxSearchResults?: number | undefined; sources?: ({ ...; } | ... 2 more ... | { ...; })[] | undefined; } | undefined`)
|
|
112
115
|
|
|
113
|
-
## Direct
|
|
116
|
+
## Direct provider installation
|
|
114
117
|
|
|
115
118
|
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/xai) for more details.
|
|
116
119
|
|
|
@@ -34,11 +34,11 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
36
|
| ---------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
-
| `xiaomi/mimo-v2-flash` | 256K | | | | | | $0.
|
|
37
|
+
| `xiaomi/mimo-v2-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
38
38
|
|
|
39
|
-
## Advanced
|
|
39
|
+
## Advanced configuration
|
|
40
40
|
|
|
41
|
-
### Custom
|
|
41
|
+
### Custom headers
|
|
42
42
|
|
|
43
43
|
```typescript
|
|
44
44
|
const agent = new Agent({
|
|
@@ -55,7 +55,7 @@ const agent = new Agent({
|
|
|
55
55
|
});
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### Dynamic
|
|
58
|
+
### Dynamic model selection
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
61
|
const agent = new Agent({
|
|
@@ -45,9 +45,9 @@ for await (const chunk of stream) {
|
|
|
45
45
|
| `zai-coding-plan/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
|
|
46
46
|
| `zai-coding-plan/glm-5` | 205K | | | | | | — | — |
|
|
47
47
|
|
|
48
|
-
## Advanced
|
|
48
|
+
## Advanced configuration
|
|
49
49
|
|
|
50
|
-
### Custom
|
|
50
|
+
### Custom headers
|
|
51
51
|
|
|
52
52
|
```typescript
|
|
53
53
|
const agent = new Agent({
|
|
@@ -64,7 +64,7 @@ const agent = new Agent({
|
|
|
64
64
|
});
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
### Dynamic
|
|
67
|
+
### Dynamic model selection
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
70
|
const agent = new Agent({
|
|
@@ -44,9 +44,9 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `zai/glm-4.7-flash` | 200K | | | | | | — | — |
|
|
45
45
|
| `zai/glm-5` | 205K | | | | | | $1 | $3 |
|
|
46
46
|
|
|
47
|
-
## Advanced
|
|
47
|
+
## Advanced configuration
|
|
48
48
|
|
|
49
|
-
### Custom
|
|
49
|
+
### Custom headers
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
52
|
const agent = new Agent({
|
|
@@ -63,7 +63,7 @@ const agent = new Agent({
|
|
|
63
63
|
});
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
### Dynamic
|
|
66
|
+
### Dynamic model selection
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
const agent = new Agent({
|