@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
|
@@ -99,9 +99,9 @@ for await (const chunk of stream) {
|
|
|
99
99
|
| `302ai/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.86 | $3 |
|
|
100
100
|
| `302ai/qwen3-max-2025-09-23` | 258K | | | | | | $0.86 | $3 |
|
|
101
101
|
|
|
102
|
-
## Advanced
|
|
102
|
+
## Advanced configuration
|
|
103
103
|
|
|
104
|
-
### Custom
|
|
104
|
+
### Custom headers
|
|
105
105
|
|
|
106
106
|
```typescript
|
|
107
107
|
const agent = new Agent({
|
|
@@ -118,7 +118,7 @@ const agent = new Agent({
|
|
|
118
118
|
});
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
### Dynamic
|
|
121
|
+
### Dynamic model selection
|
|
122
122
|
|
|
123
123
|
```typescript
|
|
124
124
|
const agent = new Agent({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Abacus
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 65 Abacus models through Mastra's model router. Authentication is handled automatically using the `ABACUS_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Abacus documentation](https://abacus.ai).
|
|
6
6
|
|
|
@@ -39,43 +39,52 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| `abacus/claude-opus-4-1-20250805` | 200K | | | | | | $15 | $75 |
|
|
40
40
|
| `abacus/claude-opus-4-20250514` | 200K | | | | | | $15 | $75 |
|
|
41
41
|
| `abacus/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `abacus/claude-opus-4-6` | 200K | | | | | | $5 | $25 |
|
|
42
43
|
| `abacus/claude-sonnet-4-20250514` | 200K | | | | | | $3 | $15 |
|
|
43
44
|
| `abacus/claude-sonnet-4-5-20250929` | 200K | | | | | | $3 | $15 |
|
|
45
|
+
| `abacus/claude-sonnet-4-6` | 200K | | | | | | $3 | $15 |
|
|
44
46
|
| `abacus/deepseek-ai/DeepSeek-R1` | 128K | | | | | | $3 | $7 |
|
|
45
47
|
| `abacus/deepseek-ai/DeepSeek-V3.1-Terminus` | 128K | | | | | | $0.27 | $1 |
|
|
46
48
|
| `abacus/deepseek-ai/DeepSeek-V3.2` | 128K | | | | | | $0.27 | $0.40 |
|
|
47
|
-
| `abacus/deepseek/deepseek-v3.1` | 128K | | | | | | $0.
|
|
48
|
-
| `abacus/gemini-2.0-flash-001` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
49
|
-
| `abacus/gemini-2.0-pro-exp-02-05` | 2.0M | | | | | | — | — |
|
|
49
|
+
| `abacus/deepseek/deepseek-v3.1` | 128K | | | | | | $0.55 | $2 |
|
|
50
50
|
| `abacus/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
51
51
|
| `abacus/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
52
52
|
| `abacus/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
53
|
-
| `abacus/gemini-3-
|
|
53
|
+
| `abacus/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
54
|
+
| `abacus/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
54
55
|
| `abacus/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
55
56
|
| `abacus/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
56
57
|
| `abacus/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
57
58
|
| `abacus/gpt-4o-2024-11-20` | 128K | | | | | | $3 | $10 |
|
|
58
59
|
| `abacus/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
59
60
|
| `abacus/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
61
|
+
| `abacus/gpt-5-codex` | 400K | | | | | | $1 | $10 |
|
|
60
62
|
| `abacus/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
61
63
|
| `abacus/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
62
64
|
| `abacus/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
63
65
|
| `abacus/gpt-5.1-chat-latest` | 400K | | | | | | $1 | $10 |
|
|
66
|
+
| `abacus/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
67
|
+
| `abacus/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
64
68
|
| `abacus/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
65
|
-
| `abacus/gpt-5.2-chat-latest` | 400K | | | | | | $2 | $
|
|
69
|
+
| `abacus/gpt-5.2-chat-latest` | 400K | | | | | | $2 | $14 |
|
|
70
|
+
| `abacus/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
71
|
+
| `abacus/gpt-5.3-chat-latest` | 400K | | | | | | $2 | $14 |
|
|
72
|
+
| `abacus/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
73
|
+
| `abacus/gpt-5.3-codex-xhigh` | 400K | | | | | | $2 | $14 |
|
|
74
|
+
| `abacus/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
66
75
|
| `abacus/grok-4-0709` | 256K | | | | | | $3 | $15 |
|
|
67
76
|
| `abacus/grok-4-1-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
68
77
|
| `abacus/grok-4-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
69
78
|
| `abacus/grok-code-fast-1` | 256K | | | | | | $0.20 | $2 |
|
|
70
79
|
| `abacus/kimi-k2-turbo-preview` | 256K | | | | | | $0.15 | $8 |
|
|
80
|
+
| `abacus/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
71
81
|
| `abacus/llama-3.3-70b-versatile` | 128K | | | | | | $0.59 | $0.79 |
|
|
72
82
|
| `abacus/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.14 | $0.59 |
|
|
73
83
|
| `abacus/meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo` | 128K | | | | | | $4 | $4 |
|
|
74
|
-
| `abacus/meta-llama/Meta-Llama-3.1-70B-Instruct` | 128K | | | | | | $0.40 | $0.40 |
|
|
75
84
|
| `abacus/meta-llama/Meta-Llama-3.1-8B-Instruct` | 128K | | | | | | $0.02 | $0.05 |
|
|
76
85
|
| `abacus/o3` | 200K | | | | | | $2 | $8 |
|
|
77
86
|
| `abacus/o3-mini` | 200K | | | | | | $1 | $4 |
|
|
78
|
-
| `abacus/o3-pro` | 200K | | | | | | $20 | $
|
|
87
|
+
| `abacus/o3-pro` | 200K | | | | | | $20 | $40 |
|
|
79
88
|
| `abacus/o4-mini` | 200K | | | | | | $1 | $4 |
|
|
80
89
|
| `abacus/openai/gpt-oss-120b` | 128K | | | | | | $0.08 | $0.44 |
|
|
81
90
|
| `abacus/qwen-2.5-coder-32b` | 128K | | | | | | $0.79 | $0.79 |
|
|
@@ -85,14 +94,15 @@ for await (const chunk of stream) {
|
|
|
85
94
|
| `abacus/Qwen/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.29 | $1 |
|
|
86
95
|
| `abacus/Qwen/QwQ-32B` | 33K | | | | | | $0.40 | $0.40 |
|
|
87
96
|
| `abacus/qwen3-max` | 131K | | | | | | $1 | $6 |
|
|
88
|
-
| `abacus/route-llm` | 128K | | | | | | $
|
|
97
|
+
| `abacus/route-llm` | 128K | | | | | | $3 | $15 |
|
|
89
98
|
| `abacus/zai-org/glm-4.5` | 128K | | | | | | $0.60 | $2 |
|
|
90
99
|
| `abacus/zai-org/glm-4.6` | 128K | | | | | | $0.60 | $2 |
|
|
91
|
-
| `abacus/zai-org/glm-4.7` | 128K | | | | | | $0.
|
|
100
|
+
| `abacus/zai-org/glm-4.7` | 128K | | | | | | $0.60 | $2 |
|
|
101
|
+
| `abacus/zai-org/glm-5` | 205K | | | | | | $1 | $3 |
|
|
92
102
|
|
|
93
|
-
## Advanced
|
|
103
|
+
## Advanced configuration
|
|
94
104
|
|
|
95
|
-
### Custom
|
|
105
|
+
### Custom headers
|
|
96
106
|
|
|
97
107
|
```typescript
|
|
98
108
|
const agent = new Agent({
|
|
@@ -109,7 +119,7 @@ const agent = new Agent({
|
|
|
109
119
|
});
|
|
110
120
|
```
|
|
111
121
|
|
|
112
|
-
### Dynamic
|
|
122
|
+
### Dynamic model selection
|
|
113
123
|
|
|
114
124
|
```typescript
|
|
115
125
|
const agent = new Agent({
|
|
@@ -118,7 +128,7 @@ const agent = new Agent({
|
|
|
118
128
|
model: ({ requestContext }) => {
|
|
119
129
|
const useAdvanced = requestContext.task === "complex";
|
|
120
130
|
return useAdvanced
|
|
121
|
-
? "abacus/zai-org/glm-
|
|
131
|
+
? "abacus/zai-org/glm-5"
|
|
122
132
|
: "abacus/Qwen/QwQ-32B";
|
|
123
133
|
}
|
|
124
134
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AIHubMix
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 48 AIHubMix models through Mastra's model router. Authentication is handled automatically using the `AIHUBMIX_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [AIHubMix documentation](https://docs.aihubmix.com).
|
|
6
6
|
|
|
@@ -44,6 +44,7 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `aihubmix/claude-sonnet-4-6-think` | 200K | | | | | | $3 | $15 |
|
|
45
45
|
| `aihubmix/coding-glm-4.7` | 205K | | | | | | $0.27 | $1 |
|
|
46
46
|
| `aihubmix/coding-glm-4.7-free` | 205K | | | | | | — | — |
|
|
47
|
+
| `aihubmix/coding-glm-5-free` | 205K | | | | | | — | — |
|
|
47
48
|
| `aihubmix/coding-minimax-m2.1-free` | 205K | | | | | | — | — |
|
|
48
49
|
| `aihubmix/deepseek-v3.2` | 131K | | | | | | $0.30 | $0.45 |
|
|
49
50
|
| `aihubmix/deepseek-v3.2-fast` | 128K | | | | | | $1 | $3 |
|
|
@@ -54,6 +55,7 @@ for await (const chunk of stream) {
|
|
|
54
55
|
| `aihubmix/gemini-3-pro-preview-search` | 1.0M | | | | | | $2 | $12 |
|
|
55
56
|
| `aihubmix/glm-4.6v` | 128K | | | | | | $0.14 | $0.41 |
|
|
56
57
|
| `aihubmix/glm-4.7` | 205K | | | | | | $0.27 | $1 |
|
|
58
|
+
| `aihubmix/glm-5` | 205K | | | | | | $0.88 | $3 |
|
|
57
59
|
| `aihubmix/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
58
60
|
| `aihubmix/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
59
61
|
| `aihubmix/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
@@ -72,15 +74,18 @@ for await (const chunk of stream) {
|
|
|
72
74
|
| `aihubmix/Kimi-K2-0905` | 262K | | | | | | $0.55 | $2 |
|
|
73
75
|
| `aihubmix/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
74
76
|
| `aihubmix/minimax-m2.1` | 205K | | | | | | $0.29 | $1 |
|
|
77
|
+
| `aihubmix/minimax-m2.5` | 205K | | | | | | $0.29 | $1 |
|
|
75
78
|
| `aihubmix/o4-mini` | 200K | | | | | | $2 | $6 |
|
|
76
79
|
| `aihubmix/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.28 | $1 |
|
|
77
80
|
| `aihubmix/qwen3-235b-a22b-thinking-2507` | 262K | | | | | | $0.28 | $3 |
|
|
78
81
|
| `aihubmix/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.82 | $3 |
|
|
82
|
+
| `aihubmix/qwen3-coder-next` | 262K | | | | | | $0.14 | $0.55 |
|
|
79
83
|
| `aihubmix/qwen3-max-2026-01-23` | 262K | | | | | | $0.34 | $1 |
|
|
84
|
+
| `aihubmix/qwen3.5-plus` | 1.0M | | | | | | $0.11 | $0.66 |
|
|
80
85
|
|
|
81
|
-
## Advanced
|
|
86
|
+
## Advanced configuration
|
|
82
87
|
|
|
83
|
-
### Custom
|
|
88
|
+
### Custom headers
|
|
84
89
|
|
|
85
90
|
```typescript
|
|
86
91
|
const agent = new Agent({
|
|
@@ -97,7 +102,7 @@ const agent = new Agent({
|
|
|
97
102
|
});
|
|
98
103
|
```
|
|
99
104
|
|
|
100
|
-
### Dynamic
|
|
105
|
+
### Dynamic model selection
|
|
101
106
|
|
|
102
107
|
```typescript
|
|
103
108
|
const agent = new Agent({
|
|
@@ -106,7 +111,7 @@ const agent = new Agent({
|
|
|
106
111
|
model: ({ requestContext }) => {
|
|
107
112
|
const useAdvanced = requestContext.task === "complex";
|
|
108
113
|
return useAdvanced
|
|
109
|
-
? "aihubmix/qwen3-
|
|
114
|
+
? "aihubmix/qwen3.5-plus"
|
|
110
115
|
: "aihubmix/Kimi-K2-0905";
|
|
111
116
|
}
|
|
112
117
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Alibaba (China)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 74 Alibaba (China) models through Mastra's model router. Authentication is handled automatically using the `DASHSCOPE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Alibaba (China) documentation](https://www.alibabacloud.com/help/en/model-studio/models).
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ const agent = new Agent({
|
|
|
15
15
|
id: "my-agent",
|
|
16
16
|
name: "My Agent",
|
|
17
17
|
instructions: "You are a helpful assistant",
|
|
18
|
-
model: "alibaba-cn/
|
|
18
|
+
model: "alibaba-cn/MiniMax/MiniMax-M2.5"
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Generate a response
|
|
@@ -32,77 +32,86 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `alibaba-cn/deepseek-r1`
|
|
38
|
-
| `alibaba-cn/deepseek-r1-0528`
|
|
39
|
-
| `alibaba-cn/deepseek-r1-distill-llama-70b`
|
|
40
|
-
| `alibaba-cn/deepseek-r1-distill-llama-8b`
|
|
41
|
-
| `alibaba-cn/deepseek-r1-distill-qwen-1-5b`
|
|
42
|
-
| `alibaba-cn/deepseek-r1-distill-qwen-14b`
|
|
43
|
-
| `alibaba-cn/deepseek-r1-distill-qwen-32b`
|
|
44
|
-
| `alibaba-cn/deepseek-r1-distill-qwen-7b`
|
|
45
|
-
| `alibaba-cn/deepseek-v3`
|
|
46
|
-
| `alibaba-cn/deepseek-v3-1`
|
|
47
|
-
| `alibaba-cn/deepseek-v3-2-exp`
|
|
48
|
-
| `alibaba-cn/
|
|
49
|
-
| `alibaba-cn/kimi-k2
|
|
50
|
-
| `alibaba-cn/
|
|
51
|
-
| `alibaba-cn/
|
|
52
|
-
| `alibaba-cn/
|
|
53
|
-
| `alibaba-cn/
|
|
54
|
-
| `alibaba-cn/
|
|
55
|
-
| `alibaba-cn/
|
|
56
|
-
| `alibaba-cn/qwen-
|
|
57
|
-
| `alibaba-cn/qwen-
|
|
58
|
-
| `alibaba-cn/qwen-
|
|
59
|
-
| `alibaba-cn/qwen-
|
|
60
|
-
| `alibaba-cn/qwen-
|
|
61
|
-
| `alibaba-cn/qwen-
|
|
62
|
-
| `alibaba-cn/qwen-
|
|
63
|
-
| `alibaba-cn/qwen-plus`
|
|
64
|
-
| `alibaba-cn/qwen-
|
|
65
|
-
| `alibaba-cn/qwen-turbo`
|
|
66
|
-
| `alibaba-cn/qwen-
|
|
67
|
-
| `alibaba-cn/qwen-
|
|
68
|
-
| `alibaba-cn/qwen-
|
|
69
|
-
| `alibaba-cn/
|
|
70
|
-
| `alibaba-cn/
|
|
71
|
-
| `alibaba-cn/
|
|
72
|
-
| `alibaba-cn/
|
|
73
|
-
| `alibaba-cn/qwen2-5-
|
|
74
|
-
| `alibaba-cn/qwen2-5-
|
|
75
|
-
| `alibaba-cn/qwen2-5-
|
|
76
|
-
| `alibaba-cn/qwen2-5-
|
|
77
|
-
| `alibaba-cn/qwen2-5-
|
|
78
|
-
| `alibaba-cn/qwen2-5-
|
|
79
|
-
| `alibaba-cn/qwen2-5-
|
|
80
|
-
| `alibaba-cn/
|
|
81
|
-
| `alibaba-cn/
|
|
82
|
-
| `alibaba-cn/
|
|
83
|
-
| `alibaba-cn/
|
|
84
|
-
| `alibaba-cn/qwen3-
|
|
85
|
-
| `alibaba-cn/qwen3-
|
|
86
|
-
| `alibaba-cn/qwen3-
|
|
87
|
-
| `alibaba-cn/qwen3-
|
|
88
|
-
| `alibaba-cn/qwen3-
|
|
89
|
-
| `alibaba-cn/qwen3-
|
|
90
|
-
| `alibaba-cn/qwen3-
|
|
91
|
-
| `alibaba-cn/qwen3-
|
|
92
|
-
| `alibaba-cn/qwen3-
|
|
93
|
-
| `alibaba-cn/qwen3-
|
|
94
|
-
| `alibaba-cn/qwen3-
|
|
95
|
-
| `alibaba-cn/qwen3-
|
|
96
|
-
| `alibaba-cn/qwen3-
|
|
97
|
-
| `alibaba-cn/qwen3
|
|
98
|
-
| `alibaba-cn/qwen3
|
|
99
|
-
| `alibaba-cn/
|
|
100
|
-
| `alibaba-cn/
|
|
101
|
-
| `alibaba-cn/
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ----------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `alibaba-cn/deepseek-r1` | 131K | | | | | | $0.57 | $2 |
|
|
38
|
+
| `alibaba-cn/deepseek-r1-0528` | 131K | | | | | | $0.57 | $2 |
|
|
39
|
+
| `alibaba-cn/deepseek-r1-distill-llama-70b` | 33K | | | | | | $0.29 | $0.86 |
|
|
40
|
+
| `alibaba-cn/deepseek-r1-distill-llama-8b` | 33K | | | | | | — | — |
|
|
41
|
+
| `alibaba-cn/deepseek-r1-distill-qwen-1-5b` | 33K | | | | | | — | — |
|
|
42
|
+
| `alibaba-cn/deepseek-r1-distill-qwen-14b` | 33K | | | | | | $0.14 | $0.43 |
|
|
43
|
+
| `alibaba-cn/deepseek-r1-distill-qwen-32b` | 33K | | | | | | $0.29 | $0.86 |
|
|
44
|
+
| `alibaba-cn/deepseek-r1-distill-qwen-7b` | 33K | | | | | | $0.07 | $0.14 |
|
|
45
|
+
| `alibaba-cn/deepseek-v3` | 66K | | | | | | $0.29 | $1 |
|
|
46
|
+
| `alibaba-cn/deepseek-v3-1` | 131K | | | | | | $0.57 | $2 |
|
|
47
|
+
| `alibaba-cn/deepseek-v3-2-exp` | 131K | | | | | | $0.29 | $0.43 |
|
|
48
|
+
| `alibaba-cn/glm-5` | 203K | | | | | | $0.86 | $3 |
|
|
49
|
+
| `alibaba-cn/kimi-k2-thinking` | 262K | | | | | | $0.57 | $2 |
|
|
50
|
+
| `alibaba-cn/kimi-k2.5` | 262K | | | | | | $0.57 | $2 |
|
|
51
|
+
| `alibaba-cn/kimi/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
52
|
+
| `alibaba-cn/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
53
|
+
| `alibaba-cn/MiniMax/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
54
|
+
| `alibaba-cn/moonshot-kimi-k2-instruct` | 131K | | | | | | $0.57 | $2 |
|
|
55
|
+
| `alibaba-cn/qvq-max` | 131K | | | | | | $1 | $5 |
|
|
56
|
+
| `alibaba-cn/qwen-deep-research` | 1.0M | | | | | | $8 | $23 |
|
|
57
|
+
| `alibaba-cn/qwen-doc-turbo` | 131K | | | | | | $0.09 | $0.14 |
|
|
58
|
+
| `alibaba-cn/qwen-flash` | 1.0M | | | | | | $0.02 | $0.22 |
|
|
59
|
+
| `alibaba-cn/qwen-long` | 10.0M | | | | | | $0.07 | $0.29 |
|
|
60
|
+
| `alibaba-cn/qwen-math-plus` | 4K | | | | | | $0.57 | $2 |
|
|
61
|
+
| `alibaba-cn/qwen-math-turbo` | 4K | | | | | | $0.29 | $0.86 |
|
|
62
|
+
| `alibaba-cn/qwen-max` | 131K | | | | | | $0.34 | $1 |
|
|
63
|
+
| `alibaba-cn/qwen-mt-plus` | 16K | | | | | | $0.26 | $0.78 |
|
|
64
|
+
| `alibaba-cn/qwen-mt-turbo` | 16K | | | | | | $0.10 | $0.28 |
|
|
65
|
+
| `alibaba-cn/qwen-omni-turbo` | 33K | | | | | | $0.06 | $0.23 |
|
|
66
|
+
| `alibaba-cn/qwen-omni-turbo-realtime` | 33K | | | | | | $0.23 | $0.92 |
|
|
67
|
+
| `alibaba-cn/qwen-plus` | 1.0M | | | | | | $0.12 | $0.29 |
|
|
68
|
+
| `alibaba-cn/qwen-plus-character` | 33K | | | | | | $0.12 | $0.29 |
|
|
69
|
+
| `alibaba-cn/qwen-turbo` | 1.0M | | | | | | $0.04 | $0.09 |
|
|
70
|
+
| `alibaba-cn/qwen-vl-max` | 131K | | | | | | $0.23 | $0.57 |
|
|
71
|
+
| `alibaba-cn/qwen-vl-ocr` | 34K | | | | | | $0.72 | $0.72 |
|
|
72
|
+
| `alibaba-cn/qwen-vl-plus` | 131K | | | | | | $0.12 | $0.29 |
|
|
73
|
+
| `alibaba-cn/qwen2-5-14b-instruct` | 131K | | | | | | $0.14 | $0.43 |
|
|
74
|
+
| `alibaba-cn/qwen2-5-32b-instruct` | 131K | | | | | | $0.29 | $0.86 |
|
|
75
|
+
| `alibaba-cn/qwen2-5-72b-instruct` | 131K | | | | | | $0.57 | $2 |
|
|
76
|
+
| `alibaba-cn/qwen2-5-7b-instruct` | 131K | | | | | | $0.07 | $0.14 |
|
|
77
|
+
| `alibaba-cn/qwen2-5-coder-32b-instruct` | 131K | | | | | | $0.29 | $0.86 |
|
|
78
|
+
| `alibaba-cn/qwen2-5-coder-7b-instruct` | 131K | | | | | | $0.14 | $0.29 |
|
|
79
|
+
| `alibaba-cn/qwen2-5-math-72b-instruct` | 4K | | | | | | $0.57 | $2 |
|
|
80
|
+
| `alibaba-cn/qwen2-5-math-7b-instruct` | 4K | | | | | | $0.14 | $0.29 |
|
|
81
|
+
| `alibaba-cn/qwen2-5-omni-7b` | 33K | | | | | | $0.09 | $0.34 |
|
|
82
|
+
| `alibaba-cn/qwen2-5-vl-72b-instruct` | 131K | | | | | | $2 | $7 |
|
|
83
|
+
| `alibaba-cn/qwen2-5-vl-7b-instruct` | 131K | | | | | | $0.29 | $0.72 |
|
|
84
|
+
| `alibaba-cn/qwen3-14b` | 131K | | | | | | $0.14 | $0.57 |
|
|
85
|
+
| `alibaba-cn/qwen3-235b-a22b` | 131K | | | | | | $0.29 | $1 |
|
|
86
|
+
| `alibaba-cn/qwen3-32b` | 131K | | | | | | $0.29 | $1 |
|
|
87
|
+
| `alibaba-cn/qwen3-8b` | 131K | | | | | | $0.07 | $0.29 |
|
|
88
|
+
| `alibaba-cn/qwen3-asr-flash` | 53K | | | | | | $0.03 | $0.03 |
|
|
89
|
+
| `alibaba-cn/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.22 | $0.86 |
|
|
90
|
+
| `alibaba-cn/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.86 | $3 |
|
|
91
|
+
| `alibaba-cn/qwen3-coder-flash` | 1.0M | | | | | | $0.14 | $0.57 |
|
|
92
|
+
| `alibaba-cn/qwen3-coder-plus` | 1.0M | | | | | | $1 | $5 |
|
|
93
|
+
| `alibaba-cn/qwen3-max` | 262K | | | | | | $0.86 | $3 |
|
|
94
|
+
| `alibaba-cn/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
95
|
+
| `alibaba-cn/qwen3-next-80b-a3b-thinking` | 131K | | | | | | $0.14 | $1 |
|
|
96
|
+
| `alibaba-cn/qwen3-omni-flash` | 66K | | | | | | $0.06 | $0.23 |
|
|
97
|
+
| `alibaba-cn/qwen3-omni-flash-realtime` | 66K | | | | | | $0.23 | $0.92 |
|
|
98
|
+
| `alibaba-cn/qwen3-vl-235b-a22b` | 131K | | | | | | $0.29 | $1 |
|
|
99
|
+
| `alibaba-cn/qwen3-vl-30b-a3b` | 131K | | | | | | $0.11 | $0.43 |
|
|
100
|
+
| `alibaba-cn/qwen3-vl-plus` | 262K | | | | | | $0.14 | $1 |
|
|
101
|
+
| `alibaba-cn/qwen3.5-397b-a17b` | 262K | | | | | | $0.43 | $3 |
|
|
102
|
+
| `alibaba-cn/qwen3.5-flash` | 1.0M | | | | | | $0.17 | $2 |
|
|
103
|
+
| `alibaba-cn/qwen3.5-plus` | 1.0M | | | | | | $0.57 | $3 |
|
|
104
|
+
| `alibaba-cn/qwq-32b` | 131K | | | | | | $0.29 | $0.86 |
|
|
105
|
+
| `alibaba-cn/qwq-plus` | 131K | | | | | | $0.23 | $0.57 |
|
|
106
|
+
| `alibaba-cn/siliconflow/deepseek-r1-0528` | 164K | | | | | | $0.50 | $2 |
|
|
107
|
+
| `alibaba-cn/siliconflow/deepseek-v3-0324` | 164K | | | | | | $0.25 | $1 |
|
|
108
|
+
| `alibaba-cn/siliconflow/deepseek-v3.1-terminus` | 164K | | | | | | $0.27 | $1 |
|
|
109
|
+
| `alibaba-cn/siliconflow/deepseek-v3.2` | 164K | | | | | | $0.27 | $0.42 |
|
|
110
|
+
| `alibaba-cn/tongyi-intent-detect-v3` | 8K | | | | | | $0.06 | $0.14 |
|
|
102
111
|
|
|
103
|
-
## Advanced
|
|
112
|
+
## Advanced configuration
|
|
104
113
|
|
|
105
|
-
### Custom
|
|
114
|
+
### Custom headers
|
|
106
115
|
|
|
107
116
|
```typescript
|
|
108
117
|
const agent = new Agent({
|
|
@@ -110,7 +119,7 @@ const agent = new Agent({
|
|
|
110
119
|
name: "custom-agent",
|
|
111
120
|
model: {
|
|
112
121
|
url: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
113
|
-
id: "alibaba-cn/
|
|
122
|
+
id: "alibaba-cn/MiniMax/MiniMax-M2.5",
|
|
114
123
|
apiKey: process.env.DASHSCOPE_API_KEY,
|
|
115
124
|
headers: {
|
|
116
125
|
"X-Custom-Header": "value"
|
|
@@ -119,7 +128,7 @@ const agent = new Agent({
|
|
|
119
128
|
});
|
|
120
129
|
```
|
|
121
130
|
|
|
122
|
-
### Dynamic
|
|
131
|
+
### Dynamic model selection
|
|
123
132
|
|
|
124
133
|
```typescript
|
|
125
134
|
const agent = new Agent({
|
|
@@ -129,7 +138,7 @@ const agent = new Agent({
|
|
|
129
138
|
const useAdvanced = requestContext.task === "complex";
|
|
130
139
|
return useAdvanced
|
|
131
140
|
? "alibaba-cn/tongyi-intent-detect-v3"
|
|
132
|
-
: "alibaba-cn/
|
|
141
|
+
: "alibaba-cn/MiniMax/MiniMax-M2.5";
|
|
133
142
|
}
|
|
134
143
|
});
|
|
135
144
|
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Alibaba Coding Plan (China)
|
|
2
|
+
|
|
3
|
+
Access 8 Alibaba Coding Plan (China) models through Mastra's model router. Authentication is handled automatically using the `ALIBABA_CODING_PLAN_API_KEY` environment variable.
|
|
4
|
+
|
|
5
|
+
Learn more in the [Alibaba Coding Plan (China) documentation](https://help.aliyun.com/zh/model-studio/coding-plan).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
ALIBABA_CODING_PLAN_API_KEY=your-api-key
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Agent } from "@mastra/core/agent";
|
|
13
|
+
|
|
14
|
+
const agent = new Agent({
|
|
15
|
+
id: "my-agent",
|
|
16
|
+
name: "My Agent",
|
|
17
|
+
instructions: "You are a helpful assistant",
|
|
18
|
+
model: "alibaba-coding-plan-cn/MiniMax-M2.5"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Generate a response
|
|
22
|
+
const response = await agent.generate("Hello!");
|
|
23
|
+
|
|
24
|
+
// Stream a response
|
|
25
|
+
const stream = await agent.stream("Tell me a story");
|
|
26
|
+
for await (const chunk of stream) {
|
|
27
|
+
console.log(chunk);
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Alibaba Coding Plan (China) documentation](https://help.aliyun.com/zh/model-studio/coding-plan) for details.
|
|
32
|
+
|
|
33
|
+
## Models
|
|
34
|
+
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| --------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `alibaba-coding-plan-cn/glm-4.7` | 203K | | | | | | — | — |
|
|
38
|
+
| `alibaba-coding-plan-cn/glm-5` | 203K | | | | | | — | — |
|
|
39
|
+
| `alibaba-coding-plan-cn/kimi-k2.5` | 262K | | | | | | — | — |
|
|
40
|
+
| `alibaba-coding-plan-cn/MiniMax-M2.5` | 197K | | | | | | — | — |
|
|
41
|
+
| `alibaba-coding-plan-cn/qwen3-coder-next` | 262K | | | | | | — | — |
|
|
42
|
+
| `alibaba-coding-plan-cn/qwen3-coder-plus` | 1.0M | | | | | | — | — |
|
|
43
|
+
| `alibaba-coding-plan-cn/qwen3-max-2026-01-23` | 262K | | | | | | — | — |
|
|
44
|
+
| `alibaba-coding-plan-cn/qwen3.5-plus` | 1.0M | | | | | | — | — |
|
|
45
|
+
|
|
46
|
+
## Advanced configuration
|
|
47
|
+
|
|
48
|
+
### Custom headers
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
const agent = new Agent({
|
|
52
|
+
id: "custom-agent",
|
|
53
|
+
name: "custom-agent",
|
|
54
|
+
model: {
|
|
55
|
+
url: "https://coding.dashscope.aliyuncs.com/v1",
|
|
56
|
+
id: "alibaba-coding-plan-cn/MiniMax-M2.5",
|
|
57
|
+
apiKey: process.env.ALIBABA_CODING_PLAN_API_KEY,
|
|
58
|
+
headers: {
|
|
59
|
+
"X-Custom-Header": "value"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Dynamic model selection
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const agent = new Agent({
|
|
69
|
+
id: "dynamic-agent",
|
|
70
|
+
name: "Dynamic Agent",
|
|
71
|
+
model: ({ requestContext }) => {
|
|
72
|
+
const useAdvanced = requestContext.task === "complex";
|
|
73
|
+
return useAdvanced
|
|
74
|
+
? "alibaba-coding-plan-cn/qwen3.5-plus"
|
|
75
|
+
: "alibaba-coding-plan-cn/MiniMax-M2.5";
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Alibaba Coding Plan
|
|
2
|
+
|
|
3
|
+
Access 8 Alibaba Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ALIBABA_CODING_PLAN_API_KEY` environment variable.
|
|
4
|
+
|
|
5
|
+
Learn more in the [Alibaba Coding Plan documentation](https://www.alibabacloud.com/help/en/model-studio/coding-plan).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
ALIBABA_CODING_PLAN_API_KEY=your-api-key
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Agent } from "@mastra/core/agent";
|
|
13
|
+
|
|
14
|
+
const agent = new Agent({
|
|
15
|
+
id: "my-agent",
|
|
16
|
+
name: "My Agent",
|
|
17
|
+
instructions: "You are a helpful assistant",
|
|
18
|
+
model: "alibaba-coding-plan/MiniMax-M2.5"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Generate a response
|
|
22
|
+
const response = await agent.generate("Hello!");
|
|
23
|
+
|
|
24
|
+
// Stream a response
|
|
25
|
+
const stream = await agent.stream("Tell me a story");
|
|
26
|
+
for await (const chunk of stream) {
|
|
27
|
+
console.log(chunk);
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Alibaba Coding Plan documentation](https://www.alibabacloud.com/help/en/model-studio/coding-plan) for details.
|
|
32
|
+
|
|
33
|
+
## Models
|
|
34
|
+
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `alibaba-coding-plan/glm-4.7` | 203K | | | | | | — | — |
|
|
38
|
+
| `alibaba-coding-plan/glm-5` | 203K | | | | | | — | — |
|
|
39
|
+
| `alibaba-coding-plan/kimi-k2.5` | 262K | | | | | | — | — |
|
|
40
|
+
| `alibaba-coding-plan/MiniMax-M2.5` | 17K | | | | | | — | — |
|
|
41
|
+
| `alibaba-coding-plan/qwen3-coder-next` | 262K | | | | | | — | — |
|
|
42
|
+
| `alibaba-coding-plan/qwen3-coder-plus` | 1.0M | | | | | | — | — |
|
|
43
|
+
| `alibaba-coding-plan/qwen3-max-2026-01-23` | 262K | | | | | | — | — |
|
|
44
|
+
| `alibaba-coding-plan/qwen3.5-plus` | 1.0M | | | | | | — | — |
|
|
45
|
+
|
|
46
|
+
## Advanced configuration
|
|
47
|
+
|
|
48
|
+
### Custom headers
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
const agent = new Agent({
|
|
52
|
+
id: "custom-agent",
|
|
53
|
+
name: "custom-agent",
|
|
54
|
+
model: {
|
|
55
|
+
url: "https://coding-intl.dashscope.aliyuncs.com/v1",
|
|
56
|
+
id: "alibaba-coding-plan/MiniMax-M2.5",
|
|
57
|
+
apiKey: process.env.ALIBABA_CODING_PLAN_API_KEY,
|
|
58
|
+
headers: {
|
|
59
|
+
"X-Custom-Header": "value"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Dynamic model selection
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const agent = new Agent({
|
|
69
|
+
id: "dynamic-agent",
|
|
70
|
+
name: "Dynamic Agent",
|
|
71
|
+
model: ({ requestContext }) => {
|
|
72
|
+
const useAdvanced = requestContext.task === "complex";
|
|
73
|
+
return useAdvanced
|
|
74
|
+
? "alibaba-coding-plan/qwen3.5-plus"
|
|
75
|
+
: "alibaba-coding-plan/MiniMax-M2.5";
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
```
|
|
@@ -76,9 +76,9 @@ for await (const chunk of stream) {
|
|
|
76
76
|
| `alibaba/qwen3.5-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
77
77
|
| `alibaba/qwq-plus` | 131K | | | | | | $0.80 | $2 |
|
|
78
78
|
|
|
79
|
-
## Advanced
|
|
79
|
+
## Advanced configuration
|
|
80
80
|
|
|
81
|
-
### Custom
|
|
81
|
+
### Custom headers
|
|
82
82
|
|
|
83
83
|
```typescript
|
|
84
84
|
const agent = new Agent({
|
|
@@ -95,7 +95,7 @@ const agent = new Agent({
|
|
|
95
95
|
});
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
### Dynamic
|
|
98
|
+
### Dynamic model selection
|
|
99
99
|
|
|
100
100
|
```typescript
|
|
101
101
|
const agent = new Agent({
|
|
@@ -56,9 +56,9 @@ for await (const chunk of stream) {
|
|
|
56
56
|
| `anthropic/claude-sonnet-4-5-20250929` | 200K | | | | | | $3 | $15 |
|
|
57
57
|
| `anthropic/claude-sonnet-4-6` | 200K | | | | | | $3 | $15 |
|
|
58
58
|
|
|
59
|
-
## Advanced
|
|
59
|
+
## Advanced configuration
|
|
60
60
|
|
|
61
|
-
### Custom
|
|
61
|
+
### Custom headers
|
|
62
62
|
|
|
63
63
|
```typescript
|
|
64
64
|
const agent = new Agent({
|
|
@@ -74,7 +74,7 @@ const agent = new Agent({
|
|
|
74
74
|
});
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
### Dynamic
|
|
77
|
+
### Dynamic model selection
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
80
|
const agent = new Agent({
|
|
@@ -123,7 +123,7 @@ const response = await agent.generate("Hello!", {
|
|
|
123
123
|
|
|
124
124
|
**contextManagement** (`{ edits: ({ type: "clear_01"; trigger?: { type: "input_tokens"; value: number; } | undefined; keep?: "all" | { type: "thinking_turns"; value: number; } | undefined; } | { type: "compact_20260112"; trigger?: { ...; } | undefined; pauseAfterCompaction?: boolean | undefined; instructions?: string | undefined; })[]; } |...`)
|
|
125
125
|
|
|
126
|
-
## Direct
|
|
126
|
+
## Direct provider installation
|
|
127
127
|
|
|
128
128
|
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/anthropic) for more details.
|
|
129
129
|
|