@mastra/core 1.21.0 → 1.22.0-alpha.1
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 +39 -0
- 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/adapters/AIV5Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- 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/{chunk-TLEMLJH7.cjs → chunk-2AARITCG.cjs} +81 -60
- package/dist/chunk-2AARITCG.cjs.map +1 -0
- package/dist/{chunk-IZNWC32Y.js → chunk-2NAF5HJR.js} +4 -4
- package/dist/{chunk-IZNWC32Y.js.map → chunk-2NAF5HJR.js.map} +1 -1
- package/dist/{chunk-WI4KUV2M.js → chunk-2SIZB5GD.js} +4 -4
- package/dist/{chunk-WI4KUV2M.js.map → chunk-2SIZB5GD.js.map} +1 -1
- package/dist/{chunk-HFH7JKN3.js → chunk-6ALBWWMT.js} +4 -4
- package/dist/{chunk-HFH7JKN3.js.map → chunk-6ALBWWMT.js.map} +1 -1
- package/dist/{chunk-7ONDK22Y.js → chunk-6MK2HL3B.js} +16 -9
- package/dist/chunk-6MK2HL3B.js.map +1 -0
- package/dist/{chunk-63ZXVPM5.cjs → chunk-73LGQD54.cjs} +10 -10
- package/dist/{chunk-63ZXVPM5.cjs.map → chunk-73LGQD54.cjs.map} +1 -1
- package/dist/{chunk-6ZRIEGLG.cjs → chunk-7TQPGNH7.cjs} +5 -5
- package/dist/{chunk-6ZRIEGLG.cjs.map → chunk-7TQPGNH7.cjs.map} +1 -1
- package/dist/{chunk-YPMF3QLA.cjs → chunk-AVRRH42W.cjs} +233 -233
- package/dist/chunk-AVRRH42W.cjs.map +1 -0
- package/dist/{chunk-56RUNELD.js → chunk-CKN3JVV3.js} +3 -3
- package/dist/{chunk-56RUNELD.js.map → chunk-CKN3JVV3.js.map} +1 -1
- package/dist/{chunk-4ALVPSUM.cjs → chunk-DIHV46DM.cjs} +7 -7
- package/dist/{chunk-4ALVPSUM.cjs.map → chunk-DIHV46DM.cjs.map} +1 -1
- package/dist/{chunk-UWYGTSWV.cjs → chunk-DOPULILR.cjs} +34 -30
- package/dist/chunk-DOPULILR.cjs.map +1 -0
- package/dist/{chunk-WG4GNZZZ.js → chunk-FXONBE4Y.js} +3 -3
- package/dist/{chunk-WG4GNZZZ.js.map → chunk-FXONBE4Y.js.map} +1 -1
- package/dist/{chunk-QYCMMBOV.js → chunk-GQ5YBJK7.js} +147 -17
- package/dist/{chunk-QYCMMBOV.js.map → chunk-GQ5YBJK7.js.map} +1 -1
- package/dist/{chunk-LOA2BVRK.js → chunk-HJBVUY76.js} +230 -230
- package/dist/chunk-HJBVUY76.js.map +1 -0
- package/dist/{chunk-3FASTXAM.cjs → chunk-I2O2QKDG.cjs} +85 -77
- package/dist/chunk-I2O2QKDG.cjs.map +1 -0
- package/dist/{chunk-OBXLCUSC.cjs → chunk-K7TAXUW5.cjs} +6 -6
- package/dist/{chunk-OBXLCUSC.cjs.map → chunk-K7TAXUW5.cjs.map} +1 -1
- package/dist/{chunk-UDRSF2TK.cjs → chunk-L3GI3EI5.cjs} +55 -55
- package/dist/{chunk-UDRSF2TK.cjs.map → chunk-L3GI3EI5.cjs.map} +1 -1
- package/dist/{chunk-NRA3BO5W.js → chunk-MOVQYN2F.js} +34 -30
- package/dist/chunk-MOVQYN2F.js.map +1 -0
- package/dist/{chunk-UOJUR3HB.cjs → chunk-SH3TVIAI.cjs} +186 -185
- package/dist/{chunk-UOJUR3HB.cjs.map → chunk-SH3TVIAI.cjs.map} +1 -1
- package/dist/{chunk-F3T776ZA.js → chunk-SVS5U4HA.js} +42 -21
- package/dist/chunk-SVS5U4HA.js.map +1 -0
- package/dist/{chunk-KXITWMFN.js → chunk-SYJJZDUK.js} +4 -4
- package/dist/{chunk-KXITWMFN.js.map → chunk-SYJJZDUK.js.map} +1 -1
- package/dist/{chunk-P2JYPYF6.cjs → chunk-VQP7UFAY.cjs} +23 -16
- package/dist/chunk-VQP7UFAY.cjs.map +1 -0
- package/dist/{chunk-NT2E64KG.cjs → chunk-WHNDWMDZ.cjs} +6 -6
- package/dist/{chunk-NT2E64KG.cjs.map → chunk-WHNDWMDZ.cjs.map} +1 -1
- package/dist/{chunk-UBRTW3SO.cjs → chunk-WID3XI3A.cjs} +12 -3
- package/dist/chunk-WID3XI3A.cjs.map +1 -0
- package/dist/{chunk-ZEZNT32H.js → chunk-X4HQ25SA.js} +12 -4
- package/dist/chunk-X4HQ25SA.js.map +1 -0
- package/dist/{chunk-5WJWEAD2.cjs → chunk-XL636GZV.cjs} +148 -17
- package/dist/chunk-XL636GZV.cjs.map +1 -0
- package/dist/{chunk-CSD7PXFP.js → chunk-YAK4TBQR.js} +5 -5
- package/dist/{chunk-CSD7PXFP.js.map → chunk-YAK4TBQR.js.map} +1 -1
- package/dist/{chunk-Z5ABABPJ.js → chunk-YKBJTINY.js} +17 -10
- package/dist/chunk-YKBJTINY.js.map +1 -0
- 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 +286 -268
- 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 +36 -20
- package/dist/llm/index.d.ts +5 -4
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/gateways/base.d.ts +5 -0
- package/dist/llm/model/gateways/base.d.ts.map +1 -1
- package/dist/llm/model/gateways/constants.d.ts +1 -0
- package/dist/llm/model/gateways/constants.d.ts.map +1 -1
- package/dist/llm/model/gateways/index.d.ts +1 -0
- package/dist/llm/model/gateways/index.d.ts.map +1 -1
- package/dist/llm/model/gateways/mastra.d.ts +25 -0
- package/dist/llm/model/gateways/mastra.d.ts.map +1 -0
- package/dist/llm/model/provider-registry.d.ts.map +1 -1
- package/dist/llm/model/provider-types.generated.d.ts +1 -0
- package/dist/llm/model/registry-generator.d.ts.map +1 -1
- package/dist/llm/model/router.d.ts +4 -2
- package/dist/llm/model/router.d.ts.map +1 -1
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-GY5HXMDW.js +3 -0
- package/dist/mastra-GY5HXMDW.js.map +1 -0
- package/dist/mastra-UBBD2C4R.cjs +12 -0
- package/dist/mastra-UBBD2C4R.cjs.map +1 -0
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-JXSMUEMX.js +3 -0
- package/dist/{models-dev-IF67OFXR.js.map → models-dev-JXSMUEMX.js.map} +1 -1
- package/dist/models-dev-TVW7HD3S.cjs +12 -0
- package/dist/{models-dev-ARAO7S6W.cjs.map → models-dev-TVW7HD3S.cjs.map} +1 -1
- package/dist/netlify-AEHADB4C.cjs +12 -0
- package/dist/{netlify-XPEVGT6A.cjs.map → netlify-AEHADB4C.cjs.map} +1 -1
- package/dist/netlify-QVP7HF5L.js +3 -0
- package/dist/{netlify-G5DNBXIP.js.map → netlify-QVP7HF5L.js.map} +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-DZ6XQUKC.cjs +40 -0
- package/dist/{provider-registry-ZAJJQN5I.cjs.map → provider-registry-DZ6XQUKC.cjs.map} +1 -1
- package/dist/provider-registry-VKWSCXTI.js +3 -0
- package/dist/{provider-registry-MQVQ6NJP.js.map → provider-registry-VKWSCXTI.js.map} +1 -1
- package/dist/{registry-generator-BRPCL2LG.js → registry-generator-QMLHG25G.js} +10 -3
- package/dist/registry-generator-QMLHG25G.js.map +1 -0
- package/dist/{registry-generator-PUWKZKVW.cjs → registry-generator-VNYH6GDH.cjs} +10 -3
- package/dist/registry-generator-VNYH6GDH.cjs.map +1 -0
- 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/aisdk/v5/transform.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/stream/types.d.ts +1 -0
- package/dist/stream/types.d.ts.map +1 -1
- 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 +68 -68
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/sandbox/local-process-manager.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +1 -0
- package/dist/chunk-3FASTXAM.cjs.map +0 -1
- package/dist/chunk-5WJWEAD2.cjs.map +0 -1
- package/dist/chunk-7ONDK22Y.js.map +0 -1
- package/dist/chunk-F3T776ZA.js.map +0 -1
- package/dist/chunk-LOA2BVRK.js.map +0 -1
- package/dist/chunk-NRA3BO5W.js.map +0 -1
- package/dist/chunk-P2JYPYF6.cjs.map +0 -1
- package/dist/chunk-TLEMLJH7.cjs.map +0 -1
- package/dist/chunk-UBRTW3SO.cjs.map +0 -1
- package/dist/chunk-UWYGTSWV.cjs.map +0 -1
- package/dist/chunk-YPMF3QLA.cjs.map +0 -1
- package/dist/chunk-Z5ABABPJ.js.map +0 -1
- package/dist/chunk-ZEZNT32H.js.map +0 -1
- package/dist/models-dev-ARAO7S6W.cjs +0 -12
- package/dist/models-dev-IF67OFXR.js +0 -3
- package/dist/netlify-G5DNBXIP.js +0 -3
- package/dist/netlify-XPEVGT6A.cjs +0 -12
- package/dist/provider-registry-MQVQ6NJP.js +0 -3
- package/dist/provider-registry-ZAJJQN5I.cjs +0 -40
- package/dist/registry-generator-BRPCL2LG.js.map +0 -1
- package/dist/registry-generator-PUWKZKVW.cjs.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { createWorkspaceTools, createSkillTools, getTiktoken, BM25Index } from './chunk-
|
|
1
|
+
import { createWorkspaceTools, createSkillTools, getTiktoken, BM25Index } from './chunk-HJBVUY76.js';
|
|
2
2
|
import { DefaultVoice } from './chunk-I5IR6752.js';
|
|
3
3
|
import { PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL } from './chunk-2QXNHEDL.js';
|
|
4
|
-
import { InMemoryStore } from './chunk-
|
|
5
|
-
import { MessageList, coreContentToString, DefaultGeneratedFile, DefaultGeneratedFileWithType, sanitizeToolName } from './chunk-
|
|
4
|
+
import { InMemoryStore } from './chunk-FXONBE4Y.js';
|
|
5
|
+
import { MessageList, coreContentToString, DefaultGeneratedFile, DefaultGeneratedFileWithType, sanitizeToolName } from './chunk-MOVQYN2F.js';
|
|
6
6
|
import { parsePartialJson, isDeepEqualData, stepCountIs } from './chunk-2PHG443D.js';
|
|
7
7
|
import { generateId, APICallError, tool, asSchema } from './chunk-6PALJNKG.js';
|
|
8
8
|
import { executeHook } from './chunk-L54GIUCB.js';
|
|
9
|
-
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-
|
|
9
|
+
import { resolveModelConfig, ModelRouterEmbeddingModel, ModelRouterLanguageModel } from './chunk-YKBJTINY.js';
|
|
10
10
|
import { MastraLLMV1 } from './chunk-KYIYBC6A.js';
|
|
11
11
|
import { noopLogger } from './chunk-C4VH5RKF.js';
|
|
12
12
|
import { EventEmitterPubSub } from './chunk-X2HAI3OX.js';
|
|
@@ -3112,7 +3112,7 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
3112
3112
|
// complicated to do this in this PR, it will require a much bigger change.
|
|
3113
3113
|
uiMessages: messageList.get.response.aiV5.ui()
|
|
3114
3114
|
},
|
|
3115
|
-
providerMetadata
|
|
3115
|
+
providerMetadata: providerMetadata ?? chunk.payload.providerMetadata
|
|
3116
3116
|
};
|
|
3117
3117
|
await options?.onStepFinish?.({
|
|
3118
3118
|
...self.#model.modelId && self.#model.provider && self.#model.version ? { model: self.#model } : {},
|
|
@@ -3191,6 +3191,7 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
3191
3191
|
if (chunk.payload.stepResult.reason) {
|
|
3192
3192
|
self.#finishReason = chunk.payload.stepResult.reason;
|
|
3193
3193
|
}
|
|
3194
|
+
const finalProviderMetadata = chunk.payload.metadata?.providerMetadata ?? chunk.payload.providerMetadata;
|
|
3194
3195
|
if (chunk.payload.stepResult.reason === "tripwire") {
|
|
3195
3196
|
const outputSteps = chunk.payload.output?.steps;
|
|
3196
3197
|
const lastStep = outputSteps?.[outputSteps?.length - 1];
|
|
@@ -3308,10 +3309,14 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
3308
3309
|
}
|
|
3309
3310
|
}
|
|
3310
3311
|
const reasoningText = self.#bufferedReasoning.length > 0 ? self.#bufferedReasoning.map((reasoningPart) => reasoningPart.payload.text).join("") : void 0;
|
|
3312
|
+
const baseFinishStep = self.#bufferedSteps[self.#bufferedSteps.length - 1];
|
|
3313
|
+
if (baseFinishStep && baseFinishStep.providerMetadata === void 0 && finalProviderMetadata !== void 0) {
|
|
3314
|
+
baseFinishStep.providerMetadata = finalProviderMetadata;
|
|
3315
|
+
}
|
|
3311
3316
|
this.resolvePromises({
|
|
3312
3317
|
usage: self.#usageCount,
|
|
3313
3318
|
warnings: self.#warnings,
|
|
3314
|
-
providerMetadata:
|
|
3319
|
+
providerMetadata: finalProviderMetadata,
|
|
3315
3320
|
response: { ...response, dbMessages: self.messageList.get.response.db() },
|
|
3316
3321
|
request: self.#request || {},
|
|
3317
3322
|
reasoningText,
|
|
@@ -3326,11 +3331,10 @@ var MastraModelOutput = class extends MastraBase {
|
|
|
3326
3331
|
suspendPayload: void 0,
|
|
3327
3332
|
resumeSchema: void 0
|
|
3328
3333
|
});
|
|
3329
|
-
const baseFinishStep = self.#bufferedSteps[self.#bufferedSteps.length - 1];
|
|
3330
3334
|
if (baseFinishStep) {
|
|
3331
3335
|
const onFinishPayload = {
|
|
3332
3336
|
// StepResult properties from baseFinishStep
|
|
3333
|
-
providerMetadata: baseFinishStep.providerMetadata,
|
|
3337
|
+
providerMetadata: baseFinishStep.providerMetadata ?? finalProviderMetadata,
|
|
3334
3338
|
text: self.#bufferedText.join(""),
|
|
3335
3339
|
warnings: baseFinishStep.warnings ?? [],
|
|
3336
3340
|
finishReason: chunk.payload.stepResult.reason,
|
|
@@ -4522,6 +4526,7 @@ function convertFullStreamChunkToMastra(value, ctx) {
|
|
|
4522
4526
|
runId: ctx.runId,
|
|
4523
4527
|
from: "AGENT" /* AGENT */,
|
|
4524
4528
|
payload: {
|
|
4529
|
+
providerMetadata: value.providerMetadata,
|
|
4525
4530
|
stepResult: {
|
|
4526
4531
|
reason: normalizeFinishReason(value.finishReason)
|
|
4527
4532
|
},
|
|
@@ -4532,7 +4537,11 @@ function convertFullStreamChunkToMastra(value, ctx) {
|
|
|
4532
4537
|
metadata: {
|
|
4533
4538
|
providerMetadata: value.providerMetadata
|
|
4534
4539
|
},
|
|
4535
|
-
messages
|
|
4540
|
+
messages: messages ?? {
|
|
4541
|
+
all: [],
|
|
4542
|
+
user: [],
|
|
4543
|
+
nonUser: []
|
|
4544
|
+
},
|
|
4536
4545
|
...rest
|
|
4537
4546
|
}
|
|
4538
4547
|
};
|
|
@@ -4676,7 +4685,7 @@ function convertMastraChunkToAISDKv5({
|
|
|
4676
4685
|
providerMetadata: chunk.payload.providerMetadata
|
|
4677
4686
|
};
|
|
4678
4687
|
case "step-finish": {
|
|
4679
|
-
const { request: _request, providerMetadata, ...rest2 } = chunk.payload.metadata;
|
|
4688
|
+
const { request: _request, providerMetadata: metadataProviderMetadata, ...rest2 } = chunk.payload.metadata;
|
|
4680
4689
|
return {
|
|
4681
4690
|
type: "finish-step",
|
|
4682
4691
|
response: {
|
|
@@ -4687,7 +4696,7 @@ function convertMastraChunkToAISDKv5({
|
|
|
4687
4696
|
},
|
|
4688
4697
|
usage: chunk.payload.output.usage,
|
|
4689
4698
|
finishReason: chunk.payload.stepResult.reason,
|
|
4690
|
-
providerMetadata
|
|
4699
|
+
providerMetadata: metadataProviderMetadata ?? chunk.payload.providerMetadata
|
|
4691
4700
|
};
|
|
4692
4701
|
}
|
|
4693
4702
|
case "text-delta":
|
|
@@ -12695,7 +12704,7 @@ async function processOutputStream({
|
|
|
12695
12704
|
break;
|
|
12696
12705
|
case "finish":
|
|
12697
12706
|
runState.setState({
|
|
12698
|
-
providerOptions: chunk.payload.metadata.providerMetadata,
|
|
12707
|
+
providerOptions: chunk.payload.metadata?.providerMetadata ?? chunk.payload.providerMetadata,
|
|
12699
12708
|
stepResult: {
|
|
12700
12709
|
reason: chunk.payload.reason,
|
|
12701
12710
|
logprobs: chunk.payload.logprobs,
|
|
@@ -13135,9 +13144,19 @@ Analyse the suspended tools: ${JSON.stringify(suspendedTools)}, using the messag
|
|
|
13135
13144
|
modelSettings: { ...currentStep.modelSettings, maxRetries: modelConfig.maxRetries },
|
|
13136
13145
|
includeRawChunks,
|
|
13137
13146
|
structuredOutput: currentStep.structuredOutput,
|
|
13138
|
-
// Merge headers:
|
|
13139
|
-
//
|
|
13140
|
-
headers:
|
|
13147
|
+
// Merge headers: memory context first, then modelConfig headers, then modelSettings overrides
|
|
13148
|
+
// x-thread-id / x-resource-id enable server-side memory enrichment (e.g. Memory Gateway)
|
|
13149
|
+
headers: (() => {
|
|
13150
|
+
const memoryHeaders = {};
|
|
13151
|
+
if (_internal?.threadId) memoryHeaders["x-thread-id"] = _internal.threadId;
|
|
13152
|
+
if (_internal?.resourceId) memoryHeaders["x-resource-id"] = _internal.resourceId;
|
|
13153
|
+
const merged = {
|
|
13154
|
+
...memoryHeaders,
|
|
13155
|
+
...modelHeaders,
|
|
13156
|
+
...currentStep.modelSettings?.headers
|
|
13157
|
+
};
|
|
13158
|
+
return Object.keys(merged).length > 0 ? merged : void 0;
|
|
13159
|
+
})(),
|
|
13141
13160
|
methodType,
|
|
13142
13161
|
generateId: _internal?.generateId,
|
|
13143
13162
|
onResult: ({
|
|
@@ -18760,7 +18779,7 @@ function createPrepareMemoryStep({
|
|
|
18760
18779
|
}
|
|
18761
18780
|
return {
|
|
18762
18781
|
threadExists: false,
|
|
18763
|
-
thread
|
|
18782
|
+
thread,
|
|
18764
18783
|
messageList,
|
|
18765
18784
|
processorStates,
|
|
18766
18785
|
tripwire: tripwire2
|
|
@@ -22234,13 +22253,15 @@ ${effectiveInstructions}`;
|
|
|
22234
22253
|
});
|
|
22235
22254
|
const resourceId = resourceIdFromContext || options.memory?.resource || snapshotMemoryInfo?.resourceId;
|
|
22236
22255
|
const memoryConfig = options.memory?.options;
|
|
22237
|
-
if (resourceId && threadFromArgs && !this.hasOwnMemory()) {
|
|
22238
|
-
this.logger.warn("No memory is configured but resourceId and threadId were passed in args", { agent: this.name });
|
|
22239
|
-
}
|
|
22240
22256
|
const llm = await this.getLLM({
|
|
22241
22257
|
requestContext,
|
|
22242
22258
|
model: options.model
|
|
22243
22259
|
});
|
|
22260
|
+
const resolvedModel = llm.getModel();
|
|
22261
|
+
const isGatewayModel = resolvedModel instanceof ModelRouterLanguageModel && resolvedModel.gatewayId === "mastra";
|
|
22262
|
+
if (resourceId && threadFromArgs && !this.hasOwnMemory() && !isGatewayModel) {
|
|
22263
|
+
this.logger.warn("No memory is configured but resourceId and threadId were passed in args", { agent: this.name });
|
|
22264
|
+
}
|
|
22244
22265
|
if ("structuredOutput" in options && options.structuredOutput?.schema && !options.structuredOutput?.model) {
|
|
22245
22266
|
const structuredOutputModel = llm.getModel();
|
|
22246
22267
|
const targetProvider = structuredOutputModel.provider;
|
|
@@ -27516,5 +27537,5 @@ var MockMemory = class extends MastraMemory {
|
|
|
27516
27537
|
};
|
|
27517
27538
|
|
|
27518
27539
|
export { Agent, AgentsMDInjector, BaseProcessor, BatchPartsProcessor, ChunkFrom, DefaultExecutionEngine, ExecutionEngine, FilePartSchema, ImagePartSchema, LanguageDetector, MastraAgentNetworkStream, MastraMemory, MastraModelOutput, MastraScorer, MemoryProcessor, MessageContentSchema, MessageHistory, MessagePartSchema, MockMemory, ModerationProcessor, PIIDetector, ProcessorInputPhaseSchema, ProcessorInputStepPhaseSchema, ProcessorMessageContentSchema, ProcessorMessageSchema, ProcessorOutputResultPhaseSchema, ProcessorOutputStepPhaseSchema, ProcessorOutputStreamPhaseSchema, ProcessorRunner, ProcessorState, ProcessorStepInputSchema, ProcessorStepOutputSchema, ProcessorStepSchema, PromptInjectionDetector, ReasoningPartSchema, Run, SemanticRecall, SkillSearchProcessor, SkillsProcessor, SourcePartSchema, StepStartPartSchema, StructuredOutputProcessor, SystemPromptScrubber, TextPartSchema, TokenLimiterProcessor, ToolCallFilter, ToolInvocationPartSchema, ToolSearchProcessor, TripWire, UnicodeNormalizer, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, Workflow, WorkflowRunOutput, WorkingMemory, WorkspaceInstructionsProcessor, augmentWithInit, cleanStepResult, cloneStep, cloneWorkflow, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createDeprecationProxy, createScorer, createStep, createTimeTravelExecutionParams, createWorkflow, extractWorkingMemoryContent, extractWorkingMemoryTags, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, forwardAgentStreamChunk, generateFinalResult, generateStructuredFinalResult, getResumeLabelsByStepId, getStepIds, getStepResult, getThreadOMMetadata, globalEmbeddingCache, hydrateSerializedStepErrors, isObservationalMemoryEnabled, isProcessor, isProcessorWorkflow, isSupportedLanguageModel, loop, mapVariable, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, resolveThreadIdFromArgs, runChecks, runCompletionScorers, runCountDeprecationMessage, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation, setThreadOMMetadata, supportedLanguageModelSpecifications, tryGenerateWithJsonFallback, tryStreamWithJsonFallback, validateStepInput, validateStepRequestContext, validateStepResumeData, validateStepStateData, validateStepSuspendData };
|
|
27519
|
-
//# sourceMappingURL=chunk-
|
|
27520
|
-
//# sourceMappingURL=chunk-
|
|
27540
|
+
//# sourceMappingURL=chunk-SVS5U4HA.js.map
|
|
27541
|
+
//# sourceMappingURL=chunk-SVS5U4HA.js.map
|