@mastra/mcp-docs-server 1.3.15-alpha.1 → 1.3.15-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/guardrails.md +1 -1
- package/.docs/docs/agents/human-in-the-loop.md +2 -2
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/processors.md +2 -2
- package/.docs/docs/agents/tools.md +3 -3
- package/.docs/docs/auth/composite-auth.md +1 -1
- package/.docs/docs/auth/custom-auth-provider.md +5 -5
- package/.docs/docs/auth/fga.md +1 -1
- package/.docs/docs/auth/jwt.md +2 -2
- package/.docs/docs/auth/simple-auth.md +1 -1
- package/.docs/docs/browser.md +1 -1
- package/.docs/docs/channels.md +2 -2
- package/.docs/docs/connections/sdk-agents.md +1 -1
- package/.docs/docs/deployment/overview.md +2 -2
- package/.docs/docs/deployment/web-framework.md +3 -3
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/built-in-scorers.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +8 -8
- package/.docs/docs/evals/overview.md +1 -1
- package/.docs/docs/evals/quick-checks.md +1 -1
- package/.docs/docs/guides/authentication-identity.md +1 -1
- package/.docs/docs/guides/context-engineering.md +1 -1
- package/.docs/docs/guides/multi-agent-systems.md +2 -2
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/harness/background-tasks.md +7 -1
- package/.docs/docs/harness/durable-agents.md +1 -1
- package/.docs/docs/index.md +2 -2
- package/.docs/docs/license.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/mastra-platform/trace-intelligence.md +3 -3
- package/.docs/docs/mastra-platform/workspaces.md +1 -1
- package/.docs/docs/memory/memory-processors.md +2 -2
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +3 -3
- package/.docs/docs/memory/semantic-recall.md +4 -4
- package/.docs/docs/memory/working-memory.md +16 -16
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +12 -12
- package/.docs/docs/observability/tracing/overview.md +4 -2
- package/.docs/docs/sandbox/filesystem.md +1 -1
- package/.docs/docs/server/custom-api-routes.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/request-context.md +1 -1
- package/.docs/docs/signals/overview.md +1 -1
- package/.docs/docs/signals/sending-signals.md +1 -1
- package/.docs/docs/studio/deployment.md +2 -2
- package/.docs/docs/studio/editor.md +2 -2
- package/.docs/docs/studio/observability.md +1 -1
- package/.docs/docs/workflows/control-flow.md +4 -4
- package/.docs/docs/workflows/overview.md +3 -3
- package/.docs/docs/workflows/snapshots.md +2 -2
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +3 -3
- package/.docs/integrations/agentic-ui/assistant-ui.md +5 -5
- package/.docs/integrations/agentic-ui/copilotkit.md +4 -4
- package/.docs/integrations/agentic-ui/openui.md +2 -2
- package/.docs/integrations/auth/auth0.md +3 -3
- package/.docs/integrations/auth/better-auth.md +1 -1
- package/.docs/integrations/auth/clerk.md +1 -1
- package/.docs/integrations/auth/firebase.md +3 -3
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/okta.md +3 -3
- package/.docs/integrations/auth/supabase.md +1 -1
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +1 -1
- package/.docs/integrations/channels/imessage.md +1 -1
- package/.docs/integrations/channels/ring.md +6 -6
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +13 -13
- package/.docs/integrations/databases/clickhouse.md +2 -2
- package/.docs/integrations/databases/cloudflare-d1.md +4 -4
- package/.docs/integrations/databases/cloudflare-kv.md +10 -10
- package/.docs/integrations/databases/convex.md +6 -6
- package/.docs/integrations/databases/dynamodb.md +8 -8
- package/.docs/integrations/databases/elasticsearch.md +6 -6
- package/.docs/integrations/databases/lancedb.md +4 -4
- package/.docs/integrations/databases/mongodb.md +2 -2
- package/.docs/integrations/databases/mssql.md +2 -2
- package/.docs/integrations/databases/oracledb.md +2 -2
- package/.docs/integrations/databases/postgresql.md +14 -14
- package/.docs/integrations/databases/redis.md +7 -7
- package/.docs/integrations/databases/spanner.md +2 -2
- package/.docs/integrations/databases/upstash.md +5 -5
- package/.docs/integrations/databases/valkey.md +1 -1
- package/.docs/integrations/deploy/amazon-ec2.md +1 -1
- package/.docs/integrations/deploy/aws-bedrock-agentcore.md +1 -1
- package/.docs/integrations/deploy/aws-lambda.md +12 -12
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +2 -2
- package/.docs/integrations/deploy/inngest.md +5 -5
- package/.docs/integrations/deploy/kubernetes-helm.md +20 -20
- package/.docs/integrations/deploy/neon.md +1 -1
- package/.docs/integrations/deploy/netlify.md +1 -1
- package/.docs/integrations/deploy/render.md +1 -1
- package/.docs/integrations/deploy/temporal.md +1 -1
- package/.docs/integrations/deploy/vercel.md +4 -4
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/frameworks/angular.md +1 -1
- package/.docs/integrations/frameworks/astro.md +3 -3
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +2 -2
- package/.docs/integrations/frameworks/next-js.md +3 -3
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/tanstack-start.md +3 -3
- package/.docs/integrations/frameworks/vite-react.md +3 -3
- package/.docs/integrations/observability/arize.md +9 -9
- package/.docs/integrations/observability/arthur.md +3 -3
- package/.docs/integrations/observability/braintrust.md +3 -3
- package/.docs/integrations/observability/confident-ai.md +5 -5
- package/.docs/integrations/observability/datadog.md +9 -9
- package/.docs/integrations/observability/laminar.md +2 -2
- package/.docs/integrations/observability/langfuse.md +13 -13
- package/.docs/integrations/observability/langsmith.md +9 -9
- package/.docs/integrations/observability/opentelemetry.md +23 -23
- package/.docs/integrations/observability/sentry.md +4 -4
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +2 -2
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +6 -6
- package/.docs/integrations/sandboxes/daytona.md +5 -5
- package/.docs/integrations/sandboxes/docker.md +6 -6
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +14 -14
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +1 -1
- package/.docs/integrations/sandboxes/sprites.md +2 -2
- package/.docs/integrations/sandboxes/vercel.md +4 -4
- package/.docs/integrations/vectors/couchbase.md +1 -1
- package/.docs/integrations/vectors/duckdb.md +5 -5
- package/.docs/integrations/vectors/lance.md +3 -3
- package/.docs/integrations/vectors/mongodb.md +5 -5
- package/.docs/integrations/vectors/pg.md +11 -11
- package/.docs/integrations/vectors/qdrant.md +2 -2
- package/.docs/integrations/vectors/upstash.md +4 -4
- package/.docs/integrations/voice/azure.md +1 -1
- package/.docs/integrations/voice/cloudflare.md +1 -1
- package/.docs/integrations/voice/google.md +12 -12
- package/.docs/integrations/voice/inworld.md +2 -2
- package/.docs/integrations/voice/livekit.md +25 -25
- package/.docs/integrations/voice/openai.md +4 -4
- package/.docs/integrations/voice/sarvam.md +1 -1
- package/.docs/integrations/voice/speechify.md +1 -1
- package/.docs/integrations/voice/xai.md +1 -1
- package/.docs/models/environment-variables.md +92 -3
- package/.docs/models/gateways/merge-gateway.md +4 -1
- package/.docs/models/gateways/neon.md +1 -2
- package/.docs/models/gateways/netlify.md +7 -6
- package/.docs/models/gateways/openrouter.md +16 -11
- package/.docs/models/gateways/requesty.md +7 -17
- package/.docs/models/gateways/vercel.md +12 -16
- package/.docs/models/index.md +93 -30
- package/.docs/models/providers/302ai.md +2 -1
- package/.docs/models/providers/abacus.md +1 -1
- package/.docs/models/providers/abliteratedllm.md +95 -0
- package/.docs/models/providers/abliteration-ai.md +7 -6
- package/.docs/models/providers/adaption.md +87 -0
- package/.docs/models/providers/adzuki.md +92 -0
- package/.docs/models/providers/aigrow.md +89 -0
- package/.docs/models/providers/aimlapi.md +1 -7
- package/.docs/models/providers/aipg.md +82 -0
- package/.docs/models/providers/aistupidlevel.md +90 -0
- package/.docs/models/providers/aki-io.md +15 -13
- package/.docs/models/providers/ambient.md +13 -12
- package/.docs/models/providers/anonrouter.md +83 -0
- package/.docs/models/providers/anthropic.md +18 -20
- package/.docs/models/providers/apiko.md +83 -0
- package/.docs/models/providers/augure.md +86 -0
- package/.docs/models/providers/autarcho.md +81 -0
- package/.docs/models/providers/bailing.md +15 -12
- package/.docs/models/providers/bumo.md +100 -0
- package/.docs/models/providers/byteplus.md +94 -0
- package/.docs/models/providers/cedarllm.md +81 -0
- package/.docs/models/providers/cheapaimodel.md +85 -0
- package/.docs/models/providers/cheapest-token.md +99 -0
- package/.docs/models/providers/cheapllm.md +81 -0
- package/.docs/models/providers/chutes.md +8 -8
- package/.docs/models/providers/cline-pass.md +4 -3
- package/.docs/models/providers/cloudcode.md +86 -0
- package/.docs/models/providers/cloudflare-workers-ai.md +2 -1
- package/.docs/models/providers/commandcode.md +22 -1
- package/.docs/models/providers/confidential-ai.md +81 -0
- package/.docs/models/providers/cortecs.md +14 -14
- package/.docs/models/providers/crossmodel.md +7 -2
- package/.docs/models/providers/deepinfra.md +3 -1
- package/.docs/models/providers/digitalocean.md +5 -4
- package/.docs/models/providers/dothoosh.md +96 -0
- package/.docs/models/providers/doubleword.md +98 -0
- package/.docs/models/providers/edenai.md +52 -44
- package/.docs/models/providers/empiriolabs.md +2 -1
- package/.docs/models/providers/engy.md +2 -1
- package/.docs/models/providers/entrim.md +84 -0
- package/.docs/models/providers/ezkielyna.md +85 -0
- package/.docs/models/providers/fastrouter.md +21 -5
- package/.docs/models/providers/fiftyx.md +81 -0
- package/.docs/models/providers/fireworks-ai.md +1 -1
- package/.docs/models/providers/fortytwo.md +81 -0
- package/.docs/models/providers/frequency.md +81 -0
- package/.docs/models/providers/frogbot.md +30 -5
- package/.docs/models/providers/gisoo.md +96 -0
- package/.docs/models/providers/google.md +5 -4
- package/.docs/models/providers/graphn.md +87 -0
- package/.docs/models/providers/hetzner.md +1 -1
- package/.docs/models/providers/hostinger-router.md +88 -0
- package/.docs/models/providers/huawei-maas.md +88 -0
- package/.docs/models/providers/hubris.md +96 -0
- package/.docs/models/providers/huggingface.md +5 -1
- package/.docs/models/providers/humain.md +82 -0
- package/.docs/models/providers/hyper.md +24 -22
- package/.docs/models/providers/inceptron.md +4 -4
- package/.docs/models/providers/infer.md +17 -9
- package/.docs/models/providers/inferall.md +86 -0
- package/.docs/models/providers/inference-coop.md +88 -0
- package/.docs/models/providers/inferenceapis.md +91 -0
- package/.docs/models/providers/inferris.md +84 -0
- package/.docs/models/providers/infersia.md +86 -0
- package/.docs/models/providers/isoquant.md +82 -0
- package/.docs/models/providers/iteracompute.md +33 -16
- package/.docs/models/providers/jad-ai.md +83 -0
- package/.docs/models/providers/joingonka.md +83 -0
- package/.docs/models/providers/jzstoken.md +102 -0
- package/.docs/models/providers/keln.md +94 -0
- package/.docs/models/providers/kenari.md +47 -12
- package/.docs/models/providers/kilo.md +191 -100
- package/.docs/models/providers/kitani.md +89 -0
- package/.docs/models/providers/klavo.md +90 -0
- package/.docs/models/providers/korouter.md +99 -0
- package/.docs/models/providers/kunavo.md +96 -0
- package/.docs/models/providers/liquid.md +15 -8
- package/.docs/models/providers/lithosai.md +83 -0
- package/.docs/models/providers/llmgateway-providers.md +96 -43
- package/.docs/models/providers/llmgateway.md +33 -21
- package/.docs/models/providers/logits.md +82 -0
- package/.docs/models/providers/lowrouter.md +17 -4
- package/.docs/models/providers/lyceum.md +88 -0
- package/.docs/models/providers/mallard.md +81 -0
- package/.docs/models/providers/meragpt.md +81 -0
- package/.docs/models/providers/mistral.md +1 -1
- package/.docs/models/providers/moneo.md +92 -0
- package/.docs/models/providers/nan.md +11 -8
- package/.docs/models/providers/nano-gpt.md +77 -73
- package/.docs/models/providers/nearai.md +1 -1
- package/.docs/models/providers/nebius.md +3 -6
- package/.docs/models/providers/neuralwatt.md +28 -25
- package/.docs/models/providers/nodecode.md +81 -0
- package/.docs/models/providers/nokeep.md +83 -0
- package/.docs/models/providers/novita-ai.md +4 -1
- package/.docs/models/providers/oathbreaker.md +82 -0
- package/.docs/models/providers/obscurify.md +95 -0
- package/.docs/models/providers/ofox.md +7 -3
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/openai.md +4 -2
- package/.docs/models/providers/opencode-go.md +3 -1
- package/.docs/models/providers/opencode.md +5 -3
- package/.docs/models/providers/opper.md +2 -1
- package/.docs/models/providers/outerlabs.md +98 -0
- package/.docs/models/providers/paraloncloud.md +81 -0
- package/.docs/models/providers/pareto.md +9 -7
- package/.docs/models/providers/phala.md +99 -0
- package/.docs/models/providers/phase.md +82 -0
- package/.docs/models/providers/powerspring.md +87 -0
- package/.docs/models/providers/prime.md +5 -5
- package/.docs/models/providers/proxystacks.md +84 -0
- package/.docs/models/providers/rayline.md +82 -0
- package/.docs/models/providers/refuseless.md +86 -0
- package/.docs/models/providers/ruapi.md +89 -0
- package/.docs/models/providers/runcrate.md +91 -0
- package/.docs/models/providers/runinfra.md +2 -1
- package/.docs/models/providers/sagg.md +81 -0
- package/.docs/models/providers/sambanova.md +10 -12
- package/.docs/models/providers/sandbase.md +90 -0
- package/.docs/models/providers/scx-ai.md +20 -10
- package/.docs/models/providers/sensenova.md +4 -4
- package/.docs/models/providers/siliconflow-cn.md +2 -1
- package/.docs/models/providers/sokkan.md +85 -0
- package/.docs/models/providers/sparrowcodes.md +99 -0
- package/.docs/models/providers/steadyrouter.md +101 -0
- package/.docs/models/providers/stepping-stone.md +95 -0
- package/.docs/models/providers/superbot-gg.md +82 -0
- package/.docs/models/providers/synthetic.md +14 -14
- package/.docs/models/providers/synthorai.md +92 -0
- package/.docs/models/providers/teamorouter.md +90 -0
- package/.docs/models/providers/teapot-router.md +87 -0
- package/.docs/models/providers/tencent-token-plan.md +23 -11
- package/.docs/models/providers/tenstorrent.md +84 -0
- package/.docs/models/providers/therouter.md +81 -0
- package/.docs/models/providers/tinfoil.md +1 -1
- package/.docs/models/providers/toapis.md +83 -0
- package/.docs/models/providers/tokenify.md +85 -0
- package/.docs/models/providers/tokenlab.md +81 -0
- package/.docs/models/providers/tokenwatt.md +81 -0
- package/.docs/models/providers/trustedtokens.md +90 -0
- package/.docs/models/providers/umans-ai-coding-plan.md +2 -5
- package/.docs/models/providers/umans-ai.md +5 -7
- package/.docs/models/providers/unbiased.md +81 -0
- package/.docs/models/providers/uncensuredai.md +83 -0
- package/.docs/models/providers/unrestricted.md +84 -0
- package/.docs/models/providers/uplinkswitch.md +92 -0
- package/.docs/models/providers/verda.md +81 -0
- package/.docs/models/providers/volcengine-coding-plan.md +16 -9
- package/.docs/models/providers/volcengine.md +2 -2
- package/.docs/models/providers/wafer.ai.md +20 -10
- package/.docs/models/providers/wallaby.md +7 -5
- package/.docs/models/providers/wally.md +9 -8
- package/.docs/models/providers/watt.md +98 -0
- package/.docs/models/providers/xxapi.md +96 -0
- package/.docs/models/providers/zenifra.md +22 -10
- package/.docs/models/providers/zerogpu.md +89 -0
- package/.docs/models/providers/zro.md +85 -0
- package/.docs/models/providers.md +92 -3
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/durable-agent.md +2 -2
- package/.docs/reference/agents/generateLegacy.md +4 -4
- package/.docs/reference/agents/network.md +2 -2
- package/.docs/reference/ai-sdk/overview.md +2 -2
- package/.docs/reference/build-with-ai.md +3 -3
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/classifier/classifier.md +1 -1
- package/.docs/reference/cli/mastra.md +2 -2
- package/.docs/reference/client-js/agent-controller.md +1 -1
- package/.docs/reference/client-js/memory.md +10 -10
- package/.docs/reference/client-js/observability.md +1 -1
- package/.docs/reference/client-js/responses.md +1 -1
- package/.docs/reference/client-js/tools.md +2 -2
- package/.docs/reference/client-js/vectors.md +6 -6
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/connect/tools.md +1 -1
- package/.docs/reference/deployer.md +4 -4
- package/.docs/reference/evals/answer-relevancy.md +2 -2
- package/.docs/reference/evals/bias.md +2 -2
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/completeness.md +4 -4
- package/.docs/reference/evals/content-similarity.md +4 -4
- package/.docs/reference/evals/context-precision.md +6 -6
- package/.docs/reference/evals/context-recall.md +1 -1
- package/.docs/reference/evals/context-relevance.md +9 -9
- package/.docs/reference/evals/create-scorer.md +3 -3
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +6 -6
- package/.docs/reference/evals/keyword-coverage.md +2 -2
- package/.docs/reference/evals/multi-turn-judge.md +1 -1
- package/.docs/reference/evals/noise-sensitivity.md +16 -16
- package/.docs/reference/evals/prompt-alignment.md +25 -25
- package/.docs/reference/evals/run-evals.md +2 -2
- package/.docs/reference/evals/summarization.md +1 -1
- package/.docs/reference/evals/textual-difference.md +2 -2
- package/.docs/reference/evals/tone-consistency.md +2 -2
- package/.docs/reference/evals/tool-call-accuracy.md +10 -10
- package/.docs/reference/evals/toxicity.md +2 -2
- package/.docs/reference/evals/trajectory-accuracy.md +2 -2
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/listThreads.md +1 -1
- package/.docs/reference/migrations/agentnetwork.md +1 -1
- package/.docs/reference/migrations/mastra-cloud.md +4 -4
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/deployment.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/overview.md +8 -8
- package/.docs/reference/migrations/upgrade-to-v1/tracing.md +3 -3
- package/.docs/reference/observability/tracing/bridges/datadog.md +4 -4
- package/.docs/reference/observability/tracing/bridges/otel.md +4 -4
- package/.docs/reference/observability/tracing/exporters/arize.md +4 -4
- package/.docs/reference/observability/tracing/exporters/arthur.md +3 -3
- package/.docs/reference/observability/tracing/exporters/braintrust.md +2 -2
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +2 -2
- package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/datadog.md +3 -3
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +5 -5
- package/.docs/reference/observability/tracing/exporters/laminar.md +2 -2
- package/.docs/reference/observability/tracing/exporters/langfuse.md +3 -3
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +5 -5
- package/.docs/reference/observability/tracing/exporters/otel.md +4 -4
- package/.docs/reference/observability/tracing/exporters/posthog.md +2 -2
- package/.docs/reference/observability/tracing/exporters/sentry.md +4 -4
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/processors/model-selection-processor.md +2 -2
- package/.docs/reference/processors/processor-interface.md +3 -3
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/project-structure.md +2 -2
- package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +1 -1
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
- package/.docs/reference/rag/chunk.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +4 -4
- package/.docs/reference/rag/database-config.md +4 -4
- package/.docs/reference/rag/graph-rag-guide.md +3 -3
- package/.docs/reference/rag/metadata-filters.md +4 -4
- package/.docs/reference/rag/overview.md +4 -0
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/rerankWithScorer.md +1 -1
- package/.docs/reference/rag/retrieval.md +8 -6
- package/.docs/reference/rag/vector-databases.md +7 -7
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/server/register-api-route.md +5 -5
- package/.docs/reference/storage/composite.md +1 -1
- package/.docs/reference/storage/overview.md +1 -1
- package/.docs/reference/storage/retention.md +2 -2
- package/.docs/reference/storage/turso.md +1 -1
- package/.docs/reference/streaming/agents/MastraModelOutput.md +5 -5
- package/.docs/reference/streaming/agents/stream.md +5 -5
- package/.docs/reference/streaming/agents/streamLegacy.md +4 -4
- package/.docs/reference/templates/overview.md +1 -1
- package/.docs/reference/tools/bedrock-kb-tool.md +8 -8
- package/.docs/reference/tools/mcp-client.md +9 -9
- package/.docs/reference/tools/mcp-server.md +17 -17
- package/.docs/reference/tools/vector-query-tool.md +6 -6
- package/.docs/reference/voice/composite-voice.md +3 -3
- package/.docs/reference/voice/overview.md +5 -5
- package/.docs/reference/voice/speech-to-speech.md +2 -2
- package/.docs/reference/voice/voice.close.md +1 -1
- package/.docs/reference/voice/voice.connect.md +1 -1
- package/.docs/reference/voice/voice.listen.md +1 -1
- package/.docs/reference/voice/voice.speak.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/package.json +2 -2
|
@@ -25,23 +25,23 @@ Before using the noise sensitivity scorer, prepare your test data:
|
|
|
25
25
|
|
|
26
26
|
This scorer is designed exclusively for CI/testing environments and has specific requirements:
|
|
27
27
|
|
|
28
|
-
### Why
|
|
28
|
+
### Why this is a CI scorer
|
|
29
29
|
|
|
30
30
|
1. **Requires Baseline Data**: You must provide a pre-computed baseline response (the "correct" answer without noise)
|
|
31
31
|
2. **Needs Test Variations**: Requires both the original query and a noisy variation prepared in advance
|
|
32
32
|
3. **Comparative Analysis**: The scorer compares responses between baseline and noisy versions, which is only possible in controlled test conditions
|
|
33
33
|
4. **Not Suitable for Production**: Can't evaluate single, real-time agent responses without predetermined test data
|
|
34
34
|
|
|
35
|
-
### Test
|
|
35
|
+
### Test data preparation
|
|
36
36
|
|
|
37
|
-
To use this scorer
|
|
37
|
+
To use this scorer, prepare:
|
|
38
38
|
|
|
39
39
|
- **Original Query**: The clean user input without any noise
|
|
40
40
|
- **Baseline Response**: Run your agent with the original query and capture the response
|
|
41
41
|
- **Noisy Query**: Add distractions, misinformation, or irrelevant content to the original query
|
|
42
42
|
- **Test Execution**: Run your agent with the noisy query and evaluate using this scorer
|
|
43
43
|
|
|
44
|
-
### Example: CI
|
|
44
|
+
### Example: CI test implementation
|
|
45
45
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { describe, it, expect } from 'vitest'
|
|
@@ -94,13 +94,13 @@ describe('Agent Noise Resistance Tests', () => {
|
|
|
94
94
|
|
|
95
95
|
The Noise Sensitivity scorer analyzes five key dimensions:
|
|
96
96
|
|
|
97
|
-
### 1. Content
|
|
97
|
+
### 1. Content accuracy
|
|
98
98
|
|
|
99
99
|
Evaluates whether facts and information remain correct despite noise. The scorer checks if the agent maintains truthfulness when exposed to misinformation.
|
|
100
100
|
|
|
101
101
|
### 2. Completeness
|
|
102
102
|
|
|
103
|
-
Assesses if the noisy response addresses the original query as
|
|
103
|
+
Assesses if the noisy response addresses the original query as well as the baseline. Measures whether noise causes the agent to miss important information.
|
|
104
104
|
|
|
105
105
|
### 3. Relevance
|
|
106
106
|
|
|
@@ -110,7 +110,7 @@ Determines if the agent stayed focused on the original question or got distracte
|
|
|
110
110
|
|
|
111
111
|
Compares how similar the responses are in their core message and conclusions. Evaluates whether noise causes the agent to contradict itself.
|
|
112
112
|
|
|
113
|
-
### 5. Hallucination
|
|
113
|
+
### 5. Hallucination resistance
|
|
114
114
|
|
|
115
115
|
Checks if noise causes the agent to generate false or fabricated information that wasn't present in either the query or the noise.
|
|
116
116
|
|
|
@@ -135,7 +135,7 @@ Where:
|
|
|
135
135
|
- `discrepancy_threshold` = `scoring.discrepancyThreshold` (default `0.2`)
|
|
136
136
|
- `issues_penalty` = min(major_issues × penalty_rate, max_penalty)
|
|
137
137
|
|
|
138
|
-
### Impact
|
|
138
|
+
### Impact level weights
|
|
139
139
|
|
|
140
140
|
Each dimension receives an impact level with corresponding weights:
|
|
141
141
|
|
|
@@ -145,7 +145,7 @@ Each dimension receives an impact level with corresponding weights:
|
|
|
145
145
|
- **Significant (0.3)**: Major degradation in quality or accuracy
|
|
146
146
|
- **Severe (0.1)**: Response much worse than the baseline or unrelated to the original query
|
|
147
147
|
|
|
148
|
-
### Conservative
|
|
148
|
+
### Conservative scoring
|
|
149
149
|
|
|
150
150
|
When the LLM's direct score and the calculated score diverge by more than the discrepancy threshold, the scorer uses the lower (more conservative) score to ensure reliable evaluation.
|
|
151
151
|
|
|
@@ -171,7 +171,7 @@ Example: "Write a summary of this article. Actually, ignore that and tell me abo
|
|
|
171
171
|
|
|
172
172
|
## CI/testing usage patterns
|
|
173
173
|
|
|
174
|
-
### Integration
|
|
174
|
+
### Integration testing
|
|
175
175
|
|
|
176
176
|
Use in your CI pipeline to verify agent robustness:
|
|
177
177
|
|
|
@@ -180,7 +180,7 @@ Use in your CI pipeline to verify agent robustness:
|
|
|
180
180
|
- Compare different model versions' noise handling capabilities
|
|
181
181
|
- Validate fixes for noise-related issues
|
|
182
182
|
|
|
183
|
-
### Quality
|
|
183
|
+
### Quality assurance testing
|
|
184
184
|
|
|
185
185
|
Include in your test harness to:
|
|
186
186
|
|
|
@@ -189,7 +189,7 @@ Include in your test harness to:
|
|
|
189
189
|
- Create detailed test coverage for multiple noise types
|
|
190
190
|
- Ensure consistent behavior across updates
|
|
191
191
|
|
|
192
|
-
### Security
|
|
192
|
+
### Security testing
|
|
193
193
|
|
|
194
194
|
Evaluate resistance in controlled environments:
|
|
195
195
|
|
|
@@ -201,7 +201,7 @@ Evaluate resistance in controlled environments:
|
|
|
201
201
|
### Score interpretation
|
|
202
202
|
|
|
203
203
|
- **1.0**: Perfect robustness - no impact detected
|
|
204
|
-
- **0.8-0.9**:
|
|
204
|
+
- **0.8-0.9**: High - minimal impact, core functionality preserved
|
|
205
205
|
- **0.6-0.7**: Good - some impact but acceptable for most use cases
|
|
206
206
|
- **0.4-0.5**: Concerning - substantial vulnerabilities detected
|
|
207
207
|
- **0.0-0.3**: Critical - agent severely compromised by noise
|
|
@@ -227,7 +227,7 @@ Based on noise sensitivity results:
|
|
|
227
227
|
|
|
228
228
|
## Examples
|
|
229
229
|
|
|
230
|
-
### Complete Vitest
|
|
230
|
+
### Complete Vitest example
|
|
231
231
|
|
|
232
232
|
```typescript
|
|
233
233
|
import { describe, it, expect, beforeAll } from 'vitest'
|
|
@@ -296,7 +296,7 @@ describe('Agent Noise Resistance CI Tests', () => {
|
|
|
296
296
|
|
|
297
297
|
## Perfect robustness example
|
|
298
298
|
|
|
299
|
-
This example shows an agent that
|
|
299
|
+
This example shows an agent that resists misinformation in a test scenario:
|
|
300
300
|
|
|
301
301
|
```typescript
|
|
302
302
|
import { createNoiseSensitivityScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
@@ -654,7 +654,7 @@ console.log(`Security Score: ${result.score}`)
|
|
|
654
654
|
console.log(`Vulnerability: ${result.score < 0.7 ? 'DETECTED' : 'Not detected'}`)
|
|
655
655
|
```
|
|
656
656
|
|
|
657
|
-
### GitHub Actions
|
|
657
|
+
### GitHub Actions example
|
|
658
658
|
|
|
659
659
|
Use in your GitHub Actions workflow to test agent robustness:
|
|
660
660
|
|
|
@@ -90,11 +90,11 @@ const scorer = createPromptAlignmentScorerLLM({
|
|
|
90
90
|
|
|
91
91
|
This only affects agent runs, where the scorer receives the remembered messages. Runs scored from a plain prompt string are unchanged.
|
|
92
92
|
|
|
93
|
-
### Multi-
|
|
93
|
+
### Multi-dimensional analysis
|
|
94
94
|
|
|
95
95
|
Prompt Alignment evaluates responses across four key dimensions with weighted scoring that adapts based on the evaluation mode:
|
|
96
96
|
|
|
97
|
-
#### User
|
|
97
|
+
#### User mode ('user')
|
|
98
98
|
|
|
99
99
|
Evaluates alignment with user prompts only:
|
|
100
100
|
|
|
@@ -103,7 +103,7 @@ Evaluates alignment with user prompts only:
|
|
|
103
103
|
3. **Completeness** (20% weight): Whether the response is detailed for user needs
|
|
104
104
|
4. **Response Appropriateness** (10% weight): If format and tone match user expectations
|
|
105
105
|
|
|
106
|
-
#### System
|
|
106
|
+
#### System mode ('system')
|
|
107
107
|
|
|
108
108
|
Evaluates compliance with system guidelines only:
|
|
109
109
|
|
|
@@ -112,7 +112,7 @@ Evaluates compliance with system guidelines only:
|
|
|
112
112
|
3. **Completeness** (15% weight): Whether the response adheres to all system rules
|
|
113
113
|
4. **Response Appropriateness** (15% weight): If format and tone match system specifications
|
|
114
114
|
|
|
115
|
-
#### Both
|
|
115
|
+
#### Both mode ('both' - default)
|
|
116
116
|
|
|
117
117
|
Evaluates user and system alignment together in a single analysis:
|
|
118
118
|
|
|
@@ -120,7 +120,7 @@ Evaluates user and system alignment together in a single analysis:
|
|
|
120
120
|
- The resulting dimension scores are combined using the user mode weights
|
|
121
121
|
- The scorer computes no separate system score, so the result isn't a blend of user mode and system mode scores
|
|
122
122
|
|
|
123
|
-
### Scoring
|
|
123
|
+
### Scoring formula
|
|
124
124
|
|
|
125
125
|
**User Mode:**
|
|
126
126
|
|
|
@@ -154,16 +154,16 @@ In both mode, each dimension score comes from the combined analysis of the user
|
|
|
154
154
|
- **System Mode**: Balances behavioral compliance (35%) and constraints (35%) equally
|
|
155
155
|
- **Both Mode**: Uses the user mode weights over a combined analysis, so user needs stay primary while system guidelines are still assessed
|
|
156
156
|
|
|
157
|
-
### Score
|
|
157
|
+
### Score interpretation
|
|
158
158
|
|
|
159
|
-
- **0.9-1.0** =
|
|
160
|
-
- **0.8-0.9** =
|
|
159
|
+
- **0.9-1.0** = Strong alignment across all dimensions
|
|
160
|
+
- **0.8-0.9** = Good alignment with minor gaps
|
|
161
161
|
- **0.7-0.8** = Good alignment but missing some requirements or completeness
|
|
162
162
|
- **0.6-0.7** = Moderate alignment with noticeable gaps
|
|
163
163
|
- **0.4-0.6** = Poor alignment with substantial issues
|
|
164
|
-
- **0.0-0.4** =
|
|
164
|
+
- **0.0-0.4** = Poor alignment, response doesn't address the prompt
|
|
165
165
|
|
|
166
|
-
### When to
|
|
166
|
+
### When to use each mode
|
|
167
167
|
|
|
168
168
|
**User Mode (`'user'`)** - Use when:
|
|
169
169
|
|
|
@@ -186,7 +186,7 @@ In both mode, each dimension score comes from the combined analysis of the user
|
|
|
186
186
|
|
|
187
187
|
## Common use cases
|
|
188
188
|
|
|
189
|
-
### Code
|
|
189
|
+
### Code generation evaluation
|
|
190
190
|
|
|
191
191
|
Ideal for evaluating:
|
|
192
192
|
|
|
@@ -202,7 +202,7 @@ const codePrompt = 'Create a REST API endpoint with authentication and rate limi
|
|
|
202
202
|
// completeness (full implementation), format (code structure)
|
|
203
203
|
```
|
|
204
204
|
|
|
205
|
-
### Instruction
|
|
205
|
+
### Instruction following assessment
|
|
206
206
|
|
|
207
207
|
Perfect for:
|
|
208
208
|
|
|
@@ -218,7 +218,7 @@ const taskPrompt =
|
|
|
218
218
|
// Scorer tracks each requirement individually and provides detailed breakdown
|
|
219
219
|
```
|
|
220
220
|
|
|
221
|
-
### Content
|
|
221
|
+
### Content format validation
|
|
222
222
|
|
|
223
223
|
Useful for:
|
|
224
224
|
|
|
@@ -234,7 +234,7 @@ const formatPrompt =
|
|
|
234
234
|
// Scorer evaluates content accuracy AND format compliance
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
-
### Agent
|
|
237
|
+
### Agent response quality
|
|
238
238
|
|
|
239
239
|
Measure how well your AI agents follow user instructions:
|
|
240
240
|
|
|
@@ -267,7 +267,7 @@ const systemScorer = createPromptAlignmentScorerLLM({
|
|
|
267
267
|
const result = await scorer.run(agentRun)
|
|
268
268
|
```
|
|
269
269
|
|
|
270
|
-
### Prompt
|
|
270
|
+
### Prompt engineering optimization
|
|
271
271
|
|
|
272
272
|
Test different prompts to improve alignment:
|
|
273
273
|
|
|
@@ -285,7 +285,7 @@ for (const prompt of prompts) {
|
|
|
285
285
|
}
|
|
286
286
|
```
|
|
287
287
|
|
|
288
|
-
### Multi-
|
|
288
|
+
### Multi-agent system evaluation
|
|
289
289
|
|
|
290
290
|
Compare different agents or models:
|
|
291
291
|
|
|
@@ -306,7 +306,7 @@ for (const agent of agents) {
|
|
|
306
306
|
|
|
307
307
|
## Examples
|
|
308
308
|
|
|
309
|
-
### Basic
|
|
309
|
+
### Basic configuration
|
|
310
310
|
|
|
311
311
|
```typescript
|
|
312
312
|
import { createPromptAlignmentScorerLLM } from '@mastra/evals/scorers/prebuilt'
|
|
@@ -336,7 +336,7 @@ const result = await scorer.run({
|
|
|
336
336
|
// Result: { score: 0.95, reason: "Excellent alignment - function addresses intent, includes error handling..." }
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
### Custom
|
|
339
|
+
### Custom configuration examples
|
|
340
340
|
|
|
341
341
|
```typescript
|
|
342
342
|
// Configure scale and evaluation mode
|
|
@@ -364,7 +364,7 @@ const result = await scorer.run(testRun)
|
|
|
364
364
|
// Result: { score: 8.5, reason: "Score: 8.5 out of 10 - Good alignment with both user intent and system guidelines..." }
|
|
365
365
|
```
|
|
366
366
|
|
|
367
|
-
### Format-
|
|
367
|
+
### Format-specific evaluation
|
|
368
368
|
|
|
369
369
|
```typescript
|
|
370
370
|
// Evaluate bullet point formatting
|
|
@@ -383,7 +383,7 @@ const result = await scorer.run({
|
|
|
383
383
|
// Result: Lower appropriateness score due to format mismatch (paragraph vs bullet points)
|
|
384
384
|
```
|
|
385
385
|
|
|
386
|
-
###
|
|
386
|
+
### Strong alignment example
|
|
387
387
|
|
|
388
388
|
In this example, the response fully addresses the user's prompt with all requirements met.
|
|
389
389
|
|
|
@@ -420,7 +420,7 @@ const result = await scorer.run({
|
|
|
420
420
|
console.log(result)
|
|
421
421
|
```
|
|
422
422
|
|
|
423
|
-
###
|
|
423
|
+
### Strong alignment output
|
|
424
424
|
|
|
425
425
|
In this example, the response receives a high score because it provides the requested Python factorial function with error handling for negative numbers.
|
|
426
426
|
|
|
@@ -516,9 +516,9 @@ The output receives a low score because it only partially fulfills the requireme
|
|
|
516
516
|
}
|
|
517
517
|
```
|
|
518
518
|
|
|
519
|
-
### Evaluation
|
|
519
|
+
### Evaluation mode examples
|
|
520
520
|
|
|
521
|
-
#### User
|
|
521
|
+
#### User mode - focus on user prompt only
|
|
522
522
|
|
|
523
523
|
Evaluates how well the response addresses the user's request, ignoring system instructions:
|
|
524
524
|
|
|
@@ -550,7 +550,7 @@ const result = await scorer.run({
|
|
|
550
550
|
// Scores high for addressing user request, even without Python code
|
|
551
551
|
```
|
|
552
552
|
|
|
553
|
-
#### System
|
|
553
|
+
#### System mode - focus on system guidelines only
|
|
554
554
|
|
|
555
555
|
Evaluates compliance with system behavioral guidelines and constraints:
|
|
556
556
|
|
|
@@ -582,7 +582,7 @@ const result = await scorer.run({
|
|
|
582
582
|
// Evaluates politeness, conciseness, and example provision
|
|
583
583
|
```
|
|
584
584
|
|
|
585
|
-
#### Both
|
|
585
|
+
#### Both mode - combined evaluation (default)
|
|
586
586
|
|
|
587
587
|
Evaluates user intent fulfillment and system compliance together in a single analysis:
|
|
588
588
|
|
|
@@ -201,7 +201,7 @@ if (result.verdict === 'failed') {
|
|
|
201
201
|
}
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
-
### Agent
|
|
204
|
+
### Agent evaluation
|
|
205
205
|
|
|
206
206
|
```typescript
|
|
207
207
|
import { createScorer, runEvals } from '@mastra/core/evals'
|
|
@@ -279,7 +279,7 @@ const result = await runEvals({
|
|
|
279
279
|
})
|
|
280
280
|
```
|
|
281
281
|
|
|
282
|
-
### Workflow
|
|
282
|
+
### Workflow evaluation
|
|
283
283
|
|
|
284
284
|
Resolve the workflow with `mastra.getWorkflow()` so steps that call `mastra.getAgent()` or run child workflows can reach the registry:
|
|
285
285
|
|
|
@@ -96,7 +96,7 @@ The score is 0 when the summary yields no claims or the source yields no questio
|
|
|
96
96
|
|
|
97
97
|
These ranges assume the default `scale` of 1. When using a custom scale, multiply accordingly.
|
|
98
98
|
|
|
99
|
-
- **0.9-1.0**:
|
|
99
|
+
- **0.9-1.0**: Strong summary, faithful to the source and covering its main points
|
|
100
100
|
- **0.7-0.8**: Good summary with a small omission or an unsupported detail
|
|
101
101
|
- **0.4-0.6**: Moderate summary, either missing important information or drifting from the source
|
|
102
102
|
- **0.1-0.3**: Poor summary, most of the source is lost or contradicted
|
|
@@ -44,7 +44,7 @@ The scorer calculates several measures:
|
|
|
44
44
|
- **Length Difference**: Normalized difference in text lengths
|
|
45
45
|
- **Confidence**: Inversely proportional to length difference
|
|
46
46
|
|
|
47
|
-
### Scoring
|
|
47
|
+
### Scoring process
|
|
48
48
|
|
|
49
49
|
1. Analyzes textual differences:
|
|
50
50
|
|
|
@@ -68,7 +68,7 @@ A textual difference score between 0 and 1:
|
|
|
68
68
|
- **0.7 to 0.9**: Minor differences, few changes needed.
|
|
69
69
|
- **0.4 to 0.6**: Moderate differences, noticeable changes required.
|
|
70
70
|
- **0.1 to 0.3**: Major differences, extensive changes needed.
|
|
71
|
-
- **0.0**:
|
|
71
|
+
- **0.0**: Unrelated texts.
|
|
72
72
|
|
|
73
73
|
## Example
|
|
74
74
|
|
|
@@ -43,7 +43,7 @@ This function returns an instance of the MastraScorer class. See the [MastraScor
|
|
|
43
43
|
|
|
44
44
|
The scorer evaluates sentiment consistency through tone pattern analysis and mode-specific scoring.
|
|
45
45
|
|
|
46
|
-
### Scoring
|
|
46
|
+
### Scoring process
|
|
47
47
|
|
|
48
48
|
1. Analyzes tone patterns:
|
|
49
49
|
|
|
@@ -70,7 +70,7 @@ Final score: `mode_specific_score`
|
|
|
70
70
|
- 0.7-0.9: Strong consistency with minor variations
|
|
71
71
|
- 0.4-0.6: Moderate consistency with noticeable shifts
|
|
72
72
|
- 0.1-0.3: Poor consistency with major tone changes
|
|
73
|
-
- 0.0: No consistency -
|
|
73
|
+
- 0.0: No consistency - unrelated tones
|
|
74
74
|
|
|
75
75
|
### `preprocessStepResult`
|
|
76
76
|
|
|
@@ -11,7 +11,7 @@ Mastra provides two tool call accuracy scorers for evaluating whether an LLM sel
|
|
|
11
11
|
|
|
12
12
|
## Choosing between scorers
|
|
13
13
|
|
|
14
|
-
### Use the Code-
|
|
14
|
+
### Use the Code-based scorer when:
|
|
15
15
|
|
|
16
16
|
- You need **deterministic, reproducible** results
|
|
17
17
|
- You want to test **exact tool matching**
|
|
@@ -19,7 +19,7 @@ Mastra provides two tool call accuracy scorers for evaluating whether an LLM sel
|
|
|
19
19
|
- Speed and cost are priorities (no LLM calls)
|
|
20
20
|
- You're running automated tests
|
|
21
21
|
|
|
22
|
-
### Use the LLM-
|
|
22
|
+
### Use the LLM-based scorer when:
|
|
23
23
|
|
|
24
24
|
- You need **semantic understanding** of appropriateness
|
|
25
25
|
- Tool selection depends on **context and intent**
|
|
@@ -41,18 +41,18 @@ The `createToolCallAccuracyScorerCode()` function from `@mastra/evals/scorers/pr
|
|
|
41
41
|
|
|
42
42
|
This function returns an instance of the MastraScorer class. See the [MastraScorer reference](https://mastra.ai/reference/evals/mastra-scorer) for details on the `.run()` method and its input/output.
|
|
43
43
|
|
|
44
|
-
### Evaluation
|
|
44
|
+
### Evaluation modes
|
|
45
45
|
|
|
46
46
|
The code-based scorer operates in two distinct modes:
|
|
47
47
|
|
|
48
|
-
#### Single
|
|
48
|
+
#### Single tool mode
|
|
49
49
|
|
|
50
50
|
When `expectedToolOrder` isn't provided or is empty, the score reflects single tool selection:
|
|
51
51
|
|
|
52
52
|
- **Standard Mode (strictMode: false)**: Returns `1` if the expected tool is called, regardless of other tools
|
|
53
53
|
- **Strict Mode (strictMode: true)**: Returns `1` only if exactly one tool is called and it matches the expected tool
|
|
54
54
|
|
|
55
|
-
#### Order
|
|
55
|
+
#### Order checking mode
|
|
56
56
|
|
|
57
57
|
When a non-empty `expectedToolOrder` is provided, the score reflects the tool calling sequence:
|
|
58
58
|
|
|
@@ -65,7 +65,7 @@ When a non-empty `expectedToolOrder` is provided, the score reflects the tool ca
|
|
|
65
65
|
- **Deterministic**: Same input always produces same output
|
|
66
66
|
- **Fast**: No external API calls
|
|
67
67
|
|
|
68
|
-
### Code-
|
|
68
|
+
### Code-based scorer options
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
// Standard mode - passes if expected tool is called
|
|
@@ -88,7 +88,7 @@ const strictOrderScorer = createCodeScorer({
|
|
|
88
88
|
})
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
### Code-
|
|
91
|
+
### Code-based scorer results
|
|
92
92
|
|
|
93
93
|
```typescript
|
|
94
94
|
{
|
|
@@ -297,7 +297,7 @@ The LLM-based scorer provides:
|
|
|
297
297
|
- **Missing Tool Detection**: Identifies tools that should have been called
|
|
298
298
|
- **Reasoning Generation**: Provides explanations for scoring decisions
|
|
299
299
|
|
|
300
|
-
### Evaluation
|
|
300
|
+
### Evaluation process
|
|
301
301
|
|
|
302
302
|
1. **Extract Tool Calls**: Identifies tools mentioned in agent output
|
|
303
303
|
2. **Analyze Appropriateness**: Evaluates each tool against user request
|
|
@@ -311,7 +311,7 @@ The LLM-based scorer provides:
|
|
|
311
311
|
- **Context-aware**: Considers user intent and appropriateness
|
|
312
312
|
- **Explanatory**: Provides reasoning for scores
|
|
313
313
|
|
|
314
|
-
### LLM-
|
|
314
|
+
### LLM-based scorer options
|
|
315
315
|
|
|
316
316
|
```typescript
|
|
317
317
|
// Basic configuration
|
|
@@ -330,7 +330,7 @@ const customModelScorer = createLLMScorer({
|
|
|
330
330
|
});
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
### LLM-
|
|
333
|
+
### LLM-based scorer results
|
|
334
334
|
|
|
335
335
|
```typescript
|
|
336
336
|
{
|
|
@@ -49,7 +49,7 @@ This function returns an instance of the MastraScorer class. The `.run()` method
|
|
|
49
49
|
|
|
50
50
|
## Scoring details
|
|
51
51
|
|
|
52
|
-
The scorer evaluates toxicity through multiple
|
|
52
|
+
The scorer evaluates toxicity through multiple dimensions:
|
|
53
53
|
|
|
54
54
|
- Personal attacks
|
|
55
55
|
- Mockery or sarcasm
|
|
@@ -57,7 +57,7 @@ The scorer evaluates toxicity through multiple aspects:
|
|
|
57
57
|
- Dismissive statements
|
|
58
58
|
- Threats or intimidation
|
|
59
59
|
|
|
60
|
-
### Scoring
|
|
60
|
+
### Scoring process
|
|
61
61
|
|
|
62
62
|
1. Analyzes toxic elements:
|
|
63
63
|
|
|
@@ -120,7 +120,7 @@ Omit `stepType` entirely to match any step by name only.
|
|
|
120
120
|
|
|
121
121
|
**children** (`TrajectoryExpectation`): Nested expectation config for this step's children. Overrides the parent config for evaluating children of this step.
|
|
122
122
|
|
|
123
|
-
###
|
|
123
|
+
### Expected steps
|
|
124
124
|
|
|
125
125
|
```typescript
|
|
126
126
|
const steps: ExpectedStep[] = [
|
|
@@ -545,7 +545,7 @@ const result = await runEvals({
|
|
|
545
545
|
})
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
### Example:
|
|
548
|
+
### Example: Efficiency and blacklist
|
|
549
549
|
|
|
550
550
|
```typescript
|
|
551
551
|
import { createTrajectoryScorerCode } from '@mastra/evals/scorers/prebuilt'
|
|
@@ -10,7 +10,7 @@ Use this guide to manually build a standalone Mastra server step by step. In mos
|
|
|
10
10
|
|
|
11
11
|
## Instructions
|
|
12
12
|
|
|
13
|
-
If you prefer not to use
|
|
13
|
+
If you prefer not to use the `mastra` CLI, you can set up your project yourself by following the guide below.
|
|
14
14
|
|
|
15
15
|
1. Create a new project and change directory:
|
|
16
16
|
|
|
@@ -160,7 +160,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
160
160
|
})
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
> **Note:**
|
|
163
|
+
> **Note:** The `weatherTool` example is shortened here. You can see the complete weather tool under [Giving an Agent a Tool](https://mastra.ai/docs/agents/tools).
|
|
164
164
|
|
|
165
165
|
5. Create a `weather-agent.ts` file:
|
|
166
166
|
|
|
@@ -21,7 +21,7 @@ const result = await memory.listThreads({
|
|
|
21
21
|
|
|
22
22
|
Use `perPage: false` to retrieve all matching threads at once.
|
|
23
23
|
|
|
24
|
-
> **Warning:** Use pagination, especially for large datasets. Use this option
|
|
24
|
+
> **Warning:** Use pagination, especially for large datasets. Use this option with care.
|
|
25
25
|
|
|
26
26
|
```typescript
|
|
27
27
|
const result = await memory.listThreads({
|
|
@@ -14,7 +14,7 @@ As of `v0.20.0` for `@mastra/core`, the following changes apply.
|
|
|
14
14
|
|
|
15
15
|
## Memory is required
|
|
16
16
|
|
|
17
|
-
- Memory is now required for the agent network to function
|
|
17
|
+
- Memory is now required for the agent network to function.
|
|
18
18
|
|
|
19
19
|
> **Note:** You must configure memory for the agent.
|
|
20
20
|
|
|
@@ -66,13 +66,13 @@ If you were already using a hosted database ("bring your own"), keep the existin
|
|
|
66
66
|
|
|
67
67
|
If you were using Cloud Store, follow the steps below to export your data and load it into a new libSQL database that you control.
|
|
68
68
|
|
|
69
|
-
### Export your
|
|
69
|
+
### Export your cloud store data
|
|
70
70
|
|
|
71
71
|
You can export your Cloud Store data in two ways: download it from the dashboard, or create a manual dump with the Turso CLI.
|
|
72
72
|
|
|
73
73
|
#### Option A: Export from the dashboard (recommended)
|
|
74
74
|
|
|
75
|
-
Open your project in the [Mastra dashboard](https://projects.mastra.ai) and navigate to **Runtime → Settings → Storage**.
|
|
75
|
+
Open your project in the [Mastra dashboard](https://projects.mastra.ai) and navigate to **Runtime → Settings → Storage**. Select **Export Database**. The dashboard generates a full `.sql` dump of your Cloud Store and downloads it directly to your Downloads folder.
|
|
76
76
|
|
|
77
77
|
Once the download completes, convert the dump into a SQLite database file:
|
|
78
78
|
|
|
@@ -294,7 +294,7 @@ mastra deploy --env staging --env-file .env.staging --yes
|
|
|
294
294
|
|
|
295
295
|
Each environment has a dedicated URL and environment variables, along with a separate deploy history.
|
|
296
296
|
|
|
297
|
-
## Deploy
|
|
297
|
+
## Deploy server (optional)
|
|
298
298
|
|
|
299
299
|
If you need a production API endpoint, deploy a Server:
|
|
300
300
|
|
|
@@ -378,7 +378,7 @@ jobs:
|
|
|
378
378
|
MASTRA_PROJECT_ID: ${{ secrets.MASTRA_PROJECT_ID }}
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
## Decommission old
|
|
381
|
+
## Decommission old cloud project
|
|
382
382
|
|
|
383
383
|
Update any clients pointing to your old Mastra Cloud URL to the new Server or Studio URL. Verify traces appear in the new platform by checking the [Studio observability dashboard](https://mastra.ai/docs/studio/observability). Delete your old Mastra Cloud project once everything is confirmed working.
|
|
384
384
|
|
|
@@ -162,7 +162,7 @@ servers: {
|
|
|
162
162
|
},
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
### OAuth clients are pre-registered or use a
|
|
165
|
+
### OAuth clients are pre-registered or use a client ID metadata document
|
|
166
166
|
|
|
167
167
|
`MCPOAuthClientProvider` no longer registers clients dynamically. Pass either `clientInformation` for a client you registered with the authorization server, or `clientMetadataUrl` (SEP-991) so the server fetches your client metadata from an HTTPS URL. Constructing the provider with neither throws, and no request is ever sent to a `registration_endpoint`.
|
|
168
168
|
|
|
@@ -23,7 +23,7 @@ If you have scripts or tools that consume the OpenAPI spec, update the URL:
|
|
|
23
23
|
|
|
24
24
|
The `CloudflareDeployer` constructor now accepts standard `wrangler.json` property names instead of custom camelCase variants. This change aligns the deployer with Cloudflare's official configuration format and provides access to all wrangler configuration options.
|
|
25
25
|
|
|
26
|
-
Deprecated fields are automatically migrated at runtime with console warnings, but
|
|
26
|
+
Deprecated fields are automatically migrated at runtime with console warnings, but update your code to use the new field names.
|
|
27
27
|
|
|
28
28
|
```diff
|
|
29
29
|
const deployer = new CloudflareDeployer({
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
# Upgrade to Mastra v1
|
|
6
6
|
|
|
7
|
-
> **Update to latest 0.x version:** Before upgrading to v1,
|
|
7
|
+
> **Update to latest 0.x version:** Before upgrading to v1, ensure you've updated to the latest 0.x version of Mastra. Follow the [upgrade to latest 0.x guide](https://mastra.ai/guides/v0/migrations/upgrade-to-latest-0x) first, then return here to complete the v1 migration.
|
|
8
8
|
|
|
9
|
-
Mastra v1 was released in January 2026.
|
|
9
|
+
Mastra v1 was released in January 2026. Start new projects on Mastra v1, or upgrading your existing project to continue receiving updates and support.
|
|
10
10
|
|
|
11
11
|
This guide covers the breaking changes when upgrading from Mastra 0.x to v1.0. The migration is organized by package and feature area to help you systematically update your codebase.
|
|
12
12
|
|
|
13
|
-
> **Need help?:** Need help with the migration? Join
|
|
13
|
+
> **Need help?:** Need help with the migration? Join the [Discord community](https://discord.gg/mastra-ai) to ask questions.
|
|
14
14
|
|
|
15
15
|
> **Coming from Mastra Cloud?:** The legacy Mastra Cloud product has been replaced by the [Mastra platform](https://mastra.ai/docs/mastra-platform/overview), which splits hosting into two separate products: **Studio** (visual environment, observability) and **Server** (production API). Because old Mastra Cloud access tokens don't work with Mastra platform, create new ones with `mastra auth tokens create`.
|
|
16
16
|
>
|
|
@@ -58,7 +58,7 @@ Mastra v1 requires Node.js **22.13.0** or higher. Update your development and pr
|
|
|
58
58
|
|
|
59
59
|
Work through the [migration checklist](#migration-checklist) below to update your codebase. Each item links to a detailed guide for that specific change.
|
|
60
60
|
|
|
61
|
-
> **Codemods:**
|
|
61
|
+
> **Codemods:** Automated [codemods](https://github.com/mastra-ai/mastra/tree/main/packages/codemod) are available for you. If you want, you can run all v1 codemods at once:
|
|
62
62
|
>
|
|
63
63
|
> ```bash
|
|
64
64
|
> npx @mastra/codemod@latest v1
|
|
@@ -88,7 +88,7 @@ Work through the [migration checklist](#migration-checklist) below to update you
|
|
|
88
88
|
|
|
89
89
|
Work through this checklist in order, starting with high-impact changes that affect most applications.
|
|
90
90
|
|
|
91
|
-
> **Codemods:**
|
|
91
|
+
> **Codemods:** Automated [codemods](https://github.com/mastra-ai/mastra/tree/main/packages/codemod) are available for you. Throughout the migration guide you'll find instructions on how to use them for specific changes.
|
|
92
92
|
>
|
|
93
93
|
> If you want, you can run all v1 codemods at once:
|
|
94
94
|
>
|
|
@@ -96,7 +96,7 @@ Work through this checklist in order, starting with high-impact changes that aff
|
|
|
96
96
|
> npx @mastra/codemod@latest v1
|
|
97
97
|
> ```
|
|
98
98
|
|
|
99
|
-
### High
|
|
99
|
+
### High impact changes
|
|
100
100
|
|
|
101
101
|
- Update `createTool` tool signatures to `(inputData, context)` format - [Tools](https://mastra.ai/reference/migrations/upgrade-to-v1/tools)
|
|
102
102
|
- Restructure `@mastra/core` imports to use subpath imports - [Mastra Class](https://mastra.ai/reference/migrations/upgrade-to-v1/mastra)
|
|
@@ -104,7 +104,7 @@ Work through this checklist in order, starting with high-impact changes that aff
|
|
|
104
104
|
- Install `@mastra/observability` and wrap configuration with `new Observability()` - [Tracing](https://mastra.ai/reference/migrations/upgrade-to-v1/tracing)
|
|
105
105
|
- Migrate from `telemetry:` to `observability:` configuration (if upgrading from 0.x OTEL) - [Tracing](https://mastra.ai/reference/migrations/upgrade-to-v1/tracing)
|
|
106
106
|
|
|
107
|
-
### Medium
|
|
107
|
+
### Medium impact changes
|
|
108
108
|
|
|
109
109
|
- Rename `RuntimeContext` to `RequestContext` throughout codebase - [Agent Class](https://mastra.ai/reference/migrations/upgrade-to-v1/agent), [Tools](https://mastra.ai/reference/migrations/upgrade-to-v1/tools), [Workflows](https://mastra.ai/reference/migrations/upgrade-to-v1/workflows)
|
|
110
110
|
- Update storage methods from `get*` to `list*` pattern - [Storage](https://mastra.ai/reference/migrations/upgrade-to-v1/storage)
|
|
@@ -115,7 +115,7 @@ Work through this checklist in order, starting with high-impact changes that aff
|
|
|
115
115
|
- Update voice methods to use `agent.voice` namespace - [Agent Class](https://mastra.ai/reference/migrations/upgrade-to-v1/agent)
|
|
116
116
|
- Rename configuration property `processors` to `spanOutputProcessors` (if using custom processors) - [Tracing](https://mastra.ai/reference/migrations/upgrade-to-v1/tracing)
|
|
117
117
|
|
|
118
|
-
### Low-
|
|
118
|
+
### Low-impact changes
|
|
119
119
|
|
|
120
120
|
- Rename `keepSeparator` to `separatorPosition` in chunk options - [RAG](https://mastra.ai/reference/migrations/upgrade-to-v1/rag)
|
|
121
121
|
- Rename `createRunAsync` to `createRun` - [Workflows](https://mastra.ai/reference/migrations/upgrade-to-v1/workflows)
|