@mastra/core 0.9.2-alpha.6 → 0.9.2
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-CP0djERZ.d.cts → base-B3g_Q3KV.d.cts} +1 -1
- package/dist/{base-ukwrvBvm.d.ts → base-Dq_YZkEc.d.ts} +1 -1
- package/dist/{chunk-QESYVGP2.cjs → chunk-6FW4DXZO.cjs} +2 -2
- package/dist/{chunk-KHSHYGJU.js → chunk-SIQPAONL.js} +1 -1
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +36 -36
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- 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/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 +1 -1
- package/dist/server/index.d.ts +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 +22 -22
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/vNext/index.cjs +3 -3
- package/dist/workflows/vNext/index.d.cts +2 -2
- package/dist/workflows/vNext/index.d.ts +2 -2
- package/dist/workflows/vNext/index.js +2 -2
- package/package.json +3 -3
- package/dist/{chunk-WQVDK654.cjs → chunk-HAFLSGW5.cjs} +1 -1
- package/dist/{chunk-TNZMJBPN.js → chunk-URYHOYKQ.js} +1 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.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 chunkHAFLSGW5_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 { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument,
|
|
4
|
+
export { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b4 as MastraLanguageModel, b1 as ToolsInput, bc as ToolsetsInput } from '../base-B3g_Q3KV.cjs';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '../types-BtMyV38I.cjs';
|
|
7
7
|
import '../runtime-context/index.cjs';
|
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 { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument,
|
|
4
|
+
export { F as Agent, G as AgentConfig, be as AgentGenerateOptions, bf as AgentStreamOptions, bd as DynamicArgument, b4 as MastraLanguageModel, b1 as ToolsInput, bc as ToolsetsInput } from '../base-Dq_YZkEc.js';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '../types-BtMyV38I.js';
|
|
7
7
|
import '../runtime-context/index.js';
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-URYHOYKQ.js';
|
|
@@ -2676,4 +2676,4 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
2676
2676
|
}): Promise<WorkflowRun | null>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
|
-
export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type
|
|
2679
|
+
export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type ToolsInput as b1, type MastraPrimitives as b2, AgentNetwork as b3, type MastraLanguageModel as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
|
|
@@ -2676,4 +2676,4 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
2676
2676
|
}): Promise<WorkflowRun | null>;
|
|
2677
2677
|
}
|
|
2678
2678
|
|
|
2679
|
-
export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type
|
|
2679
|
+
export { type CoreToolMessage as $, type ApiRoute as A, type WatchEvent as B, type ToolAction as C, type DynamicMapping as D, type EvalRow as E, Agent as F, type AgentConfig as G, MastraMemory as H, type ToolExecutionContext as I, Tool as J, Step as K, Workflow as L, type Methods as M, type NewStep as N, type WorkflowOptions as O, type PathsToStringProps as P, type LanguageModel as Q, Run as R, type StorageColumn as S, type TABLE_NAMES as T, type CoreMessage as U, type VariableReference as V, type WorkflowRuns as W, type CoreSystemMessage as X, type CoreAssistantMessage as Y, type ZodPathType as Z, type CoreUserMessage as _, Mastra as a, type WorkflowRunState as a$, type EmbedResult as a0, type EmbedManyResult as a1, type BaseStructuredOutputType as a2, type StructuredOutputType as a3, type StructuredOutputArrayItem as a4, type StructuredOutput as a5, type GenerateReturn as a6, type StreamReturn as a7, type OutputType as a8, type DefaultLLMTextOptions as a9, type BaseCondition as aA, type ActionContext as aB, WhenConditionReturnValue as aC, type StepDef as aD, type StepCondition as aE, type StepConfig as aF, type StepResult$1 as aG, type StepsRecord$1 as aH, type WorkflowRunResult as aI, type WorkflowContext as aJ, type WorkflowLogMessage as aK, type WorkflowEvent as aL, type ResolverFunctionInput as aM, type ResolverFunctionOutput as aN, type SubscriberFunctionOutput as aO, type DependencyCheckOutput as aP, type StepResolverOutput as aQ, type WorkflowActors as aR, type WorkflowActionParams as aS, type WorkflowActions as aT, type WorkflowState as aU, type StepId as aV, type ExtractSchemaFromStep$1 as aW, type ExtractStepResult as aX, type StepInputType as aY, type ExtractSchemaType$1 as aZ, type PathsToStringProps$1 as a_, type DefaultLLMTextObjectOptions as aa, type DefaultLLMStreamOptions as ab, type DefaultLLMStreamObjectOptions as ac, type LLMTextOptions as ad, type LLMTextObjectOptions as ae, type LLMStreamOptions as af, type LLMInnerStreamOptions as ag, type LLMStreamObjectOptions as ah, createMockModel as ai, type Config as aj, type MessageResponse as ak, type MemoryConfig as al, type SharedMemoryConfig as am, type MemoryProcessorOpts as an, MemoryProcessor as ao, memoryDefaultOptions as ap, createTool as aq, type VercelTool as ar, type CoreTool as as, type StepExecutionContext as at, type StepAction as au, type StepVariableType as av, type StepNode as aw, type StepGraph as ax, type RetryConfig as ay, type VariableReference$1 as az, MastraStorage as b, type WorkflowResumeResult as b0, type ToolsInput as b1, type MastraPrimitives as b2, AgentNetwork as b3, type MastraLanguageModel as b4, type AgentNetworkConfig as b5, type VoiceEventType as b6, type VoiceEventMap as b7, type VoiceConfig as b8, MastraVoice as b9, CompositeVoice as ba, DefaultVoice as bb, type ToolsetsInput as bc, type DynamicArgument as bd, type AgentGenerateOptions as be, type AgentStreamOptions as bf, TABLE_WORKFLOW_SNAPSHOT as bg, TABLE_EVALS as bh, TABLE_MESSAGES as bi, TABLE_THREADS as bj, TABLE_TRACES as bk, TABLE_SCHEMAS as bl, type StorageThreadType as c, type MessageType as d, type StorageGetMessagesArg as e, type WorkflowRun as f, ExecutionEngine as g, type ExecutionGraph as h, type StepResult as i, type StepFlowEntry as j, type ExecuteFunction as k, type SerializedStep as l, type SerializedStepFlowEntry as m, createStep as n, cloneStep as o, createWorkflow as p, cloneWorkflow as q, type WorkflowResult as r, type NewWorkflowConfig as s, NewWorkflow as t, type StepSuccess as u, type StepFailure as v, type StepSuspended as w, type StepsRecord as x, type ExtractSchemaType as y, type ExtractSchemaFromStep as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHAFLSGW5_cjs = require('./chunk-HAFLSGW5.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 chunkHAFLSGW5_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.
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.cjs';
|
|
2
2
|
export { M as MetricResult } from '../types-BtMyV38I.cjs';
|
|
3
|
-
import { F as Agent } from '../base-
|
|
3
|
+
import { F as Agent } from '../base-B3g_Q3KV.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as Metric, T as TestInfo, E as EvaluationResult } from '../types-BtMyV38I.js';
|
|
2
2
|
export { M as MetricResult } from '../types-BtMyV38I.js';
|
|
3
|
-
import { F as Agent } from '../base-
|
|
3
|
+
import { F as Agent } from '../base-Dq_YZkEc.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk6FW4DXZO_cjs = require('./chunk-6FW4DXZO.cjs');
|
|
3
4
|
var chunkZZRFVSYZ_cjs = require('./chunk-ZZRFVSYZ.cjs');
|
|
4
5
|
var chunkB7N24G5E_cjs = require('./chunk-B7N24G5E.cjs');
|
|
5
6
|
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
@@ -7,8 +8,7 @@ var chunkJSKASUR2_cjs = require('./chunk-JSKASUR2.cjs');
|
|
|
7
8
|
var chunkJTKSOVYL_cjs = require('./chunk-JTKSOVYL.cjs');
|
|
8
9
|
var chunkYAJVZMZH_cjs = require('./chunk-YAJVZMZH.cjs');
|
|
9
10
|
var chunkXNBNJEES_cjs = require('./chunk-XNBNJEES.cjs');
|
|
10
|
-
var
|
|
11
|
-
var chunkWQVDK654_cjs = require('./chunk-WQVDK654.cjs');
|
|
11
|
+
var chunkHAFLSGW5_cjs = require('./chunk-HAFLSGW5.cjs');
|
|
12
12
|
var chunkMYHX5XVW_cjs = require('./chunk-MYHX5XVW.cjs');
|
|
13
13
|
var chunkD2Y3ET63_cjs = require('./chunk-D2Y3ET63.cjs');
|
|
14
14
|
var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
|
|
@@ -18,7 +18,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
|
18
18
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
19
19
|
|
|
20
20
|
// src/agent/index.warning.ts
|
|
21
|
-
var Agent2 = class extends
|
|
21
|
+
var Agent2 = class extends chunkHAFLSGW5_cjs.Agent {
|
|
22
22
|
constructor(config) {
|
|
23
23
|
super(config);
|
|
24
24
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -106,13 +106,25 @@ var MastraVector2 = class extends chunkYAJVZMZH_cjs.MastraVector {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
// src/workflows/workflow.warning.ts
|
|
109
|
-
var Workflow2 = class extends
|
|
109
|
+
var Workflow2 = class extends chunkHAFLSGW5_cjs.Workflow {
|
|
110
110
|
constructor(args) {
|
|
111
111
|
super(args);
|
|
112
112
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
+
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
get: function () { return chunk6FW4DXZO_cjs.CohereRelevanceScorer; }
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () { return chunk6FW4DXZO_cjs.MastraAgentRelevanceScorer; }
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function () { return chunk6FW4DXZO_cjs.createSimilarityPrompt; }
|
|
127
|
+
});
|
|
116
128
|
Object.defineProperty(exports, "createMockModel", {
|
|
117
129
|
enumerable: true,
|
|
118
130
|
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
@@ -129,97 +141,85 @@ Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
|
129
141
|
enumerable: true,
|
|
130
142
|
get: function () { return chunkJTKSOVYL_cjs.memoryDefaultOptions; }
|
|
131
143
|
});
|
|
132
|
-
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
133
|
-
enumerable: true,
|
|
134
|
-
get: function () { return chunkQESYVGP2_cjs.CohereRelevanceScorer; }
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
get: function () { return chunkQESYVGP2_cjs.MastraAgentRelevanceScorer; }
|
|
139
|
-
});
|
|
140
|
-
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
141
|
-
enumerable: true,
|
|
142
|
-
get: function () { return chunkQESYVGP2_cjs.createSimilarityPrompt; }
|
|
143
|
-
});
|
|
144
144
|
Object.defineProperty(exports, "Step", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunkHAFLSGW5_cjs.Step; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunkHAFLSGW5_cjs.WhenConditionReturnValue; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "agentToStep", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunkHAFLSGW5_cjs.agentToStep; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunkHAFLSGW5_cjs.getActivePathsAndStatus; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
161
161
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunkHAFLSGW5_cjs.getResultActivePaths; }
|
|
163
163
|
});
|
|
164
164
|
Object.defineProperty(exports, "getStepResult", {
|
|
165
165
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
166
|
+
get: function () { return chunkHAFLSGW5_cjs.getStepResult; }
|
|
167
167
|
});
|
|
168
168
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
169
169
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunkHAFLSGW5_cjs.getSuspendedPaths; }
|
|
171
171
|
});
|
|
172
172
|
Object.defineProperty(exports, "isAgent", {
|
|
173
173
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
174
|
+
get: function () { return chunkHAFLSGW5_cjs.isAgent; }
|
|
175
175
|
});
|
|
176
176
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
177
177
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunkHAFLSGW5_cjs.isConditionalKey; }
|
|
179
179
|
});
|
|
180
180
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
181
181
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunkHAFLSGW5_cjs.isErrorEvent; }
|
|
183
183
|
});
|
|
184
184
|
Object.defineProperty(exports, "isFinalState", {
|
|
185
185
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunkHAFLSGW5_cjs.isFinalState; }
|
|
187
187
|
});
|
|
188
188
|
Object.defineProperty(exports, "isLimboState", {
|
|
189
189
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunkHAFLSGW5_cjs.isLimboState; }
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
193
193
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunkHAFLSGW5_cjs.isTransitionEvent; }
|
|
195
195
|
});
|
|
196
196
|
Object.defineProperty(exports, "isVariableReference", {
|
|
197
197
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunkHAFLSGW5_cjs.isVariableReference; }
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "isWorkflow", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkHAFLSGW5_cjs.isWorkflow; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkHAFLSGW5_cjs.mergeChildValue; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkHAFLSGW5_cjs.recursivelyCheckForFinalState; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "resolveVariables", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkHAFLSGW5_cjs.resolveVariables; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkHAFLSGW5_cjs.updateStepInHierarchy; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "workflowToStep", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkHAFLSGW5_cjs.workflowToStep; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
225
225
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as Metric } from './types-BtMyV38I.cjs';
|
|
2
2
|
export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.cjs';
|
|
3
|
-
import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-
|
|
4
|
-
export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-
|
|
3
|
+
import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-B3g_Q3KV.cjs';
|
|
4
|
+
export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-B3g_Q3KV.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-BihKcqDY.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BihKcqDY.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 { a as Metric } from './types-BtMyV38I.js';
|
|
2
2
|
export { E as EvaluationResult, M as MetricResult, T as TestInfo } from './types-BtMyV38I.js';
|
|
3
|
-
import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-
|
|
4
|
-
export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-
|
|
3
|
+
import { C as ToolAction, F as Agent$1, G as AgentConfig, b as MastraStorage$1, H as MastraMemory$1, I as ToolExecutionContext, J as Tool$1, K as Step, L as Workflow$1, O as WorkflowOptions } from './base-Dq_YZkEc.js';
|
|
4
|
+
export { aB as ActionContext, aA as BaseCondition, a2 as BaseStructuredOutputType, aj as Config, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, as as CoreTool, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, aP as DependencyCheckOutput, a1 as EmbedManyResult, a0 as EmbedResult, E as EvalRow, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a as Mastra, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, a8 as OutputType, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, am as SharedMemoryConfig, au as StepAction, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, aG as StepResult, av as StepVariableType, aH as StepsRecord, S as StorageColumn, e as StorageGetMessagesArg, c as StorageThreadType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, aO as SubscriberFunctionOutput, az as VariableReference, ar as VercelTool, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aJ as WorkflowContext, aL as WorkflowEvent, aK as WorkflowLogMessage, b0 as WorkflowResumeResult, f as WorkflowRun, aI as WorkflowRunResult, a$ as WorkflowRunState, W as WorkflowRuns, aU as WorkflowState, ai as createMockModel, aq as createTool, ap as memoryDefaultOptions } from './base-Dq_YZkEc.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-DT2poiVK.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-DT2poiVK.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,3 +1,4 @@
|
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-SIQPAONL.js';
|
|
1
2
|
import { MastraTTS } from './chunk-7IAP7VPO.js';
|
|
2
3
|
import { Integration, OpenAPIToolset } from './chunk-IBKW4TJU.js';
|
|
3
4
|
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
@@ -6,9 +7,8 @@ import { MastraMemory } from './chunk-2JNVEJCM.js';
|
|
|
6
7
|
export { MemoryProcessor, memoryDefaultOptions } from './chunk-2JNVEJCM.js';
|
|
7
8
|
import { MastraVector } from './chunk-LXIAHZ45.js';
|
|
8
9
|
import { MastraStorage } from './chunk-52SRR7WR.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-TNZMJBPN.js';
|
|
10
|
+
import { Agent, Workflow } from './chunk-URYHOYKQ.js';
|
|
11
|
+
export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-URYHOYKQ.js';
|
|
12
12
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-KWYJUFY3.js';
|
|
13
13
|
import { Tool } from './chunk-ZCJJ6XOH.js';
|
|
14
14
|
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-ZCJJ6XOH.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 { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-
|
|
4
|
+
export { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-B3g_Q3KV.cjs';
|
|
5
5
|
import '../index-CquI0inB.cjs';
|
|
6
6
|
import '../runtime-context/index.cjs';
|
|
7
7
|
import '../base-BihKcqDY.cjs';
|
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 { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-
|
|
4
|
+
export { a2 as BaseStructuredOutputType, Y as CoreAssistantMessage, U as CoreMessage, X as CoreSystemMessage, $ as CoreToolMessage, _ as CoreUserMessage, ac as DefaultLLMStreamObjectOptions, ab as DefaultLLMStreamOptions, aa as DefaultLLMTextObjectOptions, a9 as DefaultLLMTextOptions, a1 as EmbedManyResult, a0 as EmbedResult, a6 as GenerateReturn, ag as LLMInnerStreamOptions, ah as LLMStreamObjectOptions, af as LLMStreamOptions, ae as LLMTextObjectOptions, ad as LLMTextOptions, Q as LanguageModel, a8 as OutputType, a7 as StreamReturn, a5 as StructuredOutput, a4 as StructuredOutputArrayItem, a3 as StructuredOutputType, ai as createMockModel } from '../base-Dq_YZkEc.js';
|
|
5
5
|
import '../index-CquI0inB.js';
|
|
6
6
|
import '../runtime-context/index.js';
|
|
7
7
|
import '../base-DT2poiVK.js';
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-B3g_Q3KV.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { H as MastraMemory, al as MemoryConfig, ao as MemoryProcessor, an as MemoryProcessorOpts, ak as MessageResponse, d as MessageType, am as SharedMemoryConfig, c as StorageThreadType, ap as memoryDefaultOptions } from '../base-Dq_YZkEc.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-DT2poiVK.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 chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.cjs');
|
|
4
4
|
var chunkD2Y3ET63_cjs = require('../chunk-D2Y3ET63.cjs');
|
|
5
5
|
var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_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 chunkHAFLSGW5_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 chunk6FW4DXZO_cjs = require('../chunk-6FW4DXZO.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 chunk6FW4DXZO_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk6FW4DXZO_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk6FW4DXZO_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-SIQPAONL.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-B3g_Q3KV.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BihKcqDY.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Handler, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-
|
|
3
|
+
import { M as Methods, a as Mastra, A as ApiRoute } from '../base-Dq_YZkEc.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-DT2poiVK.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-B3g_Q3KV.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-
|
|
1
|
+
export { E as EvalRow, b as MastraStorage, S as StorageColumn, e as StorageGetMessagesArg, bh as TABLE_EVALS, bi as TABLE_MESSAGES, T as TABLE_NAMES, bl as TABLE_SCHEMAS, bj as TABLE_THREADS, bk as TABLE_TRACES, bg as TABLE_WORKFLOW_SNAPSHOT, f as WorkflowRun, W as WorkflowRuns } from '../base-Dq_YZkEc.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '@libsql/client';
|
|
2
|
-
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-
|
|
2
|
+
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-B3g_Q3KV.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../base-BihKcqDY.cjs';
|
|
5
5
|
import '@opentelemetry/api';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Config } from '@libsql/client';
|
|
2
|
-
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-
|
|
2
|
+
import { b as MastraStorage, T as TABLE_NAMES, S as StorageColumn, c as StorageThreadType, d as MessageType, e as StorageGetMessagesArg, E as EvalRow, W as WorkflowRuns, f as WorkflowRun } from '../../base-Dq_YZkEc.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../../base-DT2poiVK.js';
|
|
5
5
|
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 { b as MastraStorage } from '../base-
|
|
6
|
+
import { b as MastraStorage } from '../base-B3g_Q3KV.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 { b as MastraStorage } from '../base-
|
|
6
|
+
import { b as MastraStorage } from '../base-Dq_YZkEc.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 { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-
|
|
1
|
+
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-B3g_Q3KV.cjs';
|
|
2
2
|
export { isVercelTool } from '../utils.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-BihKcqDY.cjs';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-
|
|
1
|
+
export { as as CoreTool, J as Tool, C as ToolAction, I as ToolExecutionContext, ar as VercelTool, aq as createTool } from '../base-Dq_YZkEc.js';
|
|
2
2
|
export { isVercelTool } from '../utils.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import '../base-DT2poiVK.js';
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as VercelTool, C as ToolAction,
|
|
1
|
+
import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-B3g_Q3KV.cjs';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as VercelTool, C as ToolAction,
|
|
1
|
+
import { ar as VercelTool, C as ToolAction, b1 as ToolsInput, a as Mastra, b2 as MastraPrimitives, H as MastraMemory, as as CoreTool, F as Agent, L as Workflow, K as Step, at as StepExecutionContext, aJ as WorkflowContext, t as NewWorkflow, N as NewStep, b3 as AgentNetwork } from './base-Dq_YZkEc.js';
|
|
2
2
|
import { CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-
|
|
1
|
+
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-B3g_Q3KV.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BihKcqDY.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-
|
|
1
|
+
export { ba as CompositeVoice, bb as DefaultVoice, b9 as MastraVoice, b8 as VoiceConfig, b7 as VoiceEventMap, b6 as VoiceEventType } from '../base-Dq_YZkEc.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-DT2poiVK.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHAFLSGW5_cjs = require('../chunk-HAFLSGW5.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 chunkHAFLSGW5_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkHAFLSGW5_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkHAFLSGW5_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkHAFLSGW5_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkHAFLSGW5_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkHAFLSGW5_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkHAFLSGW5_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkHAFLSGW5_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isAgent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkHAFLSGW5_cjs.isAgent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkHAFLSGW5_cjs.isConditionalKey; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkHAFLSGW5_cjs.isErrorEvent; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkHAFLSGW5_cjs.isFinalState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkHAFLSGW5_cjs.isLimboState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkHAFLSGW5_cjs.isTransitionEvent; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkHAFLSGW5_cjs.isVariableReference; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkHAFLSGW5_cjs.isWorkflow; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkHAFLSGW5_cjs.mergeChildValue; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkHAFLSGW5_cjs.recursivelyCheckForFinalState; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkHAFLSGW5_cjs.resolveVariables; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkHAFLSGW5_cjs.updateStepInHierarchy; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkHAFLSGW5_cjs.workflowToStep; }
|
|
90
90
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext,
|
|
2
|
-
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-
|
|
1
|
+
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-B3g_Q3KV.cjs';
|
|
2
|
+
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-B3g_Q3KV.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.cjs';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext,
|
|
2
|
-
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-
|
|
1
|
+
import { az as VariableReference, aG as StepResult, K as Step, L as Workflow, F as Agent, aJ as WorkflowContext, b1 as ToolsInput, a as Mastra, au as StepAction, aI as WorkflowRunResult } from '../base-Dq_YZkEc.js';
|
|
2
|
+
export { aB as ActionContext, aA as BaseCondition, aP as DependencyCheckOutput, aW as ExtractSchemaFromStep, aZ as ExtractSchemaType, aX as ExtractStepResult, a_ as PathsToStringProps, aM as ResolverFunctionInput, aN as ResolverFunctionOutput, ay as RetryConfig, aE as StepCondition, aF as StepConfig, aD as StepDef, at as StepExecutionContext, ax as StepGraph, aV as StepId, aY as StepInputType, aw as StepNode, aQ as StepResolverOutput, av as StepVariableType, aH as StepsRecord, aO as SubscriberFunctionOutput, aC as WhenConditionReturnValue, aS as WorkflowActionParams, aT as WorkflowActions, aR as WorkflowActors, aL as WorkflowEvent, aK as WorkflowLogMessage, O as WorkflowOptions, b0 as WorkflowResumeResult, a$ as WorkflowRunState, aU as WorkflowState } from '../base-Dq_YZkEc.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { a as Metric } from '../types-BtMyV38I.js';
|
|
5
5
|
import { L as Logger } from '../index-CquI0inB.js';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-URYHOYKQ.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHAFLSGW5_cjs = require('../../chunk-HAFLSGW5.cjs');
|
|
4
4
|
var chunkD2Y3ET63_cjs = require('../../chunk-D2Y3ET63.cjs');
|
|
5
|
+
var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
|
|
5
6
|
var chunkD63P5O4Q_cjs = require('../../chunk-D63P5O4Q.cjs');
|
|
6
7
|
var chunkO7IW545H_cjs = require('../../chunk-O7IW545H.cjs');
|
|
7
|
-
var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var EventEmitter = require('events');
|
|
10
10
|
var zod = require('zod');
|
|
@@ -631,7 +631,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
631
631
|
|
|
632
632
|
// src/workflows/vNext/workflow.ts
|
|
633
633
|
function createStep(params) {
|
|
634
|
-
if (params instanceof
|
|
634
|
+
if (params instanceof chunkHAFLSGW5_cjs.Agent) {
|
|
635
635
|
return {
|
|
636
636
|
id: params.name,
|
|
637
637
|
// @ts-ignore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-
|
|
2
|
-
export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-
|
|
1
|
+
import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-B3g_Q3KV.cjs';
|
|
2
|
+
export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-B3g_Q3KV.cjs';
|
|
3
3
|
import EventEmitter from 'events';
|
|
4
4
|
import { Span } from '@opentelemetry/api';
|
|
5
5
|
import { RuntimeContext } from '../../runtime-context/index.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-
|
|
2
|
-
export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-
|
|
1
|
+
import { g as ExecutionEngine, h as ExecutionGraph, i as StepResult, j as StepFlowEntry, N as NewStep, k as ExecuteFunction } from '../../base-Dq_YZkEc.js';
|
|
2
|
+
export { D as DynamicMapping, z as ExtractSchemaFromStep, y as ExtractSchemaType, t as NewWorkflow, s as NewWorkflowConfig, P as PathsToStringProps, R as Run, l as SerializedStep, m as SerializedStepFlowEntry, v as StepFailure, u as StepSuccess, w as StepSuspended, x as StepsRecord, V as VariableReference, B as WatchEvent, r as WorkflowResult, Z as ZodPathType, o as cloneStep, q as cloneWorkflow, n as createStep, p as createWorkflow } from '../../base-Dq_YZkEc.js';
|
|
3
3
|
import EventEmitter from 'events';
|
|
4
4
|
import { Span } from '@opentelemetry/api';
|
|
5
5
|
import { RuntimeContext } from '../../runtime-context/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Agent } from '../../chunk-
|
|
1
|
+
import { Agent } from '../../chunk-URYHOYKQ.js';
|
|
2
2
|
import { Tool } from '../../chunk-ZCJJ6XOH.js';
|
|
3
|
+
import { RuntimeContext } from '../../chunk-SGGPJWRQ.js';
|
|
3
4
|
import { MastraBase } from '../../chunk-CLJQYXNM.js';
|
|
4
5
|
import { RegisteredLogger } from '../../chunk-2BVZNKLX.js';
|
|
5
|
-
import { RuntimeContext } from '../../chunk-SGGPJWRQ.js';
|
|
6
6
|
import { randomUUID } from 'crypto';
|
|
7
7
|
import EventEmitter from 'events';
|
|
8
8
|
import { z } from 'zod';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.9.2
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -154,8 +154,8 @@
|
|
|
154
154
|
"tsup": "^8.4.0",
|
|
155
155
|
"typescript": "^5.8.2",
|
|
156
156
|
"vitest": "^3.1.2",
|
|
157
|
-
"zod": "^3.24.
|
|
158
|
-
"@internal/lint": "0.0.
|
|
157
|
+
"zod": "^3.24.3",
|
|
158
|
+
"@internal/lint": "0.0.3"
|
|
159
159
|
},
|
|
160
160
|
"engines": {
|
|
161
161
|
"node": ">=20"
|
|
@@ -4,9 +4,9 @@ var chunkPOEYDVX7_cjs = require('./chunk-POEYDVX7.cjs');
|
|
|
4
4
|
var chunkZVBLRU4W_cjs = require('./chunk-ZVBLRU4W.cjs');
|
|
5
5
|
var chunkMYHX5XVW_cjs = require('./chunk-MYHX5XVW.cjs');
|
|
6
6
|
var chunkD2Y3ET63_cjs = require('./chunk-D2Y3ET63.cjs');
|
|
7
|
+
var chunkLABUWBKX_cjs = require('./chunk-LABUWBKX.cjs');
|
|
7
8
|
var chunkD63P5O4Q_cjs = require('./chunk-D63P5O4Q.cjs');
|
|
8
9
|
var chunkO7IW545H_cjs = require('./chunk-O7IW545H.cjs');
|
|
9
|
-
var chunkLABUWBKX_cjs = require('./chunk-LABUWBKX.cjs');
|
|
10
10
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
11
11
|
var chunkRWTSGWWL_cjs = require('./chunk-RWTSGWWL.cjs');
|
|
12
12
|
var api = require('@opentelemetry/api');
|
|
@@ -2,9 +2,9 @@ import { DefaultVoice } from './chunk-Q6Z2YS6I.js';
|
|
|
2
2
|
import { MastraLLM } from './chunk-QV4ZJLWA.js';
|
|
3
3
|
import { InstrumentClass } from './chunk-KWYJUFY3.js';
|
|
4
4
|
import { ensureToolProperties, ensureAllMessagesAreCoreMessages, createMastraProxy, makeCoreTool } from './chunk-ZCJJ6XOH.js';
|
|
5
|
+
import { RuntimeContext } from './chunk-SGGPJWRQ.js';
|
|
5
6
|
import { MastraBase } from './chunk-CLJQYXNM.js';
|
|
6
7
|
import { RegisteredLogger } from './chunk-2BVZNKLX.js';
|
|
7
|
-
import { RuntimeContext } from './chunk-SGGPJWRQ.js';
|
|
8
8
|
import { executeHook } from './chunk-BB4KXGBU.js';
|
|
9
9
|
import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
|
|
10
10
|
import { context, trace } from '@opentelemetry/api';
|