@mastra/core 1.87.0-alpha.5 → 1.87.0-alpha.6
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/dist/agent/durable/index.cjs +1 -1
- package/dist/agent/durable/index.js +1 -1
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +2 -2
- package/dist/agent-builder/ee/index.cjs +1 -1
- package/dist/agent-builder/ee/index.js +1 -1
- package/dist/agent-controller/index.cjs +1 -1
- package/dist/agent-controller/index.js +1 -1
- package/dist/{agent-controller-DEB1G03O.cjs → agent-controller-BL-0CKSF.cjs} +5 -5
- package/dist/{agent-controller-CDwoELRq.js → agent-controller-BkG0M35j.js} +5 -5
- package/dist/background-tasks/index.cjs +2 -1
- package/dist/background-tasks/index.d.ts +1 -1
- package/dist/background-tasks/index.js +1 -1
- package/dist/background-tasks/resolve-config.d.ts +30 -1
- package/dist/background-tasks/system-prompt.d.ts +8 -2
- package/dist/background-tasks/types.d.ts +47 -1
- package/dist/{background-tasks-CBp2178j.js → background-tasks-CQ1M8SHw.js} +156 -33
- package/dist/{background-tasks-B40g_Guf.cjs → background-tasks-DL-ATSvp.cjs} +167 -32
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/{builder-tuHJooMG.cjs → builder-CVEDotdf.cjs} +2 -2
- package/dist/{builder-DTEXPju5.js → builder-DnbKjNuO.js} +2 -2
- package/dist/capabilities/302ai.json +206 -206
- package/dist/capabilities/abliteratedllm.json +29 -29
- package/dist/capabilities/abliteration-ai.json +10 -10
- package/dist/capabilities/above.json +20 -20
- package/dist/capabilities/adaption.json +13 -13
- package/dist/capabilities/adzuki.json +29 -29
- package/dist/capabilities/agentrouter.json +12 -12
- package/dist/capabilities/agnes.json +2 -2
- package/dist/capabilities/ai-router.json +5 -5
- package/dist/capabilities/aiand.json +22 -22
- package/dist/capabilities/aigrow.json +12 -12
- package/dist/capabilities/aimlapi.json +145 -145
- package/dist/capabilities/aipg.json +2 -2
- package/dist/capabilities/aixy.json +28 -28
- package/dist/capabilities/aki-io.json +14 -14
- package/dist/capabilities/alibaba-cn.json +103 -103
- package/dist/capabilities/alibaba-coding-plan-cn.json +6 -6
- package/dist/capabilities/alibaba-coding-plan.json +6 -6
- package/dist/capabilities/alibaba-token-plan-cn.json +53 -53
- package/dist/capabilities/alibaba-token-plan.json +53 -53
- package/dist/capabilities/alibaba.json +73 -73
- package/dist/capabilities/ambient.json +18 -18
- package/dist/capabilities/amd.json +7 -7
- package/dist/capabilities/anthropic.json +53 -53
- package/dist/capabilities/anyapi.json +46 -46
- package/dist/capabilities/arcee.json +7 -7
- package/dist/capabilities/augure.json +4 -4
- package/dist/capabilities/auriko.json +15 -15
- package/dist/capabilities/bailing.json +5 -5
- package/dist/capabilities/baseten.json +36 -36
- package/dist/capabilities/bee.json +4 -4
- package/dist/capabilities/berget.json +4 -4
- package/dist/capabilities/bothub.json +16 -16
- package/dist/capabilities/boundless.json +39 -39
- package/dist/capabilities/bumo.json +38 -38
- package/dist/capabilities/byteplus.json +30 -30
- package/dist/capabilities/cheapaimodel.json +9 -9
- package/dist/capabilities/cheapest-token.json +31 -31
- package/dist/capabilities/chutes.json +8 -8
- package/dist/capabilities/cline-pass.json +40 -40
- package/dist/capabilities/cloudcode.json +9 -9
- package/dist/capabilities/cloudflare-workers-ai.json +16 -16
- package/dist/capabilities/commandcode.json +140 -140
- package/dist/capabilities/concentrate.json +274 -274
- package/dist/capabilities/cortecs.json +104 -104
- package/dist/capabilities/crossmodel.json +200 -200
- package/dist/capabilities/crusoe.json +9 -9
- package/dist/capabilities/daoxe.json +8 -8
- package/dist/capabilities/databricks.json +128 -128
- package/dist/capabilities/deepinfra.json +99 -99
- package/dist/capabilities/deepseek.json +3 -3
- package/dist/capabilities/digitalocean.json +108 -108
- package/dist/capabilities/dothoosh.json +31 -31
- package/dist/capabilities/doubleword.json +19 -19
- package/dist/capabilities/edenai.json +279 -286
- package/dist/capabilities/empiriolabs.json +167 -167
- package/dist/capabilities/engy.json +14 -14
- package/dist/capabilities/entrim.json +8 -8
- package/dist/capabilities/evroc.json +19 -19
- package/dist/capabilities/ezkielyna.json +11 -11
- package/dist/capabilities/fastrouter.json +88 -88
- package/dist/capabilities/fireworks-ai.json +97 -97
- package/dist/capabilities/freemodel.json +18 -18
- package/dist/capabilities/friendli.json +7 -7
- package/dist/capabilities/frogbot.json +89 -89
- package/dist/capabilities/gisoo.json +18 -18
- package/dist/capabilities/gmicloud.json +24 -24
- package/dist/capabilities/google.json +51 -51
- package/dist/capabilities/graphn.json +11 -11
- package/dist/capabilities/greenpt.json +33 -33
- package/dist/capabilities/groq.json +9 -9
- package/dist/capabilities/helicone.json +82 -82
- package/dist/capabilities/hostinger-router.json +14 -14
- package/dist/capabilities/hpc-ai.json +12 -12
- package/dist/capabilities/huawei-maas.json +14 -14
- package/dist/capabilities/hubris.json +32 -32
- package/dist/capabilities/huggingface.json +106 -106
- package/dist/capabilities/humain.json +2 -2
- package/dist/capabilities/hyper.json +19 -19
- package/dist/capabilities/impossibl.json +145 -145
- package/dist/capabilities/inception.json +3 -3
- package/dist/capabilities/inceptron.json +8 -8
- package/dist/capabilities/inco.json +2 -2
- package/dist/capabilities/infer.json +13 -13
- package/dist/capabilities/inferall.json +6 -6
- package/dist/capabilities/inference-coop.json +9 -9
- package/dist/capabilities/inferenceapis.json +25 -25
- package/dist/capabilities/inferris.json +4 -4
- package/dist/capabilities/infersia.json +14 -14
- package/dist/capabilities/io-net.json +2 -2
- package/dist/capabilities/iteracompute.json +52 -52
- package/dist/capabilities/jad-ai.json +3 -3
- package/dist/capabilities/jalapeno.json +10 -10
- package/dist/capabilities/jiekou.json +59 -59
- package/dist/capabilities/joingonka.json +4 -4
- package/dist/capabilities/jzstoken.json +54 -54
- package/dist/capabilities/keln.json +25 -25
- package/dist/capabilities/kenari.json +124 -124
- package/dist/capabilities/kilo.json +653 -644
- package/dist/capabilities/kimi-code-plan-cn.json +9 -9
- package/dist/capabilities/kimi-code-plan-global.json +9 -9
- package/dist/capabilities/kitani.json +6 -6
- package/dist/capabilities/klavo.json +22 -22
- package/dist/capabilities/korouter.json +29 -29
- package/dist/capabilities/kunavo.json +10 -10
- package/dist/capabilities/liquid.json +5 -5
- package/dist/capabilities/lithosai.json +2 -2
- package/dist/capabilities/llmgateway-providers.json +926 -929
- package/dist/capabilities/llmgateway.json +341 -342
- package/dist/capabilities/llmtr.json +37 -37
- package/dist/capabilities/lowrouter.json +66 -66
- package/dist/capabilities/lyceum.json +8 -8
- package/dist/capabilities/melious.json +11 -11
- package/dist/capabilities/merge-gateway.json +293 -293
- package/dist/capabilities/meta.json +7 -7
- package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
- package/dist/capabilities/minimax-coding-plan.json +2 -2
- package/dist/capabilities/mistral.json +19 -19
- package/dist/capabilities/mixlayer.json +4 -4
- package/dist/capabilities/modal.json +9 -9
- package/dist/capabilities/model-oracle-ai.json +27 -27
- package/dist/capabilities/modelis.json +14 -14
- package/dist/capabilities/modelscope.json +2 -2
- package/dist/capabilities/modular.json +6 -6
- package/dist/capabilities/moneo.json +14 -14
- package/dist/capabilities/moonshotai-cn.json +7 -7
- package/dist/capabilities/moonshotai.json +7 -7
- package/dist/capabilities/morph.json +12 -12
- package/dist/capabilities/munito-eu.json +8 -8
- package/dist/capabilities/munito.json +8 -8
- package/dist/capabilities/nan.json +26 -26
- package/dist/capabilities/nano-gpt.json +589 -589
- package/dist/capabilities/nearai.json +96 -96
- package/dist/capabilities/nebius.json +30 -30
- package/dist/capabilities/neon.json +138 -138
- package/dist/capabilities/neuralwatt.json +39 -39
- package/dist/capabilities/nokeep.json +4 -4
- package/dist/capabilities/novita-ai.json +157 -157
- package/dist/capabilities/nvidia.json +18 -18
- package/dist/capabilities/oathbreaker.json +2 -2
- package/dist/capabilities/obscurify.json +32 -32
- package/dist/capabilities/oci.json +9 -9
- package/dist/capabilities/ofox.json +414 -414
- package/dist/capabilities/ollama-cloud.json +52 -52
- package/dist/capabilities/openai.json +58 -58
- package/dist/capabilities/opencode-go.json +94 -94
- package/dist/capabilities/openreason.json +6 -6
- package/dist/capabilities/openrouter.json +561 -561
- package/dist/capabilities/opper.json +28 -28
- package/dist/capabilities/orcarouter.json +255 -255
- package/dist/capabilities/outerlabs.json +28 -28
- package/dist/capabilities/ovhcloud.json +17 -17
- package/dist/capabilities/pareto.json +5 -5
- package/dist/capabilities/pendra.json +4 -4
- package/dist/capabilities/perplexity-agent.json +64 -64
- package/dist/capabilities/perplexity.json +2 -2
- package/dist/capabilities/phala.json +32 -32
- package/dist/capabilities/pioneer.json +29 -29
- package/dist/capabilities/poe.json +133 -133
- package/dist/capabilities/poolside.json +3 -3
- package/dist/capabilities/powerspring.json +12 -12
- package/dist/capabilities/primalabs.json +12 -12
- package/dist/capabilities/prime.json +119 -119
- package/dist/capabilities/privatemode-ai.json +11 -11
- package/dist/capabilities/proxystacks.json +6 -6
- package/dist/capabilities/qiniu-ai.json +13 -13
- package/dist/capabilities/refuseless.json +6 -6
- package/dist/capabilities/regolo-ai.json +9 -9
- package/dist/capabilities/requesty.json +200 -166
- package/dist/capabilities/ruapi.json +22 -22
- package/dist/capabilities/runcrate.json +13 -13
- package/dist/capabilities/runinfra.json +18 -18
- package/dist/capabilities/sakana.json +7 -7
- package/dist/capabilities/sambanova.json +6 -6
- package/dist/capabilities/sandbase.json +25 -25
- package/dist/capabilities/sarvam.json +9 -9
- package/dist/capabilities/scaleway.json +13 -13
- package/dist/capabilities/scnet-token-plan.json +9 -9
- package/dist/capabilities/scx-ai.json +23 -23
- package/dist/capabilities/sensenova.json +6 -6
- package/dist/capabilities/siliconflow-cn.json +61 -61
- package/dist/capabilities/siliconflow.json +56 -56
- package/dist/capabilities/snowflake-cortex.json +23 -23
- package/dist/capabilities/sokkan.json +9 -9
- package/dist/capabilities/sparrowcodes.json +21 -21
- package/dist/capabilities/standardcompute.json +97 -97
- package/dist/capabilities/steadyrouter.json +37 -37
- package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
- package/dist/capabilities/stepfun-ai.json +6 -6
- package/dist/capabilities/stepfun-step-plan.json +6 -6
- package/dist/capabilities/stepfun.json +6 -6
- package/dist/capabilities/stepping-stone.json +22 -22
- package/dist/capabilities/synthetic.json +12 -12
- package/dist/capabilities/synthorai.json +21 -21
- package/dist/capabilities/teamorouter.json +19 -19
- package/dist/capabilities/teapot-router.json +16 -16
- package/dist/capabilities/tencent-token-plan-intl.json +19 -19
- package/dist/capabilities/tencent-token-plan.json +36 -36
- package/dist/capabilities/tencent-tokenhub.json +47 -47
- package/dist/capabilities/tensorx.json +46 -46
- package/dist/capabilities/tenstorrent.json +6 -6
- package/dist/capabilities/the-grid-ai.json +37 -37
- package/dist/capabilities/thinkingmachines.json +35 -35
- package/dist/capabilities/tinfoil.json +11 -11
- package/dist/capabilities/toapis.json +2 -2
- package/dist/capabilities/togetherai.json +50 -50
- package/dist/capabilities/tokengo.json +24 -24
- package/dist/capabilities/tokenify.json +9 -9
- package/dist/capabilities/trustedrouter.json +7 -7
- package/dist/capabilities/trustedtokens.json +19 -19
- package/dist/capabilities/umans-ai-coding-plan.json +18 -18
- package/dist/capabilities/umans-ai.json +15 -15
- package/dist/capabilities/uncensuredai.json +5 -5
- package/dist/capabilities/unrestricted.json +8 -8
- package/dist/capabilities/uplinkswitch.json +22 -22
- package/dist/capabilities/upstage.json +5 -5
- package/dist/capabilities/vancine.json +20 -20
- package/dist/capabilities/vercel.json +588 -586
- package/dist/capabilities/vivgrid.json +78 -78
- package/dist/capabilities/volcengine-coding-plan.json +22 -22
- package/dist/capabilities/volcengine.json +27 -27
- package/dist/capabilities/vultr.json +27 -27
- package/dist/capabilities/wafer.ai.json +16 -16
- package/dist/capabilities/wallaby.json +2 -2
- package/dist/capabilities/wally.json +10 -10
- package/dist/capabilities/wandb.json +21 -21
- package/dist/capabilities/watt.json +26 -26
- package/dist/capabilities/xai.json +6 -6
- package/dist/capabilities/xiaomi.json +2 -2
- package/dist/capabilities/xpersona.json +12 -12
- package/dist/capabilities/xxapi.json +32 -32
- package/dist/capabilities/zai-coding-plan.json +15 -15
- package/dist/capabilities/zai.json +29 -29
- package/dist/capabilities/zenifra.json +30 -30
- package/dist/capabilities/zenmux.json +202 -202
- package/dist/capabilities/zerogpu.json +12 -12
- package/dist/capabilities/zhipuai-coding-plan.json +7 -7
- package/dist/capabilities/zhipuai.json +28 -28
- package/dist/capabilities/zro.json +7 -7
- package/dist/channels/index.cjs +2 -2
- package/dist/channels/index.js +2 -2
- package/dist/{channels-Drxs9g13.cjs → channels-DCd_dDOB.cjs} +1 -1
- package/dist/{channels-CC2Z4adP.js → channels-DwAd1RtQ.js} +1 -1
- package/dist/coding-agent/index.cjs +1 -1
- package/dist/coding-agent/index.js +1 -1
- package/dist/datasets/index.cjs +2 -2
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +476 -476
- package/dist/docs/references/docs-agents-code-mode.md +16 -0
- package/dist/docs/references/docs-harness-background-tasks.md +38 -0
- package/dist/evals/index.cjs +1 -1
- package/dist/evals/index.js +1 -1
- package/dist/evals/scoreTraces/index.cjs +1 -1
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/events/index.cjs +1 -1
- package/dist/events/index.js +1 -1
- package/dist/harness/index.cjs +1 -1
- package/dist/harness/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/index.cjs +14 -4
- package/dist/knowledge/index.d.ts +6 -2
- package/dist/knowledge/index.js +14 -4
- package/dist/knowledge/pinned-state-processor.d.ts +2 -2
- package/dist/knowledge/run.d.ts +4 -0
- package/dist/llm/index.cjs +3 -3
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/provider-types.generated.d.ts +7902 -7904
- package/dist/{llm-D3y8qOKL.js → llm-BdHdjrHp.js} +2 -2
- package/dist/{llm-CbpBEabY.cjs → llm-DQTGexjo.cjs} +2 -2
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +2 -2
- package/dist/{manager-elIuArZa.js → manager-BxE49QHe.js} +2 -2
- package/dist/{manager-BOn6RJwA.cjs → manager-CjT4ivOl.cjs} +2 -2
- package/dist/mastra/index.cjs +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/{mastra-CDQJWY6v.cjs → mastra-CraMHXhw.cjs} +17 -17
- package/dist/{mastra-DQjco6Bt.js → mastra-DKjpNZ-1.js} +17 -17
- package/dist/memory/index.cjs +2 -2
- package/dist/memory/index.js +2 -2
- package/dist/{model-C4aI7k-i.cjs → model-BEFQWHnG.cjs} +1 -1
- package/dist/{model-BjyU1L4I.js → model-X2gWHlAy.js} +1 -1
- package/dist/{netlify-BjuUEMrL.cjs → netlify-BFgeBsaW.cjs} +1 -1
- package/dist/{netlify-BpB7PtZV.js → netlify-kxJSdqCW.js} +1 -1
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/processor-provider/index.cjs +1 -1
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +2 -2
- package/dist/processors/index.js +2 -2
- package/dist/{provider-registry-bkFdaY45.cjs → provider-registry-BXDosXMN.cjs} +22028 -22031
- package/dist/{provider-registry-BjdxtGZZ.js → provider-registry-DgezoItQ.js} +22028 -22031
- package/dist/provider-registry.json +22701 -22704
- package/dist/{registry-generator-CPF318Kc.js → registry-generator-B50FrVGs.js} +1 -1
- package/dist/{registry-generator-BORKO0_T.cjs → registry-generator-BMXgTdbx.cjs} +1 -1
- package/dist/{rehydrate-Cps4MTph.cjs → rehydrate-CBcjKKGA.cjs} +2 -2
- package/dist/{rehydrate-Cw2Id-Uz.js → rehydrate-Dp8f_1MN.js} +2 -2
- package/dist/relevance/index.cjs +2 -2
- package/dist/relevance/index.js +2 -2
- package/dist/{run-registry-BTFPEkXT.cjs → run-registry-BRO8xz9z.cjs} +35 -14
- package/dist/{run-registry-D5z2YVqJ.js → run-registry-H2qdwHni.js} +30 -15
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +2 -2
- package/dist/stream/index.cjs +2 -2
- package/dist/stream/index.js +2 -2
- package/dist/{stream-DB5efioT.js → stream-DcYRY4r3.js} +1 -1
- package/dist/{stream-D1OnBHDi.cjs → stream-nABk9CJK.cjs} +1 -1
- package/dist/test-utils/llm-mock.cjs +1 -1
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +1 -1
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/{tool-loop-agent-Ote8gJMn.cjs → tool-loop-agent-D1Rufbcz.cjs} +3 -3
- package/dist/{tool-loop-agent-DkhFVx0h.js → tool-loop-agent-DO-GkLD_.js} +3 -3
- package/dist/{utils-Dl_UFejV.cjs → utils-DY0lTRKE.cjs} +7 -6
- package/dist/{utils-BTKpGHA6.js → utils-DlsFs_sO.js} +7 -6
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +1 -1
- package/dist/{validate-D6fUqYGz.js → validate-D4nqo7Ri.js} +1 -1
- package/dist/{validate-DdDuQRoZ.cjs → validate-DP9DxgFq.cjs} +1 -1
- package/dist/vector/index.cjs +1 -1
- package/dist/vector/index.js +1 -1
- package/dist/worker/index.cjs +1 -1
- package/dist/worker/index.js +1 -1
- package/dist/worker/workers/orchestration-worker.d.ts +1 -0
- package/dist/{worker-DC269pGx.js → worker-8MNVG9Ja.js} +2 -2
- package/dist/{worker-Bo_hTQJC.js → worker-Ckryk6RZ.js} +5 -5
- package/dist/{worker-B27B9RlK.cjs → worker-CqEMDlAQ.cjs} +2 -2
- package/dist/{worker-mq-oiLa5.cjs → worker-LryffZas.cjs} +10 -4
- package/dist/{workflow-D97r3h2-.js → workflow-B0mhMnuQ.js} +3 -3
- package/dist/{workflow-D61dV4AC.cjs → workflow-BN6YiI09.cjs} +3 -3
- package/dist/workflows/builder/index.cjs +1 -1
- package/dist/workflows/builder/index.js +1 -1
- package/dist/workflows/evented/index.cjs +1 -1
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +4 -4
- package/dist/workflows/index.js +4 -4
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +7902 -7904
|
@@ -180,6 +180,22 @@ const { tool, instructions } = createCodeMode(
|
|
|
180
180
|
)
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
+
Importing `@mastra/quickjs` doesn't initialize the default TypeScript stripper, so the import is safe on runtimes without Node.js globals such as Cloudflare Workers. The default stripper (`ts-blank-space`) loads on the first run that needs it, and on those runtimes it can't load at all: it pulls in `typescript`, which reads `__filename` while it initializes. Pass a stripper that runs there instead:
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
import { createCodeMode } from '@mastra/core/tools'
|
|
187
|
+
import { QuickJsCodeModeTransport } from '@mastra/quickjs'
|
|
188
|
+
|
|
189
|
+
// Programs that are already plain JavaScript need no transform, and nothing
|
|
190
|
+
// that depends on Node.js globals is loaded.
|
|
191
|
+
const { tool, instructions } = createCodeMode(
|
|
192
|
+
{ tools },
|
|
193
|
+
new QuickJsCodeModeTransport({ stripTypes: code => code }),
|
|
194
|
+
)
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Where a build step can strip the types, send the program already stripped. To cap CPU-heavy programs on a host with a frozen clock, set `maxInterruptTicks` or `shouldInterrupt`. See the [QuickJsCodeModeTransport reference](https://mastra.ai/reference/tools/quickjs-transport).
|
|
198
|
+
|
|
183
199
|
See [Choosing a transport](https://mastra.ai/reference/tools/quickjs-transport) for a side-by-side comparison.
|
|
184
200
|
|
|
185
201
|
## Related
|
|
@@ -98,6 +98,25 @@ export const researcher = new Agent({
|
|
|
98
98
|
|
|
99
99
|
Set `tools: 'all'` to opt in every tool the agent has.
|
|
100
100
|
|
|
101
|
+
### Agent-wide defaults
|
|
102
|
+
|
|
103
|
+
Agent-wide `defaultDisposition` and `modelOverrides` sit next to `tools` and apply to every tool the agent has opted in, so you don't have to repeat them per tool:
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
export const researcher = new Agent({
|
|
107
|
+
// ...
|
|
108
|
+
backgroundTasks: {
|
|
109
|
+
tools: 'all',
|
|
110
|
+
defaultDisposition: 'foreground',
|
|
111
|
+
modelOverrides: false,
|
|
112
|
+
},
|
|
113
|
+
})
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
Both act as defaults. For each tool the agent has opted in, `defaultDisposition` resolves as the tool entry's own value, then the agent-wide value, then the tool's own `background` config, then `deferred`. `modelOverrides` resolves the same way but defaults to `true`. `enabled` is never inherited, so agent-wide fields can't opt a tool in on their own.
|
|
117
|
+
|
|
118
|
+
Agent-wide values apply to named entries too, so a plain `tools: { research: true }` inherits them. An entry can still opt out per tool with its own `defaultDisposition` or `modelOverrides`. `defaultDisposition` accepts `'foreground'` or `'deferred'`, so `awaited` remains a per-call `_background` choice.
|
|
119
|
+
|
|
101
120
|
### LLM per-call override
|
|
102
121
|
|
|
103
122
|
When a tool is registered on an agent that has background tasks enabled, the model can include a `_background` field in the tool arguments to override the resolved configuration for that specific call. The model only includes what it wants to override, all fields in `_background` are optional. The override is stripped from the arguments before the tool runs.
|
|
@@ -119,6 +138,25 @@ For compatibility, `_background.enabled: true` selects `deferred`, and `_backgro
|
|
|
119
138
|
|
|
120
139
|
The `_background` override only _modifies_ tools the developer has already opted in at the tool or agent layer. If a tool hasn't been opted in, a model-selected background disposition is ignored and the tool runs in the foreground. This keeps deterministic, foreground-only tools (calculators, lookups, schema validators) from being silently dispatched as tasks.
|
|
121
140
|
|
|
141
|
+
### Disable the per-call override
|
|
142
|
+
|
|
143
|
+
The `_background` object adds five optional parameters to each eligible tool's input schema: the object itself plus `enabled`, `disposition`, `timeoutMs`, and `maxRetries`. Some providers cap optional parameters per request. Anthropic rejects strict tool schemas with more than 24 optional parameters in total, so five strict background tools exceed the limit before counting their own optional fields.
|
|
144
|
+
|
|
145
|
+
Set `modelOverrides: false` when a tool should always use its configured disposition. Mastra then leaves `_background` out of the tool's schema and the system prompt, and ignores any `_background` value the model sends:
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
const researchTool = createTool({
|
|
149
|
+
id: 'research',
|
|
150
|
+
description: 'Research a topic in depth',
|
|
151
|
+
strict: true,
|
|
152
|
+
inputSchema: z.object({ topic: z.string() }),
|
|
153
|
+
background: { enabled: true, modelOverrides: false },
|
|
154
|
+
execute: async ({ topic }) => runResearch(topic),
|
|
155
|
+
})
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
You can also set `modelOverrides: false` on an agent's per-tool entry, for example `backgroundTasks: { tools: { research: { enabled: true, modelOverrides: false } } }`. The agent entry takes precedence over the tool definition. Tools with `modelOverrides: false` and `defaultDisposition: 'foreground'` always run in the foreground.
|
|
159
|
+
|
|
122
160
|
### Resolution order
|
|
123
161
|
|
|
124
162
|
When a tool call is dispatched, agent-level and tool-level settings determine eligibility and fallback values. For an eligible tool, the LLM `_background` fields override the corresponding values for that call. Manager defaults fill timeout and retry values that remain unset. An `_background` field can't enable a tool that's not eligible.
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_run_registry = require("../run-registry-
|
|
2
|
+
const require_run_registry = require("../run-registry-BRO8xz9z.cjs");
|
|
3
3
|
const require_constants = require("../constants-Bou0hEgY.cjs");
|
|
4
4
|
const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
|
|
5
5
|
exports.MastraScorer = require_run_registry.MastraScorer;
|
package/dist/evals/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as MastraScorer, D as isNotScorable, E as filterRun, Fc as
|
|
1
|
+
import { C as MastraScorer, D as isNotScorable, E as filterRun, Fc as evaluateScoringPredicate, Ic as validateScoringPredicate, O as notScorable, Pc as SCORING_PREDICATE_ROOTS, S as createClassifierScorer, T as createScorer, v as runEvals, w as ScorerRunError } from "../run-registry-H2qdwHni.js";
|
|
2
2
|
import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-CFWgIaqA.js";
|
|
3
3
|
import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
|
|
4
4
|
export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_error = require("../../error-D90lJ6M7.cjs");
|
|
3
3
|
const require_utils = require("../../utils-D-eNsgDM.cjs");
|
|
4
|
-
const require_run_registry = require("../../run-registry-
|
|
4
|
+
const require_run_registry = require("../../run-registry-BRO8xz9z.cjs");
|
|
5
5
|
const require_constants = require("../../constants-Bou0hEgY.cjs");
|
|
6
6
|
let zod_v4 = require("zod/v4");
|
|
7
7
|
// src/evals/scoreTraces/scoreTraces.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
|
|
2
2
|
import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Us as createStep, Ws as createWorkflow } from "../../run-registry-H2qdwHni.js";
|
|
4
4
|
import { Dr as saveScorePayloadSchema } from "../../constants-CFWgIaqA.js";
|
|
5
5
|
import { z } from "zod/v4";
|
|
6
6
|
// src/evals/scoreTraces/scoreTraces.ts
|
package/dist/events/index.cjs
CHANGED
|
@@ -656,7 +656,7 @@ var UnixSocketPubSub = class extends require_output_helpers.PubSub {
|
|
|
656
656
|
}
|
|
657
657
|
if (existing) await this.unsubscribe(topic, cb);
|
|
658
658
|
const group = options?.group;
|
|
659
|
-
const hadMembership = this.#
|
|
659
|
+
const hadMembership = [...subscriptions.values()].some((s) => s.group === group && !this.#leavingSubscriptions.has(s));
|
|
660
660
|
const wasConnected = Boolean(this.#clientSocket && !this.#clientSocket.destroyed);
|
|
661
661
|
subscriptions.set(cb, {
|
|
662
662
|
callback: cb,
|
package/dist/events/index.js
CHANGED
|
@@ -653,7 +653,7 @@ var UnixSocketPubSub = class extends PubSub {
|
|
|
653
653
|
}
|
|
654
654
|
if (existing) await this.unsubscribe(topic, cb);
|
|
655
655
|
const group = options?.group;
|
|
656
|
-
const hadMembership = this.#
|
|
656
|
+
const hadMembership = [...subscriptions.values()].some((s) => s.group === group && !this.#leavingSubscriptions.has(s));
|
|
657
657
|
const wasConnected = Boolean(this.#clientSocket && !this.#clientSocket.destroyed);
|
|
658
658
|
subscriptions.set(cb, {
|
|
659
659
|
callback: cb,
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
|
|
3
3
|
const require_tools = require("../tools-n9lqzDNe.cjs");
|
|
4
|
-
const require_agent_controller = require("../agent-controller-
|
|
4
|
+
const require_agent_controller = require("../agent-controller-BL-0CKSF.cjs");
|
|
5
5
|
// src/harness/index.ts
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/harness/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
|
|
2
2
|
import { s as askUserTool, t as submitPlanTool } from "../tools-DDfA_ES4.js";
|
|
3
|
-
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-
|
|
3
|
+
import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-BkG0M35j.js";
|
|
4
4
|
// src/harness/index.ts
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Backwards-compatibility entrypoint.
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as Mastra } from "./mastra-
|
|
1
|
+
export { t as Mastra } from "./mastra-DKjpNZ-1.js";
|
package/dist/knowledge/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_base = require("../base-BIzR1D3_.cjs");
|
|
3
|
-
const require_run_registry = require("../run-registry-
|
|
3
|
+
const require_run_registry = require("../run-registry-BRO8xz9z.cjs");
|
|
4
4
|
const require_tool = require("../tool-CYlT2UA-.cjs");
|
|
5
5
|
let crypto = require("crypto");
|
|
6
6
|
let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
|
|
@@ -4380,9 +4380,19 @@ var Knowledge = class extends require_base.MastraBase {
|
|
|
4380
4380
|
write
|
|
4381
4381
|
};
|
|
4382
4382
|
}
|
|
4383
|
-
/**
|
|
4384
|
-
|
|
4385
|
-
|
|
4383
|
+
/**
|
|
4384
|
+
* The run's principals as a stable key, or `undefined` when the run has no Knowledge view (no scopes,
|
|
4385
|
+
* or an undeclared scope). Loads the store's declarations first, so a scope only the store declares
|
|
4386
|
+
* counts; a failure loading them rejects. @internal
|
|
4387
|
+
*/
|
|
4388
|
+
async __principalsKey(context) {
|
|
4389
|
+
await this.#runtime.resolve();
|
|
4390
|
+
try {
|
|
4391
|
+
return require_run_registry.knowledgeRunPrincipals(this.#runtime, context).sort().join("\n");
|
|
4392
|
+
} catch (error) {
|
|
4393
|
+
if (error instanceof require_run_registry.KnowledgeRunScopesError || error instanceof require_run_registry.KnowledgeDeclarationError) return void 0;
|
|
4394
|
+
throw error;
|
|
4395
|
+
}
|
|
4386
4396
|
}
|
|
4387
4397
|
/**
|
|
4388
4398
|
* The pinned pages a host-run caller with these principals receives, rendered as an agent run
|
|
@@ -197,8 +197,12 @@ export declare class Knowledge extends MastraBase {
|
|
|
197
197
|
read: boolean;
|
|
198
198
|
write: boolean;
|
|
199
199
|
};
|
|
200
|
-
/**
|
|
201
|
-
|
|
200
|
+
/**
|
|
201
|
+
* The run's principals as a stable key, or `undefined` when the run has no Knowledge view (no scopes,
|
|
202
|
+
* or an undeclared scope). Loads the store's declarations first, so a scope only the store declares
|
|
203
|
+
* counts; a failure loading them rejects. @internal
|
|
204
|
+
*/
|
|
205
|
+
__principalsKey(context: KnowledgeRunContext): Promise<string | undefined>;
|
|
202
206
|
/**
|
|
203
207
|
* The pinned pages a host-run caller with these principals receives, rendered as an agent run
|
|
204
208
|
* receives them: only pages they can read, within this instance's pin budget. For hosts that serve
|
package/dist/knowledge/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as MastraBase } from "../base-CKLWBhDo.js";
|
|
2
|
-
import { $t as knowledgeDeliveredPins, Ai as
|
|
2
|
+
import { $t as knowledgeDeliveredPins, Ai as MAX_KNOWLEDGE_NOTE_TOKENS, Bi as canonicalKnowledgeName, Ci as inspectKnowledgeSchema, Cn as knowledgeMemoryScopes, Di as KnowledgePageHasChildrenError, Dn as decodeKnowledgeScopeId, Ei as KnowledgePageDepthError, En as strongerKnowledgeRole, Fi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Gi as knowledgeScopeReadable, Go as getStorageSource, Hi as knowledgePagePath, Ii as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ki as parseKnowledgePageRef, Li as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Mi as MAX_KNOWLEDGE_PAGE_DEPTH, Ni as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Oi as KnowledgePageKeyConflictError, On as encodeKnowledgeScopeId, Pi as MAX_KNOWLEDGE_PAGE_LINKS, Qt as PINNED_READ_MEMO_KEY, Ri as assertKnowledgeNoteTextWithinBound, Si as createKnowledgeUlid, Sn as compileKnowledgeScopes, Sr as parseKnowledgeNodeCursor, Ti as KnowledgeMoveTooLargeError, Tn as knowledgeScopeAddress, Ui as knowledgePinDepth, Vi as knowledgeLinkRefKey, Wi as knowledgePositionBetween, Wo as augmentWithInit, _i as KnowledgeSchemaResetRequiredError, _n as updateKnowledgeLinks, _r as isKnowledgeScopeVisible, an as moveKnowledgePage, bi as KnowledgeUnsupportedCapabilityError, bn as knowledgeRoleOn, br as knowledgeSemanticIdempotencyKey, cn as updateKnowledgeNote, cr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, di as KnowledgeImporterRunStateError, dr as assertKnowledgeDescriptionWithinBound, en as buildKnowledgePageTools, fi as KnowledgeImportersStorage, fn as KnowledgeLinkRefreshIncompleteError, fr as assertKnowledgeRecordTextWithinBound, gi as KnowledgeNotFoundError, gn as syncKnowledgePageBodyLinks, gr as expandKnowledgeScope, hi as KnowledgeConflictError, hn as reindexKnowledgeLinks, hr as createKnowledgeNodeCursor, in as addKnowledgeNote, ji as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ki as MAX_KNOWLEDGE_MOVE_PAGES, kn as buildKnowledgeInstructions, li as InMemoryKnowledgeStorage, ln as upsertKnowledgePage, lr as MAX_KNOWLEDGE_SCOPE_TAGS, mi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, mn as refreshKnowledgeLinksTo, mr as canonicalizeKnowledgeScope, nn as KnowledgeRunScopesError, on as removeKnowledgeNote, pi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, pn as knowledgeSubtree, pr as assertKnowledgeScopeWithinCeiling, qi as KnowledgeInvalidCursorError, rn as knowledgeRunPrincipals, sn as removeKnowledgePage, sr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, tn as KnowledgeRun, ui as KnowledgeImporterBindingConflictError, un as KnowledgeSemanticIndex, ur as assertKnowledgeCeilingRaised, vi as KnowledgeStorage, vn as knowledgeAccessGrants, vr as knowledgeScopeKey, wi as parseKnowledgeWikilinks, wn as knowledgeRunScopes, xi as assertKnowledgeSchemaCompatible, xn as KnowledgeDeclarationError, xr as knowledgeVisibleScopeKeys, yi as KnowledgeTransactionDeadlineError, yn as knowledgeReadScopeFor, yr as knowledgeSemanticDocumentId, zi as assertKnowledgePageDescriptionWithinBound } from "../run-registry-H2qdwHni.js";
|
|
3
3
|
import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
|
|
4
4
|
import { i as createStandardSchemaIssuesError } from "../tool-Z3bykc1m.js";
|
|
5
5
|
import { randomUUID } from "crypto";
|
|
@@ -4379,9 +4379,19 @@ var Knowledge = class extends MastraBase {
|
|
|
4379
4379
|
write
|
|
4380
4380
|
};
|
|
4381
4381
|
}
|
|
4382
|
-
/**
|
|
4383
|
-
|
|
4384
|
-
|
|
4382
|
+
/**
|
|
4383
|
+
* The run's principals as a stable key, or `undefined` when the run has no Knowledge view (no scopes,
|
|
4384
|
+
* or an undeclared scope). Loads the store's declarations first, so a scope only the store declares
|
|
4385
|
+
* counts; a failure loading them rejects. @internal
|
|
4386
|
+
*/
|
|
4387
|
+
async __principalsKey(context) {
|
|
4388
|
+
await this.#runtime.resolve();
|
|
4389
|
+
try {
|
|
4390
|
+
return knowledgeRunPrincipals(this.#runtime, context).sort().join("\n");
|
|
4391
|
+
} catch (error) {
|
|
4392
|
+
if (error instanceof KnowledgeRunScopesError || error instanceof KnowledgeDeclarationError) return void 0;
|
|
4393
|
+
throw error;
|
|
4394
|
+
}
|
|
4385
4395
|
}
|
|
4386
4396
|
/**
|
|
4387
4397
|
* The pinned pages a host-run caller with these principals receives, rendered as an agent run
|
|
@@ -34,8 +34,8 @@ export declare function applyPinOps(pins: PinEntry[], ops: PinDeltaOp[]): PinEnt
|
|
|
34
34
|
export declare function effectivePriorPins(args: ComputeStateSignalArgs): PinEntry[];
|
|
35
35
|
export declare function diffPins(prior: PinEntry[], current: PinEntry[]): PinDeltaOp[];
|
|
36
36
|
export interface PinnedStateProcessorDeps {
|
|
37
|
-
/** A key identifying the run's principals, for the per-turn memo
|
|
38
|
-
principalsKey(context: KnowledgeRunContext): string;
|
|
37
|
+
/** A key identifying the run's principals, for the per-turn memo; `undefined` when the run has no Knowledge view, so it gets no pins. */
|
|
38
|
+
principalsKey(context: KnowledgeRunContext): Promise<string | undefined> | string | undefined;
|
|
39
39
|
/** The pins the run receives. */
|
|
40
40
|
readPins(context: KnowledgeRunContext): Promise<PinEntry[]>;
|
|
41
41
|
/** Whether the agent has `knowledge_search`, `knowledge_read` and `knowledge_list`; when `false` the guidance, the overflow suffix and pin descriptions name no read tool. Defaults to `true`. */
|
package/dist/knowledge/run.d.ts
CHANGED
|
@@ -16,6 +16,10 @@ export type KnowledgeRunContext = {
|
|
|
16
16
|
export declare class KnowledgeNotFoundError extends Error {
|
|
17
17
|
constructor(ref: string, closeMatches?: string[]);
|
|
18
18
|
}
|
|
19
|
+
/** A run with no scopes and no Memory identity: it has no Knowledge view. @internal */
|
|
20
|
+
export declare class KnowledgeRunScopesError extends Error {
|
|
21
|
+
constructor();
|
|
22
|
+
}
|
|
19
23
|
/**
|
|
20
24
|
* One call's view of Knowledge: the run's principals, its read scope and its provenance. Built per
|
|
21
25
|
* tool call from the run's own scopes, so access always follows the current declarations.
|
package/dist/llm/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_llm = require("../llm-
|
|
3
|
-
const require_netlify = require("../netlify-
|
|
4
|
-
const require_provider_registry = require("../provider-registry-
|
|
2
|
+
const require_llm = require("../llm-DQTGexjo.cjs");
|
|
3
|
+
const require_netlify = require("../netlify-BFgeBsaW.cjs");
|
|
4
|
+
const require_provider_registry = require("../provider-registry-BXDosXMN.cjs");
|
|
5
5
|
exports.AzureOpenAIGateway = require_llm.AzureOpenAIGateway;
|
|
6
6
|
exports.EMBEDDING_MODELS = require_llm.EMBEDDING_MODELS;
|
|
7
7
|
exports.GATEWAY_AUTH_HEADER = require_netlify.GATEWAY_AUTH_HEADER;
|
package/dist/llm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-
|
|
2
|
-
import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-
|
|
3
|
-
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-
|
|
1
|
+
import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-BdHdjrHp.js";
|
|
2
|
+
import { l as GATEWAY_AUTH_HEADER, m as getGatewayId, p as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, y as MastraModelGateway } from "../netlify-kxJSdqCW.js";
|
|
3
|
+
import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-DgezoItQ.js";
|
|
4
4
|
export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };
|