@mastra/mcp-docs-server 1.3.2-alpha.13 → 1.3.2-alpha.15
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 +1 -1
- package/.docs/docs/agents/processors.md +3 -3
- package/.docs/docs/agents/tools.md +1 -1
- package/.docs/docs/connections/acp.md +3 -3
- package/.docs/docs/connections/mcp.md +1 -1
- package/.docs/docs/deployment/workers.md +7 -2
- package/.docs/docs/develop.md +4 -4
- package/.docs/docs/evals/datasets.md +1 -1
- package/.docs/docs/evals/experiments.md +4 -4
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/vitest-integration.md +1 -1
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/harness/background-tasks.md +2 -2
- package/.docs/docs/harness/goals.md +27 -4
- package/.docs/docs/harness/schedules.md +1 -1
- package/.docs/docs/harness/signals.md +2 -2
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/environments.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/mastra-platform/workspaces.md +1 -1
- package/.docs/docs/memory/observational-memory.md +3 -3
- package/.docs/docs/memory/overview.md +1 -1
- package/.docs/docs/sandbox/skills.md +1 -1
- package/.docs/docs/server/pubsub.md +1 -1
- package/.docs/docs/server/server-adapters.md +1 -1
- package/.docs/docs/studio/auth.md +1 -1
- package/.docs/docs/workflows/dynamic-workflows.md +1 -1
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +11 -7
- package/.docs/integrations/frameworks/nestjs.md +34 -1
- package/.docs/models/index.md +212 -2
- package/.docs/models/providers/edenai.md +3 -1
- package/.docs/models/providers/kilo.md +13 -13
- package/.docs/models/providers/llmgateway-providers.md +1 -3
- package/.docs/models/providers/nano-gpt.md +1 -6
- package/.docs/models/providers/pioneer.md +3 -1
- package/.docs/reference/client-js/agent-controller.md +1 -1
- package/.docs/reference/datasets/finalizeExperiment.md +1 -1
- package/.docs/reference/file-based-agents/logger.md +1 -1
- package/.docs/reference/file-based-agents/schedules.md +3 -3
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +1 -1
- package/.docs/reference/observability/tracing/trace-query.md +37 -16
- package/.docs/reference/processors/model-selection-processor.md +1 -1
- package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
- package/.docs/reference/pubsub/redis-streams.md +3 -3
- package/.docs/reference/rag/graph-rag.md +1 -1
- package/.docs/reference/storage/retention.md +1 -1
- package/.docs/reference/workers/overview.md +3 -1
- package/.docs/reference/workflows/workflow.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +1 -1
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +1 -1
- package/package.json +4 -4
|
@@ -86,6 +86,39 @@ This creates a `src/mastra` folder with an example weather agent and the followi
|
|
|
86
86
|
|
|
87
87
|
You'll pass the `src/mastra/index.ts` file to the NestJS adapter in the next step.
|
|
88
88
|
|
|
89
|
+
## Update the generated files for your module system
|
|
90
|
+
|
|
91
|
+
The files that `mastra init` generates need one change to compile in a NestJS project. Check the `type` field in your `package.json`. NestJS CLI v12 creates ECMAScript module (ESM) projects with `"type": "module"`. Earlier versions of the CLI create CommonJS projects.
|
|
92
|
+
|
|
93
|
+
**ESM**:
|
|
94
|
+
|
|
95
|
+
ESM projects use `"moduleResolution": "nodenext"`, which requires file extensions on relative imports. Add `.js` to every relative import in the generated files, for example:
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
import { weatherWorkflow } from './workflows/weather-workflow.js'
|
|
99
|
+
import { weatherAgent } from './agents/weather-agent.js'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import { weatherTool } from '../tools/weather-tool.js'
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**CommonJS**:
|
|
107
|
+
|
|
108
|
+
CommonJS doesn't support top-level `await`. Open `src/mastra/index.ts` and remove the `DuckDBStore` import and the `domains` option of `MastraCompositeStore`:
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
import { DuckDBStore } from '@mastra/duckdb'
|
|
112
|
+
|
|
113
|
+
// ...
|
|
114
|
+
|
|
115
|
+
domains: {
|
|
116
|
+
observability: await new DuckDBStore().getStore('observability'),
|
|
117
|
+
},
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Observability data is then stored in the default LibSQL storage.
|
|
121
|
+
|
|
89
122
|
## Add server adapter
|
|
90
123
|
|
|
91
124
|
Install the NestJS server adapter package:
|
|
@@ -119,7 +152,7 @@ Open `src/app.module.ts` and register `MastraModule`:
|
|
|
119
152
|
```typescript
|
|
120
153
|
import { Module } from '@nestjs/common'
|
|
121
154
|
import { MastraModule } from '@mastra/nestjs'
|
|
122
|
-
import { mastra } from './mastra'
|
|
155
|
+
import { mastra } from './mastra/index.js'
|
|
123
156
|
|
|
124
157
|
@Module({
|
|
125
158
|
imports: [
|
package/.docs/models/index.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Model Providers
|
|
6
6
|
|
|
7
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
7
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 7670 models from 212 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -363,4 +363,214 @@ const agent = new Agent({
|
|
|
363
363
|
})
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
You can use an AI SDK model (e.g. `groq('gemma2-9b-it')`) anywhere that accepts a `"provider/model"` string, including within model router fallbacks and [scorers](https://mastra.ai/docs/evals/overview).
|
|
366
|
+
You can use an AI SDK model (e.g. `groq('gemma2-9b-it')`) anywhere that accepts a `"provider/model"` string, including within model router fallbacks and [scorers](https://mastra.ai/docs/evals/overview).
|
|
367
|
+
|
|
368
|
+
## All providers
|
|
369
|
+
|
|
370
|
+
Every provider below works with the model router as `provider/model`. Read the provider page for its environment variable, setup, and model list.
|
|
371
|
+
|
|
372
|
+
- [OpenAI](https://mastra.ai/models/providers/openai)
|
|
373
|
+
- [Anthropic](https://mastra.ai/models/providers/anthropic)
|
|
374
|
+
- [Google](https://mastra.ai/models/providers/google)
|
|
375
|
+
- [DeepSeek](https://mastra.ai/models/providers/deepseek)
|
|
376
|
+
- [Groq](https://mastra.ai/models/providers/groq)
|
|
377
|
+
- [Mistral](https://mastra.ai/models/providers/mistral)
|
|
378
|
+
- [xAI](https://mastra.ai/models/providers/xai)
|
|
379
|
+
- [302.AI](https://mastra.ai/models/providers/302ai)
|
|
380
|
+
- [Abacus](https://mastra.ai/models/providers/abacus)
|
|
381
|
+
- [abliteration.ai](https://mastra.ai/models/providers/abliteration-ai)
|
|
382
|
+
- [above.dev](https://mastra.ai/models/providers/above)
|
|
383
|
+
- [AgentRouter](https://mastra.ai/models/providers/agentrouter)
|
|
384
|
+
- [Agnes AI](https://mastra.ai/models/providers/agnes)
|
|
385
|
+
- [AI-ROUTER](https://mastra.ai/models/providers/ai-router)
|
|
386
|
+
- [ai&](https://mastra.ai/models/providers/aiand)
|
|
387
|
+
- [AI21 Labs](https://mastra.ai/models/providers/ai21)
|
|
388
|
+
- [ainetcafe](https://mastra.ai/models/providers/ainetcafe)
|
|
389
|
+
- [Aixy](https://mastra.ai/models/providers/aixy)
|
|
390
|
+
- [AKI.IO](https://mastra.ai/models/providers/aki-io)
|
|
391
|
+
- [Alibaba](https://mastra.ai/models/providers/alibaba)
|
|
392
|
+
- [Alibaba (China)](https://mastra.ai/models/providers/alibaba-cn)
|
|
393
|
+
- [Alibaba Coding Plan](https://mastra.ai/models/providers/alibaba-coding-plan)
|
|
394
|
+
- [Alibaba Coding Plan (China)](https://mastra.ai/models/providers/alibaba-coding-plan-cn)
|
|
395
|
+
- [Alibaba Token Plan](https://mastra.ai/models/providers/alibaba-token-plan)
|
|
396
|
+
- [Alibaba Token Plan (China)](https://mastra.ai/models/providers/alibaba-token-plan-cn)
|
|
397
|
+
- [Ambient](https://mastra.ai/models/providers/ambient)
|
|
398
|
+
- [AMD](https://mastra.ai/models/providers/amd)
|
|
399
|
+
- [AnyAPI](https://mastra.ai/models/providers/anyapi)
|
|
400
|
+
- [Arcee](https://mastra.ai/models/providers/arcee)
|
|
401
|
+
- [Atomic Chat](https://mastra.ai/models/providers/atomic-chat)
|
|
402
|
+
- [Auriko](https://mastra.ai/models/providers/auriko)
|
|
403
|
+
- [Bailing](https://mastra.ai/models/providers/bailing)
|
|
404
|
+
- [Baseten](https://mastra.ai/models/providers/baseten)
|
|
405
|
+
- [Bee by HEOSSI](https://mastra.ai/models/providers/bee)
|
|
406
|
+
- [Berget.AI](https://mastra.ai/models/providers/berget)
|
|
407
|
+
- [Blue Claw](https://mastra.ai/models/providers/blueclaw)
|
|
408
|
+
- [Bothub](https://mastra.ai/models/providers/bothub)
|
|
409
|
+
- [Cerebras](https://mastra.ai/models/providers/cerebras)
|
|
410
|
+
- [Charm Hyper](https://mastra.ai/models/providers/hyper)
|
|
411
|
+
- [Chutes](https://mastra.ai/models/providers/chutes)
|
|
412
|
+
- [Clarifai](https://mastra.ai/models/providers/clarifai)
|
|
413
|
+
- [Claudinio](https://mastra.ai/models/providers/claudinio)
|
|
414
|
+
- [ClinePass](https://mastra.ai/models/providers/cline-pass)
|
|
415
|
+
- [CloudFerro Sherlock](https://mastra.ai/models/providers/cloudferro-sherlock)
|
|
416
|
+
- [Cloudflare Workers AI](https://mastra.ai/models/providers/cloudflare-workers-ai)
|
|
417
|
+
- [CoralBricks](https://mastra.ai/models/providers/coralbricks)
|
|
418
|
+
- [CoreWeave](https://mastra.ai/models/providers/wandb)
|
|
419
|
+
- [Cortecs](https://mastra.ai/models/providers/cortecs)
|
|
420
|
+
- [CrofAI](https://mastra.ai/models/providers/crof)
|
|
421
|
+
- [CrossModel](https://mastra.ai/models/providers/crossmodel)
|
|
422
|
+
- [Crusoe](https://mastra.ai/models/providers/crusoe)
|
|
423
|
+
- [D.Run (China)](https://mastra.ai/models/providers/drun)
|
|
424
|
+
- [DaoXE](https://mastra.ai/models/providers/daoxe)
|
|
425
|
+
- [Databricks](https://mastra.ai/models/providers/databricks)
|
|
426
|
+
- [Deep Infra](https://mastra.ai/models/providers/deepinfra)
|
|
427
|
+
- [DevPass (LLM Gateway)](https://mastra.ai/models/providers/llmgateway)
|
|
428
|
+
- [DigitalOcean](https://mastra.ai/models/providers/digitalocean)
|
|
429
|
+
- [DInference](https://mastra.ai/models/providers/dinference)
|
|
430
|
+
- [EBCloud](https://mastra.ai/models/providers/ebcloud)
|
|
431
|
+
- [Echo](https://mastra.ai/models/providers/echo)
|
|
432
|
+
- [Eden AI](https://mastra.ai/models/providers/edenai)
|
|
433
|
+
- [EmpirioLabs AI](https://mastra.ai/models/providers/empiriolabs)
|
|
434
|
+
- [evroc](https://mastra.ai/models/providers/evroc)
|
|
435
|
+
- [FastRouter](https://mastra.ai/models/providers/fastrouter)
|
|
436
|
+
- [Fireworks AI](https://mastra.ai/models/providers/fireworks-ai)
|
|
437
|
+
- [FreeModel](https://mastra.ai/models/providers/freemodel)
|
|
438
|
+
- [Friendli](https://mastra.ai/models/providers/friendli)
|
|
439
|
+
- [FrogBot](https://mastra.ai/models/providers/frogbot)
|
|
440
|
+
- [GMI Cloud](https://mastra.ai/models/providers/gmicloud)
|
|
441
|
+
- [GreenPT](https://mastra.ai/models/providers/greenpt)
|
|
442
|
+
- [Helicone](https://mastra.ai/models/providers/helicone)
|
|
443
|
+
- [Hetzner](https://mastra.ai/models/providers/hetzner)
|
|
444
|
+
- [HPC-AI](https://mastra.ai/models/providers/hpc-ai)
|
|
445
|
+
- [Hugging Face](https://mastra.ai/models/providers/huggingface)
|
|
446
|
+
- [iFlow](https://mastra.ai/models/providers/iflowcn)
|
|
447
|
+
- [Impossibl](https://mastra.ai/models/providers/impossibl)
|
|
448
|
+
- [Inception](https://mastra.ai/models/providers/inception)
|
|
449
|
+
- [Inceptron](https://mastra.ai/models/providers/inceptron)
|
|
450
|
+
- [Inco](https://mastra.ai/models/providers/inco)
|
|
451
|
+
- [Infer by Flow7](https://mastra.ai/models/providers/infer)
|
|
452
|
+
- [Inference](https://mastra.ai/models/providers/inference)
|
|
453
|
+
- [InferX](https://mastra.ai/models/providers/inferx)
|
|
454
|
+
- [Infomaniak](https://mastra.ai/models/providers/infomaniak)
|
|
455
|
+
- [IO.NET](https://mastra.ai/models/providers/io-net)
|
|
456
|
+
- [IteraCompute](https://mastra.ai/models/providers/iteracompute)
|
|
457
|
+
- [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno)
|
|
458
|
+
- [Jiekou.AI](https://mastra.ai/models/providers/jiekou)
|
|
459
|
+
- [Kenari](https://mastra.ai/models/providers/kenari)
|
|
460
|
+
- [Kilo Gateway](https://mastra.ai/models/providers/kilo)
|
|
461
|
+
- [Kimi For Coding (kimi.ai)](https://mastra.ai/models/providers/kimi-code-plan-global)
|
|
462
|
+
- [Kimi For Coding (kimi.com)](https://mastra.ai/models/providers/kimi-code-plan-cn)
|
|
463
|
+
- [klokintegration.se](https://mastra.ai/models/providers/klokintegration)
|
|
464
|
+
- [Kosmik Compute](https://mastra.ai/models/providers/kosmik)
|
|
465
|
+
- [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan)
|
|
466
|
+
- [Lilac](https://mastra.ai/models/providers/lilac)
|
|
467
|
+
- [Llama](https://mastra.ai/models/providers/llama)
|
|
468
|
+
- [LLM Gateway](https://mastra.ai/models/providers/llmgateway-providers)
|
|
469
|
+
- [LLM Tech](https://mastra.ai/models/providers/llmtech)
|
|
470
|
+
- [LLMTR](https://mastra.ai/models/providers/llmtr)
|
|
471
|
+
- [LMStudio](https://mastra.ai/models/providers/lmstudio)
|
|
472
|
+
- [LongCat](https://mastra.ai/models/providers/longcat)
|
|
473
|
+
- [LucidQuery](https://mastra.ai/models/providers/lucidquery)
|
|
474
|
+
- [Lynkr](https://mastra.ai/models/providers/lynkr)
|
|
475
|
+
- [Meganova](https://mastra.ai/models/providers/meganova)
|
|
476
|
+
- [Melious](https://mastra.ai/models/providers/melious)
|
|
477
|
+
- [Meta](https://mastra.ai/models/providers/meta)
|
|
478
|
+
- [MiniMax (minimax.cn)](https://mastra.ai/models/providers/minimax-cn)
|
|
479
|
+
- [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax)
|
|
480
|
+
- [MiniMax Token Plan (minimax.cn)](https://mastra.ai/models/providers/minimax-cn-coding-plan)
|
|
481
|
+
- [MiniMax Token Plan (minimax.io)](https://mastra.ai/models/providers/minimax-coding-plan)
|
|
482
|
+
- [Mixlayer](https://mastra.ai/models/providers/mixlayer)
|
|
483
|
+
- [Moark](https://mastra.ai/models/providers/moark)
|
|
484
|
+
- [Modal](https://mastra.ai/models/providers/modal)
|
|
485
|
+
- [Model Oracle AI](https://mastra.ai/models/providers/model-oracle-ai)
|
|
486
|
+
- [Modelis](https://mastra.ai/models/providers/modelis)
|
|
487
|
+
- [ModelScope](https://mastra.ai/models/providers/modelscope)
|
|
488
|
+
- [Moonshot AI](https://mastra.ai/models/providers/moonshotai)
|
|
489
|
+
- [Moonshot AI (China)](https://mastra.ai/models/providers/moonshotai-cn)
|
|
490
|
+
- [Morph](https://mastra.ai/models/providers/morph)
|
|
491
|
+
- [NaN](https://mastra.ai/models/providers/nan)
|
|
492
|
+
- [NanoGPT](https://mastra.ai/models/providers/nano-gpt)
|
|
493
|
+
- [NEAR AI Cloud](https://mastra.ai/models/providers/nearai)
|
|
494
|
+
- [Nebius Token Factory](https://mastra.ai/models/providers/nebius)
|
|
495
|
+
- [NeoSmith](https://mastra.ai/models/providers/neosmith)
|
|
496
|
+
- [Neuralwatt](https://mastra.ai/models/providers/neuralwatt)
|
|
497
|
+
- [Nova](https://mastra.ai/models/providers/nova)
|
|
498
|
+
- [NovitaAI](https://mastra.ai/models/providers/novita-ai)
|
|
499
|
+
- [Nvidia](https://mastra.ai/models/providers/nvidia)
|
|
500
|
+
- [OCI Generative AI](https://mastra.ai/models/providers/oci)
|
|
501
|
+
- [Ofox](https://mastra.ai/models/providers/ofox)
|
|
502
|
+
- [Ollama Cloud](https://mastra.ai/models/providers/ollama-cloud)
|
|
503
|
+
- [OpenCode Go](https://mastra.ai/models/providers/opencode-go)
|
|
504
|
+
- [OpenCode Zen](https://mastra.ai/models/providers/opencode)
|
|
505
|
+
- [OpenReason](https://mastra.ai/models/providers/openreason)
|
|
506
|
+
- [Opper](https://mastra.ai/models/providers/opper)
|
|
507
|
+
- [OrcaRouter](https://mastra.ai/models/providers/orcarouter)
|
|
508
|
+
- [OVHcloud AI Endpoints](https://mastra.ai/models/providers/ovhcloud)
|
|
509
|
+
- [Pareto Inference](https://mastra.ai/models/providers/pareto)
|
|
510
|
+
- [Pendra](https://mastra.ai/models/providers/pendra)
|
|
511
|
+
- [Perplexity](https://mastra.ai/models/providers/perplexity)
|
|
512
|
+
- [Perplexity Agent](https://mastra.ai/models/providers/perplexity-agent)
|
|
513
|
+
- [Pioneer](https://mastra.ai/models/providers/pioneer)
|
|
514
|
+
- [Poe](https://mastra.ai/models/providers/poe)
|
|
515
|
+
- [Poolside](https://mastra.ai/models/providers/poolside)
|
|
516
|
+
- [Privatemode AI](https://mastra.ai/models/providers/privatemode-ai)
|
|
517
|
+
- [QiHang](https://mastra.ai/models/providers/qihang-ai)
|
|
518
|
+
- [Qiniu](https://mastra.ai/models/providers/qiniu-ai)
|
|
519
|
+
- [Regolo AI](https://mastra.ai/models/providers/regolo-ai)
|
|
520
|
+
- [Requesty](https://mastra.ai/models/providers/requesty)
|
|
521
|
+
- [routing.run](https://mastra.ai/models/providers/routing-run)
|
|
522
|
+
- [RunInfra](https://mastra.ai/models/providers/runinfra)
|
|
523
|
+
- [Sakana AI](https://mastra.ai/models/providers/sakana)
|
|
524
|
+
- [Sarvam AI](https://mastra.ai/models/providers/sarvam)
|
|
525
|
+
- [Scaleway](https://mastra.ai/models/providers/scaleway)
|
|
526
|
+
- [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan)
|
|
527
|
+
- [SCX.ai](https://mastra.ai/models/providers/scx-ai)
|
|
528
|
+
- [SenseNova (China)](https://mastra.ai/models/providers/sensenova)
|
|
529
|
+
- [SiliconFlow](https://mastra.ai/models/providers/siliconflow)
|
|
530
|
+
- [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn)
|
|
531
|
+
- [Snowflake Cortex](https://mastra.ai/models/providers/snowflake-cortex)
|
|
532
|
+
- [STACKIT](https://mastra.ai/models/providers/stackit)
|
|
533
|
+
- [Standard Compute](https://mastra.ai/models/providers/standardcompute)
|
|
534
|
+
- [StepFun (China)](https://mastra.ai/models/providers/stepfun)
|
|
535
|
+
- [StepFun (Global)](https://mastra.ai/models/providers/stepfun-ai)
|
|
536
|
+
- [StepFun Step Plan (China)](https://mastra.ai/models/providers/stepfun-step-plan)
|
|
537
|
+
- [StepFun Step Plan (Global)](https://mastra.ai/models/providers/stepfun-ai-step-plan)
|
|
538
|
+
- [Subconscious](https://mastra.ai/models/providers/subconscious)
|
|
539
|
+
- [submodel](https://mastra.ai/models/providers/submodel)
|
|
540
|
+
- [Synthetic](https://mastra.ai/models/providers/synthetic)
|
|
541
|
+
- [Tempr](https://mastra.ai/models/providers/tempr)
|
|
542
|
+
- [Tencent Coding Plan (China)](https://mastra.ai/models/providers/tencent-coding-plan)
|
|
543
|
+
- [Tencent Token Plan](https://mastra.ai/models/providers/tencent-token-plan)
|
|
544
|
+
- [Tencent TokenHub](https://mastra.ai/models/providers/tencent-tokenhub)
|
|
545
|
+
- [TensorX](https://mastra.ai/models/providers/tensorx)
|
|
546
|
+
- [The Grid AI](https://mastra.ai/models/providers/the-grid-ai)
|
|
547
|
+
- [Thinking Machines](https://mastra.ai/models/providers/thinkingmachines)
|
|
548
|
+
- [Tinfoil](https://mastra.ai/models/providers/tinfoil)
|
|
549
|
+
- [Together AI](https://mastra.ai/models/providers/togetherai)
|
|
550
|
+
- [TokenGo](https://mastra.ai/models/providers/tokengo)
|
|
551
|
+
- [TokenRouter](https://mastra.ai/models/providers/tokenrouter)
|
|
552
|
+
- [TrustedRouter](https://mastra.ai/models/providers/trustedrouter)
|
|
553
|
+
- [Umans AI](https://mastra.ai/models/providers/umans-ai)
|
|
554
|
+
- [Umans AI Coding Plan](https://mastra.ai/models/providers/umans-ai-coding-plan)
|
|
555
|
+
- [UnoRouter](https://mastra.ai/models/providers/unorouter)
|
|
556
|
+
- [Upstage](https://mastra.ai/models/providers/upstage)
|
|
557
|
+
- [Vancine](https://mastra.ai/models/providers/vancine)
|
|
558
|
+
- [Vispark](https://mastra.ai/models/providers/vispark)
|
|
559
|
+
- [Vivgrid](https://mastra.ai/models/providers/vivgrid)
|
|
560
|
+
- [Volcengine Ark](https://mastra.ai/models/providers/volcengine)
|
|
561
|
+
- [Volcengine Ark Coding Plan](https://mastra.ai/models/providers/volcengine-coding-plan)
|
|
562
|
+
- [Vultr](https://mastra.ai/models/providers/vultr)
|
|
563
|
+
- [Wafer](https://mastra.ai/models/providers/wafer.ai)
|
|
564
|
+
- [Wallaby](https://mastra.ai/models/providers/wallaby)
|
|
565
|
+
- [Xiaomi](https://mastra.ai/models/providers/xiaomi)
|
|
566
|
+
- [Xiaomi Token Plan (China)](https://mastra.ai/models/providers/xiaomi-token-plan-cn)
|
|
567
|
+
- [Xiaomi Token Plan (Europe)](https://mastra.ai/models/providers/xiaomi-token-plan-ams)
|
|
568
|
+
- [Xiaomi Token Plan (Singapore)](https://mastra.ai/models/providers/xiaomi-token-plan-sgp)
|
|
569
|
+
- [Xpersona](https://mastra.ai/models/providers/xpersona)
|
|
570
|
+
- [Z.AI](https://mastra.ai/models/providers/zai)
|
|
571
|
+
- [Z.AI Coding Plan](https://mastra.ai/models/providers/zai-coding-plan)
|
|
572
|
+
- [Zeldoc](https://mastra.ai/models/providers/zeldoc)
|
|
573
|
+
- [Zenifra](https://mastra.ai/models/providers/zenifra)
|
|
574
|
+
- [ZenMux](https://mastra.ai/models/providers/zenmux)
|
|
575
|
+
- [Zhipu AI](https://mastra.ai/models/providers/zhipuai)
|
|
576
|
+
- [Zhipu AI Coding Plan](https://mastra.ai/models/providers/zhipuai-coding-plan)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Eden AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 285 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Eden AI documentation](https://docs.edenai.co).
|
|
10
10
|
|
|
@@ -75,6 +75,7 @@ for await (const chunk of stream) {
|
|
|
75
75
|
| `edenai/anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
76
76
|
| `edenai/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
77
77
|
| `edenai/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
78
|
+
| `edenai/anthropic/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
78
79
|
| `edenai/anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
79
80
|
| `edenai/azure/gpt-5.1-codex` | 272K | | | | | | $1 | $10 |
|
|
80
81
|
| `edenai/azure/gpt-5.1-codex-max` | 272K | | | | | | $1 | $10 |
|
|
@@ -136,6 +137,7 @@ for await (const chunk of stream) {
|
|
|
136
137
|
| `edenai/fireworks_ai/accounts/fireworks/models/inkling` | 1.0M | | | | | | $1 | $4 |
|
|
137
138
|
| `edenai/fireworks_ai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
138
139
|
| `edenai/flexai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.06 | $0.18 |
|
|
140
|
+
| `edenai/flexai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.14 | $0.42 |
|
|
139
141
|
| `edenai/flexai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.17 |
|
|
140
142
|
| `edenai/flexai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.10 |
|
|
141
143
|
| `edenai/flexai/Muse-Glimmer-30B` | 131K | | | | | | $0.30 | $1 |
|
|
@@ -42,20 +42,20 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `kilo/~anthropic/claude-haiku-latest` | 200K | | | | | | $1 | $5 |
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
-
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
47
|
-
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $0.60 |
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.10 | $2 |
|
|
47
|
+
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $1 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
50
|
-
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.40 | $10 |
|
|
51
51
|
| `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
|
|
52
52
|
| `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
53
53
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
54
54
|
| `kilo/~openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
|
|
55
55
|
| `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
|
|
56
56
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
57
|
-
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.
|
|
58
|
-
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.
|
|
57
|
+
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.02 | $0.30 |
|
|
58
|
+
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.19 | $4 |
|
|
59
59
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
60
60
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
61
61
|
| `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -104,9 +104,9 @@ for await (const chunk of stream) {
|
|
|
104
104
|
| `kilo/deepseek/deepseek-chat-v3.1` | 164K | | | | | | $0.25 | $0.95 |
|
|
105
105
|
| `kilo/deepseek/deepseek-r1` | 64K | | | | | | $0.70 | $3 |
|
|
106
106
|
| `kilo/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.70 | $3 |
|
|
107
|
-
| `kilo/deepseek/deepseek-v3.1-terminus` |
|
|
107
|
+
| `kilo/deepseek/deepseek-v3.1-terminus` | 131K | | | | | | $0.30 | $1 |
|
|
108
108
|
| `kilo/deepseek/deepseek-v3.2` | 131K | | | | | | $0.28 | $0.42 |
|
|
109
|
-
| `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.
|
|
109
|
+
| `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
|
|
110
110
|
| `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
111
111
|
| `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
112
112
|
| `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.44 | $1 |
|
|
@@ -185,7 +185,7 @@ for await (const chunk of stream) {
|
|
|
185
185
|
| `kilo/minimax/minimax-m2-her` | 66K | | | | | | $0.30 | $1 |
|
|
186
186
|
| `kilo/minimax/minimax-m2.1` | 205K | | | | | | $0.30 | $1 |
|
|
187
187
|
| `kilo/minimax/minimax-m2.5` | 200K | | | | | | $0.30 | $1 |
|
|
188
|
-
| `kilo/minimax/minimax-m2.7` |
|
|
188
|
+
| `kilo/minimax/minimax-m2.7` | 197K | | | | | | $0.30 | $1 |
|
|
189
189
|
| `kilo/minimax/minimax-m3` | 524K | | | | | | $0.30 | $1 |
|
|
190
190
|
| `kilo/mistralai/codestral-2508` | 256K | | | | | | $0.30 | $0.90 |
|
|
191
191
|
| `kilo/mistralai/devstral-2512` | 262K | | | | | | $0.40 | $2 |
|
|
@@ -320,7 +320,7 @@ for await (const chunk of stream) {
|
|
|
320
320
|
| `kilo/qwen/qwen3-235b-a22b-2507` | 262K | | | | | | $0.15 | $0.60 |
|
|
321
321
|
| `kilo/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.23 | $2 |
|
|
322
322
|
| `kilo/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.13 | $0.52 |
|
|
323
|
-
| `kilo/qwen/qwen3-30b-a3b-instruct-2507` |
|
|
323
|
+
| `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 128K | | | | | | $0.13 | $0.52 |
|
|
324
324
|
| `kilo/qwen/qwen3-30b-a3b-thinking-2507` | 82K | | | | | | $0.20 | $2 |
|
|
325
325
|
| `kilo/qwen/qwen3-32b` | 41K | | | | | | $0.08 | $0.28 |
|
|
326
326
|
| `kilo/qwen/qwen3-8b` | 131K | | | | | | $0.12 | $0.46 |
|
|
@@ -357,7 +357,7 @@ for await (const chunk of stream) {
|
|
|
357
357
|
| `kilo/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
358
358
|
| `kilo/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
359
359
|
| `kilo/qwen/qwen3.8-2.4t-a95b` | 1.0M | | | | | | $2 | $6 |
|
|
360
|
-
| `kilo/qwen/qwen3.8-27b` |
|
|
360
|
+
| `kilo/qwen/qwen3.8-27b` | 262K | | | | | | $0.42 | $3 |
|
|
361
361
|
| `kilo/qwen/qwen3.8-27b:free` | 262K | | | | | | — | — |
|
|
362
362
|
| `kilo/qwen/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
363
363
|
| `kilo/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
@@ -387,7 +387,7 @@ for await (const chunk of stream) {
|
|
|
387
387
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
388
388
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
389
389
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
390
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
390
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.13 | $0.53 |
|
|
391
391
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
392
392
|
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
393
393
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
@@ -411,7 +411,7 @@ for await (const chunk of stream) {
|
|
|
411
411
|
| `kilo/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
412
412
|
| `kilo/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
413
413
|
| `kilo/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
414
|
-
| `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.
|
|
414
|
+
| `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.08 | $1 |
|
|
415
415
|
| `kilo/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
416
416
|
| `kilo/xiaomi/mimo-v2.6-pro-ultraspeed` | 1.0M | | | | | | $4 | $9 |
|
|
417
417
|
| `kilo/z-ai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 439 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -201,8 +201,6 @@ for await (const chunk of stream) {
|
|
|
201
201
|
| `llmgateway-providers/deepinfra/inkling` | 524K | | | | | | $0.95 | $4 |
|
|
202
202
|
| `llmgateway-providers/deepinfra/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
|
|
203
203
|
| `llmgateway-providers/deepinfra/ling-3.0-flash-vl` | 131K | | | | | | $0.06 | $0.18 |
|
|
204
|
-
| `llmgateway-providers/deepinfra/mimo-v2.5` | 262K | | | | | | $0.40 | $2 |
|
|
205
|
-
| `llmgateway-providers/deepinfra/mimo-v2.5-pro` | 1.0M | | | | | | $1 | $3 |
|
|
206
204
|
| `llmgateway-providers/deepinfra/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
207
205
|
| `llmgateway-providers/deepinfra/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
208
206
|
| `llmgateway-providers/deepinfra/muse-glimmer-30b` | 131K | | | | | | $0.30 | $1 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 597 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
10
10
|
|
|
@@ -60,11 +60,6 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `nano-gpt/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
61
61
|
| `nano-gpt/anthropic/claude-haiku-4.5:thinking` | 200K | | | | | | $1 | $5 |
|
|
62
62
|
| `nano-gpt/anthropic/claude-haiku-latest` | 200K | | | | | | $1 | $5 |
|
|
63
|
-
| `nano-gpt/anthropic/claude-opus-4` | 200K | | | | | | $15 | $75 |
|
|
64
|
-
| `nano-gpt/anthropic/claude-opus-4:thinking` | 200K | | | | | | $15 | $75 |
|
|
65
|
-
| `nano-gpt/anthropic/claude-opus-4:thinking:1024` | 200K | | | | | | $15 | $75 |
|
|
66
|
-
| `nano-gpt/anthropic/claude-opus-4:thinking:32768` | 200K | | | | | | $15 | $75 |
|
|
67
|
-
| `nano-gpt/anthropic/claude-opus-4:thinking:8192` | 200K | | | | | | $15 | $75 |
|
|
68
63
|
| `nano-gpt/anthropic/claude-opus-4.1` | 200K | | | | | | $15 | $75 |
|
|
69
64
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking` | 200K | | | | | | $15 | $75 |
|
|
70
65
|
| `nano-gpt/anthropic/claude-opus-4.1:thinking:1024` | 200K | | | | | | $15 | $75 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Pioneer
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 116 Pioneer models through Mastra's model router. Authentication is handled automatically using the `PIONEER_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Pioneer documentation](https://agent.pioneer.ai/llms.txt).
|
|
10
10
|
|
|
@@ -59,11 +59,13 @@ for await (const chunk of stream) {
|
|
|
59
59
|
| `pioneer/devstral-small-2` | 256K | | | | | | $0.10 | $0.30 |
|
|
60
60
|
| `pioneer/fastino/gliguard-LLMGuardrails-300M` | 8K | | | | | | $0.15 | $0.15 |
|
|
61
61
|
| `pioneer/fastino/gliguard-PII-multi` | 8K | | | | | | $0.15 | $0.15 |
|
|
62
|
+
| `pioneer/fastino/GLiNER-2.5-Decide` | 8K | | | | | | $0.15 | $0.15 |
|
|
62
63
|
| `pioneer/fastino/gliner2-base-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
63
64
|
| `pioneer/fastino/gliner2-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
64
65
|
| `pioneer/fastino/gliner2-multi-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
65
66
|
| `pioneer/fastino/gliner2-multi-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
66
67
|
| `pioneer/fastino/gliner2-privacy-filter-PII-multi` | 8K | | | | | | $0.15 | $0.15 |
|
|
68
|
+
| `pioneer/fastino/gliner2.5-base-v1` | 4K | | | | | | $0.03 | — |
|
|
67
69
|
| `pioneer/fastino/gliner2.5-multi-v1` | 4K | | | | | | $0.15 | $0.15 |
|
|
68
70
|
| `pioneer/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
69
71
|
| `pioneer/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
@@ -91,7 +91,7 @@ Returns: `Promise<CreateAgentControllerSessionResponse>`
|
|
|
91
91
|
|
|
92
92
|
### `subscribe(options)`
|
|
93
93
|
|
|
94
|
-
Subscribes to the session's event stream over SSE. The promise resolves once the stream is established and rejects when it can't connect
|
|
94
|
+
Subscribes to the session's event stream over SSE. The promise resolves once the stream is established and rejects when it can't connect. A rejected call leaves nothing running in the background. `reconnect` only governs re-establishing a stream that drops after it was established. To retry the initial connection, loop around `subscribe()`.
|
|
95
95
|
|
|
96
96
|
**onEvent** (`(event: AgentControllerEvent) => void`): Called for each event received over the stream. See Events for the event types.
|
|
97
97
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Added in:** `@mastra/core@1.61.0`
|
|
8
8
|
|
|
9
|
-
Finalizes a caller-driven experiment created with [`createExperiment()`](https://mastra.ai/reference/datasets/createExperiment), with or without a target. Mastra computes the final counts server-side from the persisted result rows and marks the experiment `'completed'
|
|
9
|
+
Finalizes a caller-driven experiment created with [`createExperiment()`](https://mastra.ai/reference/datasets/createExperiment), with or without a target. Mastra computes the final counts server-side from the persisted result rows and marks the experiment `'completed'`. The caller never tracks completion bookkeeping.
|
|
10
10
|
|
|
11
11
|
Counts are per item, so `succeededCount + failedCount + skippedCount === totalItems` even when items have multiple attempts:
|
|
12
12
|
|
|
@@ -23,7 +23,7 @@ export default new PinoLogger({
|
|
|
23
23
|
})
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Mastra registers the logger before storage, observability, and file-based agents
|
|
26
|
+
Mastra registers the logger before storage, observability, and file-based agents. Those primitives log through this logger as they're wired up.
|
|
27
27
|
|
|
28
28
|
## Precedence with code
|
|
29
29
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
> **Beta:** Breaking changes may occur without a major version bump until the API is stable.
|
|
8
8
|
|
|
9
|
-
A file-based agent discovers **schedules** from its `schedules/` directory. Each file declares one recurring task: a cron expression plus what the agent should do when it fires. Mastra registers them into schedule storage at startup
|
|
9
|
+
A file-based agent discovers **schedules** from its `schedules/` directory. Each file declares one recurring task: a cron expression plus what the agent should do when it fires. Mastra registers them into schedule storage at startup. A scheduled agent needs no runtime registration code.
|
|
10
10
|
|
|
11
11
|
Use this page for the file-based convention. To create schedules at runtime instead, see [Schedules](https://mastra.ai/reference/schedules/overview).
|
|
12
12
|
|
|
@@ -90,11 +90,11 @@ export default defineSchedule({
|
|
|
90
90
|
})
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
The handler's return value is merged over the schedule's stored fields. Returning `undefined` applies no overrides
|
|
93
|
+
The handler's return value is merged over the schedule's stored fields. Returning `undefined` applies no overrides. The fire falls back to those stored fields. Since a handler-mode schedule can't declare a `prompt`, that fire then fails for a missing prompt. Return a `prompt` to run, or `null` to skip.
|
|
94
94
|
|
|
95
95
|
Handlers are functions, so they can't be persisted on the stored schedule row. Mastra resolves them in-process when the schedule fires. A handler-mode schedule that supplies no prompt (and declares none) fails that fire with a reason rather than sending the agent an empty message.
|
|
96
96
|
|
|
97
|
-
That in-process lookup means the process running the scheduler must have the owning agent registered. A normal deployment boots a single entry and gets that for free. Standalone workers need the same entry as your server. Boot one from a trimmed entry and it has no handler to call
|
|
97
|
+
That in-process lookup means the process running the scheduler must have the owning agent registered. A normal deployment boots a single entry and gets that for free. Standalone workers need the same entry as your server. Boot one from a trimmed entry and it has no handler to call. Its fires fail rather than run.
|
|
98
98
|
|
|
99
99
|
### Markdown schedules
|
|
100
100
|
|
|
@@ -75,7 +75,7 @@ The workspace filesystem controls file-tool access, and the sandbox determines w
|
|
|
75
75
|
|
|
76
76
|
## Seed files
|
|
77
77
|
|
|
78
|
-
Add a `workspace/` directory to include starting files with the agent. Mastra mirrors files under `workspace/` into the agent's default runtime workspace at build time
|
|
78
|
+
Add a `workspace/` directory to include starting files with the agent. Mastra mirrors files under `workspace/` into the agent's default runtime workspace at build time. The agent starts with those files on disk.
|
|
79
79
|
|
|
80
80
|
```text
|
|
81
81
|
src/mastra/agents/weather/
|
|
@@ -244,7 +244,7 @@ servers: {
|
|
|
244
244
|
|
|
245
245
|
### `roots` and `sampling`
|
|
246
246
|
|
|
247
|
-
Clients no longer advertise `roots`. `setRoots()` and `sendRootsListChanged()` are gone. Servers neither request sampling nor advertise it. A server that embeds a `roots/list` or `sampling/createMessage` request in `input_required` isn't answered: the client has no handler for those methods
|
|
247
|
+
Clients no longer advertise `roots`. `setRoots()` and `sendRootsListChanged()` are gone. Servers neither request sampling nor advertise it. A server that embeds a `roots/list` or `sampling/createMessage` request in `input_required` isn't answered: the client has no handler for those methods. The call fails instead of fabricating a response.
|
|
248
248
|
|
|
249
249
|
### `logging/setLevel` and `sendLoggingMessage`
|
|
250
250
|
|
|
@@ -153,7 +153,7 @@ describeSpanError(span) // SpanErrorInfo | undefined
|
|
|
153
153
|
|
|
154
154
|
### Processor spans
|
|
155
155
|
|
|
156
|
-
A processor span records which pipeline phase produced it
|
|
156
|
+
A processor span records which pipeline phase produced it. A reader narrows its payloads on that phase instead of on the payload's shape. The recorded phase is finer than the one a processor declares: `outputStream` and `outputResult` are separate here, because they record different payloads.
|
|
157
157
|
|
|
158
158
|
```typescript
|
|
159
159
|
import { describeProcessorPipeline, describeSpanOutput } from '@mastra/core/observability'
|