@mastra/server 0.0.0-cloud-transporter-20250513033346 → 0.0.0-cloud-deployer-for-core-0.19.1-20251001164939

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 (301) hide show
  1. package/CHANGELOG.md +3867 -0
  2. package/LICENSE.md +11 -42
  3. package/README.md +0 -5
  4. package/dist/{chunk-H5PTF3Y4.js → chunk-4QCXUEAT.js} +11 -2
  5. package/dist/chunk-4QCXUEAT.js.map +1 -0
  6. package/dist/chunk-4RRMWXQ2.js +3522 -0
  7. package/dist/chunk-4RRMWXQ2.js.map +1 -0
  8. package/dist/chunk-4VJG7FZK.cjs +18023 -0
  9. package/dist/chunk-4VJG7FZK.cjs.map +1 -0
  10. package/dist/chunk-52UP7DFT.cjs +130 -0
  11. package/dist/chunk-52UP7DFT.cjs.map +1 -0
  12. package/dist/chunk-6GMFZ5LK.js +2774 -0
  13. package/dist/chunk-6GMFZ5LK.js.map +1 -0
  14. package/dist/{chunk-P6SCPDYW.js → chunk-6IJWRJZE.js} +114 -137
  15. package/dist/chunk-6IJWRJZE.js.map +1 -0
  16. package/dist/{chunk-OCWPVYNI.cjs → chunk-7NADHFD2.cjs} +3 -0
  17. package/dist/chunk-7NADHFD2.cjs.map +1 -0
  18. package/dist/chunk-A3AL7EWJ.js +83 -0
  19. package/dist/chunk-A3AL7EWJ.js.map +1 -0
  20. package/dist/chunk-BKCWZLEL.cjs +197 -0
  21. package/dist/chunk-BKCWZLEL.cjs.map +1 -0
  22. package/dist/chunk-BX5XPVO2.cjs +676 -0
  23. package/dist/chunk-BX5XPVO2.cjs.map +1 -0
  24. package/dist/chunk-CY4TP3FK.js +16 -0
  25. package/dist/chunk-CY4TP3FK.js.map +1 -0
  26. package/dist/chunk-EMMSS5I5.cjs +37 -0
  27. package/dist/chunk-EMMSS5I5.cjs.map +1 -0
  28. package/dist/chunk-FALVL2VV.cjs +3525 -0
  29. package/dist/chunk-FALVL2VV.cjs.map +1 -0
  30. package/dist/chunk-G3PMV62Z.js +33 -0
  31. package/dist/chunk-G3PMV62Z.js.map +1 -0
  32. package/dist/chunk-G4PUALCE.cjs +28 -0
  33. package/dist/chunk-G4PUALCE.cjs.map +1 -0
  34. package/dist/chunk-GU4EWMZB.cjs +769 -0
  35. package/dist/chunk-GU4EWMZB.cjs.map +1 -0
  36. package/dist/chunk-HCFCPUTA.cjs +601 -0
  37. package/dist/chunk-HCFCPUTA.cjs.map +1 -0
  38. package/dist/chunk-HFEPCQAR.js +655 -0
  39. package/dist/chunk-HFEPCQAR.js.map +1 -0
  40. package/dist/{chunk-YWLUOY3D.cjs → chunk-HVBBFCDH.cjs} +1110 -793
  41. package/dist/chunk-HVBBFCDH.cjs.map +1 -0
  42. package/dist/chunk-JLPZWKPR.js +582 -0
  43. package/dist/chunk-JLPZWKPR.js.map +1 -0
  44. package/dist/{chunk-HFWCEP5S.js → chunk-JRDEOHAJ.js} +47 -14
  45. package/dist/chunk-JRDEOHAJ.js.map +1 -0
  46. package/dist/{chunk-TJKLBTFB.js → chunk-KM7EJKXV.js} +55 -27
  47. package/dist/chunk-KM7EJKXV.js.map +1 -0
  48. package/dist/chunk-KNGXRN26.cjs +335 -0
  49. package/dist/chunk-KNGXRN26.cjs.map +1 -0
  50. package/dist/{chunk-OR3CIE2H.js → chunk-KV6VHX4V.js} +29 -7
  51. package/dist/chunk-KV6VHX4V.js.map +1 -0
  52. package/dist/chunk-LF2ZLOFP.js +767 -0
  53. package/dist/chunk-LF2ZLOFP.js.map +1 -0
  54. package/dist/chunk-LJFAAEU7.cjs +167 -0
  55. package/dist/chunk-LJFAAEU7.cjs.map +1 -0
  56. package/dist/{chunk-NYN7KFXL.js → chunk-MMROOK5J.js} +3 -0
  57. package/dist/chunk-MMROOK5J.js.map +1 -0
  58. package/dist/{chunk-LIVAK2DM.js → chunk-N7F33WAD.js} +1083 -794
  59. package/dist/chunk-N7F33WAD.js.map +1 -0
  60. package/dist/chunk-NG5IVLEZ.js +1012 -0
  61. package/dist/chunk-NG5IVLEZ.js.map +1 -0
  62. package/dist/chunk-NLWACBE7.cjs +128 -0
  63. package/dist/chunk-NLWACBE7.cjs.map +1 -0
  64. package/dist/{chunk-5SN4U5AC.cjs → chunk-OPI3FZYH.cjs} +115 -138
  65. package/dist/chunk-OPI3FZYH.cjs.map +1 -0
  66. package/dist/chunk-OZLRIVC4.cjs +588 -0
  67. package/dist/chunk-OZLRIVC4.cjs.map +1 -0
  68. package/dist/chunk-PPYGWINI.cjs +2777 -0
  69. package/dist/chunk-PPYGWINI.cjs.map +1 -0
  70. package/dist/{chunk-MHKNLNAN.cjs → chunk-PWTXZZTR.cjs} +33 -10
  71. package/dist/chunk-PWTXZZTR.cjs.map +1 -0
  72. package/dist/chunk-RE4RPXT2.cjs +18 -0
  73. package/dist/chunk-RE4RPXT2.cjs.map +1 -0
  74. package/dist/chunk-SIGXR3JT.cjs +1043 -0
  75. package/dist/chunk-SIGXR3JT.cjs.map +1 -0
  76. package/dist/chunk-SPLSYTYW.cjs +88 -0
  77. package/dist/chunk-SPLSYTYW.cjs.map +1 -0
  78. package/dist/chunk-SQY4T6EJ.js +571 -0
  79. package/dist/chunk-SQY4T6EJ.js.map +1 -0
  80. package/dist/{chunk-4YZ3U35L.cjs → chunk-T3TIA3O6.cjs} +22 -20
  81. package/dist/chunk-T3TIA3O6.cjs.map +1 -0
  82. package/dist/{chunk-EJO45KYT.js → chunk-TTHEEIZ3.js} +53 -50
  83. package/dist/chunk-TTHEEIZ3.js.map +1 -0
  84. package/dist/chunk-VY4ENABS.cjs +135 -0
  85. package/dist/chunk-VY4ENABS.cjs.map +1 -0
  86. package/dist/{chunk-IU5VO2I2.js → chunk-WHN4VX55.js} +7 -5
  87. package/dist/chunk-WHN4VX55.js.map +1 -0
  88. package/dist/chunk-WUJLVNLU.js +124 -0
  89. package/dist/chunk-WUJLVNLU.js.map +1 -0
  90. package/dist/chunk-XJOYGRTN.js +189 -0
  91. package/dist/chunk-XJOYGRTN.js.map +1 -0
  92. package/dist/chunk-YGQ5F6E6.js +17987 -0
  93. package/dist/chunk-YGQ5F6E6.js.map +1 -0
  94. package/dist/chunk-YWOK4F5A.js +131 -0
  95. package/dist/chunk-YWOK4F5A.js.map +1 -0
  96. package/dist/dist-26HWEQY6.js +3 -0
  97. package/dist/dist-26HWEQY6.js.map +1 -0
  98. package/dist/dist-3DRD6USP.cjs +1411 -0
  99. package/dist/dist-3DRD6USP.cjs.map +1 -0
  100. package/dist/dist-7GVM5ZCS.js +845 -0
  101. package/dist/dist-7GVM5ZCS.js.map +1 -0
  102. package/dist/dist-CCDXEZDR.js +1408 -0
  103. package/dist/dist-CCDXEZDR.js.map +1 -0
  104. package/dist/dist-COC6WFAX.js +761 -0
  105. package/dist/dist-COC6WFAX.js.map +1 -0
  106. package/dist/dist-EZZMMMNT.cjs +16 -0
  107. package/dist/dist-EZZMMMNT.cjs.map +1 -0
  108. package/dist/dist-H64VX6DE.js +3 -0
  109. package/dist/dist-H64VX6DE.js.map +1 -0
  110. package/dist/dist-H7RR3EXL.js +2006 -0
  111. package/dist/dist-H7RR3EXL.js.map +1 -0
  112. package/dist/dist-JNIWWFE5.js +1147 -0
  113. package/dist/dist-JNIWWFE5.js.map +1 -0
  114. package/dist/dist-L76NFIWM.cjs +934 -0
  115. package/dist/dist-L76NFIWM.cjs.map +1 -0
  116. package/dist/dist-LKU3RRT2.js +937 -0
  117. package/dist/dist-LKU3RRT2.js.map +1 -0
  118. package/dist/dist-MQUZENT7.js +931 -0
  119. package/dist/dist-MQUZENT7.js.map +1 -0
  120. package/dist/dist-N6P7NYGX.cjs +928 -0
  121. package/dist/dist-N6P7NYGX.cjs.map +1 -0
  122. package/dist/dist-OC4J73ML.cjs +940 -0
  123. package/dist/dist-OC4J73ML.cjs.map +1 -0
  124. package/dist/dist-QI7RYOYQ.cjs +764 -0
  125. package/dist/dist-QI7RYOYQ.cjs.map +1 -0
  126. package/dist/dist-R3L5J3LL.cjs +1150 -0
  127. package/dist/dist-R3L5J3LL.cjs.map +1 -0
  128. package/dist/dist-S3ILRJUH.cjs +2013 -0
  129. package/dist/dist-S3ILRJUH.cjs.map +1 -0
  130. package/dist/dist-WKYB3LTJ.cjs +16 -0
  131. package/dist/dist-WKYB3LTJ.cjs.map +1 -0
  132. package/dist/dist-WY4WSW7C.cjs +849 -0
  133. package/dist/dist-WY4WSW7C.cjs.map +1 -0
  134. package/dist/dist-ZHCN47XA.js +925 -0
  135. package/dist/dist-ZHCN47XA.js.map +1 -0
  136. package/dist/index.cjs +6 -0
  137. package/dist/index.cjs.map +1 -0
  138. package/dist/index.d.ts +1 -0
  139. package/dist/index.d.ts.map +1 -0
  140. package/dist/index.js +5 -0
  141. package/dist/index.js.map +1 -0
  142. package/dist/server/a2a/protocol.d.ts +8 -0
  143. package/dist/server/a2a/protocol.d.ts.map +1 -0
  144. package/dist/server/a2a/store.cjs +25 -0
  145. package/dist/server/a2a/store.cjs.map +1 -0
  146. package/dist/server/a2a/store.d.ts +14 -0
  147. package/dist/server/a2a/store.d.ts.map +1 -0
  148. package/dist/server/a2a/store.js +23 -0
  149. package/dist/server/a2a/store.js.map +1 -0
  150. package/dist/server/a2a/tasks.d.ts +20 -0
  151. package/dist/server/a2a/tasks.d.ts.map +1 -0
  152. package/dist/server/handlers/a2a.cjs +13 -11
  153. package/dist/server/handlers/a2a.cjs.map +1 -0
  154. package/dist/server/handlers/a2a.d.ts +68 -6
  155. package/dist/server/handlers/a2a.d.ts.map +1 -0
  156. package/dist/server/handlers/a2a.js +3 -1
  157. package/dist/server/handlers/a2a.js.map +1 -0
  158. package/dist/server/handlers/agent-builder.cjs +68 -0
  159. package/dist/server/handlers/agent-builder.cjs.map +1 -0
  160. package/dist/server/handlers/agent-builder.d.ts +94 -0
  161. package/dist/server/handlers/agent-builder.d.ts.map +1 -0
  162. package/dist/server/handlers/agent-builder.js +3 -0
  163. package/dist/server/handlers/agent-builder.js.map +1 -0
  164. package/dist/server/handlers/agents.cjs +61 -7
  165. package/dist/server/handlers/agents.cjs.map +1 -0
  166. package/dist/server/handlers/agents.d.ts +216 -6
  167. package/dist/server/handlers/agents.d.ts.map +1 -0
  168. package/dist/server/handlers/agents.js +3 -1
  169. package/dist/server/handlers/agents.js.map +1 -0
  170. package/dist/server/handlers/error.cjs +4 -2
  171. package/dist/server/handlers/error.cjs.map +1 -0
  172. package/dist/server/handlers/error.d.ts +2 -1
  173. package/dist/server/handlers/error.d.ts.map +1 -0
  174. package/dist/server/handlers/error.js +3 -1
  175. package/dist/server/handlers/error.js.map +1 -0
  176. package/dist/server/handlers/legacyWorkflows.cjs +48 -0
  177. package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
  178. package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
  179. package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
  180. package/dist/server/handlers/legacyWorkflows.js +3 -0
  181. package/dist/server/handlers/legacyWorkflows.js.map +1 -0
  182. package/dist/server/handlers/logs.cjs +6 -4
  183. package/dist/server/handlers/logs.cjs.map +1 -0
  184. package/dist/server/handlers/logs.d.ts +34 -3
  185. package/dist/server/handlers/logs.d.ts.map +1 -0
  186. package/dist/server/handlers/logs.js +3 -1
  187. package/dist/server/handlers/logs.js.map +1 -0
  188. package/dist/server/handlers/memory.cjs +39 -9
  189. package/dist/server/handlers/memory.cjs.map +1 -0
  190. package/dist/server/handlers/memory.d.ts +118 -8
  191. package/dist/server/handlers/memory.d.ts.map +1 -0
  192. package/dist/server/handlers/memory.js +3 -1
  193. package/dist/server/handlers/memory.js.map +1 -0
  194. package/dist/server/handlers/observability.cjs +24 -0
  195. package/dist/server/handlers/observability.cjs.map +1 -0
  196. package/dist/server/handlers/observability.d.ts +49 -0
  197. package/dist/server/handlers/observability.d.ts.map +1 -0
  198. package/dist/server/handlers/observability.js +3 -0
  199. package/dist/server/handlers/observability.js.map +1 -0
  200. package/dist/server/handlers/scores.cjs +32 -0
  201. package/dist/server/handlers/scores.cjs.map +1 -0
  202. package/dist/server/handlers/scores.d.ts +251 -0
  203. package/dist/server/handlers/scores.d.ts.map +1 -0
  204. package/dist/server/handlers/scores.js +3 -0
  205. package/dist/server/handlers/scores.js.map +1 -0
  206. package/dist/server/handlers/telemetry.cjs +9 -3
  207. package/dist/server/handlers/telemetry.cjs.map +1 -0
  208. package/dist/server/handlers/telemetry.d.ts +33 -2
  209. package/dist/server/handlers/telemetry.d.ts.map +1 -0
  210. package/dist/server/handlers/telemetry.js +3 -1
  211. package/dist/server/handlers/telemetry.js.map +1 -0
  212. package/dist/server/handlers/tools.cjs +11 -5
  213. package/dist/server/handlers/tools.cjs.map +1 -0
  214. package/dist/server/handlers/tools.d.ts +25 -4
  215. package/dist/server/handlers/tools.d.ts.map +1 -0
  216. package/dist/server/handlers/tools.js +3 -1
  217. package/dist/server/handlers/tools.js.map +1 -0
  218. package/dist/server/handlers/utils.cjs +8 -2
  219. package/dist/server/handlers/utils.cjs.map +1 -0
  220. package/dist/server/handlers/utils.d.ts +8 -1
  221. package/dist/server/handlers/utils.d.ts.map +1 -0
  222. package/dist/server/handlers/utils.js +3 -1
  223. package/dist/server/handlers/utils.js.map +1 -0
  224. package/dist/server/handlers/vNextNetwork.cjs +220 -0
  225. package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
  226. package/dist/server/handlers/vNextNetwork.d.ts +246 -0
  227. package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
  228. package/dist/server/handlers/vNextNetwork.js +213 -0
  229. package/dist/server/handlers/vNextNetwork.js.map +1 -0
  230. package/dist/server/handlers/vector.cjs +9 -7
  231. package/dist/server/handlers/vector.cjs.map +1 -0
  232. package/dist/server/handlers/vector.d.ts +51 -6
  233. package/dist/server/handlers/vector.d.ts.map +1 -0
  234. package/dist/server/handlers/vector.js +3 -1
  235. package/dist/server/handlers/vector.js.map +1 -0
  236. package/dist/server/handlers/voice.cjs +10 -4
  237. package/dist/server/handlers/voice.cjs.map +1 -0
  238. package/dist/server/handlers/voice.d.ts +41 -3
  239. package/dist/server/handlers/voice.d.ts.map +1 -0
  240. package/dist/server/handlers/voice.js +3 -1
  241. package/dist/server/handlers/voice.js.map +1 -0
  242. package/dist/server/handlers/workflows.cjs +43 -13
  243. package/dist/server/handlers/workflows.cjs.map +1 -0
  244. package/dist/server/handlers/workflows.d.ts +90 -10
  245. package/dist/server/handlers/workflows.d.ts.map +1 -0
  246. package/dist/server/handlers/workflows.js +3 -1
  247. package/dist/server/handlers/workflows.js.map +1 -0
  248. package/dist/server/handlers.cjs +44 -32
  249. package/dist/server/handlers.cjs.map +1 -0
  250. package/dist/server/handlers.d.ts +14 -11
  251. package/dist/server/handlers.d.ts.map +1 -0
  252. package/dist/server/handlers.js +15 -11
  253. package/dist/server/handlers.js.map +1 -0
  254. package/dist/server/http-exception.d.ts +87 -0
  255. package/dist/server/http-exception.d.ts.map +1 -0
  256. package/dist/server/types.d.ts +10 -0
  257. package/dist/server/types.d.ts.map +1 -0
  258. package/dist/server/utils.d.ts +44 -0
  259. package/dist/server/utils.d.ts.map +1 -0
  260. package/package.json +43 -21
  261. package/dist/_tsup-dts-rollup.d.cts +0 -815
  262. package/dist/_tsup-dts-rollup.d.ts +0 -815
  263. package/dist/chunk-57CJTIPW.cjs +0 -18
  264. package/dist/chunk-64U3UDTH.cjs +0 -13
  265. package/dist/chunk-75ZPJI57.cjs +0 -9
  266. package/dist/chunk-C7564HUT.js +0 -142
  267. package/dist/chunk-D4IRYCUI.cjs +0 -235
  268. package/dist/chunk-DJJIUEL2.js +0 -211
  269. package/dist/chunk-HWZVAG3H.js +0 -49
  270. package/dist/chunk-I2B73Y4I.cjs +0 -332
  271. package/dist/chunk-M5ABIP7D.js +0 -11
  272. package/dist/chunk-MIQYDLLM.js +0 -329
  273. package/dist/chunk-MLKGABMK.js +0 -7
  274. package/dist/chunk-OGCNNUHF.cjs +0 -54
  275. package/dist/chunk-UCTEMO2Q.cjs +0 -341
  276. package/dist/chunk-VPNDC2DI.cjs +0 -148
  277. package/dist/chunk-WUC6LSTW.js +0 -227
  278. package/dist/chunk-Y7UWRW5X.cjs +0 -221
  279. package/dist/chunk-YBVOQN4M.cjs +0 -94
  280. package/dist/chunk-ZE5AAC4I.cjs +0 -138
  281. package/dist/index.d.cts +0 -1
  282. package/dist/server/handlers/a2a.d.cts +0 -6
  283. package/dist/server/handlers/agents.d.cts +0 -6
  284. package/dist/server/handlers/error.d.cts +0 -1
  285. package/dist/server/handlers/logs.d.cts +0 -3
  286. package/dist/server/handlers/memory.d.cts +0 -8
  287. package/dist/server/handlers/network.cjs +0 -22
  288. package/dist/server/handlers/network.d.cts +0 -4
  289. package/dist/server/handlers/network.d.ts +0 -4
  290. package/dist/server/handlers/network.js +0 -1
  291. package/dist/server/handlers/telemetry.d.cts +0 -2
  292. package/dist/server/handlers/tools.d.cts +0 -4
  293. package/dist/server/handlers/utils.d.cts +0 -1
  294. package/dist/server/handlers/vNextWorkflows.cjs +0 -46
  295. package/dist/server/handlers/vNextWorkflows.d.cts +0 -10
  296. package/dist/server/handlers/vNextWorkflows.d.ts +0 -10
  297. package/dist/server/handlers/vNextWorkflows.js +0 -1
  298. package/dist/server/handlers/vector.d.cts +0 -6
  299. package/dist/server/handlers/voice.d.cts +0 -3
  300. package/dist/server/handlers/workflows.d.cts +0 -10
  301. package/dist/server/handlers.d.cts +0 -11
@@ -0,0 +1,676 @@
1
+ 'use strict';
2
+
3
+ var chunkG4PUALCE_cjs = require('./chunk-G4PUALCE.cjs');
4
+ var chunkGU4EWMZB_cjs = require('./chunk-GU4EWMZB.cjs');
5
+ var chunkRE4RPXT2_cjs = require('./chunk-RE4RPXT2.cjs');
6
+ var chunk7NADHFD2_cjs = require('./chunk-7NADHFD2.cjs');
7
+ var chunkEMMSS5I5_cjs = require('./chunk-EMMSS5I5.cjs');
8
+ var llm = require('@mastra/core/llm');
9
+ var runtimeContext = require('@mastra/core/runtime-context');
10
+ var zodToJson = require('@mastra/core/utils/zod-to-json');
11
+
12
+ // src/server/handlers/agents.ts
13
+ var agents_exports = {};
14
+ chunkEMMSS5I5_cjs.__export(agents_exports, {
15
+ approveToolCallHandler: () => approveToolCallHandler,
16
+ declineToolCallHandler: () => declineToolCallHandler,
17
+ generateHandler: () => generateHandler,
18
+ generateLegacyHandler: () => generateLegacyHandler,
19
+ generateVNextHandler: () => generateVNextHandler,
20
+ getAgentByIdHandler: () => getAgentByIdHandler,
21
+ getAgentsHandler: () => getAgentsHandler,
22
+ getEvalsByAgentIdHandler: () => getEvalsByAgentIdHandler,
23
+ getLiveEvalsByAgentIdHandler: () => getLiveEvalsByAgentIdHandler,
24
+ getProvidersHandler: () => getProvidersHandler,
25
+ getSerializedAgentTools: () => getSerializedAgentTools,
26
+ reorderAgentModelListHandler: () => reorderAgentModelListHandler,
27
+ streamGenerateHandler: () => streamGenerateHandler,
28
+ streamGenerateLegacyHandler: () => streamGenerateLegacyHandler,
29
+ streamNetworkHandler: () => streamNetworkHandler,
30
+ streamVNextGenerateHandler: () => streamVNextGenerateHandler,
31
+ streamVNextUIMessageHandler: () => streamVNextUIMessageHandler,
32
+ updateAgentModelHandler: () => updateAgentModelHandler,
33
+ updateAgentModelInModelListHandler: () => updateAgentModelInModelListHandler
34
+ });
35
+ async function getSerializedAgentTools(tools) {
36
+ return Object.entries(tools || {}).reduce((acc, [key, tool]) => {
37
+ const _tool = tool;
38
+ const toolId = _tool.id ?? `tool-${key}`;
39
+ let inputSchemaForReturn = void 0;
40
+ if (_tool.inputSchema) {
41
+ if (_tool.inputSchema?.jsonSchema) {
42
+ inputSchemaForReturn = chunkGU4EWMZB_cjs.stringify(_tool.inputSchema.jsonSchema);
43
+ } else {
44
+ inputSchemaForReturn = chunkGU4EWMZB_cjs.stringify(zodToJson.zodToJsonSchema(_tool.inputSchema));
45
+ }
46
+ }
47
+ let outputSchemaForReturn = void 0;
48
+ if (_tool.outputSchema) {
49
+ if (_tool.outputSchema?.jsonSchema) {
50
+ outputSchemaForReturn = chunkGU4EWMZB_cjs.stringify(_tool.outputSchema.jsonSchema);
51
+ } else {
52
+ outputSchemaForReturn = chunkGU4EWMZB_cjs.stringify(zodToJson.zodToJsonSchema(_tool.outputSchema));
53
+ }
54
+ }
55
+ acc[key] = {
56
+ ..._tool,
57
+ id: toolId,
58
+ inputSchema: inputSchemaForReturn,
59
+ outputSchema: outputSchemaForReturn
60
+ };
61
+ return acc;
62
+ }, {});
63
+ }
64
+ async function getSerializedAgentDefinition({
65
+ agent,
66
+ runtimeContext
67
+ }) {
68
+ let serializedAgentAgents = {};
69
+ if ("listAgents" in agent) {
70
+ const agents = await agent.listAgents({ runtimeContext });
71
+ serializedAgentAgents = Object.entries(agents || {}).reduce((acc, [key, agent2]) => {
72
+ return {
73
+ ...acc,
74
+ [key]: { id: agent2.id, name: agent2.name }
75
+ };
76
+ }, {});
77
+ }
78
+ return serializedAgentAgents;
79
+ }
80
+ async function formatAgentList({
81
+ id,
82
+ mastra,
83
+ agent,
84
+ runtimeContext
85
+ }) {
86
+ const instructions = await agent.getInstructions({ runtimeContext });
87
+ const tools = await agent.getTools({ runtimeContext });
88
+ const llm = await agent.getLLM({ runtimeContext });
89
+ const defaultGenerateOptions = await agent.getDefaultGenerateOptions({ runtimeContext });
90
+ const defaultStreamOptions = await agent.getDefaultStreamOptions({ runtimeContext });
91
+ const serializedAgentTools = await getSerializedAgentTools(tools);
92
+ let serializedAgentWorkflows = {};
93
+ if ("getWorkflows" in agent) {
94
+ const logger = mastra.getLogger();
95
+ try {
96
+ const workflows = await agent.getWorkflows({ runtimeContext });
97
+ serializedAgentWorkflows = Object.entries(workflows || {}).reduce((acc, [key, workflow]) => {
98
+ return {
99
+ ...acc,
100
+ [key]: {
101
+ name: workflow.name
102
+ }
103
+ };
104
+ }, {});
105
+ } catch (error) {
106
+ logger.error("Error getting workflows for agent", { agentName: agent.name, error });
107
+ }
108
+ }
109
+ const serializedAgentAgents = await getSerializedAgentDefinition({ agent, runtimeContext });
110
+ const model = llm?.getModel();
111
+ const models = await agent.getModelList(runtimeContext);
112
+ const modelList = models?.map((md) => ({
113
+ ...md,
114
+ model: {
115
+ modelId: md.model.modelId,
116
+ provider: md.model.provider,
117
+ modelVersion: md.model.specificationVersion
118
+ }
119
+ }));
120
+ return {
121
+ id,
122
+ name: agent.name,
123
+ instructions,
124
+ agents: serializedAgentAgents,
125
+ tools: serializedAgentTools,
126
+ workflows: serializedAgentWorkflows,
127
+ provider: llm?.getProvider(),
128
+ modelId: llm?.getModelId(),
129
+ modelVersion: model?.specificationVersion,
130
+ defaultGenerateOptions,
131
+ defaultStreamOptions,
132
+ modelList
133
+ };
134
+ }
135
+ async function getAgentsHandler({ mastra, runtimeContext }) {
136
+ try {
137
+ const agents = mastra.getAgents();
138
+ const serializedAgentsMap = await Promise.all(
139
+ Object.entries(agents).map(async ([id, agent]) => {
140
+ return formatAgentList({ id, mastra, agent, runtimeContext });
141
+ })
142
+ );
143
+ const serializedAgents = serializedAgentsMap.reduce((acc, { id, ...rest }) => {
144
+ acc[id] = rest;
145
+ return acc;
146
+ }, {});
147
+ return serializedAgents;
148
+ } catch (error) {
149
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting agents");
150
+ }
151
+ }
152
+ async function formatAgent({
153
+ mastra,
154
+ agent,
155
+ runtimeContext,
156
+ isPlayground
157
+ }) {
158
+ const tools = await agent.getTools({ runtimeContext });
159
+ const serializedAgentTools = await getSerializedAgentTools(tools);
160
+ let serializedAgentWorkflows = {};
161
+ if ("getWorkflows" in agent) {
162
+ const logger = mastra.getLogger();
163
+ try {
164
+ const workflows = await agent.getWorkflows({ runtimeContext });
165
+ serializedAgentWorkflows = Object.entries(workflows || {}).reduce((acc, [key, workflow]) => {
166
+ return {
167
+ ...acc,
168
+ [key]: {
169
+ name: workflow.name,
170
+ steps: Object.entries(workflow.steps).reduce((acc2, [key2, step]) => {
171
+ return {
172
+ ...acc2,
173
+ [key2]: {
174
+ id: step.id,
175
+ description: step.description
176
+ }
177
+ };
178
+ }, {})
179
+ }
180
+ };
181
+ }, {});
182
+ } catch (error) {
183
+ logger.error("Error getting workflows for agent", { agentName: agent.name, error });
184
+ }
185
+ let proxyRuntimeContext = runtimeContext;
186
+ if (isPlayground) {
187
+ proxyRuntimeContext = new Proxy(runtimeContext, {
188
+ get(target, prop) {
189
+ if (prop === "get") {
190
+ return function(key) {
191
+ const value = target.get(key);
192
+ return value ?? `<${key}>`;
193
+ };
194
+ }
195
+ return Reflect.get(target, prop);
196
+ }
197
+ });
198
+ }
199
+ const instructions = await agent.getInstructions({ runtimeContext: proxyRuntimeContext });
200
+ const llm = await agent.getLLM({ runtimeContext });
201
+ const defaultGenerateOptions = await agent.getDefaultGenerateOptions({ runtimeContext: proxyRuntimeContext });
202
+ const defaultStreamOptions = await agent.getDefaultStreamOptions({ runtimeContext: proxyRuntimeContext });
203
+ const model = llm?.getModel();
204
+ const models = await agent.getModelList(runtimeContext);
205
+ const modelList = models?.map((md) => ({
206
+ ...md,
207
+ model: {
208
+ modelId: md.model.modelId,
209
+ provider: md.model.provider,
210
+ modelVersion: md.model.specificationVersion
211
+ }
212
+ }));
213
+ const serializedAgentAgents = await getSerializedAgentDefinition({ agent, runtimeContext: proxyRuntimeContext });
214
+ return {
215
+ name: agent.name,
216
+ instructions,
217
+ tools: serializedAgentTools,
218
+ agents: serializedAgentAgents,
219
+ workflows: serializedAgentWorkflows,
220
+ provider: llm?.getProvider(),
221
+ modelId: llm?.getModelId(),
222
+ modelVersion: model?.specificationVersion,
223
+ modelList,
224
+ defaultGenerateOptions,
225
+ defaultStreamOptions
226
+ };
227
+ }
228
+ }
229
+ async function getAgentByIdHandler({
230
+ mastra,
231
+ runtimeContext,
232
+ agentId,
233
+ isPlayground = false
234
+ }) {
235
+ try {
236
+ const agent = mastra.getAgent(agentId);
237
+ if (!agent) {
238
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
239
+ }
240
+ return formatAgent({ mastra, agent, runtimeContext, isPlayground });
241
+ } catch (error) {
242
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting agent");
243
+ }
244
+ }
245
+ async function getEvalsByAgentIdHandler({
246
+ mastra,
247
+ runtimeContext,
248
+ agentId
249
+ }) {
250
+ try {
251
+ const agent = mastra.getAgent(agentId);
252
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "test") || [];
253
+ const instructions = await agent.getInstructions({ runtimeContext });
254
+ return {
255
+ id: agentId,
256
+ name: agent.name,
257
+ instructions,
258
+ evals
259
+ };
260
+ } catch (error) {
261
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting test evals");
262
+ }
263
+ }
264
+ async function getLiveEvalsByAgentIdHandler({
265
+ mastra,
266
+ runtimeContext,
267
+ agentId
268
+ }) {
269
+ try {
270
+ const agent = mastra.getAgent(agentId);
271
+ const evals = await mastra.getStorage()?.getEvalsByAgentName?.(agent.name, "live") || [];
272
+ const instructions = await agent.getInstructions({ runtimeContext });
273
+ return {
274
+ id: agentId,
275
+ name: agent.name,
276
+ instructions,
277
+ evals
278
+ };
279
+ } catch (error) {
280
+ return chunkRE4RPXT2_cjs.handleError(error, "Error getting live evals");
281
+ }
282
+ }
283
+ function generateHandler({
284
+ mastra,
285
+ ...args
286
+ }) {
287
+ const logger = mastra.getLogger();
288
+ logger?.warn(
289
+ "Deprecation NOTICE:\nGenerate method will switch to use generateVNext implementation the week of September 30th, 2025. Please use generateLegacyHandler if you don't want to upgrade just yet."
290
+ );
291
+ return generateLegacyHandler({ mastra, ...args });
292
+ }
293
+ async function generateLegacyHandler({
294
+ mastra,
295
+ runtimeContext: runtimeContext$1,
296
+ agentId,
297
+ body,
298
+ abortSignal
299
+ }) {
300
+ try {
301
+ const agent = mastra.getAgent(agentId);
302
+ if (!agent) {
303
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
304
+ }
305
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
306
+ const { messages, resourceId, resourceid, runtimeContext: agentRuntimeContext, ...rest } = body;
307
+ const finalResourceId = resourceId ?? resourceid;
308
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
309
+ ...Array.from(runtimeContext$1.entries()),
310
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
311
+ ]);
312
+ chunkG4PUALCE_cjs.validateBody({ messages });
313
+ const result = await agent.generate(messages, {
314
+ ...rest,
315
+ abortSignal,
316
+ // @ts-expect-error TODO fix types
317
+ resourceId: finalResourceId,
318
+ runtimeContext: finalRuntimeContext
319
+ });
320
+ return result;
321
+ } catch (error) {
322
+ return chunkRE4RPXT2_cjs.handleError(error, "Error generating from agent");
323
+ }
324
+ }
325
+ async function generateVNextHandler({
326
+ mastra,
327
+ runtimeContext: runtimeContext$1,
328
+ agentId,
329
+ body,
330
+ abortSignal
331
+ }) {
332
+ try {
333
+ const agent = mastra.getAgent(agentId);
334
+ if (!agent) {
335
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
336
+ }
337
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
338
+ const { messages, runtimeContext: agentRuntimeContext, ...rest } = body;
339
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
340
+ ...Array.from(runtimeContext$1.entries()),
341
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
342
+ ]);
343
+ chunkG4PUALCE_cjs.validateBody({ messages });
344
+ const result = await agent.generateVNext(messages, {
345
+ ...rest,
346
+ runtimeContext: finalRuntimeContext,
347
+ format: rest.format || "mastra",
348
+ abortSignal
349
+ });
350
+ return result;
351
+ } catch (error) {
352
+ return chunkRE4RPXT2_cjs.handleError(error, "Error generating from agent");
353
+ }
354
+ }
355
+ async function streamGenerateHandler({
356
+ mastra,
357
+ ...args
358
+ }) {
359
+ const logger = mastra.getLogger();
360
+ logger?.warn(
361
+ "Deprecation NOTICE:\n Stream method will switch to use streamVNext implementation the week of September 30th, 2025. Please use streamGenerateLegacyHandler if you don't want to upgrade just yet."
362
+ );
363
+ return streamGenerateLegacyHandler({ mastra, ...args });
364
+ }
365
+ async function streamGenerateLegacyHandler({
366
+ mastra,
367
+ runtimeContext: runtimeContext$1,
368
+ agentId,
369
+ body,
370
+ abortSignal
371
+ }) {
372
+ try {
373
+ const agent = mastra.getAgent(agentId);
374
+ if (!agent) {
375
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
376
+ }
377
+ const { messages, resourceId, resourceid, runtimeContext: agentRuntimeContext, ...rest } = body;
378
+ const finalResourceId = resourceId ?? resourceid;
379
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
380
+ ...Array.from(runtimeContext$1.entries()),
381
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
382
+ ]);
383
+ chunkG4PUALCE_cjs.validateBody({ messages });
384
+ const streamResult = await agent.stream(messages, {
385
+ ...rest,
386
+ abortSignal,
387
+ // @ts-expect-error TODO fix types
388
+ resourceId: finalResourceId,
389
+ runtimeContext: finalRuntimeContext
390
+ });
391
+ const streamResponse = rest.output ? streamResult.toTextStreamResponse({
392
+ headers: {
393
+ "Transfer-Encoding": "chunked"
394
+ }
395
+ }) : streamResult.toDataStreamResponse({
396
+ sendUsage: true,
397
+ sendReasoning: true,
398
+ getErrorMessage: (error) => {
399
+ return `An error occurred while processing your request. ${error instanceof Error ? error.message : JSON.stringify(error)}`;
400
+ },
401
+ headers: {
402
+ "Transfer-Encoding": "chunked"
403
+ }
404
+ });
405
+ return streamResponse;
406
+ } catch (error) {
407
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent response");
408
+ }
409
+ }
410
+ function streamVNextGenerateHandler({
411
+ mastra,
412
+ runtimeContext: runtimeContext$1,
413
+ agentId,
414
+ body,
415
+ abortSignal
416
+ }) {
417
+ try {
418
+ const agent = mastra.getAgent(agentId);
419
+ if (!agent) {
420
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
421
+ }
422
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
423
+ const { messages, runtimeContext: agentRuntimeContext, ...rest } = body;
424
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
425
+ ...Array.from(runtimeContext$1.entries()),
426
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
427
+ ]);
428
+ chunkG4PUALCE_cjs.validateBody({ messages });
429
+ const streamResult = agent.streamVNext(messages, {
430
+ ...rest,
431
+ runtimeContext: finalRuntimeContext,
432
+ abortSignal,
433
+ format: body.format ?? "mastra"
434
+ });
435
+ return streamResult;
436
+ } catch (error) {
437
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent response");
438
+ }
439
+ }
440
+ function approveToolCallHandler({
441
+ mastra,
442
+ runtimeContext: runtimeContext$1,
443
+ agentId,
444
+ body,
445
+ abortSignal
446
+ }) {
447
+ try {
448
+ const agent = mastra.getAgent(agentId);
449
+ if (!agent) {
450
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
451
+ }
452
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
453
+ const { runId, runtimeContext: agentRuntimeContext, ...rest } = body;
454
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
455
+ ...Array.from(runtimeContext$1.entries()),
456
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
457
+ ]);
458
+ const streamResult = agent.approveToolCall({
459
+ ...rest,
460
+ runId,
461
+ runtimeContext: finalRuntimeContext,
462
+ abortSignal,
463
+ format: body.format ?? "mastra"
464
+ });
465
+ return streamResult;
466
+ } catch (error) {
467
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent response");
468
+ }
469
+ }
470
+ function declineToolCallHandler({
471
+ mastra,
472
+ runtimeContext: runtimeContext$1,
473
+ agentId,
474
+ body,
475
+ abortSignal
476
+ }) {
477
+ try {
478
+ const agent = mastra.getAgent(agentId);
479
+ if (!agent) {
480
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
481
+ }
482
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
483
+ const { runId, runtimeContext: agentRuntimeContext, ...rest } = body;
484
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
485
+ ...Array.from(runtimeContext$1.entries()),
486
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
487
+ ]);
488
+ const streamResult = agent.declineToolCall({
489
+ ...rest,
490
+ runId,
491
+ runtimeContext: finalRuntimeContext,
492
+ abortSignal,
493
+ format: body.format ?? "mastra"
494
+ });
495
+ return streamResult;
496
+ } catch (error) {
497
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent response");
498
+ }
499
+ }
500
+ function streamNetworkHandler({
501
+ mastra,
502
+ runtimeContext: runtimeContext$1,
503
+ agentId,
504
+ body
505
+ // abortSignal,
506
+ }) {
507
+ try {
508
+ const agent = mastra.getAgent(agentId);
509
+ if (!agent) {
510
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
511
+ }
512
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
513
+ const { messages, runtimeContext: agentRuntimeContext, ...rest } = body;
514
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
515
+ ...Array.from(runtimeContext$1.entries()),
516
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
517
+ ]);
518
+ chunkG4PUALCE_cjs.validateBody({ messages });
519
+ const streamResult = agent.network(messages, {
520
+ ...rest,
521
+ memory: {
522
+ thread: rest.thread ?? "",
523
+ resource: rest.resourceId ?? ""
524
+ },
525
+ runtimeContext: finalRuntimeContext
526
+ });
527
+ return streamResult;
528
+ } catch (error) {
529
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent loop response");
530
+ }
531
+ }
532
+ async function streamVNextUIMessageHandler({
533
+ mastra,
534
+ runtimeContext: runtimeContext$1,
535
+ agentId,
536
+ body,
537
+ abortSignal
538
+ }) {
539
+ try {
540
+ const agent = mastra.getAgent(agentId);
541
+ if (!agent) {
542
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
543
+ }
544
+ chunkG4PUALCE_cjs.sanitizeBody(body, ["tools"]);
545
+ const { messages, runtimeContext: agentRuntimeContext, ...rest } = body;
546
+ const finalRuntimeContext = new runtimeContext.RuntimeContext([
547
+ ...Array.from(runtimeContext$1.entries()),
548
+ ...Array.from(Object.entries(agentRuntimeContext ?? {}))
549
+ ]);
550
+ chunkG4PUALCE_cjs.validateBody({ messages });
551
+ const streamResult = await agent.streamVNext(messages, {
552
+ ...rest,
553
+ runtimeContext: finalRuntimeContext,
554
+ abortSignal,
555
+ format: "aisdk"
556
+ });
557
+ return streamResult.toUIMessageStreamResponse();
558
+ } catch (error) {
559
+ return chunkRE4RPXT2_cjs.handleError(error, "error streaming agent response");
560
+ }
561
+ }
562
+ async function updateAgentModelHandler({
563
+ mastra,
564
+ agentId,
565
+ body
566
+ }) {
567
+ try {
568
+ const agent = mastra.getAgent(agentId);
569
+ if (!agent) {
570
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
571
+ }
572
+ const { modelId, provider } = body;
573
+ const newModel = `${provider}/${modelId}`;
574
+ agent.__updateModel({ model: newModel });
575
+ return { message: "Agent model updated" };
576
+ } catch (error) {
577
+ return chunkRE4RPXT2_cjs.handleError(error, "error updating agent model");
578
+ }
579
+ }
580
+ async function reorderAgentModelListHandler({
581
+ mastra,
582
+ agentId,
583
+ body
584
+ }) {
585
+ try {
586
+ const agent = mastra.getAgent(agentId);
587
+ if (!agent) {
588
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
589
+ }
590
+ const modelList = await agent.getModelList();
591
+ if (!modelList || modelList.length === 0) {
592
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Agent model list is not found or empty" });
593
+ }
594
+ agent.reorderModels(body.reorderedModelIds);
595
+ return { message: "Model list reordered" };
596
+ } catch (error) {
597
+ return chunkRE4RPXT2_cjs.handleError(error, "error reordering model list");
598
+ }
599
+ }
600
+ async function updateAgentModelInModelListHandler({
601
+ mastra,
602
+ agentId,
603
+ modelConfigId,
604
+ body
605
+ }) {
606
+ try {
607
+ const agent = mastra.getAgent(agentId);
608
+ if (!agent) {
609
+ throw new chunk7NADHFD2_cjs.HTTPException(404, { message: "Agent not found" });
610
+ }
611
+ const { model: bodyModel, maxRetries, enabled } = body;
612
+ if (!modelConfigId) {
613
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Model id is required" });
614
+ }
615
+ const modelList = await agent.getModelList();
616
+ if (!modelList || modelList.length === 0) {
617
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Agent model list is not found or empty" });
618
+ }
619
+ const modelToUpdate = modelList.find((m) => m.id === modelConfigId);
620
+ if (!modelToUpdate) {
621
+ throw new chunk7NADHFD2_cjs.HTTPException(400, { message: "Model to update is not found in agent model list" });
622
+ }
623
+ let model;
624
+ if (bodyModel) {
625
+ const { modelId, provider } = bodyModel;
626
+ model = `${provider}/${modelId}`;
627
+ }
628
+ agent.updateModelInModelList({ id: modelConfigId, model, maxRetries, enabled });
629
+ return { message: "Model list updated" };
630
+ } catch (error) {
631
+ return chunkRE4RPXT2_cjs.handleError(error, "error updating model list");
632
+ }
633
+ }
634
+ async function getProvidersHandler() {
635
+ try {
636
+ const providers = Object.entries(llm.PROVIDER_REGISTRY).map(([id, provider]) => {
637
+ const envVars = Array.isArray(provider.apiKeyEnvVar) ? provider.apiKeyEnvVar : [provider.apiKeyEnvVar];
638
+ const connected = envVars.every((envVar) => !!process.env[envVar]);
639
+ return {
640
+ id,
641
+ name: provider.name,
642
+ envVar: provider.apiKeyEnvVar,
643
+ connected,
644
+ docUrl: provider.docUrl,
645
+ models: [...provider.models]
646
+ // Convert readonly array to regular array
647
+ };
648
+ });
649
+ return { providers };
650
+ } catch (error) {
651
+ return chunkRE4RPXT2_cjs.handleError(error, "error fetching providers");
652
+ }
653
+ }
654
+
655
+ exports.agents_exports = agents_exports;
656
+ exports.approveToolCallHandler = approveToolCallHandler;
657
+ exports.declineToolCallHandler = declineToolCallHandler;
658
+ exports.generateHandler = generateHandler;
659
+ exports.generateLegacyHandler = generateLegacyHandler;
660
+ exports.generateVNextHandler = generateVNextHandler;
661
+ exports.getAgentByIdHandler = getAgentByIdHandler;
662
+ exports.getAgentsHandler = getAgentsHandler;
663
+ exports.getEvalsByAgentIdHandler = getEvalsByAgentIdHandler;
664
+ exports.getLiveEvalsByAgentIdHandler = getLiveEvalsByAgentIdHandler;
665
+ exports.getProvidersHandler = getProvidersHandler;
666
+ exports.getSerializedAgentTools = getSerializedAgentTools;
667
+ exports.reorderAgentModelListHandler = reorderAgentModelListHandler;
668
+ exports.streamGenerateHandler = streamGenerateHandler;
669
+ exports.streamGenerateLegacyHandler = streamGenerateLegacyHandler;
670
+ exports.streamNetworkHandler = streamNetworkHandler;
671
+ exports.streamVNextGenerateHandler = streamVNextGenerateHandler;
672
+ exports.streamVNextUIMessageHandler = streamVNextUIMessageHandler;
673
+ exports.updateAgentModelHandler = updateAgentModelHandler;
674
+ exports.updateAgentModelInModelListHandler = updateAgentModelInModelListHandler;
675
+ //# sourceMappingURL=chunk-BX5XPVO2.cjs.map
676
+ //# sourceMappingURL=chunk-BX5XPVO2.cjs.map