@mastra/mcp-docs-server 1.3.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 -5
- 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 +7 -7
- package/.docs/docs/agents/processors.md +66 -20
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/tools.md +10 -10
- 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 +8 -8
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/experiments.md +2 -2
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/overview.md +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 +2 -2
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +7 -7
- package/.docs/docs/harness/background-tasks.md +3 -3
- package/.docs/docs/harness/durable-agents.md +5 -5
- package/.docs/docs/harness/goals.md +5 -5
- package/.docs/docs/harness/overview.md +2 -2
- package/.docs/docs/harness/schedules.md +5 -5
- package/.docs/docs/index.md +6 -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/observability.md +1 -1
- package/.docs/docs/memory/memory-processors.md +7 -7
- 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 +2 -2
- package/.docs/docs/memory/working-memory.md +2 -2
- package/.docs/docs/observability/logging.md +5 -5
- package/.docs/docs/observability/tracing/overview.md +1 -0
- package/.docs/docs/sandbox/filesystem.md +1 -0
- 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/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/editor.md +39 -23
- package/.docs/docs/subagents.md +6 -6
- 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/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 +4 -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/environment-variables.md +0 -2
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +2 -14
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +3 -2
- package/.docs/models/gateways/vercel.md +3 -4
- package/.docs/models/index.md +13 -15
- 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/aki-io.md +5 -6
- package/.docs/models/providers/alibaba-cn.md +2 -2
- package/.docs/models/providers/alibaba.md +2 -2
- package/.docs/models/providers/ambient.md +1 -1
- package/.docs/models/providers/auriko.md +2 -2
- package/.docs/models/providers/baseten.md +4 -4
- 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/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 +1 -3
- package/.docs/models/providers/crusoe.md +1 -7
- package/.docs/models/providers/daoxe.md +1 -1
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/digitalocean.md +6 -10
- package/.docs/models/providers/dinference.md +0 -3
- package/.docs/models/providers/edenai.md +12 -2
- package/.docs/models/providers/empiriolabs.md +0 -1
- 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 +28 -23
- package/.docs/models/providers/friendli.md +4 -5
- package/.docs/models/providers/frogbot.md +2 -7
- package/.docs/models/providers/google.md +2 -5
- package/.docs/models/providers/greenpt.md +14 -20
- package/.docs/models/providers/groq.md +1 -1
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/iflowcn.md +2 -18
- package/.docs/models/providers/impossibl.md +2 -9
- 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 +3 -3
- package/.docs/models/providers/jalapeno.md +14 -19
- package/.docs/models/providers/jiekou.md +53 -63
- package/.docs/models/providers/kenari.md +34 -53
- package/.docs/models/providers/kilo.md +11 -10
- package/.docs/models/providers/lilac.md +2 -8
- package/.docs/models/providers/llama.md +2 -11
- package/.docs/models/providers/llmgateway-providers.md +8 -16
- package/.docs/models/providers/llmgateway.md +9 -8
- package/.docs/models/providers/llmtr.md +1 -6
- 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 +2 -7
- package/.docs/models/providers/mistral.md +4 -3
- package/.docs/models/providers/moark.md +0 -2
- package/.docs/models/providers/nan.md +1 -1
- package/.docs/models/providers/nano-gpt.md +13 -7
- package/.docs/models/providers/nearai.md +2 -1
- 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 +1 -1
- package/.docs/models/providers/ollama-cloud.md +2 -2
- package/.docs/models/providers/opencode-go.md +2 -3
- package/.docs/models/providers/opencode.md +85 -88
- 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 +2 -12
- package/.docs/models/providers/pioneer.md +7 -7
- 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/runinfra.md +1 -4
- package/.docs/models/providers/sarvam.md +1 -2
- package/.docs/models/providers/scaleway.md +12 -11
- package/.docs/models/providers/siliconflow-cn.md +35 -41
- package/.docs/models/providers/siliconflow.md +3 -6
- package/.docs/models/providers/stackit.md +2 -4
- package/.docs/models/providers/stepfun-ai.md +4 -4
- package/.docs/models/providers/stepfun.md +4 -4
- package/.docs/models/providers/submodel.md +1 -1
- package/.docs/models/providers/synthetic.md +0 -4
- 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/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/xai.md +19 -3
- package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -4
- package/.docs/models/providers/xiaomi.md +4 -4
- package/.docs/models/providers/xpersona.md +0 -1
- package/.docs/models/providers/zenmux.md +105 -125
- package/.docs/models/providers.md +0 -2
- 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 +1 -1
- package/.docs/reference/agent-controller/session.md +5 -5
- package/.docs/reference/agents/agent.md +22 -46
- package/.docs/reference/agents/channels.md +10 -8
- package/.docs/reference/agents/durable-agent.md +2 -2
- 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/inngest-agent.md +1 -1
- 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 +1 -1
- 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 +1 -1
- package/.docs/reference/client-js/agents.md +1 -1
- package/.docs/reference/client-js/observability.md +26 -1
- 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 +3 -3
- package/.docs/reference/connect/credential.md +1 -1
- package/.docs/reference/connect/tools.md +1 -3
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +1 -1
- package/.docs/reference/editor/mastra-editor.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/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/schedules.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +4 -4
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -1
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/memory-class.md +3 -3
- package/.docs/reference/memory/observational-memory.md +16 -16
- 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 +92 -11
- 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 +66 -10
- 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/signals/create-notification-inbox-tool.md +4 -4
- package/.docs/reference/signals/notifications.md +249 -0
- package/.docs/reference/signals/task-signal-provider.md +2 -2
- package/.docs/reference/signals/thread-events.md +69 -0
- package/.docs/reference/streaming/ChunkType.md +68 -0
- package/.docs/reference/streaming/agents/stream.md +2 -2
- 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 +202 -11
- package/.docs/reference/tools/mcp-server.md +5 -3
- 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/workspace/local-filesystem.md +1 -1
- 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 +21 -2
- package/.docs/reference/workspace/process-manager.md +13 -2
- package/package.json +7 -7
- package/.docs/docs/guides/mcp-events.md +0 -306
- package/.docs/docs/harness/signal-providers.md +0 -212
- package/.docs/docs/harness/signals.md +0 -546
- package/.docs/docs/mastra-platform/connect/end-user-connections.md +0 -116
- package/.docs/reference/connect/user-connect-routes.md +0 -68
|
@@ -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
|
|
|
@@ -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
|
```
|
|
@@ -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
|
@@ -93,7 +93,6 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
93
93
|
- [credential()](https://mastra.ai/reference/connect/credential)
|
|
94
94
|
- [Provider toolsets](https://mastra.ai/reference/connect/providers)
|
|
95
95
|
- [tools()](https://mastra.ai/reference/connect/tools)
|
|
96
|
-
- [userConnectRoutes()](https://mastra.ai/reference/connect/user-connect-routes)
|
|
97
96
|
- [Mastra Class](https://mastra.ai/reference/core/mastra-class)
|
|
98
97
|
- [MastraModelGateway](https://mastra.ai/reference/core/mastra-model-gateway)
|
|
99
98
|
- [.addDynamicWorkflow()](https://mastra.ai/reference/core/addDynamicWorkflow)
|
|
@@ -336,8 +335,10 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
336
335
|
- [Server Routes](https://mastra.ai/reference/server/routes)
|
|
337
336
|
- [TanStack Start Adapter](https://mastra.ai/reference/server/tanstack-start-adapter)
|
|
338
337
|
- [createNotificationInboxTool()](https://mastra.ai/reference/signals/create-notification-inbox-tool)
|
|
338
|
+
- [Notifications](https://mastra.ai/reference/signals/notifications)
|
|
339
339
|
- [SignalProvider](https://mastra.ai/reference/signals/signal-provider)
|
|
340
340
|
- [TaskSignalProvider](https://mastra.ai/reference/signals/task-signal-provider)
|
|
341
|
+
- [Thread events](https://mastra.ai/reference/signals/thread-events)
|
|
341
342
|
- [WebhookSignalProvider](https://mastra.ai/reference/signals/webhook-signal-provider)
|
|
342
343
|
- [Overview](https://mastra.ai/reference/storage/overview)
|
|
343
344
|
- [Composite Storage](https://mastra.ai/reference/storage/composite)
|
|
@@ -168,7 +168,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
168
168
|
mkdir -p src/mastra/agents && touch src/mastra/agents/weather-agent.ts
|
|
169
169
|
```
|
|
170
170
|
|
|
171
|
-
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.
|
|
172
172
|
|
|
173
173
|
Add the following code:
|
|
174
174
|
|
|
@@ -191,7 +191,7 @@ If you prefer not to use our automatic CLI tool, you can set up your project you
|
|
|
191
191
|
|
|
192
192
|
Use the weatherTool to fetch current weather data.
|
|
193
193
|
`,
|
|
194
|
-
model: 'google/gemini-
|
|
194
|
+
model: 'google/gemini-3.8-flash',
|
|
195
195
|
tools: { weatherTool },
|
|
196
196
|
})
|
|
197
197
|
```
|
|
@@ -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: {
|
|
@@ -71,7 +71,7 @@ import { LibSQLStore, LibSQLVector } from '@mastra/libsql'
|
|
|
71
71
|
export const agent = new Agent({
|
|
72
72
|
name: 'test-agent',
|
|
73
73
|
instructions: 'You are an agent with memory.',
|
|
74
|
-
model: 'openai/gpt-
|
|
74
|
+
model: 'openai/gpt-6.1-sol',
|
|
75
75
|
memory: new Memory({
|
|
76
76
|
storage: new LibSQLStore({
|
|
77
77
|
id: 'test-agent-storage',
|
|
@@ -108,7 +108,7 @@ import { PostgresStore, PgVector } from '@mastra/pg'
|
|
|
108
108
|
export const agent = new Agent({
|
|
109
109
|
name: 'pg-agent',
|
|
110
110
|
instructions: 'You are an agent with optimized PostgreSQL memory.',
|
|
111
|
-
model: 'openai/gpt-
|
|
111
|
+
model: 'openai/gpt-6.1-sol',
|
|
112
112
|
memory: new Memory({
|
|
113
113
|
storage: new PostgresStore({
|
|
114
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
|
},
|
|
@@ -16,7 +16,7 @@ Use this when you already have the messages in hand and want explicit control ov
|
|
|
16
16
|
import { summarizeConversation } from '@mastra/memory'
|
|
17
17
|
|
|
18
18
|
const result = await summarizeConversation({
|
|
19
|
-
model: 'openai/gpt-
|
|
19
|
+
model: 'openai/gpt-6-luna',
|
|
20
20
|
messages,
|
|
21
21
|
instructions: 'Summarize this voicemail call for the business owner.',
|
|
22
22
|
})
|
|
@@ -24,7 +24,7 @@ const result = await summarizeConversation({
|
|
|
24
24
|
|
|
25
25
|
## Parameters
|
|
26
26
|
|
|
27
|
-
**model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\
|
|
27
|
+
**model** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_'. Pass an array of { model, maxRetries } entries to fall back to the next model when one fails.
|
|
28
28
|
|
|
29
29
|
**messages** (`MastraDBMessage[]`): The conversation to summarize. When empty, the function returns an empty result without calling the model.
|
|
30
30
|
|
|
@@ -80,7 +80,7 @@ const sessionSummary = new Extractor({
|
|
|
80
80
|
|
|
81
81
|
export async function onSessionEnd(messages: MastraDBMessage[]) {
|
|
82
82
|
const { summary, extracted, extractionFailures } = await summarizeConversation({
|
|
83
|
-
model: 'openai/gpt-
|
|
83
|
+
model: 'openai/gpt-6-luna',
|
|
84
84
|
messages,
|
|
85
85
|
instructions: 'Summarize this support session for the account manager.',
|
|
86
86
|
extract: [sessionSummary],
|
|
@@ -16,7 +16,7 @@ Use this when a session ends and you want a summary or structured extraction of
|
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
const result = await memory.summarizeThread({
|
|
19
|
-
model: 'openai/gpt-
|
|
19
|
+
model: 'openai/gpt-6-luna',
|
|
20
20
|
threadId: 'thread-123',
|
|
21
21
|
instructions: 'Summarize this voicemail call for the business owner.',
|
|
22
22
|
})
|
|
@@ -26,7 +26,7 @@ const result = await memory.summarizeThread({
|
|
|
26
26
|
|
|
27
27
|
**threadId** (`string`): The unique identifier of the thread to summarize.
|
|
28
28
|
|
|
29
|
-
**model** (`string | LanguageModel | DynamicModel`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\
|
|
29
|
+
**model** (`string | LanguageModel | DynamicModel`): Model that runs the summarization, such as a router string like '\_\_GATEWAY\_OPENAI\_MODEL\_LUNA\_\_'.
|
|
30
30
|
|
|
31
31
|
**resourceId** (`string`): ID of the resource that owns the thread. If provided, validates thread ownership. Also passed to extractor contexts.
|
|
32
32
|
|
|
@@ -78,7 +78,7 @@ const callSummary = new Extractor({
|
|
|
78
78
|
|
|
79
79
|
export async function onCallEnd(threadId: string, resourceId: string) {
|
|
80
80
|
await memory.summarizeThread({
|
|
81
|
-
model: 'openai/gpt-
|
|
81
|
+
model: 'openai/gpt-6-luna',
|
|
82
82
|
threadId,
|
|
83
83
|
resourceId,
|
|
84
84
|
instructions: 'Summarize this voicemail call for the business owner.',
|
|
@@ -31,7 +31,7 @@ const agent = new AgentNetwork({
|
|
|
31
31
|
name: 'agent-network',
|
|
32
32
|
agents: [agent1, agent2],
|
|
33
33
|
tools: { tool1, tool2 },
|
|
34
|
-
model: 'openai/gpt-
|
|
34
|
+
model: 'openai/gpt-6.1-sol',
|
|
35
35
|
instructions: 'You are a network agent that can help users with a variety of tasks.',
|
|
36
36
|
})
|
|
37
37
|
|
|
@@ -51,7 +51,7 @@ const agent = new Agent({
|
|
|
51
51
|
name: 'agent-network',
|
|
52
52
|
agents: { agent1, agent2 },
|
|
53
53
|
tools: { tool1, tool2 },
|
|
54
|
-
model: 'openai/gpt-
|
|
54
|
+
model: 'openai/gpt-6.1-sol',
|
|
55
55
|
instructions: 'You are a network agent that can help users with a variety of tasks.',
|
|
56
56
|
memory,
|
|
57
57
|
})
|
|
@@ -72,7 +72,7 @@ const agent = new NewAgentNetwork({
|
|
|
72
72
|
agents: { agent1, agent2 },
|
|
73
73
|
workflows: { workflow1 },
|
|
74
74
|
tools: { tool1, tool2 },
|
|
75
|
-
model: 'openai/gpt-
|
|
75
|
+
model: 'openai/gpt-6.1-sol',
|
|
76
76
|
instructions: 'You are a network agent that can help users with a variety of tasks.',
|
|
77
77
|
})
|
|
78
78
|
|
|
@@ -93,7 +93,7 @@ const agent = new Agent({
|
|
|
93
93
|
agents: { agent1, agent2 },
|
|
94
94
|
workflows: { workflow1 },
|
|
95
95
|
tools: { tool1, tool2 },
|
|
96
|
-
model: 'openai/gpt-
|
|
96
|
+
model: 'openai/gpt-6.1-sol',
|
|
97
97
|
instructions: 'You are a network agent that can help users with a variety of tasks.',
|
|
98
98
|
memory,
|
|
99
99
|
})
|
|
@@ -204,7 +204,7 @@ await server.startHTTP({
|
|
|
204
204
|
|
|
205
205
|
### Server `protocolVersion` option
|
|
206
206
|
|
|
207
|
-
Servers accepted `protocolVersion` (`'2025-11-25'`, `'2026-07-28'` or `'auto'`). Only `2026-07-28` is served now, exposed as the `MCP_PROTOCOL_VERSION` constant. Remove the option; a client that doesn't offer `2026-07-28` fails with an explicit negotiation error instead of a downgrade.
|
|
207
|
+
Servers accepted `protocolVersion` (`'2025-11-25'`, `'2026-07-28'` or `'auto'`). Only `2026-07-28` is served now, exposed as the `MCP_PROTOCOL_VERSION` constant. Remove the option; a client that doesn't offer `2026-07-28` fails with an explicit negotiation error instead of a downgrade. To keep serving clients that still open with `initialize` over HTTP, set `legacy: 'stateless'` on the server. Each of their requests is then answered without a session.
|
|
208
208
|
|
|
209
209
|
```diff
|
|
210
210
|
const server = new MCPServer({
|