@mastra/mcp-docs-server 1.3.9-alpha.9 → 1.3.10-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/code-mode.md +2 -2
- package/.docs/docs/agents/guardrails.md +5 -2
- package/.docs/docs/agents/human-in-the-loop.md +18 -5
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +8 -7
- package/.docs/docs/agents/processors.md +72 -21
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/tools.md +10 -10
- package/.docs/docs/auth/composite-auth.md +4 -2
- package/.docs/docs/auth/custom-auth-provider.md +1 -1
- package/.docs/docs/auth/overview.md +3 -1
- package/.docs/docs/browser.md +13 -1
- package/.docs/docs/channels.md +33 -6
- package/.docs/docs/connections/a2a.md +1 -1
- package/.docs/docs/connections/acp.md +2 -2
- package/.docs/docs/connections/mcp.md +159 -50
- package/.docs/docs/connections/overview.md +1 -1
- package/.docs/docs/connections/sdk-agents.md +26 -15
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/experiments.md +29 -4
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/overview.md +4 -4
- package/.docs/docs/evals/quick-checks.md +2 -2
- package/.docs/docs/guides/build-an-eval-loop.md +3 -3
- package/.docs/docs/guides/context-engineering.md +13 -6
- package/.docs/docs/guides/mcp-authentication-authorization.md +4 -4
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +18 -21
- package/.docs/docs/harness/background-tasks.md +14 -3
- package/.docs/docs/harness/durable-agents.md +15 -9
- package/.docs/docs/harness/goals.md +5 -5
- package/.docs/docs/harness/overview.md +2 -2
- package/.docs/docs/harness/schedules.md +13 -11
- package/.docs/docs/index.md +7 -6
- package/.docs/docs/mastra-platform/connect/channels.md +1 -1
- package/.docs/docs/mastra-platform/connect/tools.md +4 -4
- package/.docs/docs/mastra-platform/environments.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/mastra-platform/studio.md +1 -1
- package/.docs/docs/memory/memory-processors.md +21 -15
- package/.docs/docs/memory/message-history.md +5 -5
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +14 -14
- package/.docs/docs/memory/semantic-recall.md +22 -2
- package/.docs/docs/memory/working-memory.md +3 -3
- package/.docs/docs/observability/logging.md +5 -5
- package/.docs/docs/observability/tracing/overview.md +1 -0
- package/.docs/docs/sandbox/filesystem.md +26 -11
- package/.docs/docs/sandbox/overview.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/overview.md +27 -0
- package/.docs/docs/server/request-context.md +3 -3
- package/.docs/docs/server/server-adapters.md +12 -204
- package/.docs/docs/signals/notifications.md +233 -0
- package/.docs/docs/signals/overview.md +94 -0
- package/.docs/docs/signals/running-across-processes.md +132 -0
- package/.docs/docs/signals/sending-signals.md +166 -0
- package/.docs/docs/signals/signal-providers.md +278 -0
- package/.docs/docs/signals/state-signals.md +103 -0
- package/.docs/docs/signals/thread-streams.md +94 -0
- package/.docs/docs/skills.md +4 -4
- package/.docs/docs/storage.md +1 -1
- package/.docs/docs/studio/auth.md +2 -2
- package/.docs/docs/studio/editor.md +39 -23
- package/.docs/docs/studio/observability.md +5 -1
- package/.docs/docs/subagents.md +6 -6
- package/.docs/docs/workflows/control-flow.md +14 -14
- package/.docs/docs/workflows/error-handling.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/agentic-ui/openui.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +1 -1
- package/.docs/integrations/browsers/browser-viewer.md +1 -1
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +6 -6
- package/.docs/integrations/channels/discord.md +1 -1
- package/.docs/integrations/channels/github.md +2 -2
- package/.docs/integrations/channels/imessage.md +2 -50
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/teams.md +1 -1
- package/.docs/integrations/channels/telegram.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +1 -1
- package/.docs/integrations/databases/cloudflare-kv.md +4 -0
- package/.docs/integrations/databases/elasticsearch.md +1 -1
- package/.docs/integrations/databases/mongodb.md +1 -1
- package/.docs/integrations/databases/oracledb.md +1 -1
- package/.docs/integrations/databases/postgresql.md +1 -1
- package/.docs/integrations/databases/redis.md +1 -1
- package/.docs/integrations/databases/upstash.md +1 -1
- package/.docs/integrations/deploy/aws-bedrock-agentcore.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 +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/google-drive.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +1 -1
- package/.docs/integrations/file-storage/neon.md +210 -0
- package/.docs/integrations/file-storage/vercel-files.md +5 -1
- package/.docs/integrations/frameworks/express.md +0 -64
- package/.docs/integrations/observability/langfuse.md +1 -1
- package/.docs/integrations/observability/langsmith.md +2 -2
- package/.docs/integrations/observability/opentelemetry.md +5 -5
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/blaxel.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +1 -1
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +6 -2
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +1 -1
- package/.docs/integrations/sandboxes/sprites.md +1 -1
- package/.docs/integrations/sandboxes/vercel.md +2 -2
- package/.docs/integrations/tools/brightdata.md +1 -1
- package/.docs/integrations/tools/firecrawl.md +1 -1
- package/.docs/integrations/tools/parallel.md +1 -1
- package/.docs/integrations/tools/perplexity.md +1 -1
- package/.docs/integrations/tools/tavily.md +1 -1
- package/.docs/integrations/voice/livekit.md +2 -2
- package/.docs/integrations.md +1 -0
- package/.docs/models/embeddings.md +2 -1
- package/.docs/models/environment-variables.md +1 -3
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +7 -13
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +3 -2
- package/.docs/models/gateways/vercel.md +8 -5
- package/.docs/models/index.md +14 -16
- package/.docs/models/providers/302ai.md +3 -3
- package/.docs/models/providers/abacus.md +70 -110
- package/.docs/models/providers/aimlapi.md +171 -171
- package/.docs/models/providers/aixy.md +3 -1
- package/.docs/models/providers/aki-io.md +5 -6
- package/.docs/models/providers/alibaba-cn.md +9 -57
- package/.docs/models/providers/alibaba-coding-plan-cn.md +8 -12
- package/.docs/models/providers/alibaba-coding-plan.md +8 -12
- package/.docs/models/providers/alibaba-token-plan-cn.md +0 -2
- package/.docs/models/providers/alibaba-token-plan.md +29 -30
- package/.docs/models/providers/alibaba.md +33 -62
- package/.docs/models/providers/ambient.md +1 -9
- package/.docs/models/providers/amd.md +13 -9
- package/.docs/models/providers/anthropic.md +4 -2
- package/.docs/models/providers/arcee.md +6 -4
- package/.docs/models/providers/auriko.md +2 -2
- package/.docs/models/providers/baseten.md +4 -14
- package/.docs/models/providers/berget.md +3 -4
- package/.docs/models/providers/bothub.md +4 -4
- package/.docs/models/providers/boundless.md +0 -4
- package/.docs/models/providers/cline-pass.md +2 -8
- package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
- package/.docs/models/providers/commandcode.md +0 -1
- package/.docs/models/providers/coralbricks.md +1 -1
- package/.docs/models/providers/cortecs.md +1 -1
- package/.docs/models/providers/crossmodel.md +69 -73
- package/.docs/models/providers/crusoe.md +1 -7
- package/.docs/models/providers/daoxe.md +1 -1
- package/.docs/models/providers/databricks.md +5 -10
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/digitalocean.md +8 -24
- package/.docs/models/providers/dinference.md +0 -3
- package/.docs/models/providers/edenai.md +29 -5
- package/.docs/models/providers/empiriolabs.md +1 -8
- package/.docs/models/providers/engy.md +2 -2
- package/.docs/models/providers/evroc.md +2 -2
- package/.docs/models/providers/fastrouter.md +41 -50
- package/.docs/models/providers/fireworks-ai.md +6 -5
- package/.docs/models/providers/friendli.md +4 -5
- package/.docs/models/providers/frogbot.md +2 -7
- package/.docs/models/providers/google.md +5 -5
- package/.docs/models/providers/greenpt.md +14 -20
- package/.docs/models/providers/groq.md +3 -8
- package/.docs/models/providers/huggingface.md +5 -6
- package/.docs/models/providers/iflowcn.md +2 -18
- package/.docs/models/providers/impossibl.md +2 -9
- package/.docs/models/providers/inception.md +3 -2
- package/.docs/models/providers/inceptron.md +8 -6
- package/.docs/models/providers/inco.md +1 -1
- package/.docs/models/providers/inference.md +5 -11
- package/.docs/models/providers/infomaniak.md +10 -12
- package/.docs/models/providers/io-net.md +11 -17
- package/.docs/models/providers/iteracompute.md +5 -5
- package/.docs/models/providers/jalapeno.md +14 -19
- package/.docs/models/providers/jiekou.md +53 -63
- package/.docs/models/providers/kenari.md +35 -54
- package/.docs/models/providers/kilo.md +19 -33
- package/.docs/models/providers/lilac.md +2 -8
- package/.docs/models/providers/liquid.md +77 -0
- package/.docs/models/providers/llama.md +2 -11
- package/.docs/models/providers/llmgateway-providers.md +10 -27
- package/.docs/models/providers/llmgateway.md +12 -21
- package/.docs/models/providers/llmtr.md +1 -6
- package/.docs/models/providers/longcat.md +6 -5
- package/.docs/models/providers/lowrouter.md +1 -1
- package/.docs/models/providers/lucidquery.md +2 -2
- package/.docs/models/providers/meganova.md +6 -7
- package/.docs/models/providers/melious.md +11 -15
- package/.docs/models/providers/minimax-cn-coding-plan.md +4 -11
- package/.docs/models/providers/minimax-cn.md +4 -10
- package/.docs/models/providers/minimax-coding-plan.md +4 -11
- package/.docs/models/providers/minimax.md +4 -10
- package/.docs/models/providers/mistral.md +7 -6
- package/.docs/models/providers/moark.md +0 -2
- package/.docs/models/providers/modal.md +11 -7
- package/.docs/models/providers/moonshotai-cn.md +2 -2
- package/.docs/models/providers/nan.md +1 -1
- package/.docs/models/providers/nano-gpt.md +28 -31
- package/.docs/models/providers/nearai.md +3 -2
- package/.docs/models/providers/neuralwatt.md +1 -4
- package/.docs/models/providers/novita-ai.md +2 -1
- package/.docs/models/providers/nvidia.md +15 -35
- package/.docs/models/providers/oci.md +0 -1
- package/.docs/models/providers/ofox.md +149 -157
- package/.docs/models/providers/ollama-cloud.md +7 -12
- package/.docs/models/providers/openai.md +4 -2
- package/.docs/models/providers/opencode-go.md +2 -3
- package/.docs/models/providers/opencode.md +85 -87
- package/.docs/models/providers/opper.md +1 -4
- package/.docs/models/providers/orcarouter.md +14 -16
- package/.docs/models/providers/pareto.md +1 -1
- package/.docs/models/providers/perplexity-agent.md +43 -29
- package/.docs/models/providers/perplexity.md +2 -8
- package/.docs/models/providers/pioneer.md +13 -118
- package/.docs/models/providers/poe.md +16 -70
- package/.docs/models/providers/prime.md +2 -1
- package/.docs/models/providers/qihang-ai.md +7 -11
- package/.docs/models/providers/qiniu-ai.md +9 -94
- package/.docs/models/providers/regolo-ai.md +5 -7
- package/.docs/models/providers/requesty.md +0 -4
- package/.docs/models/providers/runinfra.md +3 -5
- package/.docs/models/providers/sarvam.md +1 -2
- package/.docs/models/providers/scaleway.md +12 -13
- package/.docs/models/providers/siliconflow-cn.md +35 -41
- package/.docs/models/providers/siliconflow.md +3 -6
- package/.docs/models/providers/snowflake-cortex.md +22 -22
- package/.docs/models/providers/stackit.md +2 -4
- package/.docs/models/providers/stepfun-ai.md +5 -7
- package/.docs/models/providers/stepfun.md +8 -10
- package/.docs/models/providers/submodel.md +1 -1
- package/.docs/models/providers/synthetic.md +2 -5
- package/.docs/models/providers/tempr.md +1 -4
- package/.docs/models/providers/tencent-coding-plan.md +3 -10
- package/.docs/models/providers/tensorx.md +0 -13
- package/.docs/models/providers/the-grid-ai.md +2 -1
- package/.docs/models/providers/thinkingmachines.md +45 -9
- package/.docs/models/providers/togetherai.md +17 -23
- package/.docs/models/providers/tokengo.md +1 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +12 -11
- package/.docs/models/providers/umans-ai.md +11 -10
- package/.docs/models/providers/unorouter.md +0 -13
- package/.docs/models/providers/vancine.md +0 -1
- package/.docs/models/providers/vivgrid.md +3 -3
- package/.docs/models/providers/volcengine-coding-plan.md +8 -12
- package/.docs/models/providers/volcengine.md +12 -18
- package/.docs/models/providers/vultr.md +0 -2
- package/.docs/models/providers/wafer.ai.md +3 -7
- package/.docs/models/providers/wandb.md +1 -1
- package/.docs/models/providers/xai.md +21 -4
- package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -5
- package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -5
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -5
- package/.docs/models/providers/xiaomi.md +4 -4
- package/.docs/models/providers/xpersona.md +0 -1
- package/.docs/models/providers/zai-coding-plan.md +0 -4
- package/.docs/models/providers/zenmux.md +105 -125
- package/.docs/models/providers/zhipuai-coding-plan.md +0 -1
- package/.docs/models/providers/zhipuai.md +12 -12
- package/.docs/models/providers.md +1 -3
- package/.docs/reference/acp/acp-agent.md +4 -4
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +18 -23
- package/.docs/reference/agent-controller/session.md +8 -8
- package/.docs/reference/agents/agent.md +22 -46
- package/.docs/reference/agents/channels.md +17 -9
- package/.docs/reference/agents/durable-agent.md +14 -10
- package/.docs/reference/agents/generate.md +57 -3
- package/.docs/reference/agents/generateLegacy.md +2 -2
- package/.docs/reference/agents/getLLM.md +2 -2
- package/.docs/reference/agents/getMetadata.md +2 -2
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -4
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/browser/agent-browser.md +1 -1
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +2 -2
- package/.docs/reference/browser/stagehand-browser.md +4 -4
- package/.docs/reference/channels/slack-provider.md +3 -0
- package/.docs/reference/cli/mastra.md +26 -0
- package/.docs/reference/client-js/agent-controller.md +14 -4
- package/.docs/reference/client-js/agents.md +21 -1
- package/.docs/reference/client-js/mastra-client.md +1 -1
- package/.docs/reference/client-js/observability.md +29 -4
- package/.docs/reference/coding-agent/build-base-prompt.md +1 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +8 -8
- package/.docs/reference/configuration.md +33 -3
- package/.docs/reference/connect/tools.md +2 -2
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-class.md +2 -2
- package/.docs/reference/core/mastra-model-gateway.md +34 -5
- package/.docs/reference/datasets/delete.md +6 -0
- package/.docs/reference/editor/mastra-editor.md +11 -9
- package/.docs/reference/editor/tool-provider.md +2 -2
- package/.docs/reference/evals/answer-relevancy.md +1 -1
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +1 -1
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-recall.md +3 -3
- package/.docs/reference/evals/context-relevance.md +11 -11
- package/.docs/reference/evals/create-classifier-scorer.md +6 -2
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +5 -5
- package/.docs/reference/evals/multi-turn-judge.md +2 -2
- package/.docs/reference/evals/noise-sensitivity.md +12 -12
- package/.docs/reference/evals/not-scorable.md +1 -1
- package/.docs/reference/evals/prompt-alignment.md +16 -16
- package/.docs/reference/evals/rubric.md +5 -5
- package/.docs/reference/evals/summarization.md +4 -4
- package/.docs/reference/evals/tool-call-accuracy.md +4 -4
- package/.docs/reference/evals/toxicity.md +1 -1
- package/.docs/reference/file-based-agents/config.md +3 -3
- package/.docs/reference/file-based-agents/instructions.md +1 -1
- package/.docs/reference/file-based-agents/processors.md +2 -0
- package/.docs/reference/file-based-agents/schedules.md +2 -2
- package/.docs/reference/file-based-agents/skills.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +5 -5
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/manual-install.md +3 -2
- package/.docs/reference/memory/cloneThread.md +1 -1
- package/.docs/reference/memory/copyThread.md +1 -1
- package/.docs/reference/memory/deleteMessages.md +4 -1
- package/.docs/reference/memory/memory-class.md +5 -3
- package/.docs/reference/memory/observational-memory.md +16 -16
- package/.docs/reference/memory/serialized-memory-config.md +1 -1
- package/.docs/reference/memory/summarizeConversation.md +3 -3
- package/.docs/reference/memory/summarizeThread.md +3 -3
- package/.docs/reference/migrations/agentnetwork.md +4 -4
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/reference/migrations/vnext-to-standard-apis.md +2 -2
- package/.docs/reference/observability/tracing/advanced-queries.md +131 -41
- package/.docs/reference/observability/tracing/exporters/langfuse.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +2 -0
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +2 -2
- package/.docs/reference/processors/cyber-refusal-handler.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +1 -1
- 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 +2 -2
- 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 +76 -12
- package/.docs/reference/processors/prompt-injection-detector.md +1 -1
- package/.docs/reference/processors/provider-history-compat.md +1 -1
- package/.docs/reference/processors/regex-filter-processor.md +1 -1
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +3 -3
- package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
- package/.docs/reference/processors/token-cost-control.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +3 -3
- package/.docs/reference/processors/tool-call-filter.md +2 -2
- package/.docs/reference/processors/tool-search-processor.md +3 -3
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/working-memory-processor.md +2 -2
- package/.docs/reference/pubsub/lease-provider.md +2 -2
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/graph-rag-guide.md +2 -2
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/retrieval.md +13 -13
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/server/routes.md +159 -0
- package/.docs/reference/signals/create-notification-inbox-tool.md +4 -4
- package/.docs/reference/signals/notifications.md +249 -0
- package/.docs/reference/signals/signal-provider.md +2 -0
- package/.docs/reference/signals/task-signal-provider.md +3 -3
- package/.docs/reference/signals/thread-events.md +69 -0
- package/.docs/reference/streaming/ChunkType.md +68 -0
- package/.docs/reference/streaming/agents/stream.md +3 -3
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +17 -0
- package/.docs/reference/tools/mcp-client.md +430 -3
- package/.docs/reference/tools/mcp-server.md +173 -1
- package/.docs/reference/tools/task-tools.md +1 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -1
- package/.docs/reference/vectors/libsql.md +1 -1
- package/.docs/reference/vectors/mongodb.md +2 -2
- package/.docs/reference/vectors/oracledb.md +2 -2
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/upstash.md +1 -1
- package/.docs/reference/voice/overview.md +24 -24
- package/.docs/reference/voice/speech-to-speech.md +6 -6
- package/.docs/reference/voice/speech-to-text.md +1 -1
- package/.docs/reference/voice/text-to-speech.md +1 -1
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/workflows/workflow-methods/branch.md +1 -1
- package/.docs/reference/workspace/filesystem.md +17 -17
- package/.docs/reference/workspace/local-filesystem.md +52 -27
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/.docs/reference/workspace/platform-filesystem.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +23 -2
- package/.docs/reference/workspace/process-manager.md +13 -2
- package/.docs/reference/workspace/sandbox.md +16 -0
- package/.docs/reference/workspace/workspace-class.md +13 -12
- package/dist/index.js +1 -2
- package/dist/{src-Baf8l9Sp.js → src-DnH_jHt9.js} +2 -3
- package/dist/{src-Baf8l9Sp.js.map → src-DnH_jHt9.js.map} +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +9 -9
- package/.docs/docs/harness/signal-providers.md +0 -212
- package/.docs/docs/harness/signals.md +0 -546
|
@@ -64,7 +64,7 @@ You can customize the Prompt Alignment Scorer by adjusting the scale parameter a
|
|
|
64
64
|
|
|
65
65
|
```typescript
|
|
66
66
|
const scorer = createPromptAlignmentScorerLLM({
|
|
67
|
-
model: 'openai/gpt-
|
|
67
|
+
model: 'openai/gpt-6.1-sol',
|
|
68
68
|
options: {
|
|
69
69
|
scale: 10, // Score from 0-10 instead of 0-1
|
|
70
70
|
evaluationMode: 'both', // 'user', 'system', or 'both' (default)
|
|
@@ -80,7 +80,7 @@ Set `includeConversationHistory` to give the judge the prior turns from the agen
|
|
|
80
80
|
|
|
81
81
|
```typescript
|
|
82
82
|
const scorer = createPromptAlignmentScorerLLM({
|
|
83
|
-
model: 'openai/gpt-
|
|
83
|
+
model: 'openai/gpt-6.1-sol',
|
|
84
84
|
options: {
|
|
85
85
|
evaluationMode: 'user',
|
|
86
86
|
includeConversationHistory: { maxMessages: 6 }, // or `true` for the last 10 messages
|
|
@@ -242,24 +242,24 @@ const agent = new Agent({
|
|
|
242
242
|
id: 'coding-assistant',
|
|
243
243
|
name: 'CodingAssistant',
|
|
244
244
|
instructions: 'You are a helpful coding assistant. Always provide working code examples.',
|
|
245
|
-
model: 'openai/gpt-
|
|
245
|
+
model: 'openai/gpt-6.1-sol',
|
|
246
246
|
})
|
|
247
247
|
|
|
248
248
|
// Evaluate comprehensive alignment (default)
|
|
249
249
|
const scorer = createPromptAlignmentScorerLLM({
|
|
250
|
-
model: 'openai/gpt-
|
|
250
|
+
model: 'openai/gpt-6.1-sol',
|
|
251
251
|
options: { evaluationMode: 'both' }, // Evaluates both user intent and system guidelines
|
|
252
252
|
})
|
|
253
253
|
|
|
254
254
|
// Evaluate just user satisfaction
|
|
255
255
|
const userScorer = createPromptAlignmentScorerLLM({
|
|
256
|
-
model: 'openai/gpt-
|
|
256
|
+
model: 'openai/gpt-6.1-sol',
|
|
257
257
|
options: { evaluationMode: 'user' }, // Focus only on user request fulfillment
|
|
258
258
|
})
|
|
259
259
|
|
|
260
260
|
// Evaluate system compliance
|
|
261
261
|
const systemScorer = createPromptAlignmentScorerLLM({
|
|
262
|
-
model: 'openai/gpt-
|
|
262
|
+
model: 'openai/gpt-6.1-sol',
|
|
263
263
|
options: { evaluationMode: 'system' }, // Check adherence to system instructions
|
|
264
264
|
})
|
|
265
265
|
|
|
@@ -311,7 +311,7 @@ for (const agent of agents) {
|
|
|
311
311
|
import { createPromptAlignmentScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
312
312
|
|
|
313
313
|
const scorer = createPromptAlignmentScorerLLM({
|
|
314
|
-
model: 'openai/gpt-
|
|
314
|
+
model: 'openai/gpt-6.1-sol',
|
|
315
315
|
})
|
|
316
316
|
|
|
317
317
|
// Evaluate a code generation task
|
|
@@ -340,7 +340,7 @@ const result = await scorer.run({
|
|
|
340
340
|
```typescript
|
|
341
341
|
// Configure scale and evaluation mode
|
|
342
342
|
const scorer = createPromptAlignmentScorerLLM({
|
|
343
|
-
model: 'openai/gpt-
|
|
343
|
+
model: 'openai/gpt-6.1-sol',
|
|
344
344
|
options: {
|
|
345
345
|
scale: 10, // Score from 0-10 instead of 0-1
|
|
346
346
|
evaluationMode: 'both', // 'user', 'system', or 'both' (default)
|
|
@@ -349,13 +349,13 @@ const scorer = createPromptAlignmentScorerLLM({
|
|
|
349
349
|
|
|
350
350
|
// User-only evaluation - focus on user satisfaction
|
|
351
351
|
const userScorer = createPromptAlignmentScorerLLM({
|
|
352
|
-
model: 'openai/gpt-
|
|
352
|
+
model: 'openai/gpt-6.1-sol',
|
|
353
353
|
options: { evaluationMode: 'user' },
|
|
354
354
|
})
|
|
355
355
|
|
|
356
356
|
// System-only evaluation - focus on compliance
|
|
357
357
|
const systemScorer = createPromptAlignmentScorerLLM({
|
|
358
|
-
model: 'openai/gpt-
|
|
358
|
+
model: 'openai/gpt-6.1-sol',
|
|
359
359
|
options: { evaluationMode: 'system' },
|
|
360
360
|
})
|
|
361
361
|
|
|
@@ -390,7 +390,7 @@ In this example, the response fully addresses the user's prompt with all require
|
|
|
390
390
|
import { createPromptAlignmentScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
391
391
|
|
|
392
392
|
const scorer = createPromptAlignmentScorerLLM({
|
|
393
|
-
model: 'openai/gpt-
|
|
393
|
+
model: 'openai/gpt-6.1-sol',
|
|
394
394
|
})
|
|
395
395
|
|
|
396
396
|
const inputMessages = [
|
|
@@ -438,7 +438,7 @@ In this example, the response addresses the core intent but misses some requirem
|
|
|
438
438
|
import { createPromptAlignmentScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
439
439
|
|
|
440
440
|
const scorer = createPromptAlignmentScorerLLM({
|
|
441
|
-
model: 'openai/gpt-
|
|
441
|
+
model: 'openai/gpt-6.1-sol',
|
|
442
442
|
})
|
|
443
443
|
|
|
444
444
|
const inputMessages = [
|
|
@@ -479,7 +479,7 @@ In this example, the response fails to address the user's specific requirements.
|
|
|
479
479
|
import { createPromptAlignmentScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
480
480
|
|
|
481
481
|
const scorer = createPromptAlignmentScorerLLM({
|
|
482
|
-
model: 'openai/gpt-
|
|
482
|
+
model: 'openai/gpt-6.1-sol',
|
|
483
483
|
})
|
|
484
484
|
|
|
485
485
|
const inputMessages = [
|
|
@@ -523,7 +523,7 @@ Evaluates how well the response addresses the user's request, ignoring system in
|
|
|
523
523
|
|
|
524
524
|
```typescript
|
|
525
525
|
const scorer = createPromptAlignmentScorerLLM({
|
|
526
|
-
model: 'openai/gpt-
|
|
526
|
+
model: 'openai/gpt-6.1-sol',
|
|
527
527
|
options: { evaluationMode: 'user' },
|
|
528
528
|
})
|
|
529
529
|
|
|
@@ -555,7 +555,7 @@ Evaluates compliance with system behavioral guidelines and constraints:
|
|
|
555
555
|
|
|
556
556
|
```typescript
|
|
557
557
|
const scorer = createPromptAlignmentScorerLLM({
|
|
558
|
-
model: 'openai/gpt-
|
|
558
|
+
model: 'openai/gpt-6.1-sol',
|
|
559
559
|
options: { evaluationMode: 'system' },
|
|
560
560
|
})
|
|
561
561
|
|
|
@@ -587,7 +587,7 @@ Evaluates both user intent fulfillment and system compliance with weighted scori
|
|
|
587
587
|
|
|
588
588
|
```typescript
|
|
589
589
|
const scorer = createPromptAlignmentScorerLLM({
|
|
590
|
-
model: 'openai/gpt-
|
|
590
|
+
model: 'openai/gpt-6.1-sol',
|
|
591
591
|
options: { evaluationMode: 'both' }, // This is the default
|
|
592
592
|
})
|
|
593
593
|
|
|
@@ -35,12 +35,12 @@ import { createRubricScorer } from '@mastra/evals/scorers/prebuilt'
|
|
|
35
35
|
const supervisor = new Agent({
|
|
36
36
|
id: 'supervisor',
|
|
37
37
|
instructions: `You coordinate research and writing using specialized agents. Delegate to research-agent for facts, then writing-agent for content.`,
|
|
38
|
-
model: 'openai/gpt-
|
|
38
|
+
model: 'openai/gpt-6.1-sol',
|
|
39
39
|
agents: { researchAgent, writingAgent },
|
|
40
40
|
})
|
|
41
41
|
|
|
42
42
|
const rubricScorer = createRubricScorer({
|
|
43
|
-
model: 'openai/gpt-
|
|
43
|
+
model: 'openai/gpt-6-luna',
|
|
44
44
|
criteria: [
|
|
45
45
|
{ description: 'The response includes an analysis section' },
|
|
46
46
|
{ description: 'The response includes concrete recommendations' },
|
|
@@ -62,7 +62,7 @@ A newline-delimited string is parsed into criteria, with common list markers (`-
|
|
|
62
62
|
|
|
63
63
|
```typescript
|
|
64
64
|
const rubricScorer = createRubricScorer({
|
|
65
|
-
model: 'openai/gpt-
|
|
65
|
+
model: 'openai/gpt-6-luna',
|
|
66
66
|
criteria: `- All tests pass in the test suite
|
|
67
67
|
- The function is named find_duplicates and accepts a single list argument`,
|
|
68
68
|
})
|
|
@@ -74,7 +74,7 @@ Mark a criterion as optional to have it graded and reported without gating compl
|
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
76
|
const rubricScorer = createRubricScorer({
|
|
77
|
-
model: 'openai/gpt-
|
|
77
|
+
model: 'openai/gpt-6-luna',
|
|
78
78
|
criteria: [
|
|
79
79
|
{ description: 'Includes an analysis section', required: true },
|
|
80
80
|
{ description: 'Includes citations', required: false },
|
|
@@ -88,7 +88,7 @@ When no `criteria` is passed to the factory, the scorer resolves a `rubric` valu
|
|
|
88
88
|
|
|
89
89
|
```typescript
|
|
90
90
|
const rubricScorer = createRubricScorer({
|
|
91
|
-
model: 'openai/gpt-
|
|
91
|
+
model: 'openai/gpt-6-luna',
|
|
92
92
|
})
|
|
93
93
|
|
|
94
94
|
await supervisor.stream('Write find_duplicates', {
|
|
@@ -16,7 +16,7 @@ Score a summary against the document it condenses.
|
|
|
16
16
|
import { createSummarizationScorer } from '@mastra/evals/scorers/prebuilt'
|
|
17
17
|
|
|
18
18
|
const scorer = createSummarizationScorer({
|
|
19
|
-
model: 'openai/gpt-
|
|
19
|
+
model: 'openai/gpt-6.1-sol',
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
const result = await scorer.run({
|
|
@@ -125,7 +125,7 @@ Each evaluation makes three model calls. `maxQuestions` bounds the coverage half
|
|
|
125
125
|
|
|
126
126
|
```typescript
|
|
127
127
|
const scorer = createSummarizationScorer({
|
|
128
|
-
model: 'openai/gpt-
|
|
128
|
+
model: 'openai/gpt-6.1-sol',
|
|
129
129
|
})
|
|
130
130
|
```
|
|
131
131
|
|
|
@@ -135,7 +135,7 @@ const scorer = createSummarizationScorer({
|
|
|
135
135
|
import { extractToolResults } from '@mastra/evals/scorers/utils'
|
|
136
136
|
|
|
137
137
|
const scorer = createSummarizationScorer({
|
|
138
|
-
model: 'openai/gpt-
|
|
138
|
+
model: 'openai/gpt-6.1-sol',
|
|
139
139
|
options: {
|
|
140
140
|
sourceExtractor: (input, output) => {
|
|
141
141
|
return extractToolResults(output)
|
|
@@ -158,7 +158,7 @@ import { createSummarizationScorer } from '@mastra/evals/scorers/prebuilt'
|
|
|
158
158
|
import { summarizerAgent } from './agent'
|
|
159
159
|
|
|
160
160
|
const scorer = createSummarizationScorer({
|
|
161
|
-
model: 'openai/gpt-
|
|
161
|
+
model: 'openai/gpt-6.1-sol',
|
|
162
162
|
options: { maxQuestions: 10 },
|
|
163
163
|
})
|
|
164
164
|
|
|
@@ -313,7 +313,7 @@ The LLM-based scorer provides:
|
|
|
313
313
|
```typescript
|
|
314
314
|
// Basic configuration
|
|
315
315
|
const basicLLMScorer = createLLMScorer({
|
|
316
|
-
model: 'openai/gpt-
|
|
316
|
+
model: 'openai/gpt-6.1-sol',
|
|
317
317
|
availableTools: [
|
|
318
318
|
createTool({ id: 'tool1', description: 'Description 1' }),
|
|
319
319
|
createTool({ id: 'tool2', description: 'Description 2' })
|
|
@@ -322,7 +322,7 @@ const basicLLMScorer = createLLMScorer({
|
|
|
322
322
|
|
|
323
323
|
// With different model
|
|
324
324
|
const customModelScorer = createLLMScorer({
|
|
325
|
-
model: 'openai/gpt-5', // More powerful model for complex evaluations
|
|
325
|
+
model: 'openai/gpt-5.6', // More powerful model for complex evaluations
|
|
326
326
|
availableTools: [...]
|
|
327
327
|
});
|
|
328
328
|
```
|
|
@@ -356,7 +356,7 @@ import { createTool } from '@mastra/core/tools'
|
|
|
356
356
|
import { createToolCallAccuracyScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
357
357
|
|
|
358
358
|
const llmScorer = createToolCallAccuracyScorerLLM({
|
|
359
|
-
model: 'openai/gpt-
|
|
359
|
+
model: 'openai/gpt-6.1-sol',
|
|
360
360
|
availableTools: [
|
|
361
361
|
createTool({
|
|
362
362
|
id: 'weather-tool',
|
|
@@ -490,7 +490,7 @@ const codeScorer = createCodeScorer({
|
|
|
490
490
|
})
|
|
491
491
|
|
|
492
492
|
const llmScorer = createLLMScorer({
|
|
493
|
-
model: 'openai/gpt-
|
|
493
|
+
model: 'openai/gpt-6.1-sol',
|
|
494
494
|
availableTools: [
|
|
495
495
|
createTool({ id: 'weather-tool', description: 'Get weather information' }),
|
|
496
496
|
createTool({ id: 'search-tool', description: 'Search the web' }),
|
|
@@ -92,7 +92,7 @@ import { runEvals } from '@mastra/core/evals'
|
|
|
92
92
|
import { createToxicityScorer } from '@mastra/evals/scorers/prebuilt'
|
|
93
93
|
import { myAgent } from './agent'
|
|
94
94
|
|
|
95
|
-
const scorer = createToxicityScorer({ model: 'openai/gpt-
|
|
95
|
+
const scorer = createToxicityScorer({ model: 'openai/gpt-6.1-sol' })
|
|
96
96
|
|
|
97
97
|
const result = await runEvals({
|
|
98
98
|
data: [
|
|
@@ -20,7 +20,7 @@ The following `config.ts` plus an `instructions.md` file creates a working file-
|
|
|
20
20
|
import { agentConfig } from '@mastra/core/agent'
|
|
21
21
|
|
|
22
22
|
export default agentConfig({
|
|
23
|
-
model: 'openai/gpt-
|
|
23
|
+
model: 'openai/gpt-6.1-sol',
|
|
24
24
|
})
|
|
25
25
|
```
|
|
26
26
|
|
|
@@ -38,7 +38,7 @@ The `model` field is the only required field in `agentConfig()`. The build fails
|
|
|
38
38
|
import { agentConfig } from '@mastra/core/agent'
|
|
39
39
|
|
|
40
40
|
export default agentConfig({
|
|
41
|
-
model: 'openai/gpt-
|
|
41
|
+
model: 'openai/gpt-6.1-sol',
|
|
42
42
|
})
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -54,7 +54,7 @@ import { agentConfig } from '@mastra/core/agent'
|
|
|
54
54
|
export default agentConfig({
|
|
55
55
|
id: 'weather-assistant',
|
|
56
56
|
name: 'Weather Assistant',
|
|
57
|
-
model: 'openai/gpt-
|
|
57
|
+
model: 'openai/gpt-6.1-sol',
|
|
58
58
|
})
|
|
59
59
|
```
|
|
60
60
|
|
|
@@ -56,7 +56,7 @@ export default agentInstructions(({ requestContext }) => {
|
|
|
56
56
|
})
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
The function can be `async`
|
|
59
|
+
The function can be `async`. Alongside `requestContext`, it receives `mastra`, the Mastra instance the agent is registered with, so it can read from storage or another registered primitive before returning the prompt. `mastra` is optional in the function type, so guard its use (for example, `mastra?.getStorage()`).
|
|
60
60
|
|
|
61
61
|
Both files can also live in a [subagent](https://mastra.ai/reference/file-based-agents/subagents) directory, which follows the same rules.
|
|
62
62
|
|
|
@@ -45,6 +45,8 @@ model → config.outputProcessors → processors/output/* → response
|
|
|
45
45
|
|
|
46
46
|
If `config.inputProcessors` or `config.outputProcessors` is a function, discovered processors of that type are ignored with a warning because function-valued processors can't be statically merged.
|
|
47
47
|
|
|
48
|
+
If `config.ts` exports a `new Agent()` instead of a config object, Mastra uses that agent as-is. Discovered files under `processors/input/` and `processors/output/` are ignored with a warning, so set `inputProcessors` and `outputProcessors` on the `Agent` instead.
|
|
49
|
+
|
|
48
50
|
## Precedence with config
|
|
49
51
|
|
|
50
52
|
Use `config.ts` for processors that need to be created at runtime or shared across agents. Use file-based processors for static, per-agent processors that should be reviewed alongside the agent.
|
|
@@ -120,7 +120,7 @@ Frontmatter accepts every option below except `handler`, which needs a function
|
|
|
120
120
|
|
|
121
121
|
**prompt** (`string`): Message the agent runs on each fire. Set this or handler, not both.
|
|
122
122
|
|
|
123
|
-
**handler** (`(ctx) =>
|
|
123
|
+
**handler** (`(ctx) => AgentScheduleHandlerResult | null | undefined | void | Promise<AgentScheduleHandlerResult | null | undefined | void>`): Computes the fire at trigger time and can be async. Return overrides to apply as an AgentScheduleHandlerResult (Partial\<ScheduleEffective>), or null to skip this fire. Returning nothing applies no overrides, which fails the fire because handler mode has no stored prompt. Set this or prompt, not both.
|
|
124
124
|
|
|
125
125
|
**timezone** (`string`): IANA timezone the cron is evaluated in (e.g. America/New\_York). Defaults to the host process timezone, which varies by deployment, so set this explicitly for anything time-of-day sensitive. DST transitions are handled by the timezone rules, so 0 9 \* \* \* stays 9am local across the shift.
|
|
126
126
|
|
|
@@ -206,7 +206,7 @@ src/mastra/agents/
|
|
|
206
206
|
import { agentConfig } from '@mastra/core/agent'
|
|
207
207
|
|
|
208
208
|
export default agentConfig({
|
|
209
|
-
model: 'openai/gpt-
|
|
209
|
+
model: 'openai/gpt-6.1-sol',
|
|
210
210
|
})
|
|
211
211
|
```
|
|
212
212
|
|
|
@@ -10,7 +10,7 @@ Use this page for the file-based convention. For code-defined skills, see [Agent
|
|
|
10
10
|
|
|
11
11
|
## Quickstart
|
|
12
12
|
|
|
13
|
-
The simplest skill is one markdown file under `skills/`. The filename becomes the skill name
|
|
13
|
+
The simplest skill is one markdown file under `skills/`. The filename becomes the skill name unless the frontmatter sets `name`, which takes precedence. The `description` tells the agent when to load it.
|
|
14
14
|
|
|
15
15
|
```markdown
|
|
16
16
|
---
|
|
@@ -33,7 +33,7 @@ A subagent's `config.ts` must set a non-empty `description`. The parent model re
|
|
|
33
33
|
import { agentConfig } from '@mastra/core/agent'
|
|
34
34
|
|
|
35
35
|
export default agentConfig({
|
|
36
|
-
model: 'openai/gpt-
|
|
36
|
+
model: 'openai/gpt-6.1-sol',
|
|
37
37
|
description: 'Researches a topic and returns cited findings.',
|
|
38
38
|
})
|
|
39
39
|
```
|
|
@@ -42,7 +42,7 @@ export default agentConfig({
|
|
|
42
42
|
|
|
43
43
|
A subagent's `description` is routing text for the parent model. Write it like a [tool description](https://mastra.ai/reference/file-based-agents/tools): explain what the subagent does and when to delegate to it.
|
|
44
44
|
|
|
45
|
-
The build fails when a discovered subagent doesn't provide a non-empty description.
|
|
45
|
+
The build fails when a discovered subagent doesn't provide a non-empty description. The exception is a parent whose `config.ts` exports a `new Agent()`: its `subagents/` directory is ignored with a warning, so no description check runs. Set `agents` on the `Agent` instead.
|
|
46
46
|
|
|
47
47
|
## Isolation
|
|
48
48
|
|
|
@@ -96,7 +96,7 @@ src/mastra/agents/
|
|
|
96
96
|
import { agentConfig } from '@mastra/core/agent'
|
|
97
97
|
|
|
98
98
|
export default agentConfig({
|
|
99
|
-
model: 'openai/gpt-
|
|
99
|
+
model: 'openai/gpt-6.1-sol',
|
|
100
100
|
})
|
|
101
101
|
```
|
|
102
102
|
|
|
@@ -110,7 +110,7 @@ Delegate fact gathering to `researcher`. Delegate final drafting to `writer`.
|
|
|
110
110
|
import { agentConfig } from '@mastra/core/agent'
|
|
111
111
|
|
|
112
112
|
export default agentConfig({
|
|
113
|
-
model: 'openai/gpt-
|
|
113
|
+
model: 'openai/gpt-6-luna',
|
|
114
114
|
description: 'Use to gather facts, sources, and concise research notes for a topic.',
|
|
115
115
|
})
|
|
116
116
|
```
|
|
@@ -119,7 +119,7 @@ export default agentConfig({
|
|
|
119
119
|
import { agentConfig } from '@mastra/core/agent'
|
|
120
120
|
|
|
121
121
|
export default agentConfig({
|
|
122
|
-
model: 'openai/gpt-
|
|
122
|
+
model: 'openai/gpt-6.1-sol',
|
|
123
123
|
description: 'Use to turn research notes into a structured draft.',
|
|
124
124
|
})
|
|
125
125
|
```
|
|
@@ -25,7 +25,7 @@ Set `workspace` to `undefined` in `config.ts` to create the agent without a work
|
|
|
25
25
|
import { agentConfig } from '@mastra/core/agent'
|
|
26
26
|
|
|
27
27
|
export default agentConfig({
|
|
28
|
-
model: 'openai/gpt-
|
|
28
|
+
model: 'openai/gpt-6.1-sol',
|
|
29
29
|
workspace: undefined,
|
|
30
30
|
})
|
|
31
31
|
```
|
package/.docs/reference/index.md
CHANGED
|
@@ -335,8 +335,10 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
335
335
|
- [Server Routes](https://mastra.ai/reference/server/routes)
|
|
336
336
|
- [TanStack Start Adapter](https://mastra.ai/reference/server/tanstack-start-adapter)
|
|
337
337
|
- [createNotificationInboxTool()](https://mastra.ai/reference/signals/create-notification-inbox-tool)
|
|
338
|
+
- [Notifications](https://mastra.ai/reference/signals/notifications)
|
|
338
339
|
- [SignalProvider](https://mastra.ai/reference/signals/signal-provider)
|
|
339
340
|
- [TaskSignalProvider](https://mastra.ai/reference/signals/task-signal-provider)
|
|
341
|
+
- [Thread events](https://mastra.ai/reference/signals/thread-events)
|
|
340
342
|
- [WebhookSignalProvider](https://mastra.ai/reference/signals/webhook-signal-provider)
|
|
341
343
|
- [Overview](https://mastra.ai/reference/storage/overview)
|
|
342
344
|
- [Composite Storage](https://mastra.ai/reference/storage/composite)
|
|
@@ -103,6 +103,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
103
103
|
"forceConsistentCasingInFileNames": true,
|
|
104
104
|
"strict": true,
|
|
105
105
|
"skipLibCheck": true,
|
|
106
|
+
"types": ["node"],
|
|
106
107
|
"noEmit": true,
|
|
107
108
|
"outDir": "dist"
|
|
108
109
|
},
|
|
@@ -167,7 +168,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
167
168
|
mkdir -p src/mastra/agents && touch src/mastra/agents/weather-agent.ts
|
|
168
169
|
```
|
|
169
170
|
|
|
170
|
-
Use `import { Agent } from "@mastra/core/agent"`. Constructor takes `{ id, name, instructions, model: 'openai/gpt-
|
|
171
|
+
Use `import { Agent } from "@mastra/core/agent"`. Constructor takes `{ id, name, instructions, model: 'openai/gpt-6.1-sol' }`. The model string uses Mastra's model router format, 'provider/model', with / rather than : between the provider and model. Don't install any AI SDK packages.
|
|
171
172
|
|
|
172
173
|
Add the following code:
|
|
173
174
|
|
|
@@ -190,7 +191,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
190
191
|
|
|
191
192
|
Use the weatherTool to fetch current weather data.
|
|
192
193
|
`,
|
|
193
|
-
model: 'google/gemini-
|
|
194
|
+
model: 'google/gemini-3.8-flash',
|
|
194
195
|
tools: { weatherTool },
|
|
195
196
|
})
|
|
196
197
|
```
|
|
@@ -35,7 +35,7 @@ const { thread, clonedMessages } = await memory.cloneThread({
|
|
|
35
35
|
|
|
36
36
|
**title** (`string`): Optional title for the cloned thread. If omitted, the clone uses Clone of ${sourceThread.title} when the source thread has a title. Otherwise, the title is empty.
|
|
37
37
|
|
|
38
|
-
**metadata** (`Record<string, unknown>`): Optional metadata
|
|
38
|
+
**metadata** (`Record<string, unknown>`): Optional metadata for the new thread. The new thread's metadata contains only the supplied metadata plus an automatically added clone record with sourceThreadId, clonedAt, and optional lastMessageId. Source-thread metadata isn't copied.
|
|
39
39
|
|
|
40
40
|
**options** (`CloneOptions`): Optional filtering options for the clone operation.
|
|
41
41
|
|
|
@@ -35,7 +35,7 @@ const { thread, messageIdMap } = await memory.copyThread({
|
|
|
35
35
|
|
|
36
36
|
**title** (`string`): Optional title for the new thread. If omitted, the copy uses Clone of ${sourceThread.title} when the source thread has a title. Otherwise, the title is empty.
|
|
37
37
|
|
|
38
|
-
**metadata** (`Record<string, unknown>`): Optional metadata
|
|
38
|
+
**metadata** (`Record<string, unknown>`): Optional metadata for the new thread. The new thread's metadata contains only the supplied metadata plus an automatically added clone record with sourceThreadId, clonedAt, and optional lastMessageId. Source-thread metadata isn't copied.
|
|
39
39
|
|
|
40
40
|
**options** (`CloneOptions`): Optional filtering options. See cloneThread() for the full shape.
|
|
41
41
|
|
|
@@ -10,11 +10,14 @@ The `.deleteMessages()` method deletes multiple messages by their IDs.
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
await memory?.deleteMessages(['671ae63f-3a91-4082-a907-fe7de78e10ec'])
|
|
13
|
+
|
|
14
|
+
// You can also pass message objects with an `id` property
|
|
15
|
+
await memory?.deleteMessages([{ id: '671ae63f-3a91-4082-a907-fe7de78e10ec' }])
|
|
13
16
|
```
|
|
14
17
|
|
|
15
18
|
## Parameters
|
|
16
19
|
|
|
17
|
-
**messageIds** (`string[]`): Array of message IDs to delete
|
|
20
|
+
**messageIds** (`string[] | { id: string }[]`): Array of message IDs, or message objects with an id property, to delete
|
|
18
21
|
|
|
19
22
|
## Returns
|
|
20
23
|
|
|
@@ -16,7 +16,7 @@ export const agent = new Agent({
|
|
|
16
16
|
id: 'test-agent',
|
|
17
17
|
name: 'test-agent',
|
|
18
18
|
instructions: 'You are an agent with memory.',
|
|
19
|
-
model: 'openai/gpt-
|
|
19
|
+
model: 'openai/gpt-6.1-sol',
|
|
20
20
|
memory: new Memory({
|
|
21
21
|
options: {
|
|
22
22
|
workingMemory: {
|
|
@@ -37,6 +37,8 @@ export const agent = new Agent({
|
|
|
37
37
|
|
|
38
38
|
**embedder** (`EmbeddingModel<string> | EmbeddingModelV2<string>`): Embedder instance for vector embeddings. Required when semantic recall is enabled.
|
|
39
39
|
|
|
40
|
+
**embeddingDimension** (`number`): Output dimension of the embedder, as a positive integer. When set, Memory uses it to name the semantic recall index instead of embedding a probe string on first use. It must match the vectors the embedder returns: a mismatch throws a MASTRA\_MEMORY\_EMBEDDING\_DIMENSION\_MISMATCH error before any index is created. See Setting the embedding dimension.
|
|
41
|
+
|
|
40
42
|
**options** (`MemoryConfig`): Memory configuration options.
|
|
41
43
|
|
|
42
44
|
**options.lastMessages** (`number | false`): Number of most recent messages to include in context. Set to false to disable the message history feature entirely (messages are not loaded into context or saved). Use Number.MAX\_SAFE\_INTEGER to retrieve all messages with no limit. To load messages without saving new ones, use the readOnly option. The window slides forward on every request, so once a thread exceeds the limit, each turn invalidates the provider prompt cache. For long-running conversations, use Observational Memory instead.
|
|
@@ -69,7 +71,7 @@ import { LibSQLStore, LibSQLVector } from '@mastra/libsql'
|
|
|
69
71
|
export const agent = new Agent({
|
|
70
72
|
name: 'test-agent',
|
|
71
73
|
instructions: 'You are an agent with memory.',
|
|
72
|
-
model: 'openai/gpt-
|
|
74
|
+
model: 'openai/gpt-6.1-sol',
|
|
73
75
|
memory: new Memory({
|
|
74
76
|
storage: new LibSQLStore({
|
|
75
77
|
id: 'test-agent-storage',
|
|
@@ -106,7 +108,7 @@ import { PostgresStore, PgVector } from '@mastra/pg'
|
|
|
106
108
|
export const agent = new Agent({
|
|
107
109
|
name: 'pg-agent',
|
|
108
110
|
instructions: 'You are an agent with optimized PostgreSQL memory.',
|
|
109
|
-
model: 'openai/gpt-
|
|
111
|
+
model: 'openai/gpt-6.1-sol',
|
|
110
112
|
memory: new Memory({
|
|
111
113
|
storage: new PostgresStore({
|
|
112
114
|
id: 'pg-agent-storage',
|
|
@@ -18,7 +18,7 @@ export const agent = new Agent({
|
|
|
18
18
|
id: 'my-agent',
|
|
19
19
|
name: 'my-agent',
|
|
20
20
|
instructions: 'You are a helpful assistant.',
|
|
21
|
-
model: 'openai/gpt-
|
|
21
|
+
model: 'openai/gpt-6-luna',
|
|
22
22
|
memory: new Memory({
|
|
23
23
|
options: {
|
|
24
24
|
observationalMemory: true,
|
|
@@ -39,7 +39,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
39
39
|
|
|
40
40
|
**model** (`'auto' | string | LanguageModel | DynamicModel | ModelByInputTokens | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Cannot be used together with observation.model or reflection.model. When all model fields are omitted, each role defaults to "auto". Automatic selection prefers google/gemini-2.5-flash when GOOGLE\_GENERATIVE\_AI\_API\_KEY is configured, then a low-cost model for the active provider, then the active main model. Use "default" for the legacy fixed default. (Default: `'auto'`)
|
|
41
41
|
|
|
42
|
-
**autoModels** (`Record<string, string>`): Overrides the model automatic selection picks for a provider, keyed by provider ID. For example, { openai: "\_\_GATEWAY\_OPENAI\_MODEL\
|
|
42
|
+
**autoModels** (`Record<string, string>`): Overrides the model automatic selection picks for a provider, keyed by provider ID. For example, { openai: "\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_" }. Providers not listed use the built-in pick.
|
|
43
43
|
|
|
44
44
|
**resolveModel** (`(modelId: string, context: { requestContext?: RequestContext }) => MastraModelConfig | Promise<MastraModelConfig>`): Creates the model automatic selection picked, so it can use your credentials and routing. Receives only concrete model IDs, never "auto". When omitted, the picked ID goes through Mastra model routing.
|
|
45
45
|
|
|
@@ -158,7 +158,7 @@ import { z } from 'zod'
|
|
|
158
158
|
const memory = new Memory({
|
|
159
159
|
options: {
|
|
160
160
|
observationalMemory: {
|
|
161
|
-
model: 'openai/gpt-
|
|
161
|
+
model: 'openai/gpt-6-luna',
|
|
162
162
|
observation: {
|
|
163
163
|
extract: [
|
|
164
164
|
new Extractor({
|
|
@@ -240,7 +240,7 @@ export const agent = new Agent({
|
|
|
240
240
|
id: 'my-agent',
|
|
241
241
|
name: 'my-agent',
|
|
242
242
|
instructions: 'You are a helpful assistant.',
|
|
243
|
-
model: 'openai/gpt-
|
|
243
|
+
model: 'openai/gpt-6-luna',
|
|
244
244
|
memory: new Memory({
|
|
245
245
|
options: {
|
|
246
246
|
observationalMemory: {
|
|
@@ -269,7 +269,7 @@ export const agent = new Agent({
|
|
|
269
269
|
id: 'my-agent',
|
|
270
270
|
name: 'my-agent',
|
|
271
271
|
instructions: 'You are a helpful assistant.',
|
|
272
|
-
model: 'openai/gpt-
|
|
272
|
+
model: 'openai/gpt-6-luna',
|
|
273
273
|
memory: new Memory({
|
|
274
274
|
options: {
|
|
275
275
|
observationalMemory: {
|
|
@@ -299,11 +299,11 @@ export const agent = new Agent({
|
|
|
299
299
|
id: 'my-agent',
|
|
300
300
|
name: 'my-agent',
|
|
301
301
|
instructions: 'You are a helpful assistant.',
|
|
302
|
-
model: 'openai/gpt-
|
|
302
|
+
model: 'openai/gpt-6.1-sol',
|
|
303
303
|
memory: new Memory({
|
|
304
304
|
options: {
|
|
305
305
|
observationalMemory: {
|
|
306
|
-
model: 'openai/gpt-
|
|
306
|
+
model: 'openai/gpt-6-luna',
|
|
307
307
|
},
|
|
308
308
|
},
|
|
309
309
|
}),
|
|
@@ -320,7 +320,7 @@ export const agent = new Agent({
|
|
|
320
320
|
id: 'my-agent',
|
|
321
321
|
name: 'my-agent',
|
|
322
322
|
instructions: 'You are a helpful assistant.',
|
|
323
|
-
model: 'openai/gpt-
|
|
323
|
+
model: 'openai/gpt-6.1-sol',
|
|
324
324
|
memory: new Memory({
|
|
325
325
|
options: {
|
|
326
326
|
observationalMemory: {
|
|
@@ -328,7 +328,7 @@ export const agent = new Agent({
|
|
|
328
328
|
model: 'google/gemini-2.5-flash',
|
|
329
329
|
},
|
|
330
330
|
reflection: {
|
|
331
|
-
model: 'openai/gpt-
|
|
331
|
+
model: 'openai/gpt-6-luna',
|
|
332
332
|
},
|
|
333
333
|
},
|
|
334
334
|
},
|
|
@@ -348,7 +348,7 @@ export const agent = new Agent({
|
|
|
348
348
|
id: 'health-assistant',
|
|
349
349
|
name: 'health-assistant',
|
|
350
350
|
instructions: 'You are a health and wellness assistant.',
|
|
351
|
-
model: 'openai/gpt-
|
|
351
|
+
model: 'openai/gpt-6.1-sol',
|
|
352
352
|
memory: new Memory({
|
|
353
353
|
options: {
|
|
354
354
|
observationalMemory: {
|
|
@@ -393,7 +393,7 @@ export const agent = new Agent({
|
|
|
393
393
|
id: 'my-agent',
|
|
394
394
|
name: 'my-agent',
|
|
395
395
|
instructions: 'You are a helpful assistant.',
|
|
396
|
-
model: 'openai/gpt-
|
|
396
|
+
model: 'openai/gpt-6-luna',
|
|
397
397
|
memory: new Memory({
|
|
398
398
|
options: {
|
|
399
399
|
observationalMemory: {
|
|
@@ -748,7 +748,7 @@ const memory = new Memory({ storage })
|
|
|
748
748
|
const om = new ObservationalMemory({
|
|
749
749
|
storage: storage.stores.memory!,
|
|
750
750
|
memory,
|
|
751
|
-
model: 'google/gemini-
|
|
751
|
+
model: 'google/gemini-3.8-flash',
|
|
752
752
|
observation: {
|
|
753
753
|
messageTokens: 20_000,
|
|
754
754
|
},
|
|
@@ -763,7 +763,7 @@ export const agent = new Agent({
|
|
|
763
763
|
id: 'my-agent',
|
|
764
764
|
name: 'my-agent',
|
|
765
765
|
instructions: 'You are a helpful assistant.',
|
|
766
|
-
model: 'openai/gpt-
|
|
766
|
+
model: 'openai/gpt-6-luna',
|
|
767
767
|
inputProcessors: [omProcessor],
|
|
768
768
|
outputProcessors: [omProcessor],
|
|
769
769
|
})
|
|
@@ -920,8 +920,8 @@ import { ModelByInputTokens } from '@mastra/memory'
|
|
|
920
920
|
const selector = new ModelByInputTokens({
|
|
921
921
|
upTo: {
|
|
922
922
|
10_000: 'google/gemini-2.5-flash', // Fast for small inputs
|
|
923
|
-
40_000: 'openai/gpt-
|
|
924
|
-
1_000_000: 'openai/gpt-
|
|
923
|
+
40_000: 'openai/gpt-6-luna', // Stronger for medium inputs
|
|
924
|
+
1_000_000: 'openai/gpt-6.1-sol', // Most capable for large inputs
|
|
925
925
|
},
|
|
926
926
|
})
|
|
927
927
|
```
|
|
@@ -950,7 +950,7 @@ import { skillResultRedactor } from '@mastra/memory/hooks'
|
|
|
950
950
|
const memory = new Memory({
|
|
951
951
|
options: {
|
|
952
952
|
observationalMemory: {
|
|
953
|
-
model: 'google/gemini-
|
|
953
|
+
model: 'google/gemini-3.8-flash',
|
|
954
954
|
hooks: {
|
|
955
955
|
beforeObservation: skillResultRedactor(),
|
|
956
956
|
},
|
|
@@ -52,7 +52,7 @@ new MastraEditor({
|
|
|
52
52
|
|
|
53
53
|
**model** (`string`): Model ID used by both the Observer and Reflector (for example, "google/gemini-2.5-flash").
|
|
54
54
|
|
|
55
|
-
**scope** (`'resource' | 'thread'`):
|
|
55
|
+
**scope** (`'resource' | 'thread'`): Deprecated. 'resource' will be removed in a future release, leaving 'thread' (already the default) as the only scope. Omit this option to use thread scope. See resource scope (deprecated). (Default: `'thread'`)
|
|
56
56
|
|
|
57
57
|
**activateAfterIdle** (`ObservationalMemoryActivationTTL`): Inactivity TTL before forcing buffered observation activation.
|
|
58
58
|
|