@juspay/neurolink 11.13.0 → 11.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1906) hide show
  1. package/CHANGELOG.md +2 -6
  2. package/dist/browser/neurolink.min.js +681 -842
  3. package/dist/cli/commands/agent.js +2 -2
  4. package/dist/cli/commands/auth.d.ts +1 -1
  5. package/dist/cli/commands/auth.js +11 -11
  6. package/dist/cli/commands/authProviders.d.ts +1 -1
  7. package/dist/cli/commands/authProviders.js +2 -2
  8. package/dist/cli/commands/autoresearch.js +5 -5
  9. package/dist/cli/commands/config.d.ts +1 -1
  10. package/dist/cli/commands/config.js +4 -4
  11. package/dist/cli/commands/docs.d.ts +1 -1
  12. package/dist/cli/commands/evaluate.d.ts +1 -1
  13. package/dist/cli/commands/evaluate.js +4 -4
  14. package/dist/cli/commands/mcp.js +14 -14
  15. package/dist/cli/commands/models.js +3 -3
  16. package/dist/cli/commands/observability.d.ts +1 -1
  17. package/dist/cli/commands/observability.js +3 -3
  18. package/dist/cli/commands/ollama.js +1 -1
  19. package/dist/cli/commands/proxy.d.ts +2 -2
  20. package/dist/cli/commands/proxy.js +45 -45
  21. package/dist/cli/commands/proxyAnalyze.d.ts +1 -1
  22. package/dist/cli/commands/proxyAnalyze.js +2 -2
  23. package/dist/cli/commands/proxyReplay.d.ts +1 -1
  24. package/dist/cli/commands/proxyReplay.js +2 -2
  25. package/dist/cli/commands/rag.js +10 -10
  26. package/dist/cli/commands/serve.js +7 -7
  27. package/dist/cli/commands/server.js +6 -6
  28. package/dist/cli/commands/setup-anthropic.d.ts +1 -1
  29. package/dist/cli/commands/setup-anthropic.js +3 -3
  30. package/dist/cli/commands/setup-azure.d.ts +1 -1
  31. package/dist/cli/commands/setup-azure.js +3 -3
  32. package/dist/cli/commands/setup-bedrock.d.ts +1 -1
  33. package/dist/cli/commands/setup-bedrock.js +3 -3
  34. package/dist/cli/commands/setup-gcp.d.ts +1 -1
  35. package/dist/cli/commands/setup-gcp.js +1 -1
  36. package/dist/cli/commands/setup-google-ai.d.ts +1 -1
  37. package/dist/cli/commands/setup-google-ai.js +4 -4
  38. package/dist/cli/commands/setup-huggingface.d.ts +1 -1
  39. package/dist/cli/commands/setup-huggingface.js +1 -1
  40. package/dist/cli/commands/setup-mistral.d.ts +1 -1
  41. package/dist/cli/commands/setup-mistral.js +3 -3
  42. package/dist/cli/commands/setup-openai.d.ts +1 -1
  43. package/dist/cli/commands/setup-openai.js +3 -3
  44. package/dist/cli/commands/setup.d.ts +1 -1
  45. package/dist/cli/commands/setup.js +4 -4
  46. package/dist/cli/commands/task.js +4 -4
  47. package/dist/cli/commands/telemetry.d.ts +1 -1
  48. package/dist/cli/commands/telemetry.js +4 -4
  49. package/dist/cli/commands/voiceServer.d.ts +1 -1
  50. package/dist/cli/commands/voiceServer.js +6 -2
  51. package/dist/cli/commands/workflow.js +5 -5
  52. package/dist/cli/errorHandler.js +3 -3
  53. package/dist/cli/factories/commandFactory.js +13 -13
  54. package/dist/cli/factories/ollamaCommandFactory.js +3 -3
  55. package/dist/cli/factories/sagemakerCommandFactory.js +5 -5
  56. package/dist/cli/index.js +1 -1
  57. package/dist/cli/loop/conversationSelector.d.ts +1 -1
  58. package/dist/cli/loop/conversationSelector.js +3 -3
  59. package/dist/cli/loop/optionsSchema.d.ts +1 -1
  60. package/dist/cli/loop/optionsSchema.js +1 -1
  61. package/dist/cli/loop/session.d.ts +1 -1
  62. package/dist/cli/loop/session.js +6 -6
  63. package/dist/cli/parser.js +10 -2
  64. package/dist/cli/proxy-clients/claudeCode.d.ts +1 -1
  65. package/dist/cli/proxy-clients/claudeCode.js +1 -1
  66. package/dist/cli/proxy-clients/codex.d.ts +1 -1
  67. package/dist/cli/proxy-clients/codex.js +1 -1
  68. package/dist/cli/proxy-clients/copilot.d.ts +1 -1
  69. package/dist/cli/proxy-clients/copilot.js +1 -1
  70. package/dist/cli/proxy-clients/openCode.d.ts +1 -1
  71. package/dist/cli/proxy-clients/openCode.js +1 -1
  72. package/dist/cli/proxy-clients/qwenCode.d.ts +1 -1
  73. package/dist/cli/proxy-clients/qwenCode.js +1 -1
  74. package/dist/cli/proxy-clients/registry.d.ts +1 -1
  75. package/dist/cli/proxy-clients/registry.js +1 -1
  76. package/dist/cli/utils/audioFileUtils.d.ts +1 -1
  77. package/dist/cli/utils/audioPlayer.d.ts +1 -1
  78. package/dist/cli/utils/classifierRouterFlags.d.ts +1 -1
  79. package/dist/cli/utils/classifierRouterFlags.js +1 -1
  80. package/dist/cli/utils/completeSetup.d.ts +1 -1
  81. package/dist/cli/utils/completeSetup.js +1 -1
  82. package/dist/cli/utils/envManager.d.ts +1 -1
  83. package/dist/cli/utils/envManager.js +1 -1
  84. package/dist/cli/utils/inputValidation.js +2 -2
  85. package/dist/cli/utils/interactiveSetup.d.ts +2 -2
  86. package/dist/cli/utils/interactiveSetup.js +3 -3
  87. package/dist/cli/utils/ollamaUtils.d.ts +1 -1
  88. package/dist/cli/utils/ollamaUtils.js +1 -1
  89. package/dist/cli/utils/skillsFlags.d.ts +1 -1
  90. package/dist/cli/utils/toolRoutingFlags.d.ts +1 -1
  91. package/dist/cli/utils/toolRoutingFlags.js +1 -1
  92. package/dist/cli/utils/videoFileUtils.d.ts +1 -1
  93. package/dist/processors/data/XmlProcessor.d.ts +14 -0
  94. package/dist/processors/data/XmlProcessor.js +14 -0
  95. package/dist/processors/document/PptxProcessor.d.ts +9 -0
  96. package/dist/processors/document/PptxProcessor.js +9 -0
  97. package/dist/processors/media/VideoProcessor.js +30 -2
  98. package/dist/providers/amazonBedrock/client.js +1 -2
  99. package/dist/providers/googleVertex/index.d.ts +0 -1
  100. package/dist/providers/googleVertex/index.js +0 -1
  101. package/dist/rag/document/loaders.js +49 -21
  102. package/dist/server/abstract/baseServerAdapter.d.ts +13 -0
  103. package/dist/server/abstract/baseServerAdapter.js +39 -1
  104. package/dist/server/adapters/expressAdapter.js +15 -5
  105. package/dist/server/adapters/fastifyAdapter.js +15 -5
  106. package/dist/server/adapters/koaAdapter.js +16 -6
  107. package/dist/types/generate.d.ts +7 -0
  108. package/dist/types/stream.d.ts +1 -1
  109. package/docs-site/mcp-server/search.js +20 -12
  110. package/docs-site/mcp-server/types.d.ts +12 -5
  111. package/docs-site/static/search-index.json +1 -0
  112. package/package.json +16 -16
  113. package/dist/lib/action/actionExecutor.d.ts +0 -29
  114. package/dist/lib/action/actionExecutor.js +0 -291
  115. package/dist/lib/action/actionInputs.d.ts +0 -25
  116. package/dist/lib/action/actionInputs.js +0 -294
  117. package/dist/lib/action/githubIntegration.d.ts +0 -21
  118. package/dist/lib/action/githubIntegration.js +0 -188
  119. package/dist/lib/action/index.d.ts +0 -7
  120. package/dist/lib/action/index.js +0 -13
  121. package/dist/lib/adapters/audioFormatSupport.d.ts +0 -53
  122. package/dist/lib/adapters/audioFormatSupport.js +0 -201
  123. package/dist/lib/adapters/imageFormatSupport.d.ts +0 -75
  124. package/dist/lib/adapters/imageFormatSupport.js +0 -284
  125. package/dist/lib/adapters/providerImageAdapter.d.ts +0 -51
  126. package/dist/lib/adapters/providerImageAdapter.js +0 -704
  127. package/dist/lib/adapters/replicate/auth.d.ts +0 -19
  128. package/dist/lib/adapters/replicate/auth.js +0 -33
  129. package/dist/lib/adapters/replicate/predictionLifecycle.d.ts +0 -46
  130. package/dist/lib/adapters/replicate/predictionLifecycle.js +0 -289
  131. package/dist/lib/adapters/tts/cartesiaHandler.d.ts +0 -12
  132. package/dist/lib/adapters/tts/cartesiaHandler.js +0 -131
  133. package/dist/lib/adapters/tts/googleTTSHandler.d.ts +0 -97
  134. package/dist/lib/adapters/tts/googleTTSHandler.js +0 -353
  135. package/dist/lib/adapters/video/directorPipeline.d.ts +0 -31
  136. package/dist/lib/adapters/video/directorPipeline.js +0 -523
  137. package/dist/lib/adapters/video/ffmpegAdapter.d.ts +0 -84
  138. package/dist/lib/adapters/video/ffmpegAdapter.js +0 -207
  139. package/dist/lib/adapters/video/frameExtractor.d.ts +0 -28
  140. package/dist/lib/adapters/video/frameExtractor.js +0 -144
  141. package/dist/lib/adapters/video/klingVideoHandler.d.ts +0 -37
  142. package/dist/lib/adapters/video/klingVideoHandler.js +0 -306
  143. package/dist/lib/adapters/video/replicateVideoHandler.d.ts +0 -29
  144. package/dist/lib/adapters/video/replicateVideoHandler.js +0 -168
  145. package/dist/lib/adapters/video/runwayVideoHandler.d.ts +0 -32
  146. package/dist/lib/adapters/video/runwayVideoHandler.js +0 -317
  147. package/dist/lib/adapters/video/vertexVideoHandler.d.ts +0 -119
  148. package/dist/lib/adapters/video/vertexVideoHandler.js +0 -804
  149. package/dist/lib/adapters/video/videoAnalyzer.d.ts +0 -26
  150. package/dist/lib/adapters/video/videoAnalyzer.js +0 -239
  151. package/dist/lib/adapters/video/videoMerger.d.ts +0 -22
  152. package/dist/lib/adapters/video/videoMerger.js +0 -172
  153. package/dist/lib/agent/agent.d.ts +0 -104
  154. package/dist/lib/agent/agent.js +0 -433
  155. package/dist/lib/agent/agentNetwork.d.ts +0 -87
  156. package/dist/lib/agent/agentNetwork.js +0 -501
  157. package/dist/lib/agent/agentToolRegistrar.d.ts +0 -48
  158. package/dist/lib/agent/agentToolRegistrar.js +0 -337
  159. package/dist/lib/agent/communication/index.d.ts +0 -9
  160. package/dist/lib/agent/communication/index.js +0 -10
  161. package/dist/lib/agent/communication/message-bus.d.ts +0 -113
  162. package/dist/lib/agent/communication/message-bus.js +0 -407
  163. package/dist/lib/agent/coordination/coordinator.d.ts +0 -83
  164. package/dist/lib/agent/coordination/coordinator.js +0 -599
  165. package/dist/lib/agent/coordination/index.d.ts +0 -10
  166. package/dist/lib/agent/coordination/index.js +0 -11
  167. package/dist/lib/agent/coordination/task-distributor.d.ts +0 -113
  168. package/dist/lib/agent/coordination/task-distributor.js +0 -586
  169. package/dist/lib/agent/directTools.d.ts +0 -306
  170. package/dist/lib/agent/directTools.js +0 -907
  171. package/dist/lib/agent/index.d.ts +0 -41
  172. package/dist/lib/agent/index.js +0 -49
  173. package/dist/lib/agent/isolatedAgentRunner.d.ts +0 -73
  174. package/dist/lib/agent/isolatedAgentRunner.js +0 -947
  175. package/dist/lib/agent/orchestration/index.d.ts +0 -10
  176. package/dist/lib/agent/orchestration/index.js +0 -11
  177. package/dist/lib/agent/orchestration/orchestrator.d.ts +0 -114
  178. package/dist/lib/agent/orchestration/orchestrator.js +0 -479
  179. package/dist/lib/agent/orchestration/topology.d.ts +0 -164
  180. package/dist/lib/agent/orchestration/topology.js +0 -521
  181. package/dist/lib/agent/prompts/routingPrompts.d.ts +0 -63
  182. package/dist/lib/agent/prompts/routingPrompts.js +0 -202
  183. package/dist/lib/agent/structuredRecovery.d.ts +0 -30
  184. package/dist/lib/agent/structuredRecovery.js +0 -105
  185. package/dist/lib/analytics/index.d.ts +0 -7
  186. package/dist/lib/analytics/index.js +0 -8
  187. package/dist/lib/analytics/parseQualityScore.d.ts +0 -9
  188. package/dist/lib/analytics/parseQualityScore.js +0 -30
  189. package/dist/lib/analytics/pricing.d.ts +0 -27
  190. package/dist/lib/analytics/pricing.js +0 -42
  191. package/dist/lib/analytics/service.d.ts +0 -36
  192. package/dist/lib/analytics/service.js +0 -394
  193. package/dist/lib/analytics/storage.d.ts +0 -19
  194. package/dist/lib/analytics/storage.js +0 -33
  195. package/dist/lib/artifacts/artifactStore.d.ts +0 -55
  196. package/dist/lib/artifacts/artifactStore.js +0 -145
  197. package/dist/lib/auth/AuthProviderFactory.d.ts +0 -69
  198. package/dist/lib/auth/AuthProviderFactory.js +0 -112
  199. package/dist/lib/auth/AuthProviderRegistry.d.ts +0 -33
  200. package/dist/lib/auth/AuthProviderRegistry.js +0 -191
  201. package/dist/lib/auth/RequestContext.d.ts +0 -23
  202. package/dist/lib/auth/RequestContext.js +0 -79
  203. package/dist/lib/auth/accountPool.d.ts +0 -68
  204. package/dist/lib/auth/accountPool.js +0 -179
  205. package/dist/lib/auth/anthropicOAuth.d.ts +0 -400
  206. package/dist/lib/auth/anthropicOAuth.js +0 -1143
  207. package/dist/lib/auth/authContext.d.ts +0 -198
  208. package/dist/lib/auth/authContext.js +0 -315
  209. package/dist/lib/auth/codexOAuth.d.ts +0 -67
  210. package/dist/lib/auth/codexOAuth.js +0 -203
  211. package/dist/lib/auth/errors.d.ts +0 -63
  212. package/dist/lib/auth/errors.js +0 -40
  213. package/dist/lib/auth/index.d.ts +0 -41
  214. package/dist/lib/auth/index.js +0 -86
  215. package/dist/lib/auth/middleware/AuthMiddleware.d.ts +0 -127
  216. package/dist/lib/auth/middleware/AuthMiddleware.js +0 -523
  217. package/dist/lib/auth/middleware/rateLimitByUser.d.ts +0 -193
  218. package/dist/lib/auth/middleware/rateLimitByUser.js +0 -559
  219. package/dist/lib/auth/providers/BaseAuthProvider.d.ts +0 -259
  220. package/dist/lib/auth/providers/BaseAuthProvider.js +0 -724
  221. package/dist/lib/auth/providers/CognitoProvider.d.ts +0 -61
  222. package/dist/lib/auth/providers/CognitoProvider.js +0 -308
  223. package/dist/lib/auth/providers/KeycloakProvider.d.ts +0 -61
  224. package/dist/lib/auth/providers/KeycloakProvider.js +0 -396
  225. package/dist/lib/auth/providers/auth0.d.ts +0 -59
  226. package/dist/lib/auth/providers/auth0.js +0 -275
  227. package/dist/lib/auth/providers/betterAuth.d.ts +0 -51
  228. package/dist/lib/auth/providers/betterAuth.js +0 -183
  229. package/dist/lib/auth/providers/clerk.d.ts +0 -65
  230. package/dist/lib/auth/providers/clerk.js +0 -318
  231. package/dist/lib/auth/providers/custom.d.ts +0 -64
  232. package/dist/lib/auth/providers/custom.js +0 -113
  233. package/dist/lib/auth/providers/firebase.d.ts +0 -63
  234. package/dist/lib/auth/providers/firebase.js +0 -231
  235. package/dist/lib/auth/providers/jwt.d.ts +0 -68
  236. package/dist/lib/auth/providers/jwt.js +0 -217
  237. package/dist/lib/auth/providers/oauth2.d.ts +0 -73
  238. package/dist/lib/auth/providers/oauth2.js +0 -304
  239. package/dist/lib/auth/providers/supabase.d.ts +0 -63
  240. package/dist/lib/auth/providers/supabase.js +0 -260
  241. package/dist/lib/auth/providers/workos.d.ts +0 -61
  242. package/dist/lib/auth/providers/workos.js +0 -289
  243. package/dist/lib/auth/serverBridge.d.ts +0 -14
  244. package/dist/lib/auth/serverBridge.js +0 -26
  245. package/dist/lib/auth/sessionManager.d.ts +0 -118
  246. package/dist/lib/auth/sessionManager.js +0 -511
  247. package/dist/lib/auth/tokenStore.d.ts +0 -283
  248. package/dist/lib/auth/tokenStore.js +0 -929
  249. package/dist/lib/autoresearch/config.d.ts +0 -11
  250. package/dist/lib/autoresearch/config.js +0 -109
  251. package/dist/lib/autoresearch/errors.d.ts +0 -40
  252. package/dist/lib/autoresearch/errors.js +0 -21
  253. package/dist/lib/autoresearch/index.d.ts +0 -23
  254. package/dist/lib/autoresearch/index.js +0 -35
  255. package/dist/lib/autoresearch/phasePolicy.d.ts +0 -9
  256. package/dist/lib/autoresearch/phasePolicy.js +0 -70
  257. package/dist/lib/autoresearch/promptCompiler.d.ts +0 -15
  258. package/dist/lib/autoresearch/promptCompiler.js +0 -121
  259. package/dist/lib/autoresearch/repoPolicy.d.ts +0 -32
  260. package/dist/lib/autoresearch/repoPolicy.js +0 -129
  261. package/dist/lib/autoresearch/resultRecorder.d.ts +0 -20
  262. package/dist/lib/autoresearch/resultRecorder.js +0 -131
  263. package/dist/lib/autoresearch/runner.d.ts +0 -10
  264. package/dist/lib/autoresearch/runner.js +0 -109
  265. package/dist/lib/autoresearch/stateStore.d.ts +0 -12
  266. package/dist/lib/autoresearch/stateStore.js +0 -164
  267. package/dist/lib/autoresearch/summaryParser.d.ts +0 -16
  268. package/dist/lib/autoresearch/summaryParser.js +0 -95
  269. package/dist/lib/autoresearch/tools.d.ts +0 -27
  270. package/dist/lib/autoresearch/tools.js +0 -618
  271. package/dist/lib/autoresearch/worker.d.ts +0 -71
  272. package/dist/lib/autoresearch/worker.js +0 -418
  273. package/dist/lib/avatar/index.d.ts +0 -26
  274. package/dist/lib/avatar/index.js +0 -86
  275. package/dist/lib/avatar/providers/DIDAvatar.d.ts +0 -49
  276. package/dist/lib/avatar/providers/DIDAvatar.js +0 -502
  277. package/dist/lib/avatar/providers/HeyGenAvatar.d.ts +0 -30
  278. package/dist/lib/avatar/providers/HeyGenAvatar.js +0 -338
  279. package/dist/lib/avatar/providers/ReplicateAvatar.d.ts +0 -36
  280. package/dist/lib/avatar/providers/ReplicateAvatar.js +0 -268
  281. package/dist/lib/client/aiSdkAdapter.d.ts +0 -196
  282. package/dist/lib/client/aiSdkAdapter.js +0 -498
  283. package/dist/lib/client/auth.d.ts +0 -248
  284. package/dist/lib/client/auth.js +0 -469
  285. package/dist/lib/client/errors.d.ts +0 -298
  286. package/dist/lib/client/errors.js +0 -553
  287. package/dist/lib/client/httpClient.d.ts +0 -296
  288. package/dist/lib/client/httpClient.js +0 -851
  289. package/dist/lib/client/index.d.ts +0 -103
  290. package/dist/lib/client/index.js +0 -174
  291. package/dist/lib/client/interceptors.d.ts +0 -207
  292. package/dist/lib/client/interceptors.js +0 -620
  293. package/dist/lib/client/reactHooks.d.ts +0 -238
  294. package/dist/lib/client/reactHooks.js +0 -1168
  295. package/dist/lib/client/sseClient.d.ts +0 -115
  296. package/dist/lib/client/sseClient.js +0 -575
  297. package/dist/lib/client/streamingClient.d.ts +0 -255
  298. package/dist/lib/client/streamingClient.js +0 -963
  299. package/dist/lib/client/wsClient.d.ts +0 -127
  300. package/dist/lib/client/wsClient.js +0 -450
  301. package/dist/lib/config/configManager.d.ts +0 -60
  302. package/dist/lib/config/configManager.js +0 -304
  303. package/dist/lib/config/conversationMemory.d.ts +0 -51
  304. package/dist/lib/config/conversationMemory.js +0 -87
  305. package/dist/lib/config/modelSpecificPrompts.d.ts +0 -9
  306. package/dist/lib/config/modelSpecificPrompts.js +0 -39
  307. package/dist/lib/config/taskClassificationConfig.d.ts +0 -51
  308. package/dist/lib/config/taskClassificationConfig.js +0 -149
  309. package/dist/lib/constants/contextWindows.d.ts +0 -89
  310. package/dist/lib/constants/contextWindows.js +0 -568
  311. package/dist/lib/constants/enums.d.ts +0 -979
  312. package/dist/lib/constants/enums.js +0 -1247
  313. package/dist/lib/constants/index.d.ts +0 -184
  314. package/dist/lib/constants/index.js +0 -209
  315. package/dist/lib/constants/networkErrorCodes.d.ts +0 -14
  316. package/dist/lib/constants/networkErrorCodes.js +0 -22
  317. package/dist/lib/constants/performance.d.ts +0 -366
  318. package/dist/lib/constants/performance.js +0 -390
  319. package/dist/lib/constants/retry.d.ts +0 -224
  320. package/dist/lib/constants/retry.js +0 -267
  321. package/dist/lib/constants/timeouts.d.ts +0 -225
  322. package/dist/lib/constants/timeouts.js +0 -183
  323. package/dist/lib/constants/tokens.d.ts +0 -294
  324. package/dist/lib/constants/tokens.js +0 -381
  325. package/dist/lib/constants/videoErrors.d.ts +0 -49
  326. package/dist/lib/constants/videoErrors.js +0 -51
  327. package/dist/lib/context/anthropicLoopGuard.d.ts +0 -47
  328. package/dist/lib/context/anthropicLoopGuard.js +0 -186
  329. package/dist/lib/context/budgetChecker.d.ts +0 -33
  330. package/dist/lib/context/budgetChecker.js +0 -132
  331. package/dist/lib/context/contextCompactor.d.ts +0 -19
  332. package/dist/lib/context/contextCompactor.js +0 -258
  333. package/dist/lib/context/effectiveHistory.d.ts +0 -52
  334. package/dist/lib/context/effectiveHistory.js +0 -106
  335. package/dist/lib/context/emergencyTruncation.d.ts +0 -21
  336. package/dist/lib/context/emergencyTruncation.js +0 -89
  337. package/dist/lib/context/errorDetection.d.ts +0 -36
  338. package/dist/lib/context/errorDetection.js +0 -190
  339. package/dist/lib/context/errors.d.ts +0 -19
  340. package/dist/lib/context/errors.js +0 -22
  341. package/dist/lib/context/fileSummarizationService.d.ts +0 -45
  342. package/dist/lib/context/fileSummarizationService.js +0 -256
  343. package/dist/lib/context/fileSummarizer.d.ts +0 -55
  344. package/dist/lib/context/fileSummarizer.js +0 -146
  345. package/dist/lib/context/fileTokenBudget.d.ts +0 -52
  346. package/dist/lib/context/fileTokenBudget.js +0 -128
  347. package/dist/lib/context/geminiLoopGuard.d.ts +0 -54
  348. package/dist/lib/context/geminiLoopGuard.js +0 -141
  349. package/dist/lib/context/loopGuardCore.d.ts +0 -43
  350. package/dist/lib/context/loopGuardCore.js +0 -146
  351. package/dist/lib/context/openaiCompatLoopGuard.d.ts +0 -42
  352. package/dist/lib/context/openaiCompatLoopGuard.js +0 -173
  353. package/dist/lib/context/prompts/summarizationPrompt.d.ts +0 -16
  354. package/dist/lib/context/prompts/summarizationPrompt.js +0 -118
  355. package/dist/lib/context/stages/fileReadDeduplicator.d.ts +0 -8
  356. package/dist/lib/context/stages/fileReadDeduplicator.js +0 -67
  357. package/dist/lib/context/stages/slidingWindowTruncator.d.ts +0 -15
  358. package/dist/lib/context/stages/slidingWindowTruncator.js +0 -237
  359. package/dist/lib/context/stages/structuredSummarizer.d.ts +0 -8
  360. package/dist/lib/context/stages/structuredSummarizer.js +0 -123
  361. package/dist/lib/context/stages/toolOutputPruner.d.ts +0 -8
  362. package/dist/lib/context/stages/toolOutputPruner.js +0 -53
  363. package/dist/lib/context/stepBudgetGuard.d.ts +0 -61
  364. package/dist/lib/context/stepBudgetGuard.js +0 -358
  365. package/dist/lib/context/summarizationEngine.d.ts +0 -45
  366. package/dist/lib/context/summarizationEngine.js +0 -162
  367. package/dist/lib/context/toolOutputLimits.d.ts +0 -36
  368. package/dist/lib/context/toolOutputLimits.js +0 -95
  369. package/dist/lib/context/toolPairRepair.d.ts +0 -43
  370. package/dist/lib/context/toolPairRepair.js +0 -242
  371. package/dist/lib/core/analytics.d.ts +0 -11
  372. package/dist/lib/core/analytics.js +0 -117
  373. package/dist/lib/core/baseProvider.d.ts +0 -500
  374. package/dist/lib/core/baseProvider.js +0 -2081
  375. package/dist/lib/core/constants.d.ts +0 -146
  376. package/dist/lib/core/constants.js +0 -278
  377. package/dist/lib/core/conversationMemoryFactory.d.ts +0 -19
  378. package/dist/lib/core/conversationMemoryFactory.js +0 -147
  379. package/dist/lib/core/conversationMemoryInitializer.d.ts +0 -14
  380. package/dist/lib/core/conversationMemoryInitializer.js +0 -129
  381. package/dist/lib/core/conversationMemoryManager.d.ts +0 -110
  382. package/dist/lib/core/conversationMemoryManager.js +0 -471
  383. package/dist/lib/core/dynamicModels.d.ts +0 -89
  384. package/dist/lib/core/dynamicModels.js +0 -337
  385. package/dist/lib/core/evaluation.d.ts +0 -18
  386. package/dist/lib/core/evaluation.js +0 -310
  387. package/dist/lib/core/evaluationProviders.d.ts +0 -60
  388. package/dist/lib/core/evaluationProviders.js +0 -249
  389. package/dist/lib/core/factory.d.ts +0 -54
  390. package/dist/lib/core/factory.js +0 -364
  391. package/dist/lib/core/geminiLoopAdapter.d.ts +0 -20
  392. package/dist/lib/core/geminiLoopAdapter.js +0 -171
  393. package/dist/lib/core/handlerRegistry.d.ts +0 -29
  394. package/dist/lib/core/handlerRegistry.js +0 -62
  395. package/dist/lib/core/infrastructure/baseError.d.ts +0 -21
  396. package/dist/lib/core/infrastructure/baseError.js +0 -23
  397. package/dist/lib/core/infrastructure/baseFactory.d.ts +0 -16
  398. package/dist/lib/core/infrastructure/baseFactory.js +0 -55
  399. package/dist/lib/core/infrastructure/baseRegistry.d.ts +0 -19
  400. package/dist/lib/core/infrastructure/baseRegistry.js +0 -54
  401. package/dist/lib/core/infrastructure/index.d.ts +0 -5
  402. package/dist/lib/core/infrastructure/index.js +0 -6
  403. package/dist/lib/core/infrastructure/retry.d.ts +0 -2
  404. package/dist/lib/core/infrastructure/retry.js +0 -21
  405. package/dist/lib/core/infrastructure/typedEventEmitter.d.ts +0 -8
  406. package/dist/lib/core/infrastructure/typedEventEmitter.js +0 -24
  407. package/dist/lib/core/loopEngine.d.ts +0 -21
  408. package/dist/lib/core/loopEngine.js +0 -272
  409. package/dist/lib/core/modelConfiguration.d.ts +0 -179
  410. package/dist/lib/core/modelConfiguration.js +0 -549
  411. package/dist/lib/core/modules/GenerationHandler.d.ts +0 -135
  412. package/dist/lib/core/modules/GenerationHandler.js +0 -1028
  413. package/dist/lib/core/modules/MessageBuilder.d.ts +0 -24
  414. package/dist/lib/core/modules/MessageBuilder.js +0 -311
  415. package/dist/lib/core/modules/StreamHandler.d.ts +0 -70
  416. package/dist/lib/core/modules/StreamHandler.js +0 -229
  417. package/dist/lib/core/modules/TelemetryHandler.d.ts +0 -70
  418. package/dist/lib/core/modules/TelemetryHandler.js +0 -229
  419. package/dist/lib/core/modules/ToolsManager.d.ts +0 -105
  420. package/dist/lib/core/modules/ToolsManager.js +0 -737
  421. package/dist/lib/core/modules/Utilities.d.ts +0 -90
  422. package/dist/lib/core/modules/Utilities.js +0 -347
  423. package/dist/lib/core/modules/structuredOutputPolicy.d.ts +0 -91
  424. package/dist/lib/core/modules/structuredOutputPolicy.js +0 -136
  425. package/dist/lib/core/nativeToolFormat.d.ts +0 -33
  426. package/dist/lib/core/nativeToolFormat.js +0 -31
  427. package/dist/lib/core/redisConversationMemoryManager.d.ts +0 -235
  428. package/dist/lib/core/redisConversationMemoryManager.js +0 -1724
  429. package/dist/lib/core/serviceRegistry.d.ts +0 -40
  430. package/dist/lib/core/serviceRegistry.js +0 -113
  431. package/dist/lib/core/streamAnalytics.d.ts +0 -27
  432. package/dist/lib/core/streamAnalytics.js +0 -132
  433. package/dist/lib/core/streamChannel.d.ts +0 -10
  434. package/dist/lib/core/streamChannel.js +0 -77
  435. package/dist/lib/core/toolDedup.d.ts +0 -51
  436. package/dist/lib/core/toolDedup.js +0 -197
  437. package/dist/lib/core/toolEvents.d.ts +0 -2
  438. package/dist/lib/core/toolEvents.js +0 -8
  439. package/dist/lib/core/toolExecutionRecorder.d.ts +0 -76
  440. package/dist/lib/core/toolExecutionRecorder.js +0 -261
  441. package/dist/lib/core/toolRouting.d.ts +0 -68
  442. package/dist/lib/core/toolRouting.js +0 -496
  443. package/dist/lib/core/toolRoutingCache.d.ts +0 -64
  444. package/dist/lib/core/toolRoutingCache.js +0 -155
  445. package/dist/lib/core/toolRoutingEmbedding.d.ts +0 -112
  446. package/dist/lib/core/toolRoutingEmbedding.js +0 -323
  447. package/dist/lib/dynamic/dynamicResolver.d.ts +0 -282
  448. package/dist/lib/dynamic/dynamicResolver.js +0 -634
  449. package/dist/lib/dynamic/index.d.ts +0 -10
  450. package/dist/lib/dynamic/index.js +0 -13
  451. package/dist/lib/dynamic/resolution.d.ts +0 -17
  452. package/dist/lib/dynamic/resolution.js +0 -22
  453. package/dist/lib/evaluation/BatchEvaluator.d.ts +0 -65
  454. package/dist/lib/evaluation/BatchEvaluator.js +0 -271
  455. package/dist/lib/evaluation/EvaluationAggregator.d.ts +0 -156
  456. package/dist/lib/evaluation/EvaluationAggregator.js +0 -378
  457. package/dist/lib/evaluation/EvaluatorFactory.d.ts +0 -102
  458. package/dist/lib/evaluation/EvaluatorFactory.js +0 -281
  459. package/dist/lib/evaluation/EvaluatorRegistry.d.ts +0 -111
  460. package/dist/lib/evaluation/EvaluatorRegistry.js +0 -185
  461. package/dist/lib/evaluation/contextBuilder.d.ts +0 -44
  462. package/dist/lib/evaluation/contextBuilder.js +0 -132
  463. package/dist/lib/evaluation/errors/EvaluationError.d.ts +0 -161
  464. package/dist/lib/evaluation/errors/EvaluationError.js +0 -207
  465. package/dist/lib/evaluation/errors/index.d.ts +0 -4
  466. package/dist/lib/evaluation/errors/index.js +0 -5
  467. package/dist/lib/evaluation/hooks/index.d.ts +0 -6
  468. package/dist/lib/evaluation/hooks/index.js +0 -7
  469. package/dist/lib/evaluation/hooks/langfuseAdapter.d.ts +0 -62
  470. package/dist/lib/evaluation/hooks/langfuseAdapter.js +0 -173
  471. package/dist/lib/evaluation/hooks/observabilityHooks.d.ts +0 -77
  472. package/dist/lib/evaluation/hooks/observabilityHooks.js +0 -187
  473. package/dist/lib/evaluation/index.d.ts +0 -41
  474. package/dist/lib/evaluation/index.js +0 -78
  475. package/dist/lib/evaluation/pipeline/evaluationPipeline.d.ts +0 -83
  476. package/dist/lib/evaluation/pipeline/evaluationPipeline.js +0 -397
  477. package/dist/lib/evaluation/pipeline/index.d.ts +0 -8
  478. package/dist/lib/evaluation/pipeline/index.js +0 -9
  479. package/dist/lib/evaluation/pipeline/pipelineBuilder.d.ts +0 -126
  480. package/dist/lib/evaluation/pipeline/pipelineBuilder.js +0 -261
  481. package/dist/lib/evaluation/pipeline/presets.d.ts +0 -66
  482. package/dist/lib/evaluation/pipeline/presets.js +0 -225
  483. package/dist/lib/evaluation/pipeline/strategies/batchStrategy.d.ts +0 -46
  484. package/dist/lib/evaluation/pipeline/strategies/batchStrategy.js +0 -242
  485. package/dist/lib/evaluation/pipeline/strategies/index.d.ts +0 -6
  486. package/dist/lib/evaluation/pipeline/strategies/index.js +0 -7
  487. package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.d.ts +0 -76
  488. package/dist/lib/evaluation/pipeline/strategies/samplingStrategy.js +0 -247
  489. package/dist/lib/evaluation/prompts.d.ts +0 -22
  490. package/dist/lib/evaluation/prompts.js +0 -74
  491. package/dist/lib/evaluation/ragasEvaluator.d.ts +0 -28
  492. package/dist/lib/evaluation/ragasEvaluator.js +0 -127
  493. package/dist/lib/evaluation/reporting/index.d.ts +0 -6
  494. package/dist/lib/evaluation/reporting/index.js +0 -7
  495. package/dist/lib/evaluation/reporting/metricsCollector.d.ts +0 -88
  496. package/dist/lib/evaluation/reporting/metricsCollector.js +0 -286
  497. package/dist/lib/evaluation/reporting/reportGenerator.d.ts +0 -57
  498. package/dist/lib/evaluation/reporting/reportGenerator.js +0 -375
  499. package/dist/lib/evaluation/retryManager.d.ts +0 -39
  500. package/dist/lib/evaluation/retryManager.js +0 -79
  501. package/dist/lib/evaluation/scorers/baseScorer.d.ts +0 -82
  502. package/dist/lib/evaluation/scorers/baseScorer.js +0 -233
  503. package/dist/lib/evaluation/scorers/customScorerUtils.d.ts +0 -86
  504. package/dist/lib/evaluation/scorers/customScorerUtils.js +0 -382
  505. package/dist/lib/evaluation/scorers/index.d.ts +0 -10
  506. package/dist/lib/evaluation/scorers/index.js +0 -17
  507. package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.d.ts +0 -12
  508. package/dist/lib/evaluation/scorers/llm/answerRelevancyScorer.js +0 -100
  509. package/dist/lib/evaluation/scorers/llm/baseLLMScorer.d.ts +0 -69
  510. package/dist/lib/evaluation/scorers/llm/baseLLMScorer.js +0 -282
  511. package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.d.ts +0 -12
  512. package/dist/lib/evaluation/scorers/llm/biasDetectionScorer.js +0 -128
  513. package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.d.ts +0 -12
  514. package/dist/lib/evaluation/scorers/llm/contextPrecisionScorer.js +0 -93
  515. package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.d.ts +0 -12
  516. package/dist/lib/evaluation/scorers/llm/contextRelevancyScorer.js +0 -108
  517. package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.d.ts +0 -12
  518. package/dist/lib/evaluation/scorers/llm/faithfulnessScorer.js +0 -122
  519. package/dist/lib/evaluation/scorers/llm/hallucinationScorer.d.ts +0 -12
  520. package/dist/lib/evaluation/scorers/llm/hallucinationScorer.js +0 -141
  521. package/dist/lib/evaluation/scorers/llm/index.d.ts +0 -15
  522. package/dist/lib/evaluation/scorers/llm/index.js +0 -17
  523. package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.d.ts +0 -12
  524. package/dist/lib/evaluation/scorers/llm/promptAlignmentScorer.js +0 -107
  525. package/dist/lib/evaluation/scorers/llm/summarizationScorer.d.ts +0 -12
  526. package/dist/lib/evaluation/scorers/llm/summarizationScorer.js +0 -115
  527. package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.d.ts +0 -12
  528. package/dist/lib/evaluation/scorers/llm/toneConsistencyScorer.js +0 -107
  529. package/dist/lib/evaluation/scorers/llm/toxicityScorer.d.ts +0 -12
  530. package/dist/lib/evaluation/scorers/llm/toxicityScorer.js +0 -122
  531. package/dist/lib/evaluation/scorers/rule/baseRuleScorer.d.ts +0 -77
  532. package/dist/lib/evaluation/scorers/rule/baseRuleScorer.js +0 -234
  533. package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.d.ts +0 -81
  534. package/dist/lib/evaluation/scorers/rule/contentSimilarityScorer.js +0 -353
  535. package/dist/lib/evaluation/scorers/rule/formatScorer.d.ts +0 -107
  536. package/dist/lib/evaluation/scorers/rule/formatScorer.js +0 -471
  537. package/dist/lib/evaluation/scorers/rule/index.d.ts +0 -9
  538. package/dist/lib/evaluation/scorers/rule/index.js +0 -11
  539. package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.d.ts +0 -66
  540. package/dist/lib/evaluation/scorers/rule/keywordCoverageScorer.js +0 -348
  541. package/dist/lib/evaluation/scorers/rule/lengthScorer.d.ts +0 -74
  542. package/dist/lib/evaluation/scorers/rule/lengthScorer.js +0 -352
  543. package/dist/lib/evaluation/scorers/scorerBuilder.d.ts +0 -160
  544. package/dist/lib/evaluation/scorers/scorerBuilder.js +0 -421
  545. package/dist/lib/evaluation/scorers/scorerRegistry.d.ts +0 -65
  546. package/dist/lib/evaluation/scorers/scorerRegistry.js +0 -540
  547. package/dist/lib/evaluation/scoring.d.ts +0 -15
  548. package/dist/lib/evaluation/scoring.js +0 -61
  549. package/dist/lib/factories/providerDescriptors.d.ts +0 -18
  550. package/dist/lib/factories/providerDescriptors.js +0 -547
  551. package/dist/lib/factories/providerFactory.d.ts +0 -87
  552. package/dist/lib/factories/providerFactory.js +0 -199
  553. package/dist/lib/factories/providerRegistry.d.ts +0 -58
  554. package/dist/lib/factories/providerRegistry.js +0 -549
  555. package/dist/lib/features/ppt/constants.d.ts +0 -121
  556. package/dist/lib/features/ppt/constants.js +0 -897
  557. package/dist/lib/features/ppt/contentPlanner.d.ts +0 -47
  558. package/dist/lib/features/ppt/contentPlanner.js +0 -558
  559. package/dist/lib/features/ppt/index.d.ts +0 -11
  560. package/dist/lib/features/ppt/index.js +0 -33
  561. package/dist/lib/features/ppt/pptError.d.ts +0 -38
  562. package/dist/lib/features/ppt/pptError.js +0 -54
  563. package/dist/lib/features/ppt/presentationOrchestrator.d.ts +0 -37
  564. package/dist/lib/features/ppt/presentationOrchestrator.js +0 -231
  565. package/dist/lib/features/ppt/slideGenerator.d.ts +0 -56
  566. package/dist/lib/features/ppt/slideGenerator.js +0 -542
  567. package/dist/lib/features/ppt/slideRenderers.d.ts +0 -347
  568. package/dist/lib/features/ppt/slideRenderers.js +0 -2384
  569. package/dist/lib/features/ppt/slideTypeInference.d.ts +0 -91
  570. package/dist/lib/features/ppt/slideTypeInference.js +0 -406
  571. package/dist/lib/features/ppt/utils.d.ts +0 -103
  572. package/dist/lib/features/ppt/utils.js +0 -446
  573. package/dist/lib/files/fileReferenceRegistry.d.ts +0 -275
  574. package/dist/lib/files/fileReferenceRegistry.js +0 -1559
  575. package/dist/lib/files/fileTools.d.ts +0 -176
  576. package/dist/lib/files/fileTools.js +0 -435
  577. package/dist/lib/files/index.d.ts +0 -13
  578. package/dist/lib/files/index.js +0 -14
  579. package/dist/lib/files/streamingReader.d.ts +0 -93
  580. package/dist/lib/files/streamingReader.js +0 -322
  581. package/dist/lib/hitl/hitlErrors.d.ts +0 -38
  582. package/dist/lib/hitl/hitlErrors.js +0 -55
  583. package/dist/lib/hitl/hitlManager.d.ts +0 -100
  584. package/dist/lib/hitl/hitlManager.js +0 -461
  585. package/dist/lib/hitl/index.d.ts +0 -7
  586. package/dist/lib/hitl/index.js +0 -10
  587. package/dist/lib/image-gen/ImageGenService.d.ts +0 -146
  588. package/dist/lib/image-gen/ImageGenService.js +0 -349
  589. package/dist/lib/image-gen/imageGenTools.d.ts +0 -109
  590. package/dist/lib/image-gen/imageGenTools.js +0 -305
  591. package/dist/lib/image-gen/index.d.ts +0 -45
  592. package/dist/lib/image-gen/index.js +0 -49
  593. package/dist/lib/index.d.ts +0 -447
  594. package/dist/lib/index.js +0 -748
  595. package/dist/lib/knowledge/context.d.ts +0 -18
  596. package/dist/lib/knowledge/context.js +0 -92
  597. package/dist/lib/knowledge/defaults.d.ts +0 -24
  598. package/dist/lib/knowledge/defaults.js +0 -30
  599. package/dist/lib/knowledge/engine.d.ts +0 -35
  600. package/dist/lib/knowledge/engine.js +0 -180
  601. package/dist/lib/knowledge/index.d.ts +0 -15
  602. package/dist/lib/knowledge/index.js +0 -16
  603. package/dist/lib/knowledge/indexCache.d.ts +0 -19
  604. package/dist/lib/knowledge/indexCache.js +0 -110
  605. package/dist/lib/knowledge/knowledgeIndex.d.ts +0 -41
  606. package/dist/lib/knowledge/knowledgeIndex.js +0 -205
  607. package/dist/lib/knowledge/normalize.d.ts +0 -32
  608. package/dist/lib/knowledge/normalize.js +0 -75
  609. package/dist/lib/knowledge/resolve.d.ts +0 -18
  610. package/dist/lib/knowledge/resolve.js +0 -157
  611. package/dist/lib/knowledge/retrieval.d.ts +0 -16
  612. package/dist/lib/knowledge/retrieval.js +0 -222
  613. package/dist/lib/mcp/agentExposure.d.ts +0 -83
  614. package/dist/lib/mcp/agentExposure.js +0 -357
  615. package/dist/lib/mcp/auth/index.d.ts +0 -6
  616. package/dist/lib/mcp/auth/index.js +0 -12
  617. package/dist/lib/mcp/auth/oauthClientProvider.d.ts +0 -93
  618. package/dist/lib/mcp/auth/oauthClientProvider.js +0 -331
  619. package/dist/lib/mcp/auth/tokenStorage.d.ts +0 -56
  620. package/dist/lib/mcp/auth/tokenStorage.js +0 -135
  621. package/dist/lib/mcp/batching/index.d.ts +0 -1
  622. package/dist/lib/mcp/batching/index.js +0 -2
  623. package/dist/lib/mcp/batching/requestBatcher.d.ts +0 -130
  624. package/dist/lib/mcp/batching/requestBatcher.js +0 -468
  625. package/dist/lib/mcp/caching/index.d.ts +0 -1
  626. package/dist/lib/mcp/caching/index.js +0 -2
  627. package/dist/lib/mcp/caching/toolCache.d.ts +0 -154
  628. package/dist/lib/mcp/caching/toolCache.js +0 -434
  629. package/dist/lib/mcp/elicitation/elicitationManager.d.ts +0 -169
  630. package/dist/lib/mcp/elicitation/elicitationManager.js +0 -377
  631. package/dist/lib/mcp/elicitation/index.d.ts +0 -1
  632. package/dist/lib/mcp/elicitation/index.js +0 -3
  633. package/dist/lib/mcp/elicitationProtocol.d.ts +0 -139
  634. package/dist/lib/mcp/elicitationProtocol.js +0 -376
  635. package/dist/lib/mcp/enhancedToolDiscovery.d.ts +0 -125
  636. package/dist/lib/mcp/enhancedToolDiscovery.js +0 -482
  637. package/dist/lib/mcp/externalServerManager.d.ts +0 -189
  638. package/dist/lib/mcp/externalServerManager.js +0 -1525
  639. package/dist/lib/mcp/factory.d.ts +0 -60
  640. package/dist/lib/mcp/factory.js +0 -162
  641. package/dist/lib/mcp/flexibleToolValidator.d.ts +0 -46
  642. package/dist/lib/mcp/flexibleToolValidator.js +0 -162
  643. package/dist/lib/mcp/httpRateLimiter.d.ts +0 -152
  644. package/dist/lib/mcp/httpRateLimiter.js +0 -386
  645. package/dist/lib/mcp/httpRetryHandler.d.ts +0 -62
  646. package/dist/lib/mcp/httpRetryHandler.js +0 -180
  647. package/dist/lib/mcp/index.d.ts +0 -60
  648. package/dist/lib/mcp/index.js +0 -82
  649. package/dist/lib/mcp/mcpCircuitBreaker.d.ts +0 -123
  650. package/dist/lib/mcp/mcpCircuitBreaker.js +0 -428
  651. package/dist/lib/mcp/mcpClientFactory.d.ts +0 -109
  652. package/dist/lib/mcp/mcpClientFactory.js +0 -714
  653. package/dist/lib/mcp/mcpOutputNormalizer.d.ts +0 -47
  654. package/dist/lib/mcp/mcpOutputNormalizer.js +0 -183
  655. package/dist/lib/mcp/mcpRegistryClient.d.ts +0 -129
  656. package/dist/lib/mcp/mcpRegistryClient.js +0 -489
  657. package/dist/lib/mcp/mcpServerBase.d.ts +0 -162
  658. package/dist/lib/mcp/mcpServerBase.js +0 -377
  659. package/dist/lib/mcp/multiServerManager.d.ts +0 -182
  660. package/dist/lib/mcp/multiServerManager.js +0 -580
  661. package/dist/lib/mcp/registry.d.ts +0 -94
  662. package/dist/lib/mcp/registry.js +0 -159
  663. package/dist/lib/mcp/routing/index.d.ts +0 -1
  664. package/dist/lib/mcp/routing/index.js +0 -2
  665. package/dist/lib/mcp/routing/toolRouter.d.ts +0 -110
  666. package/dist/lib/mcp/routing/toolRouter.js +0 -417
  667. package/dist/lib/mcp/serverCapabilities.d.ts +0 -175
  668. package/dist/lib/mcp/serverCapabilities.js +0 -503
  669. package/dist/lib/mcp/servers/agent/directToolsServer.d.ts +0 -8
  670. package/dist/lib/mcp/servers/agent/directToolsServer.js +0 -152
  671. package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.d.ts +0 -6
  672. package/dist/lib/mcp/servers/aiProviders/aiAnalysisTools.js +0 -364
  673. package/dist/lib/mcp/servers/aiProviders/aiCoreServer.d.ts +0 -10
  674. package/dist/lib/mcp/servers/aiProviders/aiCoreServer.js +0 -232
  675. package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.d.ts +0 -5
  676. package/dist/lib/mcp/servers/aiProviders/aiWorkflowTools.js +0 -584
  677. package/dist/lib/mcp/servers/utilities/utilityServer.d.ts +0 -8
  678. package/dist/lib/mcp/servers/utilities/utilityServer.js +0 -327
  679. package/dist/lib/mcp/toolAnnotations.d.ts +0 -57
  680. package/dist/lib/mcp/toolAnnotations.js +0 -240
  681. package/dist/lib/mcp/toolConverter.d.ts +0 -87
  682. package/dist/lib/mcp/toolConverter.js +0 -259
  683. package/dist/lib/mcp/toolDiscoveryService.d.ts +0 -144
  684. package/dist/lib/mcp/toolDiscoveryService.js +0 -978
  685. package/dist/lib/mcp/toolIntegration.d.ts +0 -92
  686. package/dist/lib/mcp/toolIntegration.js +0 -335
  687. package/dist/lib/mcp/toolRegistry.d.ts +0 -151
  688. package/dist/lib/mcp/toolRegistry.js +0 -755
  689. package/dist/lib/memory/hippocampusInitializer.d.ts +0 -2
  690. package/dist/lib/memory/hippocampusInitializer.js +0 -50
  691. package/dist/lib/memory/memoryRetrievalTools.d.ts +0 -13
  692. package/dist/lib/memory/memoryRetrievalTools.js +0 -267
  693. package/dist/lib/middleware/builtin/analytics.d.ts +0 -16
  694. package/dist/lib/middleware/builtin/analytics.js +0 -133
  695. package/dist/lib/middleware/builtin/autoEvaluation.d.ts +0 -11
  696. package/dist/lib/middleware/builtin/autoEvaluation.js +0 -201
  697. package/dist/lib/middleware/builtin/guardrails.d.ts +0 -7
  698. package/dist/lib/middleware/builtin/guardrails.js +0 -110
  699. package/dist/lib/middleware/builtin/lifecycle.d.ts +0 -2
  700. package/dist/lib/middleware/builtin/lifecycle.js +0 -161
  701. package/dist/lib/middleware/factory.d.ts +0 -69
  702. package/dist/lib/middleware/factory.js +0 -328
  703. package/dist/lib/middleware/index.d.ts +0 -11
  704. package/dist/lib/middleware/index.js +0 -17
  705. package/dist/lib/middleware/registry.d.ts +0 -76
  706. package/dist/lib/middleware/registry.js +0 -296
  707. package/dist/lib/middleware/utils/guardrailsUtils.d.ts +0 -50
  708. package/dist/lib/middleware/utils/guardrailsUtils.js +0 -397
  709. package/dist/lib/models/anthropicModels.d.ts +0 -261
  710. package/dist/lib/models/anthropicModels.js +0 -556
  711. package/dist/lib/models/manifestRegistry.d.ts +0 -33
  712. package/dist/lib/models/manifestRegistry.js +0 -174
  713. package/dist/lib/models/manifests/anthropic.d.ts +0 -9
  714. package/dist/lib/models/manifests/anthropic.js +0 -346
  715. package/dist/lib/models/manifests/azure.d.ts +0 -2
  716. package/dist/lib/models/manifests/azure.js +0 -87
  717. package/dist/lib/models/manifests/bedrock.d.ts +0 -2
  718. package/dist/lib/models/manifests/bedrock.js +0 -75
  719. package/dist/lib/models/manifests/cloudflare.d.ts +0 -8
  720. package/dist/lib/models/manifests/cloudflare.js +0 -19
  721. package/dist/lib/models/manifests/cohere.d.ts +0 -8
  722. package/dist/lib/models/manifests/cohere.js +0 -19
  723. package/dist/lib/models/manifests/deepseek.d.ts +0 -8
  724. package/dist/lib/models/manifests/deepseek.js +0 -19
  725. package/dist/lib/models/manifests/fireworks.d.ts +0 -8
  726. package/dist/lib/models/manifests/fireworks.js +0 -19
  727. package/dist/lib/models/manifests/google-ai.d.ts +0 -2
  728. package/dist/lib/models/manifests/google-ai.js +0 -28
  729. package/dist/lib/models/manifests/groq.d.ts +0 -8
  730. package/dist/lib/models/manifests/groq.js +0 -19
  731. package/dist/lib/models/manifests/huggingface.d.ts +0 -8
  732. package/dist/lib/models/manifests/huggingface.js +0 -19
  733. package/dist/lib/models/manifests/ideogram.d.ts +0 -8
  734. package/dist/lib/models/manifests/ideogram.js +0 -19
  735. package/dist/lib/models/manifests/jina.d.ts +0 -8
  736. package/dist/lib/models/manifests/jina.js +0 -19
  737. package/dist/lib/models/manifests/litellm.d.ts +0 -8
  738. package/dist/lib/models/manifests/litellm.js +0 -19
  739. package/dist/lib/models/manifests/llamacpp.d.ts +0 -8
  740. package/dist/lib/models/manifests/llamacpp.js +0 -19
  741. package/dist/lib/models/manifests/lm-studio.d.ts +0 -8
  742. package/dist/lib/models/manifests/lm-studio.js +0 -19
  743. package/dist/lib/models/manifests/mistral.d.ts +0 -2
  744. package/dist/lib/models/manifests/mistral.js +0 -50
  745. package/dist/lib/models/manifests/nvidia-nim.d.ts +0 -8
  746. package/dist/lib/models/manifests/nvidia-nim.js +0 -19
  747. package/dist/lib/models/manifests/ollama.d.ts +0 -2
  748. package/dist/lib/models/manifests/ollama.js +0 -72
  749. package/dist/lib/models/manifests/openai-compatible.d.ts +0 -8
  750. package/dist/lib/models/manifests/openai-compatible.js +0 -19
  751. package/dist/lib/models/manifests/openai.d.ts +0 -11
  752. package/dist/lib/models/manifests/openai.js +0 -560
  753. package/dist/lib/models/manifests/openrouter.d.ts +0 -8
  754. package/dist/lib/models/manifests/openrouter.js +0 -19
  755. package/dist/lib/models/manifests/perplexity.d.ts +0 -8
  756. package/dist/lib/models/manifests/perplexity.js +0 -19
  757. package/dist/lib/models/manifests/recraft.d.ts +0 -8
  758. package/dist/lib/models/manifests/recraft.js +0 -19
  759. package/dist/lib/models/manifests/replicate.d.ts +0 -8
  760. package/dist/lib/models/manifests/replicate.js +0 -19
  761. package/dist/lib/models/manifests/sagemaker.d.ts +0 -8
  762. package/dist/lib/models/manifests/sagemaker.js +0 -19
  763. package/dist/lib/models/manifests/stability.d.ts +0 -8
  764. package/dist/lib/models/manifests/stability.js +0 -19
  765. package/dist/lib/models/manifests/together-ai.d.ts +0 -8
  766. package/dist/lib/models/manifests/together-ai.js +0 -19
  767. package/dist/lib/models/manifests/vertex.d.ts +0 -8
  768. package/dist/lib/models/manifests/vertex.js +0 -19
  769. package/dist/lib/models/manifests/voyage.d.ts +0 -8
  770. package/dist/lib/models/manifests/voyage.js +0 -19
  771. package/dist/lib/models/manifests/xai.d.ts +0 -8
  772. package/dist/lib/models/manifests/xai.js +0 -19
  773. package/dist/lib/models/modelRegistry.d.ts +0 -74
  774. package/dist/lib/models/modelRegistry.js +0 -2695
  775. package/dist/lib/models/modelResolver.d.ts +0 -74
  776. package/dist/lib/models/modelResolver.js +0 -470
  777. package/dist/lib/music/index.d.ts +0 -27
  778. package/dist/lib/music/index.js +0 -94
  779. package/dist/lib/music/providers/BeatovenMusic.d.ts +0 -31
  780. package/dist/lib/music/providers/BeatovenMusic.js +0 -334
  781. package/dist/lib/music/providers/ElevenLabsMusic.d.ts +0 -30
  782. package/dist/lib/music/providers/ElevenLabsMusic.js +0 -169
  783. package/dist/lib/music/providers/LyriaMusic.d.ts +0 -29
  784. package/dist/lib/music/providers/LyriaMusic.js +0 -173
  785. package/dist/lib/music/providers/ReplicateMusic.d.ts +0 -31
  786. package/dist/lib/music/providers/ReplicateMusic.js +0 -262
  787. package/dist/lib/neurolink.d.ts +0 -2662
  788. package/dist/lib/neurolink.js +0 -12946
  789. package/dist/lib/observability/exporterRegistry.d.ts +0 -133
  790. package/dist/lib/observability/exporterRegistry.js +0 -414
  791. package/dist/lib/observability/exporters/arizeExporter.d.ts +0 -32
  792. package/dist/lib/observability/exporters/arizeExporter.js +0 -139
  793. package/dist/lib/observability/exporters/baseExporter.d.ts +0 -117
  794. package/dist/lib/observability/exporters/baseExporter.js +0 -191
  795. package/dist/lib/observability/exporters/braintrustExporter.d.ts +0 -30
  796. package/dist/lib/observability/exporters/braintrustExporter.js +0 -155
  797. package/dist/lib/observability/exporters/datadogExporter.d.ts +0 -37
  798. package/dist/lib/observability/exporters/datadogExporter.js +0 -197
  799. package/dist/lib/observability/exporters/index.d.ts +0 -13
  800. package/dist/lib/observability/exporters/index.js +0 -14
  801. package/dist/lib/observability/exporters/laminarExporter.d.ts +0 -48
  802. package/dist/lib/observability/exporters/laminarExporter.js +0 -304
  803. package/dist/lib/observability/exporters/langfuseExporter.d.ts +0 -48
  804. package/dist/lib/observability/exporters/langfuseExporter.js +0 -210
  805. package/dist/lib/observability/exporters/langsmithExporter.d.ts +0 -26
  806. package/dist/lib/observability/exporters/langsmithExporter.js +0 -144
  807. package/dist/lib/observability/exporters/otelExporter.d.ts +0 -39
  808. package/dist/lib/observability/exporters/otelExporter.js +0 -165
  809. package/dist/lib/observability/exporters/posthogExporter.d.ts +0 -48
  810. package/dist/lib/observability/exporters/posthogExporter.js +0 -289
  811. package/dist/lib/observability/exporters/sentryExporter.d.ts +0 -32
  812. package/dist/lib/observability/exporters/sentryExporter.js +0 -167
  813. package/dist/lib/observability/index.d.ts +0 -23
  814. package/dist/lib/observability/index.js +0 -32
  815. package/dist/lib/observability/metricsAggregator.d.ts +0 -126
  816. package/dist/lib/observability/metricsAggregator.js +0 -553
  817. package/dist/lib/observability/otelBridge.d.ts +0 -49
  818. package/dist/lib/observability/otelBridge.js +0 -141
  819. package/dist/lib/observability/retryPolicy.d.ts +0 -154
  820. package/dist/lib/observability/retryPolicy.js +0 -384
  821. package/dist/lib/observability/sampling/index.d.ts +0 -4
  822. package/dist/lib/observability/sampling/index.js +0 -5
  823. package/dist/lib/observability/sampling/samplers.d.ts +0 -104
  824. package/dist/lib/observability/sampling/samplers.js +0 -217
  825. package/dist/lib/observability/spanProcessor.d.ts +0 -115
  826. package/dist/lib/observability/spanProcessor.js +0 -304
  827. package/dist/lib/observability/tokenTracker.d.ts +0 -109
  828. package/dist/lib/observability/tokenTracker.js +0 -416
  829. package/dist/lib/observability/utils/index.d.ts +0 -4
  830. package/dist/lib/observability/utils/index.js +0 -5
  831. package/dist/lib/observability/utils/safeMetadata.d.ts +0 -10
  832. package/dist/lib/observability/utils/safeMetadata.js +0 -26
  833. package/dist/lib/observability/utils/spanSerializer.d.ts +0 -119
  834. package/dist/lib/observability/utils/spanSerializer.js +0 -314
  835. package/dist/lib/processors/archive/ArchiveProcessor.d.ts +0 -323
  836. package/dist/lib/processors/archive/ArchiveProcessor.js +0 -1662
  837. package/dist/lib/processors/archive/index.d.ts +0 -33
  838. package/dist/lib/processors/archive/index.js +0 -44
  839. package/dist/lib/processors/archive/zipEntryReader.d.ts +0 -51
  840. package/dist/lib/processors/archive/zipEntryReader.js +0 -81
  841. package/dist/lib/processors/base/BaseFileProcessor.d.ts +0 -309
  842. package/dist/lib/processors/base/BaseFileProcessor.js +0 -769
  843. package/dist/lib/processors/base/index.d.ts +0 -13
  844. package/dist/lib/processors/base/index.js +0 -23
  845. package/dist/lib/processors/cli/fileProcessorCli.d.ts +0 -124
  846. package/dist/lib/processors/cli/fileProcessorCli.js +0 -392
  847. package/dist/lib/processors/cli/index.d.ts +0 -36
  848. package/dist/lib/processors/cli/index.js +0 -53
  849. package/dist/lib/processors/code/ConfigProcessor.d.ts +0 -169
  850. package/dist/lib/processors/code/ConfigProcessor.js +0 -405
  851. package/dist/lib/processors/code/SourceCodeProcessor.d.ts +0 -172
  852. package/dist/lib/processors/code/SourceCodeProcessor.js +0 -309
  853. package/dist/lib/processors/code/index.d.ts +0 -44
  854. package/dist/lib/processors/code/index.js +0 -65
  855. package/dist/lib/processors/config/fileExtensions.d.ts +0 -280
  856. package/dist/lib/processors/config/fileExtensions.js +0 -485
  857. package/dist/lib/processors/config/fileTypeRegistry.d.ts +0 -106
  858. package/dist/lib/processors/config/fileTypeRegistry.js +0 -702
  859. package/dist/lib/processors/config/index.d.ts +0 -33
  860. package/dist/lib/processors/config/index.js +0 -104
  861. package/dist/lib/processors/config/languageMap.d.ts +0 -62
  862. package/dist/lib/processors/config/languageMap.js +0 -414
  863. package/dist/lib/processors/config/mimeConstants.d.ts +0 -373
  864. package/dist/lib/processors/config/mimeConstants.js +0 -348
  865. package/dist/lib/processors/config/sizeLimits.d.ts +0 -198
  866. package/dist/lib/processors/config/sizeLimits.js +0 -262
  867. package/dist/lib/processors/data/JsonProcessor.d.ts +0 -120
  868. package/dist/lib/processors/data/JsonProcessor.js +0 -206
  869. package/dist/lib/processors/data/XmlProcessor.d.ts +0 -158
  870. package/dist/lib/processors/data/XmlProcessor.js +0 -288
  871. package/dist/lib/processors/data/YamlProcessor.d.ts +0 -161
  872. package/dist/lib/processors/data/YamlProcessor.js +0 -297
  873. package/dist/lib/processors/data/index.d.ts +0 -49
  874. package/dist/lib/processors/data/index.js +0 -83
  875. package/dist/lib/processors/document/ExcelProcessor.d.ts +0 -250
  876. package/dist/lib/processors/document/ExcelProcessor.js +0 -615
  877. package/dist/lib/processors/document/OpenDocumentProcessor.d.ts +0 -67
  878. package/dist/lib/processors/document/OpenDocumentProcessor.js +0 -236
  879. package/dist/lib/processors/document/PptxProcessor.d.ts +0 -77
  880. package/dist/lib/processors/document/PptxProcessor.js +0 -262
  881. package/dist/lib/processors/document/RtfProcessor.d.ts +0 -150
  882. package/dist/lib/processors/document/RtfProcessor.js +0 -364
  883. package/dist/lib/processors/document/WordProcessor.d.ts +0 -166
  884. package/dist/lib/processors/document/WordProcessor.js +0 -365
  885. package/dist/lib/processors/document/index.d.ts +0 -55
  886. package/dist/lib/processors/document/index.js +0 -100
  887. package/dist/lib/processors/errors/FileErrorCode.d.ts +0 -86
  888. package/dist/lib/processors/errors/FileErrorCode.js +0 -256
  889. package/dist/lib/processors/errors/errorHelpers.d.ts +0 -121
  890. package/dist/lib/processors/errors/errorHelpers.js +0 -387
  891. package/dist/lib/processors/errors/errorSerializer.d.ts +0 -96
  892. package/dist/lib/processors/errors/errorSerializer.js +0 -508
  893. package/dist/lib/processors/errors/index.d.ts +0 -46
  894. package/dist/lib/processors/errors/index.js +0 -50
  895. package/dist/lib/processors/index.d.ts +0 -79
  896. package/dist/lib/processors/index.js +0 -133
  897. package/dist/lib/processors/integration/FileProcessorIntegration.d.ts +0 -176
  898. package/dist/lib/processors/integration/FileProcessorIntegration.js +0 -279
  899. package/dist/lib/processors/integration/index.d.ts +0 -41
  900. package/dist/lib/processors/integration/index.js +0 -48
  901. package/dist/lib/processors/markup/HtmlProcessor.d.ts +0 -167
  902. package/dist/lib/processors/markup/HtmlProcessor.js +0 -252
  903. package/dist/lib/processors/markup/MarkdownProcessor.d.ts +0 -163
  904. package/dist/lib/processors/markup/MarkdownProcessor.js +0 -249
  905. package/dist/lib/processors/markup/SvgProcessor.d.ts +0 -154
  906. package/dist/lib/processors/markup/SvgProcessor.js +0 -245
  907. package/dist/lib/processors/markup/TextProcessor.d.ts +0 -133
  908. package/dist/lib/processors/markup/TextProcessor.js +0 -191
  909. package/dist/lib/processors/markup/index.d.ts +0 -66
  910. package/dist/lib/processors/markup/index.js +0 -111
  911. package/dist/lib/processors/media/AudioProcessor.d.ts +0 -266
  912. package/dist/lib/processors/media/AudioProcessor.js +0 -712
  913. package/dist/lib/processors/media/VideoProcessor.d.ts +0 -337
  914. package/dist/lib/processors/media/VideoProcessor.js +0 -1154
  915. package/dist/lib/processors/media/index.d.ts +0 -26
  916. package/dist/lib/processors/media/index.js +0 -30
  917. package/dist/lib/processors/registry/ProcessorRegistry.d.ts +0 -347
  918. package/dist/lib/processors/registry/ProcessorRegistry.js +0 -715
  919. package/dist/lib/processors/registry/index.d.ts +0 -2
  920. package/dist/lib/processors/registry/index.js +0 -10
  921. package/dist/lib/providers/amazonBedrock/client.d.ts +0 -93
  922. package/dist/lib/providers/amazonBedrock/client.js +0 -1178
  923. package/dist/lib/providers/amazonBedrock/constants.d.ts +0 -1
  924. package/dist/lib/providers/amazonBedrock/constants.js +0 -3
  925. package/dist/lib/providers/amazonBedrock/index.d.ts +0 -3
  926. package/dist/lib/providers/amazonBedrock/index.js +0 -4
  927. package/dist/lib/providers/amazonBedrock/inferenceProfile.d.ts +0 -72
  928. package/dist/lib/providers/amazonBedrock/inferenceProfile.js +0 -186
  929. package/dist/lib/providers/amazonBedrock/loopAdapter.d.ts +0 -36
  930. package/dist/lib/providers/amazonBedrock/loopAdapter.js +0 -278
  931. package/dist/lib/providers/amazonBedrock/utils.d.ts +0 -1
  932. package/dist/lib/providers/amazonBedrock/utils.js +0 -4
  933. package/dist/lib/providers/amazonSagemaker.d.ts +0 -108
  934. package/dist/lib/providers/amazonSagemaker.js +0 -292
  935. package/dist/lib/providers/anthropic/cacheControl.d.ts +0 -12
  936. package/dist/lib/providers/anthropic/cacheControl.js +0 -15
  937. package/dist/lib/providers/anthropic/client.d.ts +0 -149
  938. package/dist/lib/providers/anthropic/client.js +0 -1862
  939. package/dist/lib/providers/anthropic/constants.d.ts +0 -3
  940. package/dist/lib/providers/anthropic/constants.js +0 -7
  941. package/dist/lib/providers/anthropic/index.d.ts +0 -2
  942. package/dist/lib/providers/anthropic/index.js +0 -3
  943. package/dist/lib/providers/anthropic/loopAdapter.d.ts +0 -26
  944. package/dist/lib/providers/anthropic/loopAdapter.js +0 -326
  945. package/dist/lib/providers/anthropic/rateLimitCapture.d.ts +0 -82
  946. package/dist/lib/providers/anthropic/rateLimitCapture.js +0 -375
  947. package/dist/lib/providers/anthropic/structuredOutput.d.ts +0 -58
  948. package/dist/lib/providers/anthropic/structuredOutput.js +0 -98
  949. package/dist/lib/providers/anthropic/toolOutput.d.ts +0 -9
  950. package/dist/lib/providers/anthropic/toolOutput.js +0 -39
  951. package/dist/lib/providers/anthropicImageBlocks.d.ts +0 -47
  952. package/dist/lib/providers/anthropicImageBlocks.js +0 -223
  953. package/dist/lib/providers/azureOpenai.d.ts +0 -67
  954. package/dist/lib/providers/azureOpenai.js +0 -230
  955. package/dist/lib/providers/cohere.d.ts +0 -54
  956. package/dist/lib/providers/cohere.js +0 -183
  957. package/dist/lib/providers/configuredOpenAICompat.d.ts +0 -24
  958. package/dist/lib/providers/configuredOpenAICompat.js +0 -67
  959. package/dist/lib/providers/deepseek.d.ts +0 -47
  960. package/dist/lib/providers/deepseek.js +0 -121
  961. package/dist/lib/providers/googleAiStudio/client.d.ts +0 -92
  962. package/dist/lib/providers/googleAiStudio/client.js +0 -1661
  963. package/dist/lib/providers/googleAiStudio/index.d.ts +0 -1
  964. package/dist/lib/providers/googleAiStudio/index.js +0 -2
  965. package/dist/lib/providers/googleNativeGemini3/index.d.ts +0 -1
  966. package/dist/lib/providers/googleNativeGemini3/index.js +0 -2
  967. package/dist/lib/providers/googleNativeGemini3/utils.d.ts +0 -482
  968. package/dist/lib/providers/googleNativeGemini3/utils.js +0 -1527
  969. package/dist/lib/providers/googleVertex/client.d.ts +0 -415
  970. package/dist/lib/providers/googleVertex/client.js +0 -7018
  971. package/dist/lib/providers/googleVertex/constants.d.ts +0 -5
  972. package/dist/lib/providers/googleVertex/constants.js +0 -27
  973. package/dist/lib/providers/googleVertex/index.d.ts +0 -3
  974. package/dist/lib/providers/googleVertex/index.js +0 -4
  975. package/dist/lib/providers/googleVertex/utils.d.ts +0 -12
  976. package/dist/lib/providers/googleVertex/utils.js +0 -287
  977. package/dist/lib/providers/huggingFace/client.d.ts +0 -31
  978. package/dist/lib/providers/huggingFace/client.js +0 -103
  979. package/dist/lib/providers/huggingFace/index.d.ts +0 -1
  980. package/dist/lib/providers/huggingFace/index.js +0 -2
  981. package/dist/lib/providers/ideogram.d.ts +0 -34
  982. package/dist/lib/providers/ideogram.js +0 -184
  983. package/dist/lib/providers/jina.d.ts +0 -58
  984. package/dist/lib/providers/jina.js +0 -217
  985. package/dist/lib/providers/litellm/client.d.ts +0 -84
  986. package/dist/lib/providers/litellm/client.js +0 -504
  987. package/dist/lib/providers/litellm/index.d.ts +0 -1
  988. package/dist/lib/providers/litellm/index.js +0 -2
  989. package/dist/lib/providers/llamaCpp.d.ts +0 -24
  990. package/dist/lib/providers/llamaCpp.js +0 -80
  991. package/dist/lib/providers/lmStudio.d.ts +0 -29
  992. package/dist/lib/providers/lmStudio.js +0 -88
  993. package/dist/lib/providers/nvidiaNim/client.d.ts +0 -60
  994. package/dist/lib/providers/nvidiaNim/client.js +0 -291
  995. package/dist/lib/providers/nvidiaNim/constants.d.ts +0 -1
  996. package/dist/lib/providers/nvidiaNim/constants.js +0 -2
  997. package/dist/lib/providers/nvidiaNim/index.d.ts +0 -2
  998. package/dist/lib/providers/nvidiaNim/index.js +0 -3
  999. package/dist/lib/providers/ollama/client.d.ts +0 -71
  1000. package/dist/lib/providers/ollama/client.js +0 -283
  1001. package/dist/lib/providers/ollama/constants.d.ts +0 -4
  1002. package/dist/lib/providers/ollama/constants.js +0 -6
  1003. package/dist/lib/providers/ollama/index.d.ts +0 -2
  1004. package/dist/lib/providers/ollama/index.js +0 -3
  1005. package/dist/lib/providers/openAI/client.d.ts +0 -76
  1006. package/dist/lib/providers/openAI/client.js +0 -503
  1007. package/dist/lib/providers/openAI/index.d.ts +0 -1
  1008. package/dist/lib/providers/openAI/index.js +0 -2
  1009. package/dist/lib/providers/openRouter/client.d.ts +0 -75
  1010. package/dist/lib/providers/openRouter/client.js +0 -402
  1011. package/dist/lib/providers/openRouter/constants.d.ts +0 -1
  1012. package/dist/lib/providers/openRouter/constants.js +0 -2
  1013. package/dist/lib/providers/openRouter/index.d.ts +0 -3
  1014. package/dist/lib/providers/openRouter/index.js +0 -4
  1015. package/dist/lib/providers/openRouter/utils.d.ts +0 -1
  1016. package/dist/lib/providers/openRouter/utils.js +0 -6
  1017. package/dist/lib/providers/openaiChatCompletionsBase.d.ts +0 -212
  1018. package/dist/lib/providers/openaiChatCompletionsBase.js +0 -1154
  1019. package/dist/lib/providers/openaiChatCompletionsClient.d.ts +0 -70
  1020. package/dist/lib/providers/openaiChatCompletionsClient.js +0 -684
  1021. package/dist/lib/providers/openaiCompatCatalog.d.ts +0 -24
  1022. package/dist/lib/providers/openaiCompatCatalog.js +0 -270
  1023. package/dist/lib/providers/openaiCompatible/client.d.ts +0 -21
  1024. package/dist/lib/providers/openaiCompatible/client.js +0 -91
  1025. package/dist/lib/providers/openaiCompatible/constants.d.ts +0 -1
  1026. package/dist/lib/providers/openaiCompatible/constants.js +0 -2
  1027. package/dist/lib/providers/openaiCompatible/index.d.ts +0 -3
  1028. package/dist/lib/providers/openaiCompatible/index.js +0 -4
  1029. package/dist/lib/providers/openaiCompatible/utils.d.ts +0 -5
  1030. package/dist/lib/providers/openaiCompatible/utils.js +0 -17
  1031. package/dist/lib/providers/providerTypeUtils.d.ts +0 -23
  1032. package/dist/lib/providers/providerTypeUtils.js +0 -41
  1033. package/dist/lib/providers/recraft.d.ts +0 -34
  1034. package/dist/lib/providers/recraft.js +0 -197
  1035. package/dist/lib/providers/replicate.d.ts +0 -74
  1036. package/dist/lib/providers/replicate.js +0 -416
  1037. package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +0 -74
  1038. package/dist/lib/providers/sagemaker/adaptive-semaphore.js +0 -216
  1039. package/dist/lib/providers/sagemaker/client.d.ts +0 -161
  1040. package/dist/lib/providers/sagemaker/client.js +0 -509
  1041. package/dist/lib/providers/sagemaker/config.d.ts +0 -87
  1042. package/dist/lib/providers/sagemaker/config.js +0 -355
  1043. package/dist/lib/providers/sagemaker/detection.d.ts +0 -121
  1044. package/dist/lib/providers/sagemaker/detection.js +0 -607
  1045. package/dist/lib/providers/sagemaker/diagnostics.d.ts +0 -14
  1046. package/dist/lib/providers/sagemaker/diagnostics.js +0 -138
  1047. package/dist/lib/providers/sagemaker/error-constants.d.ts +0 -78
  1048. package/dist/lib/providers/sagemaker/error-constants.js +0 -228
  1049. package/dist/lib/providers/sagemaker/errors.d.ts +0 -90
  1050. package/dist/lib/providers/sagemaker/errors.js +0 -301
  1051. package/dist/lib/providers/sagemaker/index.d.ts +0 -34
  1052. package/dist/lib/providers/sagemaker/index.js +0 -69
  1053. package/dist/lib/providers/sagemaker/language-model.d.ts +0 -207
  1054. package/dist/lib/providers/sagemaker/language-model.js +0 -805
  1055. package/dist/lib/providers/sagemaker/parsers.d.ts +0 -111
  1056. package/dist/lib/providers/sagemaker/parsers.js +0 -644
  1057. package/dist/lib/providers/sagemaker/streaming.d.ts +0 -48
  1058. package/dist/lib/providers/sagemaker/streaming.js +0 -390
  1059. package/dist/lib/providers/sagemaker/structured-parser.d.ts +0 -117
  1060. package/dist/lib/providers/sagemaker/structured-parser.js +0 -626
  1061. package/dist/lib/providers/stability.d.ts +0 -37
  1062. package/dist/lib/providers/stability.js +0 -191
  1063. package/dist/lib/providers/voyage.d.ts +0 -46
  1064. package/dist/lib/providers/voyage.js +0 -176
  1065. package/dist/lib/proxy/accountCooldown.d.ts +0 -5
  1066. package/dist/lib/proxy/accountCooldown.js +0 -121
  1067. package/dist/lib/proxy/accountQuota.d.ts +0 -84
  1068. package/dist/lib/proxy/accountQuota.js +0 -459
  1069. package/dist/lib/proxy/accountQuotaRefreshCoordinator.d.ts +0 -19
  1070. package/dist/lib/proxy/accountQuotaRefreshCoordinator.js +0 -105
  1071. package/dist/lib/proxy/accountSelection.d.ts +0 -8
  1072. package/dist/lib/proxy/accountSelection.js +0 -26
  1073. package/dist/lib/proxy/accountUsage.d.ts +0 -45
  1074. package/dist/lib/proxy/accountUsage.js +0 -302
  1075. package/dist/lib/proxy/awsProxyIntegration.d.ts +0 -23
  1076. package/dist/lib/proxy/awsProxyIntegration.js +0 -286
  1077. package/dist/lib/proxy/claudeFormat.d.ts +0 -129
  1078. package/dist/lib/proxy/claudeFormat.js +0 -600
  1079. package/dist/lib/proxy/cloaking/index.d.ts +0 -43
  1080. package/dist/lib/proxy/cloaking/index.js +0 -88
  1081. package/dist/lib/proxy/cloaking/plugins/headerScrubber.d.ts +0 -9
  1082. package/dist/lib/proxy/cloaking/plugins/headerScrubber.js +0 -87
  1083. package/dist/lib/proxy/cloaking/plugins/sessionIdentity.d.ts +0 -11
  1084. package/dist/lib/proxy/cloaking/plugins/sessionIdentity.js +0 -42
  1085. package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.d.ts +0 -11
  1086. package/dist/lib/proxy/cloaking/plugins/systemPromptInjector.js +0 -84
  1087. package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.d.ts +0 -14
  1088. package/dist/lib/proxy/cloaking/plugins/tlsFingerprint.js +0 -39
  1089. package/dist/lib/proxy/cloaking/plugins/wordObfuscator.d.ts +0 -9
  1090. package/dist/lib/proxy/cloaking/plugins/wordObfuscator.js +0 -122
  1091. package/dist/lib/proxy/codexAccountUsage.d.ts +0 -26
  1092. package/dist/lib/proxy/codexAccountUsage.js +0 -174
  1093. package/dist/lib/proxy/codexUsage.d.ts +0 -68
  1094. package/dist/lib/proxy/codexUsage.js +0 -247
  1095. package/dist/lib/proxy/globalInstaller.d.ts +0 -19
  1096. package/dist/lib/proxy/globalInstaller.js +0 -242
  1097. package/dist/lib/proxy/logCleanupScheduler.d.ts +0 -12
  1098. package/dist/lib/proxy/logCleanupScheduler.js +0 -74
  1099. package/dist/lib/proxy/logCleanupWorkerEntry.d.ts +0 -1
  1100. package/dist/lib/proxy/logCleanupWorkerEntry.js +0 -15
  1101. package/dist/lib/proxy/modelRouter.d.ts +0 -34
  1102. package/dist/lib/proxy/modelRouter.js +0 -74
  1103. package/dist/lib/proxy/oauthFetch.d.ts +0 -36
  1104. package/dist/lib/proxy/oauthFetch.js +0 -353
  1105. package/dist/lib/proxy/openaiFormat.d.ts +0 -139
  1106. package/dist/lib/proxy/openaiFormat.js +0 -817
  1107. package/dist/lib/proxy/providerTransportCoordinator.d.ts +0 -17
  1108. package/dist/lib/proxy/providerTransportCoordinator.js +0 -156
  1109. package/dist/lib/proxy/proxyActivity.d.ts +0 -8
  1110. package/dist/lib/proxy/proxyActivity.js +0 -117
  1111. package/dist/lib/proxy/proxyAnalysis.d.ts +0 -3
  1112. package/dist/lib/proxy/proxyAnalysis.js +0 -985
  1113. package/dist/lib/proxy/proxyConfig.d.ts +0 -42
  1114. package/dist/lib/proxy/proxyConfig.js +0 -700
  1115. package/dist/lib/proxy/proxyDispatcher.d.ts +0 -5
  1116. package/dist/lib/proxy/proxyDispatcher.js +0 -61
  1117. package/dist/lib/proxy/proxyEnv.d.ts +0 -3
  1118. package/dist/lib/proxy/proxyEnv.js +0 -73
  1119. package/dist/lib/proxy/proxyFetch.d.ts +0 -50
  1120. package/dist/lib/proxy/proxyFetch.js +0 -729
  1121. package/dist/lib/proxy/proxyHealth.d.ts +0 -20
  1122. package/dist/lib/proxy/proxyHealth.js +0 -76
  1123. package/dist/lib/proxy/proxyLifecycle.d.ts +0 -13
  1124. package/dist/lib/proxy/proxyLifecycle.js +0 -383
  1125. package/dist/lib/proxy/proxyPaths.d.ts +0 -17
  1126. package/dist/lib/proxy/proxyPaths.js +0 -42
  1127. package/dist/lib/proxy/proxyReplay.d.ts +0 -10
  1128. package/dist/lib/proxy/proxyReplay.js +0 -765
  1129. package/dist/lib/proxy/proxyTracer.d.ts +0 -128
  1130. package/dist/lib/proxy/proxyTracer.js +0 -748
  1131. package/dist/lib/proxy/proxyTranslationEngine.d.ts +0 -125
  1132. package/dist/lib/proxy/proxyTranslationEngine.js +0 -740
  1133. package/dist/lib/proxy/quietDetector.d.ts +0 -17
  1134. package/dist/lib/proxy/quietDetector.js +0 -125
  1135. package/dist/lib/proxy/quotaHeaders.d.ts +0 -73
  1136. package/dist/lib/proxy/quotaHeaders.js +0 -189
  1137. package/dist/lib/proxy/rawStreamCapture.d.ts +0 -2
  1138. package/dist/lib/proxy/rawStreamCapture.js +0 -129
  1139. package/dist/lib/proxy/requestLogger.d.ts +0 -78
  1140. package/dist/lib/proxy/requestLogger.js +0 -770
  1141. package/dist/lib/proxy/rollingProxyServer.d.ts +0 -3
  1142. package/dist/lib/proxy/rollingProxyServer.js +0 -220
  1143. package/dist/lib/proxy/rollingWorkerProcess.d.ts +0 -2
  1144. package/dist/lib/proxy/rollingWorkerProcess.js +0 -199
  1145. package/dist/lib/proxy/rollingWorkerProtocol.d.ts +0 -5
  1146. package/dist/lib/proxy/rollingWorkerProtocol.js +0 -46
  1147. package/dist/lib/proxy/rollingWorkerSupervisor.d.ts +0 -44
  1148. package/dist/lib/proxy/rollingWorkerSupervisor.js +0 -530
  1149. package/dist/lib/proxy/routingEvidence.d.ts +0 -17
  1150. package/dist/lib/proxy/routingEvidence.js +0 -59
  1151. package/dist/lib/proxy/routingPolicy.d.ts +0 -19
  1152. package/dist/lib/proxy/routingPolicy.js +0 -75
  1153. package/dist/lib/proxy/runtimeConfig.d.ts +0 -27
  1154. package/dist/lib/proxy/runtimeConfig.js +0 -448
  1155. package/dist/lib/proxy/snapshotPersistence.d.ts +0 -2
  1156. package/dist/lib/proxy/snapshotPersistence.js +0 -41
  1157. package/dist/lib/proxy/socketWorkerRuntime.d.ts +0 -14
  1158. package/dist/lib/proxy/socketWorkerRuntime.js +0 -322
  1159. package/dist/lib/proxy/sseInterceptor.d.ts +0 -41
  1160. package/dist/lib/proxy/sseInterceptor.js +0 -496
  1161. package/dist/lib/proxy/streamOutcome.d.ts +0 -5
  1162. package/dist/lib/proxy/streamOutcome.js +0 -104
  1163. package/dist/lib/proxy/systemRelocation.d.ts +0 -21
  1164. package/dist/lib/proxy/systemRelocation.js +0 -51
  1165. package/dist/lib/proxy/tokenRefresh.d.ts +0 -18
  1166. package/dist/lib/proxy/tokenRefresh.js +0 -257
  1167. package/dist/lib/proxy/updateChecker.d.ts +0 -17
  1168. package/dist/lib/proxy/updateChecker.js +0 -98
  1169. package/dist/lib/proxy/updateCoordinator.d.ts +0 -7
  1170. package/dist/lib/proxy/updateCoordinator.js +0 -60
  1171. package/dist/lib/proxy/updateState.d.ts +0 -69
  1172. package/dist/lib/proxy/updateState.js +0 -309
  1173. package/dist/lib/proxy/updaterSupervisor.d.ts +0 -3
  1174. package/dist/lib/proxy/updaterSupervisor.js +0 -58
  1175. package/dist/lib/proxy/usageStats.d.ts +0 -91
  1176. package/dist/lib/proxy/usageStats.js +0 -1154
  1177. package/dist/lib/proxy/utils/noProxyUtils.d.ts +0 -39
  1178. package/dist/lib/proxy/utils/noProxyUtils.js +0 -150
  1179. package/dist/lib/proxy/workerLog.d.ts +0 -6
  1180. package/dist/lib/proxy/workerLog.js +0 -42
  1181. package/dist/lib/rag/ChunkerFactory.d.ts +0 -91
  1182. package/dist/lib/rag/ChunkerFactory.js +0 -321
  1183. package/dist/lib/rag/ChunkerRegistry.d.ts +0 -91
  1184. package/dist/lib/rag/ChunkerRegistry.js +0 -422
  1185. package/dist/lib/rag/chunkers/BaseChunker.d.ts +0 -53
  1186. package/dist/lib/rag/chunkers/BaseChunker.js +0 -158
  1187. package/dist/lib/rag/chunkers/CharacterChunker.d.ts +0 -18
  1188. package/dist/lib/rag/chunkers/CharacterChunker.js +0 -29
  1189. package/dist/lib/rag/chunkers/HTMLChunker.d.ts +0 -19
  1190. package/dist/lib/rag/chunkers/HTMLChunker.js +0 -39
  1191. package/dist/lib/rag/chunkers/JSONChunker.d.ts +0 -19
  1192. package/dist/lib/rag/chunkers/JSONChunker.js +0 -69
  1193. package/dist/lib/rag/chunkers/LaTeXChunker.d.ts +0 -15
  1194. package/dist/lib/rag/chunkers/LaTeXChunker.js +0 -64
  1195. package/dist/lib/rag/chunkers/MarkdownChunker.d.ts +0 -37
  1196. package/dist/lib/rag/chunkers/MarkdownChunker.js +0 -315
  1197. package/dist/lib/rag/chunkers/RecursiveChunker.d.ts +0 -27
  1198. package/dist/lib/rag/chunkers/RecursiveChunker.js +0 -140
  1199. package/dist/lib/rag/chunkers/SemanticMarkdownChunker.d.ts +0 -22
  1200. package/dist/lib/rag/chunkers/SemanticMarkdownChunker.js +0 -139
  1201. package/dist/lib/rag/chunkers/SentenceChunker.d.ts +0 -19
  1202. package/dist/lib/rag/chunkers/SentenceChunker.js +0 -67
  1203. package/dist/lib/rag/chunkers/TokenChunker.d.ts +0 -19
  1204. package/dist/lib/rag/chunkers/TokenChunker.js +0 -62
  1205. package/dist/lib/rag/chunkers/index.d.ts +0 -15
  1206. package/dist/lib/rag/chunkers/index.js +0 -16
  1207. package/dist/lib/rag/chunking/characterChunker.d.ts +0 -16
  1208. package/dist/lib/rag/chunking/characterChunker.js +0 -143
  1209. package/dist/lib/rag/chunking/chunkerRegistry.d.ts +0 -67
  1210. package/dist/lib/rag/chunking/chunkerRegistry.js +0 -195
  1211. package/dist/lib/rag/chunking/htmlChunker.d.ts +0 -34
  1212. package/dist/lib/rag/chunking/htmlChunker.js +0 -248
  1213. package/dist/lib/rag/chunking/index.d.ts +0 -15
  1214. package/dist/lib/rag/chunking/index.js +0 -18
  1215. package/dist/lib/rag/chunking/jsonChunker.d.ts +0 -20
  1216. package/dist/lib/rag/chunking/jsonChunker.js +0 -282
  1217. package/dist/lib/rag/chunking/latexChunker.d.ts +0 -26
  1218. package/dist/lib/rag/chunking/latexChunker.js +0 -252
  1219. package/dist/lib/rag/chunking/markdownChunker.d.ts +0 -35
  1220. package/dist/lib/rag/chunking/markdownChunker.js +0 -383
  1221. package/dist/lib/rag/chunking/recursiveChunker.d.ts +0 -19
  1222. package/dist/lib/rag/chunking/recursiveChunker.js +0 -149
  1223. package/dist/lib/rag/chunking/semanticChunker.d.ts +0 -41
  1224. package/dist/lib/rag/chunking/semanticChunker.js +0 -306
  1225. package/dist/lib/rag/chunking/sentenceChunker.d.ts +0 -25
  1226. package/dist/lib/rag/chunking/sentenceChunker.js +0 -231
  1227. package/dist/lib/rag/chunking/tokenChunker.d.ts +0 -36
  1228. package/dist/lib/rag/chunking/tokenChunker.js +0 -184
  1229. package/dist/lib/rag/document/MDocument.d.ts +0 -198
  1230. package/dist/lib/rag/document/MDocument.js +0 -392
  1231. package/dist/lib/rag/document/index.d.ts +0 -5
  1232. package/dist/lib/rag/document/index.js +0 -6
  1233. package/dist/lib/rag/document/loaders.d.ts +0 -142
  1234. package/dist/lib/rag/document/loaders.js +0 -544
  1235. package/dist/lib/rag/errors/RAGError.d.ts +0 -244
  1236. package/dist/lib/rag/errors/RAGError.js +0 -275
  1237. package/dist/lib/rag/errors/index.d.ts +0 -6
  1238. package/dist/lib/rag/errors/index.js +0 -7
  1239. package/dist/lib/rag/graphRag/graphRAG.d.ts +0 -115
  1240. package/dist/lib/rag/graphRag/graphRAG.js +0 -402
  1241. package/dist/lib/rag/graphRag/index.d.ts +0 -4
  1242. package/dist/lib/rag/graphRag/index.js +0 -5
  1243. package/dist/lib/rag/index.d.ts +0 -104
  1244. package/dist/lib/rag/index.js +0 -144
  1245. package/dist/lib/rag/metadata/MetadataExtractorFactory.d.ts +0 -103
  1246. package/dist/lib/rag/metadata/MetadataExtractorFactory.js +0 -419
  1247. package/dist/lib/rag/metadata/MetadataExtractorRegistry.d.ts +0 -99
  1248. package/dist/lib/rag/metadata/MetadataExtractorRegistry.js +0 -363
  1249. package/dist/lib/rag/metadata/index.d.ts +0 -6
  1250. package/dist/lib/rag/metadata/index.js +0 -10
  1251. package/dist/lib/rag/metadata/metadataExtractor.d.ts +0 -69
  1252. package/dist/lib/rag/metadata/metadataExtractor.js +0 -281
  1253. package/dist/lib/rag/pipeline/RAGPipeline.d.ts +0 -105
  1254. package/dist/lib/rag/pipeline/RAGPipeline.js +0 -436
  1255. package/dist/lib/rag/pipeline/contextAssembly.d.ts +0 -80
  1256. package/dist/lib/rag/pipeline/contextAssembly.js +0 -342
  1257. package/dist/lib/rag/pipeline/index.d.ts +0 -5
  1258. package/dist/lib/rag/pipeline/index.js +0 -6
  1259. package/dist/lib/rag/ragIntegration.d.ts +0 -30
  1260. package/dist/lib/rag/ragIntegration.js +0 -327
  1261. package/dist/lib/rag/reranker/RerankerFactory.d.ts +0 -124
  1262. package/dist/lib/rag/reranker/RerankerFactory.js +0 -431
  1263. package/dist/lib/rag/reranker/RerankerRegistry.d.ts +0 -119
  1264. package/dist/lib/rag/reranker/RerankerRegistry.js +0 -403
  1265. package/dist/lib/rag/reranker/index.d.ts +0 -6
  1266. package/dist/lib/rag/reranker/index.js +0 -10
  1267. package/dist/lib/rag/reranker/reranker.d.ts +0 -70
  1268. package/dist/lib/rag/reranker/reranker.js +0 -307
  1269. package/dist/lib/rag/resilience/CircuitBreaker.d.ts +0 -142
  1270. package/dist/lib/rag/resilience/CircuitBreaker.js +0 -432
  1271. package/dist/lib/rag/resilience/RetryHandler.d.ts +0 -95
  1272. package/dist/lib/rag/resilience/RetryHandler.js +0 -305
  1273. package/dist/lib/rag/resilience/index.d.ts +0 -7
  1274. package/dist/lib/rag/resilience/index.js +0 -8
  1275. package/dist/lib/rag/retrieval/hybridSearch.d.ts +0 -53
  1276. package/dist/lib/rag/retrieval/hybridSearch.js +0 -339
  1277. package/dist/lib/rag/retrieval/index.d.ts +0 -5
  1278. package/dist/lib/rag/retrieval/index.js +0 -6
  1279. package/dist/lib/rag/retrieval/vectorQueryTool.d.ts +0 -72
  1280. package/dist/lib/rag/retrieval/vectorQueryTool.js +0 -325
  1281. package/dist/lib/rag/stores/chroma.d.ts +0 -90
  1282. package/dist/lib/rag/stores/chroma.js +0 -281
  1283. package/dist/lib/rag/stores/index.d.ts +0 -21
  1284. package/dist/lib/rag/stores/index.js +0 -22
  1285. package/dist/lib/rag/stores/pgvector.d.ts +0 -95
  1286. package/dist/lib/rag/stores/pgvector.js +0 -400
  1287. package/dist/lib/rag/stores/pinecone.d.ts +0 -85
  1288. package/dist/lib/rag/stores/pinecone.js +0 -159
  1289. package/dist/lib/routing/classifierRouter.d.ts +0 -52
  1290. package/dist/lib/routing/classifierRouter.js +0 -269
  1291. package/dist/lib/routing/classifierStrategies.d.ts +0 -23
  1292. package/dist/lib/routing/classifierStrategies.js +0 -156
  1293. package/dist/lib/routing/index.d.ts +0 -9
  1294. package/dist/lib/routing/index.js +0 -10
  1295. package/dist/lib/routing/modelPool.d.ts +0 -83
  1296. package/dist/lib/routing/modelPool.js +0 -243
  1297. package/dist/lib/routing/requestRouter.d.ts +0 -30
  1298. package/dist/lib/routing/requestRouter.js +0 -81
  1299. package/dist/lib/sdk/toolRegistration.d.ts +0 -74
  1300. package/dist/lib/sdk/toolRegistration.js +0 -383
  1301. package/dist/lib/server/abstract/baseServerAdapter.d.ts +0 -171
  1302. package/dist/lib/server/abstract/baseServerAdapter.js +0 -575
  1303. package/dist/lib/server/adapters/expressAdapter.d.ts +0 -70
  1304. package/dist/lib/server/adapters/expressAdapter.js +0 -487
  1305. package/dist/lib/server/adapters/fastifyAdapter.d.ts +0 -70
  1306. package/dist/lib/server/adapters/fastifyAdapter.js +0 -473
  1307. package/dist/lib/server/adapters/honoAdapter.d.ts +0 -77
  1308. package/dist/lib/server/adapters/honoAdapter.js +0 -633
  1309. package/dist/lib/server/adapters/index.d.ts +0 -7
  1310. package/dist/lib/server/adapters/index.js +0 -8
  1311. package/dist/lib/server/adapters/koaAdapter.d.ts +0 -79
  1312. package/dist/lib/server/adapters/koaAdapter.js +0 -511
  1313. package/dist/lib/server/errors.d.ts +0 -193
  1314. package/dist/lib/server/errors.js +0 -487
  1315. package/dist/lib/server/factory/serverAdapterFactory.d.ts +0 -73
  1316. package/dist/lib/server/factory/serverAdapterFactory.js +0 -161
  1317. package/dist/lib/server/index.d.ts +0 -46
  1318. package/dist/lib/server/index.js +0 -122
  1319. package/dist/lib/server/middleware/abortSignal.d.ts +0 -52
  1320. package/dist/lib/server/middleware/abortSignal.js +0 -112
  1321. package/dist/lib/server/middleware/auth.d.ts +0 -166
  1322. package/dist/lib/server/middleware/auth.js +0 -404
  1323. package/dist/lib/server/middleware/cache.d.ts +0 -161
  1324. package/dist/lib/server/middleware/cache.js +0 -370
  1325. package/dist/lib/server/middleware/common.d.ts +0 -108
  1326. package/dist/lib/server/middleware/common.js +0 -297
  1327. package/dist/lib/server/middleware/deprecation.d.ts +0 -40
  1328. package/dist/lib/server/middleware/deprecation.js +0 -191
  1329. package/dist/lib/server/middleware/index.d.ts +0 -12
  1330. package/dist/lib/server/middleware/index.js +0 -13
  1331. package/dist/lib/server/middleware/mcpBodyAttachment.d.ts +0 -42
  1332. package/dist/lib/server/middleware/mcpBodyAttachment.js +0 -64
  1333. package/dist/lib/server/middleware/rateLimit.d.ts +0 -70
  1334. package/dist/lib/server/middleware/rateLimit.js +0 -224
  1335. package/dist/lib/server/middleware/validation.d.ts +0 -69
  1336. package/dist/lib/server/middleware/validation.js +0 -393
  1337. package/dist/lib/server/openapi/generator.d.ts +0 -61
  1338. package/dist/lib/server/openapi/generator.js +0 -399
  1339. package/dist/lib/server/openapi/index.d.ts +0 -7
  1340. package/dist/lib/server/openapi/index.js +0 -37
  1341. package/dist/lib/server/openapi/schemas.d.ts +0 -94
  1342. package/dist/lib/server/openapi/schemas.js +0 -696
  1343. package/dist/lib/server/openapi/templates.d.ts +0 -108
  1344. package/dist/lib/server/openapi/templates.js +0 -375
  1345. package/dist/lib/server/routes/agentRoutes.d.ts +0 -9
  1346. package/dist/lib/server/routes/agentRoutes.js +0 -423
  1347. package/dist/lib/server/routes/claudeProxyRoutes.d.ts +0 -491
  1348. package/dist/lib/server/routes/claudeProxyRoutes.js +0 -6455
  1349. package/dist/lib/server/routes/codexProxyRoutes.d.ts +0 -64
  1350. package/dist/lib/server/routes/codexProxyRoutes.js +0 -482
  1351. package/dist/lib/server/routes/healthRoutes.d.ts +0 -9
  1352. package/dist/lib/server/routes/healthRoutes.js +0 -234
  1353. package/dist/lib/server/routes/index.d.ts +0 -25
  1354. package/dist/lib/server/routes/index.js +0 -66
  1355. package/dist/lib/server/routes/mcpRoutes.d.ts +0 -9
  1356. package/dist/lib/server/routes/mcpRoutes.js +0 -376
  1357. package/dist/lib/server/routes/memoryRoutes.d.ts +0 -11
  1358. package/dist/lib/server/routes/memoryRoutes.js +0 -366
  1359. package/dist/lib/server/routes/openApiRoutes.d.ts +0 -34
  1360. package/dist/lib/server/routes/openApiRoutes.js +0 -151
  1361. package/dist/lib/server/routes/openaiProxyRoutes.d.ts +0 -38
  1362. package/dist/lib/server/routes/openaiProxyRoutes.js +0 -404
  1363. package/dist/lib/server/routes/toolRoutes.d.ts +0 -9
  1364. package/dist/lib/server/routes/toolRoutes.js +0 -272
  1365. package/dist/lib/server/streaming/dataStream.d.ts +0 -212
  1366. package/dist/lib/server/streaming/dataStream.js +0 -502
  1367. package/dist/lib/server/streaming/index.d.ts +0 -5
  1368. package/dist/lib/server/streaming/index.js +0 -17
  1369. package/dist/lib/server/utils/redaction.d.ts +0 -68
  1370. package/dist/lib/server/utils/redaction.js +0 -321
  1371. package/dist/lib/server/utils/validation.d.ts +0 -153
  1372. package/dist/lib/server/utils/validation.js +0 -265
  1373. package/dist/lib/server/voice/frameBus.d.ts +0 -8
  1374. package/dist/lib/server/voice/frameBus.js +0 -25
  1375. package/dist/lib/server/voice/tokenCompare.d.ts +0 -14
  1376. package/dist/lib/server/voice/tokenCompare.js +0 -23
  1377. package/dist/lib/server/voice/turnManager.d.ts +0 -15
  1378. package/dist/lib/server/voice/turnManager.js +0 -36
  1379. package/dist/lib/server/voice/voiceServerApp.d.ts +0 -1
  1380. package/dist/lib/server/voice/voiceServerApp.js +0 -177
  1381. package/dist/lib/server/voice/voiceWebSocketHandler.d.ts +0 -24
  1382. package/dist/lib/server/voice/voiceWebSocketHandler.js +0 -669
  1383. package/dist/lib/server/websocket/WebSocketHandler.d.ts +0 -107
  1384. package/dist/lib/server/websocket/WebSocketHandler.js +0 -384
  1385. package/dist/lib/server/websocket/index.d.ts +0 -4
  1386. package/dist/lib/server/websocket/index.js +0 -5
  1387. package/dist/lib/services/server/ai/observability/instrumentation.d.ts +0 -229
  1388. package/dist/lib/services/server/ai/observability/instrumentation.js +0 -1244
  1389. package/dist/lib/session/globalSessionState.d.ts +0 -71
  1390. package/dist/lib/session/globalSessionState.js +0 -235
  1391. package/dist/lib/skills/skillMatcher.d.ts +0 -55
  1392. package/dist/lib/skills/skillMatcher.js +0 -170
  1393. package/dist/lib/skills/skillSessionTracker.d.ts +0 -52
  1394. package/dist/lib/skills/skillSessionTracker.js +0 -150
  1395. package/dist/lib/skills/skillStoreRedis.d.ts +0 -30
  1396. package/dist/lib/skills/skillStoreRedis.js +0 -114
  1397. package/dist/lib/skills/skillStoreS3.d.ts +0 -56
  1398. package/dist/lib/skills/skillStoreS3.js +0 -305
  1399. package/dist/lib/skills/skillStores.d.ts +0 -58
  1400. package/dist/lib/skills/skillStores.js +0 -341
  1401. package/dist/lib/skills/skillTools.d.ts +0 -35
  1402. package/dist/lib/skills/skillTools.js +0 -451
  1403. package/dist/lib/skills/skillsManager.d.ts +0 -78
  1404. package/dist/lib/skills/skillsManager.js +0 -281
  1405. package/dist/lib/tasks/autoresearchTaskExecutor.d.ts +0 -31
  1406. package/dist/lib/tasks/autoresearchTaskExecutor.js +0 -304
  1407. package/dist/lib/tasks/backends/bullmqBackend.d.ts +0 -33
  1408. package/dist/lib/tasks/backends/bullmqBackend.js +0 -206
  1409. package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +0 -27
  1410. package/dist/lib/tasks/backends/nodeTimeoutBackend.js +0 -141
  1411. package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +0 -31
  1412. package/dist/lib/tasks/backends/taskBackendRegistry.js +0 -66
  1413. package/dist/lib/tasks/errors.d.ts +0 -33
  1414. package/dist/lib/tasks/errors.js +0 -19
  1415. package/dist/lib/tasks/store/fileTaskStore.d.ts +0 -43
  1416. package/dist/lib/tasks/store/fileTaskStore.js +0 -179
  1417. package/dist/lib/tasks/store/redisTaskStore.d.ts +0 -43
  1418. package/dist/lib/tasks/store/redisTaskStore.js +0 -222
  1419. package/dist/lib/tasks/taskExecutor.d.ts +0 -22
  1420. package/dist/lib/tasks/taskExecutor.js +0 -170
  1421. package/dist/lib/tasks/taskManager.d.ts +0 -65
  1422. package/dist/lib/tasks/taskManager.js +0 -545
  1423. package/dist/lib/tasks/tools/taskTools.d.ts +0 -20
  1424. package/dist/lib/tasks/tools/taskTools.js +0 -265
  1425. package/dist/lib/telemetry/attributes.d.ts +0 -136
  1426. package/dist/lib/telemetry/attributes.js +0 -165
  1427. package/dist/lib/telemetry/index.d.ts +0 -20
  1428. package/dist/lib/telemetry/index.js +0 -28
  1429. package/dist/lib/telemetry/telemetryService.d.ts +0 -58
  1430. package/dist/lib/telemetry/telemetryService.js +0 -387
  1431. package/dist/lib/telemetry/traceContext.d.ts +0 -9
  1432. package/dist/lib/telemetry/traceContext.js +0 -19
  1433. package/dist/lib/telemetry/tracers.d.ts +0 -38
  1434. package/dist/lib/telemetry/tracers.js +0 -40
  1435. package/dist/lib/telemetry/withSpan.d.ts +0 -39
  1436. package/dist/lib/telemetry/withSpan.js +0 -138
  1437. package/dist/lib/tools/toolDiscovery.d.ts +0 -70
  1438. package/dist/lib/tools/toolDiscovery.js +0 -303
  1439. package/dist/lib/tools/toolGate.d.ts +0 -16
  1440. package/dist/lib/tools/toolGate.js +0 -51
  1441. package/dist/lib/tools/toolPolicy.d.ts +0 -40
  1442. package/dist/lib/tools/toolPolicy.js +0 -194
  1443. package/dist/lib/types/action.d.ts +0 -207
  1444. package/dist/lib/types/action.js +0 -7
  1445. package/dist/lib/types/agentNetwork.d.ts +0 -1199
  1446. package/dist/lib/types/agentNetwork.js +0 -8
  1447. package/dist/lib/types/aliases.d.ts +0 -368
  1448. package/dist/lib/types/aliases.js +0 -50
  1449. package/dist/lib/types/analytics.d.ts +0 -215
  1450. package/dist/lib/types/analytics.js +0 -6
  1451. package/dist/lib/types/artifact.d.ts +0 -70
  1452. package/dist/lib/types/artifact.js +0 -11
  1453. package/dist/lib/types/auth.d.ts +0 -1140
  1454. package/dist/lib/types/auth.js +0 -10
  1455. package/dist/lib/types/autoresearch.d.ts +0 -206
  1456. package/dist/lib/types/autoresearch.js +0 -18
  1457. package/dist/lib/types/avatar.d.ts +0 -150
  1458. package/dist/lib/types/avatar.js +0 -20
  1459. package/dist/lib/types/circuitBreakerErrors.d.ts +0 -30
  1460. package/dist/lib/types/circuitBreakerErrors.js +0 -35
  1461. package/dist/lib/types/classifierRouter.d.ts +0 -194
  1462. package/dist/lib/types/classifierRouter.js +0 -17
  1463. package/dist/lib/types/cli.d.ts +0 -1734
  1464. package/dist/lib/types/cli.js +0 -22
  1465. package/dist/lib/types/client.d.ts +0 -1287
  1466. package/dist/lib/types/client.js +0 -11
  1467. package/dist/lib/types/codex.d.ts +0 -95
  1468. package/dist/lib/types/codex.js +0 -15
  1469. package/dist/lib/types/common.d.ts +0 -434
  1470. package/dist/lib/types/common.js +0 -52
  1471. package/dist/lib/types/config.d.ts +0 -506
  1472. package/dist/lib/types/config.js +0 -54
  1473. package/dist/lib/types/content.d.ts +0 -18
  1474. package/dist/lib/types/content.js +0 -20
  1475. package/dist/lib/types/context.d.ts +0 -587
  1476. package/dist/lib/types/context.js +0 -401
  1477. package/dist/lib/types/conversation.d.ts +0 -637
  1478. package/dist/lib/types/conversation.js +0 -48
  1479. package/dist/lib/types/conversationMemoryInterface.d.ts +0 -59
  1480. package/dist/lib/types/conversationMemoryInterface.js +0 -7
  1481. package/dist/lib/types/domain.d.ts +0 -62
  1482. package/dist/lib/types/domain.js +0 -6
  1483. package/dist/lib/types/dynamic.d.ts +0 -110
  1484. package/dist/lib/types/dynamic.js +0 -10
  1485. package/dist/lib/types/elicitation.d.ts +0 -278
  1486. package/dist/lib/types/elicitation.js +0 -11
  1487. package/dist/lib/types/enums.d.ts +0 -9
  1488. package/dist/lib/types/enums.js +0 -10
  1489. package/dist/lib/types/errors.d.ts +0 -188
  1490. package/dist/lib/types/errors.js +0 -262
  1491. package/dist/lib/types/evaluation.d.ts +0 -647
  1492. package/dist/lib/types/evaluation.js +0 -2
  1493. package/dist/lib/types/evaluationProviders.d.ts +0 -104
  1494. package/dist/lib/types/evaluationProviders.js +0 -6
  1495. package/dist/lib/types/exporter.d.ts +0 -257
  1496. package/dist/lib/types/exporter.js +0 -6
  1497. package/dist/lib/types/externalMcp.d.ts +0 -349
  1498. package/dist/lib/types/externalMcp.js +0 -7
  1499. package/dist/lib/types/file.d.ts +0 -616
  1500. package/dist/lib/types/file.js +0 -5
  1501. package/dist/lib/types/fileReference.d.ts +0 -243
  1502. package/dist/lib/types/fileReference.js +0 -22
  1503. package/dist/lib/types/generate.d.ts +0 -1520
  1504. package/dist/lib/types/generate.js +0 -2
  1505. package/dist/lib/types/grounding.d.ts +0 -231
  1506. package/dist/lib/types/grounding.js +0 -12
  1507. package/dist/lib/types/guardrails.d.ts +0 -116
  1508. package/dist/lib/types/guardrails.js +0 -2
  1509. package/dist/lib/types/hitl.d.ts +0 -237
  1510. package/dist/lib/types/hitl.js +0 -9
  1511. package/dist/lib/types/imageGen.d.ts +0 -255
  1512. package/dist/lib/types/imageGen.js +0 -25
  1513. package/dist/lib/types/index.d.ts +0 -86
  1514. package/dist/lib/types/index.js +0 -98
  1515. package/dist/lib/types/ioProcessor.d.ts +0 -119
  1516. package/dist/lib/types/ioProcessor.js +0 -10
  1517. package/dist/lib/types/isolatedAgent.d.ts +0 -365
  1518. package/dist/lib/types/isolatedAgent.js +0 -12
  1519. package/dist/lib/types/knowledge.d.ts +0 -342
  1520. package/dist/lib/types/knowledge.js +0 -30
  1521. package/dist/lib/types/livekit.d.ts +0 -512
  1522. package/dist/lib/types/livekit.js +0 -13
  1523. package/dist/lib/types/loopEngine.d.ts +0 -306
  1524. package/dist/lib/types/loopEngine.js +0 -2
  1525. package/dist/lib/types/mcp.d.ts +0 -2135
  1526. package/dist/lib/types/mcp.js +0 -6
  1527. package/dist/lib/types/mcpOutput.d.ts +0 -40
  1528. package/dist/lib/types/mcpOutput.js +0 -9
  1529. package/dist/lib/types/memory.d.ts +0 -96
  1530. package/dist/lib/types/memory.js +0 -23
  1531. package/dist/lib/types/middleware.d.ts +0 -435
  1532. package/dist/lib/types/middleware.js +0 -2
  1533. package/dist/lib/types/model.d.ts +0 -342
  1534. package/dist/lib/types/model.js +0 -32
  1535. package/dist/lib/types/modelPool.d.ts +0 -47
  1536. package/dist/lib/types/modelPool.js +0 -11
  1537. package/dist/lib/types/multimodal.d.ts +0 -614
  1538. package/dist/lib/types/multimodal.js +0 -144
  1539. package/dist/lib/types/music.d.ts +0 -172
  1540. package/dist/lib/types/music.js +0 -21
  1541. package/dist/lib/types/nativeTools.d.ts +0 -16
  1542. package/dist/lib/types/nativeTools.js +0 -2
  1543. package/dist/lib/types/noOutputSentinel.d.ts +0 -26
  1544. package/dist/lib/types/noOutputSentinel.js +0 -2
  1545. package/dist/lib/types/observability.d.ts +0 -502
  1546. package/dist/lib/types/observability.js +0 -7
  1547. package/dist/lib/types/openaiCompatible.d.ts +0 -287
  1548. package/dist/lib/types/openaiCompatible.js +0 -2
  1549. package/dist/lib/types/ppt.d.ts +0 -1093
  1550. package/dist/lib/types/ppt.js +0 -37
  1551. package/dist/lib/types/processor.d.ts +0 -993
  1552. package/dist/lib/types/processor.js +0 -91
  1553. package/dist/lib/types/providers.d.ts +0 -2155
  1554. package/dist/lib/types/providers.js +0 -112
  1555. package/dist/lib/types/proxy.d.ts +0 -2789
  1556. package/dist/lib/types/proxy.js +0 -17
  1557. package/dist/lib/types/proxyClient.d.ts +0 -54
  1558. package/dist/lib/types/proxyClient.js +0 -2
  1559. package/dist/lib/types/rag.d.ts +0 -1332
  1560. package/dist/lib/types/rag.js +0 -2
  1561. package/dist/lib/types/realtime.d.ts +0 -243
  1562. package/dist/lib/types/realtime.js +0 -70
  1563. package/dist/lib/types/replicate.d.ts +0 -67
  1564. package/dist/lib/types/replicate.js +0 -10
  1565. package/dist/lib/types/requestRouter.d.ts +0 -75
  1566. package/dist/lib/types/requestRouter.js +0 -16
  1567. package/dist/lib/types/safeFetch.d.ts +0 -24
  1568. package/dist/lib/types/safeFetch.js +0 -7
  1569. package/dist/lib/types/scorer.d.ts +0 -564
  1570. package/dist/lib/types/scorer.js +0 -6
  1571. package/dist/lib/types/sdk.d.ts +0 -23
  1572. package/dist/lib/types/sdk.js +0 -9
  1573. package/dist/lib/types/server.d.ts +0 -1192
  1574. package/dist/lib/types/server.js +0 -68
  1575. package/dist/lib/types/service.d.ts +0 -79
  1576. package/dist/lib/types/service.js +0 -6
  1577. package/dist/lib/types/skills.d.ts +0 -427
  1578. package/dist/lib/types/skills.js +0 -17
  1579. package/dist/lib/types/span.d.ts +0 -247
  1580. package/dist/lib/types/span.js +0 -96
  1581. package/dist/lib/types/stream.d.ts +0 -771
  1582. package/dist/lib/types/stream.js +0 -2
  1583. package/dist/lib/types/streamDedup.d.ts +0 -14
  1584. package/dist/lib/types/streamDedup.js +0 -2
  1585. package/dist/lib/types/streaming.d.ts +0 -15
  1586. package/dist/lib/types/streaming.js +0 -2
  1587. package/dist/lib/types/stt.d.ts +0 -585
  1588. package/dist/lib/types/stt.js +0 -90
  1589. package/dist/lib/types/subscription.d.ts +0 -1064
  1590. package/dist/lib/types/subscription.js +0 -10
  1591. package/dist/lib/types/task.d.ts +0 -313
  1592. package/dist/lib/types/task.js +0 -37
  1593. package/dist/lib/types/taskClassification.d.ts +0 -52
  1594. package/dist/lib/types/taskClassification.js +0 -6
  1595. package/dist/lib/types/toolDedup.d.ts +0 -45
  1596. package/dist/lib/types/toolDedup.js +0 -14
  1597. package/dist/lib/types/toolResolution.d.ts +0 -83
  1598. package/dist/lib/types/toolResolution.js +0 -11
  1599. package/dist/lib/types/toolRouting.d.ts +0 -350
  1600. package/dist/lib/types/toolRouting.js +0 -19
  1601. package/dist/lib/types/tools.d.ts +0 -531
  1602. package/dist/lib/types/tools.js +0 -26
  1603. package/dist/lib/types/tts.d.ts +0 -195
  1604. package/dist/lib/types/tts.js +0 -65
  1605. package/dist/lib/types/utilities.d.ts +0 -310
  1606. package/dist/lib/types/utilities.js +0 -5
  1607. package/dist/lib/types/vectorStoreChroma.d.ts +0 -67
  1608. package/dist/lib/types/vectorStoreChroma.js +0 -12
  1609. package/dist/lib/types/vectorStorePinecone.d.ts +0 -48
  1610. package/dist/lib/types/vectorStorePinecone.js +0 -12
  1611. package/dist/lib/types/video.d.ts +0 -89
  1612. package/dist/lib/types/video.js +0 -15
  1613. package/dist/lib/types/voice.d.ts +0 -272
  1614. package/dist/lib/types/voice.js +0 -137
  1615. package/dist/lib/types/workflow.d.ts +0 -598
  1616. package/dist/lib/types/workflow.js +0 -24
  1617. package/dist/lib/utils/analyticsUtils.d.ts +0 -37
  1618. package/dist/lib/utils/analyticsUtils.js +0 -110
  1619. package/dist/lib/utils/anthropicCacheBreakpoints.d.ts +0 -43
  1620. package/dist/lib/utils/anthropicCacheBreakpoints.js +0 -151
  1621. package/dist/lib/utils/anthropicTraceSanitizer.d.ts +0 -7
  1622. package/dist/lib/utils/anthropicTraceSanitizer.js +0 -26
  1623. package/dist/lib/utils/async/delay.d.ts +0 -40
  1624. package/dist/lib/utils/async/delay.js +0 -43
  1625. package/dist/lib/utils/async/index.d.ts +0 -23
  1626. package/dist/lib/utils/async/index.js +0 -24
  1627. package/dist/lib/utils/async/retry.d.ts +0 -107
  1628. package/dist/lib/utils/async/retry.js +0 -172
  1629. package/dist/lib/utils/async/withTimeout.d.ts +0 -85
  1630. package/dist/lib/utils/async/withTimeout.js +0 -144
  1631. package/dist/lib/utils/asyncMutex.d.ts +0 -14
  1632. package/dist/lib/utils/asyncMutex.js +0 -61
  1633. package/dist/lib/utils/audioFormatDetector.d.ts +0 -15
  1634. package/dist/lib/utils/audioFormatDetector.js +0 -34
  1635. package/dist/lib/utils/avatarProcessor.d.ts +0 -78
  1636. package/dist/lib/utils/avatarProcessor.js +0 -173
  1637. package/dist/lib/utils/cloneOptions.d.ts +0 -36
  1638. package/dist/lib/utils/cloneOptions.js +0 -62
  1639. package/dist/lib/utils/conversationMemory.d.ts +0 -80
  1640. package/dist/lib/utils/conversationMemory.js +0 -670
  1641. package/dist/lib/utils/csvProcessor.d.ts +0 -221
  1642. package/dist/lib/utils/csvProcessor.js +0 -1527
  1643. package/dist/lib/utils/csvUtils.d.ts +0 -26
  1644. package/dist/lib/utils/csvUtils.js +0 -85
  1645. package/dist/lib/utils/errorClassifier.d.ts +0 -30
  1646. package/dist/lib/utils/errorClassifier.js +0 -183
  1647. package/dist/lib/utils/errorHandling.d.ts +0 -398
  1648. package/dist/lib/utils/errorHandling.js +0 -1282
  1649. package/dist/lib/utils/evaluationUtils.d.ts +0 -27
  1650. package/dist/lib/utils/evaluationUtils.js +0 -132
  1651. package/dist/lib/utils/factoryProcessing.d.ts +0 -71
  1652. package/dist/lib/utils/factoryProcessing.js +0 -590
  1653. package/dist/lib/utils/fileDetector.d.ts +0 -198
  1654. package/dist/lib/utils/fileDetector.js +0 -2806
  1655. package/dist/lib/utils/generation.d.ts +0 -8
  1656. package/dist/lib/utils/generation.js +0 -9
  1657. package/dist/lib/utils/generationErrors.d.ts +0 -10
  1658. package/dist/lib/utils/generationErrors.js +0 -11
  1659. package/dist/lib/utils/imageCache.d.ts +0 -124
  1660. package/dist/lib/utils/imageCache.js +0 -437
  1661. package/dist/lib/utils/imageDetection.d.ts +0 -15
  1662. package/dist/lib/utils/imageDetection.js +0 -53
  1663. package/dist/lib/utils/imageProcessor.d.ts +0 -296
  1664. package/dist/lib/utils/imageProcessor.js +0 -1158
  1665. package/dist/lib/utils/isoBmff.d.ts +0 -24
  1666. package/dist/lib/utils/isoBmff.js +0 -83
  1667. package/dist/lib/utils/json/coerce.d.ts +0 -30
  1668. package/dist/lib/utils/json/coerce.js +0 -412
  1669. package/dist/lib/utils/json/extract.d.ts +0 -112
  1670. package/dist/lib/utils/json/extract.js +0 -299
  1671. package/dist/lib/utils/json/index.d.ts +0 -36
  1672. package/dist/lib/utils/json/index.js +0 -37
  1673. package/dist/lib/utils/json/safeParse.d.ts +0 -130
  1674. package/dist/lib/utils/json/safeParse.js +0 -191
  1675. package/dist/lib/utils/lifecycleCallbacks.d.ts +0 -56
  1676. package/dist/lib/utils/lifecycleCallbacks.js +0 -100
  1677. package/dist/lib/utils/lifecycleTimeout.d.ts +0 -25
  1678. package/dist/lib/utils/lifecycleTimeout.js +0 -39
  1679. package/dist/lib/utils/logSanitize.d.ts +0 -285
  1680. package/dist/lib/utils/logSanitize.js +0 -555
  1681. package/dist/lib/utils/logger.d.ts +0 -273
  1682. package/dist/lib/utils/logger.js +0 -516
  1683. package/dist/lib/utils/loggingFetch.d.ts +0 -29
  1684. package/dist/lib/utils/loggingFetch.js +0 -60
  1685. package/dist/lib/utils/loopUtils.d.ts +0 -70
  1686. package/dist/lib/utils/loopUtils.js +0 -263
  1687. package/dist/lib/utils/markupSniff.d.ts +0 -37
  1688. package/dist/lib/utils/markupSniff.js +0 -125
  1689. package/dist/lib/utils/mcpDefaults.d.ts +0 -54
  1690. package/dist/lib/utils/mcpDefaults.js +0 -135
  1691. package/dist/lib/utils/mcpErrorText.d.ts +0 -37
  1692. package/dist/lib/utils/mcpErrorText.js +0 -95
  1693. package/dist/lib/utils/mediaDuration.d.ts +0 -23
  1694. package/dist/lib/utils/mediaDuration.js +0 -45
  1695. package/dist/lib/utils/messageBuilder.d.ts +0 -59
  1696. package/dist/lib/utils/messageBuilder.js +0 -2716
  1697. package/dist/lib/utils/mimeTypeHints.d.ts +0 -40
  1698. package/dist/lib/utils/mimeTypeHints.js +0 -122
  1699. package/dist/lib/utils/modelAliasResolver.d.ts +0 -17
  1700. package/dist/lib/utils/modelAliasResolver.js +0 -55
  1701. package/dist/lib/utils/modelChoices.d.ts +0 -75
  1702. package/dist/lib/utils/modelChoices.js +0 -698
  1703. package/dist/lib/utils/modelDetection.d.ts +0 -37
  1704. package/dist/lib/utils/modelDetection.js +0 -131
  1705. package/dist/lib/utils/modelRouter.d.ts +0 -91
  1706. package/dist/lib/utils/modelRouter.js +0 -293
  1707. package/dist/lib/utils/multimodalOptionsBuilder.d.ts +0 -74
  1708. package/dist/lib/utils/multimodalOptionsBuilder.js +0 -74
  1709. package/dist/lib/utils/musicProcessor.d.ts +0 -77
  1710. package/dist/lib/utils/musicProcessor.js +0 -190
  1711. package/dist/lib/utils/noOutputSentinel.d.ts +0 -67
  1712. package/dist/lib/utils/noOutputSentinel.js +0 -180
  1713. package/dist/lib/utils/observabilityHelpers.d.ts +0 -27
  1714. package/dist/lib/utils/observabilityHelpers.js +0 -48
  1715. package/dist/lib/utils/optionsConversion.d.ts +0 -47
  1716. package/dist/lib/utils/optionsConversion.js +0 -128
  1717. package/dist/lib/utils/optionsUtils.d.ts +0 -175
  1718. package/dist/lib/utils/optionsUtils.js +0 -970
  1719. package/dist/lib/utils/parameterValidation.d.ts +0 -200
  1720. package/dist/lib/utils/parameterValidation.js +0 -981
  1721. package/dist/lib/utils/pdfProcessor.d.ts +0 -137
  1722. package/dist/lib/utils/pdfProcessor.js +0 -689
  1723. package/dist/lib/utils/performance.d.ts +0 -93
  1724. package/dist/lib/utils/performance.js +0 -223
  1725. package/dist/lib/utils/piiDetector.d.ts +0 -24
  1726. package/dist/lib/utils/piiDetector.js +0 -221
  1727. package/dist/lib/utils/pricing.d.ts +0 -26
  1728. package/dist/lib/utils/pricing.js +0 -890
  1729. package/dist/lib/utils/promptRedaction.d.ts +0 -22
  1730. package/dist/lib/utils/promptRedaction.js +0 -63
  1731. package/dist/lib/utils/providerConfig.d.ts +0 -393
  1732. package/dist/lib/utils/providerConfig.js +0 -1363
  1733. package/dist/lib/utils/providerErrorClassification.d.ts +0 -58
  1734. package/dist/lib/utils/providerErrorClassification.js +0 -149
  1735. package/dist/lib/utils/providerHealth.d.ts +0 -253
  1736. package/dist/lib/utils/providerHealth.js +0 -1479
  1737. package/dist/lib/utils/providerRetry.d.ts +0 -68
  1738. package/dist/lib/utils/providerRetry.js +0 -230
  1739. package/dist/lib/utils/providerSetupMessages.d.ts +0 -8
  1740. package/dist/lib/utils/providerSetupMessages.js +0 -122
  1741. package/dist/lib/utils/providerUtils.d.ts +0 -38
  1742. package/dist/lib/utils/providerUtils.js +0 -366
  1743. package/dist/lib/utils/rateLimiter.d.ts +0 -75
  1744. package/dist/lib/utils/rateLimiter.js +0 -201
  1745. package/dist/lib/utils/redis.d.ts +0 -119
  1746. package/dist/lib/utils/redis.js +0 -530
  1747. package/dist/lib/utils/responseValidator.d.ts +0 -21
  1748. package/dist/lib/utils/responseValidator.js +0 -354
  1749. package/dist/lib/utils/retryAfter.d.ts +0 -7
  1750. package/dist/lib/utils/retryAfter.js +0 -44
  1751. package/dist/lib/utils/retryHandler.d.ts +0 -82
  1752. package/dist/lib/utils/retryHandler.js +0 -270
  1753. package/dist/lib/utils/retryability.d.ts +0 -27
  1754. package/dist/lib/utils/retryability.js +0 -45
  1755. package/dist/lib/utils/safeFetch.d.ts +0 -26
  1756. package/dist/lib/utils/safeFetch.js +0 -121
  1757. package/dist/lib/utils/sanitizers/filename.d.ts +0 -116
  1758. package/dist/lib/utils/sanitizers/filename.js +0 -366
  1759. package/dist/lib/utils/sanitizers/html.d.ts +0 -170
  1760. package/dist/lib/utils/sanitizers/html.js +0 -326
  1761. package/dist/lib/utils/sanitizers/index.d.ts +0 -26
  1762. package/dist/lib/utils/sanitizers/index.js +0 -30
  1763. package/dist/lib/utils/sanitizers/svg.d.ts +0 -71
  1764. package/dist/lib/utils/sanitizers/svg.js +0 -482
  1765. package/dist/lib/utils/schemaConversion.d.ts +0 -56
  1766. package/dist/lib/utils/schemaConversion.js +0 -656
  1767. package/dist/lib/utils/sizeGuard.d.ts +0 -34
  1768. package/dist/lib/utils/sizeGuard.js +0 -45
  1769. package/dist/lib/utils/ssrfGuard.d.ts +0 -60
  1770. package/dist/lib/utils/ssrfGuard.js +0 -446
  1771. package/dist/lib/utils/sttProcessor.d.ts +0 -125
  1772. package/dist/lib/utils/sttProcessor.js +0 -301
  1773. package/dist/lib/utils/systemMessages.d.ts +0 -29
  1774. package/dist/lib/utils/systemMessages.js +0 -45
  1775. package/dist/lib/utils/taskClassificationUtils.d.ts +0 -55
  1776. package/dist/lib/utils/taskClassificationUtils.js +0 -150
  1777. package/dist/lib/utils/taskClassifier.d.ts +0 -23
  1778. package/dist/lib/utils/taskClassifier.js +0 -95
  1779. package/dist/lib/utils/textEncoding.d.ts +0 -25
  1780. package/dist/lib/utils/textEncoding.js +0 -141
  1781. package/dist/lib/utils/thinkingConfig.d.ts +0 -76
  1782. package/dist/lib/utils/thinkingConfig.js +0 -105
  1783. package/dist/lib/utils/timeout.d.ts +0 -158
  1784. package/dist/lib/utils/timeout.js +0 -427
  1785. package/dist/lib/utils/tokenEstimation.d.ts +0 -90
  1786. package/dist/lib/utils/tokenEstimation.js +0 -187
  1787. package/dist/lib/utils/tokenLimits.d.ts +0 -53
  1788. package/dist/lib/utils/tokenLimits.js +0 -236
  1789. package/dist/lib/utils/tokenUtils.d.ts +0 -101
  1790. package/dist/lib/utils/tokenUtils.js +0 -323
  1791. package/dist/lib/utils/tool.d.ts +0 -8
  1792. package/dist/lib/utils/tool.js +0 -9
  1793. package/dist/lib/utils/toolCallRepair.d.ts +0 -14
  1794. package/dist/lib/utils/toolCallRepair.js +0 -286
  1795. package/dist/lib/utils/toolChoice.d.ts +0 -4
  1796. package/dist/lib/utils/toolChoice.js +0 -7
  1797. package/dist/lib/utils/toolEndEmitter.d.ts +0 -25
  1798. package/dist/lib/utils/toolEndEmitter.js +0 -65
  1799. package/dist/lib/utils/toolUtils.d.ts +0 -40
  1800. package/dist/lib/utils/toolUtils.js +0 -76
  1801. package/dist/lib/utils/transformationUtils.d.ts +0 -218
  1802. package/dist/lib/utils/transformationUtils.js +0 -578
  1803. package/dist/lib/utils/tripwireEvaluator.d.ts +0 -73
  1804. package/dist/lib/utils/tripwireEvaluator.js +0 -285
  1805. package/dist/lib/utils/tryImport.d.ts +0 -35
  1806. package/dist/lib/utils/tryImport.js +0 -95
  1807. package/dist/lib/utils/ttsProcessor.d.ts +0 -159
  1808. package/dist/lib/utils/ttsProcessor.js +0 -293
  1809. package/dist/lib/utils/typeUtils.d.ts +0 -77
  1810. package/dist/lib/utils/typeUtils.js +0 -98
  1811. package/dist/lib/utils/videoAnalysisProcessor.d.ts +0 -24
  1812. package/dist/lib/utils/videoAnalysisProcessor.js +0 -61
  1813. package/dist/lib/utils/videoProcessor.d.ts +0 -64
  1814. package/dist/lib/utils/videoProcessor.js +0 -196
  1815. package/dist/lib/voice/RealtimeVoiceAPI.d.ts +0 -186
  1816. package/dist/lib/voice/RealtimeVoiceAPI.js +0 -431
  1817. package/dist/lib/voice/audio-utils.d.ts +0 -135
  1818. package/dist/lib/voice/audio-utils.js +0 -435
  1819. package/dist/lib/voice/errors.d.ts +0 -123
  1820. package/dist/lib/voice/errors.js +0 -386
  1821. package/dist/lib/voice/index.d.ts +0 -49
  1822. package/dist/lib/voice/index.js +0 -177
  1823. package/dist/lib/voice/livekit/brain.d.ts +0 -21
  1824. package/dist/lib/voice/livekit/brain.js +0 -75
  1825. package/dist/lib/voice/livekit/config.d.ts +0 -52
  1826. package/dist/lib/voice/livekit/config.js +0 -134
  1827. package/dist/lib/voice/livekit/eventBridge.d.ts +0 -27
  1828. package/dist/lib/voice/livekit/eventBridge.js +0 -360
  1829. package/dist/lib/voice/livekit/index.d.ts +0 -22
  1830. package/dist/lib/voice/livekit/index.js +0 -23
  1831. package/dist/lib/voice/livekit/realtimeEventBridge.d.ts +0 -14
  1832. package/dist/lib/voice/livekit/realtimeEventBridge.js +0 -161
  1833. package/dist/lib/voice/livekit/realtimeMcpTools.d.ts +0 -31
  1834. package/dist/lib/voice/livekit/realtimeMcpTools.js +0 -206
  1835. package/dist/lib/voice/livekit/realtimeVoiceAgent.d.ts +0 -26
  1836. package/dist/lib/voice/livekit/realtimeVoiceAgent.js +0 -365
  1837. package/dist/lib/voice/livekit/roomContext.d.ts +0 -23
  1838. package/dist/lib/voice/livekit/roomContext.js +0 -57
  1839. package/dist/lib/voice/livekit/roomDispatch.d.ts +0 -24
  1840. package/dist/lib/voice/livekit/roomDispatch.js +0 -31
  1841. package/dist/lib/voice/livekit/schemaSanitizer.d.ts +0 -26
  1842. package/dist/lib/voice/livekit/schemaSanitizer.js +0 -144
  1843. package/dist/lib/voice/livekit/tokens.d.ts +0 -19
  1844. package/dist/lib/voice/livekit/tokens.js +0 -51
  1845. package/dist/lib/voice/livekit/vertexAuth.d.ts +0 -30
  1846. package/dist/lib/voice/livekit/vertexAuth.js +0 -73
  1847. package/dist/lib/voice/livekit/voiceAgent.d.ts +0 -32
  1848. package/dist/lib/voice/livekit/voiceAgent.js +0 -425
  1849. package/dist/lib/voice/livekit/voiceAgentWorker.d.ts +0 -29
  1850. package/dist/lib/voice/livekit/voiceAgentWorker.js +0 -122
  1851. package/dist/lib/voice/providers/AzureSTT.d.ts +0 -47
  1852. package/dist/lib/voice/providers/AzureSTT.js +0 -345
  1853. package/dist/lib/voice/providers/AzureTTS.d.ts +0 -59
  1854. package/dist/lib/voice/providers/AzureTTS.js +0 -349
  1855. package/dist/lib/voice/providers/CartesiaTTS.d.ts +0 -31
  1856. package/dist/lib/voice/providers/CartesiaTTS.js +0 -189
  1857. package/dist/lib/voice/providers/DeepgramSTT.d.ts +0 -40
  1858. package/dist/lib/voice/providers/DeepgramSTT.js +0 -550
  1859. package/dist/lib/voice/providers/ElevenLabsTTS.d.ts +0 -53
  1860. package/dist/lib/voice/providers/ElevenLabsTTS.js +0 -311
  1861. package/dist/lib/voice/providers/FishAudioTTS.d.ts +0 -27
  1862. package/dist/lib/voice/providers/FishAudioTTS.js +0 -183
  1863. package/dist/lib/voice/providers/GeminiLive.d.ts +0 -52
  1864. package/dist/lib/voice/providers/GeminiLive.js +0 -372
  1865. package/dist/lib/voice/providers/GoogleSTT.d.ts +0 -60
  1866. package/dist/lib/voice/providers/GoogleSTT.js +0 -454
  1867. package/dist/lib/voice/providers/OpenAIRealtime.d.ts +0 -47
  1868. package/dist/lib/voice/providers/OpenAIRealtime.js +0 -412
  1869. package/dist/lib/voice/providers/OpenAISTT.d.ts +0 -41
  1870. package/dist/lib/voice/providers/OpenAISTT.js +0 -286
  1871. package/dist/lib/voice/providers/OpenAITTS.d.ts +0 -55
  1872. package/dist/lib/voice/providers/OpenAITTS.js +0 -285
  1873. package/dist/lib/voice/stream-handler.d.ts +0 -166
  1874. package/dist/lib/voice/stream-handler.js +0 -514
  1875. package/dist/lib/workflow/LAYER-EXAMPLES.d.ts +0 -13
  1876. package/dist/lib/workflow/LAYER-EXAMPLES.js +0 -312
  1877. package/dist/lib/workflow/PROMPT-EXAMPLES.d.ts +0 -117
  1878. package/dist/lib/workflow/PROMPT-EXAMPLES.js +0 -246
  1879. package/dist/lib/workflow/config.d.ts +0 -376
  1880. package/dist/lib/workflow/config.js +0 -399
  1881. package/dist/lib/workflow/core/ensembleExecutor.d.ts +0 -55
  1882. package/dist/lib/workflow/core/ensembleExecutor.js +0 -451
  1883. package/dist/lib/workflow/core/judgeScorer.d.ts +0 -25
  1884. package/dist/lib/workflow/core/judgeScorer.js +0 -568
  1885. package/dist/lib/workflow/core/responseConditioner.d.ts +0 -21
  1886. package/dist/lib/workflow/core/responseConditioner.js +0 -243
  1887. package/dist/lib/workflow/core/workflowRegistry.d.ts +0 -72
  1888. package/dist/lib/workflow/core/workflowRegistry.js +0 -305
  1889. package/dist/lib/workflow/core/workflowRunner.d.ts +0 -61
  1890. package/dist/lib/workflow/core/workflowRunner.js +0 -642
  1891. package/dist/lib/workflow/index.d.ts +0 -21
  1892. package/dist/lib/workflow/index.js +0 -46
  1893. package/dist/lib/workflow/utils/workflowMetrics.d.ts +0 -74
  1894. package/dist/lib/workflow/utils/workflowMetrics.js +0 -312
  1895. package/dist/lib/workflow/utils/workflowValidation.d.ts +0 -29
  1896. package/dist/lib/workflow/utils/workflowValidation.js +0 -421
  1897. package/dist/lib/workflow/workflows/adaptiveWorkflow.d.ts +0 -72
  1898. package/dist/lib/workflow/workflows/adaptiveWorkflow.js +0 -367
  1899. package/dist/lib/workflow/workflows/consensusWorkflow.d.ts +0 -69
  1900. package/dist/lib/workflow/workflows/consensusWorkflow.js +0 -193
  1901. package/dist/lib/workflow/workflows/fallbackWorkflow.d.ts +0 -49
  1902. package/dist/lib/workflow/workflows/fallbackWorkflow.js +0 -226
  1903. package/dist/lib/workflow/workflows/multiJudgeWorkflow.d.ts +0 -70
  1904. package/dist/lib/workflow/workflows/multiJudgeWorkflow.js +0 -352
  1905. package/dist/providers/googleVertex/utils.d.ts +0 -12
  1906. package/dist/providers/googleVertex/utils.js +0 -286
@@ -1,1520 +0,0 @@
1
- import type { AIProviderName } from "../constants/enums.js";
2
- import type { RAGConfig } from "./rag.js";
3
- import type { KnowledgeGroundingMetadata, KnowledgeRequestScope } from "./knowledge.js";
4
- import type { SkillsCallOptions } from "./skills.js";
5
- import type { AnalyticsData, TokenUsage } from "./analytics.js";
6
- import type { ClaudeLimitSnapshot } from "./subscription.js";
7
- import type { JsonValue } from "./common.js";
8
- import type { Content, ImageWithAltText } from "./content.js";
9
- import type { ChatMessage, ConversationMemoryConfig } from "./conversation.js";
10
- import type { EvaluationData } from "./evaluation.js";
11
- import type { MiddlewareFactoryOptions, OnFinishCallback, OnErrorCallback } from "./middleware.js";
12
- import type { DirectorModeOptions, DirectorSegment, VideoGenerationResult, VideoOutputOptions } from "./multimodal.js";
13
- import type { PPTGenerationResult, PPTOutputOptions } from "./ppt.js";
14
- import type { TTSOptions, TTSResult } from "./tts.js";
15
- import type { STTOptions, STTResult } from "./stt.js";
16
- import type { AvatarOptions, AvatarResult } from "./avatar.js";
17
- import type { MusicOptions, MusicResult } from "./music.js";
18
- import type { StandardRecord, ValidationSchema, ZodUnknownSchema } from "./aliases.js";
19
- import type { NeurolinkCredentials } from "./providers.js";
20
- import type { CSVProcessorOptions, FileWithMetadata, MultimodalAudioEntry } from "./file.js";
21
- import type { WorkflowConfig } from "./workflow.js";
22
- import type { Schema, Tool, ToolChoice } from "./tools.js";
23
- import type { StepResult, LanguageModel } from "./providers.js";
24
- import type { ProcessorPipelineConfig } from "./ioProcessor.js";
25
- /**
26
- * Generate function options type - Primary method for content generation
27
- * Supports multimodal content while maintaining backward compatibility
28
- */
29
- export type GenerateOptions = {
30
- /**
31
- * Input content for generation. Optional for media-only modes (avatar, music,
32
- * video) where all configuration lives in `output`; the SDK synthesises an
33
- * empty `input` automatically when this field is omitted.
34
- */
35
- input?: {
36
- /** Prompt text. Optional for media-only modes (avatar, music) that are driven by uploaded files rather than a prompt. */
37
- text?: string;
38
- /**
39
- * Images to include in the request.
40
- * Supports simple image data (Buffer, string) or objects with alt text for accessibility.
41
- *
42
- * @example Simple usage
43
- * ```typescript
44
- * images: [imageBuffer, "https://example.com/image.jpg"]
45
- * ```
46
- *
47
- * @example With alt text for accessibility
48
- * ```typescript
49
- * images: [
50
- * { data: imageBuffer, altText: "Product screenshot showing main dashboard" },
51
- * { data: "https://example.com/chart.png", altText: "Sales chart for Q3 2024" }
52
- * ]
53
- * ```
54
- */
55
- images?: Array<Buffer | string | ImageWithAltText>;
56
- csvFiles?: Array<Buffer | string>;
57
- pdfFiles?: Array<Buffer | string>;
58
- audioFiles?: Array<Buffer | string>;
59
- /**
60
- * Audio whose bytes should be delivered to the provider, populated during
61
- * detection rather than by callers.
62
- *
63
- * Separate from `audioFiles` above, which is the caller-facing input that
64
- * yields a metadata summary. This one carries the decoded bytes forward so
65
- * a provider that can actually listen receives the audio instead of a
66
- * description of it; providers that cannot fall back to the summary and
67
- * this is ignored.
68
- */
69
- nativeAudioFiles?: MultimodalAudioEntry[];
70
- videoFiles?: Array<Buffer | string>;
71
- files?: Array<Buffer | string | FileWithMetadata>;
72
- content?: Content[];
73
- /**
74
- * Director Mode segments. When provided, Director Mode is activated automatically.
75
- * Each segment contains its own prompt and image.
76
- * Must contain 2-10 segments.
77
- */
78
- segments?: DirectorSegment[];
79
- };
80
- /**
81
- * Output configuration options
82
- *
83
- * @example Text output (default)
84
- * ```typescript
85
- * output: { format: "text" }
86
- * ```
87
- *
88
- * @example Video generation with Veo 3.1
89
- * ```typescript
90
- * output: {
91
- * mode: "video",
92
- * video: {
93
- * resolution: "1080p",
94
- * length: 8,
95
- * aspectRatio: "16:9",
96
- * audio: true
97
- * }
98
- * }
99
- * ```
100
- */
101
- output?: {
102
- /** Output format for text generation */
103
- format?: "text" | "structured" | "json";
104
- /**
105
- * Output mode - determines the type of content generated
106
- * - "text": Standard text generation (default)
107
- * - "video": Video generation using models like Veo 3.1
108
- * - "ppt": PowerPoint presentation generation
109
- * - "avatar": Talking-head / lip-sync video (D-ID, HeyGen, Replicate-MuseTalk)
110
- * - "music": Music / sound generation (Beatoven, ElevenLabs Music, Lyria, Replicate)
111
- */
112
- mode?: "text" | "video" | "ppt" | "avatar" | "music";
113
- /**
114
- * Video generation configuration (used when mode is "video")
115
- * Requires an input image and text prompt
116
- */
117
- video?: VideoOutputOptions;
118
- /**
119
- * PowerPoint generation configuration (used when mode is "ppt")
120
- * Generates slides based on text prompt
121
- */
122
- ppt?: PPTOutputOptions;
123
- /**
124
- * Director Mode configuration (only used when input.segments is provided)
125
- * Controls transition prompts, durations, and concurrency.
126
- */
127
- director?: DirectorModeOptions;
128
- /**
129
- * Avatar generation configuration (used when mode is "avatar")
130
- * Combines a portrait image with audio (or text via TTS) to produce
131
- * a lip-synced talking-head video.
132
- */
133
- avatar?: AvatarOptions;
134
- /**
135
- * Music generation configuration (used when mode is "music")
136
- * Generates music / sound from a text prompt.
137
- */
138
- music?: MusicOptions;
139
- };
140
- csvOptions?: CSVProcessorOptions;
141
- /** PDF processing options (#258). */
142
- pdfOptions?: {
143
- /** Password for an encrypted PDF (image-conversion fallback path). */
144
- password?: string;
145
- /** Max rendered-canvas pixels per page (#260 memory guard); oversized pages auto-downscale. */
146
- maxCanvasPixels?: number;
147
- /**
148
- * Render scale for the image fallback used by providers without native PDF
149
- * support (#297). Higher is sharper but costs roughly the square in memory
150
- * and tokens. Range 0.1-10; defaults to PDF_LIMITS.DEFAULT_SCALE (1.5).
151
- */
152
- scale?: number;
153
- /**
154
- * Max pages converted by the image fallback (#297). Pages beyond this are
155
- * not sent to the model at all. Defaults to PDF_LIMITS.DEFAULT_MAX_PAGES (20).
156
- */
157
- maxPages?: number;
158
- };
159
- videoOptions?: {
160
- /** Frames to extract. Unset lets VideoProcessor pick from the clip's duration; clamped to 100. */
161
- frames?: number;
162
- /** Frame encoder quality, clamped to 1-100. Default 80. */
163
- quality?: number;
164
- /** Frame encoding. Default jpeg. */
165
- format?: "jpeg" | "png";
166
- /** Not implemented yet (#433) — warns rather than silently doing nothing. */
167
- transcribeAudio?: boolean;
168
- };
169
- /**
170
- * Text-to-Speech (TTS) configuration
171
- *
172
- * Enable audio generation from the text response. The generated audio will be
173
- * returned in the result's `audio` field as a TTSResult object.
174
- *
175
- * @example Basic TTS
176
- * ```typescript
177
- * const result = await neurolink.generate({
178
- * input: { text: "Tell me a story" },
179
- * provider: "google-ai",
180
- * tts: { enabled: true, voice: "en-US-Neural2-C" }
181
- * });
182
- * console.log(result.audio?.buffer); // Audio Buffer
183
- * ```
184
- *
185
- * @example Advanced TTS with options
186
- * ```typescript
187
- * const result = await neurolink.generate({
188
- * input: { text: "Speak slowly and clearly" },
189
- * provider: "google-ai",
190
- * tts: {
191
- * enabled: true,
192
- * voice: "en-US-Neural2-D",
193
- * speed: 0.8,
194
- * pitch: 2.0,
195
- * format: "mp3",
196
- * quality: "standard"
197
- * }
198
- * });
199
- * ```
200
- */
201
- tts?: TTSOptions;
202
- /**
203
- * Speech-to-Text (STT) configuration
204
- *
205
- * Enable audio transcription. When enabled, the audio provided via `stt.audio`
206
- * will be transcribed to text and used as the prompt.
207
- *
208
- * @example
209
- * ```typescript
210
- * const neurolink = new NeuroLink();
211
- * const result = await neurolink.generate({
212
- * input: { text: "" },
213
- * provider: "openai",
214
- * stt: { enabled: true, provider: "whisper", language: "en-US", audio: audioBuffer }
215
- * });
216
- * // STT transcribes the audio, result.transcription contains the transcription
217
- * ```
218
- */
219
- stt?: STTOptions & {
220
- provider?: string;
221
- audio?: Buffer | ArrayBuffer;
222
- };
223
- /**
224
- * Thinking/reasoning configuration for extended thinking models
225
- *
226
- * Enables extended thinking capabilities for supported models.
227
- *
228
- * **Gemini 3 Models** (gemini-3.1-pro-preview, gemini-3-flash-preview):
229
- * Use `thinkingLevel` to control reasoning depth:
230
- * - `minimal` - Near-zero thinking (Flash only)
231
- * - `low` - Fast reasoning for simple tasks
232
- * - `medium` - Balanced reasoning/latency
233
- * - `high` - Maximum reasoning depth (default for Pro)
234
- *
235
- * **Anthropic Claude** (claude-3-7-sonnet, etc.):
236
- * Use `budgetTokens` to set token budget for thinking.
237
- *
238
- * @example Gemini 3 with thinking level
239
- * ```typescript
240
- * const result = await neurolink.generate({
241
- * input: { text: "Solve this complex problem..." },
242
- * provider: "google-ai",
243
- * model: "gemini-3.1-pro-preview",
244
- * thinkingConfig: {
245
- * thinkingLevel: "high"
246
- * }
247
- * });
248
- * ```
249
- *
250
- * @example Anthropic with budget tokens
251
- * ```typescript
252
- * const result = await neurolink.generate({
253
- * input: { text: "Solve this complex math problem..." },
254
- * provider: "anthropic",
255
- * model: "claude-3-7-sonnet-20250219",
256
- * thinkingConfig: {
257
- * enabled: true,
258
- * budgetTokens: 10000
259
- * }
260
- * });
261
- * ```
262
- */
263
- thinkingConfig?: {
264
- enabled?: boolean;
265
- type?: "enabled" | "disabled";
266
- /** Token budget for thinking (Anthropic models) */
267
- budgetTokens?: number;
268
- /** Thinking level for Gemini 3 models: minimal, low, medium, high */
269
- thinkingLevel?: "minimal" | "low" | "medium" | "high";
270
- };
271
- provider?: AIProviderName | string;
272
- model?: string;
273
- region?: string;
274
- temperature?: number;
275
- maxTokens?: number;
276
- /** Top-p (nucleus) sampling parameter. Controls diversity of generated tokens. */
277
- topP?: number;
278
- /** Top-k sampling parameter. Limits the number of tokens considered. (Google/Gemini models only) */
279
- topK?: number;
280
- /** Stop sequences that will halt generation when encountered. */
281
- stopSequences?: string[];
282
- systemPrompt?: string;
283
- /**
284
- * Zod schema for structured output validation
285
- *
286
- * @important Google GEMINI limitation (Gemini models only)
287
- * Gemini models (Google AI Studio, and Vertex GEMINI models) cannot combine
288
- * function calling with schema-enforced structured output — a Gemini API
289
- * limitation ("Function calling with a response mime type:
290
- * 'application/json' is unsupported"). Vertex CLAUDE models and all other
291
- * providers support tools + schema simultaneously.
292
- *
293
- * You do NOT need to set `disableTools` yourself: when the combination is
294
- * impossible, NeuroLink automatically falls back to text-mode JSON coercion
295
- * (see `coerceJsonToSchema`), and `disableTools: true` remains available as
296
- * an explicit override.
297
- *
298
- * On the native Anthropic Messages surface (provider "anthropic", including
299
- * via a proxy) tools + schema are honored through an internal `final_result`
300
- * tool the model calls with the structured answer — invisible to callers: it
301
- * never appears in `toolCalls` / `toolExecutions`.
302
- *
303
- * @example
304
- * ```typescript
305
- * // ✅ Vertex + Claude: tools AND schema together are fully supported
306
- * const result = await neurolink.generate({
307
- * schema: MySchema,
308
- * provider: "vertex",
309
- * model: "claude-sonnet-4-6",
310
- * });
311
- *
312
- * // ✅ Direct Anthropic + tools: schema honored via the final_result tool
313
- * const result = await neurolink.generate({
314
- * schema: MySchema,
315
- * provider: "anthropic",
316
- * });
317
- *
318
- * // ✅ Gemini + tools: SDK auto-falls back to coerced text-mode JSON
319
- * const result = await neurolink.generate({
320
- * schema: MySchema,
321
- * provider: "google-ai",
322
- * model: "gemini-2.5-pro",
323
- * });
324
- * ```
325
- *
326
- * @see https://ai.google.dev/gemini-api/docs/function-calling
327
- */
328
- schema?: ValidationSchema;
329
- tools?: Record<string, Tool>;
330
- /**
331
- * Filter available tools by name.
332
- * Only tools with names in this array will be made available.
333
- * Used by dynamic arguments to dynamically select which tools to enable.
334
- *
335
- * @example
336
- * ```typescript
337
- * await neurolink.generate({
338
- * input: { text: "Search for information" },
339
- * enabledToolNames: ["websearchGrounding", "readFile"]
340
- * });
341
- * ```
342
- */
343
- enabledToolNames?: string[];
344
- /**
345
- * Request timeout (e.g. 30000, '30s', '2m').
346
- *
347
- * PER-STEP semantics in agentic loops: on providers that run a native
348
- * multi-step tool loop (Vertex Gemini / Vertex Claude), this bounds EACH
349
- * model call in the loop, not the whole turn — a tool-heavy turn may run
350
- * far longer than this value in total. Size it for the slowest single
351
- * step (default 300s), and use `abortSignal` for a total-turn deadline.
352
- *
353
- * When set explicitly, a step timeout is surfaced immediately instead of
354
- * burning internal retries/fallbacks that would re-run the same
355
- * provider+model with the same doomed budget.
356
- */
357
- timeout?: number | string;
358
- /**
359
- * Hard wall-clock cap for the WHOLE agentic turn (all model calls + tool
360
- * executions), in milliseconds. When the deadline passes the turn ends
361
- * gracefully with `stopReason: "time-limit"` and an honest time message —
362
- * never the step-cap text. Unset = no turn-level deadline (the library
363
- * imposes no product policy).
364
- *
365
- * Enforced by the native Vertex loops (Gemini + Claude) AND the AI-SDK
366
- * loop path (litellm and other OpenAI-compatible providers). On the AI-SDK
367
- * path, an explicit `timeout` also engages the same wrap-up when
368
- * `turnTimeoutMs` is unset. Once the wrap-up window begins (see
369
- * `wrapupTimeLeadMs`), the loop forcibly sets `toolChoice: "none"` for the
370
- * remaining steps — overriding any caller-supplied `toolChoice` or
371
- * `prepareStep` tool selection — and appends an honest time message that a
372
- * caller's `prepareStep` callback does not observe (it runs before the
373
- * wrap-up nudge is applied). An honest partial beats a discarded turn.
374
- */
375
- turnTimeoutMs?: number;
376
- /**
377
- * Maximum time with NO progress — no stream chunk received, no tool
378
- * execution started or finished, no step started — before the turn ends
379
- * with `stopReason: "stalled"`. Catches wedged tools and hung model calls
380
- * that a whole-turn deadline would let run to the bitter end.
381
- * Unset = disabled.
382
- */
383
- stallTimeoutMs?: number;
384
- /**
385
- * When the remaining turn time drops below this, a wrap-up nudge rides the
386
- * next tool-result turn telling the model to consolidate what it has and
387
- * produce its final answer. Defaults to 120_000 when `turnTimeoutMs` is
388
- * set; ignored when it is not.
389
- *
390
- * On the AI-SDK loop path the lead is clamped to a quarter of the turn
391
- * budget (so short budgets don't wrap up on step one) and wrap-up steps
392
- * run with a forced `toolChoice: "none"` — see `turnTimeoutMs` for the
393
- * exact override semantics.
394
- */
395
- wrapupTimeLeadMs?: number;
396
- /**
397
- * Per-tool-execution timeout in milliseconds (default 300_000). A tool
398
- * that exceeds it fails with an error tool_result and costs one step —
399
- * the turn continues instead of hanging on a wedged tool.
400
- */
401
- toolTimeoutMs?: number;
402
- /** AbortSignal for external cancellation of the AI call */
403
- abortSignal?: AbortSignal;
404
- /**
405
- * Bounds for the per-call tool execution records surfaced on
406
- * `GenerateResult.toolExecutions`. Capture is on by default
407
- * (maxResultChars 8192, maxRecords 500); pass larger caps when the caller
408
- * needs full result texts.
409
- */
410
- toolExecutionCapture?: ToolExecutionCaptureOptions;
411
- /** Disable the schema-driven tool call repair mechanism (BZ-665). Default: false (repair enabled). */
412
- disableToolCallRepair?: boolean;
413
- /**
414
- * Disable tool execution (including built-in tools)
415
- *
416
- * Optional with schemas: the tools↔schema exclusion applies only to Google
417
- * GEMINI models (Google AI Studio / Vertex Gemini — a Gemini API
418
- * limitation), and NeuroLink handles it automatically by falling back to
419
- * text-mode JSON coercion. Vertex CLAUDE models support tools + schema
420
- * together. Set this only when you explicitly want a tool-free call.
421
- *
422
- * @example
423
- * ```typescript
424
- * // Explicit override: schema-only call with no tools at all
425
- * await neurolink.generate({
426
- * schema: MySchema,
427
- * provider: "google-ai",
428
- * disableTools: true
429
- * });
430
- * ```
431
- */
432
- disableTools?: boolean;
433
- /** Include only these tools by name (whitelist). If set, only matching tools are available. */
434
- toolFilter?: string[];
435
- /** Exclude these tools by name (blacklist). Applied after toolFilter. */
436
- excludeTools?: string[];
437
- /**
438
- * Skip injecting tool schemas into the system prompt.
439
- * When true, tools are ONLY passed natively via the provider's `tools` parameter,
440
- * avoiding duplicate tool definitions (~30K tokens savings per call).
441
- * Default: false (backward compatible — tool schemas are injected into system prompt).
442
- */
443
- skipToolPromptInjection?: boolean;
444
- /** Disable tool result caching for this request (overrides global mcp.cache.enabled) */
445
- disableToolCache?: boolean;
446
- /** Maximum number of tool execution steps (default: 200) */
447
- maxSteps?: number;
448
- /**
449
- * Tool choice configuration for the generation.
450
- * Controls whether and which tools the model must call.
451
- *
452
- * - `"auto"` (default): the model can choose whether and which tools to call
453
- * - `"none"`: no tool calls allowed
454
- * - `"required"`: the model must call at least one tool
455
- * - `{ type: "tool", toolName: string }`: the model must call the specified tool
456
- *
457
- * Note: When used without `prepareStep`, this applies to **every step** in the
458
- * `maxSteps` loop. Using `"required"` or `{ type: "tool" }` without `prepareStep`
459
- * will cause infinite tool calls until `maxSteps` is exhausted.
460
- */
461
- toolChoice?: ToolChoice<Record<string, Tool>>;
462
- /**
463
- * Optional callback that runs before each step in a multi-step generation.
464
- * Allows dynamically changing `toolChoice` and available tools per step.
465
- *
466
- * This is the recommended way to enforce specific tool calls on certain steps
467
- * while allowing the model freedom on others.
468
- *
469
- * Maps to Vercel AI SDK's `experimental_prepareStep`.
470
- *
471
- * @example Force a specific tool on step 0, then switch to auto:
472
- * ```typescript
473
- * prepareStep: ({ stepNumber, steps }) => {
474
- * if (stepNumber === 0) {
475
- * return {
476
- * toolChoice: { type: 'tool', toolName: 'myTool' }
477
- * };
478
- * }
479
- * return { toolChoice: 'auto' };
480
- * }
481
- * ```
482
- *
483
- * @see https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text#parameters
484
- */
485
- prepareStep?: (options: {
486
- steps: StepResult<Record<string, Tool>>[];
487
- stepNumber: number;
488
- maxSteps: number;
489
- model: LanguageModel;
490
- }) => PromiseLike<{
491
- model?: LanguageModel;
492
- toolChoice?: ToolChoice<Record<string, Tool>>;
493
- experimental_activeTools?: string[];
494
- } | undefined>;
495
- enableEvaluation?: boolean;
496
- enableAnalytics?: boolean;
497
- context?: StandardRecord;
498
- evaluationDomain?: string;
499
- toolUsageContext?: string;
500
- /**
501
- * @deprecated Use `conversationMessages` instead. This field uses a simple `{role, content}` shape
502
- * that is not consumed by `buildMessagesArray()` — messages passed here will NOT reach the AI model
503
- * as proper conversation turns. `conversationMessages` uses the full `ChatMessage` type and is
504
- * correctly wired through the entire generate pipeline.
505
- */
506
- conversationHistory?: Array<{
507
- role: string;
508
- content: string;
509
- }>;
510
- /**
511
- * Previous conversation as a ChatMessage array.
512
- * Messages are injected as proper multi-turn conversation history before the current prompt,
513
- * so the AI model sees them as real prior exchanges (not text dumped into the prompt).
514
- * Used by task continuation mode and available to external callers.
515
- */
516
- conversationMessages?: ChatMessage[];
517
- factoryConfig?: {
518
- domainType?: string;
519
- domainConfig?: StandardRecord;
520
- enhancementType?: "domain-configuration" | "streaming-optimization" | "mcp-integration" | "legacy-migration" | "context-conversion";
521
- preserveLegacyFields?: boolean;
522
- validateDomainData?: boolean;
523
- };
524
- streaming?: {
525
- enabled?: boolean;
526
- chunkSize?: number;
527
- bufferSize?: number;
528
- enableProgress?: boolean;
529
- fallbackToGenerate?: boolean;
530
- };
531
- workflow?: string;
532
- workflowConfig?: WorkflowConfig;
533
- /**
534
- * RAG (Retrieval-Augmented Generation) configuration.
535
- *
536
- * When provided, NeuroLink automatically loads the specified files, chunks them,
537
- * generates embeddings, and creates a search tool that the AI model can invoke
538
- * on demand to find relevant context before answering.
539
- *
540
- * @example Basic RAG
541
- * ```typescript
542
- * const result = await neurolink.generate({
543
- * input: { text: "What is RAG?" },
544
- * provider: "vertex",
545
- * rag: {
546
- * files: ["./docs/guide.md"],
547
- * }
548
- * });
549
- * ```
550
- *
551
- * @example Advanced RAG with options
552
- * ```typescript
553
- * const result = await neurolink.generate({
554
- * input: { text: "Explain chunking strategies" },
555
- * provider: "vertex",
556
- * rag: {
557
- * files: ["./docs/guide.md", "./docs/api.md"],
558
- * strategy: "markdown",
559
- * chunkSize: 512,
560
- * topK: 5,
561
- * }
562
- * });
563
- * ```
564
- */
565
- rag?: RAGConfig;
566
- /**
567
- * Maximum budget in USD for this session. When the accumulated cost of all
568
- * generate() calls on this NeuroLink instance exceeds this value, subsequent
569
- * calls will throw a budget-exceeded error before making the API request.
570
- *
571
- * @example
572
- * ```typescript
573
- * const result = await neurolink.generate({
574
- * input: { text: "Summarize this" },
575
- * maxBudgetUsd: 1.00
576
- * });
577
- * ```
578
- */
579
- maxBudgetUsd?: number;
580
- /**
581
- * Optional request identifier for observability and log correlation.
582
- * When provided, this ID is forwarded to spans, logs, and telemetry so
583
- * callers can correlate generation traces back to their own request lifecycle.
584
- */
585
- requestId?: string;
586
- /** Per-call middleware configuration. */
587
- middleware?: MiddlewareFactoryOptions;
588
- /** Callback invoked when generation completes successfully. */
589
- onFinish?: OnFinishCallback;
590
- /** Callback invoked when generation encounters an error. */
591
- onError?: OnErrorCallback;
592
- /** Pre-validated user context for the request */
593
- requestContext?: Record<string, unknown>;
594
- /**
595
- * Opt this generation call into the knowledge grounding configured on the
596
- * NeuroLink instance. Defaults to `false` when omitted.
597
- */
598
- useKnowledgeGrounding?: boolean;
599
- /**
600
- * Enabled integrations used to scope knowledge retrieval for this turn.
601
- * Used only when `useKnowledgeGrounding` is true and knowledge grounding is
602
- * enabled on the NeuroLink instance.
603
- */
604
- knowledgeContext?: KnowledgeRequestScope;
605
- /** Raw auth token — validated by configured auth provider */
606
- auth?: {
607
- token: string;
608
- };
609
- /**
610
- * Per-provider credential overrides for this request.
611
- * Overrides instance-level credentials set in `new NeuroLink({ credentials })`.
612
- * Unset providers fall through to instance credentials, then environment variables.
613
- */
614
- credentials?: NeurolinkCredentials;
615
- /**
616
- * Curator P2-3: per-call fallback callback. Overrides any
617
- * instance-level `providerFallback` set on `new NeuroLink({...})`.
618
- * Invoked for any error except a genuine caller cancel — i.e. this
619
- * call's `abortSignal` fired (network errors, 5xx, timeouts, auth
620
- * failures, model-access-denied, and internal watchdog aborts all invoke
621
- * it); receives the error unmodified. Return `{ provider, model }` to
622
- * retry, `null` to bubble.
623
- */
624
- providerFallback?: (error: unknown) => Promise<{
625
- provider?: string;
626
- model?: string;
627
- } | null>;
628
- /**
629
- * Curator P2-3: per-call ordered model chain. Overrides any
630
- * instance-level `modelChain`. Without an explicit `providerFallback`
631
- * callback the chain only advances on model-access-denied errors —
632
- * other failures (network, 5xx, timeouts) bubble immediately.
633
- */
634
- modelChain?: string[];
635
- /**
636
- * Per-call memory control.
637
- *
638
- * Override the global memory SDK behavior for this specific call.
639
- * All flags default to `true` when the global memory SDK is enabled.
640
- * If the global memory SDK is disabled, these flags have no effect.
641
- *
642
- */
643
- memory?: {
644
- /** Master toggle for this call. When false, both read and write are skipped. Defaults to true. */
645
- enabled?: boolean;
646
- /** Whether to read condensed memory and prepend to prompt. Defaults to true. */
647
- read?: boolean;
648
- /** Whether to write (add/condense) the conversation into memory after completion. Defaults to true. */
649
- write?: boolean;
650
- /**
651
- * Additional users whose memory should be retrieved/stored alongside the primary user.
652
- * Each entry can override the condensation prompt and maxWords for that user.
653
- * Primary user is still determined by context.userId.
654
- */
655
- additionalUsers?: AdditionalMemoryUser[];
656
- };
657
- /**
658
- * PII detection — scans and optionally redacts PII from input before the LLM call.
659
- * @example { enabled: true, action: "redact", detectTypes: ["ssn", "email"] }
660
- */
661
- piiDetection?: {
662
- enabled?: boolean;
663
- action?: "redact" | "abort" | "warn";
664
- detectTypes?: Array<"email" | "phone" | "ssn" | "creditCard" | "ipAddress" | "address" | "name" | "dateOfBirth" | "passport" | "driversLicense">;
665
- customPatterns?: RegExp[];
666
- allowList?: string[];
667
- redactionText?: string;
668
- };
669
- /**
670
- * Response validation — validates and optionally transforms the LLM response.
671
- * Supports retry-with-feedback when `retryOnFailure: true`.
672
- * @example { maxLength: 5000, truncationAction: "truncate", retryOnFailure: true }
673
- */
674
- responseValidation?: {
675
- minLength?: number;
676
- maxLength?: number;
677
- requiredPhrases?: string[];
678
- forbiddenPhrases?: string[];
679
- jsonSchema?: Record<string, unknown>;
680
- customValidator?: (text: string) => {
681
- category: string;
682
- severity: "error" | "warning" | "info";
683
- message: string;
684
- } | null;
685
- truncationAction?: "abort" | "retry" | "truncate" | "warn";
686
- truncationSuffix?: string;
687
- retryOnFailure?: boolean;
688
- maxRetries?: number;
689
- };
690
- /** Input validation — validates input text before any processing. */
691
- inputValidation?: {
692
- trimWhitespace?: boolean;
693
- minLength?: number;
694
- maxLength?: number;
695
- requireContent?: boolean;
696
- };
697
- /**
698
- * @deprecated Use `piiDetection`, `responseValidation`, and `inputValidation` instead.
699
- */
700
- processors?: ProcessorPipelineConfig;
701
- /**
702
- * Per-call skills control. Only effective when the instance was
703
- * constructed with `skills.enabled: true`. Lets a call disable the
704
- * prompt index, or narrow it by scope/tags. Per-call wins over
705
- * instance config.
706
- */
707
- skills?: SkillsCallOptions;
708
- };
709
- /**
710
- * Represents an additional user whose memory should be included in a generate/stream call.
711
- * Allows per-user prompt overrides for different memory condensation strategies
712
- * (e.g. personal preferences vs org-level policies).
713
- */
714
- export type AdditionalMemoryUser = {
715
- /** The user/owner ID to retrieve or store memory for. */
716
- userId: string;
717
- /**
718
- * Human-readable label used in the formatted memory context.
719
- * E.g. "Organization Policy", "Team Context", "User Preferences".
720
- * If not provided, defaults to userId.
721
- */
722
- label?: string;
723
- /** Whether to read this user's memory and include in context. Defaults to true. */
724
- read?: boolean;
725
- /** Whether to write conversation into this user's memory. Defaults to true. */
726
- write?: boolean;
727
- /** Custom condensation prompt for this user. Overrides the default Hippocampus prompt. */
728
- prompt?: string;
729
- /** Max words for this user's condensed memory. Overrides the default maxWords. */
730
- maxWords?: number;
731
- };
732
- /**
733
- * One real tool invocation captured during an agentic turn.
734
- *
735
- * Replaces the historical `{name, input, output}` stub on `GenerateResult`:
736
- * every record is produced at the actual execution site (AI-SDK loop and the
737
- * native Gemini/Anthropic loops alike), so `params`, timing, and error status
738
- * reflect what really ran — consumers no longer need proxy "recorder" tools
739
- * to observe their own tool traffic.
740
- */
741
- export type ToolExecutionRecord = {
742
- /** Tool name as the model called it. */
743
- toolName: string;
744
- /** Parameters the tool was invoked with, as parsed by the loop. */
745
- params: unknown;
746
- /**
747
- * Serialized tool result (JSON when serializable, else String()), bounded
748
- * by `toolExecutionCapture.maxResultChars` (default ~8KB). Truncated text
749
- * ends with a `…[truncated N chars]` marker.
750
- */
751
- resultText: string;
752
- /** True when the execution threw or returned an error-shaped result. */
753
- isError: boolean;
754
- /** Epoch milliseconds when the execution started. */
755
- startedAt: number;
756
- /** Wall-clock duration of the execution in milliseconds. */
757
- durationMs: number;
758
- };
759
- /**
760
- * Bounds for per-call tool execution capture (see `ToolExecutionRecord`).
761
- * Capture is ON by default with these caps; raise them when a caller needs
762
- * full result texts (e.g. caller-side evidence verification).
763
- */
764
- export type ToolExecutionCaptureOptions = {
765
- /** Max serialized result characters kept per record (default 8192). */
766
- maxResultChars?: number;
767
- /** Max records kept per turn; oldest are dropped first (default 500). */
768
- maxRecords?: number;
769
- /**
770
- * Fire-and-forget per-record callback, invoked as each tool execution
771
- * completes. Listener errors — synchronous throws AND async rejections —
772
- * are swallowed; they never break the turn. Used by supervisors (e.g. the
773
- * isolated-agent runner's waste detection) and callers that stream
774
- * evidence as it is gathered.
775
- */
776
- onRecord?: (record: ToolExecutionRecord) => void | Promise<void>;
777
- };
778
- /**
779
- * Why an agentic turn ended — the discriminator consumers should branch on
780
- * instead of sniffing the provider-shaped `finishReason` (whose values are
781
- * overloaded: e.g. "tool-calls" historically covered both step-cap exits and
782
- * Gemini MALFORMED_FUNCTION_CALL provider errors).
783
- *
784
- * - `completed` — the model finished on its own (text answer or final_result)
785
- * - `step-cap` — the `maxSteps` budget ran out while the model still wanted tools
786
- * - `context-cap` — the in-loop context guard stopped the tool loop because the
787
- * accumulated conversation approached the model's context window (and the
788
- * terminal synthesis could not produce an answer); without the guard these
789
- * turns died mid-loop on a provider 400 "prompt is too long"
790
- * - `time-limit` — the `turnTimeoutMs` wall-clock deadline passed
791
- * - `stalled` — no progress (no chunk, no tool start/finish) for `stallTimeoutMs`
792
- * - `aborted` — the caller's `abortSignal` ended the turn
793
- * - `provider-error` — the provider/model failed the turn (e.g. persistent
794
- * MALFORMED_FUNCTION_CALL after retry); usually worth a caller-side retry
795
- */
796
- export type GenerateStopReason = "completed" | "step-cap" | "context-cap" | "time-limit" | "stalled" | "aborted" | "provider-error";
797
- /**
798
- * Generate function result type - Primary output format
799
- * Future-ready for multi-modal outputs while maintaining text focus
800
- */
801
- export type GenerateResult = {
802
- content: string;
803
- /** Knowledge-grounding diagnostics for this turn (present only when grounding ran). */
804
- knowledge?: KnowledgeGroundingMetadata;
805
- /**
806
- * Parsed structured object when a `schema` was requested. Populated from
807
- * AI-SDK experimental_output, or from text-mode coercion (balanced-scan +
808
- * jsonrepair). Prefer this over JSON.parse(content) — it never requires the
809
- * caller to re-parse hand-escaped model text.
810
- */
811
- structuredData?: unknown;
812
- outputs?: {
813
- text: string;
814
- };
815
- /**
816
- * Text-to-Speech audio result
817
- *
818
- * Contains the generated audio buffer and metadata when TTS is enabled.
819
- * Generated by TTSProcessor.synthesize() using the specified provider.
820
- *
821
- * @example Accessing TTS audio
822
- * ```typescript
823
- * const result = await neurolink.generate({
824
- * input: { text: "Hello world" },
825
- * provider: "google-ai",
826
- * tts: { enabled: true, voice: "en-US-Neural2-C" }
827
- * });
828
- *
829
- * if (result.audio) {
830
- * console.log(`Audio size: ${result.audio.size} bytes`);
831
- * console.log(`Format: ${result.audio.format}`);
832
- * if (result.audio.duration) {
833
- * console.log(`Duration: ${result.audio.duration}s`);
834
- * }
835
- * if (result.audio.voice) {
836
- * console.log(`Voice: ${result.audio.voice}`);
837
- * }
838
- * // Save or play the audio buffer
839
- * fs.writeFileSync('output.mp3', result.audio.buffer);
840
- * }
841
- * ```
842
- */
843
- audio?: TTSResult;
844
- /**
845
- * Video generation result
846
- *
847
- * Contains the generated video buffer and metadata when video mode is enabled.
848
- * Present when `output.mode` is set to "video" in GenerateOptions.
849
- *
850
- * @example Accessing generated video
851
- * ```typescript
852
- * const result = await neurolink.generate({
853
- * input: { text: "Product showcase", images: [imageBuffer] },
854
- * provider: "vertex",
855
- * model: "veo-3.1",
856
- * output: { mode: "video", video: { resolution: "1080p" } }
857
- * });
858
- *
859
- * if (result.video) {
860
- * fs.writeFileSync('output.mp4', result.video.data);
861
- * console.log(`Duration: ${result.video.metadata?.duration}s`);
862
- * console.log(`Dimensions: ${result.video.metadata?.dimensions?.width}x${result.video.metadata?.dimensions?.height}`);
863
- * }
864
- * ```
865
- */
866
- video?: VideoGenerationResult;
867
- /**
868
- * Avatar (talking-head) generation result (present when output.mode is "avatar")
869
- */
870
- avatar?: AvatarResult;
871
- /**
872
- * Music generation result (present when output.mode is "music")
873
- */
874
- music?: MusicResult;
875
- /**
876
- * PowerPoint generation result (present when output.mode is "ppt")
877
- *
878
- * @example
879
- * ```typescript
880
- * const result = await neurolink.generate({
881
- * input: { text: "Introducing Our New Product" },
882
- * model: "gemini-pro",
883
- * output: { mode: "ppt", ppt: { pages: 10, theme: "modern" } }
884
- * });
885
- *
886
- * if (result.ppt) {
887
- * console.log(`Generated ${result.ppt.totalSlides} slides`);
888
- * console.log(`Saved at: ${result.ppt.filePath}`);
889
- * }
890
- * ```
891
- */
892
- ppt?: PPTGenerationResult;
893
- imageOutput?: {
894
- base64: string;
895
- } | null;
896
- provider?: string;
897
- model?: string;
898
- finishReason?: string;
899
- /**
900
- * Why the agentic turn ended, independent of the provider-shaped
901
- * `finishReason`. Populated by the native Vertex loops (Gemini + Claude);
902
- * undefined on providers that don't run a native loop — fall back to
903
- * `finishReason` heuristics there.
904
- */
905
- stopReason?: GenerateStopReason;
906
- /**
907
- * Verbatim provider finish/stop reason for the turn's terminal model call
908
- * (e.g. "MALFORMED_FUNCTION_CALL", "MAX_TOKENS", "max_tokens", "tool_use").
909
- */
910
- rawFinishReason?: string;
911
- /** Number of agentic steps (model calls) the turn used. */
912
- stepsUsed?: number;
913
- /**
914
- * True when the schema JSON in `content`/`structuredData` was repaired from
915
- * malformed model text (jsonrepair ran). The result is still valid JSON.
916
- */
917
- jsonRepaired?: boolean;
918
- /**
919
- * True when the schema JSON appears truncated — the model hit the output
920
- * token cap (finishReason="length") or the recovered object came from an
921
- * unclosed span. `structuredData` may be incomplete; raise `maxTokens`.
922
- */
923
- jsonTruncated?: boolean;
924
- usage?: TokenUsage;
925
- responseTime?: number;
926
- toolCalls?: Array<{
927
- toolCallId: string;
928
- toolName: string;
929
- args: StandardRecord;
930
- }>;
931
- toolResults?: unknown[];
932
- toolsUsed?: string[];
933
- /**
934
- * Real per-call tool execution records captured in the tool loop —
935
- * params, bounded serialized result, error flag, and timing per call.
936
- * Populated on the AI-SDK loop and the native agentic loops alike.
937
- * Bounded by `toolExecutionCapture` (default on, ~8KB per result).
938
- */
939
- toolExecutions?: ToolExecutionRecord[];
940
- enhancedWithTools?: boolean;
941
- availableTools?: Array<{
942
- name: string;
943
- description: string;
944
- parameters: StandardRecord;
945
- }>;
946
- analytics?: AnalyticsData;
947
- evaluation?: EvaluationData;
948
- factoryMetadata?: {
949
- enhancementApplied: boolean;
950
- enhancementType?: string;
951
- domainType?: string;
952
- processingTime?: number;
953
- configurationUsed?: StandardRecord;
954
- migrationPerformed?: boolean;
955
- legacyFieldsPreserved?: boolean;
956
- };
957
- streamingMetadata?: {
958
- streamingUsed: boolean;
959
- fallbackToGenerate?: boolean;
960
- chunkCount?: number;
961
- streamingDuration?: number;
962
- streamId?: string;
963
- bufferOptimization?: boolean;
964
- };
965
- workflow?: {
966
- originalResponse: string;
967
- processedResponse: string;
968
- ensembleResponses: Array<{
969
- provider: string;
970
- model: string;
971
- content: string;
972
- responseTime: number;
973
- status: "success" | "failure" | "timeout" | "partial";
974
- error?: string;
975
- }>;
976
- judgeScores?: {
977
- scores: Record<string, number>;
978
- reasoning?: string;
979
- selectedModel: string;
980
- };
981
- selectedModel: string;
982
- metrics: {
983
- totalTime: number;
984
- ensembleTime: number;
985
- judgeTime?: number;
986
- conditioningTime?: number;
987
- };
988
- workflowId: string;
989
- workflowName: string;
990
- };
991
- /** Thinking/reasoning text from provider (Anthropic thinking blocks, Gemini thought parts) */
992
- reasoning?: string;
993
- /** Token count for reasoning content */
994
- reasoningTokens?: number;
995
- /** STT transcription result (present when stt.enabled is true and audio input was provided) */
996
- transcription?: STTResult;
997
- retries?: {
998
- count: number;
999
- errors: Array<{
1000
- code: string;
1001
- message: string;
1002
- }>;
1003
- };
1004
- /**
1005
- * Account limit state for this request, parsed from Anthropic's
1006
- * `anthropic-ratelimit-*` response headers (plus the NeuroLink Claude
1007
- * proxy's `x-neurolink-*` additions when routed through it).
1008
- *
1009
- * Subscription windows report utilization, so headroom is a percentage
1010
- * (`sessionLeftPct`) rather than an absolute count — Anthropic publishes no
1011
- * remaining message or token figure for them. API-key accounts do carry
1012
- * absolute `requestsRemaining` / `tokensRemaining`.
1013
- */
1014
- limits?: ClaudeLimitSnapshot;
1015
- };
1016
- /**
1017
- * Unified options for both generation and streaming
1018
- * Supports factory patterns and domain configuration
1019
- */
1020
- export type UnifiedGenerationOptions = GenerateOptions & {
1021
- preferStreaming?: boolean;
1022
- streamingFallback?: boolean;
1023
- };
1024
- /**
1025
- * Enhanced provider type with generate method
1026
- */
1027
- export type EnhancedProvider = {
1028
- generate(options: GenerateOptions): Promise<GenerateResult>;
1029
- getName(): string;
1030
- isAvailable(): Promise<boolean>;
1031
- };
1032
- /**
1033
- * Factory-enhanced provider type
1034
- * Supports domain configuration and streaming optimizations
1035
- */
1036
- export type FactoryEnhancedProvider = EnhancedProvider & {
1037
- generateWithFactory(options: UnifiedGenerationOptions): Promise<GenerateResult>;
1038
- getDomainSupport(): string[];
1039
- getStreamingCapabilities(): {
1040
- supportsStreaming: boolean;
1041
- maxChunkSize: number;
1042
- bufferOptimizations: boolean;
1043
- };
1044
- };
1045
- /**
1046
- * Text generation options type (consolidated from core types)
1047
- * Extended to support video generation mode
1048
- */
1049
- export type TextGenerationOptions = {
1050
- prompt?: string;
1051
- /**
1052
- * Alternative input format for multimodal SDK operations.
1053
- *
1054
- * NOTE: This field is only used by the higher-level `generate()` API
1055
- * (NeuroLink.generate, BaseProvider.generate). Legacy `generateText()`
1056
- * callers must still use the `prompt` field directly.
1057
- *
1058
- * Supports text, images, and other multimodal inputs.
1059
- */
1060
- input?: {
1061
- /** Prompt text. Optional for media-only modes (avatar, music) that are driven by uploaded files rather than a prompt. */
1062
- text?: string;
1063
- /**
1064
- * Images to include in the request.
1065
- * For video generation, the first image is used as the source frame.
1066
- */
1067
- images?: Array<Buffer | string | ImageWithAltText>;
1068
- pdfFiles?: Array<Buffer | string>;
1069
- files?: Array<Buffer | string | FileWithMetadata>;
1070
- /** Director Mode segments (2-10). When provided, Director Mode is activated. */
1071
- segments?: DirectorSegment[];
1072
- };
1073
- provider?: AIProviderName;
1074
- model?: string;
1075
- region?: string;
1076
- temperature?: number;
1077
- maxTokens?: number;
1078
- /** Top-p (nucleus) sampling parameter. Controls diversity of generated tokens. */
1079
- topP?: number;
1080
- /** Top-k sampling parameter. Limits the number of tokens considered. (Google/Gemini models only) */
1081
- topK?: number;
1082
- /** Stop sequences that will halt generation when encountered. */
1083
- stopSequences?: string[];
1084
- systemPrompt?: string;
1085
- schema?: ZodUnknownSchema | Schema<unknown>;
1086
- /**
1087
- * Output configuration options
1088
- *
1089
- * @example Video generation
1090
- * ```typescript
1091
- * output: {
1092
- * mode: "video",
1093
- * video: { resolution: "1080p", length: 8 }
1094
- * }
1095
- * ```
1096
- */
1097
- output?: {
1098
- format?: "text" | "structured" | "json";
1099
- /**
1100
- * Output mode - determines the type of content generated
1101
- * - "text": Standard text generation (default)
1102
- * - "video": Video generation using models like Veo 3.1
1103
- * - "ppt": PowerPoint presentation generation
1104
- * - "avatar": Talking-head / lip-sync video (D-ID, HeyGen, Replicate-MuseTalk)
1105
- * - "music": Music / sound generation (Beatoven, ElevenLabs Music, Lyria, Replicate)
1106
- */
1107
- mode?: "text" | "video" | "ppt" | "avatar" | "music";
1108
- /**
1109
- * Video generation configuration (used when mode is "video")
1110
- */
1111
- video?: VideoOutputOptions;
1112
- /**
1113
- * PowerPoint generation configuration (used when mode is "ppt")
1114
- */
1115
- ppt?: PPTOutputOptions;
1116
- /**
1117
- * Director Mode configuration (only used when input.segments is provided)
1118
- */
1119
- director?: DirectorModeOptions;
1120
- /**
1121
- * Avatar generation configuration (used when mode is "avatar")
1122
- */
1123
- avatar?: AvatarOptions;
1124
- /**
1125
- * Music generation configuration (used when mode is "music")
1126
- */
1127
- music?: MusicOptions;
1128
- };
1129
- tools?: Record<string, Tool>;
1130
- /**
1131
- * Filter available tools by name.
1132
- * Only tools with names in this array will be made available.
1133
- * Used by dynamic arguments to dynamically select which tools to enable.
1134
- * Merged into `toolFilter` before tool filtering runs.
1135
- *
1136
- * @example
1137
- * ```typescript
1138
- * await neurolink.generate({
1139
- * input: { text: "Search for information" },
1140
- * enabledToolNames: ["websearchGrounding", "readFile"]
1141
- * });
1142
- * ```
1143
- */
1144
- enabledToolNames?: string[];
1145
- timeout?: number | string;
1146
- /** Wall-clock cap for the whole agentic turn (ms). See GenerateOptions.turnTimeoutMs. */
1147
- turnTimeoutMs?: number;
1148
- /** Max time with no progress before the turn ends as "stalled" (ms). See GenerateOptions.stallTimeoutMs. */
1149
- stallTimeoutMs?: number;
1150
- /** Remaining-time threshold that triggers the wrap-up nudge (ms). See GenerateOptions.wrapupTimeLeadMs. */
1151
- wrapupTimeLeadMs?: number;
1152
- /** Per-tool-execution timeout (ms, default 300_000). See GenerateOptions.toolTimeoutMs. */
1153
- toolTimeoutMs?: number;
1154
- /** AbortSignal for external cancellation of the AI call */
1155
- abortSignal?: AbortSignal;
1156
- /** Bounds for tool execution capture. See GenerateOptions.toolExecutionCapture. */
1157
- toolExecutionCapture?: ToolExecutionCaptureOptions;
1158
- disableTools?: boolean;
1159
- /** Disable the schema-driven tool call repair mechanism (BZ-665). Default: false (repair enabled). */
1160
- disableToolCallRepair?: boolean;
1161
- maxSteps?: number;
1162
- /** Include only these tools by name (whitelist). If set, only matching tools are available. */
1163
- toolFilter?: string[];
1164
- /** Exclude these tools by name (blacklist). Applied after toolFilter. */
1165
- excludeTools?: string[];
1166
- /** Disable tool result caching for this request (overrides global mcp.cache.enabled) */
1167
- disableToolCache?: boolean;
1168
- /**
1169
- * Tool choice configuration for the generation.
1170
- * Controls whether and which tools the model must call.
1171
- *
1172
- * - `"auto"` (default): the model can choose whether and which tools to call
1173
- * - `"none"`: no tool calls allowed
1174
- * - `"required"`: the model must call at least one tool
1175
- * - `{ type: "tool", toolName: string }`: the model must call the specified tool
1176
- *
1177
- * Note: When used without `prepareStep`, this applies to **every step** in the
1178
- * `maxSteps` loop. Using `"required"` or `{ type: "tool" }` without `prepareStep`
1179
- * will cause infinite tool calls until `maxSteps` is exhausted.
1180
- */
1181
- toolChoice?: ToolChoice<Record<string, Tool>>;
1182
- /**
1183
- * Optional callback that runs before each step in a multi-step generation.
1184
- * Allows dynamically changing `toolChoice` and available tools per step.
1185
- *
1186
- * This is the recommended way to enforce specific tool calls on certain steps
1187
- * while allowing the model freedom on others.
1188
- *
1189
- * Maps to Vercel AI SDK's `experimental_prepareStep`.
1190
- *
1191
- * @example Force a specific tool on step 0, then switch to auto:
1192
- * ```typescript
1193
- * prepareStep: ({ stepNumber, steps }) => {
1194
- * if (stepNumber === 0) {
1195
- * return {
1196
- * toolChoice: { type: 'tool', toolName: 'myTool' }
1197
- * };
1198
- * }
1199
- * return { toolChoice: 'auto' };
1200
- * }
1201
- * ```
1202
- *
1203
- * @see https://ai-sdk.dev/docs/reference/ai-sdk-core/generate-text#parameters
1204
- */
1205
- prepareStep?: (options: {
1206
- steps: StepResult<Record<string, Tool>>[];
1207
- stepNumber: number;
1208
- maxSteps: number;
1209
- model: LanguageModel;
1210
- }) => PromiseLike<{
1211
- model?: LanguageModel;
1212
- toolChoice?: ToolChoice<Record<string, Tool>>;
1213
- experimental_activeTools?: string[];
1214
- } | undefined>;
1215
- /**
1216
- * Text-to-Speech (TTS) configuration
1217
- *
1218
- * Enable audio generation from text. Behavior depends on useAiResponse flag:
1219
- * - When useAiResponse is false/undefined (default): TTS synthesizes the input text directly
1220
- * - When useAiResponse is true: TTS synthesizes the AI-generated response
1221
- *
1222
- * @example Using input text (default)
1223
- * ```typescript
1224
- * const neurolink = new NeuroLink();
1225
- * const result = await neurolink.generate({
1226
- * input: { text: "Hello world" },
1227
- * provider: "google-ai",
1228
- * tts: { enabled: true, voice: "en-US-Neural2-C" }
1229
- * });
1230
- * // TTS synthesizes "Hello world" directly, no AI generation
1231
- * ```
1232
- *
1233
- * @example Using AI response
1234
- * ```typescript
1235
- * const neurolink = new NeuroLink();
1236
- * const result = await neurolink.generate({
1237
- * input: { text: "Tell me a joke" },
1238
- * provider: "google-ai",
1239
- * tts: { enabled: true, useAiResponse: true, voice: "en-US-Neural2-C" }
1240
- * });
1241
- * // AI generates the joke, then TTS synthesizes the AI's response
1242
- * ```
1243
- */
1244
- tts?: TTSOptions;
1245
- /**
1246
- * Speech-to-Text (STT) configuration
1247
- *
1248
- * Enable audio transcription. When enabled, the audio provided via `stt.audio`
1249
- * will be transcribed to text and used as the prompt.
1250
- *
1251
- * @example
1252
- * ```typescript
1253
- * const neurolink = new NeuroLink();
1254
- * const result = await neurolink.generate({
1255
- * input: { text: "" },
1256
- * provider: "openai",
1257
- * stt: { enabled: true, provider: "whisper", language: "en-US", audio: audioBuffer }
1258
- * });
1259
- * // STT transcribes the audio, result.transcription contains the transcription
1260
- * ```
1261
- */
1262
- stt?: STTOptions & {
1263
- provider?: string;
1264
- audio?: Buffer | ArrayBuffer;
1265
- };
1266
- enableEvaluation?: boolean;
1267
- enableAnalytics?: boolean;
1268
- context?: Record<string, JsonValue>;
1269
- evaluationDomain?: string;
1270
- toolUsageContext?: string;
1271
- conversationHistory?: Array<{
1272
- role: string;
1273
- content: string;
1274
- }>;
1275
- conversationMessages?: ChatMessage[];
1276
- conversationMemoryConfig?: Partial<ConversationMemoryConfig>;
1277
- originalPrompt?: string;
1278
- middleware?: MiddlewareFactoryOptions;
1279
- onFinish?: OnFinishCallback;
1280
- onError?: OnErrorCallback;
1281
- expectedOutcome?: string;
1282
- evaluationCriteria?: string[];
1283
- csvOptions?: CSVProcessorOptions;
1284
- /** PDF processing options (#258). */
1285
- pdfOptions?: {
1286
- /** Password for an encrypted PDF (image-conversion fallback path). */
1287
- password?: string;
1288
- /** Max rendered-canvas pixels per page (#260 memory guard); oversized pages auto-downscale. */
1289
- maxCanvasPixels?: number;
1290
- /** Render scale for the image fallback (#297); defaults to PDF_LIMITS.DEFAULT_SCALE. */
1291
- scale?: number;
1292
- /** Max pages converted by the image fallback (#297); defaults to PDF_LIMITS.DEFAULT_MAX_PAGES. */
1293
- maxPages?: number;
1294
- };
1295
- enableSummarization?: boolean;
1296
- /**
1297
- * Skip injecting tool schemas into the system prompt.
1298
- * When true, tools are ONLY passed natively via the provider's `tools` parameter,
1299
- * avoiding duplicate tool definitions (~30K tokens savings per call).
1300
- * Default: false (backward compatible — tool schemas are injected into system prompt).
1301
- */
1302
- skipToolPromptInjection?: boolean;
1303
- /**
1304
- * ## Extended Thinking Options
1305
- *
1306
- * NeuroLink provides multiple ways to configure extended thinking/reasoning.
1307
- * These options interact as follows:
1308
- *
1309
- * ### Option Hierarchy (Priority: thinkingConfig > individual options)
1310
- *
1311
- * 1. **`thinkingConfig`** (recommended) - Full configuration object, highest priority
1312
- * 2. **`thinking`**, **`thinkingBudget`**, **`thinkingLevel`** - Simplified CLI-friendly options
1313
- *
1314
- * When both are provided, `thinkingConfig` takes precedence. The simplified options
1315
- * are automatically merged into `thinkingConfig` internally.
1316
- *
1317
- * ### Provider-Specific Behavior
1318
- *
1319
- * **Anthropic Claude (claude-3-7-sonnet, etc.):**
1320
- * - Use `thinkingConfig.budgetTokens` or `thinkingBudget`
1321
- * - Range: 5000-100000 tokens
1322
- * - `thinkingLevel` is ignored for Anthropic
1323
- *
1324
- * **Google Gemini 3 (gemini-3.1-pro-preview, gemini-3-flash-preview):**
1325
- * - Use `thinkingConfig.thinkingLevel` or `thinkingLevel`
1326
- * - Levels: minimal, low, medium, high
1327
- * - `budgetTokens` is ignored for Gemini (uses level-based allocation)
1328
- *
1329
- * ### Option Compatibility Matrix
1330
- *
1331
- * | Option | Anthropic | Gemini 3 | Other Providers |
1332
- * |----------------|-----------|----------|-----------------|
1333
- * | thinking | Yes | Yes | Ignored |
1334
- * | thinkingBudget | Yes | Ignored | Ignored |
1335
- * | thinkingLevel | Ignored | Yes | Ignored |
1336
- * | thinkingConfig | Yes | Yes | Ignored |
1337
- *
1338
- * ### Examples
1339
- *
1340
- * ```typescript
1341
- * // Simplified (CLI-friendly) - Anthropic
1342
- * { thinking: true, thinkingBudget: 10000 }
1343
- *
1344
- * // Simplified (CLI-friendly) - Gemini 3
1345
- * { thinking: true, thinkingLevel: "high" }
1346
- *
1347
- * // Full config (recommended for SDK)
1348
- * { thinkingConfig: { enabled: true, budgetTokens: 10000 } } // Anthropic
1349
- * { thinkingConfig: { thinkingLevel: "high" } } // Gemini 3
1350
- * ```
1351
- */
1352
- /**
1353
- * Enable extended thinking capability (simplified option).
1354
- * Equivalent to `thinkingConfig.enabled = true`.
1355
- * Works with both Anthropic and Gemini 3 models.
1356
- */
1357
- thinking?: boolean;
1358
- /**
1359
- * Token budget for thinking (Anthropic models only).
1360
- * Equivalent to `thinkingConfig.budgetTokens`.
1361
- * Range: 5000-100000 tokens. Ignored for Gemini models.
1362
- */
1363
- thinkingBudget?: number;
1364
- /**
1365
- * Thinking level for Gemini 3 models only.
1366
- * Equivalent to `thinkingConfig.thinkingLevel`.
1367
- * - `minimal` - Near-zero thinking (Flash only)
1368
- * - `low` - Light reasoning
1369
- * - `medium` - Balanced reasoning/latency
1370
- * - `high` - Deep reasoning (Pro default)
1371
- * Ignored for Anthropic models.
1372
- */
1373
- thinkingLevel?: "minimal" | "low" | "medium" | "high";
1374
- /**
1375
- * Full thinking/reasoning configuration (recommended for SDK usage).
1376
- * Takes precedence over simplified options (thinking, thinkingBudget, thinkingLevel).
1377
- *
1378
- * @see Above documentation for provider-specific behavior and option compatibility.
1379
- */
1380
- thinkingConfig?: {
1381
- /** Enable extended thinking. Default: false */
1382
- enabled?: boolean;
1383
- /** Explicit enable/disable type. Alternative to `enabled` boolean. */
1384
- type?: "enabled" | "disabled";
1385
- /** Token budget for thinking (Anthropic: 5000-100000). Ignored for Gemini. */
1386
- budgetTokens?: number;
1387
- /** Thinking level (Gemini 3: minimal|low|medium|high). Ignored for Anthropic. */
1388
- thinkingLevel?: "minimal" | "low" | "medium" | "high";
1389
- };
1390
- /**
1391
- * Per-provider credential overrides for this request.
1392
- * Overrides instance-level credentials set in `new NeuroLink({ credentials })`.
1393
- * Unset providers fall through to instance credentials, then environment variables.
1394
- */
1395
- credentials?: NeurolinkCredentials;
1396
- /**
1397
- * Optional request identifier for observability and log correlation.
1398
- * When provided, this ID is forwarded to spans, logs, and telemetry so
1399
- * callers can correlate generation traces back to their own request lifecycle.
1400
- */
1401
- requestId?: string;
1402
- /** PII detection config — forwarded from GenerateOptions/StreamOptions. */
1403
- piiDetection?: GenerateOptions["piiDetection"];
1404
- /** Response validation config — forwarded from GenerateOptions/StreamOptions. */
1405
- responseValidation?: GenerateOptions["responseValidation"];
1406
- /** Input validation config — forwarded from GenerateOptions/StreamOptions. */
1407
- inputValidation?: GenerateOptions["inputValidation"];
1408
- /** @deprecated Use `piiDetection`, `responseValidation`, `inputValidation` instead. */
1409
- processors?: ProcessorPipelineConfig;
1410
- };
1411
- /**
1412
- * Text generation result (consolidated from core types)
1413
- */
1414
- export type TextGenerationResult = {
1415
- content: string;
1416
- /** Parsed structured object when a `schema` was requested (see GenerateResult.structuredData). */
1417
- structuredData?: unknown;
1418
- finishReason?: string;
1419
- /** Turn-exit discriminator from native agentic loops (see GenerateStopReason). */
1420
- stopReason?: GenerateStopReason;
1421
- /** Verbatim provider finish/stop reason for the turn's terminal model call. */
1422
- rawFinishReason?: string;
1423
- /** Number of agentic steps (model calls) the turn used. */
1424
- stepsUsed?: number;
1425
- /** True when the schema JSON was repaired from malformed model text. */
1426
- jsonRepaired?: boolean;
1427
- /** True when the schema JSON appears truncated (output hit the token cap). */
1428
- jsonTruncated?: boolean;
1429
- provider?: string;
1430
- model?: string;
1431
- usage?: TokenUsage;
1432
- responseTime?: number;
1433
- toolsUsed?: string[];
1434
- toolExecutions?: Array<{
1435
- toolName: string;
1436
- executionTime: number;
1437
- success: boolean;
1438
- serverId?: string;
1439
- }>;
1440
- enhancedWithTools?: boolean;
1441
- availableTools?: Array<{
1442
- name: string;
1443
- description: string;
1444
- server: string;
1445
- category?: string;
1446
- }>;
1447
- analytics?: AnalyticsData;
1448
- evaluation?: EvaluationData;
1449
- audio?: TTSResult;
1450
- /** STT transcription result (present when stt input was processed) */
1451
- transcription?: STTResult;
1452
- /** Video generation result */
1453
- video?: VideoGenerationResult;
1454
- /** Avatar (talking-head) generation result */
1455
- avatar?: AvatarResult;
1456
- /** Music generation result */
1457
- music?: MusicResult;
1458
- /** PowerPoint generation result */
1459
- ppt?: PPTGenerationResult;
1460
- /** Image generation output */
1461
- imageOutput?: {
1462
- base64: string;
1463
- } | null;
1464
- /** Gemini 3 thought signature for reasoning continuity across turns */
1465
- thoughtSignature?: string;
1466
- /** Thinking/reasoning text from provider (Anthropic thinking blocks, Gemini thought parts, DeepSeek/NIM reasoning_content) */
1467
- reasoning?: string;
1468
- /** Token count for reasoning content */
1469
- reasoningTokens?: number;
1470
- retries?: {
1471
- count: number;
1472
- errors: Array<{
1473
- code: string;
1474
- message: string;
1475
- }>;
1476
- };
1477
- };
1478
- /**
1479
- * Enhanced result type with optional analytics/evaluation
1480
- */
1481
- export type TTSMetadata = {
1482
- /** Whether TTS synthesis was invoked. False indicates TTS was skipped. */
1483
- attempted: boolean;
1484
- /** Whether TTS synthesis completed successfully. */
1485
- success: boolean;
1486
- /** Structured synthesis error details, present only when synthesis failed. */
1487
- error?: {
1488
- code: string;
1489
- message: string;
1490
- retriable?: boolean;
1491
- };
1492
- /** TTS synthesis time in milliseconds. */
1493
- latency?: number;
1494
- };
1495
- export type EnhancedGenerateResult = GenerateResult & {
1496
- analytics?: AnalyticsData;
1497
- evaluation?: EvaluationData;
1498
- /** Outcome metadata when TTS was enabled for this generation. */
1499
- ttsMetadata?: TTSMetadata;
1500
- };
1501
- /**
1502
- * NL-004: Model alias/deprecation configuration.
1503
- * Allows mapping deprecated model names to their replacements.
1504
- */
1505
- export type ModelAliasConfig = {
1506
- aliases: Record<string, {
1507
- target: string;
1508
- action: "warn" | "redirect" | "block";
1509
- reason?: string;
1510
- }>;
1511
- };
1512
- /**
1513
- * Internal alias used by messageBuilder helpers after the entry-point
1514
- * (`buildMultimodalMessagesArray`) has guaranteed that `input` is non-null.
1515
- * All private helper functions that receive post-normalised options should
1516
- * accept this type to avoid repetitive null checks on every `input.*` access.
1517
- */
1518
- export type GenerateOptionsNormalized = GenerateOptions & {
1519
- input: NonNullable<GenerateOptions["input"]>;
1520
- };