@mastra/mcp-docs-server 1.3.9 → 1.3.10-alpha.2
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/code-mode.md +2 -2
- package/.docs/docs/agents/guardrails.md +5 -5
- package/.docs/docs/agents/human-in-the-loop.md +18 -5
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +66 -20
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/tools.md +10 -10
- package/.docs/docs/browser.md +13 -1
- package/.docs/docs/channels.md +33 -6
- package/.docs/docs/connections/a2a.md +1 -1
- package/.docs/docs/connections/acp.md +2 -2
- package/.docs/docs/connections/mcp.md +159 -50
- package/.docs/docs/connections/overview.md +1 -1
- package/.docs/docs/connections/sdk-agents.md +8 -8
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/experiments.md +2 -2
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/overview.md +4 -4
- package/.docs/docs/evals/quick-checks.md +2 -2
- package/.docs/docs/guides/build-an-eval-loop.md +3 -3
- package/.docs/docs/guides/context-engineering.md +13 -6
- package/.docs/docs/guides/mcp-authentication-authorization.md +2 -2
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +7 -7
- package/.docs/docs/harness/background-tasks.md +3 -3
- package/.docs/docs/harness/durable-agents.md +5 -5
- package/.docs/docs/harness/goals.md +5 -5
- package/.docs/docs/harness/overview.md +2 -2
- package/.docs/docs/harness/schedules.md +5 -5
- package/.docs/docs/index.md +6 -6
- package/.docs/docs/mastra-platform/connect/channels.md +1 -1
- package/.docs/docs/mastra-platform/connect/tools.md +4 -4
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/memory/memory-processors.md +7 -7
- package/.docs/docs/memory/message-history.md +5 -5
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +14 -14
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +2 -2
- package/.docs/docs/observability/logging.md +5 -5
- package/.docs/docs/observability/tracing/overview.md +1 -0
- package/.docs/docs/sandbox/filesystem.md +1 -0
- package/.docs/docs/sandbox/overview.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/request-context.md +3 -3
- package/.docs/docs/server/server-adapters.md +12 -204
- package/.docs/docs/signals/notifications.md +233 -0
- package/.docs/docs/signals/overview.md +94 -0
- package/.docs/docs/signals/running-across-processes.md +132 -0
- package/.docs/docs/signals/sending-signals.md +166 -0
- package/.docs/docs/signals/signal-providers.md +278 -0
- package/.docs/docs/signals/state-signals.md +103 -0
- package/.docs/docs/signals/thread-streams.md +94 -0
- package/.docs/docs/skills.md +4 -4
- package/.docs/docs/storage.md +1 -1
- package/.docs/docs/studio/editor.md +39 -23
- package/.docs/docs/subagents.md +6 -6
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/agentic-ui/openui.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +1 -1
- package/.docs/integrations/browsers/browser-viewer.md +1 -1
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +6 -6
- package/.docs/integrations/channels/discord.md +1 -1
- package/.docs/integrations/channels/github.md +2 -2
- package/.docs/integrations/channels/imessage.md +2 -50
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/teams.md +1 -1
- package/.docs/integrations/channels/telegram.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +1 -1
- package/.docs/integrations/databases/cloudflare-kv.md +4 -0
- package/.docs/integrations/databases/elasticsearch.md +1 -1
- package/.docs/integrations/databases/mongodb.md +1 -1
- package/.docs/integrations/databases/oracledb.md +1 -1
- package/.docs/integrations/databases/postgresql.md +1 -1
- package/.docs/integrations/databases/redis.md +1 -1
- package/.docs/integrations/databases/upstash.md +1 -1
- package/.docs/integrations/deploy/kubernetes.md +1 -1
- package/.docs/integrations/deploy/neon.md +2 -1
- package/.docs/integrations/deploy/render.md +2 -2
- package/.docs/integrations/file-storage/agentfs.md +1 -1
- package/.docs/integrations/file-storage/amazon-s3.md +20 -3
- package/.docs/integrations/file-storage/archil.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/google-drive.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +1 -1
- package/.docs/integrations/file-storage/neon.md +210 -0
- package/.docs/integrations/file-storage/vercel-files.md +5 -1
- package/.docs/integrations/frameworks/express.md +0 -64
- package/.docs/integrations/observability/langfuse.md +1 -1
- package/.docs/integrations/observability/langsmith.md +2 -2
- package/.docs/integrations/observability/opentelemetry.md +5 -5
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/blaxel.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +1 -1
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +4 -2
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +1 -1
- package/.docs/integrations/sandboxes/sprites.md +1 -1
- package/.docs/integrations/sandboxes/vercel.md +2 -2
- package/.docs/integrations/tools/brightdata.md +1 -1
- package/.docs/integrations/tools/firecrawl.md +1 -1
- package/.docs/integrations/tools/parallel.md +1 -1
- package/.docs/integrations/tools/perplexity.md +1 -1
- package/.docs/integrations/tools/tavily.md +1 -1
- package/.docs/integrations/voice/livekit.md +2 -2
- package/.docs/integrations.md +1 -0
- package/.docs/models/environment-variables.md +0 -2
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +2 -14
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +3 -2
- package/.docs/models/gateways/vercel.md +3 -9
- package/.docs/models/index.md +13 -15
- package/.docs/models/providers/302ai.md +3 -3
- package/.docs/models/providers/abacus.md +70 -110
- package/.docs/models/providers/aimlapi.md +171 -171
- package/.docs/models/providers/aki-io.md +5 -6
- package/.docs/models/providers/alibaba-cn.md +2 -2
- package/.docs/models/providers/alibaba.md +2 -2
- package/.docs/models/providers/ambient.md +1 -1
- package/.docs/models/providers/auriko.md +2 -2
- package/.docs/models/providers/baseten.md +4 -4
- package/.docs/models/providers/berget.md +3 -4
- package/.docs/models/providers/bothub.md +4 -4
- package/.docs/models/providers/boundless.md +0 -4
- package/.docs/models/providers/cline-pass.md +2 -8
- package/.docs/models/providers/commandcode.md +0 -1
- package/.docs/models/providers/coralbricks.md +1 -1
- package/.docs/models/providers/cortecs.md +3 -3
- package/.docs/models/providers/crossmodel.md +1 -3
- package/.docs/models/providers/crusoe.md +1 -7
- package/.docs/models/providers/daoxe.md +1 -1
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/digitalocean.md +6 -10
- package/.docs/models/providers/dinference.md +0 -3
- package/.docs/models/providers/edenai.md +12 -2
- package/.docs/models/providers/empiriolabs.md +0 -1
- package/.docs/models/providers/engy.md +2 -2
- package/.docs/models/providers/evroc.md +2 -2
- package/.docs/models/providers/fastrouter.md +41 -50
- package/.docs/models/providers/fireworks-ai.md +28 -23
- package/.docs/models/providers/friendli.md +4 -5
- package/.docs/models/providers/frogbot.md +2 -7
- package/.docs/models/providers/google.md +2 -5
- package/.docs/models/providers/greenpt.md +14 -20
- package/.docs/models/providers/groq.md +1 -1
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/iflowcn.md +2 -18
- package/.docs/models/providers/impossibl.md +2 -9
- package/.docs/models/providers/inceptron.md +8 -6
- package/.docs/models/providers/inco.md +1 -1
- package/.docs/models/providers/inference.md +5 -11
- package/.docs/models/providers/infomaniak.md +10 -12
- package/.docs/models/providers/io-net.md +11 -17
- package/.docs/models/providers/iteracompute.md +3 -3
- package/.docs/models/providers/jalapeno.md +14 -19
- package/.docs/models/providers/jiekou.md +53 -63
- package/.docs/models/providers/kenari.md +34 -53
- package/.docs/models/providers/kilo.md +12 -11
- package/.docs/models/providers/lilac.md +2 -8
- package/.docs/models/providers/llama.md +2 -11
- package/.docs/models/providers/llmgateway-providers.md +8 -16
- package/.docs/models/providers/llmgateway.md +9 -8
- package/.docs/models/providers/llmtr.md +1 -6
- package/.docs/models/providers/lowrouter.md +1 -1
- package/.docs/models/providers/lucidquery.md +2 -2
- package/.docs/models/providers/meganova.md +6 -7
- package/.docs/models/providers/melious.md +2 -7
- package/.docs/models/providers/mistral.md +4 -3
- package/.docs/models/providers/moark.md +0 -2
- package/.docs/models/providers/nan.md +1 -1
- package/.docs/models/providers/nano-gpt.md +16 -8
- package/.docs/models/providers/nearai.md +2 -1
- package/.docs/models/providers/neuralwatt.md +1 -4
- package/.docs/models/providers/novita-ai.md +2 -1
- package/.docs/models/providers/nvidia.md +15 -35
- package/.docs/models/providers/oci.md +0 -1
- package/.docs/models/providers/ofox.md +1 -1
- package/.docs/models/providers/ollama-cloud.md +2 -2
- package/.docs/models/providers/opencode-go.md +2 -3
- package/.docs/models/providers/opencode.md +85 -88
- package/.docs/models/providers/opper.md +1 -4
- package/.docs/models/providers/orcarouter.md +14 -16
- package/.docs/models/providers/pareto.md +1 -1
- package/.docs/models/providers/perplexity-agent.md +2 -12
- package/.docs/models/providers/pioneer.md +7 -7
- package/.docs/models/providers/poe.md +16 -70
- package/.docs/models/providers/prime.md +2 -1
- package/.docs/models/providers/qihang-ai.md +7 -11
- package/.docs/models/providers/qiniu-ai.md +9 -94
- package/.docs/models/providers/regolo-ai.md +5 -7
- package/.docs/models/providers/runinfra.md +1 -4
- package/.docs/models/providers/sarvam.md +1 -2
- package/.docs/models/providers/scaleway.md +12 -11
- package/.docs/models/providers/siliconflow-cn.md +35 -41
- package/.docs/models/providers/siliconflow.md +3 -6
- package/.docs/models/providers/stackit.md +2 -4
- package/.docs/models/providers/stepfun-ai.md +4 -4
- package/.docs/models/providers/stepfun.md +4 -4
- package/.docs/models/providers/submodel.md +1 -1
- package/.docs/models/providers/synthetic.md +0 -4
- package/.docs/models/providers/tempr.md +1 -4
- package/.docs/models/providers/tencent-coding-plan.md +3 -10
- package/.docs/models/providers/tensorx.md +0 -13
- package/.docs/models/providers/the-grid-ai.md +2 -1
- package/.docs/models/providers/tokengo.md +1 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +12 -11
- package/.docs/models/providers/umans-ai.md +11 -10
- package/.docs/models/providers/unorouter.md +0 -13
- package/.docs/models/providers/vancine.md +0 -1
- package/.docs/models/providers/vivgrid.md +3 -3
- package/.docs/models/providers/volcengine-coding-plan.md +8 -12
- package/.docs/models/providers/volcengine.md +12 -18
- package/.docs/models/providers/vultr.md +0 -2
- package/.docs/models/providers/wafer.ai.md +3 -7
- package/.docs/models/providers/xai.md +19 -3
- package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -4
- package/.docs/models/providers/xiaomi.md +4 -4
- package/.docs/models/providers/xpersona.md +0 -1
- package/.docs/models/providers/zenmux.md +105 -125
- package/.docs/models/providers.md +0 -2
- package/.docs/reference/acp/acp-agent.md +4 -4
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
- package/.docs/reference/agent-controller/session.md +10 -10
- package/.docs/reference/agents/agent.md +23 -47
- package/.docs/reference/agents/channels.md +13 -11
- package/.docs/reference/agents/durable-agent.md +13 -13
- package/.docs/reference/agents/generate.md +57 -3
- package/.docs/reference/agents/generateLegacy.md +2 -2
- package/.docs/reference/agents/getLLM.md +2 -2
- package/.docs/reference/agents/getMetadata.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/browser/agent-browser.md +1 -1
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +4 -4
- package/.docs/reference/channels/slack-provider.md +3 -0
- package/.docs/reference/cli/mastra.md +26 -0
- package/.docs/reference/client-js/agent-controller.md +2 -2
- package/.docs/reference/client-js/agents.md +18 -2
- package/.docs/reference/client-js/datasets.md +1 -1
- package/.docs/reference/client-js/observability.md +26 -1
- package/.docs/reference/coding-agent/build-base-prompt.md +1 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +8 -8
- package/.docs/reference/configuration.md +4 -4
- package/.docs/reference/connect/channels.md +1 -1
- package/.docs/reference/connect/credential.md +1 -1
- package/.docs/reference/connect/tools.md +8 -10
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-class.md +3 -3
- package/.docs/reference/core/mastra-model-gateway.md +1 -1
- package/.docs/reference/datasets/startExperiment.md +15 -0
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/evals/answer-relevancy.md +1 -1
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +1 -1
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-recall.md +3 -3
- package/.docs/reference/evals/context-relevance.md +11 -11
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +5 -5
- package/.docs/reference/evals/multi-turn-judge.md +2 -2
- package/.docs/reference/evals/noise-sensitivity.md +12 -12
- package/.docs/reference/evals/not-scorable.md +1 -1
- package/.docs/reference/evals/prompt-alignment.md +16 -16
- package/.docs/reference/evals/rubric.md +6 -6
- package/.docs/reference/evals/run-evals.md +1 -1
- package/.docs/reference/evals/summarization.md +4 -4
- package/.docs/reference/evals/tool-call-accuracy.md +4 -4
- package/.docs/reference/evals/toxicity.md +1 -1
- package/.docs/reference/file-based-agents/config.md +3 -3
- package/.docs/reference/file-based-agents/schedules.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +4 -4
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -1
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/memory-class.md +3 -3
- package/.docs/reference/memory/observational-memory.md +16 -16
- package/.docs/reference/memory/summarizeConversation.md +3 -3
- package/.docs/reference/memory/summarizeThread.md +3 -3
- package/.docs/reference/migrations/agentnetwork.md +4 -4
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/reference/migrations/vnext-to-standard-apis.md +2 -2
- package/.docs/reference/observability/tracing/advanced-queries.md +92 -11
- package/.docs/reference/observability/tracing/bridges/otel.md +1 -1
- package/.docs/reference/observability/tracing/exporters/langfuse.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +2 -0
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +2 -2
- package/.docs/reference/processors/cyber-refusal-handler.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +5 -5
- package/.docs/reference/processors/language-detector.md +1 -1
- package/.docs/reference/processors/message-history-processor.md +2 -2
- package/.docs/reference/processors/model-selection-processor.md +7 -7
- package/.docs/reference/processors/moderation-processor.md +3 -3
- package/.docs/reference/processors/pii-detector.md +2 -2
- package/.docs/reference/processors/prefill-error-handler.md +2 -2
- package/.docs/reference/processors/processor-interface.md +66 -10
- package/.docs/reference/processors/prompt-injection-detector.md +1 -1
- package/.docs/reference/processors/provider-history-compat.md +2 -2
- package/.docs/reference/processors/regex-filter-processor.md +1 -1
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +3 -3
- package/.docs/reference/processors/system-prompt-scrubber.md +2 -2
- package/.docs/reference/processors/token-cost-control.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +4 -4
- package/.docs/reference/processors/tool-call-filter.md +3 -3
- package/.docs/reference/processors/tool-search-processor.md +4 -4
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/working-memory-processor.md +2 -2
- package/.docs/reference/pubsub/lease-provider.md +2 -2
- package/.docs/reference/pubsub/redis-streams.md +11 -1
- package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/graph-rag-guide.md +2 -2
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/retrieval.md +13 -13
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/signals/create-notification-inbox-tool.md +4 -4
- package/.docs/reference/signals/notifications.md +249 -0
- package/.docs/reference/signals/task-signal-provider.md +2 -2
- package/.docs/reference/signals/thread-events.md +69 -0
- package/.docs/reference/storage/retention.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +68 -0
- package/.docs/reference/streaming/agents/stream.md +4 -4
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +19 -2
- package/.docs/reference/tools/mcp-client.md +202 -11
- package/.docs/reference/tools/mcp-server.md +7 -5
- package/.docs/reference/tools/task-tools.md +1 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -1
- package/.docs/reference/vectors/libsql.md +1 -1
- package/.docs/reference/vectors/mongodb.md +2 -2
- package/.docs/reference/vectors/oracledb.md +2 -2
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/turbopuffer.md +1 -1
- package/.docs/reference/vectors/upstash.md +1 -1
- package/.docs/reference/voice/overview.md +24 -24
- package/.docs/reference/voice/speech-to-speech.md +6 -6
- package/.docs/reference/voice/speech-to-text.md +1 -1
- package/.docs/reference/voice/text-to-speech.md +1 -1
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/workflows/run-methods/timeTravel.md +1 -1
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/.docs/reference/workspace/platform-filesystem.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +21 -2
- package/.docs/reference/workspace/process-manager.md +13 -2
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +12 -12
- package/package.json +11 -11
- package/.docs/docs/guides/mcp-events.md +0 -306
- package/.docs/docs/harness/signal-providers.md +0 -212
- package/.docs/docs/harness/signals.md +0 -546
- package/.docs/docs/mastra-platform/connect/end-user-connections.md +0 -116
- package/.docs/reference/connect/user-connect-routes.md +0 -68
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Xiaomi
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 6 Xiaomi models through Mastra's model router. Authentication is handled automatically using the `XIAOMI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Xiaomi documentation](https://platform.xiaomimimo.com/#/docs).
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ const agent = new Agent({
|
|
|
19
19
|
id: "my-agent",
|
|
20
20
|
name: "My Agent",
|
|
21
21
|
instructions: "You are a helpful assistant",
|
|
22
|
-
model: "xiaomi/mimo-v2
|
|
22
|
+
model: "xiaomi/mimo-v2.5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -54,7 +54,7 @@ const agent = new Agent({
|
|
|
54
54
|
name: "custom-agent",
|
|
55
55
|
model: {
|
|
56
56
|
url: "https://api.xiaomimimo.com/v1",
|
|
57
|
-
id: "xiaomi/mimo-v2
|
|
57
|
+
id: "xiaomi/mimo-v2.5",
|
|
58
58
|
apiKey: process.env.XIAOMI_API_KEY,
|
|
59
59
|
headers: {
|
|
60
60
|
"X-Custom-Header": "value"
|
|
@@ -73,7 +73,7 @@ const agent = new Agent({
|
|
|
73
73
|
const useAdvanced = requestContext.task === "complex";
|
|
74
74
|
return useAdvanced
|
|
75
75
|
? "xiaomi/mimo-v2.6-pro-ultraspeed"
|
|
76
|
-
: "xiaomi/mimo-v2
|
|
76
|
+
: "xiaomi/mimo-v2.5";
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
```
|
|
@@ -50,7 +50,6 @@ for await (const chunk of stream) {
|
|
|
50
50
|
| `xpersona/gpt-5.6-sol` | 372K | | | | | | $2 | $12 |
|
|
51
51
|
| `xpersona/gpt-5.6-terra` | 372K | | | | | | $2 | $2 |
|
|
52
52
|
| `xpersona/xpersona-frieren-coder` | 1.0M | | | | | | $2 | $6 |
|
|
53
|
-
| `xpersona/xpersona-gpt-5.5` | 1.0M | | | | | | $3 | $18 |
|
|
54
53
|
|
|
55
54
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
56
55
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# ZenMux
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 110 ZenMux models through Mastra's model router. Authentication is handled automatically using the `ZENMUX_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [ZenMux documentation](https://docs.zenmux.ai).
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ const agent = new Agent({
|
|
|
19
19
|
id: "my-agent",
|
|
20
20
|
name: "My Agent",
|
|
21
21
|
instructions: "You are a helpful assistant",
|
|
22
|
-
model: "zenmux/anthropic/claude-
|
|
22
|
+
model: "zenmux/anthropic/claude-fable-5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -36,127 +36,107 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `zenmux/anthropic/claude-fable-5`
|
|
42
|
-
| `zenmux/anthropic/claude-fable-5.1`
|
|
43
|
-
| `zenmux/anthropic/claude-haiku-4.5`
|
|
44
|
-
| `zenmux/anthropic/claude-opus-4`
|
|
45
|
-
| `zenmux/anthropic/claude-opus-4.
|
|
46
|
-
| `zenmux/anthropic/claude-opus-4.
|
|
47
|
-
| `zenmux/anthropic/claude-opus-4.
|
|
48
|
-
| `zenmux/anthropic/claude-opus-4.
|
|
49
|
-
| `zenmux/anthropic/claude-opus-
|
|
50
|
-
| `zenmux/anthropic/claude-
|
|
51
|
-
| `zenmux/anthropic/claude-sonnet-4`
|
|
52
|
-
| `zenmux/anthropic/claude-sonnet-
|
|
53
|
-
| `zenmux/
|
|
54
|
-
| `zenmux/
|
|
55
|
-
| `zenmux/
|
|
56
|
-
| `zenmux/
|
|
57
|
-
| `zenmux/
|
|
58
|
-
| `zenmux/
|
|
59
|
-
| `zenmux/
|
|
60
|
-
| `zenmux/deepseek/deepseek-
|
|
61
|
-
| `zenmux/deepseek/deepseek-v4
|
|
62
|
-
| `zenmux/
|
|
63
|
-
| `zenmux/
|
|
64
|
-
| `zenmux/google/gemini-2.5-
|
|
65
|
-
| `zenmux/google/gemini-
|
|
66
|
-
| `zenmux/google/gemini-
|
|
67
|
-
| `zenmux/google/gemini-3
|
|
68
|
-
| `zenmux/google/gemini-3.1-
|
|
69
|
-
| `zenmux/google/gemini-3.
|
|
70
|
-
| `zenmux/
|
|
71
|
-
| `zenmux/
|
|
72
|
-
| `zenmux/minimax/minimax-m2`
|
|
73
|
-
| `zenmux/minimax/minimax-m2.1`
|
|
74
|
-
| `zenmux/minimax/minimax-m2.5`
|
|
75
|
-
| `zenmux/minimax/minimax-m2.5-lightning`
|
|
76
|
-
| `zenmux/minimax/minimax-m2.7`
|
|
77
|
-
| `zenmux/minimax/minimax-m2.7-highspeed`
|
|
78
|
-
| `zenmux/minimax/minimax-m3`
|
|
79
|
-
| `zenmux/minimax/minimax-m3.1-flash`
|
|
80
|
-
| `zenmux/moonshotai/kimi-k2.
|
|
81
|
-
| `zenmux/moonshotai/kimi-k2.
|
|
82
|
-
| `zenmux/moonshotai/kimi-k2.7-code`
|
|
83
|
-
| `zenmux/moonshotai/kimi-
|
|
84
|
-
| `zenmux/
|
|
85
|
-
| `zenmux/
|
|
86
|
-
| `zenmux/
|
|
87
|
-
| `zenmux/openai/gpt-5`
|
|
88
|
-
| `zenmux/openai/gpt-5-codex`
|
|
89
|
-
| `zenmux/openai/gpt-5.1`
|
|
90
|
-
| `zenmux/openai/gpt-5.
|
|
91
|
-
| `zenmux/openai/gpt-5.
|
|
92
|
-
| `zenmux/openai/gpt-5.2`
|
|
93
|
-
| `zenmux/openai/gpt-5.
|
|
94
|
-
| `zenmux/openai/gpt-5.
|
|
95
|
-
| `zenmux/openai/gpt-5.
|
|
96
|
-
| `zenmux/openai/gpt-5.
|
|
97
|
-
| `zenmux/openai/gpt-5.4`
|
|
98
|
-
| `zenmux/openai/gpt-5.
|
|
99
|
-
| `zenmux/openai/gpt-5.
|
|
100
|
-
| `zenmux/openai/gpt-5.
|
|
101
|
-
| `zenmux/openai/gpt-5.
|
|
102
|
-
| `zenmux/openai/gpt-5.
|
|
103
|
-
| `zenmux/openai/gpt-
|
|
104
|
-
| `zenmux/openai/gpt-
|
|
105
|
-
| `zenmux/
|
|
106
|
-
| `zenmux/
|
|
107
|
-
| `zenmux/
|
|
108
|
-
| `zenmux/
|
|
109
|
-
| `zenmux/qwen/qwen3-
|
|
110
|
-
| `zenmux/
|
|
111
|
-
| `zenmux/
|
|
112
|
-
| `zenmux/
|
|
113
|
-
| `zenmux/
|
|
114
|
-
| `zenmux/
|
|
115
|
-
| `zenmux/
|
|
116
|
-
| `zenmux/
|
|
117
|
-
| `zenmux/
|
|
118
|
-
| `zenmux/
|
|
119
|
-
| `zenmux/
|
|
120
|
-
| `zenmux/
|
|
121
|
-
| `zenmux/
|
|
122
|
-
| `zenmux/
|
|
123
|
-
| `zenmux/
|
|
124
|
-
| `zenmux/
|
|
125
|
-
| `zenmux/
|
|
126
|
-
| `zenmux/
|
|
127
|
-
| `zenmux/
|
|
128
|
-
| `zenmux/
|
|
129
|
-
| `zenmux/
|
|
130
|
-
| `zenmux/
|
|
131
|
-
| `zenmux/
|
|
132
|
-
| `zenmux/
|
|
133
|
-
| `zenmux/
|
|
134
|
-
| `zenmux/
|
|
135
|
-
| `zenmux/
|
|
136
|
-
| `zenmux/
|
|
137
|
-
| `zenmux/
|
|
138
|
-
| `zenmux/
|
|
139
|
-
| `zenmux/
|
|
140
|
-
| `zenmux/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $1 | $3 |
|
|
141
|
-
| `zenmux/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
142
|
-
| `zenmux/z-ai/glm-4.5` | 128K | | | | | | $0.29 | $1 |
|
|
143
|
-
| `zenmux/z-ai/glm-4.5-air` | 128K | | | | | | $0.12 | $0.29 |
|
|
144
|
-
| `zenmux/z-ai/glm-4.6` | 200K | | | | | | $0.29 | $1 |
|
|
145
|
-
| `zenmux/z-ai/glm-4.6v` | 200K | | | | | | $0.15 | $0.44 |
|
|
146
|
-
| `zenmux/z-ai/glm-4.6v-flash` | 200K | | | | | | $0.02 | $0.22 |
|
|
147
|
-
| `zenmux/z-ai/glm-4.6v-flash-free` | 200K | | | | | | — | — |
|
|
148
|
-
| `zenmux/z-ai/glm-4.7` | 200K | | | | | | $0.29 | $1 |
|
|
149
|
-
| `zenmux/z-ai/glm-4.7-flash-free` | 200K | | | | | | — | — |
|
|
150
|
-
| `zenmux/z-ai/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.44 |
|
|
151
|
-
| `zenmux/z-ai/glm-5` | 200K | | | | | | $0.58 | $3 |
|
|
152
|
-
| `zenmux/z-ai/glm-5-turbo` | 200K | | | | | | $0.73 | $3 |
|
|
153
|
-
| `zenmux/z-ai/glm-5.1` | 200K | | | | | | $0.88 | $4 |
|
|
154
|
-
| `zenmux/z-ai/glm-5.2` | 1.0M | | | | | | $0.98 | $3 |
|
|
155
|
-
| `zenmux/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
156
|
-
| `zenmux/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
157
|
-
| `zenmux/z-ai/glm-5.3-flashx` | 1.0M | | | | | | $0.38 | $1 |
|
|
158
|
-
| `zenmux/z-ai/glm-5v-turbo` | 200K | | | | | | $0.73 | $3 |
|
|
159
|
-
| `zenmux/z-ai/glm-image` | 10K | | | | | | — | — |
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| -------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `zenmux/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
42
|
+
| `zenmux/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
|
|
43
|
+
| `zenmux/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
44
|
+
| `zenmux/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
45
|
+
| `zenmux/anthropic/claude-opus-4.5` | 200K | | | | | | $5 | $25 |
|
|
46
|
+
| `zenmux/anthropic/claude-opus-4.6` | 1.0M | | | | | | $5 | $25 |
|
|
47
|
+
| `zenmux/anthropic/claude-opus-4.7` | 1.0M | | | | | | $5 | $25 |
|
|
48
|
+
| `zenmux/anthropic/claude-opus-4.8` | 1.0M | | | | | | $5 | $25 |
|
|
49
|
+
| `zenmux/anthropic/claude-opus-5.5` | 1.0M | | | | | | $4 | $20 |
|
|
50
|
+
| `zenmux/anthropic/claude-sonnet-4.5` | 1.0M | | | | | | $3 | $15 |
|
|
51
|
+
| `zenmux/anthropic/claude-sonnet-4.6` | 1.0M | | | | | | $3 | $15 |
|
|
52
|
+
| `zenmux/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
53
|
+
| `zenmux/baidu/ernie-5.0-thinking-preview` | 128K | | | | | | $0.84 | $3 |
|
|
54
|
+
| `zenmux/bytedance/doubao-seed-1.8` | 256K | | | | | | $0.11 | $0.28 |
|
|
55
|
+
| `zenmux/bytedance/doubao-seed-2.0-code` | 256K | | | | | | $0.45 | $2 |
|
|
56
|
+
| `zenmux/bytedance/doubao-seed-2.0-lite` | 256K | | | | | | $0.09 | $0.51 |
|
|
57
|
+
| `zenmux/bytedance/doubao-seed-2.0-mini` | 256K | | | | | | $0.03 | $0.28 |
|
|
58
|
+
| `zenmux/bytedance/doubao-seed-2.0-pro` | 256K | | | | | | $0.45 | $2 |
|
|
59
|
+
| `zenmux/bytedance/doubao-seed-code` | 256K | | | | | | $0.17 | $1 |
|
|
60
|
+
| `zenmux/deepseek/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.44 |
|
|
61
|
+
| `zenmux/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
62
|
+
| `zenmux/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
63
|
+
| `zenmux/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.07 | $0.30 |
|
|
64
|
+
| `zenmux/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
65
|
+
| `zenmux/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
66
|
+
| `zenmux/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
67
|
+
| `zenmux/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
68
|
+
| `zenmux/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
69
|
+
| `zenmux/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
70
|
+
| `zenmux/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
71
|
+
| `zenmux/inclusionai/ring-2.6-1t` | 262K | | | | | | $0.13 | $1 |
|
|
72
|
+
| `zenmux/minimax/minimax-m2` | 204K | | | | | | $0.30 | $1 |
|
|
73
|
+
| `zenmux/minimax/minimax-m2.1` | 204K | | | | | | $0.30 | $1 |
|
|
74
|
+
| `zenmux/minimax/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
75
|
+
| `zenmux/minimax/minimax-m2.5-lightning` | 205K | | | | | | $0.60 | $2 |
|
|
76
|
+
| `zenmux/minimax/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
77
|
+
| `zenmux/minimax/minimax-m2.7-highspeed` | 205K | | | | | | $0.61 | $2 |
|
|
78
|
+
| `zenmux/minimax/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
79
|
+
| `zenmux/minimax/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
80
|
+
| `zenmux/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
81
|
+
| `zenmux/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
82
|
+
| `zenmux/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
83
|
+
| `zenmux/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
84
|
+
| `zenmux/openai/chat-latest` | 400K | | | | | | $5 | $30 |
|
|
85
|
+
| `zenmux/openai/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
86
|
+
| `zenmux/openai/gpt-5-codex` | 400K | | | | | | $1 | $10 |
|
|
87
|
+
| `zenmux/openai/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
88
|
+
| `zenmux/openai/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
89
|
+
| `zenmux/openai/gpt-5.1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
90
|
+
| `zenmux/openai/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
91
|
+
| `zenmux/openai/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
92
|
+
| `zenmux/openai/gpt-5.2-pro` | 400K | | | | | | $21 | $168 |
|
|
93
|
+
| `zenmux/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
94
|
+
| `zenmux/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
95
|
+
| `zenmux/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
96
|
+
| `zenmux/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
97
|
+
| `zenmux/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
98
|
+
| `zenmux/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
99
|
+
| `zenmux/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
100
|
+
| `zenmux/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
101
|
+
| `zenmux/openai/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
102
|
+
| `zenmux/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
103
|
+
| `zenmux/openai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
104
|
+
| `zenmux/openai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
105
|
+
| `zenmux/qwen/qwen3.5-flash` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
106
|
+
| `zenmux/qwen/qwen3.5-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
107
|
+
| `zenmux/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
108
|
+
| `zenmux/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
109
|
+
| `zenmux/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
110
|
+
| `zenmux/stepfun/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
111
|
+
| `zenmux/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
112
|
+
| `zenmux/x-ai/grok-4.2-fast` | 2.0M | | | | | | $2 | $6 |
|
|
113
|
+
| `zenmux/x-ai/grok-4.2-fast-non-reasoning` | 2.0M | | | | | | $2 | $6 |
|
|
114
|
+
| `zenmux/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
115
|
+
| `zenmux/x-ai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
116
|
+
| `zenmux/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
117
|
+
| `zenmux/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
118
|
+
| `zenmux/x-ai/grok-imagine-image-2.0` | 66K | | | | | | — | — |
|
|
119
|
+
| `zenmux/x-ai/grok-voice-stt-1.0` | 15K | | | | | | — | — |
|
|
120
|
+
| `zenmux/x-ai/grok-voice-tts-1.0` | 15K | | | | | | — | — |
|
|
121
|
+
| `zenmux/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
122
|
+
| `zenmux/z-ai/glm-4.5` | 128K | | | | | | $0.29 | $1 |
|
|
123
|
+
| `zenmux/z-ai/glm-4.5-air` | 128K | | | | | | $0.12 | $0.29 |
|
|
124
|
+
| `zenmux/z-ai/glm-4.6` | 200K | | | | | | $0.29 | $1 |
|
|
125
|
+
| `zenmux/z-ai/glm-4.6v` | 200K | | | | | | $0.15 | $0.44 |
|
|
126
|
+
| `zenmux/z-ai/glm-4.6v-flash` | 200K | | | | | | $0.02 | $0.22 |
|
|
127
|
+
| `zenmux/z-ai/glm-4.6v-flash-free` | 200K | | | | | | — | — |
|
|
128
|
+
| `zenmux/z-ai/glm-4.7` | 200K | | | | | | $0.29 | $1 |
|
|
129
|
+
| `zenmux/z-ai/glm-4.7-flash-free` | 200K | | | | | | — | — |
|
|
130
|
+
| `zenmux/z-ai/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.44 |
|
|
131
|
+
| `zenmux/z-ai/glm-5` | 200K | | | | | | $0.58 | $3 |
|
|
132
|
+
| `zenmux/z-ai/glm-5-turbo` | 200K | | | | | | $0.73 | $3 |
|
|
133
|
+
| `zenmux/z-ai/glm-5.1` | 200K | | | | | | $0.88 | $4 |
|
|
134
|
+
| `zenmux/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
135
|
+
| `zenmux/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
136
|
+
| `zenmux/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.07 | $0.25 |
|
|
137
|
+
| `zenmux/z-ai/glm-5.3-flashx` | 1.0M | | | | | | $0.38 | $1 |
|
|
138
|
+
| `zenmux/z-ai/glm-5v-turbo` | 200K | | | | | | $0.73 | $3 |
|
|
139
|
+
| `zenmux/z-ai/glm-image` | 10K | | | | | | — | — |
|
|
160
140
|
|
|
161
141
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
162
142
|
|
|
@@ -170,7 +150,7 @@ const agent = new Agent({
|
|
|
170
150
|
name: "custom-agent",
|
|
171
151
|
model: {
|
|
172
152
|
url: "https://zenmux.ai/api/v1",
|
|
173
|
-
id: "zenmux/anthropic/claude-
|
|
153
|
+
id: "zenmux/anthropic/claude-fable-5",
|
|
174
154
|
apiKey: process.env.ZENMUX_API_KEY,
|
|
175
155
|
headers: {
|
|
176
156
|
"X-Custom-Header": "value"
|
|
@@ -189,7 +169,7 @@ const agent = new Agent({
|
|
|
189
169
|
const useAdvanced = requestContext.task === "complex";
|
|
190
170
|
return useAdvanced
|
|
191
171
|
? "zenmux/z-ai/glm-image"
|
|
192
|
-
: "zenmux/anthropic/claude-
|
|
172
|
+
: "zenmux/anthropic/claude-fable-5";
|
|
193
173
|
}
|
|
194
174
|
});
|
|
195
175
|
```
|
|
@@ -83,7 +83,6 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
83
83
|
- [Hetzner](https://mastra.ai/models/providers/hetzner)
|
|
84
84
|
- [HPC-AI](https://mastra.ai/models/providers/hpc-ai)
|
|
85
85
|
- [Hugging Face](https://mastra.ai/models/providers/huggingface)
|
|
86
|
-
- [iFlow](https://mastra.ai/models/providers/iflowcn)
|
|
87
86
|
- [Impossibl](https://mastra.ai/models/providers/impossibl)
|
|
88
87
|
- [Inception](https://mastra.ai/models/providers/inception)
|
|
89
88
|
- [Inceptron](https://mastra.ai/models/providers/inceptron)
|
|
@@ -105,7 +104,6 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
105
104
|
- [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan)
|
|
106
105
|
- [Lilac](https://mastra.ai/models/providers/lilac)
|
|
107
106
|
- [Liquid Inference](https://mastra.ai/models/providers/liquid)
|
|
108
|
-
- [Llama](https://mastra.ai/models/providers/llama)
|
|
109
107
|
- [LLM Gateway](https://mastra.ai/models/providers/llmgateway-providers)
|
|
110
108
|
- [LLM Tech](https://mastra.ai/models/providers/llmtech)
|
|
111
109
|
- [LLMTR](https://mastra.ai/models/providers/llmtr)
|
|
@@ -29,7 +29,7 @@ export const codeSupervisor = new Agent({
|
|
|
29
29
|
id: 'code-supervisor',
|
|
30
30
|
name: 'Code Supervisor',
|
|
31
31
|
instructions: 'Delegate code editing tasks to the code-agent subagent.',
|
|
32
|
-
model: 'openai/gpt-
|
|
32
|
+
model: 'openai/gpt-6.1-sol',
|
|
33
33
|
agents: {
|
|
34
34
|
codeAgent,
|
|
35
35
|
},
|
|
@@ -48,7 +48,7 @@ export const claudeCodeAgent = new AcpAgent({
|
|
|
48
48
|
command: 'npx',
|
|
49
49
|
args: ['@agentclientprotocol/claude-agent-acp'],
|
|
50
50
|
cwd: process.cwd(),
|
|
51
|
-
model: 'claude-sonnet-
|
|
51
|
+
model: 'claude-sonnet-5-5',
|
|
52
52
|
})
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -132,7 +132,7 @@ Starts the ACP process if needed and returns the model list advertised by the AC
|
|
|
132
132
|
|
|
133
133
|
```typescript
|
|
134
134
|
const models = await codeAgent.getAvailableModels()
|
|
135
|
-
// [{ modelId: 'claude-sonnet-
|
|
135
|
+
// [{ modelId: 'claude-sonnet-5-5', name: 'Claude Sonnet' }, ...]
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
#### `setModel(modelId)`
|
|
@@ -140,7 +140,7 @@ const models = await codeAgent.getAvailableModels()
|
|
|
140
140
|
Selects a model for the active ACP session. If the ACP agent advertises available models, the model ID must match one of them.
|
|
141
141
|
|
|
142
142
|
```typescript
|
|
143
|
-
await codeAgent.setModel('claude-sonnet-
|
|
143
|
+
await codeAgent.setModel('claude-sonnet-5-5')
|
|
144
144
|
```
|
|
145
145
|
|
|
146
146
|
## Session lifecycle
|
|
@@ -28,7 +28,7 @@ export const codeSupervisor = new Agent({
|
|
|
28
28
|
id: 'code-supervisor',
|
|
29
29
|
name: 'Code Supervisor',
|
|
30
30
|
instructions: 'Use the code-agent tool when a task requires repository inspection or code edits.',
|
|
31
|
-
model: 'openai/gpt-
|
|
31
|
+
model: 'openai/gpt-6.1-sol',
|
|
32
32
|
tools: {
|
|
33
33
|
codeAgentTool,
|
|
34
34
|
},
|
|
@@ -21,7 +21,7 @@ const agent = new Agent({
|
|
|
21
21
|
id: 'coding-agent',
|
|
22
22
|
name: 'Coding agent',
|
|
23
23
|
instructions: 'Help with software engineering tasks.',
|
|
24
|
-
model: 'anthropic/claude-sonnet-
|
|
24
|
+
model: 'anthropic/claude-sonnet-5-5',
|
|
25
25
|
})
|
|
26
26
|
|
|
27
27
|
const controller = new AgentController({
|
|
@@ -348,7 +348,7 @@ Returns: `Promise<StorageListMessagesOutput>` with controller-format messages.
|
|
|
348
348
|
|
|
349
349
|
#### `generateThreadTitle(options)`
|
|
350
350
|
|
|
351
|
-
Generate and store a title from a thread's conversation without creating a Session. `threadId` is required. `sessionId`, `model`, and `requestContext
|
|
351
|
+
Generate and store a title from a thread's conversation without creating a Session. `threadId` is required. Optional fields include `sessionId`, `model`, and `requestContext`. Passing `sessionId` borrows a live session's agent and request context. The method throws when the thread doesn't exist and returns `undefined` when the model produces no title.
|
|
352
352
|
|
|
353
353
|
```typescript
|
|
354
354
|
const title = await controller.generateThreadTitle({
|
|
@@ -112,7 +112,7 @@ Queue a message for the next run, or send it immediately while the session is id
|
|
|
112
112
|
|
|
113
113
|
#### `queueSignal(signal, { requestContext?, tracingContext?, tracingOptions? }?)`
|
|
114
114
|
|
|
115
|
-
Queue a typed signal for the next run, or send it immediately while the session is idle. The signal keeps its `type`, `tagName`, and `attributes`.
|
|
115
|
+
Queue a typed signal for the next run, or send it immediately while the session is idle. The signal keeps its `type`, `tagName`, and `attributes`. Set `signal.author` to record an author, because the session doesn't stamp one from `requestContext` as it does for `queueMessage()`.
|
|
116
116
|
|
|
117
117
|
```typescript
|
|
118
118
|
await session.queueSignal({
|
|
@@ -252,7 +252,7 @@ Resume a suspended tool with application-provided data. Supply `toolCallId` for
|
|
|
252
252
|
|
|
253
253
|
An addressed resume uses the source thread's mode, model, and thread-owned preferences, without selecting that thread or replacing the active thread's subscription. Tool state callbacks remain bound to the source even if you switch threads during execution. Host-owned custom state and permission rules remain shared.
|
|
254
254
|
|
|
255
|
-
After a process restart, a full address can recover a persisted suspension through the controller's configured agents. Recovery requires a uniquely identified originating agent and the existing resume authorization checks. A setup failure leaves the prompt retryable
|
|
255
|
+
After a process restart, a full address can recover a persisted suspension through the controller's configured agents. Recovery requires a uniquely identified originating agent and the existing resume authorization checks. A setup failure leaves the prompt retryable without finishing another thread's active run.
|
|
256
256
|
|
|
257
257
|
```typescript
|
|
258
258
|
await session.respondToToolSuspension({
|
|
@@ -326,7 +326,7 @@ Create a thread, bind the session to it, and open its event stream. Pass `reques
|
|
|
326
326
|
|
|
327
327
|
For a session created with `createInitialThread: false`, explicit mode, model, and thread-preference selections made before its first binding seed the first new thread. This also applies to `ensureId()` and the first message. Failed creation leaves those selections available for retry.
|
|
328
328
|
|
|
329
|
-
After the session has bound a conversation,
|
|
329
|
+
After the session has bound a conversation, each new thread uses controller defaults rather than the previous conversation's choices, even if you clear or delete the binding. Opening an existing thread restores that thread's settings instead of applying unbound startup selections.
|
|
330
330
|
|
|
331
331
|
```typescript
|
|
332
332
|
const thread = await session.thread.create({
|
|
@@ -532,7 +532,7 @@ const mode = session.mode.resolve()
|
|
|
532
532
|
|
|
533
533
|
### `session.mode.switch({ modeId })`
|
|
534
534
|
|
|
535
|
-
Switch to another mode
|
|
535
|
+
Switch to another mode, persist the mode on the active thread, and emit `mode_changed`. The active model stays the same unless you switch it separately, which is necessary when your host assigns different models to different modes.
|
|
536
536
|
|
|
537
537
|
```typescript
|
|
538
538
|
await session.mode.switch({ modeId: 'build' })
|
|
@@ -573,7 +573,7 @@ if (session.model.hasSelection()) {
|
|
|
573
573
|
Set the active model in memory without persisting it, reporting model use, or emitting a `model_changed` event.
|
|
574
574
|
|
|
575
575
|
```typescript
|
|
576
|
-
session.model.set({ modelId: 'anthropic/claude-sonnet-
|
|
576
|
+
session.model.set({ modelId: 'anthropic/claude-sonnet-5-5' })
|
|
577
577
|
```
|
|
578
578
|
|
|
579
579
|
### `session.model.switch(modelId, options?)`
|
|
@@ -583,7 +583,7 @@ Switch the session's active model. The model ID is persisted as the thread's `cu
|
|
|
583
583
|
Pass `{ thinkingLevel }` as the second argument to switch and persist both values in one operation. The level must be `'off'`, `'low'`, `'medium'`, `'high'`, `'xhigh'`, or `'max'`, and the controller's state schema must accept it. Both live values are updated before events are emitted. Omitting the option preserves the existing thinking-level override. Every `model_changed` event includes the current `{ modelId, thinkingLevel }`, even when the thinking level is unchanged. The level is `undefined` when the session has no override.
|
|
584
584
|
|
|
585
585
|
```typescript
|
|
586
|
-
await session.model.switch('anthropic/claude-sonnet-
|
|
586
|
+
await session.model.switch('anthropic/claude-sonnet-5-5', {
|
|
587
587
|
thinkingLevel: 'high',
|
|
588
588
|
})
|
|
589
589
|
```
|
|
@@ -632,7 +632,7 @@ Switch one role between automatic and explicit selection. Pass `'auto'` to follo
|
|
|
632
632
|
```typescript
|
|
633
633
|
await session.om.observer.switchModel({ modelId: 'auto' })
|
|
634
634
|
await session.om.reflector.switchModel({
|
|
635
|
-
modelId: 'anthropic/claude-haiku-
|
|
635
|
+
modelId: 'anthropic/claude-haiku-5-5',
|
|
636
636
|
})
|
|
637
637
|
```
|
|
638
638
|
|
|
@@ -692,11 +692,11 @@ Set the subagent model ID. Pass an `agentType` to set a per-type override, or om
|
|
|
692
692
|
|
|
693
693
|
```typescript
|
|
694
694
|
// Set the global subagent model
|
|
695
|
-
await session.subagents.model.set({ modelId: 'anthropic/claude-sonnet-
|
|
695
|
+
await session.subagents.model.set({ modelId: 'anthropic/claude-sonnet-5-5' })
|
|
696
696
|
|
|
697
697
|
// Set a per-type override
|
|
698
698
|
await session.subagents.model.set({
|
|
699
|
-
modelId: 'anthropic/claude-haiku-
|
|
699
|
+
modelId: 'anthropic/claude-haiku-5-5',
|
|
700
700
|
agentType: 'explore',
|
|
701
701
|
})
|
|
702
702
|
```
|
|
@@ -871,7 +871,7 @@ const added = await session.state.update(current => ({
|
|
|
871
871
|
|
|
872
872
|
A `Session` is a live runtime object. Its event bus, arbitrary custom state, permission rules, permission grants, follow-ups, and active stream don't automatically survive controller or process recreation. The host must restore the host-owned state it needs.
|
|
873
873
|
|
|
874
|
-
Configured storage persists threads and messages along with token usage, while thread settings restore mode, model, and supported preferences. Restored settings can include thinking level, observational memory, and subagent model selections with per-agent-type overrides. Persisted suspended runs can be recovered using their full suspension address and originating agent
|
|
874
|
+
Configured storage persists threads and messages along with token usage, while thread settings restore mode, model, and supported preferences. Restored settings can include thinking level, observational memory, and subagent model selections with per-agent-type overrides. Persisted suspended runs can be recovered using their full suspension address and originating agent, but arbitrary custom state still requires host-managed persistence.
|
|
875
875
|
|
|
876
876
|
While a run retains a source-thread view, successful in-memory preference writes remain available when returning to that thread even if best-effort metadata persistence fails. A cold restart can recover only persisted settings and controller defaults.
|
|
877
877
|
|