@mastra/core 0.1.27-alpha.31 → 0.1.27-alpha.32
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/core.cjs.development.js +19 -7
- package/dist/core.cjs.development.js.map +1 -1
- package/dist/core.cjs.production.min.js +1 -1
- package/dist/core.cjs.production.min.js.map +1 -1
- package/dist/core.esm.js +19 -7
- package/dist/core.esm.js.map +1 -1
- package/dist/mastra/index.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3957,6 +3957,18 @@ exports.Mastra = (_workflows = /*#__PURE__*/_classPrivateFieldLooseKey("workflow
|
|
|
3957
3957
|
}
|
|
3958
3958
|
return agent;
|
|
3959
3959
|
};
|
|
3960
|
+
_proto.getAgents = function getAgents() {
|
|
3961
|
+
return Array.from(this.agents.entries()).map(function (_ref3) {
|
|
3962
|
+
var name = _ref3[0],
|
|
3963
|
+
agent = _ref3[1];
|
|
3964
|
+
return {
|
|
3965
|
+
name: name,
|
|
3966
|
+
instructions: agent.instructions,
|
|
3967
|
+
modelProvider: agent.model.provider,
|
|
3968
|
+
modelName: agent.model.name
|
|
3969
|
+
};
|
|
3970
|
+
});
|
|
3971
|
+
};
|
|
3960
3972
|
_proto.getWorkflow = function getWorkflow(name) {
|
|
3961
3973
|
var workflow = _classPrivateFieldLooseBase(this, _workflows)[_workflows].get(name);
|
|
3962
3974
|
if (!workflow) {
|
|
@@ -3980,7 +3992,7 @@ exports.Mastra = (_workflows = /*#__PURE__*/_classPrivateFieldLooseKey("workflow
|
|
|
3980
3992
|
throw new Error("Tool with name " + String(name) + " not found");
|
|
3981
3993
|
}
|
|
3982
3994
|
var hydratedExecutor = /*#__PURE__*/function () {
|
|
3983
|
-
var
|
|
3995
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params, runId) {
|
|
3984
3996
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
3985
3997
|
while (1) switch (_context2.prev = _context2.next) {
|
|
3986
3998
|
case 0:
|
|
@@ -4006,7 +4018,7 @@ exports.Mastra = (_workflows = /*#__PURE__*/_classPrivateFieldLooseKey("workflow
|
|
|
4006
4018
|
}, _callee2);
|
|
4007
4019
|
}));
|
|
4008
4020
|
return function hydratedExecutor(_x4, _x5) {
|
|
4009
|
-
return
|
|
4021
|
+
return _ref4.apply(this, arguments);
|
|
4010
4022
|
};
|
|
4011
4023
|
}();
|
|
4012
4024
|
return _extends({}, tool, {
|
|
@@ -4019,9 +4031,9 @@ exports.Mastra = (_workflows = /*#__PURE__*/_classPrivateFieldLooseKey("workflow
|
|
|
4019
4031
|
});
|
|
4020
4032
|
};
|
|
4021
4033
|
_proto.availableIntegrations = function availableIntegrations() {
|
|
4022
|
-
return Array.from(this.integrations.entries()).map(function (
|
|
4023
|
-
var name =
|
|
4024
|
-
integration =
|
|
4034
|
+
return Array.from(this.integrations.entries()).map(function (_ref5) {
|
|
4035
|
+
var name = _ref5[0],
|
|
4036
|
+
integration = _ref5[1];
|
|
4025
4037
|
return {
|
|
4026
4038
|
name: name,
|
|
4027
4039
|
integration: integration
|
|
@@ -4031,8 +4043,8 @@ exports.Mastra = (_workflows = /*#__PURE__*/_classPrivateFieldLooseKey("workflow
|
|
|
4031
4043
|
_proto.getTools = function getTools() {
|
|
4032
4044
|
return this.tools;
|
|
4033
4045
|
};
|
|
4034
|
-
_proto.setLogger = function setLogger(
|
|
4035
|
-
var logger =
|
|
4046
|
+
_proto.setLogger = function setLogger(_ref6) {
|
|
4047
|
+
var logger = _ref6.logger;
|
|
4036
4048
|
this.logger = logger;
|
|
4037
4049
|
};
|
|
4038
4050
|
_proto.getLogger = function getLogger() {
|