@mastra/mcp-docs-server 1.3.9 → 1.3.10-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/code-mode.md +2 -2
- package/.docs/docs/agents/guardrails.md +13 -5
- package/.docs/docs/agents/human-in-the-loop.md +27 -5
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +69 -20
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/tools.md +15 -10
- package/.docs/docs/browser.md +13 -1
- package/.docs/docs/channels.md +48 -6
- package/.docs/docs/connections/a2a.md +1 -1
- package/.docs/docs/connections/acp.md +2 -2
- package/.docs/docs/connections/mcp.md +159 -50
- package/.docs/docs/connections/overview.md +1 -1
- package/.docs/docs/connections/sdk-agents.md +8 -8
- package/.docs/docs/deployment/mastra-server.md +2 -0
- package/.docs/docs/deployment/monorepo.md +2 -0
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/experiments.md +2 -2
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/overview.md +6 -4
- package/.docs/docs/evals/quick-checks.md +2 -2
- package/.docs/docs/guides/build-an-eval-loop.md +3 -3
- package/.docs/docs/guides/context-engineering.md +13 -6
- package/.docs/docs/guides/mcp-authentication-authorization.md +2 -2
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +7 -7
- package/.docs/docs/harness/background-tasks.md +7 -3
- package/.docs/docs/harness/durable-agents.md +11 -6
- package/.docs/docs/harness/goals.md +7 -5
- package/.docs/docs/harness/overview.md +2 -2
- package/.docs/docs/harness/schedules.md +10 -5
- package/.docs/docs/index.md +6 -6
- package/.docs/docs/mastra-platform/connect/channels.md +1 -1
- package/.docs/docs/mastra-platform/connect/providers.md +27 -26
- package/.docs/docs/mastra-platform/connect/tools.md +4 -4
- package/.docs/docs/mastra-platform/deploy.md +2 -0
- package/.docs/docs/mastra-platform/observability.md +1 -1
- 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/memory-processors.md +7 -7
- package/.docs/docs/memory/message-history.md +8 -5
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +24 -14
- package/.docs/docs/memory/overview.md +6 -0
- package/.docs/docs/memory/semantic-recall.md +7 -3
- package/.docs/docs/memory/working-memory.md +2 -2
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +2 -1
- package/.docs/docs/observability/logging.md +8 -5
- package/.docs/docs/observability/tracing/overview.md +17 -0
- package/.docs/docs/sandbox/filesystem.md +1 -0
- package/.docs/docs/sandbox/overview.md +1 -1
- 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/mastra-client.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/request-context.md +9 -3
- package/.docs/docs/server/server-adapters.md +12 -204
- package/.docs/docs/signals/notifications.md +233 -0
- package/.docs/docs/signals/overview.md +94 -0
- package/.docs/docs/signals/running-across-processes.md +132 -0
- package/.docs/docs/signals/sending-signals.md +166 -0
- package/.docs/docs/signals/signal-providers.md +278 -0
- package/.docs/docs/signals/state-signals.md +103 -0
- package/.docs/docs/signals/thread-streams.md +125 -0
- package/.docs/docs/skills.md +4 -4
- package/.docs/docs/storage.md +1 -1
- package/.docs/docs/studio/editor.md +39 -23
- package/.docs/docs/studio/overview.md +2 -0
- package/.docs/docs/subagents.md +13 -7
- 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/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +3 -1
- package/.docs/integrations/agentic-ui/openui.md +1 -1
- 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/browsers/agent-browser.md +1 -1
- package/.docs/integrations/browsers/browser-viewer.md +1 -1
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +6 -6
- package/.docs/integrations/channels/discord.md +1 -1
- package/.docs/integrations/channels/github.md +2 -2
- package/.docs/integrations/channels/imessage.md +2 -50
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/teams.md +1 -1
- package/.docs/integrations/channels/telegram.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +3 -3
- package/.docs/integrations/databases/cloudflare-kv.md +4 -0
- package/.docs/integrations/databases/dynamodb.md +4 -4
- package/.docs/integrations/databases/elasticsearch.md +1 -1
- package/.docs/integrations/databases/mongodb.md +1 -1
- package/.docs/integrations/databases/oracledb.md +1 -1
- package/.docs/integrations/databases/postgresql.md +5 -5
- package/.docs/integrations/databases/redis.md +1 -1
- package/.docs/integrations/databases/upstash.md +1 -1
- package/.docs/integrations/deploy/inngest.md +1 -0
- package/.docs/integrations/deploy/kubernetes.md +1 -1
- package/.docs/integrations/deploy/neon.md +2 -1
- package/.docs/integrations/deploy/render.md +2 -2
- package/.docs/integrations/file-storage/agentfs.md +1 -1
- package/.docs/integrations/file-storage/amazon-s3.md +20 -3
- package/.docs/integrations/file-storage/archil.md +4 -4
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/google-drive.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +2 -2
- package/.docs/integrations/file-storage/neon.md +210 -0
- package/.docs/integrations/file-storage/vercel-files.md +5 -1
- package/.docs/integrations/frameworks/express.md +0 -64
- package/.docs/integrations/observability/datadog.md +5 -0
- package/.docs/integrations/observability/langfuse.md +1 -1
- package/.docs/integrations/observability/langsmith.md +35 -2
- package/.docs/integrations/observability/opentelemetry.md +32 -9
- package/.docs/integrations/observability/sentry.md +22 -22
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/blaxel.md +1 -1
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +4 -4
- package/.docs/integrations/sandboxes/docker.md +2 -2
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +9 -7
- package/.docs/integrations/sandboxes/modal.md +4 -4
- package/.docs/integrations/sandboxes/railway.md +4 -4
- package/.docs/integrations/sandboxes/sprites.md +1 -1
- package/.docs/integrations/sandboxes/vercel.md +6 -6
- package/.docs/integrations/tools/brightdata.md +2 -2
- package/.docs/integrations/tools/firecrawl.md +1 -1
- package/.docs/integrations/tools/parallel.md +4 -4
- package/.docs/integrations/tools/perplexity.md +2 -2
- package/.docs/integrations/tools/tavily.md +2 -2
- 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 +11 -8
- 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/integrations.md +1 -0
- package/.docs/models/environment-variables.md +2 -2
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +4 -14
- package/.docs/models/gateways/neon.md +2 -1
- package/.docs/models/gateways/netlify.md +3 -5
- package/.docs/models/gateways/openrouter.md +6 -6
- package/.docs/models/gateways/vercel.md +7 -9
- package/.docs/models/index.md +21 -15
- package/.docs/models/providers/302ai.md +7 -3
- package/.docs/models/providers/abacus.md +74 -110
- 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 +172 -173
- package/.docs/models/providers/ainetcafe.md +4 -0
- package/.docs/models/providers/aixy.md +4 -0
- package/.docs/models/providers/aki-io.md +9 -6
- package/.docs/models/providers/alibaba-cn.md +6 -2
- 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 +6 -2
- package/.docs/models/providers/ambient.md +6 -2
- 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 +6 -2
- package/.docs/models/providers/bailing.md +4 -0
- package/.docs/models/providers/baseten.md +8 -4
- package/.docs/models/providers/bee.md +4 -0
- package/.docs/models/providers/berget.md +7 -4
- package/.docs/models/providers/blueclaw.md +4 -0
- package/.docs/models/providers/bothub.md +8 -4
- package/.docs/models/providers/boundless.md +4 -4
- package/.docs/models/providers/cerebras.md +4 -0
- package/.docs/models/providers/chutes.md +18 -11
- package/.docs/models/providers/clarifai.md +4 -0
- package/.docs/models/providers/claudinio.md +4 -0
- package/.docs/models/providers/cline-pass.md +6 -6
- 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 -2
- package/.docs/models/providers/coralbricks.md +5 -1
- package/.docs/models/providers/cortecs.md +9 -4
- package/.docs/models/providers/crof.md +4 -0
- package/.docs/models/providers/crossmodel.md +5 -3
- package/.docs/models/providers/crusoe.md +5 -7
- package/.docs/models/providers/daoxe.md +5 -1
- package/.docs/models/providers/databricks.md +4 -0
- package/.docs/models/providers/deepinfra.md +6 -2
- package/.docs/models/providers/deepseek.md +4 -0
- package/.docs/models/providers/digitalocean.md +11 -10
- package/.docs/models/providers/dinference.md +4 -3
- 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 +33 -9
- package/.docs/models/providers/empiriolabs.md +8 -5
- package/.docs/models/providers/engy.md +6 -2
- package/.docs/models/providers/evroc.md +6 -2
- package/.docs/models/providers/fastrouter.md +45 -50
- package/.docs/models/providers/firepass.md +4 -0
- package/.docs/models/providers/fireworks-ai.md +32 -23
- package/.docs/models/providers/firmware.md +4 -0
- package/.docs/models/providers/freemodel.md +4 -0
- package/.docs/models/providers/friendli.md +15 -13
- package/.docs/models/providers/frogbot.md +6 -7
- package/.docs/models/providers/github-models.md +4 -0
- package/.docs/models/providers/gmicloud.md +4 -0
- package/.docs/models/providers/google.md +6 -5
- package/.docs/models/providers/greenpt.md +18 -20
- package/.docs/models/providers/groq.md +5 -1
- 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 +7 -0
- package/.docs/models/providers/hyper.md +4 -0
- package/.docs/models/providers/iflowcn.md +6 -18
- package/.docs/models/providers/impossibl.md +6 -9
- package/.docs/models/providers/inception.md +4 -0
- package/.docs/models/providers/inceptron.md +12 -6
- package/.docs/models/providers/inco.md +5 -1
- package/.docs/models/providers/infer.md +4 -0
- package/.docs/models/providers/inference.md +9 -11
- package/.docs/models/providers/inferx.md +4 -0
- package/.docs/models/providers/infomaniak.md +14 -12
- package/.docs/models/providers/io-net.md +15 -17
- package/.docs/models/providers/iteracompute.md +7 -3
- package/.docs/models/providers/jalapeno.md +18 -19
- package/.docs/models/providers/jiekou.md +57 -63
- package/.docs/models/providers/kenari.md +38 -53
- package/.docs/models/providers/kilo.md +31 -27
- package/.docs/models/providers/kimi-code-plan-cn.md +7 -1
- package/.docs/models/providers/kimi-code-plan-global.md +7 -1
- 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 +6 -8
- package/.docs/models/providers/liquid.md +4 -0
- package/.docs/models/providers/llama.md +6 -11
- package/.docs/models/providers/llmgateway-providers.md +25 -23
- package/.docs/models/providers/llmgateway.md +20 -13
- package/.docs/models/providers/llmtech.md +4 -0
- package/.docs/models/providers/llmtr.md +5 -6
- package/.docs/models/providers/lmstudio.md +4 -0
- package/.docs/models/providers/longcat.md +4 -0
- package/.docs/models/providers/lowrouter.md +7 -2
- package/.docs/models/providers/lucidquery.md +6 -2
- package/.docs/models/providers/lynkr.md +4 -0
- package/.docs/models/providers/meganova.md +10 -7
- package/.docs/models/providers/melious.md +6 -7
- 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 +8 -3
- package/.docs/models/providers/mixlayer.md +4 -0
- package/.docs/models/providers/moark.md +4 -2
- 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 +8 -2
- package/.docs/models/providers/moonshotai.md +8 -2
- package/.docs/models/providers/morph.md +18 -6
- package/.docs/models/providers/munito-eu.md +84 -0
- package/.docs/models/providers/munito.md +85 -0
- package/.docs/models/providers/nan.md +5 -1
- package/.docs/models/providers/nano-gpt.md +651 -613
- package/.docs/models/providers/nearai.md +7 -2
- package/.docs/models/providers/nebius.md +33 -27
- package/.docs/models/providers/neosmith.md +4 -0
- package/.docs/models/providers/neuralwatt.md +5 -4
- package/.docs/models/providers/nova.md +4 -0
- package/.docs/models/providers/novita-ai.md +8 -1
- package/.docs/models/providers/nvidia.md +19 -35
- package/.docs/models/providers/oci.md +4 -1
- package/.docs/models/providers/ofox.md +5 -1
- package/.docs/models/providers/ollama-cloud.md +6 -2
- package/.docs/models/providers/openai.md +6 -1
- package/.docs/models/providers/opencode-go.md +9 -4
- package/.docs/models/providers/opencode.md +88 -88
- package/.docs/models/providers/openreason.md +4 -0
- package/.docs/models/providers/opper.md +5 -4
- package/.docs/models/providers/orcarouter.md +18 -16
- package/.docs/models/providers/ovhcloud.md +4 -0
- package/.docs/models/providers/pareto.md +5 -1
- package/.docs/models/providers/pendra.md +4 -0
- package/.docs/models/providers/perplexity-agent.md +6 -12
- package/.docs/models/providers/perplexity.md +4 -0
- package/.docs/models/providers/pioneer.md +11 -7
- package/.docs/models/providers/poe.md +20 -70
- package/.docs/models/providers/poolside.md +4 -0
- package/.docs/models/providers/prime.md +8 -2
- package/.docs/models/providers/privatemode-ai.md +4 -0
- package/.docs/models/providers/qihang-ai.md +11 -11
- package/.docs/models/providers/qiniu-ai.md +13 -94
- package/.docs/models/providers/reflection.md +4 -0
- package/.docs/models/providers/regolo-ai.md +9 -7
- package/.docs/models/providers/requesty.md +10 -1
- package/.docs/models/providers/routing-run.md +4 -0
- package/.docs/models/providers/runinfra.md +5 -4
- package/.docs/models/providers/sakana.md +4 -0
- package/.docs/models/providers/sambanova.md +4 -0
- package/.docs/models/providers/sarvam.md +5 -2
- package/.docs/models/providers/scaleway.md +16 -11
- 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 +39 -41
- package/.docs/models/providers/siliconflow.md +7 -6
- package/.docs/models/providers/snowflake-cortex.md +4 -0
- package/.docs/models/providers/stackit.md +6 -4
- 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 +8 -4
- package/.docs/models/providers/stepfun-step-plan.md +4 -0
- package/.docs/models/providers/stepfun.md +8 -4
- package/.docs/models/providers/subconscious.md +4 -0
- package/.docs/models/providers/submodel.md +5 -1
- package/.docs/models/providers/synthetic.md +4 -4
- package/.docs/models/providers/tempr.md +5 -4
- package/.docs/models/providers/tencent-coding-plan.md +7 -10
- 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 -13
- package/.docs/models/providers/the-grid-ai.md +6 -1
- 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 +5 -1
- 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 +16 -11
- package/.docs/models/providers/umans-ai.md +15 -10
- package/.docs/models/providers/unorouter.md +4 -13
- package/.docs/models/providers/upstage.md +4 -0
- package/.docs/models/providers/vancine.md +4 -1
- package/.docs/models/providers/vispark.md +4 -0
- package/.docs/models/providers/vivgrid.md +30 -39
- package/.docs/models/providers/volcengine-coding-plan.md +12 -12
- package/.docs/models/providers/volcengine.md +16 -18
- package/.docs/models/providers/vultr.md +4 -2
- package/.docs/models/providers/wafer.ai.md +7 -7
- package/.docs/models/providers/wallaby.md +4 -0
- package/.docs/models/providers/wandb.md +9 -5
- package/.docs/models/providers/xai.md +23 -3
- package/.docs/models/providers/xiaomi-token-plan-ams.md +8 -4
- package/.docs/models/providers/xiaomi-token-plan-cn.md +8 -4
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +8 -4
- package/.docs/models/providers/xiaomi.md +8 -4
- package/.docs/models/providers/xpersona.md +4 -1
- 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 +109 -125
- package/.docs/models/providers/zhipuai-coding-plan.md +4 -0
- package/.docs/models/providers/zhipuai.md +4 -0
- package/.docs/models/providers.md +2 -2
- package/.docs/reference/acp/acp-agent.md +5 -5
- package/.docs/reference/acp/create-acp-tool.md +2 -2
- package/.docs/reference/agent-controller/agent-controller-class.md +3 -3
- package/.docs/reference/agent-controller/session.md +10 -10
- package/.docs/reference/agents/agent.md +28 -48
- package/.docs/reference/agents/channels.md +35 -14
- package/.docs/reference/agents/createSkill.md +1 -1
- package/.docs/reference/agents/durable-agent.md +31 -23
- package/.docs/reference/agents/generate.md +61 -4
- package/.docs/reference/agents/generateLegacy.md +4 -4
- package/.docs/reference/agents/getLLM.md +2 -2
- package/.docs/reference/agents/getMetadata.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +3 -1
- package/.docs/reference/agents/network.md +1 -1
- 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 +2 -2
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/browser/firecrawl-browser.md +2 -2
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +5 -5
- package/.docs/reference/channels/slack-provider.md +7 -2
- package/.docs/reference/channels/teams-provider.md +2 -2
- package/.docs/reference/channels/telegram-provider.md +2 -2
- package/.docs/reference/cli/mastra.md +26 -0
- package/.docs/reference/client-js/agent-controller.md +5 -2
- package/.docs/reference/client-js/agents.md +22 -2
- package/.docs/reference/client-js/conversations.md +3 -3
- package/.docs/reference/client-js/datasets.md +1 -1
- package/.docs/reference/client-js/observability.md +39 -15
- 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/build-base-prompt.md +1 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +9 -9
- package/.docs/reference/configuration.md +4 -4
- package/.docs/reference/connect/channels.md +2 -2
- package/.docs/reference/connect/credential.md +1 -1
- package/.docs/reference/connect/providers.md +166 -112
- package/.docs/reference/connect/tools.md +17 -19
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-class.md +7 -5
- package/.docs/reference/core/mastra-model-gateway.md +7 -2
- package/.docs/reference/datasets/startExperiment.md +17 -2
- package/.docs/reference/deployer.md +6 -3
- package/.docs/reference/editor/blob-store-provider.md +2 -2
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/editor/tool-provider.md +1 -1
- package/.docs/reference/evals/answer-relevancy.md +3 -3
- package/.docs/reference/evals/answer-similarity.md +5 -3
- package/.docs/reference/evals/bias.md +3 -3
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/content-similarity.md +2 -2
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-recall.md +3 -3
- package/.docs/reference/evals/context-relevance.md +11 -11
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +8 -8
- package/.docs/reference/evals/multi-turn-judge.md +2 -2
- package/.docs/reference/evals/noise-sensitivity.md +13 -13
- package/.docs/reference/evals/not-scorable.md +1 -1
- package/.docs/reference/evals/prompt-alignment.md +26 -25
- package/.docs/reference/evals/rubric.md +6 -6
- package/.docs/reference/evals/run-evals.md +1 -1
- package/.docs/reference/evals/scorer-utils.md +6 -4
- package/.docs/reference/evals/summarization.md +4 -4
- package/.docs/reference/evals/tone-consistency.md +5 -5
- package/.docs/reference/evals/tool-call-accuracy.md +8 -8
- package/.docs/reference/evals/toxicity.md +1 -1
- package/.docs/reference/evals/trajectory-accuracy.md +1 -1
- package/.docs/reference/file-based-agents/config.md +3 -3
- package/.docs/reference/file-based-agents/schedules.md +2 -2
- package/.docs/reference/file-based-agents/subagents.md +4 -4
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -1
- package/.docs/reference/logging/pino-logger.md +1 -1
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/memory-class.md +5 -5
- package/.docs/reference/memory/observational-memory.md +25 -25
- package/.docs/reference/memory/summarizeConversation.md +3 -3
- package/.docs/reference/memory/summarizeThread.md +3 -3
- package/.docs/reference/migrations/agentnetwork.md +4 -4
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/reference/migrations/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 +3 -3
- package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
- package/.docs/reference/observability/tracing/advanced-queries.md +92 -11
- package/.docs/reference/observability/tracing/bridges/otel.md +1 -1
- package/.docs/reference/observability/tracing/exporters/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/langfuse.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 +23 -1
- package/.docs/reference/processors/batch-parts-processor.md +2 -2
- package/.docs/reference/processors/classifier-processor.md +3 -3
- package/.docs/reference/processors/cyber-refusal-handler.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +9 -9
- package/.docs/reference/processors/language-detector.md +1 -1
- package/.docs/reference/processors/message-history-processor.md +2 -2
- package/.docs/reference/processors/model-selection-processor.md +7 -7
- package/.docs/reference/processors/moderation-processor.md +3 -3
- package/.docs/reference/processors/pii-detector.md +2 -2
- package/.docs/reference/processors/prefill-error-handler.md +2 -2
- package/.docs/reference/processors/processor-interface.md +71 -15
- package/.docs/reference/processors/prompt-injection-detector.md +1 -1
- package/.docs/reference/processors/provider-history-compat.md +13 -12
- package/.docs/reference/processors/regex-filter-processor.md +1 -1
- package/.docs/reference/processors/response-cache.md +2 -2
- package/.docs/reference/processors/semantic-recall-processor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +12 -8
- package/.docs/reference/processors/system-prompt-scrubber.md +2 -2
- package/.docs/reference/processors/token-cost-control.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +4 -4
- package/.docs/reference/processors/tool-call-filter.md +3 -3
- package/.docs/reference/processors/tool-search-processor.md +6 -6
- package/.docs/reference/processors/unicode-normalizer.md +2 -2
- package/.docs/reference/processors/working-memory-processor.md +2 -2
- package/.docs/reference/pubsub/lease-provider.md +2 -2
- package/.docs/reference/pubsub/redis-streams.md +11 -1
- package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +2 -2
- package/.docs/reference/rag/database-config.md +20 -15
- package/.docs/reference/rag/extract-params.md +2 -2
- package/.docs/reference/rag/graph-rag-guide.md +2 -2
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/retrieval.md +24 -13
- package/.docs/reference/schedules/overview.md +17 -1
- package/.docs/reference/server/koa-adapter.md +2 -0
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/signals/create-notification-inbox-tool.md +4 -4
- package/.docs/reference/signals/notifications.md +249 -0
- package/.docs/reference/signals/task-signal-provider.md +2 -2
- package/.docs/reference/signals/thread-events.md +69 -0
- package/.docs/reference/storage/overview.md +30 -13
- package/.docs/reference/storage/retention.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +86 -0
- package/.docs/reference/streaming/agents/MastraModelOutput.md +3 -3
- package/.docs/reference/streaming/agents/stream.md +6 -6
- 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 +2 -2
- package/.docs/reference/tools/create-tool.md +19 -2
- package/.docs/reference/tools/document-chunker-tool.md +1 -1
- package/.docs/reference/tools/mcp-client.md +207 -16
- package/.docs/reference/tools/mcp-server.md +9 -7
- package/.docs/reference/tools/task-tools.md +4 -2
- package/.docs/reference/tools/vector-query-tool.md +2 -1
- 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/libsql.md +1 -1
- package/.docs/reference/vectors/mongodb.md +8 -8
- package/.docs/reference/vectors/oracledb.md +2 -2
- package/.docs/reference/vectors/pg.md +2 -2
- 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/turbopuffer.md +1 -1
- package/.docs/reference/vectors/upstash.md +9 -5
- package/.docs/reference/vectors/vectorize.md +4 -2
- package/.docs/reference/vectors/weaviate.md +1 -1
- package/.docs/reference/voice/overview.md +24 -24
- package/.docs/reference/voice/speech-to-speech.md +6 -6
- package/.docs/reference/voice/speech-to-text.md +1 -1
- package/.docs/reference/voice/text-to-speech.md +1 -1
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/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-methods/timeTravel.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-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -4
- package/.docs/reference/workspace/platform-filesystem.md +4 -4
- package/.docs/reference/workspace/platform-sandbox.md +31 -10
- package/.docs/reference/workspace/process-manager.md +13 -2
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +13 -13
- 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 +15 -15
- package/.docs/docs/guides/mcp-events.md +0 -306
- package/.docs/docs/harness/signal-providers.md +0 -212
- package/.docs/docs/harness/signals.md +0 -546
- package/.docs/docs/mastra-platform/connect/end-user-connections.md +0 -116
- package/.docs/reference/connect/user-connect-routes.md +0 -68
|
@@ -97,7 +97,7 @@ Creates a new vector index (collection) in MongoDB.
|
|
|
97
97
|
|
|
98
98
|
**collectionName** (`string`): Store the vectors on an existing (operational) collection instead of a managed collection named after the index. The collection is never created or dropped by this store when set. Defaults to indexName.
|
|
99
99
|
|
|
100
|
-
**searchIndexName** (`string`): Name for the MongoDB vectorSearch index created on the collection. Defaults to ${indexName}\
|
|
100
|
+
**searchIndexName** (`string`): Name for the MongoDB vectorSearch index created on the collection. Defaults to ${indexName}\_vector_index.
|
|
101
101
|
|
|
102
102
|
**allowWrites** (`boolean`): Opt-in to write operations (upsert, updateVector, deleteVector, deleteVectors) on a bring-your-own collection. By default a BYO index is read-only: the store never modifies or deletes caller-owned operational documents. Ignored for managed collections, which are always writable. The policy is persisted with the index registration and survives restarts. (Default: `false`)
|
|
103
103
|
|
|
@@ -178,7 +178,7 @@ await store.createSearchIndex({
|
|
|
178
178
|
})
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
The field-mapped index name includes the logical `indexName`, so two logical indexes on the same collection get distinct text indexes.
|
|
181
|
+
The field-mapped index name includes the logical `indexName`, so two logical indexes on the same collection get distinct text indexes. Calling `createSearchIndex()` again for the _same_ logical index with different `fields` updates the existing text index definition in place. You don't need to drop it first.
|
|
182
182
|
|
|
183
183
|
### `waitForSearchIndexReady()`
|
|
184
184
|
|
|
@@ -279,18 +279,18 @@ Returns:
|
|
|
279
279
|
interface IndexStats {
|
|
280
280
|
dimension: number
|
|
281
281
|
count: number
|
|
282
|
-
metric
|
|
282
|
+
metric?: 'cosine' | 'euclidean' | 'dotproduct'
|
|
283
283
|
}
|
|
284
284
|
```
|
|
285
285
|
|
|
286
|
-
On an `autoEmbed` index, `dimension` is read from the index definition and reports MongoDB's default of `1024` when the index doesn't pin one. `count` counts documents that carry the embedded text field, since the generated vectors aren't stored on your documents.
|
|
286
|
+
On an `autoEmbed` index, `dimension` is read from the index definition and reports MongoDB's default of `1024` when the index doesn't pin one. `metric` is omitted when the `autoEmbed` index doesn't specify a similarity. `count` counts documents that carry the embedded text field, since the generated vectors aren't stored on your documents.
|
|
287
287
|
|
|
288
288
|
### `deleteIndex()`
|
|
289
289
|
|
|
290
290
|
Deletes a vector index. Behavior depends on how the index was created:
|
|
291
291
|
|
|
292
292
|
- **Managed index** (created without `collectionName`): drops the entire collection and all its data.
|
|
293
|
-
- **Bring-your-own index** (created with `collectionName`): drops the MongoDB vectorSearch index. If `createSearchIndex()` provisioned a companion full-text search index, it drops that index too. The caller's operational collection and its documents are preserved. This store never drops a collection it didn't create.
|
|
293
|
+
- **Bring-your-own index** (created with `collectionName`): drops the MongoDB vectorSearch index. If `createSearchIndex()` provisioned a companion full-text search index, it drops that index too. A vectorSearch or full-text index that another logical index on the same collection still references is kept for that index. The caller's operational collection and its documents are preserved. This store never drops a collection it didn't create.
|
|
294
294
|
|
|
295
295
|
The BYO classification is recorded durably when the index is created, so it's applied correctly even by a different process (e.g. an index created by a setup job and later deleted by a long-lived service). Always pass the **logical index name** (the `indexName` used at `createIndex`), not the physical collection name.
|
|
296
296
|
|
|
@@ -350,7 +350,7 @@ Query results are returned in this format:
|
|
|
350
350
|
interface QueryResult {
|
|
351
351
|
id: string
|
|
352
352
|
score: number
|
|
353
|
-
metadata
|
|
353
|
+
metadata?: Record<string, any>
|
|
354
354
|
vector?: number[] // Only included if includeVector is true
|
|
355
355
|
document?: string // Source text stored with the vector, when available
|
|
356
356
|
}
|
|
@@ -558,7 +558,7 @@ export const mongodbAgent = new Agent({
|
|
|
558
558
|
name: 'mongodb-agent',
|
|
559
559
|
instructions:
|
|
560
560
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
561
|
-
model: 'openai/gpt-
|
|
561
|
+
model: 'openai/gpt-6.1-sol',
|
|
562
562
|
memory: new Memory({
|
|
563
563
|
storage: new MongoDBStore({
|
|
564
564
|
id: 'mongodb-storage',
|
|
@@ -623,7 +623,7 @@ export const mongodbVoyageAgent = new Agent({
|
|
|
623
623
|
id: 'mongodb-voyage-agent',
|
|
624
624
|
name: 'MongoDB VoyageAI Agent',
|
|
625
625
|
instructions: 'You are an AI agent with semantic recall powered by VoyageAI and MongoDB.',
|
|
626
|
-
model: 'openai/gpt-
|
|
626
|
+
model: 'openai/gpt-6.1-sol',
|
|
627
627
|
memory: new Memory({
|
|
628
628
|
storage: new MongoDBStore({
|
|
629
629
|
id: 'mongodb-storage',
|
|
@@ -283,7 +283,7 @@ const vectorQueryTool = createVectorQueryTool({
|
|
|
283
283
|
export const ragAgent = new Agent({
|
|
284
284
|
id: 'oracle-rag-agent',
|
|
285
285
|
name: 'Oracle RAG Agent',
|
|
286
|
-
model: 'openai/gpt-
|
|
286
|
+
model: 'openai/gpt-6.1-sol',
|
|
287
287
|
instructions: `
|
|
288
288
|
Use the retrieval tool when you need source context.
|
|
289
289
|
Available metadata fields: resource_id, thread_id, source, category, tags.
|
|
@@ -330,7 +330,7 @@ export const oracleAgent = new Agent({
|
|
|
330
330
|
id: 'oracle-agent',
|
|
331
331
|
name: 'Oracle Agent',
|
|
332
332
|
instructions: 'You are an assistant with OracleDB-backed memory and semantic recall.',
|
|
333
|
-
model: 'openai/gpt-
|
|
333
|
+
model: 'openai/gpt-6.1-sol',
|
|
334
334
|
memory: new Memory({
|
|
335
335
|
storage,
|
|
336
336
|
vector,
|
|
@@ -30,7 +30,7 @@ The PgVector class provides vector search using [PostgreSQL](https://www.postgre
|
|
|
30
30
|
|
|
31
31
|
**pgPoolOptions** (`PoolConfig`): Additional pg pool configuration options
|
|
32
32
|
|
|
33
|
-
**disableInit** (`boolean`): When true, automatic DDL (schema, extension, table, and index creation) inside createIndex is skipped. Useful for CI/CD pipelines where schema and indexes are managed separately and the runtime database role lacks DDL privileges. Can also be enabled with the
|
|
33
|
+
**disableInit** (`boolean`): When true, automatic DDL (schema, extension, table, and index creation) inside createIndex is skipped. Useful for CI/CD pipelines where schema and indexes are managed separately and the runtime database role lacks DDL privileges. Can also be enabled with the MASTRA_DISABLE_STORAGE_INIT environment variable. (Default: `false`)
|
|
34
34
|
|
|
35
35
|
## Constructor examples
|
|
36
36
|
|
|
@@ -412,7 +412,7 @@ export const pgAgent = new Agent({
|
|
|
412
412
|
name: 'PG Agent',
|
|
413
413
|
instructions:
|
|
414
414
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
415
|
-
model: 'openai/gpt-
|
|
415
|
+
model: 'openai/gpt-6.1-sol',
|
|
416
416
|
memory: new Memory({
|
|
417
417
|
storage: new PostgresStore({
|
|
418
418
|
id: 'pg-agent-storage',
|
|
@@ -40,6 +40,7 @@ bun add @mastra/s3vectors@latest
|
|
|
40
40
|
import { S3Vectors } from '@mastra/s3vectors'
|
|
41
41
|
|
|
42
42
|
const store = new S3Vectors({
|
|
43
|
+
id: 's3-vectors',
|
|
43
44
|
vectorBucketName: process.env.S3_VECTORS_BUCKET_NAME!, // e.g. "my-vector-bucket"
|
|
44
45
|
clientConfig: {
|
|
45
46
|
region: process.env.AWS_REGION!, // credentials use the default AWS provider chain
|
|
@@ -88,6 +89,8 @@ await store.disconnect()
|
|
|
88
89
|
|
|
89
90
|
## Constructor options
|
|
90
91
|
|
|
92
|
+
**id** (`string`): Unique identifier for this vector store instance
|
|
93
|
+
|
|
91
94
|
**vectorBucketName** (`string`): Target S3 Vectors vector bucket name.
|
|
92
95
|
|
|
93
96
|
**clientConfig** (`S3VectorsClientConfig`): AWS SDK v3 client options (e.g., region, credentials).
|
|
@@ -28,7 +28,7 @@ The TurbopufferVector class provides vector search using [Turbopuffer](https://t
|
|
|
28
28
|
|
|
29
29
|
### `createIndex()`
|
|
30
30
|
|
|
31
|
-
Turbopuffer has no explicit create-index operation. `createIndex()` validates the arguments and records the dimension and metric locally
|
|
31
|
+
Turbopuffer has no explicit create-index operation. `createIndex()` validates the arguments and records the dimension and metric locally. The first `upsert()` creates the namespace in Turbopuffer.
|
|
32
32
|
|
|
33
33
|
**indexName** (`string`): Name of the index to create
|
|
34
34
|
|
|
@@ -18,13 +18,13 @@ The UpstashVector class provides vector search using [Upstash Vector](https://up
|
|
|
18
18
|
|
|
19
19
|
### `createIndex()`
|
|
20
20
|
|
|
21
|
-
Note: This method is a no-op for Upstash
|
|
21
|
+
Note: This method is a no-op for Upstash. Indexes (Upstash namespaces) are created automatically on first write, and the parameters below are ignored.
|
|
22
22
|
|
|
23
23
|
**indexName** (`string`): Name of the index to create
|
|
24
24
|
|
|
25
25
|
**dimension** (`number`): Vector dimension (must match your embedding model)
|
|
26
26
|
|
|
27
|
-
**metric** (`'cosine' | 'euclidean' | 'dotproduct'`):
|
|
27
|
+
**metric** (`'cosine' | 'euclidean' | 'dotproduct'`): Ignored. The metric is set on the Upstash index itself.
|
|
28
28
|
|
|
29
29
|
### `upsert()`
|
|
30
30
|
|
|
@@ -70,7 +70,7 @@ Returns:
|
|
|
70
70
|
interface IndexStats {
|
|
71
71
|
dimension: number
|
|
72
72
|
count: number
|
|
73
|
-
metric
|
|
73
|
+
metric?: 'cosine' | 'euclidean' | 'dotproduct'
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
@@ -82,10 +82,14 @@ interface IndexStats {
|
|
|
82
82
|
|
|
83
83
|
**indexName** (`string`): Name of the index to update
|
|
84
84
|
|
|
85
|
-
**id** (`string`): ID of the item to update
|
|
85
|
+
**id** (`string`): ID of the item to update. Mutually exclusive with filter.
|
|
86
|
+
|
|
87
|
+
**filter** (`Record<string, any>`): Metadata filter matching up to 1,000 items to update. Mutually exclusive with id. Must not be empty.
|
|
86
88
|
|
|
87
89
|
**update** (`object`): Update object containing vector, sparse vector, and/or metadata
|
|
88
90
|
|
|
91
|
+
Provide exactly one of `id` or `filter`.
|
|
92
|
+
|
|
89
93
|
The `update` object can have the following properties:
|
|
90
94
|
|
|
91
95
|
- `vector` (optional): An array of numbers representing the new dense vector.
|
|
@@ -275,7 +279,7 @@ export const upstashAgent = new Agent({
|
|
|
275
279
|
name: 'Upstash Agent',
|
|
276
280
|
instructions:
|
|
277
281
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
278
|
-
model: 'openai/gpt-
|
|
282
|
+
model: 'openai/gpt-6.1-sol',
|
|
279
283
|
memory: new Memory({
|
|
280
284
|
storage: new UpstashStore({
|
|
281
285
|
id: 'upstash-agent-storage',
|
|
@@ -8,6 +8,8 @@ The CloudflareVector class provides vector search using [Cloudflare Vectorize](h
|
|
|
8
8
|
|
|
9
9
|
## Constructor options
|
|
10
10
|
|
|
11
|
+
**id** (`string`): Unique identifier for this vector store instance.
|
|
12
|
+
|
|
11
13
|
**accountId** (`string`): Cloudflare account ID
|
|
12
14
|
|
|
13
15
|
**apiToken** (`string`): Cloudflare API token with Vectorize permissions
|
|
@@ -58,7 +60,7 @@ Returns:
|
|
|
58
60
|
interface IndexStats {
|
|
59
61
|
dimension: number
|
|
60
62
|
count: number
|
|
61
|
-
metric
|
|
63
|
+
metric?: 'cosine' | 'euclidean' | 'dotproduct'
|
|
62
64
|
}
|
|
63
65
|
```
|
|
64
66
|
|
|
@@ -126,7 +128,7 @@ Query results are returned in this format:
|
|
|
126
128
|
interface QueryResult {
|
|
127
129
|
id: string
|
|
128
130
|
score: number
|
|
129
|
-
metadata
|
|
131
|
+
metadata?: Record<string, any>
|
|
130
132
|
vector?: number[]
|
|
131
133
|
}
|
|
132
134
|
```
|
|
@@ -50,7 +50,7 @@ The `WeaviateVector` class provides vector search using [Weaviate](https://weavi
|
|
|
50
50
|
|
|
51
51
|
**indexName** (`string`): Name of the index to query.
|
|
52
52
|
|
|
53
|
-
**queryVector** (`number[]`): Query vector to find similar vectors for.
|
|
53
|
+
**queryVector** (`number[]`): Query vector to find similar vectors for. When omitted, returns up to topK objects matching filter (or any objects if no filter is given).
|
|
54
54
|
|
|
55
55
|
**topK** (`number`): Number of results to return. (Default: `10`)
|
|
56
56
|
|
|
@@ -20,7 +20,7 @@ const voiceAgent = new Agent({
|
|
|
20
20
|
id: 'voice-agent',
|
|
21
21
|
name: 'Voice Agent',
|
|
22
22
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
23
|
-
model: 'openai/gpt-
|
|
23
|
+
model: 'openai/gpt-6.1-sol',
|
|
24
24
|
voice: new OpenAIVoice(),
|
|
25
25
|
})
|
|
26
26
|
```
|
|
@@ -44,7 +44,7 @@ const voiceAgent = new Agent({
|
|
|
44
44
|
id: 'voice-agent',
|
|
45
45
|
name: 'Voice Agent',
|
|
46
46
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
47
|
-
model: 'openai/gpt-
|
|
47
|
+
model: 'openai/gpt-6.1-sol',
|
|
48
48
|
voice: new OpenAIVoice(),
|
|
49
49
|
})
|
|
50
50
|
|
|
@@ -72,7 +72,7 @@ const voiceAgent = new Agent({
|
|
|
72
72
|
id: 'voice-agent',
|
|
73
73
|
name: 'Voice Agent',
|
|
74
74
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
75
|
-
model: 'openai/gpt-
|
|
75
|
+
model: 'openai/gpt-6.1-sol',
|
|
76
76
|
voice: new AzureVoice(),
|
|
77
77
|
})
|
|
78
78
|
|
|
@@ -99,7 +99,7 @@ const voiceAgent = new Agent({
|
|
|
99
99
|
id: 'voice-agent',
|
|
100
100
|
name: 'Voice Agent',
|
|
101
101
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
102
|
-
model: 'openai/gpt-
|
|
102
|
+
model: 'openai/gpt-6.1-sol',
|
|
103
103
|
voice: new ElevenLabsVoice(),
|
|
104
104
|
})
|
|
105
105
|
|
|
@@ -126,7 +126,7 @@ const voiceAgent = new Agent({
|
|
|
126
126
|
id: 'voice-agent',
|
|
127
127
|
name: 'Voice Agent',
|
|
128
128
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
129
|
-
model: 'openai/gpt-
|
|
129
|
+
model: 'openai/gpt-6.1-sol',
|
|
130
130
|
voice: new GoogleVoice(),
|
|
131
131
|
})
|
|
132
132
|
|
|
@@ -153,7 +153,7 @@ const voiceAgent = new Agent({
|
|
|
153
153
|
id: 'voice-agent',
|
|
154
154
|
name: 'Voice Agent',
|
|
155
155
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
156
|
-
model: 'openai/gpt-
|
|
156
|
+
model: 'openai/gpt-6.1-sol',
|
|
157
157
|
voice: new CloudflareVoice(),
|
|
158
158
|
})
|
|
159
159
|
|
|
@@ -180,7 +180,7 @@ const voiceAgent = new Agent({
|
|
|
180
180
|
id: 'voice-agent',
|
|
181
181
|
name: 'Voice Agent',
|
|
182
182
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
183
|
-
model: 'openai/gpt-
|
|
183
|
+
model: 'openai/gpt-6.1-sol',
|
|
184
184
|
voice: new DeepgramVoice(),
|
|
185
185
|
})
|
|
186
186
|
|
|
@@ -207,7 +207,7 @@ const voiceAgent = new Agent({
|
|
|
207
207
|
id: 'voice-agent',
|
|
208
208
|
name: 'Voice Agent',
|
|
209
209
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
210
|
-
model: 'openai/gpt-
|
|
210
|
+
model: 'openai/gpt-6.1-sol',
|
|
211
211
|
voice: new InworldVoice(),
|
|
212
212
|
})
|
|
213
213
|
|
|
@@ -234,7 +234,7 @@ const voiceAgent = new Agent({
|
|
|
234
234
|
id: 'voice-agent',
|
|
235
235
|
name: 'Voice Agent',
|
|
236
236
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
237
|
-
model: 'openai/gpt-
|
|
237
|
+
model: 'openai/gpt-6.1-sol',
|
|
238
238
|
voice: new SpeechifyVoice(),
|
|
239
239
|
})
|
|
240
240
|
|
|
@@ -261,7 +261,7 @@ const voiceAgent = new Agent({
|
|
|
261
261
|
id: 'voice-agent',
|
|
262
262
|
name: 'Voice Agent',
|
|
263
263
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
264
|
-
model: 'openai/gpt-
|
|
264
|
+
model: 'openai/gpt-6.1-sol',
|
|
265
265
|
voice: new SarvamVoice(),
|
|
266
266
|
})
|
|
267
267
|
|
|
@@ -288,7 +288,7 @@ const voiceAgent = new Agent({
|
|
|
288
288
|
id: 'voice-agent',
|
|
289
289
|
name: 'Voice Agent',
|
|
290
290
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
291
|
-
model: 'openai/gpt-
|
|
291
|
+
model: 'openai/gpt-6.1-sol',
|
|
292
292
|
voice: new MurfVoice(),
|
|
293
293
|
})
|
|
294
294
|
|
|
@@ -323,7 +323,7 @@ const voiceAgent = new Agent({
|
|
|
323
323
|
id: 'voice-agent',
|
|
324
324
|
name: 'Voice Agent',
|
|
325
325
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
326
|
-
model: 'openai/gpt-
|
|
326
|
+
model: 'openai/gpt-6.1-sol',
|
|
327
327
|
voice: new OpenAIVoice(),
|
|
328
328
|
})
|
|
329
329
|
|
|
@@ -352,7 +352,7 @@ const voiceAgent = new Agent({
|
|
|
352
352
|
id: 'voice-agent',
|
|
353
353
|
name: 'Voice Agent',
|
|
354
354
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
355
|
-
model: 'openai/gpt-
|
|
355
|
+
model: 'openai/gpt-6.1-sol',
|
|
356
356
|
voice: new AzureVoice(),
|
|
357
357
|
})
|
|
358
358
|
|
|
@@ -380,7 +380,7 @@ const voiceAgent = new Agent({
|
|
|
380
380
|
id: 'voice-agent',
|
|
381
381
|
name: 'Voice Agent',
|
|
382
382
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
383
|
-
model: 'openai/gpt-
|
|
383
|
+
model: 'openai/gpt-6.1-sol',
|
|
384
384
|
voice: new ElevenLabsVoice(),
|
|
385
385
|
})
|
|
386
386
|
|
|
@@ -408,7 +408,7 @@ const voiceAgent = new Agent({
|
|
|
408
408
|
id: 'voice-agent',
|
|
409
409
|
name: 'Voice Agent',
|
|
410
410
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
411
|
-
model: 'openai/gpt-
|
|
411
|
+
model: 'openai/gpt-6.1-sol',
|
|
412
412
|
voice: new GoogleVoice(),
|
|
413
413
|
})
|
|
414
414
|
|
|
@@ -436,7 +436,7 @@ const voiceAgent = new Agent({
|
|
|
436
436
|
id: 'voice-agent',
|
|
437
437
|
name: 'Voice Agent',
|
|
438
438
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
439
|
-
model: 'openai/gpt-
|
|
439
|
+
model: 'openai/gpt-6.1-sol',
|
|
440
440
|
voice: new CloudflareVoice(),
|
|
441
441
|
})
|
|
442
442
|
|
|
@@ -464,7 +464,7 @@ const voiceAgent = new Agent({
|
|
|
464
464
|
id: 'voice-agent',
|
|
465
465
|
name: 'Voice Agent',
|
|
466
466
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
467
|
-
model: 'openai/gpt-
|
|
467
|
+
model: 'openai/gpt-6.1-sol',
|
|
468
468
|
voice: new DeepgramVoice(),
|
|
469
469
|
})
|
|
470
470
|
|
|
@@ -492,7 +492,7 @@ const voiceAgent = new Agent({
|
|
|
492
492
|
id: 'voice-agent',
|
|
493
493
|
name: 'Voice Agent',
|
|
494
494
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
495
|
-
model: 'openai/gpt-
|
|
495
|
+
model: 'openai/gpt-6.1-sol',
|
|
496
496
|
voice: new InworldVoice(),
|
|
497
497
|
})
|
|
498
498
|
|
|
@@ -520,7 +520,7 @@ const voiceAgent = new Agent({
|
|
|
520
520
|
id: 'voice-agent',
|
|
521
521
|
name: 'Voice Agent',
|
|
522
522
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
523
|
-
model: 'openai/gpt-
|
|
523
|
+
model: 'openai/gpt-6.1-sol',
|
|
524
524
|
voice: new SarvamVoice(),
|
|
525
525
|
})
|
|
526
526
|
|
|
@@ -552,7 +552,7 @@ const voiceAgent = new Agent({
|
|
|
552
552
|
id: 'voice-agent',
|
|
553
553
|
name: 'Voice Agent',
|
|
554
554
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
555
|
-
model: 'openai/gpt-
|
|
555
|
+
model: 'openai/gpt-6.1-sol',
|
|
556
556
|
voice: new OpenAIRealtimeVoice(),
|
|
557
557
|
})
|
|
558
558
|
|
|
@@ -582,7 +582,7 @@ const voiceAgent = new Agent({
|
|
|
582
582
|
id: 'voice-agent',
|
|
583
583
|
name: 'Voice Agent',
|
|
584
584
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
585
|
-
model: 'openai/gpt-
|
|
585
|
+
model: 'openai/gpt-6.1-sol',
|
|
586
586
|
voice: new GeminiLiveVoice({
|
|
587
587
|
// Live API mode
|
|
588
588
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
@@ -631,7 +631,7 @@ const voiceAgent = new Agent({
|
|
|
631
631
|
id: 'voice-agent',
|
|
632
632
|
name: 'Voice Agent',
|
|
633
633
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
634
|
-
model: 'openai/gpt-
|
|
634
|
+
model: 'openai/gpt-6.1-sol',
|
|
635
635
|
voice: new NovaSonicVoice({
|
|
636
636
|
region: 'us-east-1',
|
|
637
637
|
speaker: 'matthew',
|
|
@@ -674,7 +674,7 @@ const voiceAgent = new Agent({
|
|
|
674
674
|
id: 'voice-agent',
|
|
675
675
|
name: 'Voice Agent',
|
|
676
676
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
677
|
-
model: 'openai/gpt-
|
|
677
|
+
model: 'openai/gpt-6.1-sol',
|
|
678
678
|
voice: new InworldRealtimeVoice({
|
|
679
679
|
apiKey: process.env.INWORLD_API_KEY,
|
|
680
680
|
model: 'inworld/models/gemma-4-26b-a4b-it',
|
|
@@ -1120,7 +1120,7 @@ const voiceAgent = new Agent({
|
|
|
1120
1120
|
id: 'aisdk-voice-agent',
|
|
1121
1121
|
name: 'AI SDK Voice Agent',
|
|
1122
1122
|
instructions: 'You are a helpful assistant with voice capabilities.',
|
|
1123
|
-
model: 'openai/gpt-
|
|
1123
|
+
model: 'openai/gpt-6.1-sol',
|
|
1124
1124
|
voice,
|
|
1125
1125
|
})
|
|
1126
1126
|
```
|
|
@@ -36,7 +36,7 @@ const agent = new Agent({
|
|
|
36
36
|
id: 'agent',
|
|
37
37
|
name: 'OpenAI Realtime Agent',
|
|
38
38
|
instructions: `You are a helpful assistant with real-time voice capabilities.`,
|
|
39
|
-
model: 'openai/gpt-
|
|
39
|
+
model: 'openai/gpt-6.1-sol',
|
|
40
40
|
voice: new OpenAIRealtimeVoice(),
|
|
41
41
|
})
|
|
42
42
|
|
|
@@ -71,7 +71,7 @@ export const agent = new Agent({
|
|
|
71
71
|
id: 'speech-to-speech-agent',
|
|
72
72
|
name: 'Speech-to-Speech Agent',
|
|
73
73
|
instructions: 'You are a helpful assistant with speech-to-speech capabilities.',
|
|
74
|
-
model: 'openai/gpt-
|
|
74
|
+
model: 'openai/gpt-6.1-sol',
|
|
75
75
|
tools: {
|
|
76
76
|
search,
|
|
77
77
|
calculate,
|
|
@@ -115,7 +115,7 @@ export const agent = new Agent({
|
|
|
115
115
|
id: 'support-line',
|
|
116
116
|
name: 'Support Line',
|
|
117
117
|
instructions: ({ requestContext }) => `Help user ${requestContext.get('user')}.`,
|
|
118
|
-
model: 'openai/gpt-
|
|
118
|
+
model: 'openai/gpt-6.1-sol',
|
|
119
119
|
voice: ({ requestContext }) =>
|
|
120
120
|
new OpenAIRealtimeVoice({
|
|
121
121
|
apiKey: requestContext.get('apiKey'),
|
|
@@ -150,7 +150,7 @@ const agent = new Agent({
|
|
|
150
150
|
name: 'Gemini Live Agent',
|
|
151
151
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
152
152
|
// Model used for text generation; voice provider handles realtime audio
|
|
153
|
-
model: 'openai/gpt-
|
|
153
|
+
model: 'openai/gpt-6.1-sol',
|
|
154
154
|
voice: new GeminiLiveVoice({
|
|
155
155
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
156
156
|
model: 'gemini-2.0-flash-exp',
|
|
@@ -197,7 +197,7 @@ const agent = new Agent({
|
|
|
197
197
|
name: 'Nova Sonic Agent',
|
|
198
198
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
199
199
|
// Model used for text generation; voice provider handles realtime audio
|
|
200
|
-
model: 'openai/gpt-
|
|
200
|
+
model: 'openai/gpt-6.1-sol',
|
|
201
201
|
voice: new NovaSonicVoice({
|
|
202
202
|
region: 'us-east-1',
|
|
203
203
|
speaker: 'matthew',
|
|
@@ -241,7 +241,7 @@ const agent = new Agent({
|
|
|
241
241
|
name: 'Inworld Realtime Agent',
|
|
242
242
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
243
243
|
// Model used for text generation; voice provider handles realtime audio
|
|
244
|
-
model: 'openai/gpt-
|
|
244
|
+
model: 'openai/gpt-6.1-sol',
|
|
245
245
|
voice: new InworldRealtimeVoice({
|
|
246
246
|
apiKey: process.env.INWORLD_API_KEY,
|
|
247
247
|
model: 'inworld/models/gemma-4-26b-a4b-it',
|
|
@@ -25,7 +25,7 @@ const agent = new Agent({
|
|
|
25
25
|
id: 'customer-support-agent',
|
|
26
26
|
name: 'Customer Support Agent',
|
|
27
27
|
instructions: 'You are a helpful customer support agent for a software company.',
|
|
28
|
-
model: 'openai/gpt-
|
|
28
|
+
model: 'openai/gpt-6.1-sol',
|
|
29
29
|
voice,
|
|
30
30
|
})
|
|
31
31
|
|
|
@@ -61,7 +61,7 @@ Returns a `Promise<void>`. For providers that support real-time audio, it resolv
|
|
|
61
61
|
## Notes
|
|
62
62
|
|
|
63
63
|
- This method is only implemented by real-time voice providers that support speech-to-speech capabilities
|
|
64
|
-
- If called on a voice provider that doesn't support this functionality,
|
|
64
|
+
- If called on a voice provider that doesn't support this functionality, the default implementation logs a debug message and resolves immediately. `CompositeVoice` instead throws a `MastraError` (`VOICE_COMPOSITE_NO_REALTIME_PROVIDER_SEND`) when no `realtimeProvider` is configured
|
|
65
65
|
- You must call `connect()` before using `send()` to establish the WebSocket connection
|
|
66
66
|
- The audio format requirements depend on the specific voice provider
|
|
67
67
|
- For continuous conversation, you typically call `send()` to transmit user audio, then `answer()` to trigger the AI response
|
|
@@ -37,7 +37,7 @@ Each voice provider may support additional options specific to their implementat
|
|
|
37
37
|
|
|
38
38
|
**options.stability** (`number`): Voice stability. Higher values result in more stable, less expressive speech.
|
|
39
39
|
|
|
40
|
-
**options.
|
|
40
|
+
**options.similarity_boost** (`number`): Voice clarity and similarity to the original voice.
|
|
41
41
|
|
|
42
42
|
### Google
|
|
43
43
|
|
|
@@ -53,7 +53,7 @@ Different voice providers support different configuration options:
|
|
|
53
53
|
|
|
54
54
|
**voice** (`string`): Voice ID to use for speech synthesis (e.g., 'alloy', 'echo', 'nova')
|
|
55
55
|
|
|
56
|
-
**
|
|
56
|
+
**turn_detection** (`{ type: string, threshold?: number, silence_duration_ms?: number }`): Configuration for detecting when a user has finished speaking
|
|
57
57
|
|
|
58
58
|
## Notes
|
|
59
59
|
|
|
@@ -48,7 +48,7 @@ const restartedResult = await run.restart()
|
|
|
48
48
|
|
|
49
49
|
## Returns
|
|
50
50
|
|
|
51
|
-
**result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
51
|
+
**result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
52
52
|
|
|
53
53
|
**traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
|
|
54
54
|
|
|
@@ -58,7 +58,7 @@ if (result.status === 'suspended') {
|
|
|
58
58
|
|
|
59
59
|
## Returns
|
|
60
60
|
|
|
61
|
-
**result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
61
|
+
**result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
62
62
|
|
|
63
63
|
**traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
|
|
64
64
|
|
|
@@ -52,7 +52,7 @@ const result = await run.start({
|
|
|
52
52
|
|
|
53
53
|
## Returns
|
|
54
54
|
|
|
55
|
-
**result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
55
|
+
**result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
|
|
56
56
|
|
|
57
57
|
**traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
|
|
58
58
|
|
|
@@ -174,7 +174,7 @@ Over HTTP, `POST /api/workflows/:workflowId/time-travel-async` returns `409 Conf
|
|
|
174
174
|
|
|
175
175
|
Calling `timeTravel()` again after the previous call finished is still allowed and re-runs the target step.
|
|
176
176
|
|
|
177
|
-
> **Note:**
|
|
177
|
+
> **Note:** Storage adapters that report `supportsConcurrentUpdates()` enforce the claim atomically. This requires atomic read-modify-write support, which is unavailable in adapters such as ClickHouse, Cloudflare D1, Cloudflare KV, Cloudflare Durable Objects, LanceDB, and Redis. Claims are also skipped when `shouldPersistSnapshot` excludes the `running` status or when using the Inngest workflow runner, which doesn't support them yet.
|
|
178
178
|
|
|
179
179
|
## Notes
|
|
180
180
|
|
|
@@ -32,7 +32,7 @@ if (result.status === 'suspended') {
|
|
|
32
32
|
|
|
33
33
|
**resumeStream** (`(options?: ResumeStreamOptions) => MastraWorkflowStream`): Resumes a suspended workflow with streaming support
|
|
34
34
|
|
|
35
|
-
**cancel** (`() => Promise<
|
|
35
|
+
**cancel** (`() => Promise<void>`): Cancels the workflow execution and prevents subsequent steps from executing. It does not wait for running steps to finish: a running step only stops early if it checks its abortSignal.
|
|
36
36
|
|
|
37
37
|
**restart** (`(options?: RestartOptions) => Promise<WorkflowResult>`): Restarts the workflow execution from last active step
|
|
38
38
|
|
|
@@ -60,7 +60,7 @@ A workflow run's `status` indicates its current execution state. The possible va
|
|
|
60
60
|
|
|
61
61
|
**paused** (`string`): Workflow execution stopped after a single step because the run uses per-step execution
|
|
62
62
|
|
|
63
|
-
**canceled** (`string`): Workflow execution was canceled via the cancel() method,
|
|
63
|
+
**canceled** (`string`): Workflow execution was canceled via the cancel() method. Subsequent steps do not run, and running steps stop only if they respond to their abortSignal
|
|
64
64
|
|
|
65
65
|
**bailed** (`string`): A step called bail() to end the workflow early. The run itself completes with a success status and the bail payload as its result
|
|
66
66
|
|
|
@@ -119,6 +119,7 @@ You can create a step directly from an agent. The step will use the agent's name
|
|
|
119
119
|
|
|
120
120
|
```typescript
|
|
121
121
|
import { testAgent } from '../agents/test-agent'
|
|
122
|
+
import { createStep } from '@mastra/core/workflows'
|
|
122
123
|
|
|
123
124
|
const agentStep = createStep(testAgent)
|
|
124
125
|
// inputSchema: { prompt: string }
|
|
@@ -130,6 +131,9 @@ const agentStep = createStep(testAgent)
|
|
|
130
131
|
Pass `structuredOutput` to have the agent return typed structured data:
|
|
131
132
|
|
|
132
133
|
```typescript
|
|
134
|
+
import { createStep } from '@mastra/core/workflows'
|
|
135
|
+
import { z } from 'zod'
|
|
136
|
+
|
|
133
137
|
const articleSchema = z.object({
|
|
134
138
|
title: z.string(),
|
|
135
139
|
summary: z.string(),
|