@mastra/core 1.5.0 → 1.6.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/CHANGELOG.md +386 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/conversion/output-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +18 -18
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/workflows/prepare-stream/index.d.ts +7 -7
- package/dist/agent/workflows/prepare-stream/prepare-memory-step.d.ts +7 -7
- package/dist/agent/workflows/prepare-stream/schema.d.ts +11 -11
- package/dist/{chunk-CQ4Z6ZAV.cjs → chunk-3U3XFMGJ.cjs} +7 -7
- package/dist/{chunk-CQ4Z6ZAV.cjs.map → chunk-3U3XFMGJ.cjs.map} +1 -1
- package/dist/{chunk-D57U4II4.js → chunk-4WG5K4CK.js} +9 -8
- package/dist/chunk-4WG5K4CK.js.map +1 -0
- package/dist/{chunk-UZFGMMKU.js → chunk-5K45E5VE.js} +37 -3
- package/dist/chunk-5K45E5VE.js.map +1 -0
- package/dist/{chunk-OQ5LZ6OV.cjs → chunk-5VQPSWPG.cjs} +149 -61
- package/dist/chunk-5VQPSWPG.cjs.map +1 -0
- package/dist/{chunk-AIRMLZ43.js → chunk-7EXW4AAG.js} +4 -4
- package/dist/{chunk-AIRMLZ43.js.map → chunk-7EXW4AAG.js.map} +1 -1
- package/dist/{chunk-S4VVZI4E.cjs → chunk-AYHSPIT6.cjs} +326 -5
- package/dist/chunk-AYHSPIT6.cjs.map +1 -0
- package/dist/{chunk-YW54RH77.cjs → chunk-DB7U2C5B.cjs} +12 -5
- package/dist/chunk-DB7U2C5B.cjs.map +1 -0
- package/dist/{chunk-DST75PA4.js → chunk-DGS2KGDI.js} +4 -4
- package/dist/{chunk-DST75PA4.js.map → chunk-DGS2KGDI.js.map} +1 -1
- package/dist/{chunk-YIN5F7VO.js → chunk-EEU5NHHU.js} +4254 -3958
- package/dist/chunk-EEU5NHHU.js.map +1 -0
- package/dist/{chunk-A6EWCOGA.cjs → chunk-H5S4PS44.cjs} +197 -27
- package/dist/chunk-H5S4PS44.cjs.map +1 -0
- package/dist/{chunk-3YMDR4OL.cjs → chunk-HTAUP7ER.cjs} +4 -4
- package/dist/{chunk-3YMDR4OL.cjs.map → chunk-HTAUP7ER.cjs.map} +1 -1
- package/dist/{chunk-OHLVZVIK.js → chunk-IC5OUWKJ.js} +12 -5
- package/dist/chunk-IC5OUWKJ.js.map +1 -0
- package/dist/{chunk-MZIMV2BB.js → chunk-IHDE4CJV.js} +244 -213
- package/dist/chunk-IHDE4CJV.js.map +1 -0
- package/dist/{chunk-3KJW4EMO.js → chunk-IHEYJDJP.js} +3 -3
- package/dist/{chunk-3KJW4EMO.js.map → chunk-IHEYJDJP.js.map} +1 -1
- package/dist/{chunk-CXVMDV2B.js → chunk-IOY7Y5GV.js} +197 -27
- package/dist/chunk-IOY7Y5GV.js.map +1 -0
- package/dist/{chunk-MDC6VYA6.cjs → chunk-KAVAKMOQ.cjs} +4 -8
- package/dist/chunk-KAVAKMOQ.cjs.map +1 -0
- package/dist/{chunk-7WC7ALDW.cjs → chunk-LNKS4TJ6.cjs} +6 -6
- package/dist/{chunk-7WC7ALDW.cjs.map → chunk-LNKS4TJ6.cjs.map} +1 -1
- package/dist/{chunk-R3364RAL.js → chunk-MWGGSA5Q.js} +4 -4
- package/dist/{chunk-R3364RAL.js.map → chunk-MWGGSA5Q.js.map} +1 -1
- package/dist/{chunk-QSN5KQXZ.cjs → chunk-O7PZ4VOO.cjs} +11 -11
- package/dist/{chunk-QSN5KQXZ.cjs.map → chunk-O7PZ4VOO.cjs.map} +1 -1
- package/dist/chunk-OQDRPRKM.cjs +46 -0
- package/dist/chunk-OQDRPRKM.cjs.map +1 -0
- package/dist/{chunk-YV2YGQRY.js → chunk-RHKNKJNM.js} +101 -13
- package/dist/chunk-RHKNKJNM.js.map +1 -0
- package/dist/{chunk-TPDMP7OD.js → chunk-RHYZ6CQN.js} +4 -8
- package/dist/chunk-RHYZ6CQN.js.map +1 -0
- package/dist/{chunk-G5JVVFIG.cjs → chunk-RZNHRIM7.cjs} +9 -9
- package/dist/{chunk-G5JVVFIG.cjs.map → chunk-RZNHRIM7.cjs.map} +1 -1
- package/dist/{chunk-JZ6TH4HQ.cjs → chunk-TL2TTA4X.cjs} +4260 -3962
- package/dist/chunk-TL2TTA4X.cjs.map +1 -0
- package/dist/{chunk-KNXZ7KYL.cjs → chunk-TVPANHLE.cjs} +40 -2
- package/dist/chunk-TVPANHLE.cjs.map +1 -0
- package/dist/{chunk-7S6LA43E.cjs → chunk-VJWRJWSC.cjs} +278 -248
- package/dist/chunk-VJWRJWSC.cjs.map +1 -0
- package/dist/chunk-X2HAI3OX.js +39 -0
- package/dist/chunk-X2HAI3OX.js.map +1 -0
- package/dist/{chunk-FZ5DRHKE.js → chunk-XB3DA67Q.js} +325 -5
- package/dist/chunk-XB3DA67Q.js.map +1 -0
- package/dist/{chunk-NUV3BLRH.cjs → chunk-XWZAKKFT.cjs} +17 -16
- package/dist/chunk-XWZAKKFT.cjs.map +1 -0
- package/dist/{chunk-4GB2GS4S.js → chunk-YM6245EM.js} +5 -5
- package/dist/{chunk-4GB2GS4S.js.map → chunk-YM6245EM.js.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +2 -1
- package/dist/docs/assets/SOURCE_MAP.json +417 -391
- package/dist/docs/references/docs-memory-observational-memory.md +2 -0
- package/dist/docs/references/docs-streaming-tool-streaming.md +6 -0
- package/dist/docs/references/docs-workspace-filesystem.md +21 -1
- package/dist/docs/references/reference-harness-harness-class.md +645 -0
- package/dist/docs/references/reference-memory-memory-class.md +1 -1
- package/dist/docs/references/reference-memory-observational-memory.md +1 -0
- package/dist/docs/references/reference-workspace-local-filesystem.md +25 -0
- package/dist/docs/references/reference-workspace-workspace-class.md +1 -24
- package/dist/docs/references/reference.md +1 -0
- package/dist/editor/types.d.ts +20 -1
- package/dist/editor/types.d.ts.map +1 -1
- package/dist/evals/base.d.ts.map +1 -1
- package/dist/evals/index.cjs +20 -20
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +5 -5
- package/dist/evals/scoreTraces/index.js +2 -2
- package/dist/events/index.cjs +6 -2
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js +1 -1
- package/dist/harness/harness.d.ts +105 -35
- package/dist/harness/harness.d.ts.map +1 -1
- package/dist/harness/index.cjs +472 -64
- package/dist/harness/index.cjs.map +1 -1
- package/dist/harness/index.d.ts +2 -1
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +468 -62
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/tools.d.ts +38 -0
- package/dist/harness/tools.d.ts.map +1 -1
- package/dist/harness/types.d.ts +64 -9
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +12 -12
- package/dist/llm/index.js +3 -3
- package/dist/llm/model/gateways/models-dev.d.ts.map +1 -1
- package/dist/loop/index.cjs +12 -12
- package/dist/loop/index.js +1 -1
- package/dist/loop/network/index.d.ts +6 -6
- package/dist/loop/network/index.d.ts.map +1 -1
- package/dist/loop/test-utils/options.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/index.d.ts +21 -21
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +14 -14
- package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +7 -7
- package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts.map +1 -1
- package/dist/loop/workflows/agentic-loop/index.d.ts +21 -21
- package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
- package/dist/loop/workflows/schema.d.ts +30 -30
- package/dist/loop/workflows/stream.d.ts +0 -13
- package/dist/loop/workflows/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-6P4CM74H.js +3 -0
- package/dist/{models-dev-MDI5E2YA.js.map → models-dev-6P4CM74H.js.map} +1 -1
- package/dist/models-dev-CLLSNT5L.cjs +12 -0
- package/dist/{models-dev-BW2GAM3K.cjs.map → models-dev-CLLSNT5L.cjs.map} +1 -1
- package/dist/processor-provider/index.cjs +256 -0
- package/dist/processor-provider/index.cjs.map +1 -0
- package/dist/processor-provider/index.d.ts +5 -0
- package/dist/processor-provider/index.d.ts.map +1 -0
- package/dist/processor-provider/index.js +243 -0
- package/dist/processor-provider/index.js.map +1 -0
- package/dist/processor-provider/phase-filtered-processor.d.ts +22 -0
- package/dist/processor-provider/phase-filtered-processor.d.ts.map +1 -0
- package/dist/processor-provider/providers/index.d.ts +12 -0
- package/dist/processor-provider/providers/index.d.ts.map +1 -0
- package/dist/processor-provider/types.d.ts +65 -0
- package/dist/processor-provider/types.d.ts.map +1 -0
- package/dist/processors/index.cjs +41 -41
- package/dist/processors/index.js +1 -1
- package/dist/processors/memory/message-history.d.ts.map +1 -1
- package/dist/processors/step-schema.d.ts +14 -14
- package/dist/provider-registry-HMTFO5FV.cjs +40 -0
- package/dist/{provider-registry-4PH2JPIA.cjs.map → provider-registry-HMTFO5FV.cjs.map} +1 -1
- package/dist/provider-registry-TTZ2WN2P.js +3 -0
- package/dist/{provider-registry-VEJ3PN4S.js.map → provider-registry-TTZ2WN2P.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/base.d.ts +2 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/constants.cjs +68 -52
- package/dist/storage/constants.d.ts +6 -2
- package/dist/storage/constants.d.ts.map +1 -1
- package/dist/storage/constants.js +1 -1
- package/dist/storage/domains/index.d.ts +1 -0
- package/dist/storage/domains/index.d.ts.map +1 -1
- package/dist/storage/domains/inmemory-db.d.ts +4 -1
- package/dist/storage/domains/inmemory-db.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/base.d.ts +47 -0
- package/dist/storage/domains/mcp-servers/base.d.ts.map +1 -0
- package/dist/storage/domains/mcp-servers/index.d.ts +3 -0
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -0
- package/dist/storage/domains/mcp-servers/inmemory.d.ts +31 -0
- package/dist/storage/domains/mcp-servers/inmemory.d.ts.map +1 -0
- package/dist/storage/domains/memory/inmemory.d.ts.map +1 -1
- package/dist/storage/domains/observability/types.d.ts +44 -44
- package/dist/storage/domains/operations/inmemory.d.ts.map +1 -1
- package/dist/storage/index.cjs +178 -154
- package/dist/storage/index.js +2 -2
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +220 -6
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/MastraAgentNetworkStream.d.ts +1 -1
- package/dist/stream/MastraWorkflowStream.d.ts +1 -1
- package/dist/stream/aisdk/v5/input.d.ts.map +1 -1
- package/dist/stream/base/input.d.ts +19 -0
- package/dist/stream/base/input.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- package/dist/workflows/evented/execution-engine.d.ts.map +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/evented/step-executor.d.ts.map +1 -1
- package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
- package/dist/workflows/index.cjs +25 -25
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/step.d.ts.map +1 -1
- package/dist/workspace/constants/index.d.ts +1 -0
- package/dist/workspace/constants/index.d.ts.map +1 -1
- package/dist/workspace/index.cjs +64 -64
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/tools/ast-edit.d.ts +97 -0
- package/dist/workspace/tools/ast-edit.d.ts.map +1 -0
- package/dist/workspace/tools/search.d.ts +1 -1
- package/dist/workspace/tools/tools.d.ts.map +1 -1
- package/package.json +12 -11
- package/processor-provider.d.ts +1 -0
- package/dist/chunk-4D4KB75Y.cjs +0 -9
- package/dist/chunk-4D4KB75Y.cjs.map +0 -1
- package/dist/chunk-7S6LA43E.cjs.map +0 -1
- package/dist/chunk-A6EWCOGA.cjs.map +0 -1
- package/dist/chunk-BVUMKER5.js +0 -7
- package/dist/chunk-BVUMKER5.js.map +0 -1
- package/dist/chunk-CXVMDV2B.js.map +0 -1
- package/dist/chunk-D57U4II4.js.map +0 -1
- package/dist/chunk-FZ5DRHKE.js.map +0 -1
- package/dist/chunk-JZ6TH4HQ.cjs.map +0 -1
- package/dist/chunk-KNXZ7KYL.cjs.map +0 -1
- package/dist/chunk-MDC6VYA6.cjs.map +0 -1
- package/dist/chunk-MZIMV2BB.js.map +0 -1
- package/dist/chunk-NUV3BLRH.cjs.map +0 -1
- package/dist/chunk-OHLVZVIK.js.map +0 -1
- package/dist/chunk-OQ5LZ6OV.cjs.map +0 -1
- package/dist/chunk-S4VVZI4E.cjs.map +0 -1
- package/dist/chunk-TPDMP7OD.js.map +0 -1
- package/dist/chunk-UZFGMMKU.js.map +0 -1
- package/dist/chunk-YIN5F7VO.js.map +0 -1
- package/dist/chunk-YV2YGQRY.js.map +0 -1
- package/dist/chunk-YW54RH77.cjs.map +0 -1
- package/dist/models-dev-BW2GAM3K.cjs +0 -12
- package/dist/models-dev-MDI5E2YA.js +0 -3
- package/dist/provider-registry-4PH2JPIA.cjs +0 -40
- package/dist/provider-registry-VEJ3PN4S.js +0 -3
|
@@ -6,8 +6,8 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
modelId?: string | undefined;
|
|
8
8
|
model?: string | undefined;
|
|
9
|
-
request?: Record<string, any> | undefined;
|
|
10
9
|
headers?: Record<string, string> | undefined;
|
|
10
|
+
request?: Record<string, any> | undefined;
|
|
11
11
|
timestamp?: Date | undefined;
|
|
12
12
|
modelMetadata?: {
|
|
13
13
|
modelId: string;
|
|
@@ -16,7 +16,6 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
16
16
|
} | undefined;
|
|
17
17
|
};
|
|
18
18
|
output: {
|
|
19
|
-
steps: any[];
|
|
20
19
|
usage: {
|
|
21
20
|
inputTokens?: number | undefined;
|
|
22
21
|
outputTokens?: number | undefined;
|
|
@@ -24,17 +23,18 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
24
23
|
reasoningTokens?: number | undefined;
|
|
25
24
|
cachedInputTokens?: number | undefined;
|
|
26
25
|
};
|
|
26
|
+
steps: any[];
|
|
27
27
|
reasoning?: any[] | undefined;
|
|
28
28
|
text?: string | undefined;
|
|
29
|
-
files?: any[] | undefined;
|
|
30
29
|
sources?: any[] | undefined;
|
|
30
|
+
files?: any[] | undefined;
|
|
31
31
|
toolCalls?: any[] | undefined;
|
|
32
32
|
toolResults?: any[] | undefined;
|
|
33
|
-
reasoningText?: string | undefined;
|
|
34
|
-
staticToolCalls?: any[] | undefined;
|
|
35
33
|
dynamicToolCalls?: any[] | undefined;
|
|
36
|
-
staticToolResults?: any[] | undefined;
|
|
37
34
|
dynamicToolResults?: any[] | undefined;
|
|
35
|
+
staticToolCalls?: any[] | undefined;
|
|
36
|
+
staticToolResults?: any[] | undefined;
|
|
37
|
+
reasoningText?: string | undefined;
|
|
38
38
|
};
|
|
39
39
|
messageId: string;
|
|
40
40
|
messages: {
|
|
@@ -47,9 +47,9 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
47
47
|
isContinued: boolean;
|
|
48
48
|
warnings: any[];
|
|
49
49
|
messageId?: string | undefined;
|
|
50
|
+
headers?: Record<string, string> | undefined;
|
|
50
51
|
logprobs?: any;
|
|
51
52
|
request?: Record<string, any> | undefined;
|
|
52
|
-
headers?: Record<string, string> | undefined;
|
|
53
53
|
totalUsage?: {
|
|
54
54
|
inputTokens?: number | undefined;
|
|
55
55
|
outputTokens?: number | undefined;
|
|
@@ -66,8 +66,8 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
66
66
|
id?: string | undefined;
|
|
67
67
|
modelId?: string | undefined;
|
|
68
68
|
model?: string | undefined;
|
|
69
|
-
request?: Record<string, any> | undefined;
|
|
70
69
|
headers?: Record<string, string> | undefined;
|
|
70
|
+
request?: Record<string, any> | undefined;
|
|
71
71
|
timestamp?: Date | undefined;
|
|
72
72
|
modelMetadata?: {
|
|
73
73
|
modelId: string;
|
|
@@ -76,7 +76,6 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
76
76
|
} | undefined;
|
|
77
77
|
};
|
|
78
78
|
output: {
|
|
79
|
-
steps: any[];
|
|
80
79
|
usage: {
|
|
81
80
|
inputTokens?: number | undefined;
|
|
82
81
|
outputTokens?: number | undefined;
|
|
@@ -84,17 +83,18 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
84
83
|
reasoningTokens?: number | undefined;
|
|
85
84
|
cachedInputTokens?: number | undefined;
|
|
86
85
|
};
|
|
86
|
+
steps: any[];
|
|
87
87
|
reasoning?: any[] | undefined;
|
|
88
88
|
text?: string | undefined;
|
|
89
|
-
files?: any[] | undefined;
|
|
90
89
|
sources?: any[] | undefined;
|
|
90
|
+
files?: any[] | undefined;
|
|
91
91
|
toolCalls?: any[] | undefined;
|
|
92
92
|
toolResults?: any[] | undefined;
|
|
93
|
-
reasoningText?: string | undefined;
|
|
94
|
-
staticToolCalls?: any[] | undefined;
|
|
95
93
|
dynamicToolCalls?: any[] | undefined;
|
|
96
|
-
staticToolResults?: any[] | undefined;
|
|
97
94
|
dynamicToolResults?: any[] | undefined;
|
|
95
|
+
staticToolCalls?: any[] | undefined;
|
|
96
|
+
staticToolResults?: any[] | undefined;
|
|
97
|
+
reasoningText?: string | undefined;
|
|
98
98
|
};
|
|
99
99
|
messageId: string;
|
|
100
100
|
messages: {
|
|
@@ -107,9 +107,9 @@ export declare function createLLMExecutionStep<TOOLS extends ToolSet = ToolSet,
|
|
|
107
107
|
isContinued: boolean;
|
|
108
108
|
warnings: any[];
|
|
109
109
|
messageId?: string | undefined;
|
|
110
|
+
headers?: Record<string, string> | undefined;
|
|
110
111
|
logprobs?: any;
|
|
111
112
|
request?: Record<string, any> | undefined;
|
|
112
|
-
headers?: Record<string, string> | undefined;
|
|
113
113
|
totalUsage?: {
|
|
114
114
|
inputTokens?: number | undefined;
|
|
115
115
|
outputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-execution-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-execution-step.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA4B,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"llm-execution-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-execution-step.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA4B,OAAO,EAAE,MAAM,qBAAqB,CAAC;AA0B7E,OAAO,KAAK,EAAc,WAAW,EAAE,MAAM,aAAa,CAAC;AAmc3D,wBAAgB,sBAAsB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EAC1F,MAAM,EACN,SAAS,EACT,SAAS,EACT,KAAK,EACL,KAAK,EACL,UAAU,EACV,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,OAAO,EACP,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,SAAS,EACT,YAAY,GACb,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA8pB5B"}
|
|
@@ -15,8 +15,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
|
|
|
15
15
|
id?: string | undefined;
|
|
16
16
|
modelId?: string | undefined;
|
|
17
17
|
model?: string | undefined;
|
|
18
|
-
request?: Record<string, any> | undefined;
|
|
19
18
|
headers?: Record<string, string> | undefined;
|
|
19
|
+
request?: Record<string, any> | undefined;
|
|
20
20
|
timestamp?: Date | undefined;
|
|
21
21
|
modelMetadata?: {
|
|
22
22
|
modelId: string;
|
|
@@ -25,7 +25,6 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
|
|
|
25
25
|
} | undefined;
|
|
26
26
|
};
|
|
27
27
|
output: {
|
|
28
|
-
steps: any[];
|
|
29
28
|
usage: {
|
|
30
29
|
inputTokens?: number | undefined;
|
|
31
30
|
outputTokens?: number | undefined;
|
|
@@ -33,17 +32,18 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
|
|
|
33
32
|
reasoningTokens?: number | undefined;
|
|
34
33
|
cachedInputTokens?: number | undefined;
|
|
35
34
|
};
|
|
35
|
+
steps: any[];
|
|
36
36
|
reasoning?: any[] | undefined;
|
|
37
37
|
text?: string | undefined;
|
|
38
|
-
files?: any[] | undefined;
|
|
39
38
|
sources?: any[] | undefined;
|
|
39
|
+
files?: any[] | undefined;
|
|
40
40
|
toolCalls?: any[] | undefined;
|
|
41
41
|
toolResults?: any[] | undefined;
|
|
42
|
-
reasoningText?: string | undefined;
|
|
43
|
-
staticToolCalls?: any[] | undefined;
|
|
44
42
|
dynamicToolCalls?: any[] | undefined;
|
|
45
|
-
staticToolResults?: any[] | undefined;
|
|
46
43
|
dynamicToolResults?: any[] | undefined;
|
|
44
|
+
staticToolCalls?: any[] | undefined;
|
|
45
|
+
staticToolResults?: any[] | undefined;
|
|
46
|
+
reasoningText?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
messageId: string;
|
|
49
49
|
messages: {
|
|
@@ -56,9 +56,9 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
|
|
|
56
56
|
isContinued: boolean;
|
|
57
57
|
warnings: any[];
|
|
58
58
|
messageId?: string | undefined;
|
|
59
|
+
headers?: Record<string, string> | undefined;
|
|
59
60
|
logprobs?: any;
|
|
60
61
|
request?: Record<string, any> | undefined;
|
|
61
|
-
headers?: Record<string, string> | undefined;
|
|
62
62
|
totalUsage?: {
|
|
63
63
|
inputTokens?: number | undefined;
|
|
64
64
|
outputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-mapping-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-mapping-step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EACtF,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1D,gBAAgB,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA+
|
|
1
|
+
{"version":3,"file":"llm-mapping-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/llm-mapping-step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EACtF,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,EAC1D,gBAAgB,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA+XtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/tool-call-step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB/C,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EACtF,KAAK,EACL,WAAW,EACX,OAAO,EACP,YAAY,EACZ,UAAU,EACV,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tool-call-step.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-execution/tool-call-step.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAQnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAqB/C,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EACtF,KAAK,EACL,WAAW,EACX,OAAO,EACP,YAAY,EACZ,UAAU,EACV,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,MAAM,GACP,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;8EAggB5B"}
|
|
@@ -12,8 +12,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
12
12
|
id?: string | undefined;
|
|
13
13
|
modelId?: string | undefined;
|
|
14
14
|
model?: string | undefined;
|
|
15
|
-
request?: Record<string, any> | undefined;
|
|
16
15
|
headers?: Record<string, string> | undefined;
|
|
16
|
+
request?: Record<string, any> | undefined;
|
|
17
17
|
timestamp?: Date | undefined;
|
|
18
18
|
modelMetadata?: {
|
|
19
19
|
modelId: string;
|
|
@@ -22,7 +22,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
22
22
|
} | undefined;
|
|
23
23
|
};
|
|
24
24
|
output: {
|
|
25
|
-
steps: any[];
|
|
26
25
|
usage: {
|
|
27
26
|
inputTokens?: number | undefined;
|
|
28
27
|
outputTokens?: number | undefined;
|
|
@@ -30,17 +29,18 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
30
29
|
reasoningTokens?: number | undefined;
|
|
31
30
|
cachedInputTokens?: number | undefined;
|
|
32
31
|
};
|
|
32
|
+
steps: any[];
|
|
33
33
|
reasoning?: any[] | undefined;
|
|
34
34
|
text?: string | undefined;
|
|
35
|
-
files?: any[] | undefined;
|
|
36
35
|
sources?: any[] | undefined;
|
|
36
|
+
files?: any[] | undefined;
|
|
37
37
|
toolCalls?: any[] | undefined;
|
|
38
38
|
toolResults?: any[] | undefined;
|
|
39
|
-
reasoningText?: string | undefined;
|
|
40
|
-
staticToolCalls?: any[] | undefined;
|
|
41
39
|
dynamicToolCalls?: any[] | undefined;
|
|
42
|
-
staticToolResults?: any[] | undefined;
|
|
43
40
|
dynamicToolResults?: any[] | undefined;
|
|
41
|
+
staticToolCalls?: any[] | undefined;
|
|
42
|
+
staticToolResults?: any[] | undefined;
|
|
43
|
+
reasoningText?: string | undefined;
|
|
44
44
|
};
|
|
45
45
|
messageId: string;
|
|
46
46
|
messages: {
|
|
@@ -53,9 +53,9 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
53
53
|
isContinued: boolean;
|
|
54
54
|
warnings: any[];
|
|
55
55
|
messageId?: string | undefined;
|
|
56
|
+
headers?: Record<string, string> | undefined;
|
|
56
57
|
logprobs?: any;
|
|
57
58
|
request?: Record<string, any> | undefined;
|
|
58
|
-
headers?: Record<string, string> | undefined;
|
|
59
59
|
totalUsage?: {
|
|
60
60
|
inputTokens?: number | undefined;
|
|
61
61
|
outputTokens?: number | undefined;
|
|
@@ -72,8 +72,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
72
72
|
id?: string | undefined;
|
|
73
73
|
modelId?: string | undefined;
|
|
74
74
|
model?: string | undefined;
|
|
75
|
-
request?: Record<string, any> | undefined;
|
|
76
75
|
headers?: Record<string, string> | undefined;
|
|
76
|
+
request?: Record<string, any> | undefined;
|
|
77
77
|
timestamp?: Date | undefined;
|
|
78
78
|
modelMetadata?: {
|
|
79
79
|
modelId: string;
|
|
@@ -82,7 +82,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
82
82
|
} | undefined;
|
|
83
83
|
};
|
|
84
84
|
output: {
|
|
85
|
-
steps: any[];
|
|
86
85
|
usage: {
|
|
87
86
|
inputTokens?: number | undefined;
|
|
88
87
|
outputTokens?: number | undefined;
|
|
@@ -90,17 +89,18 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
90
89
|
reasoningTokens?: number | undefined;
|
|
91
90
|
cachedInputTokens?: number | undefined;
|
|
92
91
|
};
|
|
92
|
+
steps: any[];
|
|
93
93
|
reasoning?: any[] | undefined;
|
|
94
94
|
text?: string | undefined;
|
|
95
|
-
files?: any[] | undefined;
|
|
96
95
|
sources?: any[] | undefined;
|
|
96
|
+
files?: any[] | undefined;
|
|
97
97
|
toolCalls?: any[] | undefined;
|
|
98
98
|
toolResults?: any[] | undefined;
|
|
99
|
-
reasoningText?: string | undefined;
|
|
100
|
-
staticToolCalls?: any[] | undefined;
|
|
101
99
|
dynamicToolCalls?: any[] | undefined;
|
|
102
|
-
staticToolResults?: any[] | undefined;
|
|
103
100
|
dynamicToolResults?: any[] | undefined;
|
|
101
|
+
staticToolCalls?: any[] | undefined;
|
|
102
|
+
staticToolResults?: any[] | undefined;
|
|
103
|
+
reasoningText?: string | undefined;
|
|
104
104
|
};
|
|
105
105
|
messageId: string;
|
|
106
106
|
messages: {
|
|
@@ -113,9 +113,9 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
113
113
|
isContinued: boolean;
|
|
114
114
|
warnings: any[];
|
|
115
115
|
messageId?: string | undefined;
|
|
116
|
+
headers?: Record<string, string> | undefined;
|
|
116
117
|
logprobs?: any;
|
|
117
118
|
request?: Record<string, any> | undefined;
|
|
118
|
-
headers?: Record<string, string> | undefined;
|
|
119
119
|
totalUsage?: {
|
|
120
120
|
inputTokens?: number | undefined;
|
|
121
121
|
outputTokens?: number | undefined;
|
|
@@ -132,8 +132,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
132
132
|
id?: string | undefined;
|
|
133
133
|
modelId?: string | undefined;
|
|
134
134
|
model?: string | undefined;
|
|
135
|
-
request?: Record<string, any> | undefined;
|
|
136
135
|
headers?: Record<string, string> | undefined;
|
|
136
|
+
request?: Record<string, any> | undefined;
|
|
137
137
|
timestamp?: Date | undefined;
|
|
138
138
|
modelMetadata?: {
|
|
139
139
|
modelId: string;
|
|
@@ -142,7 +142,6 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
142
142
|
} | undefined;
|
|
143
143
|
};
|
|
144
144
|
output: {
|
|
145
|
-
steps: any[];
|
|
146
145
|
usage: {
|
|
147
146
|
inputTokens?: number | undefined;
|
|
148
147
|
outputTokens?: number | undefined;
|
|
@@ -150,17 +149,18 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
150
149
|
reasoningTokens?: number | undefined;
|
|
151
150
|
cachedInputTokens?: number | undefined;
|
|
152
151
|
};
|
|
152
|
+
steps: any[];
|
|
153
153
|
reasoning?: any[] | undefined;
|
|
154
154
|
text?: string | undefined;
|
|
155
|
-
files?: any[] | undefined;
|
|
156
155
|
sources?: any[] | undefined;
|
|
156
|
+
files?: any[] | undefined;
|
|
157
157
|
toolCalls?: any[] | undefined;
|
|
158
158
|
toolResults?: any[] | undefined;
|
|
159
|
-
reasoningText?: string | undefined;
|
|
160
|
-
staticToolCalls?: any[] | undefined;
|
|
161
159
|
dynamicToolCalls?: any[] | undefined;
|
|
162
|
-
staticToolResults?: any[] | undefined;
|
|
163
160
|
dynamicToolResults?: any[] | undefined;
|
|
161
|
+
staticToolCalls?: any[] | undefined;
|
|
162
|
+
staticToolResults?: any[] | undefined;
|
|
163
|
+
reasoningText?: string | undefined;
|
|
164
164
|
};
|
|
165
165
|
messageId: string;
|
|
166
166
|
messages: {
|
|
@@ -173,9 +173,9 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
|
|
|
173
173
|
isContinued: boolean;
|
|
174
174
|
warnings: any[];
|
|
175
175
|
messageId?: string | undefined;
|
|
176
|
+
headers?: Record<string, string> | undefined;
|
|
176
177
|
logprobs?: any;
|
|
177
178
|
request?: Record<string, any> | undefined;
|
|
178
|
-
headers?: Record<string, string> | undefined;
|
|
179
179
|
totalUsage?: {
|
|
180
180
|
inputTokens?: number | undefined;
|
|
181
181
|
outputTokens?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-loop/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/loop/workflows/agentic-loop/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAc,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,UAAU,iBAAiB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,CAAE,SAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;IAC7G,UAAU,EAAE,+BAA+B,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3F,MAAM,EAAE,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuIzC"}
|
|
@@ -97,9 +97,9 @@ export declare const llmIterationStepResultSchema: z.ZodObject<{
|
|
|
97
97
|
isContinued: boolean;
|
|
98
98
|
warnings: any[];
|
|
99
99
|
messageId?: string | undefined;
|
|
100
|
+
headers?: Record<string, string> | undefined;
|
|
100
101
|
logprobs?: any;
|
|
101
102
|
request?: Record<string, any> | undefined;
|
|
102
|
-
headers?: Record<string, string> | undefined;
|
|
103
103
|
totalUsage?: {
|
|
104
104
|
inputTokens?: number | undefined;
|
|
105
105
|
outputTokens?: number | undefined;
|
|
@@ -112,9 +112,9 @@ export declare const llmIterationStepResultSchema: z.ZodObject<{
|
|
|
112
112
|
isContinued: boolean;
|
|
113
113
|
warnings: any[];
|
|
114
114
|
messageId?: string | undefined;
|
|
115
|
+
headers?: Record<string, string> | undefined;
|
|
115
116
|
logprobs?: any;
|
|
116
117
|
request?: Record<string, any> | undefined;
|
|
117
|
-
headers?: Record<string, string> | undefined;
|
|
118
118
|
totalUsage?: {
|
|
119
119
|
inputTokens?: number | undefined;
|
|
120
120
|
outputTokens?: number | undefined;
|
|
@@ -171,7 +171,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
171
171
|
}>;
|
|
172
172
|
steps: z.ZodArray<z.ZodAny, "many">;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
steps: any[];
|
|
175
174
|
usage: {
|
|
176
175
|
inputTokens?: number | undefined;
|
|
177
176
|
outputTokens?: number | undefined;
|
|
@@ -179,19 +178,19 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
179
178
|
reasoningTokens?: number | undefined;
|
|
180
179
|
cachedInputTokens?: number | undefined;
|
|
181
180
|
};
|
|
181
|
+
steps: any[];
|
|
182
182
|
reasoning?: any[] | undefined;
|
|
183
183
|
text?: string | undefined;
|
|
184
|
-
files?: any[] | undefined;
|
|
185
184
|
sources?: any[] | undefined;
|
|
185
|
+
files?: any[] | undefined;
|
|
186
186
|
toolCalls?: any[] | undefined;
|
|
187
187
|
toolResults?: any[] | undefined;
|
|
188
|
-
reasoningText?: string | undefined;
|
|
189
|
-
staticToolCalls?: any[] | undefined;
|
|
190
188
|
dynamicToolCalls?: any[] | undefined;
|
|
191
|
-
staticToolResults?: any[] | undefined;
|
|
192
189
|
dynamicToolResults?: any[] | undefined;
|
|
190
|
+
staticToolCalls?: any[] | undefined;
|
|
191
|
+
staticToolResults?: any[] | undefined;
|
|
192
|
+
reasoningText?: string | undefined;
|
|
193
193
|
}, {
|
|
194
|
-
steps: any[];
|
|
195
194
|
usage: {
|
|
196
195
|
inputTokens?: number | undefined;
|
|
197
196
|
outputTokens?: number | undefined;
|
|
@@ -199,17 +198,18 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
199
198
|
reasoningTokens?: number | undefined;
|
|
200
199
|
cachedInputTokens?: number | undefined;
|
|
201
200
|
};
|
|
201
|
+
steps: any[];
|
|
202
202
|
reasoning?: any[] | undefined;
|
|
203
203
|
text?: string | undefined;
|
|
204
|
-
files?: any[] | undefined;
|
|
205
204
|
sources?: any[] | undefined;
|
|
205
|
+
files?: any[] | undefined;
|
|
206
206
|
toolCalls?: any[] | undefined;
|
|
207
207
|
toolResults?: any[] | undefined;
|
|
208
|
-
reasoningText?: string | undefined;
|
|
209
|
-
staticToolCalls?: any[] | undefined;
|
|
210
208
|
dynamicToolCalls?: any[] | undefined;
|
|
211
|
-
staticToolResults?: any[] | undefined;
|
|
212
209
|
dynamicToolResults?: any[] | undefined;
|
|
210
|
+
staticToolCalls?: any[] | undefined;
|
|
211
|
+
staticToolResults?: any[] | undefined;
|
|
212
|
+
reasoningText?: string | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
metadata: z.ZodObject<{
|
|
215
215
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -237,8 +237,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
237
237
|
id?: string | undefined;
|
|
238
238
|
modelId?: string | undefined;
|
|
239
239
|
model?: string | undefined;
|
|
240
|
-
request?: Record<string, any> | undefined;
|
|
241
240
|
headers?: Record<string, string> | undefined;
|
|
241
|
+
request?: Record<string, any> | undefined;
|
|
242
242
|
timestamp?: Date | undefined;
|
|
243
243
|
modelMetadata?: {
|
|
244
244
|
modelId: string;
|
|
@@ -250,8 +250,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
250
250
|
id?: string | undefined;
|
|
251
251
|
modelId?: string | undefined;
|
|
252
252
|
model?: string | undefined;
|
|
253
|
-
request?: Record<string, any> | undefined;
|
|
254
253
|
headers?: Record<string, string> | undefined;
|
|
254
|
+
request?: Record<string, any> | undefined;
|
|
255
255
|
timestamp?: Date | undefined;
|
|
256
256
|
modelMetadata?: {
|
|
257
257
|
modelId: string;
|
|
@@ -291,9 +291,9 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
291
291
|
isContinued: boolean;
|
|
292
292
|
warnings: any[];
|
|
293
293
|
messageId?: string | undefined;
|
|
294
|
+
headers?: Record<string, string> | undefined;
|
|
294
295
|
logprobs?: any;
|
|
295
296
|
request?: Record<string, any> | undefined;
|
|
296
|
-
headers?: Record<string, string> | undefined;
|
|
297
297
|
totalUsage?: {
|
|
298
298
|
inputTokens?: number | undefined;
|
|
299
299
|
outputTokens?: number | undefined;
|
|
@@ -306,9 +306,9 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
306
306
|
isContinued: boolean;
|
|
307
307
|
warnings: any[];
|
|
308
308
|
messageId?: string | undefined;
|
|
309
|
+
headers?: Record<string, string> | undefined;
|
|
309
310
|
logprobs?: any;
|
|
310
311
|
request?: Record<string, any> | undefined;
|
|
311
|
-
headers?: Record<string, string> | undefined;
|
|
312
312
|
totalUsage?: {
|
|
313
313
|
inputTokens?: number | undefined;
|
|
314
314
|
outputTokens?: number | undefined;
|
|
@@ -325,8 +325,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
325
325
|
id?: string | undefined;
|
|
326
326
|
modelId?: string | undefined;
|
|
327
327
|
model?: string | undefined;
|
|
328
|
-
request?: Record<string, any> | undefined;
|
|
329
328
|
headers?: Record<string, string> | undefined;
|
|
329
|
+
request?: Record<string, any> | undefined;
|
|
330
330
|
timestamp?: Date | undefined;
|
|
331
331
|
modelMetadata?: {
|
|
332
332
|
modelId: string;
|
|
@@ -335,7 +335,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
335
335
|
} | undefined;
|
|
336
336
|
};
|
|
337
337
|
output: {
|
|
338
|
-
steps: any[];
|
|
339
338
|
usage: {
|
|
340
339
|
inputTokens?: number | undefined;
|
|
341
340
|
outputTokens?: number | undefined;
|
|
@@ -343,17 +342,18 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
343
342
|
reasoningTokens?: number | undefined;
|
|
344
343
|
cachedInputTokens?: number | undefined;
|
|
345
344
|
};
|
|
345
|
+
steps: any[];
|
|
346
346
|
reasoning?: any[] | undefined;
|
|
347
347
|
text?: string | undefined;
|
|
348
|
-
files?: any[] | undefined;
|
|
349
348
|
sources?: any[] | undefined;
|
|
349
|
+
files?: any[] | undefined;
|
|
350
350
|
toolCalls?: any[] | undefined;
|
|
351
351
|
toolResults?: any[] | undefined;
|
|
352
|
-
reasoningText?: string | undefined;
|
|
353
|
-
staticToolCalls?: any[] | undefined;
|
|
354
352
|
dynamicToolCalls?: any[] | undefined;
|
|
355
|
-
staticToolResults?: any[] | undefined;
|
|
356
353
|
dynamicToolResults?: any[] | undefined;
|
|
354
|
+
staticToolCalls?: any[] | undefined;
|
|
355
|
+
staticToolResults?: any[] | undefined;
|
|
356
|
+
reasoningText?: string | undefined;
|
|
357
357
|
};
|
|
358
358
|
messageId: string;
|
|
359
359
|
messages: {
|
|
@@ -366,9 +366,9 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
366
366
|
isContinued: boolean;
|
|
367
367
|
warnings: any[];
|
|
368
368
|
messageId?: string | undefined;
|
|
369
|
+
headers?: Record<string, string> | undefined;
|
|
369
370
|
logprobs?: any;
|
|
370
371
|
request?: Record<string, any> | undefined;
|
|
371
|
-
headers?: Record<string, string> | undefined;
|
|
372
372
|
totalUsage?: {
|
|
373
373
|
inputTokens?: number | undefined;
|
|
374
374
|
outputTokens?: number | undefined;
|
|
@@ -385,8 +385,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
385
385
|
id?: string | undefined;
|
|
386
386
|
modelId?: string | undefined;
|
|
387
387
|
model?: string | undefined;
|
|
388
|
-
request?: Record<string, any> | undefined;
|
|
389
388
|
headers?: Record<string, string> | undefined;
|
|
389
|
+
request?: Record<string, any> | undefined;
|
|
390
390
|
timestamp?: Date | undefined;
|
|
391
391
|
modelMetadata?: {
|
|
392
392
|
modelId: string;
|
|
@@ -395,7 +395,6 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
395
395
|
} | undefined;
|
|
396
396
|
};
|
|
397
397
|
output: {
|
|
398
|
-
steps: any[];
|
|
399
398
|
usage: {
|
|
400
399
|
inputTokens?: number | undefined;
|
|
401
400
|
outputTokens?: number | undefined;
|
|
@@ -403,17 +402,18 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
403
402
|
reasoningTokens?: number | undefined;
|
|
404
403
|
cachedInputTokens?: number | undefined;
|
|
405
404
|
};
|
|
405
|
+
steps: any[];
|
|
406
406
|
reasoning?: any[] | undefined;
|
|
407
407
|
text?: string | undefined;
|
|
408
|
-
files?: any[] | undefined;
|
|
409
408
|
sources?: any[] | undefined;
|
|
409
|
+
files?: any[] | undefined;
|
|
410
410
|
toolCalls?: any[] | undefined;
|
|
411
411
|
toolResults?: any[] | undefined;
|
|
412
|
-
reasoningText?: string | undefined;
|
|
413
|
-
staticToolCalls?: any[] | undefined;
|
|
414
412
|
dynamicToolCalls?: any[] | undefined;
|
|
415
|
-
staticToolResults?: any[] | undefined;
|
|
416
413
|
dynamicToolResults?: any[] | undefined;
|
|
414
|
+
staticToolCalls?: any[] | undefined;
|
|
415
|
+
staticToolResults?: any[] | undefined;
|
|
416
|
+
reasoningText?: string | undefined;
|
|
417
417
|
};
|
|
418
418
|
messageId: string;
|
|
419
419
|
messages: {
|
|
@@ -426,9 +426,9 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
|
|
|
426
426
|
isContinued: boolean;
|
|
427
427
|
warnings: any[];
|
|
428
428
|
messageId?: string | undefined;
|
|
429
|
+
headers?: Record<string, string> | undefined;
|
|
429
430
|
logprobs?: any;
|
|
430
431
|
request?: Record<string, any> | undefined;
|
|
431
|
-
headers?: Record<string, string> | undefined;
|
|
432
432
|
totalUsage?: {
|
|
433
433
|
inputTokens?: number | undefined;
|
|
434
434
|
outputTokens?: number | undefined;
|
|
@@ -2,18 +2,5 @@ import { ReadableStream } from 'node:stream/web';
|
|
|
2
2
|
import type { ToolSet } from '../../_types/@internal_ai-sdk-v5/dist/index.js';
|
|
3
3
|
import type { ChunkType } from '../../stream/types.js';
|
|
4
4
|
import type { LoopRun } from '../types.js';
|
|
5
|
-
/**
|
|
6
|
-
* Check if a ReadableStreamDefaultController is open and can accept data.
|
|
7
|
-
*
|
|
8
|
-
* Note: While the ReadableStream spec indicates desiredSize can be:
|
|
9
|
-
* - positive (ready), 0 (full but open), or null (closed/errored),
|
|
10
|
-
* our empirical testing shows that after controller.close(), desiredSize becomes 0.
|
|
11
|
-
* Therefore, we treat both 0 and null as closed states to prevent
|
|
12
|
-
* "Invalid state: Controller is already closed" errors.
|
|
13
|
-
*
|
|
14
|
-
* @param controller - The ReadableStreamDefaultController to check
|
|
15
|
-
* @returns true if the controller is open and can accept data
|
|
16
|
-
*/
|
|
17
|
-
export declare function isControllerOpen(controller: ReadableStreamDefaultController<any>): boolean;
|
|
18
5
|
export declare function workflowLoopStream<Tools extends ToolSet = ToolSet, OUTPUT = undefined>({ resumeContext, requireToolApproval, models, toolChoice, modelSettings, _internal, messageId, runId, messageList, startTimestamp, streamState, agentId, toolCallId, toolCallConcurrency, ...rest }: LoopRun<Tools, OUTPUT>): ReadableStream<ChunkType<OUTPUT>>;
|
|
19
6
|
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../src/loop/workflows/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../src/loop/workflows/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGxC,wBAAgB,kBAAkB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,EACtF,aAAa,EACb,mBAAmB,EACnB,MAAM,EACN,UAAU,EACV,aAAa,EACb,SAAS,EACT,SAAS,EACT,KAAK,EACL,WAAW,EACX,cAAc,EACd,WAAW,EACX,OAAO,EACP,UAAU,EACV,mBAAmB,EACnB,GAAG,IAAI,EACR,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC,qCAyJxB"}
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXWZAKKFT_cjs = require('../chunk-XWZAKKFT.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 chunkXWZAKKFT_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED