@mastra/core 0.10.6 → 0.10.7-alpha.0
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.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +1 -1
- package/dist/{base-DE2hOc0_.d.ts → base-3zbJmq45.d.ts} +53 -14
- package/dist/{base-Bgm3ALU_.d.cts → base-CX6uD7yR.d.cts} +53 -14
- package/dist/{chunk-7SHAFG4W.js → chunk-42YZQOIR.js} +1 -1
- package/dist/{chunk-E7QDFGWS.cjs → chunk-5ETY3Q3F.cjs} +2 -2
- package/dist/{chunk-3SZLJIPE.cjs → chunk-7KWHHSK5.cjs} +1 -0
- package/dist/{chunk-RFGZJIMI.js → chunk-ATXD4775.js} +1 -0
- package/dist/{chunk-5KUEAJII.cjs → chunk-GSMJGWQS.cjs} +242 -13
- package/dist/{chunk-BCDHHEFP.js → chunk-OYNUZURI.js} +241 -12
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/storage/index.cjs +5 -0
- package/dist/storage/index.d.cts +7 -2
- package/dist/storage/index.d.ts +7 -2
- package/dist/storage/index.js +5 -0
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +17 -28
- package/dist/workflows/index.d.ts +17 -28
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +2 -2
- package/dist/workflows/legacy/index.d.ts +2 -2
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EMITTER_SYMBOL } from './chunk-Y7D2JLKS.js';
|
|
2
|
-
import { Agent } from './chunk-
|
|
2
|
+
import { Agent } from './chunk-ATXD4775.js';
|
|
3
3
|
import { Tool } from './chunk-C4LMN2IR.js';
|
|
4
4
|
import { MastraError } from './chunk-4MPQAHTP.js';
|
|
5
5
|
import { MastraBase } from './chunk-5IEKR756.js';
|
|
@@ -198,14 +198,14 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
198
198
|
getStepOutput(stepResults, step) {
|
|
199
199
|
if (!step) {
|
|
200
200
|
return stepResults.input;
|
|
201
|
-
} else if (step.type === "step") {
|
|
201
|
+
} else if (step.type === "step" || step.type === "waitForEvent") {
|
|
202
202
|
return stepResults[step.step.id]?.output;
|
|
203
203
|
} else if (step.type === "sleep" || step.type === "sleepUntil") {
|
|
204
204
|
return stepResults[step.id]?.output;
|
|
205
205
|
} else if (step.type === "parallel" || step.type === "conditional") {
|
|
206
206
|
return step.steps.reduce(
|
|
207
207
|
(acc, entry) => {
|
|
208
|
-
if (entry.type === "step") {
|
|
208
|
+
if (entry.type === "step" || entry.type === "waitForEvent") {
|
|
209
209
|
acc[entry.step.id] = stepResults[entry.step.id]?.output;
|
|
210
210
|
} else if (entry.type === "parallel" || entry.type === "conditional") {
|
|
211
211
|
const parallelResult = this.getStepOutput(stepResults, entry)?.output;
|
|
@@ -230,6 +230,24 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
230
230
|
async executeSleep({ duration }) {
|
|
231
231
|
await new Promise((resolve) => setTimeout(resolve, duration));
|
|
232
232
|
}
|
|
233
|
+
async executeWaitForEvent({
|
|
234
|
+
event,
|
|
235
|
+
emitter,
|
|
236
|
+
timeout
|
|
237
|
+
}) {
|
|
238
|
+
return new Promise((resolve, reject) => {
|
|
239
|
+
const cb = (eventData) => {
|
|
240
|
+
resolve(eventData);
|
|
241
|
+
};
|
|
242
|
+
if (timeout) {
|
|
243
|
+
setTimeout(() => {
|
|
244
|
+
emitter.off(`user-event-${event}`, cb);
|
|
245
|
+
reject(new Error("Timeout waiting for event"));
|
|
246
|
+
}, timeout);
|
|
247
|
+
}
|
|
248
|
+
emitter.once(`user-event-${event}`, cb);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
233
251
|
async executeStep({
|
|
234
252
|
workflowId,
|
|
235
253
|
runId,
|
|
@@ -795,7 +813,54 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
795
813
|
});
|
|
796
814
|
} else if (entry.type === "sleep") {
|
|
797
815
|
const startedAt = Date.now();
|
|
816
|
+
await emitter.emit("watch", {
|
|
817
|
+
type: "watch",
|
|
818
|
+
payload: {
|
|
819
|
+
currentStep: {
|
|
820
|
+
id: entry.id,
|
|
821
|
+
status: "waiting",
|
|
822
|
+
payload: prevOutput,
|
|
823
|
+
startedAt
|
|
824
|
+
},
|
|
825
|
+
workflowState: {
|
|
826
|
+
status: "waiting",
|
|
827
|
+
steps: {
|
|
828
|
+
...stepResults,
|
|
829
|
+
[entry.id]: {
|
|
830
|
+
status: "waiting",
|
|
831
|
+
payload: prevOutput,
|
|
832
|
+
startedAt
|
|
833
|
+
}
|
|
834
|
+
},
|
|
835
|
+
result: null,
|
|
836
|
+
error: null
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
eventTimestamp: Date.now()
|
|
840
|
+
});
|
|
841
|
+
await emitter.emit("watch-v2", {
|
|
842
|
+
type: "step-waiting",
|
|
843
|
+
payload: {
|
|
844
|
+
id: entry.id
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
await this.persistStepUpdate({
|
|
848
|
+
workflowId,
|
|
849
|
+
runId,
|
|
850
|
+
serializedStepGraph,
|
|
851
|
+
stepResults,
|
|
852
|
+
executionContext,
|
|
853
|
+
workflowStatus: "waiting"
|
|
854
|
+
});
|
|
798
855
|
await this.executeSleep({ id: entry.id, duration: entry.duration });
|
|
856
|
+
await this.persistStepUpdate({
|
|
857
|
+
workflowId,
|
|
858
|
+
runId,
|
|
859
|
+
serializedStepGraph,
|
|
860
|
+
stepResults,
|
|
861
|
+
executionContext,
|
|
862
|
+
workflowStatus: "running"
|
|
863
|
+
});
|
|
799
864
|
const endedAt = Date.now();
|
|
800
865
|
const stepInfo = {
|
|
801
866
|
payload: prevOutput,
|
|
@@ -806,7 +871,54 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
806
871
|
stepResults[entry.id] = { ...stepInfo, status: "success", output: prevOutput };
|
|
807
872
|
} else if (entry.type === "sleepUntil") {
|
|
808
873
|
const startedAt = Date.now();
|
|
874
|
+
await emitter.emit("watch", {
|
|
875
|
+
type: "watch",
|
|
876
|
+
payload: {
|
|
877
|
+
currentStep: {
|
|
878
|
+
id: entry.id,
|
|
879
|
+
status: "waiting",
|
|
880
|
+
payload: prevOutput,
|
|
881
|
+
startedAt
|
|
882
|
+
},
|
|
883
|
+
workflowState: {
|
|
884
|
+
status: "waiting",
|
|
885
|
+
steps: {
|
|
886
|
+
...stepResults,
|
|
887
|
+
[entry.id]: {
|
|
888
|
+
status: "waiting",
|
|
889
|
+
payload: prevOutput,
|
|
890
|
+
startedAt
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
result: null,
|
|
894
|
+
error: null
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
eventTimestamp: Date.now()
|
|
898
|
+
});
|
|
899
|
+
await emitter.emit("watch-v2", {
|
|
900
|
+
type: "step-waiting",
|
|
901
|
+
payload: {
|
|
902
|
+
id: entry.id
|
|
903
|
+
}
|
|
904
|
+
});
|
|
905
|
+
await this.persistStepUpdate({
|
|
906
|
+
workflowId,
|
|
907
|
+
runId,
|
|
908
|
+
serializedStepGraph,
|
|
909
|
+
stepResults,
|
|
910
|
+
executionContext,
|
|
911
|
+
workflowStatus: "waiting"
|
|
912
|
+
});
|
|
809
913
|
await this.executeSleep({ id: entry.id, duration: entry.date.getTime() - Date.now() });
|
|
914
|
+
await this.persistStepUpdate({
|
|
915
|
+
workflowId,
|
|
916
|
+
runId,
|
|
917
|
+
serializedStepGraph,
|
|
918
|
+
stepResults,
|
|
919
|
+
executionContext,
|
|
920
|
+
workflowStatus: "running"
|
|
921
|
+
});
|
|
810
922
|
const endedAt = Date.now();
|
|
811
923
|
const stepInfo = {
|
|
812
924
|
payload: prevOutput,
|
|
@@ -815,8 +927,88 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
815
927
|
};
|
|
816
928
|
execResults = { ...stepInfo, status: "success", output: prevOutput };
|
|
817
929
|
stepResults[entry.id] = { ...stepInfo, status: "success", output: prevOutput };
|
|
930
|
+
} else if (entry.type === "waitForEvent") {
|
|
931
|
+
const startedAt = Date.now();
|
|
932
|
+
let eventData;
|
|
933
|
+
await emitter.emit("watch", {
|
|
934
|
+
type: "watch",
|
|
935
|
+
payload: {
|
|
936
|
+
currentStep: {
|
|
937
|
+
id: entry.step.id,
|
|
938
|
+
status: "waiting",
|
|
939
|
+
payload: prevOutput,
|
|
940
|
+
startedAt
|
|
941
|
+
},
|
|
942
|
+
workflowState: {
|
|
943
|
+
status: "waiting",
|
|
944
|
+
steps: {
|
|
945
|
+
...stepResults,
|
|
946
|
+
[entry.step.id]: {
|
|
947
|
+
status: "waiting",
|
|
948
|
+
payload: prevOutput,
|
|
949
|
+
startedAt
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
result: null,
|
|
953
|
+
error: null
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
eventTimestamp: Date.now()
|
|
957
|
+
});
|
|
958
|
+
await emitter.emit("watch-v2", {
|
|
959
|
+
type: "step-waiting",
|
|
960
|
+
payload: {
|
|
961
|
+
id: entry.step.id
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
await this.persistStepUpdate({
|
|
965
|
+
workflowId,
|
|
966
|
+
runId,
|
|
967
|
+
serializedStepGraph,
|
|
968
|
+
stepResults,
|
|
969
|
+
executionContext,
|
|
970
|
+
workflowStatus: "waiting"
|
|
971
|
+
});
|
|
972
|
+
try {
|
|
973
|
+
eventData = await this.executeWaitForEvent({ event: entry.event, emitter, timeout: entry.timeout });
|
|
974
|
+
await this.persistStepUpdate({
|
|
975
|
+
workflowId,
|
|
976
|
+
runId,
|
|
977
|
+
serializedStepGraph,
|
|
978
|
+
stepResults,
|
|
979
|
+
executionContext,
|
|
980
|
+
workflowStatus: "running"
|
|
981
|
+
});
|
|
982
|
+
const { step } = entry;
|
|
983
|
+
execResults = await this.executeStep({
|
|
984
|
+
workflowId,
|
|
985
|
+
runId,
|
|
986
|
+
step,
|
|
987
|
+
stepResults,
|
|
988
|
+
executionContext,
|
|
989
|
+
resume: {
|
|
990
|
+
resumePayload: eventData,
|
|
991
|
+
steps: [entry.step.id]
|
|
992
|
+
},
|
|
993
|
+
prevOutput,
|
|
994
|
+
emitter,
|
|
995
|
+
runtimeContext
|
|
996
|
+
});
|
|
997
|
+
} catch (error) {
|
|
998
|
+
execResults = {
|
|
999
|
+
status: "failed",
|
|
1000
|
+
error
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
const endedAt = Date.now();
|
|
1004
|
+
const stepInfo = {
|
|
1005
|
+
payload: prevOutput,
|
|
1006
|
+
startedAt,
|
|
1007
|
+
endedAt
|
|
1008
|
+
};
|
|
1009
|
+
execResults = { ...execResults, ...stepInfo };
|
|
818
1010
|
}
|
|
819
|
-
if (entry.type === "step" || entry.type === "loop" || entry.type === "foreach") {
|
|
1011
|
+
if (entry.type === "step" || entry.type === "waitForEvent" || entry.type === "loop" || entry.type === "foreach") {
|
|
820
1012
|
stepResults[entry.step.id] = execResults;
|
|
821
1013
|
}
|
|
822
1014
|
await this.persistStepUpdate({
|
|
@@ -1080,6 +1272,22 @@ var Workflow = class extends MastraBase {
|
|
|
1080
1272
|
});
|
|
1081
1273
|
return this;
|
|
1082
1274
|
}
|
|
1275
|
+
waitForEvent(event, step, opts) {
|
|
1276
|
+
this.stepFlow.push({ type: "waitForEvent", event, step, timeout: opts?.timeout });
|
|
1277
|
+
this.serializedStepFlow.push({
|
|
1278
|
+
type: "waitForEvent",
|
|
1279
|
+
event,
|
|
1280
|
+
step: {
|
|
1281
|
+
id: step.id,
|
|
1282
|
+
description: step.description,
|
|
1283
|
+
component: step.component,
|
|
1284
|
+
serializedStepFlow: step.serializedStepFlow
|
|
1285
|
+
},
|
|
1286
|
+
timeout: opts?.timeout
|
|
1287
|
+
});
|
|
1288
|
+
this.steps[step.id] = step;
|
|
1289
|
+
return this;
|
|
1290
|
+
}
|
|
1083
1291
|
map(mappingConfig) {
|
|
1084
1292
|
if (typeof mappingConfig === "function") {
|
|
1085
1293
|
const mappingStep2 = createStep({
|
|
@@ -1440,8 +1648,8 @@ var Run = class {
|
|
|
1440
1648
|
* The storage for this run
|
|
1441
1649
|
*/
|
|
1442
1650
|
#mastra;
|
|
1443
|
-
|
|
1444
|
-
|
|
1651
|
+
closeStreamAction;
|
|
1652
|
+
executionResults;
|
|
1445
1653
|
cleanup;
|
|
1446
1654
|
retryConfig;
|
|
1447
1655
|
constructor(params) {
|
|
@@ -1455,6 +1663,9 @@ var Run = class {
|
|
|
1455
1663
|
this.retryConfig = params.retryConfig;
|
|
1456
1664
|
this.cleanup = params.cleanup;
|
|
1457
1665
|
}
|
|
1666
|
+
sendEvent(event, data) {
|
|
1667
|
+
this.emitter.emit(`user-event-${event}`, data);
|
|
1668
|
+
}
|
|
1458
1669
|
/**
|
|
1459
1670
|
* Starts the workflow execution with the provided input
|
|
1460
1671
|
* @param input The input data for the workflow
|
|
@@ -1473,6 +1684,15 @@ var Run = class {
|
|
|
1473
1684
|
emitter: {
|
|
1474
1685
|
emit: async (event, data) => {
|
|
1475
1686
|
this.emitter.emit(event, data);
|
|
1687
|
+
},
|
|
1688
|
+
on: (event, callback) => {
|
|
1689
|
+
this.emitter.on(event, callback);
|
|
1690
|
+
},
|
|
1691
|
+
off: (event, callback) => {
|
|
1692
|
+
this.emitter.off(event, callback);
|
|
1693
|
+
},
|
|
1694
|
+
once: (event, callback) => {
|
|
1695
|
+
this.emitter.once(event, callback);
|
|
1476
1696
|
}
|
|
1477
1697
|
},
|
|
1478
1698
|
retryConfig: this.retryConfig,
|
|
@@ -1495,7 +1715,7 @@ var Run = class {
|
|
|
1495
1715
|
} catch {
|
|
1496
1716
|
}
|
|
1497
1717
|
}, "watch-v2");
|
|
1498
|
-
this
|
|
1718
|
+
this.closeStreamAction = async () => {
|
|
1499
1719
|
this.emitter.emit("watch-v2", {
|
|
1500
1720
|
type: "finish",
|
|
1501
1721
|
payload: { runId: this.runId }
|
|
@@ -1513,16 +1733,16 @@ var Run = class {
|
|
|
1513
1733
|
type: "start",
|
|
1514
1734
|
payload: { runId: this.runId }
|
|
1515
1735
|
});
|
|
1516
|
-
this
|
|
1736
|
+
this.executionResults = this.start({ inputData, runtimeContext }).then((result) => {
|
|
1517
1737
|
if (result.status !== "suspended") {
|
|
1518
|
-
this
|
|
1738
|
+
this.closeStreamAction?.().catch(() => {
|
|
1519
1739
|
});
|
|
1520
1740
|
}
|
|
1521
1741
|
return result;
|
|
1522
1742
|
});
|
|
1523
1743
|
return {
|
|
1524
1744
|
stream: readable,
|
|
1525
|
-
getWorkflowState: () => this
|
|
1745
|
+
getWorkflowState: () => this.executionResults
|
|
1526
1746
|
};
|
|
1527
1747
|
}
|
|
1528
1748
|
watch(cb, type = "watch") {
|
|
@@ -1594,17 +1814,26 @@ var Run = class {
|
|
|
1594
1814
|
emit: (event, data) => {
|
|
1595
1815
|
this.emitter.emit(event, data);
|
|
1596
1816
|
return Promise.resolve();
|
|
1817
|
+
},
|
|
1818
|
+
on: (event, callback) => {
|
|
1819
|
+
this.emitter.on(event, callback);
|
|
1820
|
+
},
|
|
1821
|
+
off: (event, callback) => {
|
|
1822
|
+
this.emitter.off(event, callback);
|
|
1823
|
+
},
|
|
1824
|
+
once: (event, callback) => {
|
|
1825
|
+
this.emitter.once(event, callback);
|
|
1597
1826
|
}
|
|
1598
1827
|
},
|
|
1599
1828
|
runtimeContext: params.runtimeContext ?? new RuntimeContext()
|
|
1600
1829
|
}).then((result) => {
|
|
1601
1830
|
if (result.status !== "suspended") {
|
|
1602
|
-
this
|
|
1831
|
+
this.closeStreamAction?.().catch(() => {
|
|
1603
1832
|
});
|
|
1604
1833
|
}
|
|
1605
1834
|
return result;
|
|
1606
1835
|
});
|
|
1607
|
-
this
|
|
1836
|
+
this.executionResults = executionResultPromise;
|
|
1608
1837
|
return executionResultPromise;
|
|
1609
1838
|
}
|
|
1610
1839
|
/**
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.cjs';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-CX6uD7yR.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DVVTzIQy.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.js';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-3zbJmq45.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BbdvunNJ.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkQE4SMNY3_cjs = require('./chunk-QE4SMNY3.cjs');
|
|
4
4
|
var chunkPDK2ZFRX_cjs = require('./chunk-PDK2ZFRX.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkGSMJGWQS_cjs = require('./chunk-GSMJGWQS.cjs');
|
|
6
6
|
var chunkHUZTNNHH_cjs = require('./chunk-HUZTNNHH.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk5ETY3Q3F_cjs = require('./chunk-5ETY3Q3F.cjs');
|
|
8
8
|
var chunkKKCGZKNC_cjs = require('./chunk-KKCGZKNC.cjs');
|
|
9
9
|
var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
10
10
|
var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
|
|
11
11
|
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
12
12
|
var chunkKH6G3F2Z_cjs = require('./chunk-KH6G3F2Z.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunk7KWHHSK5_cjs = require('./chunk-7KWHHSK5.cjs');
|
|
14
14
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
15
15
|
var chunkL5FURQXC_cjs = require('./chunk-L5FURQXC.cjs');
|
|
16
16
|
var chunkUOKJ7SQO_cjs = require('./chunk-UOKJ7SQO.cjs');
|
|
@@ -19,7 +19,7 @@ var chunkZZLBNB3U_cjs = require('./chunk-ZZLBNB3U.cjs');
|
|
|
19
19
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
20
20
|
|
|
21
21
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
22
|
+
var Agent2 = class extends chunk7KWHHSK5_cjs.Agent {
|
|
23
23
|
constructor(config) {
|
|
24
24
|
super(config);
|
|
25
25
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -101,7 +101,7 @@ var MastraVector2 = class extends chunkPDK2ZFRX_cjs.MastraVector {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// src/workflows/workflow.warning.ts
|
|
104
|
-
var Workflow2 = class extends
|
|
104
|
+
var Workflow2 = class extends chunkGSMJGWQS_cjs.Workflow {
|
|
105
105
|
constructor(args) {
|
|
106
106
|
super(args);
|
|
107
107
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -110,31 +110,31 @@ var Workflow2 = class extends chunk5KUEAJII_cjs.Workflow {
|
|
|
110
110
|
|
|
111
111
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkGSMJGWQS_cjs.DefaultExecutionEngine; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkGSMJGWQS_cjs.ExecutionEngine; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "Run", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkGSMJGWQS_cjs.Run; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "cloneStep", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkGSMJGWQS_cjs.cloneStep; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkGSMJGWQS_cjs.cloneWorkflow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createStep", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkGSMJGWQS_cjs.createStep; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "createWorkflow", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkGSMJGWQS_cjs.createWorkflow; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
140
140
|
enumerable: true,
|
|
@@ -146,15 +146,15 @@ Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk5ETY3Q3F_cjs.CohereRelevanceScorer; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk5ETY3Q3F_cjs.MastraAgentRelevanceScorer; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunk5ETY3Q3F_cjs.createSimilarityPrompt; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "Metric", {
|
|
160
160
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
|
|
3
|
-
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, at as DefaultEngineType, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-
|
|
4
|
-
export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions,
|
|
3
|
+
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, at as DefaultEngineType, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-CX6uD7yR.cjs';
|
|
4
|
+
export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, bo as DynamicMapping, aC as EmbedManyResult, aB as EmbedResult, bg as Emitter, E as EvalRow, bf as ExecuteFunction, be as ExecutionEngine, bd as ExecutionGraph, br as ExtractSchemaFromStep, bq as ExtractSchemaType, aH as GenerateReturn, aq as InternalCoreTool, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aJ as OutputType, z as PaginationArgs, P as PaginationInfo, bp as PathsToStringProps, bc as Run, b5 as SerializedStep, b6 as SerializedStepFlowEntry, aZ as SharedMemoryConfig, bi as StepFailure, b4 as StepFlowEntry, bm as StepResult, bk as StepRunning, bh as StepSuccess, bj as StepSuspended, bl as StepWaiting, bn as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bt as StreamEvent, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, a_ as TraceType, bs as VariableReference, V as VercelTool, bu as WatchEvent, bb as WorkflowResult, w as WorkflowRun, bw as WorkflowRunState, v as WorkflowRuns, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, bv as ZodPathType, b8 as cloneStep, ba as cloneWorkflow, aT as createMockModel, b7 as createStep, ap as createTool, b9 as createWorkflow, b3 as memoryDefaultOptions } from './base-CX6uD7yR.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-DVVTzIQy.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-DVVTzIQy.cjs';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-CpL0z5v_.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
|
|
3
|
-
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, at as DefaultEngineType, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-
|
|
4
|
-
export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions,
|
|
3
|
+
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, at as DefaultEngineType, f as Step, e as Workflow$1, au as WorkflowConfig } from './base-3zbJmq45.js';
|
|
4
|
+
export { aD as BaseStructuredOutputType, aU as Config, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, C as CoreTool, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, bo as DynamicMapping, aC as EmbedManyResult, aB as EmbedResult, bg as Emitter, E as EvalRow, bf as ExecuteFunction, be as ExecutionEngine, bd as ExecutionGraph, br as ExtractSchemaFromStep, bq as ExtractSchemaType, aH as GenerateReturn, aq as InternalCoreTool, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aJ as OutputType, z as PaginationArgs, P as PaginationInfo, bp as PathsToStringProps, bc as Run, b5 as SerializedStep, b6 as SerializedStepFlowEntry, aZ as SharedMemoryConfig, bi as StepFailure, b4 as StepFlowEntry, bm as StepResult, bk as StepRunning, bh as StepSuccess, bj as StepSuspended, bl as StepWaiting, bn as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bt as StreamEvent, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, a_ as TraceType, bs as VariableReference, V as VercelTool, bu as WatchEvent, bb as WorkflowResult, w as WorkflowRun, bw as WorkflowRunState, v as WorkflowRuns, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, bv as ZodPathType, b8 as cloneStep, ba as cloneWorkflow, aT as createMockModel, b7 as createStep, ap as createTool, b9 as createWorkflow, b3 as memoryDefaultOptions } from './base-3zbJmq45.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-BbdvunNJ.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-BbdvunNJ.js';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-DtVDdb81.js';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-X5SQG5QX.js';
|
|
2
2
|
import { MastraVector } from './chunk-WWKY4EQ7.js';
|
|
3
|
-
import { Workflow } from './chunk-
|
|
4
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-
|
|
3
|
+
import { Workflow } from './chunk-OYNUZURI.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-OYNUZURI.js';
|
|
5
5
|
import { MastraMemory } from './chunk-DVZMAHQO.js';
|
|
6
6
|
export { MemoryProcessor, memoryDefaultOptions } from './chunk-DVZMAHQO.js';
|
|
7
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
7
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-42YZQOIR.js';
|
|
8
8
|
import { MastraStorage } from './chunk-7PJSQZ2G.js';
|
|
9
9
|
export { Metric, evaluate } from './chunk-PK5QRKSG.js';
|
|
10
10
|
import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
|
|
11
11
|
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
12
12
|
export { Mastra } from './chunk-YAXZ7AL5.js';
|
|
13
|
-
import { Agent } from './chunk-
|
|
13
|
+
import { Agent } from './chunk-ATXD4775.js';
|
|
14
14
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
15
15
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-IFQGBW42.js';
|
|
16
16
|
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-HJQYQAIJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../base-DVVTzIQy.cjs';
|
|
2
|
-
import { e as Workflow, c as ToolAction } from '../base-
|
|
2
|
+
import { e as Workflow, c as ToolAction } from '../base-CX6uD7yR.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
4
|
import '../logger-CpL0z5v_.cjs';
|
|
5
5
|
import '../error/index.cjs';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-
|
|
4
|
+
export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-CX6uD7yR.cjs';
|
|
5
5
|
import '../runtime-context/index.cjs';
|
|
6
6
|
import '../base-DVVTzIQy.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-
|
|
4
|
+
export { aD as BaseStructuredOutputType, ay as CoreAssistantMessage, aw as CoreMessage, ax as CoreSystemMessage, aA as CoreToolMessage, az as CoreUserMessage, aN as DefaultLLMStreamObjectOptions, aM as DefaultLLMStreamOptions, aL as DefaultLLMTextObjectOptions, aK as DefaultLLMTextOptions, aC as EmbedManyResult, aB as EmbedResult, aH as GenerateReturn, aR as LLMInnerStreamOptions, aS as LLMStreamObjectOptions, aQ as LLMStreamOptions, aP as LLMTextObjectOptions, aO as LLMTextOptions, av as LanguageModel, aJ as OutputType, aI as StreamReturn, aG as StructuredOutput, aF as StructuredOutputArrayItem, aE as StructuredOutputType, aT as createMockModel } from '../base-3zbJmq45.js';
|
|
5
5
|
import '../runtime-context/index.js';
|
|
6
6
|
import '../base-BbdvunNJ.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bL as ArgumentInfo, bP as CommandInfo, bF as ConvertedTool, bQ as EnvironmentVariableInfo, h as MCPServerBase, bT as MCPServerConfig, bI as MCPServerHTTPOptions, bH as MCPServerHonoSSEOptions, bG as MCPServerSSEOptions, bW as MCPToolType, bN as NamedArgumentInfo, bR as PackageInfo, bM as PositionalArgumentInfo, bS as RemoteInfo, bJ as Repository, bV as ServerDetailInfo, bU as ServerInfo, bO as SubcommandInfo, bK as VersionDetail } from '../base-CX6uD7yR.cjs';
|
|
2
2
|
import '../base-DVVTzIQy.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bL as ArgumentInfo, bP as CommandInfo, bF as ConvertedTool, bQ as EnvironmentVariableInfo, h as MCPServerBase, bT as MCPServerConfig, bI as MCPServerHTTPOptions, bH as MCPServerHonoSSEOptions, bG as MCPServerSSEOptions, bW as MCPToolType, bN as NamedArgumentInfo, bR as PackageInfo, bM as PositionalArgumentInfo, bS as RemoteInfo, bJ as Repository, bV as ServerDetailInfo, bU as ServerInfo, bO as SubcommandInfo, bK as VersionDetail } from '../base-3zbJmq45.js';
|
|
2
2
|
import '../base-BbdvunNJ.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aZ as SharedMemoryConfig, r as StorageThreadType, a_ as TraceType, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, b3 as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aZ as SharedMemoryConfig, r as StorageThreadType, a_ as TraceType, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, b3 as memoryDefaultOptions } from '../base-CX6uD7yR.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aZ as SharedMemoryConfig, r as StorageThreadType, a_ as TraceType, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, b3 as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aY as MemoryConfig, b2 as MemoryProcessor, b1 as MemoryProcessorOpts, aW as MessageResponse, aV as MessageType, aZ as SharedMemoryConfig, r as StorageThreadType, a_ as TraceType, aX as WorkingMemory, a$ as WorkingMemoryFormat, b0 as WorkingMemoryTemplate, b3 as memoryDefaultOptions } from '../base-3zbJmq45.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-BbdvunNJ.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7KWHHSK5_cjs = require('../chunk-7KWHHSK5.cjs');
|
|
4
4
|
var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
|
|
5
5
|
var chunkU3XRKJNN_cjs = require('../chunk-U3XRKJNN.cjs');
|
|
6
6
|
var chunkP3Q73CAW_cjs = require('../chunk-P3Q73CAW.cjs');
|
|
@@ -18,7 +18,7 @@ var AgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
18
18
|
this.#instructions = config.instructions;
|
|
19
19
|
this.#agents = config.agents;
|
|
20
20
|
this.#model = config.model;
|
|
21
|
-
this.#routingAgent = new
|
|
21
|
+
this.#routingAgent = new chunk7KWHHSK5_cjs.Agent({
|
|
22
22
|
name: config.name,
|
|
23
23
|
instructions: this.getInstructions(),
|
|
24
24
|
model: this.#model,
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED