@mastra/core 1.14.0-alpha.2 → 1.14.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/agent/agent.d.ts +1 -1
- package/dist/agent/agent.d.ts.map +1 -1
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/message-list.d.ts.map +1 -1
- package/dist/agent/types.d.ts +1 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/{chunk-PV2DBPYF.js → chunk-3X5TJK3I.js} +3 -3
- package/dist/{chunk-PV2DBPYF.js.map → chunk-3X5TJK3I.js.map} +1 -1
- package/dist/{chunk-XVH7SCZN.cjs → chunk-4334N37E.cjs} +5 -5
- package/dist/{chunk-XVH7SCZN.cjs.map → chunk-4334N37E.cjs.map} +1 -1
- package/dist/{chunk-KKNT7W4Q.js → chunk-62KO5UTR.js} +4 -4
- package/dist/{chunk-KKNT7W4Q.js.map → chunk-62KO5UTR.js.map} +1 -1
- package/dist/{chunk-OGR427FH.js → chunk-A4GHYWQL.js} +3 -3
- package/dist/{chunk-OGR427FH.js.map → chunk-A4GHYWQL.js.map} +1 -1
- package/dist/{chunk-2FDGDAJQ.cjs → chunk-C3D2EKGM.cjs} +3 -3
- package/dist/{chunk-2FDGDAJQ.cjs.map → chunk-C3D2EKGM.cjs.map} +1 -1
- package/dist/{chunk-SRVR5Z2F.js → chunk-EBQALGNN.js} +4 -4
- package/dist/{chunk-SRVR5Z2F.js.map → chunk-EBQALGNN.js.map} +1 -1
- package/dist/{chunk-UHO57W6H.cjs → chunk-EEEPQC2V.cjs} +7 -7
- package/dist/{chunk-UHO57W6H.cjs.map → chunk-EEEPQC2V.cjs.map} +1 -1
- package/dist/{chunk-SRNRUDZ2.cjs → chunk-K4TJAFNZ.cjs} +15 -15
- package/dist/{chunk-SRNRUDZ2.cjs.map → chunk-K4TJAFNZ.cjs.map} +1 -1
- package/dist/{chunk-EAKNCJKL.cjs → chunk-K5H3MT3B.cjs} +6 -6
- package/dist/{chunk-EAKNCJKL.cjs.map → chunk-K5H3MT3B.cjs.map} +1 -1
- package/dist/{chunk-ZSFSSMFT.cjs → chunk-KIL4FXNV.cjs} +75 -75
- package/dist/{chunk-ZSFSSMFT.cjs.map → chunk-KIL4FXNV.cjs.map} +1 -1
- package/dist/{chunk-EH5D56XV.cjs → chunk-MCYRJIZP.cjs} +6 -6
- package/dist/{chunk-EH5D56XV.cjs.map → chunk-MCYRJIZP.cjs.map} +1 -1
- package/dist/{chunk-W2LUCUUP.cjs → chunk-NN4C4AVA.cjs} +9 -3
- package/dist/chunk-NN4C4AVA.cjs.map +1 -0
- package/dist/{chunk-5WKCTOYN.js → chunk-NUIDV2VL.js} +5 -5
- package/dist/{chunk-5WKCTOYN.js.map → chunk-NUIDV2VL.js.map} +1 -1
- package/dist/{chunk-BMKSUZBT.cjs → chunk-NWC75FLU.cjs} +7 -6
- package/dist/chunk-NWC75FLU.cjs.map +1 -0
- package/dist/{chunk-3TECGW34.js → chunk-PDUI6NSB.js} +3 -3
- package/dist/{chunk-3TECGW34.js.map → chunk-PDUI6NSB.js.map} +1 -1
- package/dist/{chunk-YSQC2LEG.cjs → chunk-Q6MFBJ66.cjs} +9 -9
- package/dist/{chunk-YSQC2LEG.cjs.map → chunk-Q6MFBJ66.cjs.map} +1 -1
- package/dist/{chunk-UWTB4U2X.js → chunk-RKYLFJS2.js} +18 -15
- package/dist/chunk-RKYLFJS2.js.map +1 -0
- package/dist/{chunk-II3LKO2G.js → chunk-SHQKQEG2.js} +4 -3
- package/dist/chunk-SHQKQEG2.js.map +1 -0
- package/dist/{chunk-QROAUTDP.js → chunk-SLEXQRTX.js} +3 -3
- package/dist/{chunk-QROAUTDP.js.map → chunk-SLEXQRTX.js.map} +1 -1
- package/dist/{chunk-LAFTYVLN.cjs → chunk-TSMQOXL6.cjs} +55 -55
- package/dist/{chunk-LAFTYVLN.cjs.map → chunk-TSMQOXL6.cjs.map} +1 -1
- package/dist/{chunk-B3KIJAOJ.cjs → chunk-U3YH4FWP.cjs} +185 -185
- package/dist/{chunk-B3KIJAOJ.cjs.map → chunk-U3YH4FWP.cjs.map} +1 -1
- package/dist/{chunk-FZNKE4DK.js → chunk-UGD4IU3X.js} +3 -3
- package/dist/{chunk-FZNKE4DK.js.map → chunk-UGD4IU3X.js.map} +1 -1
- package/dist/{chunk-MCAE3D3S.js → chunk-ULOKD3QT.js} +9 -3
- package/dist/chunk-ULOKD3QT.js.map +1 -0
- package/dist/{chunk-RQFAL5VW.cjs → chunk-VVWXPSQE.cjs} +61 -9
- package/dist/chunk-VVWXPSQE.cjs.map +1 -0
- package/dist/{chunk-5LHPEIQQ.js → chunk-WY4RQDAN.js} +60 -8
- package/dist/chunk-WY4RQDAN.js.map +1 -0
- package/dist/{chunk-445B4SO3.cjs → chunk-XB4RTECX.cjs} +53 -50
- package/dist/chunk-XB4RTECX.cjs.map +1 -0
- package/dist/{chunk-TFV75T4H.js → chunk-XPG4Y2LE.js} +8 -8
- package/dist/{chunk-TFV75T4H.js.map → chunk-XPG4Y2LE.js.map} +1 -1
- package/dist/{chunk-5UAF67E3.js → chunk-ZEV6ZTTJ.js} +6 -6
- package/dist/{chunk-5UAF67E3.js.map → chunk-ZEV6ZTTJ.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +224 -224
- package/dist/docs/references/docs-memory-working-memory.md +1 -1
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +11 -11
- package/dist/harness/index.js +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +19 -1
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/memory/types.d.ts +3 -7
- package/dist/memory/types.d.ts.map +1 -1
- package/dist/models-dev-YCVPUGGP.js +3 -0
- package/dist/{models-dev-F65PLXGJ.js.map → models-dev-YCVPUGGP.js.map} +1 -1
- package/dist/models-dev-ZDDICXZ3.cjs +12 -0
- package/dist/{models-dev-E24MAXL2.cjs.map → models-dev-ZDDICXZ3.cjs.map} +1 -1
- package/dist/netlify-6YMLOPZS.js +3 -0
- package/dist/{netlify-NYUZ5ZTO.js.map → netlify-6YMLOPZS.js.map} +1 -1
- package/dist/netlify-QHUTWBTR.cjs +12 -0
- package/dist/{netlify-FT3VYX27.cjs.map → netlify-QHUTWBTR.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +42 -42
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-DZYIED4J.js +3 -0
- package/dist/{provider-registry-5R2TUINW.js.map → provider-registry-DZYIED4J.js.map} +1 -1
- package/dist/provider-registry-NSDAYLQL.cjs +40 -0
- package/dist/{provider-registry-TVYED7F2.cjs.map → provider-registry-NSDAYLQL.cjs.map} +1 -1
- package/dist/provider-registry.json +56 -4
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +74 -74
- package/dist/storage/index.js +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/dist/workspace/index.cjs +67 -67
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/line-utils.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +19 -1
- package/dist/chunk-445B4SO3.cjs.map +0 -1
- package/dist/chunk-5LHPEIQQ.js.map +0 -1
- package/dist/chunk-BMKSUZBT.cjs.map +0 -1
- package/dist/chunk-II3LKO2G.js.map +0 -1
- package/dist/chunk-MCAE3D3S.js.map +0 -1
- package/dist/chunk-RQFAL5VW.cjs.map +0 -1
- package/dist/chunk-UWTB4U2X.js.map +0 -1
- package/dist/chunk-W2LUCUUP.cjs.map +0 -1
- package/dist/models-dev-E24MAXL2.cjs +0 -12
- package/dist/models-dev-F65PLXGJ.js +0 -3
- package/dist/netlify-FT3VYX27.cjs +0 -12
- package/dist/netlify-NYUZ5ZTO.js +0 -3
- package/dist/provider-registry-5R2TUINW.js +0 -3
- package/dist/provider-registry-TVYED7F2.cjs +0 -40
|
@@ -268,7 +268,7 @@ Schema-based working memory uses **merge semantics**, meaning the agent only nee
|
|
|
268
268
|
## Choosing between template and schema
|
|
269
269
|
|
|
270
270
|
- Use a **template** (Markdown) if you want the agent to maintain memory as a free-form text block, such as a user profile or scratchpad. Templates use **replace semantics** — the agent must provide the complete memory content on each update.
|
|
271
|
-
- Use a **schema** if you need structured, type-safe data that can be validated and programmatically accessed as JSON. Schemas use **merge semantics** — the agent only provides fields to update, and existing fields are preserved.
|
|
271
|
+
- Use a **schema** if you need structured, type-safe data that can be validated and programmatically accessed as JSON. The `workingMemory.schema` field accepts any `PublicSchema`-compatible schema (including Zod v3, Zod v4, JSON Schema, or already-standard schemas). Schemas use **merge semantics** — the agent only provides fields to update, and existing fields are preserved.
|
|
272
272
|
- Only one mode can be active at a time: setting both `template` and `schema` isn't supported.
|
|
273
273
|
|
|
274
274
|
## Example: Multi-step retention
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk4334N37E_cjs = require('../chunk-4334N37E.cjs');
|
|
4
|
+
var chunkXB4RTECX_cjs = require('../chunk-XB4RTECX.cjs');
|
|
5
5
|
var chunk4X35LO4W_cjs = require('../chunk-4X35LO4W.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk4334N37E_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkXB4RTECX_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkXB4RTECX_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
22
22
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-PDUI6NSB.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-RKYLFJS2.js';
|
|
3
3
|
export { listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-BOUXMXZQ.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTSMQOXL6_cjs = require('../../chunk-TSMQOXL6.cjs');
|
|
4
4
|
var chunk4X35LO4W_cjs = require('../../chunk-4X35LO4W.cjs');
|
|
5
5
|
var chunkLIRWMGGI_cjs = require('../../chunk-LIRWMGGI.cjs');
|
|
6
6
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
@@ -236,7 +236,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
239
|
-
var getTraceStep =
|
|
239
|
+
var getTraceStep = chunkTSMQOXL6_cjs.createStep({
|
|
240
240
|
id: "__process-trace-scoring",
|
|
241
241
|
inputSchema: z__default.default.object({
|
|
242
242
|
targets: z__default.default.array(
|
|
@@ -447,7 +447,7 @@ async function attachScoreToSpan({
|
|
|
447
447
|
} catch {
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
var scoreTracesWorkflow =
|
|
450
|
+
var scoreTracesWorkflow = chunkTSMQOXL6_cjs.createWorkflow({
|
|
451
451
|
id: "__batch-scoring-traces",
|
|
452
452
|
inputSchema: z__default.default.object({
|
|
453
453
|
targets: z__default.default.array(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-NUIDV2VL.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-BOUXMXZQ.js';
|
|
3
3
|
import { resolveObservabilityContext } from '../../chunk-GVQJCS5O.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkK4TJAFNZ_cjs = require('../chunk-K4TJAFNZ.cjs');
|
|
4
|
+
var chunkXB4RTECX_cjs = require('../chunk-XB4RTECX.cjs');
|
|
5
|
+
var chunkNWC75FLU_cjs = require('../chunk-NWC75FLU.cjs');
|
|
6
6
|
var chunkNQXA2BUF_cjs = require('../chunk-NQXA2BUF.cjs');
|
|
7
7
|
var chunkVWJ7H3MJ_cjs = require('../chunk-VWJ7H3MJ.cjs');
|
|
8
8
|
var chunk5WBEMKE2_cjs = require('../chunk-5WBEMKE2.cjs');
|
|
@@ -312,7 +312,7 @@ Use this tool when:
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
const workspace = context?.workspace;
|
|
315
|
-
const subagent = new
|
|
315
|
+
const subagent = new chunkXB4RTECX_cjs.Agent({
|
|
316
316
|
id: `subagent-${definition.id}`,
|
|
317
317
|
name: `${definition.name} Subagent`,
|
|
318
318
|
instructions: definition.instructions,
|
|
@@ -320,7 +320,7 @@ Use this tool when:
|
|
|
320
320
|
tools: mergedTools,
|
|
321
321
|
workspace
|
|
322
322
|
});
|
|
323
|
-
const allWorkspaceToolNames = workspace ? new Set(Object.keys(
|
|
323
|
+
const allWorkspaceToolNames = workspace ? new Set(Object.keys(chunkNWC75FLU_cjs.createWorkspaceTools(workspace))) : void 0;
|
|
324
324
|
const allowedWs = definition.allowedWorkspaceTools ? new Set(definition.allowedWorkspaceTools) : void 0;
|
|
325
325
|
const startTime = Date.now();
|
|
326
326
|
emitEvent?.({
|
|
@@ -539,7 +539,7 @@ var Harness = class {
|
|
|
539
539
|
throw new Error("Harness requires at least one agent mode");
|
|
540
540
|
}
|
|
541
541
|
this.currentModeId = defaultMode.id;
|
|
542
|
-
if (config.workspace instanceof
|
|
542
|
+
if (config.workspace instanceof chunkNWC75FLU_cjs.Workspace) {
|
|
543
543
|
this.workspace = config.workspace;
|
|
544
544
|
} else if (typeof config.workspace === "function") {
|
|
545
545
|
this.workspaceFn = config.workspace;
|
|
@@ -558,13 +558,13 @@ var Harness = class {
|
|
|
558
558
|
*/
|
|
559
559
|
async init() {
|
|
560
560
|
if (this.config.storage) {
|
|
561
|
-
this.#internalMastra = new
|
|
561
|
+
this.#internalMastra = new chunkK4TJAFNZ_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
562
562
|
await this.#internalMastra.getStorage().init();
|
|
563
563
|
}
|
|
564
564
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
565
565
|
try {
|
|
566
566
|
if (!this.workspace) {
|
|
567
|
-
this.workspace = new
|
|
567
|
+
this.workspace = new chunkNWC75FLU_cjs.Workspace(this.config.workspace);
|
|
568
568
|
}
|
|
569
569
|
this.emit({ type: "workspace_status_changed", status: "initializing" });
|
|
570
570
|
await this.workspace.init();
|
|
@@ -810,7 +810,7 @@ var Harness = class {
|
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
try {
|
|
813
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
813
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-NSDAYLQL.cjs');
|
|
814
814
|
const registry = PROVIDER_REGISTRY;
|
|
815
815
|
const providerConfig = registry[provider];
|
|
816
816
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -830,7 +830,7 @@ var Harness = class {
|
|
|
830
830
|
*/
|
|
831
831
|
async listAvailableModels() {
|
|
832
832
|
try {
|
|
833
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
833
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-NSDAYLQL.cjs');
|
|
834
834
|
if (!PROVIDER_REGISTRY) return [];
|
|
835
835
|
const registry = PROVIDER_REGISTRY;
|
|
836
836
|
const providers = Object.keys(registry);
|
|
@@ -889,7 +889,7 @@ var Harness = class {
|
|
|
889
889
|
}
|
|
890
890
|
async getProviderApiKeyEnvVar(provider) {
|
|
891
891
|
try {
|
|
892
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
892
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-NSDAYLQL.cjs');
|
|
893
893
|
const registry = PROVIDER_REGISTRY;
|
|
894
894
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
895
895
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/harness/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
3
|
-
import { Workspace, createWorkspaceTools } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-XPG4Y2LE.js';
|
|
2
|
+
import { Agent } from '../chunk-RKYLFJS2.js';
|
|
3
|
+
import { Workspace, createWorkspaceTools } from '../chunk-SHQKQEG2.js';
|
|
4
4
|
import { createTool } from '../chunk-UPXPPD5L.js';
|
|
5
5
|
import { toStandardSchema } from '../chunk-6VAVASZ5.js';
|
|
6
6
|
import { RequestContext } from '../chunk-JGOH7RWL.js';
|
|
@@ -808,7 +808,7 @@ var Harness = class {
|
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
810
|
try {
|
|
811
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
811
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-DZYIED4J.js');
|
|
812
812
|
const registry = PROVIDER_REGISTRY;
|
|
813
813
|
const providerConfig = registry[provider];
|
|
814
814
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -828,7 +828,7 @@ var Harness = class {
|
|
|
828
828
|
*/
|
|
829
829
|
async listAvailableModels() {
|
|
830
830
|
try {
|
|
831
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
831
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-DZYIED4J.js');
|
|
832
832
|
if (!PROVIDER_REGISTRY) return [];
|
|
833
833
|
const registry = PROVIDER_REGISTRY;
|
|
834
834
|
const providers = Object.keys(registry);
|
|
@@ -887,7 +887,7 @@ var Harness = class {
|
|
|
887
887
|
}
|
|
888
888
|
async getProviderApiKeyEnvVar(provider) {
|
|
889
889
|
try {
|
|
890
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
890
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-DZYIED4J.js');
|
|
891
891
|
const registry = PROVIDER_REGISTRY;
|
|
892
892
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
893
893
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK4TJAFNZ_cjs = require('./chunk-K4TJAFNZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkK4TJAFNZ_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/dist/llm/index.cjs
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkKIL4FXNV_cjs = require('../chunk-KIL4FXNV.cjs');
|
|
4
|
+
var chunkU3YH4FWP_cjs = require('../chunk-U3YH4FWP.cjs');
|
|
5
|
+
var chunkQ6MFBJ66_cjs = require('../chunk-Q6MFBJ66.cjs');
|
|
6
|
+
var chunkC3D2EKGM_cjs = require('../chunk-C3D2EKGM.cjs');
|
|
7
|
+
var chunkVVWXPSQE_cjs = require('../chunk-VVWXPSQE.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKIL4FXNV_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKIL4FXNV_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkKIL4FXNV_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkKIL4FXNV_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkKIL4FXNV_cjs.resolveModelConfig; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkU3YH4FWP_cjs.ModelsDevGateway; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkQ6MFBJ66_cjs.NetlifyGateway; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkC3D2EKGM_cjs.MastraModelGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkVVWXPSQE_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkVVWXPSQE_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVVWXPSQE_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { ModelsDevGateway } from '../chunk-
|
|
3
|
-
export { NetlifyGateway } from '../chunk-
|
|
4
|
-
export { MastraModelGateway } from '../chunk-
|
|
5
|
-
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-ZEV6ZTTJ.js';
|
|
2
|
+
export { ModelsDevGateway } from '../chunk-3X5TJK3I.js';
|
|
3
|
+
export { NetlifyGateway } from '../chunk-UGD4IU3X.js';
|
|
4
|
+
export { MastraModelGateway } from '../chunk-SLEXQRTX.js';
|
|
5
|
+
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-WY4RQDAN.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -541,9 +541,12 @@ export type ProviderModelsMap = {
|
|
|
541
541
|
'pixtral-12b-2409',
|
|
542
542
|
'qwen3-235b-a22b-instruct-2507',
|
|
543
543
|
'qwen3-coder-30b-a3b-instruct',
|
|
544
|
+
'qwen3-embedding-8b',
|
|
545
|
+
'qwen3.5-397b-a17b',
|
|
544
546
|
'voxtral-small-24b-2507',
|
|
545
547
|
'whisper-large-v3',
|
|
546
548
|
];
|
|
549
|
+
readonly dinference: readonly ['glm-4.7', 'glm-5', 'gpt-oss-120b'];
|
|
547
550
|
readonly 'kuae-cloud-coding-plan': readonly ['GLM-4.7'];
|
|
548
551
|
readonly upstage: readonly ['solar-mini', 'solar-pro2', 'solar-pro3'];
|
|
549
552
|
readonly inception: readonly ['mercury', 'mercury-2', 'mercury-coder', 'mercury-edit'];
|
|
@@ -2070,6 +2073,8 @@ export type ProviderModelsMap = {
|
|
|
2070
2073
|
'openai/gpt-5.3-chat',
|
|
2071
2074
|
'openai/gpt-5.3-codex',
|
|
2072
2075
|
'openai/gpt-5.4',
|
|
2076
|
+
'openai/gpt-5.4-mini',
|
|
2077
|
+
'openai/gpt-5.4-nano',
|
|
2073
2078
|
'openai/gpt-5.4-pro',
|
|
2074
2079
|
'openai/gpt-oss-120b',
|
|
2075
2080
|
'openai/gpt-oss-20b',
|
|
@@ -2129,6 +2134,7 @@ export type ProviderModelsMap = {
|
|
|
2129
2134
|
'zai/glm-4.7-flash',
|
|
2130
2135
|
'zai/glm-4.7-flashx',
|
|
2131
2136
|
'zai/glm-5',
|
|
2137
|
+
'zai/glm-5-turbo',
|
|
2132
2138
|
];
|
|
2133
2139
|
readonly openai: readonly [
|
|
2134
2140
|
'codex-mini-latest',
|
|
@@ -2161,6 +2167,8 @@ export type ProviderModelsMap = {
|
|
|
2161
2167
|
'gpt-5.3-codex',
|
|
2162
2168
|
'gpt-5.3-codex-spark',
|
|
2163
2169
|
'gpt-5.4',
|
|
2170
|
+
'gpt-5.4-mini',
|
|
2171
|
+
'gpt-5.4-nano',
|
|
2164
2172
|
'gpt-5.4-pro',
|
|
2165
2173
|
'o1',
|
|
2166
2174
|
'o1-mini',
|
|
@@ -2334,6 +2342,16 @@ export type ProviderModelsMap = {
|
|
|
2334
2342
|
'claude-sonnet-4-5-20250929',
|
|
2335
2343
|
'claude-sonnet-4-6',
|
|
2336
2344
|
];
|
|
2345
|
+
readonly 'tencent-coding-plan': readonly [
|
|
2346
|
+
'glm-5',
|
|
2347
|
+
'hunyuan-2.0-instruct',
|
|
2348
|
+
'hunyuan-2.0-thinking',
|
|
2349
|
+
'hunyuan-t1',
|
|
2350
|
+
'hunyuan-turbos',
|
|
2351
|
+
'kimi-k2.5',
|
|
2352
|
+
'minimax-m2.5',
|
|
2353
|
+
'tc-code-latest',
|
|
2354
|
+
];
|
|
2337
2355
|
readonly friendli: readonly [
|
|
2338
2356
|
'MiniMaxAI/MiniMax-M2.1',
|
|
2339
2357
|
'MiniMaxAI/MiniMax-M2.5',
|
|
@@ -3252,6 +3270,7 @@ export type ProviderModelsMap = {
|
|
|
3252
3270
|
'grok-vision-beta',
|
|
3253
3271
|
];
|
|
3254
3272
|
readonly 'alibaba-cn': readonly [
|
|
3273
|
+
'MiniMax-M2.5',
|
|
3255
3274
|
'MiniMax/MiniMax-M2.5',
|
|
3256
3275
|
'deepseek-r1',
|
|
3257
3276
|
'deepseek-r1-0528',
|
|
@@ -3268,7 +3287,6 @@ export type ProviderModelsMap = {
|
|
|
3268
3287
|
'kimi-k2-thinking',
|
|
3269
3288
|
'kimi-k2.5',
|
|
3270
3289
|
'kimi/kimi-k2.5',
|
|
3271
|
-
'minimax-m2.5',
|
|
3272
3290
|
'moonshot-kimi-k2-instruct',
|
|
3273
3291
|
'qvq-max',
|
|
3274
3292
|
'qwen-deep-research',
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXB4RTECX_cjs = require('../chunk-XB4RTECX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkXB4RTECX_cjs.createScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "formatCheckFeedback", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXB4RTECX_cjs.formatCheckFeedback; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "formatCompletionFeedback", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXB4RTECX_cjs.formatCompletionFeedback; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "formatStreamCompletionFeedback", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXB4RTECX_cjs.formatStreamCompletionFeedback; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "formatValidationFeedback", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXB4RTECX_cjs.formatValidationFeedback; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "generateFinalResult", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXB4RTECX_cjs.generateFinalResult; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "generateStructuredFinalResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkXB4RTECX_cjs.generateStructuredFinalResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "loop", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkXB4RTECX_cjs.loop; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "runChecks", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXB4RTECX_cjs.runChecks; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "runCompletionScorers", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkXB4RTECX_cjs.runCompletionScorers; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "runDefaultCompletionCheck", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkXB4RTECX_cjs.runDefaultCompletionCheck; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "runStreamCompletionScorers", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkXB4RTECX_cjs.runStreamCompletionScorers; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "runValidation", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkXB4RTECX_cjs.runValidation; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-
|
|
1
|
+
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-RKYLFJS2.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK4TJAFNZ_cjs = require('../chunk-K4TJAFNZ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkK4TJAFNZ_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED
package/dist/memory/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXB4RTECX_cjs = require('../chunk-XB4RTECX.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkXB4RTECX_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkXB4RTECX_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MockMemory", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkXB4RTECX_cjs.MockMemory; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "WORKING_MEMORY_END_TAG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkXB4RTECX_cjs.WORKING_MEMORY_END_TAG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WORKING_MEMORY_START_TAG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkXB4RTECX_cjs.WORKING_MEMORY_START_TAG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "extractWorkingMemoryContent", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkXB4RTECX_cjs.extractWorkingMemoryContent; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "extractWorkingMemoryTags", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkXB4RTECX_cjs.extractWorkingMemoryTags; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getThreadOMMetadata", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkXB4RTECX_cjs.getThreadOMMetadata; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isObservationalMemoryEnabled", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXB4RTECX_cjs.isObservationalMemoryEnabled; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkXB4RTECX_cjs.memoryDefaultOptions; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "parseMemoryRequestContext", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkXB4RTECX_cjs.parseMemoryRequestContext; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "removeWorkingMemoryTags", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkXB4RTECX_cjs.removeWorkingMemoryTags; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "setThreadOMMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkXB4RTECX_cjs.setThreadOMMetadata; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-RKYLFJS2.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/memory/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { EmbeddingModelId } from '../llm/model/index.js';
|
|
|
6
6
|
import type { ModelRouterModelId } from '../llm/model/provider-registry.js';
|
|
7
7
|
import type { MastraLanguageModel, MastraModelConfig } from '../llm/model/shared.types.js';
|
|
8
8
|
import type { RequestContext } from '../request-context/index.js';
|
|
9
|
-
import type {
|
|
9
|
+
import type { PublicSchema } from '../schema/index.js';
|
|
10
10
|
import type { MastraCompositeStore } from '../storage/index.js';
|
|
11
11
|
import type { DynamicArgument } from '../types/index.js';
|
|
12
12
|
import type { MastraEmbeddingModel, MastraEmbeddingOptions, MastraVector } from '../vector/index.js';
|
|
@@ -115,10 +115,6 @@ type TemplateWorkingMemory = BaseWorkingMemory & {
|
|
|
115
115
|
version?: 'stable' | 'vnext';
|
|
116
116
|
};
|
|
117
117
|
type SchemaWorkingMemory = BaseWorkingMemory & {
|
|
118
|
-
schema: StandardSchemaWithJSON;
|
|
119
|
-
template?: never;
|
|
120
|
-
};
|
|
121
|
-
type PublicSchemaWorkingMemory = BaseWorkingMemory & {
|
|
122
118
|
schema: PublicSchema;
|
|
123
119
|
template?: never;
|
|
124
120
|
};
|
|
@@ -126,7 +122,7 @@ type WorkingMemoryNone = BaseWorkingMemory & {
|
|
|
126
122
|
template?: never;
|
|
127
123
|
schema?: never;
|
|
128
124
|
};
|
|
129
|
-
export type WorkingMemory = TemplateWorkingMemory | SchemaWorkingMemory |
|
|
125
|
+
export type WorkingMemory = TemplateWorkingMemory | SchemaWorkingMemory | WorkingMemoryNone;
|
|
130
126
|
/**
|
|
131
127
|
* Vector index configuration for optimizing semantic recall performance.
|
|
132
128
|
*
|
|
@@ -825,7 +821,7 @@ export type MemoryConfig = BaseMemoryConfig & {
|
|
|
825
821
|
* }
|
|
826
822
|
* ```
|
|
827
823
|
*/
|
|
828
|
-
workingMemory?: TemplateWorkingMemory |
|
|
824
|
+
workingMemory?: TemplateWorkingMemory | SchemaWorkingMemory | WorkingMemoryNone;
|
|
829
825
|
};
|
|
830
826
|
/**
|
|
831
827
|
* Configuration for Mastra's memory system.
|