@mastra/core 0.9.3-alpha.1 → 0.9.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/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-5FZR2ED6.cjs → chunk-2PLTE53B.cjs} +17 -7
- package/dist/{chunk-CBSE7QQX.cjs → chunk-QQFFJTJ4.cjs} +2 -2
- package/dist/{chunk-LIJBCNTU.js → chunk-SONEVGEJ.js} +1 -1
- package/dist/{chunk-KA5ISUNY.js → chunk-XYP6MY7U.js} +17 -7
- package/dist/index.cjs +28 -28
- package/dist/index.js +4 -4
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/workflows/index.cjs +22 -22
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +2 -2
- package/dist/workflows/vNext/index.js +1 -1
- package/package.json +2 -2
package/dist/agent/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PLTE53B_cjs = require('../chunk-2PLTE53B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Agent", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk2PLTE53B_cjs.Agent; }
|
|
10
10
|
});
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-XYP6MY7U.js';
|
|
@@ -417,13 +417,13 @@ exports.Agent = class Agent extends (_a = chunkRO52JMKQ_cjs.MastraBase) {
|
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
getResponseMessages({
|
|
420
|
-
|
|
420
|
+
messages,
|
|
421
421
|
threadId,
|
|
422
422
|
resourceId,
|
|
423
423
|
now
|
|
424
424
|
}) {
|
|
425
|
-
if (!
|
|
426
|
-
const messagesArray = Array.isArray(
|
|
425
|
+
if (!messages) return [];
|
|
426
|
+
const messagesArray = Array.isArray(messages) ? messages : [messages];
|
|
427
427
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
428
428
|
const messageId = crypto$1.randomUUID();
|
|
429
429
|
let toolCallIds;
|
|
@@ -833,9 +833,8 @@ exports.Agent = class Agent extends (_a = chunkRO52JMKQ_cjs.MastraBase) {
|
|
|
833
833
|
if (memory && resourceId && thread) {
|
|
834
834
|
try {
|
|
835
835
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
836
|
-
const newMessages = userMessage ? [userMessage] : messages;
|
|
837
836
|
const now = Date.now();
|
|
838
|
-
const threadMessages = this.sanitizeResponseMessages(chunkFXAV2WYX_cjs.ensureAllMessagesAreCoreMessages(
|
|
837
|
+
const threadMessages = this.sanitizeResponseMessages(chunkFXAV2WYX_cjs.ensureAllMessagesAreCoreMessages(messages)).map((u, index) => {
|
|
839
838
|
return {
|
|
840
839
|
id: this.getMemory()?.generateId(),
|
|
841
840
|
createdAt: new Date(now + index),
|
|
@@ -864,18 +863,29 @@ exports.Agent = class Agent extends (_a = chunkRO52JMKQ_cjs.MastraBase) {
|
|
|
864
863
|
title
|
|
865
864
|
});
|
|
866
865
|
})();
|
|
866
|
+
let responseMessages = result.response.messages;
|
|
867
|
+
if (!responseMessages && result.object) {
|
|
868
|
+
responseMessages = [{
|
|
869
|
+
role: "assistant",
|
|
870
|
+
content: [{
|
|
871
|
+
type: "text",
|
|
872
|
+
text: outputText
|
|
873
|
+
}]
|
|
874
|
+
}];
|
|
875
|
+
}
|
|
867
876
|
await memory.saveMessages({
|
|
868
877
|
messages: [...threadMessages, ...this.getResponseMessages({
|
|
869
878
|
threadId: threadId2,
|
|
870
879
|
resourceId,
|
|
871
|
-
|
|
880
|
+
messages: responseMessages,
|
|
872
881
|
now: dateResponseMessagesFrom
|
|
873
882
|
})],
|
|
874
883
|
memoryConfig: memoryConfig2
|
|
875
884
|
});
|
|
876
885
|
} catch (e) {
|
|
886
|
+
const message = e instanceof Error ? e.message : JSON.stringify(e);
|
|
877
887
|
this.logger.error("Error saving response", {
|
|
878
|
-
error:
|
|
888
|
+
error: message,
|
|
879
889
|
runId: runId2,
|
|
880
890
|
result: resToLog,
|
|
881
891
|
threadId: threadId2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PLTE53B_cjs = require('./chunk-2PLTE53B.cjs');
|
|
4
4
|
var cohereAi = require('cohere-ai');
|
|
5
5
|
|
|
6
6
|
var CohereRelevanceScorer = class {
|
|
@@ -38,7 +38,7 @@ Relevance score (0-1):`;
|
|
|
38
38
|
var MastraAgentRelevanceScorer = class {
|
|
39
39
|
agent;
|
|
40
40
|
constructor(name, model) {
|
|
41
|
-
this.agent = new
|
|
41
|
+
this.agent = new chunk2PLTE53B_cjs.Agent({
|
|
42
42
|
name: `Relevance Scorer ${name}`,
|
|
43
43
|
instructions: `You are a specialized agent for evaluating the relevance of text to queries.
|
|
44
44
|
Your task is to rate how well a text passage answers a given query.
|
|
@@ -410,13 +410,13 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
getResponseMessages({
|
|
413
|
-
|
|
413
|
+
messages,
|
|
414
414
|
threadId,
|
|
415
415
|
resourceId,
|
|
416
416
|
now
|
|
417
417
|
}) {
|
|
418
|
-
if (!
|
|
419
|
-
const messagesArray = Array.isArray(
|
|
418
|
+
if (!messages) return [];
|
|
419
|
+
const messagesArray = Array.isArray(messages) ? messages : [messages];
|
|
420
420
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
421
421
|
const messageId = randomUUID();
|
|
422
422
|
let toolCallIds;
|
|
@@ -826,9 +826,8 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
826
826
|
if (memory && resourceId && thread) {
|
|
827
827
|
try {
|
|
828
828
|
const userMessage = this.getMostRecentUserMessage(messages);
|
|
829
|
-
const newMessages = userMessage ? [userMessage] : messages;
|
|
830
829
|
const now = Date.now();
|
|
831
|
-
const threadMessages = this.sanitizeResponseMessages(ensureAllMessagesAreCoreMessages(
|
|
830
|
+
const threadMessages = this.sanitizeResponseMessages(ensureAllMessagesAreCoreMessages(messages)).map((u, index) => {
|
|
832
831
|
return {
|
|
833
832
|
id: this.getMemory()?.generateId(),
|
|
834
833
|
createdAt: new Date(now + index),
|
|
@@ -857,18 +856,29 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
857
856
|
title
|
|
858
857
|
});
|
|
859
858
|
})();
|
|
859
|
+
let responseMessages = result.response.messages;
|
|
860
|
+
if (!responseMessages && result.object) {
|
|
861
|
+
responseMessages = [{
|
|
862
|
+
role: "assistant",
|
|
863
|
+
content: [{
|
|
864
|
+
type: "text",
|
|
865
|
+
text: outputText
|
|
866
|
+
}]
|
|
867
|
+
}];
|
|
868
|
+
}
|
|
860
869
|
await memory.saveMessages({
|
|
861
870
|
messages: [...threadMessages, ...this.getResponseMessages({
|
|
862
871
|
threadId: threadId2,
|
|
863
872
|
resourceId,
|
|
864
|
-
|
|
873
|
+
messages: responseMessages,
|
|
865
874
|
now: dateResponseMessagesFrom
|
|
866
875
|
})],
|
|
867
876
|
memoryConfig: memoryConfig2
|
|
868
877
|
});
|
|
869
878
|
} catch (e) {
|
|
879
|
+
const message = e instanceof Error ? e.message : JSON.stringify(e);
|
|
870
880
|
this.logger.error("Error saving response", {
|
|
871
|
-
error:
|
|
881
|
+
error: message,
|
|
872
882
|
runId: runId2,
|
|
873
883
|
result: resToLog,
|
|
874
884
|
threadId: threadId2
|
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkGUMHVPHG_cjs = require('./chunk-GUMHVPHG.cjs');
|
|
4
|
-
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
5
4
|
var chunk6YITFTRU_cjs = require('./chunk-6YITFTRU.cjs');
|
|
5
|
+
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
6
6
|
var chunk5ENQX4BI_cjs = require('./chunk-5ENQX4BI.cjs');
|
|
7
7
|
var chunk37HZ77Z5_cjs = require('./chunk-37HZ77Z5.cjs');
|
|
8
8
|
var chunkBMSBIZKD_cjs = require('./chunk-BMSBIZKD.cjs');
|
|
9
9
|
var chunkOGNJRWRQ_cjs = require('./chunk-OGNJRWRQ.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var chunkQQFFJTJ4_cjs = require('./chunk-QQFFJTJ4.cjs');
|
|
11
|
+
var chunk2PLTE53B_cjs = require('./chunk-2PLTE53B.cjs');
|
|
12
12
|
var chunkUVRGQEMD_cjs = require('./chunk-UVRGQEMD.cjs');
|
|
13
13
|
var chunkFXAV2WYX_cjs = require('./chunk-FXAV2WYX.cjs');
|
|
14
14
|
var chunk6NUAJ6AB_cjs = require('./chunk-6NUAJ6AB.cjs');
|
|
@@ -18,7 +18,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
|
18
18
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
19
19
|
|
|
20
20
|
// src/agent/index.warning.ts
|
|
21
|
-
var Agent2 = class extends
|
|
21
|
+
var Agent2 = class extends chunk2PLTE53B_cjs.Agent {
|
|
22
22
|
constructor(config) {
|
|
23
23
|
super(config);
|
|
24
24
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -106,7 +106,7 @@ var MastraVector2 = class extends chunkBMSBIZKD_cjs.MastraVector {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
// src/workflows/workflow.warning.ts
|
|
109
|
-
var Workflow2 = class extends
|
|
109
|
+
var Workflow2 = class extends chunk2PLTE53B_cjs.Workflow {
|
|
110
110
|
constructor(args) {
|
|
111
111
|
super(args);
|
|
112
112
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -131,95 +131,95 @@ Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkQQFFJTJ4_cjs.CohereRelevanceScorer; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkQQFFJTJ4_cjs.MastraAgentRelevanceScorer; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunkQQFFJTJ4_cjs.createSimilarityPrompt; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "Step", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2PLTE53B_cjs.Step; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2PLTE53B_cjs.WhenConditionReturnValue; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "agentToStep", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2PLTE53B_cjs.agentToStep; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2PLTE53B_cjs.getActivePathsAndStatus; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2PLTE53B_cjs.getResultActivePaths; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "getStepResult", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunk2PLTE53B_cjs.getStepResult; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2PLTE53B_cjs.getSuspendedPaths; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "isAgent", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunk2PLTE53B_cjs.isAgent; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk2PLTE53B_cjs.isConditionalKey; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk2PLTE53B_cjs.isErrorEvent; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "isFinalState", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk2PLTE53B_cjs.isFinalState; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "isLimboState", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk2PLTE53B_cjs.isLimboState; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk2PLTE53B_cjs.isTransitionEvent; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "isVariableReference", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk2PLTE53B_cjs.isVariableReference; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "isWorkflow", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk2PLTE53B_cjs.isWorkflow; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk2PLTE53B_cjs.mergeChildValue; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk2PLTE53B_cjs.recursivelyCheckForFinalState; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "resolveVariables", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk2PLTE53B_cjs.resolveVariables; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk2PLTE53B_cjs.updateStepInHierarchy; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "workflowToStep", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk2PLTE53B_cjs.workflowToStep; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
225
225
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-QFJY3MEL.js';
|
|
2
|
-
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
3
2
|
import { Integration, OpenAPIToolset } from './chunk-JCBDQUQY.js';
|
|
3
|
+
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
4
4
|
export { Mastra } from './chunk-IKZWOULI.js';
|
|
5
5
|
import { MastraMemory } from './chunk-EYMLOJ2Q.js';
|
|
6
6
|
export { MemoryProcessor, memoryDefaultOptions } from './chunk-EYMLOJ2Q.js';
|
|
7
7
|
import { MastraVector } from './chunk-Q6ZDDQOB.js';
|
|
8
8
|
import { MastraStorage } from './chunk-T5V4W7WU.js';
|
|
9
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
10
|
-
import { Agent, Workflow } from './chunk-
|
|
11
|
-
export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-
|
|
9
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-SONEVGEJ.js';
|
|
10
|
+
import { Agent, Workflow } from './chunk-XYP6MY7U.js';
|
|
11
|
+
export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-XYP6MY7U.js';
|
|
12
12
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-BFNYQFG2.js';
|
|
13
13
|
import { Tool } from './chunk-ZQ7FXUGY.js';
|
|
14
14
|
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-ZQ7FXUGY.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PLTE53B_cjs = require('../chunk-2PLTE53B.cjs');
|
|
4
4
|
var chunkFXAV2WYX_cjs = require('../chunk-FXAV2WYX.cjs');
|
|
5
5
|
var chunkRO52JMKQ_cjs = require('../chunk-RO52JMKQ.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkRO52JMKQ_cjs.MastraBase {
|
|
|
17
17
|
this.#instructions = config.instructions;
|
|
18
18
|
this.#agents = config.agents;
|
|
19
19
|
this.#model = config.model;
|
|
20
|
-
this.#routingAgent = new
|
|
20
|
+
this.#routingAgent = new chunk2PLTE53B_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
package/dist/network/index.js
CHANGED
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQQFFJTJ4_cjs = require('../chunk-QQFFJTJ4.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkQQFFJTJ4_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkQQFFJTJ4_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkQQFFJTJ4_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-SONEVGEJ.js';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PLTE53B_cjs = require('../chunk-2PLTE53B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Step", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk2PLTE53B_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2PLTE53B_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2PLTE53B_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2PLTE53B_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2PLTE53B_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2PLTE53B_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2PLTE53B_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2PLTE53B_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isAgent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2PLTE53B_cjs.isAgent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk2PLTE53B_cjs.isConditionalKey; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk2PLTE53B_cjs.isErrorEvent; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk2PLTE53B_cjs.isFinalState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk2PLTE53B_cjs.isLimboState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk2PLTE53B_cjs.isTransitionEvent; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk2PLTE53B_cjs.isVariableReference; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk2PLTE53B_cjs.isWorkflow; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk2PLTE53B_cjs.mergeChildValue; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk2PLTE53B_cjs.recursivelyCheckForFinalState; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk2PLTE53B_cjs.resolveVariables; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk2PLTE53B_cjs.updateStepInHierarchy; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk2PLTE53B_cjs.workflowToStep; }
|
|
90
90
|
});
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-XYP6MY7U.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2PLTE53B_cjs = require('../../chunk-2PLTE53B.cjs');
|
|
4
4
|
var chunkFXAV2WYX_cjs = require('../../chunk-FXAV2WYX.cjs');
|
|
5
5
|
var chunkRO52JMKQ_cjs = require('../../chunk-RO52JMKQ.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
|
|
@@ -649,7 +649,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
649
649
|
|
|
650
650
|
// src/workflows/vNext/workflow.ts
|
|
651
651
|
function createStep(params) {
|
|
652
|
-
if (params instanceof
|
|
652
|
+
if (params instanceof chunk2PLTE53B_cjs.Agent) {
|
|
653
653
|
return {
|
|
654
654
|
id: params.name,
|
|
655
655
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.9.3
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"typescript": "^5.8.2",
|
|
158
158
|
"vitest": "^3.1.2",
|
|
159
159
|
"zod": "^3.24.3",
|
|
160
|
-
"@internal/lint": "0.0.
|
|
160
|
+
"@internal/lint": "0.0.4"
|
|
161
161
|
},
|
|
162
162
|
"engines": {
|
|
163
163
|
"node": ">=20"
|