@mastra/mcp-docs-server 1.3.10-alpha.6 → 1.3.10-alpha.7
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/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 +3 -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/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/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 +10 -0
- 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 +4 -0
- 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 +4 -4
- package/.docs/integrations/voice/xai.md +3 -3
- package/.docs/models/gateways/netlify.md +2 -4
- package/.docs/models/gateways/openrouter.md +1 -2
- 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 +7 -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 +4 -0
- 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 +9 -8
- package/.docs/models/providers/empiriolabs.md +4 -0
- 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 +4 -0
- 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 +9 -5
- 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 +13 -10
- 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 +4 -0
- package/.docs/models/providers/llmgateway.md +4 -0
- 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 +4 -0
- 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 +22 -18
- package/.docs/models/providers/nearai.md +5 -2
- 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 +4 -0
- 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 +6 -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 +7 -3
- 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 +20 -3
- 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 +2 -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/responses.md +4 -4
- package/.docs/reference/client-js/workflows.md +2 -0
- package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
- 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 +1 -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/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-storage-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/sentry.md +5 -5
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +4 -4
- package/.docs/reference/processors/processor-interface.md +4 -4
- package/.docs/reference/processors/response-cache.md +1 -1
- 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 +1 -1
- package/.docs/reference/server/koa-adapter.md +2 -0
- package/.docs/reference/storage/overview.md +4 -4
- 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 +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/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 +1 -1
- package/.docs/reference/vectors/azure-ai-search.md +1 -1
- package/.docs/reference/vectors/chroma.md +2 -2
- package/.docs/reference/vectors/mongodb.md +1 -1
- package/.docs/reference/vectors/pg.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/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/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/platform-filesystem.md +3 -3
- package/.docs/reference/workspace/platform-sandbox.md +6 -6
- package/.docs/reference/workspace/workspace-class.md +1 -1
- 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 +9 -9
|
@@ -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
|
|
|
@@ -35,9 +35,9 @@ const audioStream = await voice.speak('Hello, world!', {
|
|
|
35
35
|
|
|
36
36
|
**speechModel.name** (`SpeechifyModel`): The Speechify model to use ('simba-3.2', 'simba-3.0', 'simba-english', or 'simba-multilingual')
|
|
37
37
|
|
|
38
|
-
**speechModel.apiKey** (`string`): Speechify API key. Falls back to
|
|
38
|
+
**speechModel.apiKey** (`string`): Speechify API key. Falls back to SPEECHIFY_API_KEY environment variable
|
|
39
39
|
|
|
40
|
-
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis. The Simba 3 models serve a curated voice set only (
|
|
40
|
+
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis. The Simba 3 models serve a curated voice set only (harper_32, imogen_32, ...); the classic catalog voices (george, henry, ...) work with simba-english and simba-multilingual (Default: `'harper_32' for Simba 3 models, otherwise 'george'`)
|
|
41
41
|
|
|
42
42
|
## Methods
|
|
43
43
|
|
|
@@ -77,7 +77,7 @@ This method isn't supported by Speechify and will throw an error. Speechify does
|
|
|
77
77
|
- The default model is 'simba-english'
|
|
78
78
|
- 'simba-3.2' is Speechify's latest streaming model with the lowest latency and richest expressivity, and the recommended model for English
|
|
79
79
|
- 'simba-3.2' and 'simba-3.0' are currently English only; use 'simba-multilingual' for non-English or mixed-language input
|
|
80
|
-
- 'simba-3.2' and 'simba-3.0' serve a curated voice set only: '
|
|
81
|
-
- The default speaker follows the configured model: '
|
|
80
|
+
- 'simba-3.2' and 'simba-3.0' serve a curated voice set only: 'beatrice_32', 'dominic_32', 'edmund_32', 'geffen_32', 'harper_32', 'hugh_32', 'imogen_32', 'wyatt_32'. Classic catalog voices such as 'george' return an error on these models
|
|
81
|
+
- The default speaker follows the configured model: 'harper_32' for the Simba 3 models, otherwise 'george'
|
|
82
82
|
- Speech-to-text functionality isn't supported
|
|
83
83
|
- 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
|
# 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 287 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` |
|
|
@@ -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` |
|
package/.docs/models/index.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Model Providers
|
|
6
6
|
|
|
7
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
7
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 8240 models from 220 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -129,6 +129,8 @@ const reasoningAgent = new Agent({
|
|
|
129
129
|
Since models are just strings, you can select them dynamically based on [request context](https://mastra.ai/docs/server/request-context), variables, or any other logic.
|
|
130
130
|
|
|
131
131
|
```typescript
|
|
132
|
+
import { Agent } from "@mastra/core/agent";
|
|
133
|
+
|
|
132
134
|
const agent = new Agent({
|
|
133
135
|
id: "dynamic-assistant",
|
|
134
136
|
name: "Dynamic Assistant",
|
|
@@ -151,6 +153,8 @@ This enables powerful patterns:
|
|
|
151
153
|
Different model providers expose their own configuration options. With OpenAI, you might adjust the `reasoningEffort`. With Anthropic, you might tune `cacheControl`. Mastra lets you set these specific `providerOptions` either at the agent level or per message.
|
|
152
154
|
|
|
153
155
|
```typescript
|
|
156
|
+
import { Agent } from "@mastra/core/agent";
|
|
157
|
+
|
|
154
158
|
// Agent level (apply to all future messages)
|
|
155
159
|
const planner = new Agent({
|
|
156
160
|
id: "planner",
|
|
@@ -185,6 +189,8 @@ const highEffort = await planner.generate([
|
|
|
185
189
|
If you need to specify custom headers, such as an organization ID or other provider-specific fields, use this syntax.
|
|
186
190
|
|
|
187
191
|
```typescript
|
|
192
|
+
import { Agent } from "@mastra/core/agent";
|
|
193
|
+
|
|
188
194
|
const agent = new Agent({
|
|
189
195
|
id: "custom-agent",
|
|
190
196
|
name: "Custom Agent",
|
|
@@ -171,6 +171,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
171
171
|
### Custom headers
|
|
172
172
|
|
|
173
173
|
```typescript
|
|
174
|
+
import { Agent } from "@mastra/core/agent";
|
|
175
|
+
|
|
174
176
|
const agent = new Agent({
|
|
175
177
|
id: "custom-agent",
|
|
176
178
|
name: "custom-agent",
|
|
@@ -188,6 +190,8 @@ const agent = new Agent({
|
|
|
188
190
|
### Dynamic model selection
|
|
189
191
|
|
|
190
192
|
```typescript
|
|
193
|
+
import { Agent } from "@mastra/core/agent";
|
|
194
|
+
|
|
191
195
|
const agent = new Agent({
|
|
192
196
|
id: "dynamic-agent",
|
|
193
197
|
name: "Dynamic Agent",
|
|
@@ -114,6 +114,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
114
114
|
### Custom headers
|
|
115
115
|
|
|
116
116
|
```typescript
|
|
117
|
+
import { Agent } from "@mastra/core/agent";
|
|
118
|
+
|
|
117
119
|
const agent = new Agent({
|
|
118
120
|
id: "custom-agent",
|
|
119
121
|
name: "custom-agent",
|
|
@@ -131,6 +133,8 @@ const agent = new Agent({
|
|
|
131
133
|
### Dynamic model selection
|
|
132
134
|
|
|
133
135
|
```typescript
|
|
136
|
+
import { Agent } from "@mastra/core/agent";
|
|
137
|
+
|
|
134
138
|
const agent = new Agent({
|
|
135
139
|
id: "dynamic-agent",
|
|
136
140
|
name: "Dynamic Agent",
|
|
@@ -49,6 +49,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
49
49
|
### Custom headers
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
|
+
import { Agent } from "@mastra/core/agent";
|
|
53
|
+
|
|
52
54
|
const agent = new Agent({
|
|
53
55
|
id: "custom-agent",
|
|
54
56
|
name: "custom-agent",
|
|
@@ -66,6 +68,8 @@ const agent = new Agent({
|
|
|
66
68
|
### Dynamic model selection
|
|
67
69
|
|
|
68
70
|
```typescript
|
|
71
|
+
import { Agent } from "@mastra/core/agent";
|
|
72
|
+
|
|
69
73
|
const agent = new Agent({
|
|
70
74
|
id: "dynamic-agent",
|
|
71
75
|
name: "Dynamic Agent",
|
|
@@ -55,6 +55,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
55
55
|
### Custom headers
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
|
+
import { Agent } from "@mastra/core/agent";
|
|
59
|
+
|
|
58
60
|
const agent = new Agent({
|
|
59
61
|
id: "custom-agent",
|
|
60
62
|
name: "custom-agent",
|
|
@@ -72,6 +74,8 @@ const agent = new Agent({
|
|
|
72
74
|
### Dynamic model selection
|
|
73
75
|
|
|
74
76
|
```typescript
|
|
77
|
+
import { Agent } from "@mastra/core/agent";
|
|
78
|
+
|
|
75
79
|
const agent = new Agent({
|
|
76
80
|
id: "dynamic-agent",
|
|
77
81
|
name: "Dynamic Agent",
|
|
@@ -51,6 +51,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
51
51
|
### Custom headers
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
|
+
import { Agent } from "@mastra/core/agent";
|
|
55
|
+
|
|
54
56
|
const agent = new Agent({
|
|
55
57
|
id: "custom-agent",
|
|
56
58
|
name: "custom-agent",
|
|
@@ -68,6 +70,8 @@ const agent = new Agent({
|
|
|
68
70
|
### Dynamic model selection
|
|
69
71
|
|
|
70
72
|
```typescript
|
|
73
|
+
import { Agent } from "@mastra/core/agent";
|
|
74
|
+
|
|
71
75
|
const agent = new Agent({
|
|
72
76
|
id: "dynamic-agent",
|
|
73
77
|
name: "Dynamic Agent",
|
|
@@ -49,6 +49,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
49
49
|
### Custom headers
|
|
50
50
|
|
|
51
51
|
```typescript
|
|
52
|
+
import { Agent } from "@mastra/core/agent";
|
|
53
|
+
|
|
52
54
|
const agent = new Agent({
|
|
53
55
|
id: "custom-agent",
|
|
54
56
|
name: "custom-agent",
|
|
@@ -66,6 +68,8 @@ const agent = new Agent({
|
|
|
66
68
|
### Dynamic model selection
|
|
67
69
|
|
|
68
70
|
```typescript
|
|
71
|
+
import { Agent } from "@mastra/core/agent";
|
|
72
|
+
|
|
69
73
|
const agent = new Agent({
|
|
70
74
|
id: "dynamic-agent",
|
|
71
75
|
name: "Dynamic Agent",
|
|
@@ -51,6 +51,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
51
51
|
### Custom headers
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
|
+
import { Agent } from "@mastra/core/agent";
|
|
55
|
+
|
|
54
56
|
const agent = new Agent({
|
|
55
57
|
id: "custom-agent",
|
|
56
58
|
name: "custom-agent",
|
|
@@ -68,6 +70,8 @@ const agent = new Agent({
|
|
|
68
70
|
### Dynamic model selection
|
|
69
71
|
|
|
70
72
|
```typescript
|
|
73
|
+
import { Agent } from "@mastra/core/agent";
|
|
74
|
+
|
|
71
75
|
const agent = new Agent({
|
|
72
76
|
id: "dynamic-agent",
|
|
73
77
|
name: "Dynamic Agent",
|
|
@@ -48,6 +48,8 @@ Model availability, capabilities, context windows, and pricing are sourced from
|
|
|
48
48
|
### Custom headers
|
|
49
49
|
|
|
50
50
|
```typescript
|
|
51
|
+
import { Agent } from "@mastra/core/agent";
|
|
52
|
+
|
|
51
53
|
const agent = new Agent({
|
|
52
54
|
id: "custom-agent",
|
|
53
55
|
name: "custom-agent",
|
|
@@ -65,6 +67,8 @@ const agent = new Agent({
|
|
|
65
67
|
### Dynamic model selection
|
|
66
68
|
|
|
67
69
|
```typescript
|
|
70
|
+
import { Agent } from "@mastra/core/agent";
|
|
71
|
+
|
|
68
72
|
const agent = new Agent({
|
|
69
73
|
id: "dynamic-agent",
|
|
70
74
|
name: "Dynamic Agent",
|