@mastra/mcp-docs-server 1.3.10-alpha.6 → 1.3.10-alpha.8
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/guardrails.md +8 -0
- package/.docs/docs/agents/human-in-the-loop.md +9 -0
- package/.docs/docs/agents/processors.md +3 -0
- package/.docs/docs/agents/tools.md +5 -0
- package/.docs/docs/channels.md +15 -0
- package/.docs/docs/deployment/mastra-server.md +2 -0
- package/.docs/docs/deployment/monorepo.md +2 -0
- package/.docs/docs/evals/overview.md +2 -0
- package/.docs/docs/harness/background-tasks.md +4 -0
- package/.docs/docs/harness/durable-agents.md +5 -0
- package/.docs/docs/harness/goals.md +2 -0
- package/.docs/docs/harness/schedules.md +5 -0
- package/.docs/docs/mastra-platform/connect/providers.md +27 -26
- package/.docs/docs/mastra-platform/deploy.md +2 -0
- package/.docs/docs/mastra-platform/server.md +10 -6
- package/.docs/docs/mastra-platform/studio.md +1 -1
- package/.docs/docs/mastra-platform/system-environment-variables.md +3 -0
- package/.docs/docs/mastra-platform/workspaces.md +1 -1
- package/.docs/docs/memory/message-history.md +3 -0
- package/.docs/docs/memory/observational-memory.md +10 -0
- package/.docs/docs/memory/overview.md +6 -0
- package/.docs/docs/memory/semantic-recall.md +5 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +2 -1
- package/.docs/docs/observability/logging.md +3 -0
- package/.docs/docs/observability/tracing/overview.md +16 -0
- package/.docs/docs/sandbox/search.md +11 -0
- package/.docs/docs/server/custom-adapters.md +53 -1
- package/.docs/docs/server/custom-api-routes.md +2 -0
- package/.docs/docs/server/request-context.md +6 -0
- package/.docs/docs/subagents.md +7 -1
- package/.docs/docs/workflows/agents-and-tools.md +16 -1
- package/.docs/docs/workflows/control-flow.md +57 -0
- package/.docs/docs/workflows/human-in-the-loop.md +3 -0
- package/.docs/docs/workflows/overview.md +9 -1
- package/.docs/docs/workflows/scheduled-workflows.md +10 -2
- package/.docs/docs/workflows/suspend-and-resume.md +6 -0
- package/.docs/docs/workflows/workflow-state.md +12 -0
- package/.docs/integrations/agentic-ui/copilotkit.md +2 -0
- package/.docs/integrations/auth/better-auth.md +2 -0
- package/.docs/integrations/auth/google.md +2 -0
- package/.docs/integrations/auth/okta.md +2 -0
- package/.docs/integrations/databases/aurora-dsql.md +2 -2
- package/.docs/integrations/databases/dynamodb.md +4 -4
- package/.docs/integrations/databases/postgresql.md +4 -4
- package/.docs/integrations/deploy/inngest.md +1 -0
- package/.docs/integrations/file-storage/archil.md +3 -3
- package/.docs/integrations/file-storage/mesa.md +1 -1
- package/.docs/integrations/observability/datadog.md +5 -0
- package/.docs/integrations/observability/langsmith.md +33 -0
- package/.docs/integrations/observability/sentry.md +22 -22
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +3 -3
- package/.docs/integrations/sandboxes/docker.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +5 -5
- package/.docs/integrations/sandboxes/modal.md +3 -3
- package/.docs/integrations/sandboxes/railway.md +3 -3
- package/.docs/integrations/sandboxes/vercel.md +4 -4
- package/.docs/integrations/tools/brightdata.md +1 -1
- package/.docs/integrations/tools/parallel.md +3 -3
- package/.docs/integrations/tools/perplexity.md +1 -1
- package/.docs/integrations/tools/tavily.md +1 -1
- package/.docs/integrations/voice/azure.md +4 -4
- package/.docs/integrations/voice/cloudflare.md +3 -3
- package/.docs/integrations/voice/deepgram.md +2 -2
- package/.docs/integrations/voice/elevenlabs.md +4 -4
- package/.docs/integrations/voice/gladia.md +10 -10
- package/.docs/integrations/voice/google.md +11 -11
- package/.docs/integrations/voice/inworld.md +23 -23
- package/.docs/integrations/voice/livekit.md +9 -6
- package/.docs/integrations/voice/mistral.md +2 -2
- package/.docs/integrations/voice/modelslab.md +1 -1
- package/.docs/integrations/voice/murf.md +1 -1
- package/.docs/integrations/voice/openai.md +5 -5
- package/.docs/integrations/voice/sarvam.md +6 -6
- package/.docs/integrations/voice/speechify.md +25 -12
- package/.docs/integrations/voice/xai.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/neon.md +2 -1
- package/.docs/models/gateways/netlify.md +2 -5
- package/.docs/models/gateways/openrouter.md +3 -4
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +7 -1
- package/.docs/models/providers/302ai.md +4 -0
- package/.docs/models/providers/abacus.md +4 -0
- package/.docs/models/providers/abliteration-ai.md +4 -0
- package/.docs/models/providers/above.md +4 -0
- package/.docs/models/providers/agentrouter.md +4 -0
- package/.docs/models/providers/agnes.md +4 -0
- package/.docs/models/providers/ai-router.md +4 -0
- package/.docs/models/providers/ai21.md +4 -0
- package/.docs/models/providers/aiand.md +8 -7
- package/.docs/models/providers/aimlapi.md +8 -10
- package/.docs/models/providers/ainetcafe.md +4 -0
- package/.docs/models/providers/aixy.md +4 -0
- package/.docs/models/providers/aki-io.md +4 -0
- package/.docs/models/providers/alibaba-cn.md +4 -0
- package/.docs/models/providers/alibaba-coding-plan-cn.md +4 -0
- package/.docs/models/providers/alibaba-coding-plan.md +4 -0
- package/.docs/models/providers/alibaba-token-plan-cn.md +4 -0
- package/.docs/models/providers/alibaba-token-plan.md +4 -0
- package/.docs/models/providers/alibaba.md +4 -0
- package/.docs/models/providers/ambient.md +4 -0
- package/.docs/models/providers/amd.md +4 -0
- package/.docs/models/providers/anthropic.md +4 -0
- package/.docs/models/providers/anyapi.md +4 -0
- package/.docs/models/providers/arcee.md +4 -0
- package/.docs/models/providers/atomic-chat.md +4 -0
- package/.docs/models/providers/auriko.md +4 -0
- package/.docs/models/providers/bailing.md +4 -0
- package/.docs/models/providers/baseten.md +4 -0
- package/.docs/models/providers/bee.md +4 -0
- package/.docs/models/providers/berget.md +4 -0
- package/.docs/models/providers/blueclaw.md +4 -0
- package/.docs/models/providers/bothub.md +4 -0
- package/.docs/models/providers/boundless.md +4 -0
- package/.docs/models/providers/cerebras.md +4 -0
- package/.docs/models/providers/chutes.md +16 -11
- package/.docs/models/providers/clarifai.md +4 -0
- package/.docs/models/providers/claudinio.md +4 -0
- package/.docs/models/providers/cline-pass.md +4 -0
- package/.docs/models/providers/cloudferro-sherlock.md +4 -0
- package/.docs/models/providers/cloudflare-workers-ai.md +4 -0
- package/.docs/models/providers/commandcode.md +6 -1
- package/.docs/models/providers/coralbricks.md +4 -0
- package/.docs/models/providers/cortecs.md +4 -0
- package/.docs/models/providers/crof.md +4 -0
- package/.docs/models/providers/crossmodel.md +4 -0
- package/.docs/models/providers/crusoe.md +4 -0
- package/.docs/models/providers/daoxe.md +4 -0
- package/.docs/models/providers/databricks.md +4 -0
- package/.docs/models/providers/deepinfra.md +4 -0
- package/.docs/models/providers/deepseek.md +4 -0
- package/.docs/models/providers/digitalocean.md +4 -0
- package/.docs/models/providers/dinference.md +4 -0
- package/.docs/models/providers/drun.md +4 -0
- package/.docs/models/providers/ebcloud.md +4 -0
- package/.docs/models/providers/echo.md +4 -0
- package/.docs/models/providers/edenai.md +11 -8
- package/.docs/models/providers/empiriolabs.md +8 -4
- package/.docs/models/providers/engy.md +4 -0
- package/.docs/models/providers/evroc.md +4 -0
- package/.docs/models/providers/fastrouter.md +4 -0
- package/.docs/models/providers/firepass.md +4 -0
- package/.docs/models/providers/fireworks-ai.md +4 -0
- package/.docs/models/providers/firmware.md +4 -0
- package/.docs/models/providers/freemodel.md +4 -0
- package/.docs/models/providers/friendli.md +4 -0
- package/.docs/models/providers/frogbot.md +4 -0
- package/.docs/models/providers/github-models.md +4 -0
- package/.docs/models/providers/gmicloud.md +4 -0
- package/.docs/models/providers/google.md +4 -0
- package/.docs/models/providers/greenpt.md +4 -0
- package/.docs/models/providers/groq.md +4 -0
- package/.docs/models/providers/helicone.md +4 -0
- package/.docs/models/providers/hetzner.md +4 -0
- package/.docs/models/providers/hpc-ai.md +4 -0
- package/.docs/models/providers/huggingface.md +6 -1
- package/.docs/models/providers/hyper.md +4 -0
- package/.docs/models/providers/iflowcn.md +4 -0
- package/.docs/models/providers/impossibl.md +4 -0
- package/.docs/models/providers/inception.md +4 -0
- package/.docs/models/providers/inceptron.md +10 -6
- package/.docs/models/providers/inco.md +4 -0
- package/.docs/models/providers/infer.md +4 -0
- package/.docs/models/providers/inference.md +4 -0
- package/.docs/models/providers/inferx.md +4 -0
- package/.docs/models/providers/infomaniak.md +4 -0
- package/.docs/models/providers/io-net.md +4 -0
- package/.docs/models/providers/iteracompute.md +4 -0
- package/.docs/models/providers/jalapeno.md +4 -0
- package/.docs/models/providers/jiekou.md +4 -0
- package/.docs/models/providers/kenari.md +4 -0
- package/.docs/models/providers/kilo.md +21 -18
- package/.docs/models/providers/kimi-code-plan-cn.md +4 -0
- package/.docs/models/providers/kimi-code-plan-global.md +4 -0
- package/.docs/models/providers/kimi-for-coding.md +4 -0
- package/.docs/models/providers/kiro.md +4 -0
- package/.docs/models/providers/klokintegration.md +4 -0
- package/.docs/models/providers/kosmik.md +4 -0
- package/.docs/models/providers/kuae-cloud-coding-plan.md +4 -0
- package/.docs/models/providers/lilac.md +4 -0
- package/.docs/models/providers/liquid.md +4 -0
- package/.docs/models/providers/llama.md +4 -0
- package/.docs/models/providers/llmgateway-providers.md +8 -3
- package/.docs/models/providers/llmgateway.md +7 -2
- package/.docs/models/providers/llmtech.md +4 -0
- package/.docs/models/providers/llmtr.md +4 -0
- package/.docs/models/providers/lmstudio.md +4 -0
- package/.docs/models/providers/longcat.md +4 -0
- package/.docs/models/providers/lowrouter.md +6 -1
- package/.docs/models/providers/lucidquery.md +4 -0
- package/.docs/models/providers/lynkr.md +4 -0
- package/.docs/models/providers/meganova.md +4 -0
- package/.docs/models/providers/melious.md +4 -0
- package/.docs/models/providers/meta.md +4 -0
- package/.docs/models/providers/minimax-cn-coding-plan.md +4 -0
- package/.docs/models/providers/minimax-cn.md +4 -0
- package/.docs/models/providers/minimax-coding-plan.md +4 -0
- package/.docs/models/providers/minimax.md +4 -0
- package/.docs/models/providers/mistral.md +4 -0
- package/.docs/models/providers/mixlayer.md +4 -0
- package/.docs/models/providers/moark.md +4 -0
- package/.docs/models/providers/modal.md +4 -0
- package/.docs/models/providers/model-oracle-ai.md +4 -0
- package/.docs/models/providers/modelis.md +4 -0
- package/.docs/models/providers/modelscope.md +4 -0
- package/.docs/models/providers/moonshotai-cn.md +4 -0
- package/.docs/models/providers/moonshotai.md +4 -0
- package/.docs/models/providers/morph.md +18 -6
- package/.docs/models/providers/munito-eu.md +4 -0
- package/.docs/models/providers/munito.md +4 -0
- package/.docs/models/providers/nan.md +4 -0
- package/.docs/models/providers/nano-gpt.md +41 -34
- package/.docs/models/providers/nearai.md +5 -1
- package/.docs/models/providers/nebius.md +4 -0
- package/.docs/models/providers/neosmith.md +4 -0
- package/.docs/models/providers/neuralwatt.md +4 -0
- package/.docs/models/providers/nova.md +4 -0
- package/.docs/models/providers/novita-ai.md +4 -0
- package/.docs/models/providers/nvidia.md +4 -0
- package/.docs/models/providers/oci.md +4 -0
- package/.docs/models/providers/ofox.md +4 -0
- package/.docs/models/providers/ollama-cloud.md +4 -0
- package/.docs/models/providers/openai.md +6 -1
- package/.docs/models/providers/opencode-go.md +4 -0
- package/.docs/models/providers/opencode.md +4 -1
- package/.docs/models/providers/openreason.md +4 -0
- package/.docs/models/providers/opper.md +4 -0
- package/.docs/models/providers/orcarouter.md +4 -0
- package/.docs/models/providers/ovhcloud.md +4 -0
- package/.docs/models/providers/pareto.md +4 -0
- package/.docs/models/providers/pendra.md +4 -0
- package/.docs/models/providers/perplexity-agent.md +4 -0
- package/.docs/models/providers/perplexity.md +4 -0
- package/.docs/models/providers/pioneer.md +4 -0
- package/.docs/models/providers/poe.md +4 -0
- package/.docs/models/providers/poolside.md +4 -0
- package/.docs/models/providers/prime.md +4 -0
- package/.docs/models/providers/privatemode-ai.md +4 -0
- package/.docs/models/providers/qihang-ai.md +4 -0
- package/.docs/models/providers/qiniu-ai.md +4 -0
- package/.docs/models/providers/reflection.md +4 -0
- package/.docs/models/providers/regolo-ai.md +4 -0
- package/.docs/models/providers/requesty.md +8 -1
- package/.docs/models/providers/routing-run.md +4 -0
- package/.docs/models/providers/runinfra.md +4 -0
- package/.docs/models/providers/sakana.md +4 -0
- package/.docs/models/providers/sambanova.md +4 -0
- package/.docs/models/providers/sarvam.md +4 -0
- package/.docs/models/providers/scaleway.md +4 -0
- package/.docs/models/providers/scnet-token-plan.md +4 -0
- package/.docs/models/providers/scx-ai.md +4 -0
- package/.docs/models/providers/scx.md +4 -0
- package/.docs/models/providers/sensenova.md +4 -0
- package/.docs/models/providers/siliconflow-cn.md +4 -0
- package/.docs/models/providers/siliconflow.md +4 -0
- package/.docs/models/providers/snowflake-cortex.md +4 -0
- package/.docs/models/providers/stackit.md +4 -0
- package/.docs/models/providers/standardcompute.md +4 -0
- package/.docs/models/providers/stepfun-ai-step-plan.md +4 -0
- package/.docs/models/providers/stepfun-ai.md +4 -0
- package/.docs/models/providers/stepfun-step-plan.md +4 -0
- package/.docs/models/providers/stepfun.md +4 -0
- package/.docs/models/providers/subconscious.md +4 -0
- package/.docs/models/providers/submodel.md +4 -0
- package/.docs/models/providers/synthetic.md +4 -0
- package/.docs/models/providers/tempr.md +4 -0
- package/.docs/models/providers/tencent-coding-plan.md +4 -0
- package/.docs/models/providers/tencent-token-plan.md +4 -0
- package/.docs/models/providers/tencent-tokenhub.md +4 -0
- package/.docs/models/providers/tensorx.md +4 -0
- package/.docs/models/providers/the-grid-ai.md +4 -0
- package/.docs/models/providers/thinkingmachines.md +4 -0
- package/.docs/models/providers/tinfoil.md +4 -0
- package/.docs/models/providers/togetherai.md +4 -0
- package/.docs/models/providers/tokengo.md +4 -0
- package/.docs/models/providers/tokenrouter.md +4 -0
- package/.docs/models/providers/trustedrouter.md +4 -0
- package/.docs/models/providers/umans-ai-coding-plan.md +4 -0
- package/.docs/models/providers/umans-ai.md +4 -0
- package/.docs/models/providers/unorouter.md +4 -0
- package/.docs/models/providers/upstage.md +4 -0
- package/.docs/models/providers/vancine.md +4 -0
- package/.docs/models/providers/vispark.md +4 -0
- package/.docs/models/providers/vivgrid.md +4 -0
- package/.docs/models/providers/volcengine-coding-plan.md +4 -0
- package/.docs/models/providers/volcengine.md +4 -0
- package/.docs/models/providers/vultr.md +4 -0
- package/.docs/models/providers/wafer.ai.md +4 -0
- package/.docs/models/providers/wallaby.md +4 -0
- package/.docs/models/providers/wandb.md +9 -5
- package/.docs/models/providers/xai.md +4 -0
- package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -0
- package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -0
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -0
- package/.docs/models/providers/xiaomi.md +4 -0
- package/.docs/models/providers/xpersona.md +4 -0
- package/.docs/models/providers/zai-coding-plan.md +4 -0
- package/.docs/models/providers/zai.md +4 -0
- package/.docs/models/providers/zeldoc.md +4 -0
- package/.docs/models/providers/zenifra.md +4 -0
- package/.docs/models/providers/zenmux.md +4 -0
- package/.docs/models/providers/zhipuai-coding-plan.md +4 -0
- package/.docs/models/providers/zhipuai.md +4 -0
- package/.docs/reference/acp/acp-agent.md +1 -1
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +1 -1
- package/.docs/reference/agents/agent.md +3 -1
- package/.docs/reference/agents/channels.md +23 -4
- package/.docs/reference/agents/createSkill.md +1 -1
- package/.docs/reference/agents/durable-agent.md +1 -1
- package/.docs/reference/agents/generate.md +4 -1
- package/.docs/reference/agents/generateLegacy.md +2 -2
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +1 -1
- package/.docs/reference/auth/auth0.md +2 -2
- package/.docs/reference/auth/better-auth.md +7 -3
- package/.docs/reference/auth/clerk.md +1 -1
- package/.docs/reference/auth/firebase.md +4 -4
- package/.docs/reference/auth/google.md +6 -6
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/auth/neon.md +6 -6
- package/.docs/reference/auth/okta.md +9 -8
- package/.docs/reference/auth/workos.md +3 -3
- package/.docs/reference/browser/agent-browser.md +1 -1
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +1 -1
- package/.docs/reference/channels/slack-provider.md +4 -2
- package/.docs/reference/channels/teams-provider.md +2 -2
- package/.docs/reference/channels/telegram-provider.md +2 -2
- package/.docs/reference/client-js/agent-controller.md +3 -0
- package/.docs/reference/client-js/agents.md +2 -0
- package/.docs/reference/client-js/conversations.md +3 -3
- package/.docs/reference/client-js/observability.md +13 -14
- package/.docs/reference/client-js/responses.md +4 -4
- package/.docs/reference/client-js/workflows.md +2 -0
- package/.docs/reference/code-sdk/mount-agent-controller.md +2 -2
- package/.docs/reference/coding-agent/create-coding-agent.md +1 -1
- package/.docs/reference/connect/channels.md +1 -1
- package/.docs/reference/connect/providers.md +166 -112
- package/.docs/reference/connect/tools.md +9 -9
- package/.docs/reference/core/mastra-class.md +4 -2
- package/.docs/reference/core/mastra-model-gateway.md +6 -1
- package/.docs/reference/datasets/startExperiment.md +2 -2
- package/.docs/reference/deployer.md +6 -3
- package/.docs/reference/editor/blob-store-provider.md +2 -2
- package/.docs/reference/editor/tool-provider.md +1 -1
- package/.docs/reference/evals/answer-relevancy.md +2 -2
- package/.docs/reference/evals/answer-similarity.md +4 -2
- package/.docs/reference/evals/bias.md +2 -2
- package/.docs/reference/evals/content-similarity.md +2 -2
- package/.docs/reference/evals/hallucination.md +3 -3
- package/.docs/reference/evals/noise-sensitivity.md +1 -1
- package/.docs/reference/evals/prompt-alignment.md +10 -9
- package/.docs/reference/evals/scorer-utils.md +6 -4
- package/.docs/reference/evals/tone-consistency.md +5 -5
- package/.docs/reference/evals/tool-call-accuracy.md +4 -4
- package/.docs/reference/evals/trajectory-accuracy.md +1 -1
- package/.docs/reference/file-based-agents/schedules.md +1 -1
- package/.docs/reference/logging/pino-logger.md +1 -1
- package/.docs/reference/memory/memory-class.md +2 -2
- package/.docs/reference/memory/observational-memory.md +10 -10
- package/.docs/reference/memory/summarizeConversation.md +1 -1
- package/.docs/reference/memory/summarizeThread.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/storage.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/tools.md +7 -1
- package/.docs/reference/migrations/vnext-to-standard-apis.md +1 -1
- package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
- package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +3 -3
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -0
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +4 -0
- package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +5 -1
- package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
- package/.docs/reference/observability/tracing/interfaces.md +21 -1
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +4 -4
- package/.docs/reference/processors/processor-interface.md +5 -5
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +9 -5
- package/.docs/reference/processors/tool-search-processor.md +2 -2
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/database-config.md +20 -15
- package/.docs/reference/rag/extract-params.md +2 -2
- package/.docs/reference/rag/retrieval.md +11 -0
- package/.docs/reference/schedules/overview.md +17 -1
- package/.docs/reference/server/koa-adapter.md +2 -0
- package/.docs/reference/storage/overview.md +30 -13
- package/.docs/reference/streaming/agents/MastraModelOutput.md +3 -3
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/streaming/agents/streamLegacy.md +2 -2
- package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
- package/.docs/reference/tools/ask-user-tool.md +1 -1
- package/.docs/reference/tools/bedrock-kb-tool.md +2 -2
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/document-chunker-tool.md +1 -1
- package/.docs/reference/tools/mcp-client.md +5 -5
- package/.docs/reference/tools/mcp-server.md +2 -2
- package/.docs/reference/tools/task-tools.md +3 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -0
- package/.docs/reference/vectors/astra.md +3 -1
- package/.docs/reference/vectors/azure-ai-search.md +2 -2
- package/.docs/reference/vectors/chroma.md +2 -2
- package/.docs/reference/vectors/convex.md +1 -1
- package/.docs/reference/vectors/couchbase.md +12 -5
- package/.docs/reference/vectors/duckdb.md +5 -5
- package/.docs/reference/vectors/mongodb.md +6 -6
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/pinecone.md +1 -1
- package/.docs/reference/vectors/qdrant.md +1 -1
- package/.docs/reference/vectors/s3vectors.md +3 -0
- package/.docs/reference/vectors/upstash.md +8 -4
- package/.docs/reference/vectors/vectorize.md +4 -2
- package/.docs/reference/vectors/weaviate.md +1 -1
- package/.docs/reference/voice/voice.send.md +1 -1
- package/.docs/reference/voice/voice.speak.md +1 -1
- package/.docs/reference/voice/voice.updateConfig.md +1 -1
- package/.docs/reference/workflows/run-methods/restart.md +1 -1
- package/.docs/reference/workflows/run-methods/resume.md +1 -1
- package/.docs/reference/workflows/run-methods/start.md +1 -1
- package/.docs/reference/workflows/run.md +2 -2
- package/.docs/reference/workflows/step.md +4 -0
- package/.docs/reference/workflows/workflow-methods/agent.md +2 -0
- package/.docs/reference/workflows/workflow-methods/classifier.md +5 -0
- package/.docs/reference/workflows/workflow-methods/dountil.md +1 -1
- package/.docs/reference/workflows/workflow-methods/map.md +2 -0
- package/.docs/reference/workflows/workflow.md +2 -2
- package/.docs/reference/workspace/factory-sandbox.md +11 -2
- package/.docs/reference/workspace/filesystem.md +2 -2
- package/.docs/reference/workspace/local-sandbox.md +3 -3
- package/.docs/reference/workspace/platform-filesystem.md +3 -3
- package/.docs/reference/workspace/platform-sandbox.md +10 -8
- package/.docs/reference/workspace/workspace-class.md +12 -12
- package/dist/index.js +1 -1
- package/dist/{src-DnH_jHt9.js → src-Cv7bX2-6.js} +10 -19
- package/dist/{src-DnH_jHt9.js.map → src-Cv7bX2-6.js.map} +1 -1
- package/dist/stdio.js +2 -3
- package/package.json +10 -10
|
@@ -53,27 +53,27 @@ const voices = await voice.getSpeakers({ languageCode: 'en-US' })
|
|
|
53
53
|
|
|
54
54
|
**speechModel** (`GoogleModelConfig`): Configuration for text-to-speech functionality (Default: `{ apiKey: process.env.GOOGLE_API_KEY }`)
|
|
55
55
|
|
|
56
|
-
**speechModel.apiKey** (`string`): Google Cloud API key. Falls back to
|
|
56
|
+
**speechModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE_API_KEY environment variable. Not used when vertexAI is true.
|
|
57
57
|
|
|
58
|
-
**speechModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to
|
|
58
|
+
**speechModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE_APPLICATION_CREDENTIALS environment variable.
|
|
59
59
|
|
|
60
|
-
**speechModel.credentials** (`object`): In-memory service account credentials object with
|
|
60
|
+
**speechModel.credentials** (`object`): In-memory service account credentials object with client_email and private_key properties.
|
|
61
61
|
|
|
62
62
|
**listeningModel** (`GoogleModelConfig`): Configuration for speech-to-text functionality (Default: `{ apiKey: process.env.GOOGLE_API_KEY }`)
|
|
63
63
|
|
|
64
|
-
**listeningModel.apiKey** (`string`): Google Cloud API key. Falls back to
|
|
64
|
+
**listeningModel.apiKey** (`string`): Google Cloud API key. Falls back to GOOGLE_API_KEY environment variable. Not used when vertexAI is true.
|
|
65
65
|
|
|
66
|
-
**listeningModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to
|
|
66
|
+
**listeningModel.keyFilename** (`string`): Path to service account JSON key file. Falls back to GOOGLE_APPLICATION_CREDENTIALS environment variable.
|
|
67
67
|
|
|
68
|
-
**listeningModel.credentials** (`object`): In-memory service account credentials object with
|
|
68
|
+
**listeningModel.credentials** (`object`): In-memory service account credentials object with client_email and private_key properties.
|
|
69
69
|
|
|
70
70
|
**speaker** (`string`): Default voice ID to use for text-to-speech (Default: `'en-US-Casual-K'`)
|
|
71
71
|
|
|
72
72
|
**vertexAI** (`boolean`): Enable Vertex AI mode for enterprise deployments. Uses project-based authentication instead of API keys. Requires 'project' to be set. (Default: `false`)
|
|
73
73
|
|
|
74
|
-
**project** (`string`): Google Cloud project ID (required when vertexAI is true). Falls back to
|
|
74
|
+
**project** (`string`): Google Cloud project ID (required when vertexAI is true). Falls back to GOOGLE_CLOUD_PROJECT environment variable.
|
|
75
75
|
|
|
76
|
-
**location** (`string`): Google Cloud region for Vertex AI. Falls back to
|
|
76
|
+
**location** (`string`): Google Cloud region for Vertex AI. Falls back to GOOGLE_CLOUD_LOCATION environment variable. (Default: `'us-central1'`)
|
|
77
77
|
|
|
78
78
|
### Methods
|
|
79
79
|
|
|
@@ -128,9 +128,9 @@ const transcript = await voice.listen(iosSafariAacStream, {
|
|
|
128
128
|
|
|
129
129
|
**options.v2** (`true`): Enables the v2 API path
|
|
130
130
|
|
|
131
|
-
**options.config** (`v2.IRecognitionConfig`): v2 recognition configuration. Defaults to auto-decoding with languageCodes: \['en-US'] and model: 'long'. Set autoDecodingConfig: {} to auto-detect the audio format, or use explicitDecodingConfig to specify an encoding like
|
|
131
|
+
**options.config** (`v2.IRecognitionConfig`): v2 recognition configuration. Defaults to auto-decoding with languageCodes: \['en-US'] and model: 'long'. Set autoDecodingConfig: {} to auto-detect the audio format, or use explicitDecodingConfig to specify an encoding like MP4_AAC, M4A_AAC, or MOV_AAC.
|
|
132
132
|
|
|
133
|
-
**options.recognizer** (`string`): v2 recognizer resource path. Defaults to projects/{project}/locations/global/recognizers/\_ where {project} is resolved from the constructor project option,
|
|
133
|
+
**options.recognizer** (`string`): v2 recognizer resource path. Defaults to projects/{project}/locations/global/recognizers/\_ where {project} is resolved from the constructor project option, GOOGLE_CLOUD_PROJECT, or the client's default project.
|
|
134
134
|
|
|
135
135
|
Returns: `Promise<string>`
|
|
136
136
|
|
|
@@ -549,7 +549,7 @@ The GeminiLiveVoice class emits the following events:
|
|
|
549
549
|
|
|
550
550
|
**speaking** (`event`): Emitted with audio metadata. Callback receives { audioData?: Int16Array, sampleRate?: number }.
|
|
551
551
|
|
|
552
|
-
**writing** (`event`): Emitted when transcribed text is available. Callback receives { text: string, role: 'assistant' | 'user' }. On native-audio models the assistant transcript is driven by the server's
|
|
552
|
+
**writing** (`event`): Emitted when transcribed text is available. Callback receives { text: string, role: 'assistant' | 'user' }. On native-audio models the assistant transcript is driven by the server's output_audio_transcription channel rather than modelTurn.parts.text.
|
|
553
553
|
|
|
554
554
|
**thinking** (`event`): Emitted on native-audio models with the model's chain-of-thought / reasoning text from modelTurn.parts.text. Callback receives { text: string }. Does not fire on non-native-audio models, where modelTurn.parts.text is the spoken response and is emitted as writing instead.
|
|
555
555
|
|
|
@@ -44,13 +44,13 @@ const transcript = await voice.listen(audioStream)
|
|
|
44
44
|
|
|
45
45
|
**speechModel.name** (`'inworld-tts-2' | 'inworld-tts-1.5-max' | 'inworld-tts-1.5-mini'`): The Inworld TTS model to use.
|
|
46
46
|
|
|
47
|
-
**speechModel.apiKey** (`string`): Inworld API key. Falls back to
|
|
47
|
+
**speechModel.apiKey** (`string`): Inworld API key. Falls back to INWORLD_API_KEY environment variable.
|
|
48
48
|
|
|
49
49
|
**listeningModel** (`InworldListeningConfig`): Configuration for speech-to-text functionality. (Default: `{ name: 'groq/whisper-large-v3' }`)
|
|
50
50
|
|
|
51
51
|
**listeningModel.name** (`'groq/whisper-large-v3'`): The Inworld STT model to use.
|
|
52
52
|
|
|
53
|
-
**listeningModel.apiKey** (`string`): Inworld API key. Falls back to
|
|
53
|
+
**listeningModel.apiKey** (`string`): Inworld API key. Falls back to INWORLD_API_KEY environment variable.
|
|
54
54
|
|
|
55
55
|
**speaker** (`string`): Default voice ID to use for text-to-speech. (Default: `'Dennis'`)
|
|
56
56
|
|
|
@@ -200,7 +200,7 @@ voice.close()
|
|
|
200
200
|
|
|
201
201
|
### Constructor parameters
|
|
202
202
|
|
|
203
|
-
**apiKey** (`string`): Inworld API key. Falls back to the
|
|
203
|
+
**apiKey** (`string`): Inworld API key. Falls back to the INWORLD_API_KEY environment variable. Keys are Basic-encoded and passed verbatim in the Authorization header.
|
|
204
204
|
|
|
205
205
|
**url** (`string`): Realtime WebSocket endpoint. A client-generated session key and protocol parameter are appended automatically. (Default: `'wss://api.inworld.ai/api/v1/realtime/session'`)
|
|
206
206
|
|
|
@@ -212,11 +212,11 @@ voice.close()
|
|
|
212
212
|
|
|
213
213
|
**instructions** (`string`): System prompt sent with the initial session.update.
|
|
214
214
|
|
|
215
|
-
**session** (`Partial<InworldSessionConfig>`): Typed first-class session options (audio,
|
|
215
|
+
**session** (`Partial<InworldSessionConfig>`): Typed first-class session options (audio, tool_choice, output_modalities, temperature, ...). Deep-merged into every session.update so nested fields like audio.output.voice and audio.output.speed compose rather than overwrite each other. See the session field below.
|
|
216
216
|
|
|
217
217
|
**debug** (`boolean`): Log raw server events. (Default: `false`)
|
|
218
218
|
|
|
219
|
-
**providerData** (`InworldProviderData`): Typed Inworld extension config (stt, tts, memory, backchannel, responsiveness, plus
|
|
219
|
+
**providerData** (`InworldProviderData`): Typed Inworld extension config (stt, tts, memory, backchannel, responsiveness, plus user_id and metadata). Sent under session.providerData on every session.update. Composes with any session.providerData set via the session field; the constructor option wins on key collisions.
|
|
220
220
|
|
|
221
221
|
**connectTimeoutMs** (`number`): Max time connect() will wait for both the WebSocket handshake and the initial session.updated round-trip. A pre-open error or close on the WebSocket — or this timeout expiring — surfaces as a rejected promise instead of an uncaught socket error. (Default: `15000`)
|
|
222
222
|
|
|
@@ -224,7 +224,7 @@ voice.close()
|
|
|
224
224
|
|
|
225
225
|
Use the typed `session` field for documented Inworld realtime options. Fields compose with the connect-time defaults (e.g. `audio.output.voice` set from `speaker`):
|
|
226
226
|
|
|
227
|
-
**
|
|
227
|
+
**output_modalities** (`Array<"text" | "audio">`): Modalities the model should produce.
|
|
228
228
|
|
|
229
229
|
**audio.output.voice** (`string`): Voice catalog ID. When omitted, the constructor speaker is used.
|
|
230
230
|
|
|
@@ -236,17 +236,17 @@ Use the typed `session` field for documented Inworld realtime options. Fields co
|
|
|
236
236
|
|
|
237
237
|
**audio.input.format** (`InworldAudioFormat`): Input audio encoding sent to the server. Same shape as audio.output.format — a codec string or { type, rate? } object.
|
|
238
238
|
|
|
239
|
-
**audio.input.
|
|
239
|
+
**audio.input.noise_reduction** (`{ type: "near_field" | "far_field" }`): Input noise-reduction mode applied before transcription and VAD.
|
|
240
240
|
|
|
241
241
|
**audio.input.transcription** (`{ model?: string; language?: string; prompt?: string }`): Server-side transcription for incoming user audio. Defaults to { model: "inworld/inworld-stt-1" }. prompt biases transcription with vocabulary, spelling, or style hints. Supply your own object to override; set to null to disable user-side transcription.
|
|
242
242
|
|
|
243
|
-
**audio.input.
|
|
243
|
+
**audio.input.turn_detection** (`InworldTurnDetection | null`): Voice activity / turn detection. Defaults to { type: "semantic_vad", eagerness: "medium", create_response: true, interrupt_response: true }. Supply your own object to override; set to null to disable turn detection entirely. The eagerness field controls how quickly semantic VAD ends a user turn — low waits for clearer pauses (more interruption-resistant), high ends turns sooner (snappier, more prone to cutting users off). Default medium balances both. idle_timeout_ms (server_vad only) sets the idle window before the server commits a turn.
|
|
244
244
|
|
|
245
|
-
**
|
|
245
|
+
**tool_choice** (`string | { type: "function"; name: string } | { type: "mcp"; server_label: string }`): Tool selection strategy. Use the mcp variant to route tool calls through a configured Inworld MCP server.
|
|
246
246
|
|
|
247
247
|
**temperature** (`number`): Sampling temperature for the model.
|
|
248
248
|
|
|
249
|
-
**
|
|
249
|
+
**max_output_tokens** (`number | "inf"`): Maximum tokens generated per response.
|
|
250
250
|
|
|
251
251
|
**truncation** (`"auto" | "disabled" | { type: "retention_ratio"; retention_ratio: number }`): Conversation truncation strategy.
|
|
252
252
|
|
|
@@ -413,27 +413,27 @@ The `InworldRealtimeVoice` class emits the following events:
|
|
|
413
413
|
|
|
414
414
|
**speaker** (`event`): Emitted once per response with a PassThrough stream of PCM audio. Use this when piping audio to a player.
|
|
415
415
|
|
|
416
|
-
**speaking** (`event`): Emitted for each audio delta. Callback receives { audio: Buffer,
|
|
416
|
+
**speaking** (`event`): Emitted for each audio delta. Callback receives { audio: Buffer, response_id: string }.
|
|
417
417
|
|
|
418
|
-
**speaking.done** (`event`): Emitted when audio output for a response is complete. Callback receives {
|
|
418
|
+
**speaking.done** (`event`): Emitted when audio output for a response is complete. Callback receives { response_id: string }.
|
|
419
419
|
|
|
420
|
-
**writing** (`event`): Emitted as transcribed text becomes available. Callback receives { text: string,
|
|
420
|
+
**writing** (`event`): Emitted as transcribed text becomes available. Callback receives { text: string, response_id: string, role: "assistant" | "user", voiceProfile? }. Deduplicated across audio-transcript and text deltas in the same response so a single response only emits one stream. On user events, voiceProfile is present when providerData.stt.voice_profile is enabled.
|
|
421
421
|
|
|
422
|
-
**speech-started** (`event`): Raw
|
|
422
|
+
**speech-started** (`event`): Raw input_audio_buffer.speech_started VAD edge from the server.
|
|
423
423
|
|
|
424
|
-
**speech-stopped** (`event`): Raw
|
|
424
|
+
**speech-stopped** (`event`): Raw input_audio_buffer.speech_stopped VAD edge from the server.
|
|
425
425
|
|
|
426
|
-
**interrupted** (`event`): Synthetic client-side signal: emitted once per in-flight
|
|
426
|
+
**interrupted** (`event`): Synthetic client-side signal: emitted once per in-flight response_id when the user starts speaking. Use this to stop main response playback on barge-in. Callback receives { response_id: string }. Only carries main-response ids — never back-channel ids — so stopping the matching speaker stream leaves backchannel streams playing (back-channels are meant to overlap user speech and are never cancelled by barge-in).
|
|
427
427
|
|
|
428
|
-
**turn-suggestion** (`event`): Smart-turn endpointing hint for a buffered user utterance. Callback receives {
|
|
428
|
+
**turn-suggestion** (`event`): Smart-turn endpointing hint for a buffered user utterance. Callback receives { item_id, utterance_index, probability, trailing_silence_ms?, audio_duration_ms?, inference_ms? }.
|
|
429
429
|
|
|
430
|
-
**turn-suggestion-revoked** (`event`): A previously emitted turn suggestion was retracted. Callback receives {
|
|
430
|
+
**turn-suggestion-revoked** (`event`): A previously emitted turn suggestion was retracted. Callback receives { item_id, utterance_index }.
|
|
431
431
|
|
|
432
|
-
**input-committed** (`event`): Buffered input audio was committed as a user turn (via commitInput() or auto-VAD). Callback receives {
|
|
432
|
+
**input-committed** (`event`): Buffered input audio was committed as a user turn (via commitInput() or auto-VAD). Callback receives { item_id, previous_item_id? } where previous_item_id may be null.
|
|
433
433
|
|
|
434
434
|
**input-cleared** (`event`): Buffered input audio was discarded (via clearInput()). Callback receives {}.
|
|
435
435
|
|
|
436
|
-
**input-timeout** (`event`): A server-VAD idle timeout committed a user turn. Callback receives {
|
|
436
|
+
**input-timeout** (`event`): A server-VAD idle timeout committed a user turn. Callback receives { audio_start_ms, audio_end_ms, item_id }.
|
|
437
437
|
|
|
438
438
|
**output-audio-started** (`event`): Server began emitting output audio. Callback receives {}.
|
|
439
439
|
|
|
@@ -443,9 +443,9 @@ The `InworldRealtimeVoice` class emits the following events:
|
|
|
443
443
|
|
|
444
444
|
**memory** (`event`): Emitted with Inworld's rolling summary and facts state, deduplicated by version. Requires providerData.memory.enabled. Callback receives InworldMemoryState.
|
|
445
445
|
|
|
446
|
-
**backchannel** (`event`): Emitted with a PassThrough stream of back-channel PCM audio (short acknowledgements while the user speaks). Each stream's .id is a
|
|
446
|
+
**backchannel** (`event`): Emitted with a PassThrough stream of back-channel PCM audio (short acknowledgements while the user speaks). Each stream's .id is a backchannel_id that never appears in interrupted, so play these on a separate track that barge-in does not stop. Requires providerData.backchannel.enabled.
|
|
447
447
|
|
|
448
|
-
**backchannel.done** (`event`): Emitted when a back-channel finishes. Callback receives {
|
|
448
|
+
**backchannel.done** (`event`): Emitted when a back-channel finishes. Callback receives { backchannel_id: string, phrase? }.
|
|
449
449
|
|
|
450
450
|
**backchannel.skipped** (`event`): Emitted when the decider skips a back-channel before any audio is produced. Callback receives { reason: string }.
|
|
451
451
|
|
|
@@ -457,7 +457,7 @@ The `InworldRealtimeVoice` class emits the following events:
|
|
|
457
457
|
|
|
458
458
|
**conversation.item.done** (`event`): Emitted when a conversation item finishes.
|
|
459
459
|
|
|
460
|
-
**
|
|
460
|
+
**function_call.arguments** (`event`): Emitted with complete tool call arguments. Callback receives { call_id, name, arguments }.
|
|
461
461
|
|
|
462
462
|
**tool-call-start** (`event`): Emitted before a registered tool is executed.
|
|
463
463
|
|
|
@@ -359,6 +359,8 @@ export default createLiveKitWorker({
|
|
|
359
359
|
A workflow streams structured step events, not text. To speak tokens as they generate, the reply step pipes its agent's text into the step `writer`:
|
|
360
360
|
|
|
361
361
|
```typescript
|
|
362
|
+
import { createStep } from '@mastra/core/workflows'
|
|
363
|
+
|
|
362
364
|
const generateResponse = createStep({
|
|
363
365
|
id: 'generateResponse',
|
|
364
366
|
// input and output schemas omitted
|
|
@@ -890,22 +892,22 @@ npx tsx src/mastra/voice-worker.ts download-files
|
|
|
890
892
|
**pnpm**:
|
|
891
893
|
|
|
892
894
|
```bash
|
|
893
|
-
|
|
894
|
-
|
|
895
|
+
pnpm ls @mastra/livekit @livekit/agents @livekit/agents-plugin-livekit @livekit/agents-plugin-silero @livekit/rtc-node
|
|
896
|
+
npx tsx src/mastra/voice-worker.ts download-files
|
|
895
897
|
```
|
|
896
898
|
|
|
897
899
|
**Yarn**:
|
|
898
900
|
|
|
899
901
|
```bash
|
|
900
|
-
|
|
901
|
-
|
|
902
|
+
yarn list --pattern "@mastra/livekit|@livekit/agents|@livekit/agents-plugin-livekit|@livekit/agents-plugin-silero|@livekit/rtc-node"
|
|
903
|
+
npx tsx src/mastra/voice-worker.ts download-files
|
|
902
904
|
```
|
|
903
905
|
|
|
904
906
|
**Bun**:
|
|
905
907
|
|
|
906
908
|
```bash
|
|
907
|
-
|
|
908
|
-
|
|
909
|
+
bun pm ls @mastra/livekit @livekit/agents @livekit/agents-plugin-livekit @livekit/agents-plugin-silero @livekit/rtc-node
|
|
910
|
+
npx tsx src/mastra/voice-worker.ts download-files
|
|
909
911
|
```
|
|
910
912
|
|
|
911
913
|
Use a single installed copy of Agents for both the integration and a custom `voice.AgentSession`. Multiple copies can fail LiveKit's runtime class checks.
|
|
@@ -1060,6 +1062,7 @@ Streams a Mastra agent's reply into a workflow step's `writer` on the workflow r
|
|
|
1060
1062
|
|
|
1061
1063
|
```typescript
|
|
1062
1064
|
import { pipeAgentReplyToWriter } from '@mastra/livekit'
|
|
1065
|
+
import { createStep } from '@mastra/core/workflows'
|
|
1063
1066
|
|
|
1064
1067
|
const generateResponse = createStep({
|
|
1065
1068
|
id: 'generateResponse',
|
|
@@ -50,13 +50,13 @@ const voice = new MistralVoice({
|
|
|
50
50
|
|
|
51
51
|
**speechModel.name** (`string`): Model ID for speech synthesis.
|
|
52
52
|
|
|
53
|
-
**speechModel.apiKey** (`string`): Mistral API key. Falls back to
|
|
53
|
+
**speechModel.apiKey** (`string`): Mistral API key. Falls back to MISTRAL_API_KEY environment variable.
|
|
54
54
|
|
|
55
55
|
**listeningModel** (`MistralModelConfig`): Configuration for speech-to-text recognition. (Default: `{ name: 'voxtral-mini-latest' }`)
|
|
56
56
|
|
|
57
57
|
**listeningModel.name** (`string`): Model ID for transcription. Use 'voxtral-mini-2507' for a pinned version.
|
|
58
58
|
|
|
59
|
-
**listeningModel.apiKey** (`string`): Mistral API key. Falls back to
|
|
59
|
+
**listeningModel.apiKey** (`string`): Mistral API key. Falls back to MISTRAL_API_KEY environment variable.
|
|
60
60
|
|
|
61
61
|
**speaker** (`string`): Default voice ID for speech synthesis. Retrieve available IDs from getSpeakers(). (Default: `'en_paul_neutral'`)
|
|
62
62
|
|
|
@@ -63,7 +63,7 @@ const speakers = await voice.getSpeakers()
|
|
|
63
63
|
|
|
64
64
|
**speechModel.name** (`'default'`): ModelsLab speech model name.
|
|
65
65
|
|
|
66
|
-
**speechModel.apiKey** (`string`): ModelsLab API key. Falls back to the
|
|
66
|
+
**speechModel.apiKey** (`string`): ModelsLab API key. Falls back to the MODELSLAB_API_KEY environment variable.
|
|
67
67
|
|
|
68
68
|
**speaker** (`ModelsLabVoiceId | string`): Default voice ID or OpenAI-style speaker alias. (Default: `'1'`)
|
|
69
69
|
|
|
@@ -53,7 +53,7 @@ const voices = await voice.getSpeakers()
|
|
|
53
53
|
|
|
54
54
|
**speechModel.name** (`'GEN1' | 'GEN2'`): The Murf model generation to use
|
|
55
55
|
|
|
56
|
-
**speechModel.apiKey** (`string`): Murf API key. Falls back to
|
|
56
|
+
**speechModel.apiKey** (`string`): Murf API key. Falls back to MURF_API_KEY environment variable
|
|
57
57
|
|
|
58
58
|
**speechModel.properties** (`object`): Default properties for all speech synthesis requests
|
|
59
59
|
|
|
@@ -49,13 +49,13 @@ const text = await voice.listen(audioStream, {
|
|
|
49
49
|
|
|
50
50
|
**speechModel.name** (`'tts-1' | 'tts-1-hd' | 'whisper-1'`): Model name. Use 'tts-1-hd' for higher quality audio.
|
|
51
51
|
|
|
52
|
-
**speechModel.apiKey** (`string`): OpenAI API key. Falls back to
|
|
52
|
+
**speechModel.apiKey** (`string`): OpenAI API key. Falls back to OPENAI_API_KEY environment variable.
|
|
53
53
|
|
|
54
54
|
**listeningModel** (`OpenAIConfig`): Configuration for speech-to-text recognition. (Default: `{ name: 'whisper-1' }`)
|
|
55
55
|
|
|
56
56
|
**listeningModel.name** (`'tts-1' | 'tts-1-hd' | 'whisper-1'`): Model name. Use 'tts-1-hd' for higher quality audio.
|
|
57
57
|
|
|
58
|
-
**listeningModel.apiKey** (`string`): OpenAI API key. Falls back to
|
|
58
|
+
**listeningModel.apiKey** (`string`): OpenAI API key. Falls back to OPENAI_API_KEY environment variable.
|
|
59
59
|
|
|
60
60
|
**speaker** (`OpenAIVoiceId`): Default voice ID for speech synthesis. (Default: `'alloy'`)
|
|
61
61
|
|
|
@@ -160,7 +160,7 @@ voice.connect()
|
|
|
160
160
|
|
|
161
161
|
**model** (`string`): The model ID to use for real-time voice interactions. (Default: `'gpt-5.1-realtime-preview-2024-12-17'`)
|
|
162
162
|
|
|
163
|
-
**apiKey** (`string`): OpenAI API key. Falls back to
|
|
163
|
+
**apiKey** (`string`): OpenAI API key. Falls back to OPENAI_API_KEY environment variable.
|
|
164
164
|
|
|
165
165
|
**speaker** (`string`): Default voice ID for speech synthesis. (Default: `'alloy'`)
|
|
166
166
|
|
|
@@ -170,9 +170,9 @@ voice.connect()
|
|
|
170
170
|
|
|
171
171
|
**threshold** (`number`): Speech detection sensitivity (0.0-1.0). (Default: `0.5`)
|
|
172
172
|
|
|
173
|
-
**
|
|
173
|
+
**prefix_padding_ms** (`number`): Milliseconds of audio to include before speech is detected. (Default: `1000`)
|
|
174
174
|
|
|
175
|
-
**
|
|
175
|
+
**silence_duration_ms** (`number`): Milliseconds of silence before ending a turn. (Default: `1000`)
|
|
176
176
|
|
|
177
177
|
### Methods
|
|
178
178
|
|
|
@@ -55,7 +55,7 @@ const text = await voice.listen(audioStream, {
|
|
|
55
55
|
|
|
56
56
|
**speechModel** (`SarvamVoiceConfig`): Configuration for text-to-speech synthesis. (Default: `{ model: 'bulbul:v3', language: 'en-IN' }`)
|
|
57
57
|
|
|
58
|
-
**speechModel.apiKey** (`string`): Sarvam API key. Falls back to
|
|
58
|
+
**speechModel.apiKey** (`string`): Sarvam API key. Falls back to SARVAM_API_KEY environment variable.
|
|
59
59
|
|
|
60
60
|
**speechModel.model** (`SarvamTTSModel`): Specifies the model to use for text-to-speech conversion. Available options: bulbul:v2, bulbul:v3, bulbul:v3-beta. bulbul:v3-beta is a beta variant of bulbul:v3 that shares the same speaker catalog. Note: bulbul:v1 has been deprecated by Sarvam and is no longer supported.
|
|
61
61
|
|
|
@@ -67,23 +67,23 @@ const text = await voice.listen(audioStream, {
|
|
|
67
67
|
|
|
68
68
|
**speechModel.properties.temperature** (`number`): Sampling temperature that controls the randomness of the generated voice. bulbul:v3 only. Range: 0.01–2.0. Default: 0.6.
|
|
69
69
|
|
|
70
|
-
**speechModel.properties.
|
|
70
|
+
**speechModel.properties.dict_id** (`string`): Pronunciation dictionary ID. bulbul:v3 only.
|
|
71
71
|
|
|
72
72
|
**speechModel.properties.pitch** (`number`): Controls the pitch of the audio. Lower values result in a deeper voice, while higher values make it sharper. bulbul:v2 only. Range: -0.75 to 0.75.
|
|
73
73
|
|
|
74
74
|
**speechModel.properties.loudness** (`number`): Controls the loudness of the audio. bulbul:v2 only. Range: 0.3 to 3.0.
|
|
75
75
|
|
|
76
|
-
**speechModel.properties.
|
|
76
|
+
**speechModel.properties.enable_preprocessing** (`boolean`): Enables normalization of English words and numeric entities (numbers, dates, etc.). bulbul:v2 only. Default is false.
|
|
77
77
|
|
|
78
|
-
**speechModel.properties.
|
|
78
|
+
**speechModel.properties.speech_sample_rate** (`8000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000`): Audio sample rate in Hz.
|
|
79
79
|
|
|
80
|
-
**speechModel.properties.
|
|
80
|
+
**speechModel.properties.output_audio_codec** (`'mp3' | 'wav' | 'linear16' | 'mulaw' | 'alaw' | 'opus' | 'flac' | 'aac'`): Output audio codec.
|
|
81
81
|
|
|
82
82
|
**speaker** (`SarvamVoiceId`): The speaker to be used for the output audio. Defaults to 'shubh'. bulbul:v3 supports 39 voices (shubh, aditya, ritu, priya, neha, rahul, pooja, rohan, simran, kavya, amit, dev, ishita, shreya, ratan, varun, manan, sumit, roopa, kabir, aayan, ashutosh, advait, amelia, sophia, anand, tanya, tarun, sunny, mani, gokul, vijay, shruti, suhani, mohit, kavitha, rehan, soham, rupali). bulbul:v2 supports 7 voices (anushka, manisha, vidya, arya, abhilash, karun, hitesh). Speakers are not interchangeable between model versions. (Default: `'shubh'`)
|
|
83
83
|
|
|
84
84
|
**listeningModel** (`SarvamListenOptions`): Configuration for speech-to-text recognition. (Default: `{ model: 'saarika:v2.5', languageCode: 'unknown' }`)
|
|
85
85
|
|
|
86
|
-
**listeningModel.apiKey** (`string`): Sarvam API key. Falls back to
|
|
86
|
+
**listeningModel.apiKey** (`string`): Sarvam API key. Falls back to SARVAM_API_KEY environment variable.
|
|
87
87
|
|
|
88
88
|
**listeningModel.model** (`SarvamSTTModel`): Specifies the model to use for speech-to-text conversion. Available options: saarika:v2.5 (transcription), saaras:v3 (multi-mode: transcribe/translate/verbatim/translit/codemix). Note: saarika:v1, saarika:v2, and saarika:flash have been deprecated by Sarvam.
|
|
89
89
|
|
|
@@ -17,27 +17,30 @@ const voice = new SpeechifyVoice()
|
|
|
17
17
|
// Initialize with custom configuration
|
|
18
18
|
const voice = new SpeechifyVoice({
|
|
19
19
|
speechModel: {
|
|
20
|
-
name: 'simba-3.
|
|
20
|
+
name: 'simba-3.5',
|
|
21
21
|
apiKey: 'your-api-key',
|
|
22
22
|
},
|
|
23
|
-
speaker: 'harper_32', // Default voice
|
|
23
|
+
speaker: 'harper_32', // Default voice
|
|
24
24
|
})
|
|
25
25
|
|
|
26
26
|
// Convert text to speech
|
|
27
27
|
const audioStream = await voice.speak('Hello, world!', {
|
|
28
28
|
speaker: 'imogen_32', // Override default voice
|
|
29
29
|
})
|
|
30
|
+
|
|
31
|
+
// Any voice speaks any of simba-3.5's 48 languages
|
|
32
|
+
const portuguese = await voice.speak('Olá, mundo!', { language: 'pt-BR' })
|
|
30
33
|
```
|
|
31
34
|
|
|
32
35
|
## Constructor parameters
|
|
33
36
|
|
|
34
|
-
**speechModel** (`SpeechifyConfig`): Configuration for text-to-speech functionality (Default: `{ name: 'simba-
|
|
37
|
+
**speechModel** (`SpeechifyConfig`): Configuration for text-to-speech functionality (Default: `{ name: 'simba-3.5' }`)
|
|
35
38
|
|
|
36
|
-
**speechModel.name** (`SpeechifyModel`): The Speechify model to use ('simba-3.2', 'simba-3.0', 'simba-english'
|
|
39
|
+
**speechModel.name** (`SpeechifyModel`): The Speechify model to use ('simba-3.5', 'simba-3.2', 'simba-3.0', or the legacy 'simba-english' and 'simba-multilingual')
|
|
37
40
|
|
|
38
|
-
**speechModel.apiKey** (`string`): Speechify API key. Falls back to
|
|
41
|
+
**speechModel.apiKey** (`string`): Speechify API key. Falls back to SPEECHIFY_API_KEY environment variable
|
|
39
42
|
|
|
40
|
-
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis.
|
|
43
|
+
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis. Any id from Speechify's catalog; every catalog voice works on simba-3.5. simba-3.2 accepts English voices only (Default: `'harper_32' for the Simba 3 models, otherwise 'george'`)
|
|
41
44
|
|
|
42
45
|
## Methods
|
|
43
46
|
|
|
@@ -53,11 +56,19 @@ Converts text to speech using the configured speech model and voice.
|
|
|
53
56
|
|
|
54
57
|
**options.model** (`SpeechifyModel`): Override the default model for this request
|
|
55
58
|
|
|
59
|
+
**options.language** (`string`): Locale of the text, such as 'pt-BR'. On simba-3.5 any voice speaks it
|
|
60
|
+
|
|
61
|
+
**options.audioFormat** (`'mp3' | 'ogg' | 'aac' | 'pcm'`): Container of the audio stream
|
|
62
|
+
|
|
63
|
+
**options.outputFormat** (`string`): Sample rate and bitrate, such as 'mp3_24000_128' or 'pcm_16000'
|
|
64
|
+
|
|
65
|
+
**options.options** (`object`): Synthesis switches such as { loudness_normalization: true }
|
|
66
|
+
|
|
56
67
|
Returns: `Promise<NodeJS.ReadableStream>`
|
|
57
68
|
|
|
58
69
|
### `getSpeakers()`
|
|
59
70
|
|
|
60
|
-
Returns
|
|
71
|
+
Returns every voice the API key can use, read live from Speechify's catalog. Each entry contains:
|
|
61
72
|
|
|
62
73
|
**voiceId** (`string`): Unique identifier for the voice
|
|
63
74
|
|
|
@@ -67,6 +78,8 @@ Returns an array of available voice options, where each node contains:
|
|
|
67
78
|
|
|
68
79
|
**gender** (`string`): Gender of the voice
|
|
69
80
|
|
|
81
|
+
**models** (`string[]`): Models that render this voice
|
|
82
|
+
|
|
70
83
|
### `listen()`
|
|
71
84
|
|
|
72
85
|
This method isn't supported by Speechify and will throw an error. Speechify doesn't provide speech-to-text functionality.
|
|
@@ -74,10 +87,10 @@ This method isn't supported by Speechify and will throw an error. Speechify does
|
|
|
74
87
|
## Notes
|
|
75
88
|
|
|
76
89
|
- Speechify requires an API key for authentication
|
|
77
|
-
- The default model is 'simba-
|
|
78
|
-
- 'simba-3.2' is
|
|
79
|
-
- 'simba-3.
|
|
80
|
-
- 'simba-
|
|
81
|
-
- The default speaker follows the configured model: '
|
|
90
|
+
- The default model is 'simba-3.5', Speechify's recommended model: 48 languages on one id, and every catalog voice speaks all of them
|
|
91
|
+
- 'simba-3.2' is English only; a non-English voice returns an error
|
|
92
|
+
- 'simba-3.0' covers English, German, Spanish, French, Italian and Portuguese
|
|
93
|
+
- 'simba-english' and 'simba-multilingual' are legacy ids. New workspaces get a 'model_retired' error, and from 2026-11-21 they are served by 'simba-3.2' and 'simba-3.5'
|
|
94
|
+
- The default speaker follows the configured model: 'harper_32' for the Simba 3 models, otherwise 'george'
|
|
82
95
|
- Speech-to-text functionality isn't supported
|
|
83
96
|
- Additional audio stream options can be passed through the speak() method's options parameter
|
|
@@ -51,7 +51,7 @@ agent.voice.close()
|
|
|
51
51
|
|
|
52
52
|
### Constructor options
|
|
53
53
|
|
|
54
|
-
**apiKey** (`string`): xAI API key. Falls back to the
|
|
54
|
+
**apiKey** (`string`): xAI API key. Falls back to the XAI_API_KEY environment variable.
|
|
55
55
|
|
|
56
56
|
**ephemeralToken** (`string`): Short-lived xAI token sent with the WebSocket protocol instead of an authorization header.
|
|
57
57
|
|
|
@@ -65,7 +65,7 @@ agent.voice.close()
|
|
|
65
65
|
|
|
66
66
|
**audio** (`XAIAudioConfig`): Input and output audio format configuration. (Default: `24 kHz audio/pcm input and output`)
|
|
67
67
|
|
|
68
|
-
**serverTools** (`XAIServerTool[]`): xAI server-side tools to send in session.update. Supports
|
|
68
|
+
**serverTools** (`XAIServerTool[]`): xAI server-side tools to send in session.update. Supports file_search, web_search, x_search, and mcp. These are merged with session.tools.
|
|
69
69
|
|
|
70
70
|
**session** (`Partial<XAISessionConfig>`): Additional xAI session fields to merge into the initial session.update event.
|
|
71
71
|
|
|
@@ -165,7 +165,7 @@ Sends a finite audio stream with `input_audio_buffer.append`. By default it comm
|
|
|
165
165
|
|
|
166
166
|
**audioData** (`NodeJS.ReadableStream`): Audio stream to send.
|
|
167
167
|
|
|
168
|
-
**options.commit** (`boolean`): Whether to send
|
|
168
|
+
**options.commit** (`boolean`): Whether to send input_audio_buffer.commit after the audio item. (Default: `true`)
|
|
169
169
|
|
|
170
170
|
**options.createResponse** (`boolean`): Whether to send response.create after the audio item. (Default: `true`)
|
|
171
171
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Merge Gateway
|
|
6
6
|
|
|
7
|
-
Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 202 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway).
|
|
10
10
|
|
|
@@ -165,6 +165,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
165
165
|
| `openai/gpt-6-luna` |
|
|
166
166
|
| `openai/gpt-6-sol` |
|
|
167
167
|
| `openai/gpt-6.1-sol` |
|
|
168
|
+
| `openai/gpt-6.1-terra` |
|
|
168
169
|
| `openai/gpt-audio` |
|
|
169
170
|
| `openai/gpt-audio-mini` |
|
|
170
171
|
| `openai/gpt-oss-120b` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Neon
|
|
6
6
|
|
|
7
|
-
Neon aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Neon aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 58 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Neon documentation](https://neon.com/docs).
|
|
10
10
|
|
|
@@ -59,6 +59,7 @@ NEON_AI_GATEWAY_TOKEN=your-gateway-key
|
|
|
59
59
|
| `gemini-3-7-flash` |
|
|
60
60
|
| `gemini-3-8-flash` |
|
|
61
61
|
| `gemini-3-flash` |
|
|
62
|
+
| `gemini-4-argon` |
|
|
62
63
|
| `gemma-3-12b` |
|
|
63
64
|
| `glm-5-2` |
|
|
64
65
|
| `glm-5-3` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Netlify
|
|
6
6
|
|
|
7
|
-
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access
|
|
7
|
+
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 286 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
|
|
10
10
|
|
|
@@ -56,10 +56,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
56
56
|
| `anthropic/claude-sonnet-4-6` |
|
|
57
57
|
| `anthropic/claude-sonnet-5` |
|
|
58
58
|
| `anthropic/claude-sonnet-5-5` |
|
|
59
|
-
| `gemini/gemini-2.5-flash` |
|
|
60
59
|
| `gemini/gemini-2.5-flash-image` |
|
|
61
|
-
| `gemini/gemini-2.5-flash-lite` |
|
|
62
|
-
| `gemini/gemini-2.5-pro` |
|
|
63
60
|
| `gemini/gemini-3-flash-preview` |
|
|
64
61
|
| `gemini/gemini-3-pro-image` |
|
|
65
62
|
| `gemini/gemini-3.1-flash-image` |
|
|
@@ -118,6 +115,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
118
115
|
| `openai/gpt-6-luna` |
|
|
119
116
|
| `openai/gpt-6-sol` |
|
|
120
117
|
| `openai/gpt-6.1-sol` |
|
|
118
|
+
| `openai/gpt-6.1-terra` |
|
|
121
119
|
| `openai/gpt-image-1` |
|
|
122
120
|
| `openai/gpt-image-1.5` |
|
|
123
121
|
| `openai/gpt-image-2` |
|
|
@@ -167,7 +165,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
167
165
|
| `openrouter/google/gemma-4-26b-a4b-it` |
|
|
168
166
|
| `openrouter/google/gemma-4-31b-it` |
|
|
169
167
|
| `openrouter/gryphe/mythomax-l2-13b` |
|
|
170
|
-
| `openrouter/ibm-granite/granite-4.0-h-micro` |
|
|
171
168
|
| `openrouter/ibm-granite/granite-4.2-8b` |
|
|
172
169
|
| `openrouter/inception/mercury-2` |
|
|
173
170
|
| `openrouter/inception/mercury-2.5` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenRouter
|
|
6
6
|
|
|
7
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 389 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -84,7 +84,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
84
84
|
| `anthropic/claude-sonnet-4.6` |
|
|
85
85
|
| `anthropic/claude-sonnet-5` |
|
|
86
86
|
| `anthropic/claude-sonnet-5.5` |
|
|
87
|
-
| `arcee-ai/trinity-large-thinking` |
|
|
88
87
|
| `bytedance-seed/seed-1.6` |
|
|
89
88
|
| `bytedance-seed/seed-1.6-flash` |
|
|
90
89
|
| `bytedance-seed/seed-2-1-turbo` |
|
|
@@ -149,7 +148,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
149
148
|
| `google/lyria-3-clip-preview` |
|
|
150
149
|
| `google/lyria-3-pro-preview` |
|
|
151
150
|
| `gryphe/mythomax-l2-13b` |
|
|
152
|
-
| `ibm-granite/granite-4.0-h-micro` |
|
|
153
151
|
| `ibm-granite/granite-4.2-8b` |
|
|
154
152
|
| `inception/mercury-2` |
|
|
155
153
|
| `inception/mercury-2.5` |
|
|
@@ -230,7 +228,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
230
228
|
| `nvidia/nemotron-3-nano-30b-a3b` |
|
|
231
229
|
| `nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free` |
|
|
232
230
|
| `nvidia/nemotron-3-super-120b-a12b` |
|
|
233
|
-
| `nvidia/nemotron-3-super-120b-a12b:free` |
|
|
234
231
|
| `nvidia/nemotron-3-ultra-550b-a55b` |
|
|
235
232
|
| `nvidia/nemotron-3-ultra-550b-a55b:free` |
|
|
236
233
|
| `nvidia/nemotron-3.5-content-safety` |
|
|
@@ -288,6 +285,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
288
285
|
| `openai/gpt-6-sol-pro` |
|
|
289
286
|
| `openai/gpt-6.1-sol` |
|
|
290
287
|
| `openai/gpt-6.1-sol-pro` |
|
|
288
|
+
| `openai/gpt-6.1-terra` |
|
|
289
|
+
| `openai/gpt-6.1-terra-pro` |
|
|
291
290
|
| `openai/gpt-audio` |
|
|
292
291
|
| `openai/gpt-audio-mini` |
|
|
293
292
|
| `openai/gpt-chat-latest` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vercel
|
|
6
6
|
|
|
7
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 418 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
10
10
|
|
|
@@ -334,6 +334,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
334
334
|
| `openai/gpt-6-sol-fast` |
|
|
335
335
|
| `openai/gpt-6.1-sol` |
|
|
336
336
|
| `openai/gpt-6.1-sol-fast` |
|
|
337
|
+
| `openai/gpt-6.1-terra` |
|
|
338
|
+
| `openai/gpt-6.1-terra-fast` |
|
|
337
339
|
| `openai/gpt-image-1-mini` |
|
|
338
340
|
| `openai/gpt-image-1.5` |
|
|
339
341
|
| `openai/gpt-image-2` |
|