@mastra/core 0.6.3 → 0.6.4-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-CbMRVSw8.d.ts → base-CMQiCwHG.d.ts} +5 -4
- package/dist/{base-DsOQiX2q.d.cts → base-DbCjWM67.d.cts} +5 -4
- package/dist/{chunk-75XZXEUM.cjs → chunk-5BKWVGKC.cjs} +19 -4
- package/dist/{chunk-S7PRIZBF.js → chunk-5J2V6T6D.js} +2 -1
- package/dist/{chunk-ZG5FKEL2.cjs → chunk-7BVC5JCJ.cjs} +2 -2
- package/dist/{chunk-F6KZ3CUF.js → chunk-F6HJG4BI.js} +1 -1
- package/dist/{chunk-DW4X6TXX.js → chunk-SEYVSQ4I.js} +19 -4
- package/dist/{chunk-YW6NIHPF.cjs → chunk-VTVNTJAD.cjs} +2 -1
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- 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.cjs +2 -2
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mastra/index.js +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/storage/index.d.cts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/libsql/index.d.cts +1 -1
- package/dist/storage/libsql/index.d.ts +1 -1
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +1 -1
- package/dist/tools/index.d.ts +1 -1
- 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 +17 -17
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/package.json +1 -1
- package/dist/{chunk-LHUFN2BG.cjs → chunk-YXJQFZOW.cjs} +1 -1
- package/dist/{chunk-U6V76AAB.js → chunk-ZBKJDQPM.js} +1 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5BKWVGKC_cjs = require('../chunk-5BKWVGKC.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 chunk5BKWVGKC_cjs.Agent; }
|
|
10
10
|
});
|
package/dist/agent/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-
|
|
4
|
+
export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-DbCjWM67.cjs';
|
|
5
5
|
import '../base-ObPJ-w8K.cjs';
|
|
6
6
|
import '../types-CwTG2XyQ.cjs';
|
|
7
7
|
import 'sift';
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-
|
|
4
|
+
export { A as Agent, m as AgentConfig, aH as AgentGenerateOptions, aI as AgentStreamOptions, az as MastraLanguageModel, a as ToolsInput, aG as ToolsetsInput } from '../base-CMQiCwHG.js';
|
|
5
5
|
import '../base-Cmunaaxb.js';
|
|
6
6
|
import '../types-CwTG2XyQ.js';
|
|
7
7
|
import 'sift';
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-SEYVSQ4I.js';
|
|
@@ -1587,6 +1587,7 @@ declare class MastraLLMBase extends MastraBase {
|
|
|
1587
1587
|
getModel(): ai.LanguageModelV1;
|
|
1588
1588
|
convertToMessages(messages: string | string[] | CoreMessage$1[]): CoreMessage$1[];
|
|
1589
1589
|
__registerPrimitives(p: MastraPrimitives): void;
|
|
1590
|
+
__registerMastra(p: Mastra): void;
|
|
1590
1591
|
__text<Z extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextOptions<Z>): Promise<GenerateTextResult<any, any>>;
|
|
1591
1592
|
__textObject<T extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextObjectOptions<T>): Promise<GenerateObjectResult<T>>;
|
|
1592
1593
|
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], options?: LLMStreamOptions<Z>): Promise<GenerateReturn<Z>>;
|
|
@@ -1681,22 +1682,22 @@ declare class Agent<TTools extends ToolsInput = ToolsInput, TMetrics extends Rec
|
|
|
1681
1682
|
outputText: string;
|
|
1682
1683
|
}) => Promise<void>;
|
|
1683
1684
|
};
|
|
1684
|
-
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
|
|
1685
|
+
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & {
|
|
1685
1686
|
output?: never;
|
|
1686
1687
|
experimental_output?: never;
|
|
1687
1688
|
}): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1688
|
-
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
|
|
1689
|
+
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & ({
|
|
1689
1690
|
output: Z;
|
|
1690
1691
|
experimental_output?: never;
|
|
1691
1692
|
} | {
|
|
1692
1693
|
experimental_output: Z;
|
|
1693
1694
|
output?: never;
|
|
1694
1695
|
})): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1695
|
-
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
|
|
1696
|
+
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & {
|
|
1696
1697
|
output?: never;
|
|
1697
1698
|
experimental_output?: never;
|
|
1698
1699
|
}): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1699
|
-
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
|
|
1700
|
+
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & ({
|
|
1700
1701
|
output: Z;
|
|
1701
1702
|
experimental_output?: never;
|
|
1702
1703
|
} | {
|
|
@@ -1587,6 +1587,7 @@ declare class MastraLLMBase extends MastraBase {
|
|
|
1587
1587
|
getModel(): ai.LanguageModelV1;
|
|
1588
1588
|
convertToMessages(messages: string | string[] | CoreMessage$1[]): CoreMessage$1[];
|
|
1589
1589
|
__registerPrimitives(p: MastraPrimitives): void;
|
|
1590
|
+
__registerMastra(p: Mastra): void;
|
|
1590
1591
|
__text<Z extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextOptions<Z>): Promise<GenerateTextResult<any, any>>;
|
|
1591
1592
|
__textObject<T extends ZodSchema | JSONSchema7 | undefined>(input: LLMTextObjectOptions<T>): Promise<GenerateObjectResult<T>>;
|
|
1592
1593
|
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], options?: LLMStreamOptions<Z>): Promise<GenerateReturn<Z>>;
|
|
@@ -1681,22 +1682,22 @@ declare class Agent<TTools extends ToolsInput = ToolsInput, TMetrics extends Rec
|
|
|
1681
1682
|
outputText: string;
|
|
1682
1683
|
}) => Promise<void>;
|
|
1683
1684
|
};
|
|
1684
|
-
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & {
|
|
1685
|
+
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & {
|
|
1685
1686
|
output?: never;
|
|
1686
1687
|
experimental_output?: never;
|
|
1687
1688
|
}): Promise<GenerateTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1688
|
-
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentGenerateOptions<Z> & ({
|
|
1689
|
+
generate<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentGenerateOptions<Z> & ({
|
|
1689
1690
|
output: Z;
|
|
1690
1691
|
experimental_output?: never;
|
|
1691
1692
|
} | {
|
|
1692
1693
|
experimental_output: Z;
|
|
1693
1694
|
output?: never;
|
|
1694
1695
|
})): Promise<GenerateObjectResult<Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1695
|
-
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & {
|
|
1696
|
+
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & {
|
|
1696
1697
|
output?: never;
|
|
1697
1698
|
experimental_output?: never;
|
|
1698
1699
|
}): Promise<StreamTextResult<any, Z extends ZodSchema ? z.infer<Z> : unknown>>;
|
|
1699
|
-
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[], args?: AgentStreamOptions<Z> & ({
|
|
1700
|
+
stream<Z extends ZodSchema | JSONSchema7 | undefined = undefined>(messages: string | string[] | CoreMessage$1[] | Message[], args?: AgentStreamOptions<Z> & ({
|
|
1700
1701
|
output: Z;
|
|
1701
1702
|
experimental_output?: never;
|
|
1702
1703
|
} | {
|
|
@@ -58,6 +58,8 @@ var MastraLLMBase = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
58
58
|
if (p.logger) {
|
|
59
59
|
this.__setLogger(p.logger);
|
|
60
60
|
}
|
|
61
|
+
}
|
|
62
|
+
__registerMastra(p) {
|
|
61
63
|
this.#mastra = p;
|
|
62
64
|
}
|
|
63
65
|
async __text(input) {
|
|
@@ -113,8 +115,8 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
113
115
|
this.#model = model;
|
|
114
116
|
if (mastra) {
|
|
115
117
|
this.#mastra = mastra;
|
|
116
|
-
if (mastra.
|
|
117
|
-
this.__setLogger(mastra.
|
|
118
|
+
if (mastra.getLogger()) {
|
|
119
|
+
this.__setLogger(mastra.getLogger());
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
}
|
|
@@ -125,6 +127,8 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
125
127
|
if (p.logger) {
|
|
126
128
|
this.__setLogger(p.logger);
|
|
127
129
|
}
|
|
130
|
+
}
|
|
131
|
+
__registerMastra(p) {
|
|
128
132
|
this.#mastra = p;
|
|
129
133
|
}
|
|
130
134
|
getProvider() {
|
|
@@ -144,6 +148,14 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
144
148
|
memory
|
|
145
149
|
} = {}) {
|
|
146
150
|
this.logger.debug("Starting tool conversion for LLM");
|
|
151
|
+
let mastraProxy = void 0;
|
|
152
|
+
const logger = this.logger;
|
|
153
|
+
if (this.#mastra) {
|
|
154
|
+
mastraProxy = chunkWSMI66XC_cjs.createMastraProxy({
|
|
155
|
+
mastra: this.#mastra,
|
|
156
|
+
logger
|
|
157
|
+
});
|
|
158
|
+
}
|
|
147
159
|
const converted = Object.entries(tools || {}).reduce((memo, value) => {
|
|
148
160
|
const k = value[0];
|
|
149
161
|
const tool = value[1];
|
|
@@ -155,7 +167,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
155
167
|
resourceId,
|
|
156
168
|
logger: this.logger,
|
|
157
169
|
memory,
|
|
158
|
-
mastra:
|
|
170
|
+
mastra: mastraProxy
|
|
159
171
|
};
|
|
160
172
|
memo[k] = chunkWSMI66XC_cjs.makeCoreTool(tool, options);
|
|
161
173
|
}
|
|
@@ -629,7 +641,8 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
|
|
|
629
641
|
throw new Error(`LanguageModel is required to create an Agent. Please provide the 'model'.`);
|
|
630
642
|
}
|
|
631
643
|
this.llm = new MastraLLM({
|
|
632
|
-
model: config.model
|
|
644
|
+
model: config.model,
|
|
645
|
+
mastra: config.mastra
|
|
633
646
|
});
|
|
634
647
|
this.tools = {};
|
|
635
648
|
this.metrics = {};
|
|
@@ -638,6 +651,7 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
|
|
|
638
651
|
this.tools = chunkWSMI66XC_cjs.ensureToolProperties(config.tools);
|
|
639
652
|
}
|
|
640
653
|
if (config.mastra) {
|
|
654
|
+
this.__registerMastra(config.mastra);
|
|
641
655
|
this.__registerPrimitives({
|
|
642
656
|
telemetry: config.mastra.getTelemetry(),
|
|
643
657
|
logger: config.mastra.getLogger()
|
|
@@ -690,6 +704,7 @@ exports.Agent = class Agent extends (_a = chunkPL7PVTGF_cjs.MastraBase) {
|
|
|
690
704
|
}
|
|
691
705
|
__registerMastra(mastra) {
|
|
692
706
|
this.#mastra = mastra;
|
|
707
|
+
this.llm.__registerMastra(mastra);
|
|
693
708
|
}
|
|
694
709
|
/**
|
|
695
710
|
* Set the concrete tools for the agent
|
|
@@ -1995,7 +1995,8 @@ var Workflow = class extends MastraBase {
|
|
|
1995
1995
|
if (activeRun) {
|
|
1996
1996
|
return activeRun.resume({ stepId, context: resumeContext });
|
|
1997
1997
|
}
|
|
1998
|
-
|
|
1998
|
+
const run = this.createRun({ runId });
|
|
1999
|
+
return run.resume({ stepId, context: resumeContext });
|
|
1999
2000
|
}
|
|
2000
2001
|
watch(onTransition) {
|
|
2001
2002
|
this.logger.warn(`Please use 'watch' on the 'createRun' call instead, watch is deprecated`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5BKWVGKC_cjs = require('./chunk-5BKWVGKC.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 chunk5BKWVGKC_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.
|
|
@@ -56,6 +56,8 @@ var MastraLLMBase = class extends MastraBase {
|
|
|
56
56
|
if (p.logger) {
|
|
57
57
|
this.__setLogger(p.logger);
|
|
58
58
|
}
|
|
59
|
+
}
|
|
60
|
+
__registerMastra(p) {
|
|
59
61
|
this.#mastra = p;
|
|
60
62
|
}
|
|
61
63
|
async __text(input) {
|
|
@@ -111,8 +113,8 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
111
113
|
this.#model = model;
|
|
112
114
|
if (mastra) {
|
|
113
115
|
this.#mastra = mastra;
|
|
114
|
-
if (mastra.
|
|
115
|
-
this.__setLogger(mastra.
|
|
116
|
+
if (mastra.getLogger()) {
|
|
117
|
+
this.__setLogger(mastra.getLogger());
|
|
116
118
|
}
|
|
117
119
|
}
|
|
118
120
|
}
|
|
@@ -123,6 +125,8 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
123
125
|
if (p.logger) {
|
|
124
126
|
this.__setLogger(p.logger);
|
|
125
127
|
}
|
|
128
|
+
}
|
|
129
|
+
__registerMastra(p) {
|
|
126
130
|
this.#mastra = p;
|
|
127
131
|
}
|
|
128
132
|
getProvider() {
|
|
@@ -142,6 +146,14 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
142
146
|
memory
|
|
143
147
|
} = {}) {
|
|
144
148
|
this.logger.debug("Starting tool conversion for LLM");
|
|
149
|
+
let mastraProxy = void 0;
|
|
150
|
+
const logger = this.logger;
|
|
151
|
+
if (this.#mastra) {
|
|
152
|
+
mastraProxy = createMastraProxy({
|
|
153
|
+
mastra: this.#mastra,
|
|
154
|
+
logger
|
|
155
|
+
});
|
|
156
|
+
}
|
|
145
157
|
const converted = Object.entries(tools || {}).reduce((memo, value) => {
|
|
146
158
|
const k = value[0];
|
|
147
159
|
const tool = value[1];
|
|
@@ -153,7 +165,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
153
165
|
resourceId,
|
|
154
166
|
logger: this.logger,
|
|
155
167
|
memory,
|
|
156
|
-
mastra:
|
|
168
|
+
mastra: mastraProxy
|
|
157
169
|
};
|
|
158
170
|
memo[k] = makeCoreTool(tool, options);
|
|
159
171
|
}
|
|
@@ -627,7 +639,8 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
627
639
|
throw new Error(`LanguageModel is required to create an Agent. Please provide the 'model'.`);
|
|
628
640
|
}
|
|
629
641
|
this.llm = new MastraLLM({
|
|
630
|
-
model: config.model
|
|
642
|
+
model: config.model,
|
|
643
|
+
mastra: config.mastra
|
|
631
644
|
});
|
|
632
645
|
this.tools = {};
|
|
633
646
|
this.metrics = {};
|
|
@@ -636,6 +649,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
636
649
|
this.tools = ensureToolProperties(config.tools);
|
|
637
650
|
}
|
|
638
651
|
if (config.mastra) {
|
|
652
|
+
this.__registerMastra(config.mastra);
|
|
639
653
|
this.__registerPrimitives({
|
|
640
654
|
telemetry: config.mastra.getTelemetry(),
|
|
641
655
|
logger: config.mastra.getLogger()
|
|
@@ -688,6 +702,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
688
702
|
}
|
|
689
703
|
__registerMastra(mastra) {
|
|
690
704
|
this.#mastra = mastra;
|
|
705
|
+
this.llm.__registerMastra(mastra);
|
|
691
706
|
}
|
|
692
707
|
/**
|
|
693
708
|
* Set the concrete tools for the agent
|
|
@@ -2002,7 +2002,8 @@ var Workflow = class extends chunkPL7PVTGF_cjs.MastraBase {
|
|
|
2002
2002
|
if (activeRun) {
|
|
2003
2003
|
return activeRun.resume({ stepId, context: resumeContext });
|
|
2004
2004
|
}
|
|
2005
|
-
|
|
2005
|
+
const run = this.createRun({ runId });
|
|
2006
|
+
return run.resume({ stepId, context: resumeContext });
|
|
2006
2007
|
}
|
|
2007
2008
|
watch(onTransition) {
|
|
2008
2009
|
this.logger.warn(`Please use 'watch' on the 'createRun' call instead, watch is deprecated`);
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, a as MetricResult } from '../types-CwTG2XyQ.cjs';
|
|
2
|
-
import { A as Agent } from '../base-
|
|
2
|
+
import { A as Agent } from '../base-DbCjWM67.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-ObPJ-w8K.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4PYORXWM_cjs = require('./chunk-4PYORXWM.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkVTVNTJAD_cjs = require('./chunk-VTVNTJAD.cjs');
|
|
5
5
|
var chunkXLSROQ26_cjs = require('./chunk-XLSROQ26.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkYXJQFZOW_cjs = require('./chunk-YXJQFZOW.cjs');
|
|
7
7
|
var chunk5ROCYEY7_cjs = require('./chunk-5ROCYEY7.cjs');
|
|
8
8
|
var chunkRUA6BSB6_cjs = require('./chunk-RUA6BSB6.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk7BVC5JCJ_cjs = require('./chunk-7BVC5JCJ.cjs');
|
|
10
10
|
var chunkWVVKLIUW_cjs = require('./chunk-WVVKLIUW.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk5BKWVGKC_cjs = require('./chunk-5BKWVGKC.cjs');
|
|
12
12
|
var chunkXB2TJ7LX_cjs = require('./chunk-XB2TJ7LX.cjs');
|
|
13
13
|
var chunkWSMI66XC_cjs = require('./chunk-WSMI66XC.cjs');
|
|
14
14
|
var chunk2W2GYEYQ_cjs = require('./chunk-2W2GYEYQ.cjs');
|
|
@@ -19,7 +19,7 @@ var chunkV5ORZPFW_cjs = require('./chunk-V5ORZPFW.cjs');
|
|
|
19
19
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
20
20
|
|
|
21
21
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
22
|
+
var Agent2 = class extends chunk5BKWVGKC_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"');
|
|
@@ -107,7 +107,7 @@ var MastraVector2 = class extends chunkRUA6BSB6_cjs.MastraVector {
|
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
// src/workflows/workflow.warning.ts
|
|
110
|
-
var Workflow2 = class extends
|
|
110
|
+
var Workflow2 = class extends chunkVTVNTJAD_cjs.Workflow {
|
|
111
111
|
constructor(args) {
|
|
112
112
|
super(args);
|
|
113
113
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -116,79 +116,79 @@ var Workflow2 = class extends chunkYW6NIHPF_cjs.Workflow {
|
|
|
116
116
|
|
|
117
117
|
Object.defineProperty(exports, "Step", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkVTVNTJAD_cjs.Step; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkVTVNTJAD_cjs.WhenConditionReturnValue; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "createStep", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkVTVNTJAD_cjs.createStep; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkVTVNTJAD_cjs.getActivePathsAndStatus; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkVTVNTJAD_cjs.getResultActivePaths; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "getStepResult", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkVTVNTJAD_cjs.getStepResult; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkVTVNTJAD_cjs.getSuspendedPaths; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkVTVNTJAD_cjs.isErrorEvent; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "isFinalState", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkVTVNTJAD_cjs.isFinalState; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "isLimboState", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkVTVNTJAD_cjs.isLimboState; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkVTVNTJAD_cjs.isTransitionEvent; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "isVariableReference", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkVTVNTJAD_cjs.isVariableReference; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkVTVNTJAD_cjs.mergeChildValue; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkVTVNTJAD_cjs.recursivelyCheckForFinalState; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkVTVNTJAD_cjs.updateStepInHierarchy; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "Mastra", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkYXJQFZOW_cjs.Mastra; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk7BVC5JCJ_cjs.CohereRelevanceScorer; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk7BVC5JCJ_cjs.MastraAgentRelevanceScorer; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk7BVC5JCJ_cjs.createSimilarityPrompt; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
194
194
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-CwTG2XyQ.cjs';
|
|
2
2
|
export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.cjs';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-
|
|
4
|
-
export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-
|
|
3
|
+
import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-DbCjWM67.cjs';
|
|
4
|
+
export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-DbCjWM67.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-ObPJ-w8K.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-ObPJ-w8K.cjs';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-CwTG2XyQ.js';
|
|
2
2
|
export { a as MetricResult, T as TestInfo } from './types-CwTG2XyQ.js';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-
|
|
4
|
-
export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-
|
|
3
|
+
import { T as ToolAction, A as Agent$1, m as AgentConfig, g as MastraStorage$1, c as MastraMemory$1, n as ToolExecutionContext, o as Tool$1, S as Step, W as Workflow$1, p as WorkflowOptions } from './base-CMQiCwHG.js';
|
|
4
|
+
export { a7 as ActionContext, a6 as BaseCondition, B as BaseStructuredOutputType, X as Config, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, C as CoreTool, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, ak as DependencyCheckOutput, x as EmbedManyResult, w as EmbedResult, E as EvalRow, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, M as Mastra, Z as MemoryConfig, Y as MessageResponse, k as MessageType, O as OutputType, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, _ as SharedMemoryConfig, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, ac as StepResult, a1 as StepVariableType, ad as StepsRecord, i as StorageColumn, l as StorageGetMessagesArg, j as StorageThreadType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType, aj as SubscriberFunctionOutput, a5 as VariableReference, V as VercelTool, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, ax as WorkflowResumeResult, q as WorkflowRow, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep, $ as createTool } from './base-CMQiCwHG.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-Cmunaaxb.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-Cmunaaxb.js';
|
|
7
7
|
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-CquI0inB.js';
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-WBE5RTFI.js';
|
|
2
|
-
import { Workflow } from './chunk-
|
|
3
|
-
export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-
|
|
2
|
+
import { Workflow } from './chunk-5J2V6T6D.js';
|
|
3
|
+
export { Step, WhenConditionReturnValue, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from './chunk-5J2V6T6D.js';
|
|
4
4
|
import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
|
|
5
|
-
export { Mastra } from './chunk-
|
|
5
|
+
export { Mastra } from './chunk-ZBKJDQPM.js';
|
|
6
6
|
import { MastraMemory } from './chunk-OC5LOLNS.js';
|
|
7
7
|
import { MastraVector } from './chunk-ZABXT2MN.js';
|
|
8
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-F6HJG4BI.js';
|
|
9
9
|
import { MastraStorage } from './chunk-RU7CSPAV.js';
|
|
10
|
-
import { Agent } from './chunk-
|
|
10
|
+
import { Agent } from './chunk-SEYVSQ4I.js';
|
|
11
11
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-W5HVJX45.js';
|
|
12
12
|
export { createMastraProxy, deepMerge, delay, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-64NEAPI4.js';
|
|
13
13
|
import { Tool } from './chunk-ZINPRHAN.js';
|
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 { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-DbCjWM67.cjs';
|
|
5
5
|
import '../index-CquI0inB.cjs';
|
|
6
6
|
import '../base-ObPJ-w8K.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 { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, t as CoreAssistantMessage, r as CoreMessage, s as CoreSystemMessage, v as CoreToolMessage, u as CoreUserMessage, K as DefaultLLMStreamObjectOptions, J as DefaultLLMStreamOptions, I as DefaultLLMTextObjectOptions, H as DefaultLLMTextOptions, x as EmbedManyResult, w as EmbedResult, G as GenerateReturn, R as LLMInnerStreamOptions, U as LLMStreamObjectOptions, Q as LLMStreamOptions, P as LLMTextObjectOptions, N as LLMTextOptions, L as LanguageModel, O as OutputType, F as StreamReturn, D as StructuredOutput, z as StructuredOutputArrayItem, y as StructuredOutputType } from '../base-CMQiCwHG.js';
|
|
5
5
|
import '../index-CquI0inB.js';
|
|
6
6
|
import '../base-Cmunaaxb.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYXJQFZOW_cjs = require('../chunk-YXJQFZOW.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 chunkYXJQFZOW_cjs.Mastra; }
|
|
10
10
|
});
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-ZBKJDQPM.js';
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-
|
|
1
|
+
export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-DbCjWM67.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-
|
|
1
|
+
export { c as MastraMemory, Z as MemoryConfig, Y as MessageResponse, k as MessageType, _ as SharedMemoryConfig, j as StorageThreadType } from '../base-CMQiCwHG.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.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 chunk5BKWVGKC_cjs = require('../chunk-5BKWVGKC.cjs');
|
|
4
4
|
var chunk2W2GYEYQ_cjs = require('../chunk-2W2GYEYQ.cjs');
|
|
5
5
|
var chunkPL7PVTGF_cjs = require('../chunk-PL7PVTGF.cjs');
|
|
6
6
|
var chunkNPOKIPWC_cjs = require('../chunk-NPOKIPWC.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkPL7PVTGF_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 chunk5BKWVGKC_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
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 chunk7BVC5JCJ_cjs = require('../chunk-7BVC5JCJ.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 chunk7BVC5JCJ_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7BVC5JCJ_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7BVC5JCJ_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-F6HJG4BI.js';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-DbCjWM67.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-
|
|
1
|
+
export { E as EvalRow, g as MastraStorage, i as StorageColumn, l as StorageGetMessagesArg, aK as TABLE_EVALS, aL as TABLE_MESSAGES, h as TABLE_NAMES, aM as TABLE_THREADS, aN as TABLE_TRACES, aJ as TABLE_WORKFLOW_SNAPSHOT, q as WorkflowRow } from '../base-CMQiCwHG.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-
|
|
1
|
+
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-DbCjWM67.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-
|
|
1
|
+
import { g as MastraStorage, h as TABLE_NAMES, i as StorageColumn, j as StorageThreadType, k as MessageType, l as StorageGetMessagesArg, E as EvalRow } from '../../base-CMQiCwHG.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
6
|
-
import { g as MastraStorage } from '../base-
|
|
6
|
+
import { g as MastraStorage } from '../base-DbCjWM67.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
|
@@ -3,7 +3,7 @@ import { SpanKind } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
|
6
|
-
import { g as MastraStorage } from '../base-
|
|
6
|
+
import { g as MastraStorage } from '../base-CMQiCwHG.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-
|
|
1
|
+
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-DbCjWM67.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-
|
|
1
|
+
export { C as CoreTool, o as Tool, T as ToolAction, n as ToolExecutionContext, V as VercelTool, $ as createTool } from '../base-CMQiCwHG.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-
|
|
1
|
+
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-DbCjWM67.cjs';
|
|
2
2
|
import { MastraTTS } from './tts/index.cjs';
|
|
3
3
|
import { MastraVector } from './vector/index.cjs';
|
|
4
4
|
import { M as Metric } from './types-CwTG2XyQ.cjs';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-
|
|
1
|
+
import { V as VercelTool, T as ToolAction, a as ToolsInput, M as Mastra, b as MastraPrimitives, c as MastraMemory, C as CoreTool, A as Agent, W as Workflow, S as Step, d as StepExecutionContext, e as WorkflowContext, f as AgentNetwork } from './base-CMQiCwHG.js';
|
|
2
2
|
import { MastraTTS } from './tts/index.js';
|
|
3
3
|
import { MastraVector } from './vector/index.js';
|
|
4
4
|
import { M as Metric } from './types-CwTG2XyQ.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-
|
|
1
|
+
export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-DbCjWM67.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-ObPJ-w8K.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-
|
|
1
|
+
export { aF as CompositeVoice, aE as MastraVoice, aD as VoiceConfig, aC as VoiceEventMap, aB as VoiceEventType } from '../base-CMQiCwHG.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-Cmunaaxb.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVTVNTJAD_cjs = require('../chunk-VTVNTJAD.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 chunkVTVNTJAD_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVTVNTJAD_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVTVNTJAD_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "createStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVTVNTJAD_cjs.createStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVTVNTJAD_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkVTVNTJAD_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkVTVNTJAD_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkVTVNTJAD_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkVTVNTJAD_cjs.isErrorEvent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isFinalState", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkVTVNTJAD_cjs.isFinalState; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isLimboState", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkVTVNTJAD_cjs.isLimboState; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVTVNTJAD_cjs.isTransitionEvent; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isVariableReference", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkVTVNTJAD_cjs.isVariableReference; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkVTVNTJAD_cjs.mergeChildValue; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkVTVNTJAD_cjs.recursivelyCheckForFinalState; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkVTVNTJAD_cjs.updateStepInHierarchy; }
|
|
70
70
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a5 as VariableReference, ac as StepResult } from '../base-
|
|
2
|
-
export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-
|
|
1
|
+
import { a5 as VariableReference, ac as StepResult } from '../base-DbCjWM67.cjs';
|
|
2
|
+
export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-DbCjWM67.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-ObPJ-w8K.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a5 as VariableReference, ac as StepResult } from '../base-
|
|
2
|
-
export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-
|
|
1
|
+
import { a5 as VariableReference, ac as StepResult } from '../base-CMQiCwHG.js';
|
|
2
|
+
export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, S as Step, a0 as StepAction, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, W as Workflow, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, e as WorkflowContext, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, ae as WorkflowRunResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-CMQiCwHG.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-Cmunaaxb.js';
|
|
5
5
|
import '@opentelemetry/api';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, mergeChildValue, recursivelyCheckForFinalState, updateStepInHierarchy } from '../chunk-5J2V6T6D.js';
|
package/package.json
CHANGED
|
@@ -138,6 +138,7 @@ This is a warning for now, but will throw an error in the future
|
|
|
138
138
|
if (agents[key]) {
|
|
139
139
|
throw new Error(`Agent with name ID:${key} already exists`);
|
|
140
140
|
}
|
|
141
|
+
agent.__registerMastra(this);
|
|
141
142
|
agent.__registerPrimitives({
|
|
142
143
|
logger: this.getLogger(),
|
|
143
144
|
telemetry: this.#telemetry,
|
|
@@ -147,7 +148,6 @@ This is a warning for now, but will throw an error in the future
|
|
|
147
148
|
tts: this.#tts,
|
|
148
149
|
vectors: this.#vectors
|
|
149
150
|
});
|
|
150
|
-
agent.__registerMastra(this);
|
|
151
151
|
agents[key] = agent;
|
|
152
152
|
});
|
|
153
153
|
}
|
|
@@ -136,6 +136,7 @@ This is a warning for now, but will throw an error in the future
|
|
|
136
136
|
if (agents[key]) {
|
|
137
137
|
throw new Error(`Agent with name ID:${key} already exists`);
|
|
138
138
|
}
|
|
139
|
+
agent.__registerMastra(this);
|
|
139
140
|
agent.__registerPrimitives({
|
|
140
141
|
logger: this.getLogger(),
|
|
141
142
|
telemetry: this.#telemetry,
|
|
@@ -145,7 +146,6 @@ This is a warning for now, but will throw an error in the future
|
|
|
145
146
|
tts: this.#tts,
|
|
146
147
|
vectors: this.#vectors
|
|
147
148
|
});
|
|
148
|
-
agent.__registerMastra(this);
|
|
149
149
|
agents[key] = agent;
|
|
150
150
|
});
|
|
151
151
|
}
|