@mastra/core 0.18.0 → 0.18.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/action/index.d.ts +5 -5
  3. package/dist/action/index.d.ts.map +1 -1
  4. package/dist/agent/agent.d.ts +1 -1
  5. package/dist/agent/agent.d.ts.map +1 -1
  6. package/dist/agent/index.cjs +11 -11
  7. package/dist/agent/index.js +2 -2
  8. package/dist/agent/input-processor/index.cjs +6 -6
  9. package/dist/agent/input-processor/index.js +1 -1
  10. package/dist/agent/message-list/index.d.ts +1 -1
  11. package/dist/agent/message-list/index.d.ts.map +1 -1
  12. package/dist/agent/trip-wire.d.ts +14 -0
  13. package/dist/agent/trip-wire.d.ts.map +1 -1
  14. package/dist/agent/types.d.ts +6 -3
  15. package/dist/agent/types.d.ts.map +1 -1
  16. package/dist/agent/workflows/prepare-stream/map-results-step.d.ts +4 -33
  17. package/dist/agent/workflows/prepare-stream/map-results-step.d.ts.map +1 -1
  18. package/dist/agent/workflows/prepare-stream/schema.d.ts +3 -1
  19. package/dist/agent/workflows/prepare-stream/schema.d.ts.map +1 -1
  20. package/dist/ai-tracing/index.cjs +32 -32
  21. package/dist/ai-tracing/index.js +1 -1
  22. package/dist/base.d.ts +1 -1
  23. package/dist/{chunk-SHFLPFKN.js → chunk-245ANI3P.js} +3 -3
  24. package/dist/{chunk-SHFLPFKN.js.map → chunk-245ANI3P.js.map} +1 -1
  25. package/dist/{chunk-GMQUHK3L.js → chunk-36DRWGP4.js} +4 -4
  26. package/dist/{chunk-GMQUHK3L.js.map → chunk-36DRWGP4.js.map} +1 -1
  27. package/dist/{chunk-JXRAFE3E.js → chunk-4DNSY645.js} +3 -3
  28. package/dist/{chunk-JXRAFE3E.js.map → chunk-4DNSY645.js.map} +1 -1
  29. package/dist/{chunk-WAGAASWE.cjs → chunk-4PK4GBYZ.cjs} +4 -4
  30. package/dist/{chunk-WAGAASWE.cjs.map → chunk-4PK4GBYZ.cjs.map} +1 -1
  31. package/dist/{chunk-2ZSMA4EM.js → chunk-5ZMC3NEO.js} +369 -352
  32. package/dist/chunk-5ZMC3NEO.js.map +1 -0
  33. package/dist/{chunk-L7Z3C5XG.cjs → chunk-6X4FZVGT.cjs} +4 -4
  34. package/dist/{chunk-L7Z3C5XG.cjs.map → chunk-6X4FZVGT.cjs.map} +1 -1
  35. package/dist/{chunk-USHKSVKL.js → chunk-6ZVNL435.js} +7 -6
  36. package/dist/chunk-6ZVNL435.js.map +1 -0
  37. package/dist/{chunk-CBV6EVJK.cjs → chunk-73S2WYSD.cjs} +402 -384
  38. package/dist/chunk-73S2WYSD.cjs.map +1 -0
  39. package/dist/{chunk-GGN63GU5.cjs → chunk-7UEBC5KM.cjs} +7 -7
  40. package/dist/{chunk-GGN63GU5.cjs.map → chunk-7UEBC5KM.cjs.map} +1 -1
  41. package/dist/{chunk-6NZTZOEI.js → chunk-B4REUTZB.js} +32 -14
  42. package/dist/chunk-B4REUTZB.js.map +1 -0
  43. package/dist/{chunk-QIXLPKMN.cjs → chunk-CKZK2EPZ.cjs} +4 -4
  44. package/dist/{chunk-QIXLPKMN.cjs.map → chunk-CKZK2EPZ.cjs.map} +1 -1
  45. package/dist/{chunk-AR76DMZQ.js → chunk-EJ2FU45N.js} +2 -2
  46. package/dist/chunk-EJ2FU45N.js.map +1 -0
  47. package/dist/{chunk-AEYCHF2U.cjs → chunk-ITBUHG4U.cjs} +6 -6
  48. package/dist/{chunk-AEYCHF2U.cjs.map → chunk-ITBUHG4U.cjs.map} +1 -1
  49. package/dist/{chunk-TZZFP4EW.js → chunk-LL2X7QT7.js} +3 -3
  50. package/dist/{chunk-TZZFP4EW.js.map → chunk-LL2X7QT7.js.map} +1 -1
  51. package/dist/{chunk-X2TVBX7O.js → chunk-NG2XDPDY.js} +3 -3
  52. package/dist/{chunk-X2TVBX7O.js.map → chunk-NG2XDPDY.js.map} +1 -1
  53. package/dist/{chunk-OVVKYARB.cjs → chunk-NTS6B2I2.cjs} +2 -2
  54. package/dist/chunk-NTS6B2I2.cjs.map +1 -0
  55. package/dist/{chunk-TRZT7QPJ.cjs → chunk-QBTRGHUF.cjs} +6 -6
  56. package/dist/{chunk-TRZT7QPJ.cjs.map → chunk-QBTRGHUF.cjs.map} +1 -1
  57. package/dist/{chunk-UMATHB4Q.cjs → chunk-QUB6MWXZ.cjs} +14 -13
  58. package/dist/chunk-QUB6MWXZ.cjs.map +1 -0
  59. package/dist/{chunk-YDLEEOJ6.js → chunk-ROU7YJLG.js} +3 -3
  60. package/dist/{chunk-YDLEEOJ6.js.map → chunk-ROU7YJLG.js.map} +1 -1
  61. package/dist/{chunk-TJZ4ERV4.cjs → chunk-SALFMUAY.cjs} +7 -7
  62. package/dist/{chunk-TJZ4ERV4.cjs.map → chunk-SALFMUAY.cjs.map} +1 -1
  63. package/dist/{chunk-7CF3FKP3.js → chunk-VGU5ZYYG.js} +3 -3
  64. package/dist/{chunk-7CF3FKP3.js.map → chunk-VGU5ZYYG.js.map} +1 -1
  65. package/dist/{chunk-JRTFV63C.cjs → chunk-VZLNVGYM.cjs} +41 -23
  66. package/dist/chunk-VZLNVGYM.cjs.map +1 -0
  67. package/dist/{chunk-Y5XECV4O.cjs → chunk-WVRSMHE5.cjs} +4 -4
  68. package/dist/{chunk-Y5XECV4O.cjs.map → chunk-WVRSMHE5.cjs.map} +1 -1
  69. package/dist/{chunk-SQFVIROI.js → chunk-XWJWU5OM.js} +3 -3
  70. package/dist/{chunk-SQFVIROI.js.map → chunk-XWJWU5OM.js.map} +1 -1
  71. package/dist/index.cjs +49 -45
  72. package/dist/index.js +10 -10
  73. package/dist/integration/index.cjs +3 -3
  74. package/dist/integration/index.js +1 -1
  75. package/dist/loop/index.cjs +2 -2
  76. package/dist/loop/index.js +1 -1
  77. package/dist/loop/network/index.d.ts +18 -18
  78. package/dist/loop/network/index.d.ts.map +1 -1
  79. package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
  80. package/dist/loop/test-utils/generateText.d.ts.map +1 -1
  81. package/dist/loop/test-utils/options.d.ts.map +1 -1
  82. package/dist/loop/test-utils/resultObject.d.ts.map +1 -1
  83. package/dist/loop/test-utils/streamObject.d.ts.map +1 -1
  84. package/dist/loop/types.d.ts +5 -5
  85. package/dist/loop/types.d.ts.map +1 -1
  86. package/dist/loop/workflows/agentic-execution/index.d.ts +48 -48
  87. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +32 -32
  88. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts.map +1 -1
  89. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +16 -16
  90. package/dist/loop/workflows/agentic-loop/index.d.ts +48 -48
  91. package/dist/loop/workflows/agentic-loop/index.d.ts.map +1 -1
  92. package/dist/loop/workflows/schema.d.ts +19 -19
  93. package/dist/loop/workflows/schema.d.ts.map +1 -1
  94. package/dist/loop/workflows/stream.d.ts +13 -0
  95. package/dist/loop/workflows/stream.d.ts.map +1 -1
  96. package/dist/mastra/index.cjs +2 -2
  97. package/dist/mastra/index.d.ts +1 -1
  98. package/dist/mastra/index.d.ts.map +1 -1
  99. package/dist/mastra/index.js +1 -1
  100. package/dist/memory/index.cjs +4 -4
  101. package/dist/memory/index.js +1 -1
  102. package/dist/memory/types.d.ts +1 -1
  103. package/dist/network/vNext/index.cjs +29 -29
  104. package/dist/network/vNext/index.cjs.map +1 -1
  105. package/dist/network/vNext/index.d.ts +14 -14
  106. package/dist/network/vNext/index.js +17 -17
  107. package/dist/network/vNext/index.js.map +1 -1
  108. package/dist/processors/index.cjs +10 -10
  109. package/dist/processors/index.js +1 -1
  110. package/dist/processors/runner.d.ts +7 -7
  111. package/dist/processors/runner.d.ts.map +1 -1
  112. package/dist/relevance/index.cjs +4 -4
  113. package/dist/relevance/index.js +1 -1
  114. package/dist/scores/index.cjs +9 -9
  115. package/dist/scores/index.js +2 -2
  116. package/dist/scores/scoreTraces/index.cjs +8 -8
  117. package/dist/scores/scoreTraces/index.js +3 -3
  118. package/dist/storage/index.cjs +3 -3
  119. package/dist/storage/index.js +1 -1
  120. package/dist/stream/MastraAgentNetworkStream.d.ts.map +1 -1
  121. package/dist/stream/MastraWorkflowStream.d.ts.map +1 -1
  122. package/dist/stream/aisdk/v5/compat/ui-message.d.ts +5 -5
  123. package/dist/stream/aisdk/v5/compat/ui-message.d.ts.map +1 -1
  124. package/dist/stream/aisdk/v5/execute.d.ts +2 -5
  125. package/dist/stream/aisdk/v5/execute.d.ts.map +1 -1
  126. package/dist/stream/aisdk/v5/input.d.ts +2 -1
  127. package/dist/stream/aisdk/v5/input.d.ts.map +1 -1
  128. package/dist/stream/aisdk/v5/output-helpers.d.ts +5 -11
  129. package/dist/stream/aisdk/v5/output-helpers.d.ts.map +1 -1
  130. package/dist/stream/aisdk/v5/output.d.ts +36 -16
  131. package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
  132. package/dist/stream/aisdk/v5/transform.d.ts +6 -6
  133. package/dist/stream/aisdk/v5/transform.d.ts.map +1 -1
  134. package/dist/stream/base/input.d.ts +2 -1
  135. package/dist/stream/base/input.d.ts.map +1 -1
  136. package/dist/stream/base/output.d.ts +69 -82
  137. package/dist/stream/base/output.d.ts.map +1 -1
  138. package/dist/stream/index.cjs +4 -4
  139. package/dist/stream/index.d.ts +1 -1
  140. package/dist/stream/index.d.ts.map +1 -1
  141. package/dist/stream/index.js +1 -1
  142. package/dist/stream/types.d.ts +205 -84
  143. package/dist/stream/types.d.ts.map +1 -1
  144. package/dist/test-utils/llm-mock.cjs +2 -2
  145. package/dist/test-utils/llm-mock.js +1 -1
  146. package/dist/tools/index.cjs +4 -4
  147. package/dist/tools/index.js +1 -1
  148. package/dist/tools/is-vercel-tool.cjs +2 -2
  149. package/dist/tools/is-vercel-tool.js +1 -1
  150. package/dist/tools/tool.d.ts +4 -4
  151. package/dist/tools/tool.d.ts.map +1 -1
  152. package/dist/tools/types.d.ts +8 -7
  153. package/dist/tools/types.d.ts.map +1 -1
  154. package/dist/tools/validation.d.ts +2 -1
  155. package/dist/tools/validation.d.ts.map +1 -1
  156. package/dist/types/zod-compat.d.ts +23 -0
  157. package/dist/types/zod-compat.d.ts.map +1 -0
  158. package/dist/utils.cjs +17 -17
  159. package/dist/utils.js +1 -1
  160. package/dist/workflows/default.d.ts +1 -1
  161. package/dist/workflows/default.d.ts.map +1 -1
  162. package/dist/workflows/evented/index.cjs +10 -10
  163. package/dist/workflows/evented/index.js +1 -1
  164. package/dist/workflows/evented/step-executor.d.ts +1 -0
  165. package/dist/workflows/evented/step-executor.d.ts.map +1 -1
  166. package/dist/workflows/evented/workflow-event-processor/index.d.ts.map +1 -1
  167. package/dist/workflows/evented/workflow.d.ts +3 -1
  168. package/dist/workflows/evented/workflow.d.ts.map +1 -1
  169. package/dist/workflows/execution-engine.d.ts +2 -1
  170. package/dist/workflows/execution-engine.d.ts.map +1 -1
  171. package/dist/workflows/index.cjs +15 -11
  172. package/dist/workflows/index.d.ts +1 -0
  173. package/dist/workflows/index.d.ts.map +1 -1
  174. package/dist/workflows/index.js +1 -1
  175. package/dist/workflows/legacy/index.cjs +22 -22
  176. package/dist/workflows/legacy/index.js +1 -1
  177. package/dist/workflows/legacy/step.d.ts +4 -4
  178. package/dist/workflows/legacy/step.d.ts.map +1 -1
  179. package/dist/workflows/legacy/types.d.ts +12 -7
  180. package/dist/workflows/legacy/types.d.ts.map +1 -1
  181. package/dist/workflows/legacy/workflow-instance.d.ts +2 -2
  182. package/dist/workflows/step.d.ts +3 -1
  183. package/dist/workflows/step.d.ts.map +1 -1
  184. package/dist/workflows/types.d.ts +1 -0
  185. package/dist/workflows/types.d.ts.map +1 -1
  186. package/dist/workflows/utils.d.ts +10 -0
  187. package/dist/workflows/utils.d.ts.map +1 -0
  188. package/dist/workflows/workflow.d.ts +24 -11
  189. package/dist/workflows/workflow.d.ts.map +1 -1
  190. package/package.json +5 -2
  191. package/dist/chunk-2ZSMA4EM.js.map +0 -1
  192. package/dist/chunk-6NZTZOEI.js.map +0 -1
  193. package/dist/chunk-AR76DMZQ.js.map +0 -1
  194. package/dist/chunk-CBV6EVJK.cjs.map +0 -1
  195. package/dist/chunk-JRTFV63C.cjs.map +0 -1
  196. package/dist/chunk-OVVKYARB.cjs.map +0 -1
  197. package/dist/chunk-UMATHB4Q.cjs.map +0 -1
  198. package/dist/chunk-USHKSVKL.js.map +0 -1
@@ -88,8 +88,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
88
88
  };
89
89
  text?: string | undefined;
90
90
  reasoning?: any[] | undefined;
91
- files?: any[] | undefined;
92
91
  sources?: any[] | undefined;
92
+ files?: any[] | undefined;
93
93
  toolCalls?: any[] | undefined;
94
94
  toolResults?: any[] | undefined;
95
95
  reasoningText?: string | undefined;
@@ -108,8 +108,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
108
108
  };
109
109
  text?: string | undefined;
110
110
  reasoning?: any[] | undefined;
111
- files?: any[] | undefined;
112
111
  sources?: any[] | undefined;
112
+ files?: any[] | undefined;
113
113
  toolCalls?: any[] | undefined;
114
114
  toolResults?: any[] | undefined;
115
115
  reasoningText?: string | undefined;
@@ -129,19 +129,19 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
129
129
  }, "strip", z.ZodTypeAny, {
130
130
  id?: string | undefined;
131
131
  providerMetadata?: Record<string, any> | undefined;
132
- model?: string | undefined;
133
- headers?: Record<string, string> | undefined;
134
132
  request?: Record<string, any> | undefined;
133
+ headers?: Record<string, string> | undefined;
135
134
  timestamp?: Date | undefined;
136
135
  modelId?: string | undefined;
136
+ model?: string | undefined;
137
137
  }, {
138
138
  id?: string | undefined;
139
139
  providerMetadata?: Record<string, any> | undefined;
140
- model?: string | undefined;
141
- headers?: Record<string, string> | undefined;
142
140
  request?: Record<string, any> | undefined;
141
+ headers?: Record<string, string> | undefined;
143
142
  timestamp?: Date | undefined;
144
143
  modelId?: string | undefined;
144
+ model?: string | undefined;
145
145
  }>;
146
146
  stepResult: z.ZodObject<{
147
147
  reason: z.ZodString;
@@ -175,8 +175,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
175
175
  warnings: any[];
176
176
  isContinued: boolean;
177
177
  messageId?: string | undefined;
178
- headers?: Record<string, string> | undefined;
179
178
  request?: Record<string, any> | undefined;
179
+ headers?: Record<string, string> | undefined;
180
180
  logprobs?: any;
181
181
  totalUsage?: {
182
182
  inputTokens: number;
@@ -190,8 +190,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
190
190
  warnings: any[];
191
191
  isContinued: boolean;
192
192
  messageId?: string | undefined;
193
- headers?: Record<string, string> | undefined;
194
193
  request?: Record<string, any> | undefined;
194
+ headers?: Record<string, string> | undefined;
195
195
  logprobs?: any;
196
196
  totalUsage?: {
197
197
  inputTokens: number;
@@ -213,8 +213,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
213
213
  };
214
214
  text?: string | undefined;
215
215
  reasoning?: any[] | undefined;
216
- files?: any[] | undefined;
217
216
  sources?: any[] | undefined;
217
+ files?: any[] | undefined;
218
218
  toolCalls?: any[] | undefined;
219
219
  toolResults?: any[] | undefined;
220
220
  reasoningText?: string | undefined;
@@ -227,11 +227,11 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
227
227
  metadata: {
228
228
  id?: string | undefined;
229
229
  providerMetadata?: Record<string, any> | undefined;
230
- model?: string | undefined;
231
- headers?: Record<string, string> | undefined;
232
230
  request?: Record<string, any> | undefined;
231
+ headers?: Record<string, string> | undefined;
233
232
  timestamp?: Date | undefined;
234
233
  modelId?: string | undefined;
234
+ model?: string | undefined;
235
235
  };
236
236
  messages: {
237
237
  user: any[];
@@ -243,8 +243,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
243
243
  warnings: any[];
244
244
  isContinued: boolean;
245
245
  messageId?: string | undefined;
246
- headers?: Record<string, string> | undefined;
247
246
  request?: Record<string, any> | undefined;
247
+ headers?: Record<string, string> | undefined;
248
248
  logprobs?: any;
249
249
  totalUsage?: {
250
250
  inputTokens: number;
@@ -266,8 +266,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
266
266
  };
267
267
  text?: string | undefined;
268
268
  reasoning?: any[] | undefined;
269
- files?: any[] | undefined;
270
269
  sources?: any[] | undefined;
270
+ files?: any[] | undefined;
271
271
  toolCalls?: any[] | undefined;
272
272
  toolResults?: any[] | undefined;
273
273
  reasoningText?: string | undefined;
@@ -280,11 +280,11 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
280
280
  metadata: {
281
281
  id?: string | undefined;
282
282
  providerMetadata?: Record<string, any> | undefined;
283
- model?: string | undefined;
284
- headers?: Record<string, string> | undefined;
285
283
  request?: Record<string, any> | undefined;
284
+ headers?: Record<string, string> | undefined;
286
285
  timestamp?: Date | undefined;
287
286
  modelId?: string | undefined;
287
+ model?: string | undefined;
288
288
  };
289
289
  messages: {
290
290
  user: any[];
@@ -296,8 +296,8 @@ export declare function createLLMMappingStep<Tools extends ToolSet = ToolSet, OU
296
296
  warnings: any[];
297
297
  isContinued: boolean;
298
298
  messageId?: string | undefined;
299
- headers?: Record<string, string> | undefined;
300
299
  request?: Record<string, any> | undefined;
300
+ headers?: Record<string, string> | undefined;
301
301
  logprobs?: any;
302
302
  totalUsage?: {
303
303
  inputTokens: number;
@@ -64,8 +64,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
64
64
  };
65
65
  text?: string | undefined;
66
66
  reasoning?: any[] | undefined;
67
- files?: any[] | undefined;
68
67
  sources?: any[] | undefined;
68
+ files?: any[] | undefined;
69
69
  toolCalls?: any[] | undefined;
70
70
  toolResults?: any[] | undefined;
71
71
  reasoningText?: string | undefined;
@@ -84,8 +84,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
84
84
  };
85
85
  text?: string | undefined;
86
86
  reasoning?: any[] | undefined;
87
- files?: any[] | undefined;
88
87
  sources?: any[] | undefined;
88
+ files?: any[] | undefined;
89
89
  toolCalls?: any[] | undefined;
90
90
  toolResults?: any[] | undefined;
91
91
  reasoningText?: string | undefined;
@@ -105,19 +105,19 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
105
105
  }, "strip", import("zod").ZodTypeAny, {
106
106
  id?: string | undefined;
107
107
  providerMetadata?: Record<string, any> | undefined;
108
- model?: string | undefined;
109
- headers?: Record<string, string> | undefined;
110
108
  request?: Record<string, any> | undefined;
109
+ headers?: Record<string, string> | undefined;
111
110
  timestamp?: Date | undefined;
112
111
  modelId?: string | undefined;
112
+ model?: string | undefined;
113
113
  }, {
114
114
  id?: string | undefined;
115
115
  providerMetadata?: Record<string, any> | undefined;
116
- model?: string | undefined;
117
- headers?: Record<string, string> | undefined;
118
116
  request?: Record<string, any> | undefined;
117
+ headers?: Record<string, string> | undefined;
119
118
  timestamp?: Date | undefined;
120
119
  modelId?: string | undefined;
120
+ model?: string | undefined;
121
121
  }>;
122
122
  stepResult: import("zod").ZodObject<{
123
123
  reason: import("zod").ZodString;
@@ -151,8 +151,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
151
151
  warnings: any[];
152
152
  isContinued: boolean;
153
153
  messageId?: string | undefined;
154
- headers?: Record<string, string> | undefined;
155
154
  request?: Record<string, any> | undefined;
155
+ headers?: Record<string, string> | undefined;
156
156
  logprobs?: any;
157
157
  totalUsage?: {
158
158
  inputTokens: number;
@@ -166,8 +166,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
166
166
  warnings: any[];
167
167
  isContinued: boolean;
168
168
  messageId?: string | undefined;
169
- headers?: Record<string, string> | undefined;
170
169
  request?: Record<string, any> | undefined;
170
+ headers?: Record<string, string> | undefined;
171
171
  logprobs?: any;
172
172
  totalUsage?: {
173
173
  inputTokens: number;
@@ -189,8 +189,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
189
189
  };
190
190
  text?: string | undefined;
191
191
  reasoning?: any[] | undefined;
192
- files?: any[] | undefined;
193
192
  sources?: any[] | undefined;
193
+ files?: any[] | undefined;
194
194
  toolCalls?: any[] | undefined;
195
195
  toolResults?: any[] | undefined;
196
196
  reasoningText?: string | undefined;
@@ -203,11 +203,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
203
203
  metadata: {
204
204
  id?: string | undefined;
205
205
  providerMetadata?: Record<string, any> | undefined;
206
- model?: string | undefined;
207
- headers?: Record<string, string> | undefined;
208
206
  request?: Record<string, any> | undefined;
207
+ headers?: Record<string, string> | undefined;
209
208
  timestamp?: Date | undefined;
210
209
  modelId?: string | undefined;
210
+ model?: string | undefined;
211
211
  };
212
212
  messages: {
213
213
  user: any[];
@@ -219,8 +219,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
219
219
  warnings: any[];
220
220
  isContinued: boolean;
221
221
  messageId?: string | undefined;
222
- headers?: Record<string, string> | undefined;
223
222
  request?: Record<string, any> | undefined;
223
+ headers?: Record<string, string> | undefined;
224
224
  logprobs?: any;
225
225
  totalUsage?: {
226
226
  inputTokens: number;
@@ -242,8 +242,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
242
242
  };
243
243
  text?: string | undefined;
244
244
  reasoning?: any[] | undefined;
245
- files?: any[] | undefined;
246
245
  sources?: any[] | undefined;
246
+ files?: any[] | undefined;
247
247
  toolCalls?: any[] | undefined;
248
248
  toolResults?: any[] | undefined;
249
249
  reasoningText?: string | undefined;
@@ -256,11 +256,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
256
256
  metadata: {
257
257
  id?: string | undefined;
258
258
  providerMetadata?: Record<string, any> | undefined;
259
- model?: string | undefined;
260
- headers?: Record<string, string> | undefined;
261
259
  request?: Record<string, any> | undefined;
260
+ headers?: Record<string, string> | undefined;
262
261
  timestamp?: Date | undefined;
263
262
  modelId?: string | undefined;
263
+ model?: string | undefined;
264
264
  };
265
265
  messages: {
266
266
  user: any[];
@@ -272,8 +272,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
272
272
  warnings: any[];
273
273
  isContinued: boolean;
274
274
  messageId?: string | undefined;
275
- headers?: Record<string, string> | undefined;
276
275
  request?: Record<string, any> | undefined;
276
+ headers?: Record<string, string> | undefined;
277
277
  logprobs?: any;
278
278
  totalUsage?: {
279
279
  inputTokens: number;
@@ -341,8 +341,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
341
341
  };
342
342
  text?: string | undefined;
343
343
  reasoning?: any[] | undefined;
344
- files?: any[] | undefined;
345
344
  sources?: any[] | undefined;
345
+ files?: any[] | undefined;
346
346
  toolCalls?: any[] | undefined;
347
347
  toolResults?: any[] | undefined;
348
348
  reasoningText?: string | undefined;
@@ -361,8 +361,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
361
361
  };
362
362
  text?: string | undefined;
363
363
  reasoning?: any[] | undefined;
364
- files?: any[] | undefined;
365
364
  sources?: any[] | undefined;
365
+ files?: any[] | undefined;
366
366
  toolCalls?: any[] | undefined;
367
367
  toolResults?: any[] | undefined;
368
368
  reasoningText?: string | undefined;
@@ -382,19 +382,19 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
382
382
  }, "strip", import("zod").ZodTypeAny, {
383
383
  id?: string | undefined;
384
384
  providerMetadata?: Record<string, any> | undefined;
385
- model?: string | undefined;
386
- headers?: Record<string, string> | undefined;
387
385
  request?: Record<string, any> | undefined;
386
+ headers?: Record<string, string> | undefined;
388
387
  timestamp?: Date | undefined;
389
388
  modelId?: string | undefined;
389
+ model?: string | undefined;
390
390
  }, {
391
391
  id?: string | undefined;
392
392
  providerMetadata?: Record<string, any> | undefined;
393
- model?: string | undefined;
394
- headers?: Record<string, string> | undefined;
395
393
  request?: Record<string, any> | undefined;
394
+ headers?: Record<string, string> | undefined;
396
395
  timestamp?: Date | undefined;
397
396
  modelId?: string | undefined;
397
+ model?: string | undefined;
398
398
  }>;
399
399
  stepResult: import("zod").ZodObject<{
400
400
  reason: import("zod").ZodString;
@@ -428,8 +428,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
428
428
  warnings: any[];
429
429
  isContinued: boolean;
430
430
  messageId?: string | undefined;
431
- headers?: Record<string, string> | undefined;
432
431
  request?: Record<string, any> | undefined;
432
+ headers?: Record<string, string> | undefined;
433
433
  logprobs?: any;
434
434
  totalUsage?: {
435
435
  inputTokens: number;
@@ -443,8 +443,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
443
443
  warnings: any[];
444
444
  isContinued: boolean;
445
445
  messageId?: string | undefined;
446
- headers?: Record<string, string> | undefined;
447
446
  request?: Record<string, any> | undefined;
447
+ headers?: Record<string, string> | undefined;
448
448
  logprobs?: any;
449
449
  totalUsage?: {
450
450
  inputTokens: number;
@@ -466,8 +466,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
466
466
  };
467
467
  text?: string | undefined;
468
468
  reasoning?: any[] | undefined;
469
- files?: any[] | undefined;
470
469
  sources?: any[] | undefined;
470
+ files?: any[] | undefined;
471
471
  toolCalls?: any[] | undefined;
472
472
  toolResults?: any[] | undefined;
473
473
  reasoningText?: string | undefined;
@@ -480,11 +480,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
480
480
  metadata: {
481
481
  id?: string | undefined;
482
482
  providerMetadata?: Record<string, any> | undefined;
483
- model?: string | undefined;
484
- headers?: Record<string, string> | undefined;
485
483
  request?: Record<string, any> | undefined;
484
+ headers?: Record<string, string> | undefined;
486
485
  timestamp?: Date | undefined;
487
486
  modelId?: string | undefined;
487
+ model?: string | undefined;
488
488
  };
489
489
  messages: {
490
490
  user: any[];
@@ -496,8 +496,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
496
496
  warnings: any[];
497
497
  isContinued: boolean;
498
498
  messageId?: string | undefined;
499
- headers?: Record<string, string> | undefined;
500
499
  request?: Record<string, any> | undefined;
500
+ headers?: Record<string, string> | undefined;
501
501
  logprobs?: any;
502
502
  totalUsage?: {
503
503
  inputTokens: number;
@@ -519,8 +519,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
519
519
  };
520
520
  text?: string | undefined;
521
521
  reasoning?: any[] | undefined;
522
- files?: any[] | undefined;
523
522
  sources?: any[] | undefined;
523
+ files?: any[] | undefined;
524
524
  toolCalls?: any[] | undefined;
525
525
  toolResults?: any[] | undefined;
526
526
  reasoningText?: string | undefined;
@@ -533,11 +533,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
533
533
  metadata: {
534
534
  id?: string | undefined;
535
535
  providerMetadata?: Record<string, any> | undefined;
536
- model?: string | undefined;
537
- headers?: Record<string, string> | undefined;
538
536
  request?: Record<string, any> | undefined;
537
+ headers?: Record<string, string> | undefined;
539
538
  timestamp?: Date | undefined;
540
539
  modelId?: string | undefined;
540
+ model?: string | undefined;
541
541
  };
542
542
  messages: {
543
543
  user: any[];
@@ -549,8 +549,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
549
549
  warnings: any[];
550
550
  isContinued: boolean;
551
551
  messageId?: string | undefined;
552
- headers?: Record<string, string> | undefined;
553
552
  request?: Record<string, any> | undefined;
553
+ headers?: Record<string, string> | undefined;
554
554
  logprobs?: any;
555
555
  totalUsage?: {
556
556
  inputTokens: number;
@@ -618,8 +618,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
618
618
  };
619
619
  text?: string | undefined;
620
620
  reasoning?: any[] | undefined;
621
- files?: any[] | undefined;
622
621
  sources?: any[] | undefined;
622
+ files?: any[] | undefined;
623
623
  toolCalls?: any[] | undefined;
624
624
  toolResults?: any[] | undefined;
625
625
  reasoningText?: string | undefined;
@@ -638,8 +638,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
638
638
  };
639
639
  text?: string | undefined;
640
640
  reasoning?: any[] | undefined;
641
- files?: any[] | undefined;
642
641
  sources?: any[] | undefined;
642
+ files?: any[] | undefined;
643
643
  toolCalls?: any[] | undefined;
644
644
  toolResults?: any[] | undefined;
645
645
  reasoningText?: string | undefined;
@@ -659,19 +659,19 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
659
659
  }, "strip", import("zod").ZodTypeAny, {
660
660
  id?: string | undefined;
661
661
  providerMetadata?: Record<string, any> | undefined;
662
- model?: string | undefined;
663
- headers?: Record<string, string> | undefined;
664
662
  request?: Record<string, any> | undefined;
663
+ headers?: Record<string, string> | undefined;
665
664
  timestamp?: Date | undefined;
666
665
  modelId?: string | undefined;
666
+ model?: string | undefined;
667
667
  }, {
668
668
  id?: string | undefined;
669
669
  providerMetadata?: Record<string, any> | undefined;
670
- model?: string | undefined;
671
- headers?: Record<string, string> | undefined;
672
670
  request?: Record<string, any> | undefined;
671
+ headers?: Record<string, string> | undefined;
673
672
  timestamp?: Date | undefined;
674
673
  modelId?: string | undefined;
674
+ model?: string | undefined;
675
675
  }>;
676
676
  stepResult: import("zod").ZodObject<{
677
677
  reason: import("zod").ZodString;
@@ -705,8 +705,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
705
705
  warnings: any[];
706
706
  isContinued: boolean;
707
707
  messageId?: string | undefined;
708
- headers?: Record<string, string> | undefined;
709
708
  request?: Record<string, any> | undefined;
709
+ headers?: Record<string, string> | undefined;
710
710
  logprobs?: any;
711
711
  totalUsage?: {
712
712
  inputTokens: number;
@@ -720,8 +720,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
720
720
  warnings: any[];
721
721
  isContinued: boolean;
722
722
  messageId?: string | undefined;
723
- headers?: Record<string, string> | undefined;
724
723
  request?: Record<string, any> | undefined;
724
+ headers?: Record<string, string> | undefined;
725
725
  logprobs?: any;
726
726
  totalUsage?: {
727
727
  inputTokens: number;
@@ -743,8 +743,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
743
743
  };
744
744
  text?: string | undefined;
745
745
  reasoning?: any[] | undefined;
746
- files?: any[] | undefined;
747
746
  sources?: any[] | undefined;
747
+ files?: any[] | undefined;
748
748
  toolCalls?: any[] | undefined;
749
749
  toolResults?: any[] | undefined;
750
750
  reasoningText?: string | undefined;
@@ -757,11 +757,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
757
757
  metadata: {
758
758
  id?: string | undefined;
759
759
  providerMetadata?: Record<string, any> | undefined;
760
- model?: string | undefined;
761
- headers?: Record<string, string> | undefined;
762
760
  request?: Record<string, any> | undefined;
761
+ headers?: Record<string, string> | undefined;
763
762
  timestamp?: Date | undefined;
764
763
  modelId?: string | undefined;
764
+ model?: string | undefined;
765
765
  };
766
766
  messages: {
767
767
  user: any[];
@@ -773,8 +773,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
773
773
  warnings: any[];
774
774
  isContinued: boolean;
775
775
  messageId?: string | undefined;
776
- headers?: Record<string, string> | undefined;
777
776
  request?: Record<string, any> | undefined;
777
+ headers?: Record<string, string> | undefined;
778
778
  logprobs?: any;
779
779
  totalUsage?: {
780
780
  inputTokens: number;
@@ -796,8 +796,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
796
796
  };
797
797
  text?: string | undefined;
798
798
  reasoning?: any[] | undefined;
799
- files?: any[] | undefined;
800
799
  sources?: any[] | undefined;
800
+ files?: any[] | undefined;
801
801
  toolCalls?: any[] | undefined;
802
802
  toolResults?: any[] | undefined;
803
803
  reasoningText?: string | undefined;
@@ -810,11 +810,11 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
810
810
  metadata: {
811
811
  id?: string | undefined;
812
812
  providerMetadata?: Record<string, any> | undefined;
813
- model?: string | undefined;
814
- headers?: Record<string, string> | undefined;
815
813
  request?: Record<string, any> | undefined;
814
+ headers?: Record<string, string> | undefined;
816
815
  timestamp?: Date | undefined;
817
816
  modelId?: string | undefined;
817
+ model?: string | undefined;
818
818
  };
819
819
  messages: {
820
820
  user: any[];
@@ -826,8 +826,8 @@ export declare function createAgenticLoopWorkflow<Tools extends ToolSet = ToolSe
826
826
  warnings: any[];
827
827
  isContinued: boolean;
828
828
  messageId?: string | undefined;
829
- headers?: Record<string, string> | undefined;
830
829
  request?: Record<string, any> | undefined;
830
+ headers?: Record<string, string> | undefined;
831
831
  logprobs?: any;
832
832
  totalUsage?: {
833
833
  inputTokens: number;
@@ -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,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,uBAAuB,CAAC;AAG1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,UAAU,iBAAiB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,CAClG,SAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACvD,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACnC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,EAChH,MAAM,EAAE,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiJzC"}
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,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAM3C,UAAU,iBAAiB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,CAClG,SAAQ,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;IAC9B,UAAU,EAAE,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACvD,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACnC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,SAAS,YAAY,GAAG,SAAS,EAChH,MAAM,EAAE,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqJzC"}
@@ -26,7 +26,7 @@ export interface LLMIterationOutput<Tools extends ToolSet = ToolSet> {
26
26
  dynamicToolCalls?: DynamicToolCall[];
27
27
  staticToolResults?: StaticToolResult<Tools>[];
28
28
  dynamicToolResults?: DynamicToolResult[];
29
- usage?: LanguageModelUsage;
29
+ usage: LanguageModelUsage;
30
30
  steps: StepResult<Tools>[];
31
31
  }
32
32
  export interface LLMIterationMetadata {
@@ -81,8 +81,8 @@ export declare const llmIterationStepResultSchema: z.ZodObject<{
81
81
  warnings: any[];
82
82
  isContinued: boolean;
83
83
  messageId?: string | undefined;
84
- headers?: Record<string, string> | undefined;
85
84
  request?: Record<string, any> | undefined;
85
+ headers?: Record<string, string> | undefined;
86
86
  logprobs?: any;
87
87
  totalUsage?: {
88
88
  inputTokens: number;
@@ -96,8 +96,8 @@ export declare const llmIterationStepResultSchema: z.ZodObject<{
96
96
  warnings: any[];
97
97
  isContinued: boolean;
98
98
  messageId?: string | undefined;
99
- headers?: Record<string, string> | undefined;
100
99
  request?: Record<string, any> | undefined;
100
+ headers?: Record<string, string> | undefined;
101
101
  logprobs?: any;
102
102
  totalUsage?: {
103
103
  inputTokens: number;
@@ -165,8 +165,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
165
165
  };
166
166
  text?: string | undefined;
167
167
  reasoning?: any[] | undefined;
168
- files?: any[] | undefined;
169
168
  sources?: any[] | undefined;
169
+ files?: any[] | undefined;
170
170
  toolCalls?: any[] | undefined;
171
171
  toolResults?: any[] | undefined;
172
172
  reasoningText?: string | undefined;
@@ -185,8 +185,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
185
185
  };
186
186
  text?: string | undefined;
187
187
  reasoning?: any[] | undefined;
188
- files?: any[] | undefined;
189
188
  sources?: any[] | undefined;
189
+ files?: any[] | undefined;
190
190
  toolCalls?: any[] | undefined;
191
191
  toolResults?: any[] | undefined;
192
192
  reasoningText?: string | undefined;
@@ -206,19 +206,19 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
206
206
  }, "strip", z.ZodTypeAny, {
207
207
  id?: string | undefined;
208
208
  providerMetadata?: Record<string, any> | undefined;
209
- model?: string | undefined;
210
- headers?: Record<string, string> | undefined;
211
209
  request?: Record<string, any> | undefined;
210
+ headers?: Record<string, string> | undefined;
212
211
  timestamp?: Date | undefined;
213
212
  modelId?: string | undefined;
213
+ model?: string | undefined;
214
214
  }, {
215
215
  id?: string | undefined;
216
216
  providerMetadata?: Record<string, any> | undefined;
217
- model?: string | undefined;
218
- headers?: Record<string, string> | undefined;
219
217
  request?: Record<string, any> | undefined;
218
+ headers?: Record<string, string> | undefined;
220
219
  timestamp?: Date | undefined;
221
220
  modelId?: string | undefined;
221
+ model?: string | undefined;
222
222
  }>;
223
223
  stepResult: z.ZodObject<{
224
224
  reason: z.ZodString;
@@ -252,8 +252,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
252
252
  warnings: any[];
253
253
  isContinued: boolean;
254
254
  messageId?: string | undefined;
255
- headers?: Record<string, string> | undefined;
256
255
  request?: Record<string, any> | undefined;
256
+ headers?: Record<string, string> | undefined;
257
257
  logprobs?: any;
258
258
  totalUsage?: {
259
259
  inputTokens: number;
@@ -267,8 +267,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
267
267
  warnings: any[];
268
268
  isContinued: boolean;
269
269
  messageId?: string | undefined;
270
- headers?: Record<string, string> | undefined;
271
270
  request?: Record<string, any> | undefined;
271
+ headers?: Record<string, string> | undefined;
272
272
  logprobs?: any;
273
273
  totalUsage?: {
274
274
  inputTokens: number;
@@ -290,8 +290,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
290
290
  };
291
291
  text?: string | undefined;
292
292
  reasoning?: any[] | undefined;
293
- files?: any[] | undefined;
294
293
  sources?: any[] | undefined;
294
+ files?: any[] | undefined;
295
295
  toolCalls?: any[] | undefined;
296
296
  toolResults?: any[] | undefined;
297
297
  reasoningText?: string | undefined;
@@ -304,11 +304,11 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
304
304
  metadata: {
305
305
  id?: string | undefined;
306
306
  providerMetadata?: Record<string, any> | undefined;
307
- model?: string | undefined;
308
- headers?: Record<string, string> | undefined;
309
307
  request?: Record<string, any> | undefined;
308
+ headers?: Record<string, string> | undefined;
310
309
  timestamp?: Date | undefined;
311
310
  modelId?: string | undefined;
311
+ model?: string | undefined;
312
312
  };
313
313
  messages: {
314
314
  user: any[];
@@ -320,8 +320,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
320
320
  warnings: any[];
321
321
  isContinued: boolean;
322
322
  messageId?: string | undefined;
323
- headers?: Record<string, string> | undefined;
324
323
  request?: Record<string, any> | undefined;
324
+ headers?: Record<string, string> | undefined;
325
325
  logprobs?: any;
326
326
  totalUsage?: {
327
327
  inputTokens: number;
@@ -343,8 +343,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
343
343
  };
344
344
  text?: string | undefined;
345
345
  reasoning?: any[] | undefined;
346
- files?: any[] | undefined;
347
346
  sources?: any[] | undefined;
347
+ files?: any[] | undefined;
348
348
  toolCalls?: any[] | undefined;
349
349
  toolResults?: any[] | undefined;
350
350
  reasoningText?: string | undefined;
@@ -357,11 +357,11 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
357
357
  metadata: {
358
358
  id?: string | undefined;
359
359
  providerMetadata?: Record<string, any> | undefined;
360
- model?: string | undefined;
361
- headers?: Record<string, string> | undefined;
362
360
  request?: Record<string, any> | undefined;
361
+ headers?: Record<string, string> | undefined;
363
362
  timestamp?: Date | undefined;
364
363
  modelId?: string | undefined;
364
+ model?: string | undefined;
365
365
  };
366
366
  messages: {
367
367
  user: any[];
@@ -373,8 +373,8 @@ export declare const llmIterationOutputSchema: z.ZodObject<{
373
373
  warnings: any[];
374
374
  isContinued: boolean;
375
375
  messageId?: string | undefined;
376
- headers?: Record<string, string> | undefined;
377
376
  request?: Record<string, any> | undefined;
377
+ headers?: Record<string, string> | undefined;
378
378
  logprobs?: any;
379
379
  totalUsage?: {
380
380
  inputTokens: number;