@n8n/n8n-nodes-langchain 2.5.1 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1370) hide show
  1. package/dist/credentials/AnthropicApi.credentials.d.ts +9 -0
  2. package/dist/credentials/AnthropicApi.credentials.js +80 -100
  3. package/dist/credentials/AnthropicApi.credentials.js.map +1 -1
  4. package/dist/credentials/AzureAiSearchApi.credentials.d.ts +9 -0
  5. package/dist/credentials/AzureAiSearchApi.credentials.js +48 -71
  6. package/dist/credentials/AzureAiSearchApi.credentials.js.map +1 -1
  7. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.d.ts +8 -0
  8. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js +105 -129
  9. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js.map +1 -1
  10. package/dist/credentials/AzureOpenAiApi.credentials.d.ts +8 -0
  11. package/dist/credentials/AzureOpenAiApi.credentials.js +47 -70
  12. package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -1
  13. package/dist/credentials/ChromaCloudApi.credentials.d.ts +9 -0
  14. package/dist/credentials/ChromaCloudApi.credentials.js +55 -78
  15. package/dist/credentials/ChromaCloudApi.credentials.js.map +1 -1
  16. package/dist/credentials/ChromaSelfHostedApi.credentials.d.ts +9 -0
  17. package/dist/credentials/ChromaSelfHostedApi.credentials.js +78 -101
  18. package/dist/credentials/ChromaSelfHostedApi.credentials.js.map +1 -1
  19. package/dist/credentials/CohereApi.credentials.d.ts +9 -0
  20. package/dist/credentials/CohereApi.credentials.js +38 -61
  21. package/dist/credentials/CohereApi.credentials.js.map +1 -1
  22. package/dist/credentials/DeepSeekApi.credentials.d.ts +9 -0
  23. package/dist/credentials/DeepSeekApi.credentials.js +38 -61
  24. package/dist/credentials/DeepSeekApi.credentials.js.map +1 -1
  25. package/dist/credentials/GooglePalmApi.credentials.d.ts +9 -0
  26. package/dist/credentials/GooglePalmApi.credentials.js +38 -61
  27. package/dist/credentials/GooglePalmApi.credentials.js.map +1 -1
  28. package/dist/credentials/GroqApi.credentials.d.ts +9 -0
  29. package/dist/credentials/GroqApi.credentials.js +32 -55
  30. package/dist/credentials/GroqApi.credentials.js.map +1 -1
  31. package/dist/credentials/HuggingFaceApi.credentials.d.ts +9 -0
  32. package/dist/credentials/HuggingFaceApi.credentials.js +32 -55
  33. package/dist/credentials/HuggingFaceApi.credentials.js.map +1 -1
  34. package/dist/credentials/LemonadeApi.credentials.d.ts +13 -0
  35. package/dist/credentials/LemonadeApi.credentials.js +42 -65
  36. package/dist/credentials/LemonadeApi.credentials.js.map +1 -1
  37. package/dist/credentials/McpOAuth2Api.credentials.d.ts +8 -0
  38. package/dist/credentials/McpOAuth2Api.credentials.js +17 -40
  39. package/dist/credentials/McpOAuth2Api.credentials.js.map +1 -1
  40. package/dist/credentials/MilvusApi.credentials.d.ts +9 -0
  41. package/dist/credentials/MilvusApi.credentials.js +45 -68
  42. package/dist/credentials/MilvusApi.credentials.js.map +1 -1
  43. package/dist/credentials/MistralCloudApi.credentials.d.ts +9 -0
  44. package/dist/credentials/MistralCloudApi.credentials.js +33 -56
  45. package/dist/credentials/MistralCloudApi.credentials.js.map +1 -1
  46. package/dist/credentials/MotorheadApi.credentials.d.ts +9 -0
  47. package/dist/credentials/MotorheadApi.credentials.js +45 -68
  48. package/dist/credentials/MotorheadApi.credentials.js.map +1 -1
  49. package/dist/credentials/OllamaApi.credentials.d.ts +9 -0
  50. package/dist/credentials/OllamaApi.credentials.js +41 -64
  51. package/dist/credentials/OllamaApi.credentials.js.map +1 -1
  52. package/dist/credentials/OpenRouterApi.credentials.d.ts +9 -0
  53. package/dist/credentials/OpenRouterApi.credentials.js +38 -61
  54. package/dist/credentials/OpenRouterApi.credentials.js.map +1 -1
  55. package/dist/credentials/PineconeApi.credentials.d.ts +9 -0
  56. package/dist/credentials/PineconeApi.credentials.js +34 -57
  57. package/dist/credentials/PineconeApi.credentials.js.map +1 -1
  58. package/dist/credentials/QdrantApi.credentials.d.ts +9 -0
  59. package/dist/credentials/QdrantApi.credentials.js +39 -62
  60. package/dist/credentials/QdrantApi.credentials.js.map +1 -1
  61. package/dist/credentials/SearXngApi.credentials.d.ts +7 -0
  62. package/dist/credentials/SearXngApi.credentials.js +17 -40
  63. package/dist/credentials/SearXngApi.credentials.js.map +1 -1
  64. package/dist/credentials/SerpApi.credentials.d.ts +9 -0
  65. package/dist/credentials/SerpApi.credentials.js +32 -55
  66. package/dist/credentials/SerpApi.credentials.js.map +1 -1
  67. package/dist/credentials/VercelAiGatewayApi.credentials.d.ts +9 -0
  68. package/dist/credentials/VercelAiGatewayApi.credentials.js +54 -77
  69. package/dist/credentials/VercelAiGatewayApi.credentials.js.map +1 -1
  70. package/dist/credentials/WeaviateApi.credentials.d.ts +8 -0
  71. package/dist/credentials/WeaviateApi.credentials.js +137 -160
  72. package/dist/credentials/WeaviateApi.credentials.js.map +1 -1
  73. package/dist/credentials/WolframAlphaApi.credentials.d.ts +9 -0
  74. package/dist/credentials/WolframAlphaApi.credentials.js +36 -59
  75. package/dist/credentials/WolframAlphaApi.credentials.js.map +1 -1
  76. package/dist/credentials/XAiApi.credentials.d.ts +9 -0
  77. package/dist/credentials/XAiApi.credentials.js +38 -61
  78. package/dist/credentials/XAiApi.credentials.js.map +1 -1
  79. package/dist/credentials/XataApi.credentials.d.ts +9 -0
  80. package/dist/credentials/XataApi.credentials.js +46 -69
  81. package/dist/credentials/XataApi.credentials.js.map +1 -1
  82. package/dist/credentials/ZepApi.credentials.d.ts +9 -0
  83. package/dist/credentials/ZepApi.credentials.js +57 -80
  84. package/dist/credentials/ZepApi.credentials.js.map +1 -1
  85. package/dist/nodes/Guardrails/Guardrails.node.d.ts +4 -0
  86. package/dist/nodes/Guardrails/Guardrails.node.js +36 -59
  87. package/dist/nodes/Guardrails/Guardrails.node.js.map +1 -1
  88. package/dist/nodes/Guardrails/actions/checks/jailbreak.d.ts +3 -0
  89. package/dist/nodes/Guardrails/actions/checks/jailbreak.js +6 -31
  90. package/dist/nodes/Guardrails/actions/checks/jailbreak.js.map +1 -1
  91. package/dist/nodes/Guardrails/actions/checks/keywords.d.ts +6 -0
  92. package/dist/nodes/Guardrails/actions/checks/keywords.js +55 -75
  93. package/dist/nodes/Guardrails/actions/checks/keywords.js.map +1 -1
  94. package/dist/nodes/Guardrails/actions/checks/nsfw.d.ts +3 -0
  95. package/dist/nodes/Guardrails/actions/checks/nsfw.js +6 -31
  96. package/dist/nodes/Guardrails/actions/checks/nsfw.js.map +1 -1
  97. package/dist/nodes/Guardrails/actions/checks/pii.d.ts +49 -0
  98. package/dist/nodes/Guardrails/actions/checks/pii.js +178 -215
  99. package/dist/nodes/Guardrails/actions/checks/pii.js.map +1 -1
  100. package/dist/nodes/Guardrails/actions/checks/secretKeys.d.ts +7 -0
  101. package/dist/nodes/Guardrails/actions/checks/secretKeys.js +154 -178
  102. package/dist/nodes/Guardrails/actions/checks/secretKeys.js.map +1 -1
  103. package/dist/nodes/Guardrails/actions/checks/topicalAlignment.d.ts +3 -0
  104. package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js +6 -31
  105. package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js.map +1 -1
  106. package/dist/nodes/Guardrails/actions/checks/urls.d.ts +9 -0
  107. package/dist/nodes/Guardrails/actions/checks/urls.js +204 -223
  108. package/dist/nodes/Guardrails/actions/checks/urls.js.map +1 -1
  109. package/dist/nodes/Guardrails/actions/execute.d.ts +2 -0
  110. package/dist/nodes/Guardrails/actions/execute.js +43 -63
  111. package/dist/nodes/Guardrails/actions/execute.js.map +1 -1
  112. package/dist/nodes/Guardrails/actions/process.d.ts +12 -0
  113. package/dist/nodes/Guardrails/actions/process.js +185 -209
  114. package/dist/nodes/Guardrails/actions/process.js.map +1 -1
  115. package/dist/nodes/Guardrails/actions/types.d.ts +96 -0
  116. package/dist/nodes/Guardrails/actions/types.js +8 -31
  117. package/dist/nodes/Guardrails/actions/types.js.map +1 -1
  118. package/dist/nodes/Guardrails/description.d.ts +2 -0
  119. package/dist/nodes/Guardrails/description.js +345 -383
  120. package/dist/nodes/Guardrails/description.js.map +1 -1
  121. package/dist/nodes/Guardrails/helpers/base.d.ts +9 -0
  122. package/dist/nodes/Guardrails/helpers/base.js +25 -61
  123. package/dist/nodes/Guardrails/helpers/base.js.map +1 -1
  124. package/dist/nodes/Guardrails/helpers/common.d.ts +2 -0
  125. package/dist/nodes/Guardrails/helpers/common.js +20 -39
  126. package/dist/nodes/Guardrails/helpers/common.js.map +1 -1
  127. package/dist/nodes/Guardrails/helpers/configureNodeInputs.d.ts +22 -0
  128. package/dist/nodes/Guardrails/helpers/configureNodeInputs.js +49 -74
  129. package/dist/nodes/Guardrails/helpers/configureNodeInputs.js.map +1 -1
  130. package/dist/nodes/Guardrails/helpers/mappers.d.ts +11 -0
  131. package/dist/nodes/Guardrails/helpers/mappers.js +73 -90
  132. package/dist/nodes/Guardrails/helpers/mappers.js.map +1 -1
  133. package/dist/nodes/Guardrails/helpers/model.d.ts +7 -0
  134. package/dist/nodes/Guardrails/helpers/model.js +75 -104
  135. package/dist/nodes/Guardrails/helpers/model.js.map +1 -1
  136. package/dist/nodes/Guardrails/helpers/preflight.d.ts +2 -0
  137. package/dist/nodes/Guardrails/helpers/preflight.js +30 -54
  138. package/dist/nodes/Guardrails/helpers/preflight.js.map +1 -1
  139. package/dist/nodes/Guardrails/v1/GuardrailsV1.node.d.ts +6 -0
  140. package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js +24 -47
  141. package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js.map +1 -1
  142. package/dist/nodes/Guardrails/v2/GuardrailsV2.node.d.ts +6 -0
  143. package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js +24 -47
  144. package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js.map +1 -1
  145. package/dist/nodes/ModelSelector/ModelSelector.node.d.ts +13 -0
  146. package/dist/nodes/ModelSelector/ModelSelector.node.js +145 -170
  147. package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
  148. package/dist/nodes/ModelSelector/helpers.d.ts +3 -0
  149. package/dist/nodes/ModelSelector/helpers.js +55 -80
  150. package/dist/nodes/ModelSelector/helpers.js.map +1 -1
  151. package/dist/nodes/ToolExecutor/ToolExecutor.node.d.ts +6 -0
  152. package/dist/nodes/ToolExecutor/ToolExecutor.node.js +134 -96
  153. package/dist/nodes/ToolExecutor/ToolExecutor.node.js.map +1 -1
  154. package/dist/nodes/ToolExecutor/utils/convertToSchema.d.ts +2 -0
  155. package/dist/nodes/ToolExecutor/utils/convertToSchema.js +36 -55
  156. package/dist/nodes/ToolExecutor/utils/convertToSchema.js.map +1 -1
  157. package/dist/nodes/ToolExecutor/utils/executeTool.d.ts +3 -0
  158. package/dist/nodes/ToolExecutor/utils/executeTool.js +11 -35
  159. package/dist/nodes/ToolExecutor/utils/executeTool.js.map +1 -1
  160. package/dist/nodes/agents/Agent/Agent.node.d.ts +4 -0
  161. package/dist/nodes/agents/Agent/Agent.node.js +52 -76
  162. package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
  163. package/dist/nodes/agents/Agent/AgentTool.node.d.ts +4 -0
  164. package/dist/nodes/agents/Agent/AgentTool.node.js +31 -56
  165. package/dist/nodes/agents/Agent/AgentTool.node.js.map +1 -1
  166. package/dist/nodes/agents/Agent/V1/AgentV1.node.d.ts +6 -0
  167. package/dist/nodes/agents/Agent/V1/AgentV1.node.js +396 -414
  168. package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
  169. package/dist/nodes/agents/Agent/V2/AgentToolV2.node.d.ts +6 -0
  170. package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js +72 -96
  171. package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js.map +1 -1
  172. package/dist/nodes/agents/Agent/V2/AgentV2.node.d.ts +6 -0
  173. package/dist/nodes/agents/Agent/V2/AgentV2.node.js +108 -131
  174. package/dist/nodes/agents/Agent/V2/AgentV2.node.js.map +1 -1
  175. package/dist/nodes/agents/Agent/V2/utils.d.ts +2 -0
  176. package/dist/nodes/agents/Agent/V2/utils.js +65 -87
  177. package/dist/nodes/agents/Agent/V2/utils.js.map +1 -1
  178. package/dist/nodes/agents/Agent/V3/AgentToolV3.node.d.ts +7 -0
  179. package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js +67 -91
  180. package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js.map +1 -1
  181. package/dist/nodes/agents/Agent/V3/AgentV3.node.d.ts +7 -0
  182. package/dist/nodes/agents/Agent/V3/AgentV3.node.js +110 -133
  183. package/dist/nodes/agents/Agent/V3/AgentV3.node.js.map +1 -1
  184. package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.d.ts +2 -0
  185. package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js +87 -111
  186. package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js.map +1 -1
  187. package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.d.ts +2 -0
  188. package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +75 -99
  189. package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +1 -1
  190. package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.d.ts +2 -0
  191. package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js +4 -30
  192. package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js.map +1 -1
  193. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.d.ts +2 -0
  194. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js +77 -101
  195. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js.map +1 -1
  196. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.d.ts +2 -0
  197. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js +4 -28
  198. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js.map +1 -1
  199. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.d.ts +1 -0
  200. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js +3 -27
  201. package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js.map +1 -1
  202. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.d.ts +2 -0
  203. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js +63 -87
  204. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js.map +1 -1
  205. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.d.ts +2 -0
  206. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js +67 -90
  207. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js.map +1 -1
  208. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.d.ts +1 -0
  209. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js +3 -27
  210. package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js.map +1 -1
  211. package/dist/nodes/agents/Agent/agents/ReActAgent/description.d.ts +2 -0
  212. package/dist/nodes/agents/Agent/agents/ReActAgent/description.js +107 -131
  213. package/dist/nodes/agents/Agent/agents/ReActAgent/description.js.map +1 -1
  214. package/dist/nodes/agents/Agent/agents/ReActAgent/execute.d.ts +2 -0
  215. package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +82 -101
  216. package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +1 -1
  217. package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.d.ts +4 -0
  218. package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js +6 -36
  219. package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js.map +1 -1
  220. package/dist/nodes/agents/Agent/agents/SqlAgent/description.d.ts +2 -0
  221. package/dist/nodes/agents/Agent/agents/SqlAgent/description.js +191 -215
  222. package/dist/nodes/agents/Agent/agents/SqlAgent/description.js.map +1 -1
  223. package/dist/nodes/agents/Agent/agents/SqlAgent/execute.d.ts +2 -0
  224. package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js +104 -130
  225. package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js.map +1 -1
  226. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.d.ts +3 -0
  227. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js +16 -40
  228. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js.map +1 -1
  229. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.d.ts +3 -0
  230. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js +17 -41
  231. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js.map +1 -1
  232. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.d.ts +3 -0
  233. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js +67 -67
  234. package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js.map +1 -1
  235. package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.d.ts +2 -0
  236. package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js +4 -30
  237. package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js.map +1 -1
  238. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.d.ts +2 -0
  239. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js +16 -40
  240. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js.map +1 -1
  241. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.d.ts +2 -0
  242. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js +81 -123
  243. package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js.map +1 -1
  244. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.d.ts +4 -0
  245. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js +41 -66
  246. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js.map +1 -1
  247. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.d.ts +2 -0
  248. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js +214 -278
  249. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js.map +1 -1
  250. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.d.ts +2 -0
  251. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js +26 -50
  252. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js.map +1 -1
  253. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.d.ts +3 -0
  254. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js +27 -58
  255. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js.map +1 -1
  256. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.d.ts +13 -0
  257. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js +30 -68
  258. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js.map +1 -1
  259. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.d.ts +3 -0
  260. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js +9 -36
  261. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js.map +1 -1
  262. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.d.ts +10 -0
  263. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js +30 -54
  264. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js.map +1 -1
  265. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.d.ts +8 -0
  266. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js +65 -86
  267. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js.map +1 -1
  268. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.d.ts +5 -0
  269. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js +15 -53
  270. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js.map +1 -1
  271. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.d.ts +9 -0
  272. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js +16 -48
  273. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js.map +1 -1
  274. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.d.ts +16 -0
  275. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js +38 -62
  276. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js.map +1 -1
  277. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.d.ts +10 -0
  278. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js +64 -88
  279. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js.map +1 -1
  280. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.d.ts +21 -0
  281. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js +1 -15
  282. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js.map +1 -1
  283. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.d.ts +28 -0
  284. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js +212 -228
  285. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js.map +1 -1
  286. package/dist/nodes/agents/Agent/agents/ToolsAgent/options.d.ts +2 -0
  287. package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js +35 -59
  288. package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js.map +1 -1
  289. package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.d.ts +1 -0
  290. package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js +3 -27
  291. package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js.map +1 -1
  292. package/dist/nodes/agents/Agent/agents/utils.d.ts +6 -0
  293. package/dist/nodes/agents/Agent/agents/utils.js +17 -48
  294. package/dist/nodes/agents/Agent/agents/utils.js.map +1 -1
  295. package/dist/nodes/agents/Agent/utils.d.ts +2 -0
  296. package/dist/nodes/agents/Agent/utils.js +65 -87
  297. package/dist/nodes/agents/Agent/utils.js.map +1 -1
  298. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.d.ts +5 -0
  299. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +359 -380
  300. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
  301. package/dist/nodes/agents/OpenAiAssistant/utils.d.ts +5 -0
  302. package/dist/nodes/agents/OpenAiAssistant/utils.js +27 -53
  303. package/dist/nodes/agents/OpenAiAssistant/utils.js.map +1 -1
  304. package/dist/nodes/chains/ChainLLM/ChainLlm.node.d.ts +5 -0
  305. package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +114 -142
  306. package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
  307. package/dist/nodes/chains/ChainLLM/methods/chainExecutor.d.ts +29 -0
  308. package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js +103 -129
  309. package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js.map +1 -1
  310. package/dist/nodes/chains/ChainLLM/methods/config.d.ts +3 -0
  311. package/dist/nodes/chains/ChainLLM/methods/config.js +292 -317
  312. package/dist/nodes/chains/ChainLLM/methods/config.js.map +1 -1
  313. package/dist/nodes/chains/ChainLLM/methods/imageUtils.d.ts +12 -0
  314. package/dist/nodes/chains/ChainLLM/methods/imageUtils.js +60 -94
  315. package/dist/nodes/chains/ChainLLM/methods/imageUtils.js.map +1 -1
  316. package/dist/nodes/chains/ChainLLM/methods/index.d.ts +4 -0
  317. package/dist/nodes/chains/ChainLLM/methods/index.js +9 -35
  318. package/dist/nodes/chains/ChainLLM/methods/index.js.map +1 -1
  319. package/dist/nodes/chains/ChainLLM/methods/processItem.d.ts +2 -0
  320. package/dist/nodes/chains/ChainLLM/methods/processItem.js +54 -89
  321. package/dist/nodes/chains/ChainLLM/methods/processItem.js.map +1 -1
  322. package/dist/nodes/chains/ChainLLM/methods/promptUtils.d.ts +7 -0
  323. package/dist/nodes/chains/ChainLLM/methods/promptUtils.js +86 -126
  324. package/dist/nodes/chains/ChainLLM/methods/promptUtils.js.map +1 -1
  325. package/dist/nodes/chains/ChainLLM/methods/responseFormatter.d.ts +2 -0
  326. package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js +22 -46
  327. package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js.map +1 -1
  328. package/dist/nodes/chains/ChainLLM/methods/types.d.ts +29 -0
  329. package/dist/nodes/chains/ChainLLM/methods/types.js +1 -15
  330. package/dist/nodes/chains/ChainLLM/methods/types.js.map +1 -1
  331. package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.d.ts +5 -0
  332. package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +231 -253
  333. package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
  334. package/dist/nodes/chains/ChainRetrievalQA/constants.d.ts +5 -0
  335. package/dist/nodes/chains/ChainRetrievalQA/constants.js +13 -43
  336. package/dist/nodes/chains/ChainRetrievalQA/constants.js.map +1 -1
  337. package/dist/nodes/chains/ChainRetrievalQA/processItem.d.ts +2 -0
  338. package/dist/nodes/chains/ChainRetrievalQA/processItem.js +57 -85
  339. package/dist/nodes/chains/ChainRetrievalQA/processItem.js.map +1 -1
  340. package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.d.ts +4 -0
  341. package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +38 -61
  342. package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
  343. package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.d.ts +6 -0
  344. package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js +208 -233
  345. package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js.map +1 -1
  346. package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.d.ts +6 -0
  347. package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js +323 -352
  348. package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js.map +1 -1
  349. package/dist/nodes/chains/ChainSummarization/V2/processItem.d.ts +3 -0
  350. package/dist/nodes/chains/ChainSummarization/V2/processItem.js +50 -89
  351. package/dist/nodes/chains/ChainSummarization/V2/processItem.js.map +1 -1
  352. package/dist/nodes/chains/ChainSummarization/helpers.d.ts +9 -0
  353. package/dist/nodes/chains/ChainSummarization/helpers.js +43 -67
  354. package/dist/nodes/chains/ChainSummarization/helpers.js.map +1 -1
  355. package/dist/nodes/chains/ChainSummarization/prompt.d.ts +2 -0
  356. package/dist/nodes/chains/ChainSummarization/prompt.js +4 -30
  357. package/dist/nodes/chains/ChainSummarization/prompt.js.map +1 -1
  358. package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.d.ts +5 -0
  359. package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +251 -283
  360. package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
  361. package/dist/nodes/chains/InformationExtractor/constants.d.ts +1 -0
  362. package/dist/nodes/chains/InformationExtractor/constants.js +3 -27
  363. package/dist/nodes/chains/InformationExtractor/constants.js.map +1 -1
  364. package/dist/nodes/chains/InformationExtractor/helpers.d.ts +7 -0
  365. package/dist/nodes/chains/InformationExtractor/helpers.js +28 -48
  366. package/dist/nodes/chains/InformationExtractor/helpers.js.map +1 -1
  367. package/dist/nodes/chains/InformationExtractor/processItem.d.ts +4 -0
  368. package/dist/nodes/chains/InformationExtractor/processItem.js +26 -52
  369. package/dist/nodes/chains/InformationExtractor/processItem.js.map +1 -1
  370. package/dist/nodes/chains/InformationExtractor/types.d.ts +6 -0
  371. package/dist/nodes/chains/InformationExtractor/types.js +1 -15
  372. package/dist/nodes/chains/InformationExtractor/types.js.map +1 -1
  373. package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.d.ts +5 -0
  374. package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +314 -350
  375. package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
  376. package/dist/nodes/chains/TextClassifier/TextClassifier.node.d.ts +5 -0
  377. package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +246 -285
  378. package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
  379. package/dist/nodes/chains/TextClassifier/constants.d.ts +1 -0
  380. package/dist/nodes/chains/TextClassifier/constants.js +3 -27
  381. package/dist/nodes/chains/TextClassifier/constants.js.map +1 -1
  382. package/dist/nodes/chains/TextClassifier/processItem.d.ts +7 -0
  383. package/dist/nodes/chains/TextClassifier/processItem.js +26 -59
  384. package/dist/nodes/chains/TextClassifier/processItem.js.map +1 -1
  385. package/dist/nodes/code/Code.node.d.ts +8 -0
  386. package/dist/nodes/code/Code.node.js +316 -364
  387. package/dist/nodes/code/Code.node.js.map +1 -1
  388. package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.d.ts +8 -0
  389. package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js +166 -197
  390. package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js.map +1 -1
  391. package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.d.ts +8 -0
  392. package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +317 -336
  393. package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
  394. package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.d.ts +5 -0
  395. package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +152 -171
  396. package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +1 -1
  397. package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.d.ts +5 -0
  398. package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js +77 -105
  399. package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js.map +1 -1
  400. package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.d.ts +5 -0
  401. package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js +123 -146
  402. package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js.map +1 -1
  403. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.d.ts +5 -0
  404. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +132 -159
  405. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
  406. package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.d.ts +5 -0
  407. package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js +101 -124
  408. package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js.map +1 -1
  409. package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.d.ts +5 -0
  410. package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js +118 -145
  411. package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js.map +1 -1
  412. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.d.ts +15 -0
  413. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js +136 -159
  414. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js.map +1 -1
  415. package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.d.ts +5 -0
  416. package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js +98 -125
  417. package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js.map +1 -1
  418. package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.d.ts +5 -0
  419. package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js +58 -81
  420. package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js.map +1 -1
  421. package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.d.ts +5 -0
  422. package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js +136 -163
  423. package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js.map +1 -1
  424. package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.d.ts +5 -0
  425. package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js +56 -77
  426. package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js.map +1 -1
  427. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.d.ts +5 -0
  428. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +228 -251
  429. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
  430. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.d.ts +11 -0
  431. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +294 -322
  432. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
  433. package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.d.ts +8 -0
  434. package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js +38 -60
  435. package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js.map +1 -1
  436. package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.d.ts +5 -0
  437. package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js +83 -104
  438. package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js.map +1 -1
  439. package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.d.ts +5 -0
  440. package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js +69 -90
  441. package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js.map +1 -1
  442. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.d.ts +11 -0
  443. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +730 -759
  444. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
  445. package/dist/nodes/llms/LMChatOpenAi/common.d.ts +4 -0
  446. package/dist/nodes/llms/LMChatOpenAi/common.js +116 -141
  447. package/dist/nodes/llms/LMChatOpenAi/common.js.map +1 -1
  448. package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.d.ts +2 -0
  449. package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +38 -66
  450. package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
  451. package/dist/nodes/llms/LMChatOpenAi/types.d.ts +59 -0
  452. package/dist/nodes/llms/LMChatOpenAi/types.js +1 -15
  453. package/dist/nodes/llms/LMChatOpenAi/types.js.map +1 -1
  454. package/dist/nodes/llms/LMCohere/LmCohere.node.d.ts +5 -0
  455. package/dist/nodes/llms/LMCohere/LmCohere.node.js +93 -116
  456. package/dist/nodes/llms/LMCohere/LmCohere.node.js.map +1 -1
  457. package/dist/nodes/llms/LMLemonade/LmLemonade.node.d.ts +5 -0
  458. package/dist/nodes/llms/LMLemonade/LmLemonade.node.js +81 -101
  459. package/dist/nodes/llms/LMLemonade/LmLemonade.node.js.map +1 -1
  460. package/dist/nodes/llms/LMLemonade/description.d.ts +4 -0
  461. package/dist/nodes/llms/LMLemonade/description.js +112 -140
  462. package/dist/nodes/llms/LMLemonade/description.js.map +1 -1
  463. package/dist/nodes/llms/LMOllama/LmOllama.node.d.ts +5 -0
  464. package/dist/nodes/llms/LMOllama/LmOllama.node.js +65 -86
  465. package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
  466. package/dist/nodes/llms/LMOllama/description.d.ts +4 -0
  467. package/dist/nodes/llms/LMOllama/description.js +207 -235
  468. package/dist/nodes/llms/LMOllama/description.js.map +1 -1
  469. package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.d.ts +15 -0
  470. package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +226 -248
  471. package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +1 -1
  472. package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.d.ts +5 -0
  473. package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js +133 -156
  474. package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js.map +1 -1
  475. package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.d.ts +5 -0
  476. package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js +234 -258
  477. package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js.map +1 -1
  478. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.d.ts +5 -0
  479. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +111 -144
  480. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
  481. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.d.ts +14 -0
  482. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js +41 -69
  483. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js.map +1 -1
  484. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.d.ts +3 -0
  485. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js +21 -47
  486. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js.map +1 -1
  487. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.d.ts +3 -0
  488. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js +23 -50
  489. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js.map +1 -1
  490. package/dist/nodes/llms/LmChatAzureOpenAi/properties.d.ts +2 -0
  491. package/dist/nodes/llms/LmChatAzureOpenAi/properties.js +124 -151
  492. package/dist/nodes/llms/LmChatAzureOpenAi/properties.js.map +1 -1
  493. package/dist/nodes/llms/LmChatAzureOpenAi/types.d.ts +56 -0
  494. package/dist/nodes/llms/LmChatAzureOpenAi/types.js +14 -40
  495. package/dist/nodes/llms/LmChatAzureOpenAi/types.js.map +1 -1
  496. package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.d.ts +11 -0
  497. package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js +148 -172
  498. package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js.map +1 -1
  499. package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.d.ts +5 -0
  500. package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js +220 -241
  501. package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js.map +1 -1
  502. package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.d.ts +5 -0
  503. package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +133 -162
  504. package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
  505. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.d.ts +15 -0
  506. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +174 -205
  507. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
  508. package/dist/nodes/llms/LmChatGoogleVertex/error-handling.d.ts +8 -0
  509. package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js +14 -36
  510. package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js.map +1 -1
  511. package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.d.ts +5 -0
  512. package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js +136 -159
  513. package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js.map +1 -1
  514. package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.d.ts +5 -0
  515. package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js +194 -217
  516. package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js.map +1 -1
  517. package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.d.ts +5 -0
  518. package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js +220 -241
  519. package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js.map +1 -1
  520. package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.d.ts +5 -0
  521. package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js +220 -241
  522. package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js.map +1 -1
  523. package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.d.ts +5 -0
  524. package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js +222 -243
  525. package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js.map +1 -1
  526. package/dist/nodes/llms/N8nLlmTracing.d.ts +46 -0
  527. package/dist/nodes/llms/N8nLlmTracing.js +144 -189
  528. package/dist/nodes/llms/N8nLlmTracing.js.map +1 -1
  529. package/dist/nodes/llms/N8nNonEstimatingTracing.d.ts +31 -0
  530. package/dist/nodes/llms/N8nNonEstimatingTracing.js +112 -157
  531. package/dist/nodes/llms/N8nNonEstimatingTracing.js.map +1 -1
  532. package/dist/nodes/llms/gemini-common/additional-options.d.ts +4 -0
  533. package/dist/nodes/llms/gemini-common/additional-options.js +95 -122
  534. package/dist/nodes/llms/gemini-common/additional-options.js.map +1 -1
  535. package/dist/nodes/llms/gemini-common/safety-options.d.ts +3 -0
  536. package/dist/nodes/llms/gemini-common/safety-options.js +49 -75
  537. package/dist/nodes/llms/gemini-common/safety-options.js.map +1 -1
  538. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.d.ts +1 -0
  539. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js +24 -60
  540. package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js.map +1 -1
  541. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.d.ts +3 -0
  542. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js +24 -46
  543. package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js.map +1 -1
  544. package/dist/nodes/mcp/McpClient/McpClient.node.d.ts +11 -0
  545. package/dist/nodes/mcp/McpClient/McpClient.node.js +317 -323
  546. package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
  547. package/dist/nodes/mcp/McpClient/listSearch.d.ts +2 -0
  548. package/dist/nodes/mcp/McpClient/listSearch.js +32 -54
  549. package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
  550. package/dist/nodes/mcp/McpClient/resourceMapping.d.ts +2 -0
  551. package/dist/nodes/mcp/McpClient/resourceMapping.js +33 -57
  552. package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
  553. package/dist/nodes/mcp/McpClient/utils.d.ts +5 -0
  554. package/dist/nodes/mcp/McpClient/utils.js +202 -232
  555. package/dist/nodes/mcp/McpClient/utils.js.map +1 -1
  556. package/dist/nodes/mcp/McpClientTool/McpClientTool.node.d.ts +12 -0
  557. package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js +359 -397
  558. package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js.map +1 -1
  559. package/dist/nodes/mcp/McpClientTool/loadOptions.d.ts +2 -0
  560. package/dist/nodes/mcp/McpClientTool/loadOptions.js +34 -57
  561. package/dist/nodes/mcp/McpClientTool/loadOptions.js.map +1 -1
  562. package/dist/nodes/mcp/McpClientTool/types.d.ts +1 -0
  563. package/dist/nodes/mcp/McpClientTool/types.js +1 -15
  564. package/dist/nodes/mcp/McpClientTool/types.js.map +1 -1
  565. package/dist/nodes/mcp/McpClientTool/utils.d.ts +14 -0
  566. package/dist/nodes/mcp/McpClientTool/utils.js +70 -109
  567. package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
  568. package/dist/nodes/mcp/McpTrigger/FlushingTransport.d.ts +21 -0
  569. package/dist/nodes/mcp/McpTrigger/FlushingTransport.js +32 -56
  570. package/dist/nodes/mcp/McpTrigger/FlushingTransport.js.map +1 -1
  571. package/dist/nodes/mcp/McpTrigger/McpServer.d.ts +27 -0
  572. package/dist/nodes/mcp/McpTrigger/McpServer.js +201 -230
  573. package/dist/nodes/mcp/McpTrigger/McpServer.js.map +1 -1
  574. package/dist/nodes/mcp/McpTrigger/McpTrigger.node.d.ts +6 -0
  575. package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js +172 -189
  576. package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js.map +1 -1
  577. package/dist/nodes/mcp/shared/descriptions.d.ts +6 -0
  578. package/dist/nodes/mcp/shared/descriptions.js +54 -82
  579. package/dist/nodes/mcp/shared/descriptions.js.map +1 -1
  580. package/dist/nodes/mcp/shared/types.d.ts +8 -0
  581. package/dist/nodes/mcp/shared/types.js +1 -15
  582. package/dist/nodes/mcp/shared/types.js.map +1 -1
  583. package/dist/nodes/mcp/shared/utils.d.ts +32 -0
  584. package/dist/nodes/mcp/shared/utils.js +182 -202
  585. package/dist/nodes/mcp/shared/utils.js.map +1 -1
  586. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.d.ts +5 -0
  587. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +137 -158
  588. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
  589. package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.d.ts +5 -0
  590. package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +84 -107
  591. package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +1 -1
  592. package/dist/nodes/memory/MemoryManager/MemoryManager.node.d.ts +7 -0
  593. package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +324 -362
  594. package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
  595. package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.d.ts +5 -0
  596. package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js +120 -148
  597. package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js.map +1 -1
  598. package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.d.ts +5 -0
  599. package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +105 -127
  600. package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
  601. package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.d.ts +11 -0
  602. package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js +98 -119
  603. package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js.map +1 -1
  604. package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.d.ts +5 -0
  605. package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js +151 -171
  606. package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js.map +1 -1
  607. package/dist/nodes/memory/MemoryXata/MemoryXata.node.d.ts +5 -0
  608. package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +126 -152
  609. package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
  610. package/dist/nodes/memory/MemoryZep/MemoryZep.node.d.ts +5 -0
  611. package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +141 -165
  612. package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +1 -1
  613. package/dist/nodes/memory/descriptions.d.ts +5 -0
  614. package/dist/nodes/memory/descriptions.js +48 -78
  615. package/dist/nodes/memory/descriptions.js.map +1 -1
  616. package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.d.ts +5 -0
  617. package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js +90 -127
  618. package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js.map +1 -1
  619. package/dist/nodes/output_parser/OutputParserAutofixing/prompt.d.ts +1 -0
  620. package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js +3 -27
  621. package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js.map +1 -1
  622. package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.d.ts +5 -0
  623. package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +68 -101
  624. package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
  625. package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.d.ts +5 -0
  626. package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +159 -196
  627. package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
  628. package/dist/nodes/output_parser/OutputParserStructured/prompt.d.ts +1 -0
  629. package/dist/nodes/output_parser/OutputParserStructured/prompt.js +3 -27
  630. package/dist/nodes/output_parser/OutputParserStructured/prompt.js.map +1 -1
  631. package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.d.ts +5 -0
  632. package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js +87 -110
  633. package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js.map +1 -1
  634. package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.d.ts +5 -0
  635. package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +69 -98
  636. package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
  637. package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.d.ts +5 -0
  638. package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +88 -117
  639. package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
  640. package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.d.ts +5 -0
  641. package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +68 -93
  642. package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
  643. package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.d.ts +5 -0
  644. package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +356 -400
  645. package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
  646. package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.d.ts +5 -0
  647. package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +76 -99
  648. package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
  649. package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.d.ts +5 -0
  650. package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +103 -130
  651. package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
  652. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.d.ts +5 -0
  653. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +70 -93
  654. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
  655. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.d.ts +12 -0
  656. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js +50 -81
  657. package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js.map +1 -1
  658. package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.d.ts +6 -0
  659. package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +63 -86
  660. package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
  661. package/dist/nodes/tools/ToolCode/ToolCode.node.d.ts +6 -0
  662. package/dist/nodes/tools/ToolCode/ToolCode.node.js +278 -310
  663. package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
  664. package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.d.ts +5 -0
  665. package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +329 -384
  666. package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +1 -1
  667. package/dist/nodes/tools/ToolHttpRequest/descriptions.d.ts +7 -0
  668. package/dist/nodes/tools/ToolHttpRequest/descriptions.js +357 -394
  669. package/dist/nodes/tools/ToolHttpRequest/descriptions.js.map +1 -1
  670. package/dist/nodes/tools/ToolHttpRequest/interfaces.d.ts +20 -0
  671. package/dist/nodes/tools/ToolHttpRequest/interfaces.js +1 -15
  672. package/dist/nodes/tools/ToolHttpRequest/interfaces.js.map +1 -1
  673. package/dist/nodes/tools/ToolHttpRequest/utils.d.ts +25 -0
  674. package/dist/nodes/tools/ToolHttpRequest/utils.js +540 -581
  675. package/dist/nodes/tools/ToolHttpRequest/utils.js.map +1 -1
  676. package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.d.ts +6 -0
  677. package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js +118 -141
  678. package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js.map +1 -1
  679. package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.d.ts +6 -0
  680. package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js +123 -149
  681. package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js.map +1 -1
  682. package/dist/nodes/tools/ToolThink/ToolThink.node.d.ts +6 -0
  683. package/dist/nodes/tools/ToolThink/ToolThink.node.js +87 -110
  684. package/dist/nodes/tools/ToolThink/ToolThink.node.js.map +1 -1
  685. package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.d.ts +6 -0
  686. package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +126 -153
  687. package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
  688. package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.d.ts +6 -0
  689. package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js +62 -84
  690. package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js.map +1 -1
  691. package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.d.ts +6 -0
  692. package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js +66 -89
  693. package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js.map +1 -1
  694. package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.d.ts +4 -0
  695. package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +42 -65
  696. package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
  697. package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.d.ts +6 -0
  698. package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +185 -193
  699. package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -1
  700. package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.d.ts +2 -0
  701. package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js +287 -324
  702. package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js.map +1 -1
  703. package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.d.ts +11 -0
  704. package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js +58 -79
  705. package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js.map +1 -1
  706. package/dist/nodes/tools/ToolWorkflow/v2/methods/index.d.ts +1 -0
  707. package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js +35 -36
  708. package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js.map +1 -1
  709. package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.d.ts +2 -0
  710. package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js +20 -42
  711. package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js.map +1 -1
  712. package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.d.ts +26 -0
  713. package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +235 -288
  714. package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -1
  715. package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.d.ts +2 -0
  716. package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js +131 -164
  717. package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js.map +1 -1
  718. package/dist/nodes/trigger/ChatTrigger/Chat.node.d.ts +8 -0
  719. package/dist/nodes/trigger/ChatTrigger/Chat.node.js +233 -275
  720. package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
  721. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.d.ts +7 -0
  722. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +770 -775
  723. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
  724. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.d.ts +2 -0
  725. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js +41 -70
  726. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js.map +1 -1
  727. package/dist/nodes/trigger/ChatTrigger/constants.d.ts +1 -0
  728. package/dist/nodes/trigger/ChatTrigger/constants.js +9 -27
  729. package/dist/nodes/trigger/ChatTrigger/constants.js.map +1 -1
  730. package/dist/nodes/trigger/ChatTrigger/error.d.ts +5 -0
  731. package/dist/nodes/trigger/ChatTrigger/error.js +17 -39
  732. package/dist/nodes/trigger/ChatTrigger/error.js.map +1 -1
  733. package/dist/nodes/trigger/ChatTrigger/templates.d.ts +19 -0
  734. package/dist/nodes/trigger/ChatTrigger/templates.js +55 -95
  735. package/dist/nodes/trigger/ChatTrigger/templates.js.map +1 -1
  736. package/dist/nodes/trigger/ChatTrigger/types.d.ts +6 -0
  737. package/dist/nodes/trigger/ChatTrigger/types.js +8 -32
  738. package/dist/nodes/trigger/ChatTrigger/types.js.map +1 -1
  739. package/dist/nodes/trigger/ChatTrigger/util.d.ts +15 -0
  740. package/dist/nodes/trigger/ChatTrigger/util.js +101 -135
  741. package/dist/nodes/trigger/ChatTrigger/util.js.map +1 -1
  742. package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.d.ts +5 -0
  743. package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js +63 -87
  744. package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js.map +1 -1
  745. package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.d.ts +29 -0
  746. package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js +326 -352
  747. package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js.map +1 -1
  748. package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.d.ts +19 -0
  749. package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js +309 -326
  750. package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js.map +1 -1
  751. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.d.ts +19 -0
  752. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +136 -164
  753. package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
  754. package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.d.ts +5 -0
  755. package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js +83 -116
  756. package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map +1 -1
  757. package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.d.ts +5 -0
  758. package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js +62 -90
  759. package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js.map +1 -1
  760. package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.d.ts +18 -0
  761. package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js +77 -100
  762. package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js.map +1 -1
  763. package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.d.ts +47 -0
  764. package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js +278 -340
  765. package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js.map +1 -1
  766. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.d.ts +18 -0
  767. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js +221 -256
  768. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js.map +1 -1
  769. package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.d.ts +18 -0
  770. package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js +109 -131
  771. package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js.map +1 -1
  772. package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.d.ts +11 -0
  773. package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js +107 -137
  774. package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js.map +1 -1
  775. package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.d.ts +11 -0
  776. package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js +98 -125
  777. package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js.map +1 -1
  778. package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.d.ts +6 -0
  779. package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js +27 -48
  780. package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js.map +1 -1
  781. package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.d.ts +19 -0
  782. package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js +130 -162
  783. package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js.map +1 -1
  784. package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.d.ts +34 -0
  785. package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js +267 -292
  786. package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js.map +1 -1
  787. package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.d.ts +18 -0
  788. package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js +95 -116
  789. package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js.map +1 -1
  790. package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.d.ts +11 -0
  791. package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js +99 -129
  792. package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js.map +1 -1
  793. package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.d.ts +11 -0
  794. package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js +94 -121
  795. package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js.map +1 -1
  796. package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.d.ts +19 -0
  797. package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js +301 -336
  798. package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js.map +1 -1
  799. package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.d.ts +28 -0
  800. package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js +118 -117
  801. package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js.map +1 -1
  802. package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.d.ts +19 -0
  803. package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +119 -139
  804. package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +1 -1
  805. package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.d.ts +5 -0
  806. package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js +117 -147
  807. package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js.map +1 -1
  808. package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.d.ts +5 -0
  809. package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js +100 -127
  810. package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js.map +1 -1
  811. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.d.ts +7 -0
  812. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js +37 -65
  813. package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js.map +1 -1
  814. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.d.ts +34 -0
  815. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js +161 -222
  816. package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js.map +1 -1
  817. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.d.ts +16 -0
  818. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js +87 -120
  819. package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js.map +1 -1
  820. package/dist/nodes/vector_store/shared/MemoryManager/config.d.ts +4 -0
  821. package/dist/nodes/vector_store/shared/MemoryManager/config.js +26 -50
  822. package/dist/nodes/vector_store/shared/MemoryManager/config.js.map +1 -1
  823. package/dist/nodes/vector_store/shared/MemoryManager/types.d.ts +39 -0
  824. package/dist/nodes/vector_store/shared/MemoryManager/types.js +1 -15
  825. package/dist/nodes/vector_store/shared/MemoryManager/types.js.map +1 -1
  826. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
  827. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +41 -67
  828. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -1
  829. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +18 -0
  830. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +229 -281
  831. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -1
  832. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +31 -0
  833. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +70 -97
  834. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -1
  835. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +6 -0
  836. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +20 -30
  837. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -1
  838. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
  839. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +29 -58
  840. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -1
  841. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
  842. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +39 -75
  843. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -1
  844. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.d.ts +5 -0
  845. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js +57 -92
  846. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js.map +1 -1
  847. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
  848. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +56 -91
  849. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -1
  850. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
  851. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +24 -50
  852. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -1
  853. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
  854. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +34 -64
  855. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -1
  856. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +37 -0
  857. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +1 -15
  858. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -1
  859. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
  860. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +12 -40
  861. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -1
  862. package/dist/nodes/vector_store/shared/descriptions.d.ts +7 -0
  863. package/dist/nodes/vector_store/shared/descriptions.js +128 -162
  864. package/dist/nodes/vector_store/shared/descriptions.js.map +1 -1
  865. package/dist/nodes/vector_store/shared/processDocuments.d.ts +25 -0
  866. package/dist/nodes/vector_store/shared/processDocuments.js +35 -58
  867. package/dist/nodes/vector_store/shared/processDocuments.js.map +1 -1
  868. package/dist/nodes/vendors/Anthropic/Anthropic.node.d.ts +9 -0
  869. package/dist/nodes/vendors/Anthropic/Anthropic.node.js +15 -38
  870. package/dist/nodes/vendors/Anthropic/Anthropic.node.js.map +1 -1
  871. package/dist/nodes/vendors/Anthropic/actions/descriptions.d.ts +2 -0
  872. package/dist/nodes/vendors/Anthropic/actions/descriptions.js +25 -49
  873. package/dist/nodes/vendors/Anthropic/actions/descriptions.js.map +1 -1
  874. package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.d.ts +28 -0
  875. package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js +91 -116
  876. package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js.map +1 -1
  877. package/dist/nodes/vendors/Anthropic/actions/document/index.d.ts +4 -0
  878. package/dist/nodes/vendors/Anthropic/actions/document/index.js +58 -60
  879. package/dist/nodes/vendors/Anthropic/actions/document/index.js.map +1 -1
  880. package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.d.ts +29 -0
  881. package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js +27 -54
  882. package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js.map +1 -1
  883. package/dist/nodes/vendors/Anthropic/actions/file/get.operation.d.ts +29 -0
  884. package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js +29 -56
  885. package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js.map +1 -1
  886. package/dist/nodes/vendors/Anthropic/actions/file/index.d.ts +7 -0
  887. package/dist/nodes/vendors/Anthropic/actions/file/index.js +85 -90
  888. package/dist/nodes/vendors/Anthropic/actions/file/index.js.map +1 -1
  889. package/dist/nodes/vendors/Anthropic/actions/file/list.operation.d.ts +29 -0
  890. package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js +70 -96
  891. package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js.map +1 -1
  892. package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.d.ts +29 -0
  893. package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js +92 -118
  894. package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js.map +1 -1
  895. package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.d.ts +28 -0
  896. package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js +91 -116
  897. package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js.map +1 -1
  898. package/dist/nodes/vendors/Anthropic/actions/image/index.d.ts +4 -0
  899. package/dist/nodes/vendors/Anthropic/actions/image/index.js +58 -60
  900. package/dist/nodes/vendors/Anthropic/actions/image/index.js.map +1 -1
  901. package/dist/nodes/vendors/Anthropic/actions/node.type.d.ts +10 -0
  902. package/dist/nodes/vendors/Anthropic/actions/node.type.js +1 -15
  903. package/dist/nodes/vendors/Anthropic/actions/node.type.js.map +1 -1
  904. package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.d.ts +28 -0
  905. package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js +51 -76
  906. package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js.map +1 -1
  907. package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.d.ts +28 -0
  908. package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js +117 -142
  909. package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js.map +1 -1
  910. package/dist/nodes/vendors/Anthropic/actions/prompt/index.d.ts +6 -0
  911. package/dist/nodes/vendors/Anthropic/actions/prompt/index.js +87 -91
  912. package/dist/nodes/vendors/Anthropic/actions/prompt/index.js.map +1 -1
  913. package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.d.ts +28 -0
  914. package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js +109 -134
  915. package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js.map +1 -1
  916. package/dist/nodes/vendors/Anthropic/actions/router.d.ts +2 -0
  917. package/dist/nodes/vendors/Anthropic/actions/router.js +84 -87
  918. package/dist/nodes/vendors/Anthropic/actions/router.js.map +1 -1
  919. package/dist/nodes/vendors/Anthropic/actions/text/index.d.ts +4 -0
  920. package/dist/nodes/vendors/Anthropic/actions/text/index.js +58 -60
  921. package/dist/nodes/vendors/Anthropic/actions/text/index.js.map +1 -1
  922. package/dist/nodes/vendors/Anthropic/actions/text/message.operation.d.ts +28 -0
  923. package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js +489 -508
  924. package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js.map +1 -1
  925. package/dist/nodes/vendors/Anthropic/actions/versionDescription.d.ts +2 -0
  926. package/dist/nodes/vendors/Anthropic/actions/versionDescription.js +105 -106
  927. package/dist/nodes/vendors/Anthropic/actions/versionDescription.js.map +1 -1
  928. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.d.ts +2 -0
  929. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js +80 -102
  930. package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js.map +1 -1
  931. package/dist/nodes/vendors/Anthropic/helpers/interfaces.d.ts +74 -0
  932. package/dist/nodes/vendors/Anthropic/helpers/interfaces.js +1 -15
  933. package/dist/nodes/vendors/Anthropic/helpers/interfaces.js.map +1 -1
  934. package/dist/nodes/vendors/Anthropic/helpers/utils.d.ts +10 -0
  935. package/dist/nodes/vendors/Anthropic/helpers/utils.js +39 -71
  936. package/dist/nodes/vendors/Anthropic/helpers/utils.js.map +1 -1
  937. package/dist/nodes/vendors/Anthropic/methods/index.d.ts +1 -0
  938. package/dist/nodes/vendors/Anthropic/methods/index.js +35 -36
  939. package/dist/nodes/vendors/Anthropic/methods/index.js.map +1 -1
  940. package/dist/nodes/vendors/Anthropic/methods/listSearch.d.ts +2 -0
  941. package/dist/nodes/vendors/Anthropic/methods/listSearch.js +14 -38
  942. package/dist/nodes/vendors/Anthropic/methods/listSearch.js.map +1 -1
  943. package/dist/nodes/vendors/Anthropic/transport/index.d.ts +14 -0
  944. package/dist/nodes/vendors/Anthropic/transport/index.js +36 -57
  945. package/dist/nodes/vendors/Anthropic/transport/index.js.map +1 -1
  946. package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.d.ts +9 -0
  947. package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js +15 -38
  948. package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js.map +1 -1
  949. package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.d.ts +28 -0
  950. package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js +91 -116
  951. package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js.map +1 -1
  952. package/dist/nodes/vendors/GoogleGemini/actions/audio/index.d.ts +5 -0
  953. package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js +67 -70
  954. package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js.map +1 -1
  955. package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.d.ts +28 -0
  956. package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js +158 -173
  957. package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js.map +1 -1
  958. package/dist/nodes/vendors/GoogleGemini/actions/descriptions.d.ts +2 -0
  959. package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js +25 -48
  960. package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js.map +1 -1
  961. package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.d.ts +28 -0
  962. package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js +91 -116
  963. package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js.map +1 -1
  964. package/dist/nodes/vendors/GoogleGemini/actions/document/index.d.ts +4 -0
  965. package/dist/nodes/vendors/GoogleGemini/actions/document/index.js +58 -60
  966. package/dist/nodes/vendors/GoogleGemini/actions/document/index.js.map +1 -1
  967. package/dist/nodes/vendors/GoogleGemini/actions/file/index.d.ts +4 -0
  968. package/dist/nodes/vendors/GoogleGemini/actions/file/index.js +58 -60
  969. package/dist/nodes/vendors/GoogleGemini/actions/file/index.js.map +1 -1
  970. package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.d.ts +29 -0
  971. package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js +67 -94
  972. package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js.map +1 -1
  973. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.d.ts +29 -0
  974. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js +30 -57
  975. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js.map +1 -1
  976. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.d.ts +29 -0
  977. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js +38 -65
  978. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js.map +1 -1
  979. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.d.ts +7 -0
  980. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js +85 -90
  981. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js.map +1 -1
  982. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.d.ts +29 -0
  983. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js +40 -68
  984. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js.map +1 -1
  985. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.d.ts +29 -0
  986. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js +87 -121
  987. package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js.map +1 -1
  988. package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.d.ts +28 -0
  989. package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js +91 -116
  990. package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js.map +1 -1
  991. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.d.ts +28 -0
  992. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js +161 -191
  993. package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js.map +1 -1
  994. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.d.ts +28 -0
  995. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +118 -158
  996. package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
  997. package/dist/nodes/vendors/GoogleGemini/actions/image/index.d.ts +6 -0
  998. package/dist/nodes/vendors/GoogleGemini/actions/image/index.js +76 -80
  999. package/dist/nodes/vendors/GoogleGemini/actions/image/index.js.map +1 -1
  1000. package/dist/nodes/vendors/GoogleGemini/actions/node.type.d.ts +12 -0
  1001. package/dist/nodes/vendors/GoogleGemini/actions/node.type.js +1 -15
  1002. package/dist/nodes/vendors/GoogleGemini/actions/node.type.js.map +1 -1
  1003. package/dist/nodes/vendors/GoogleGemini/actions/router.d.ts +2 -0
  1004. package/dist/nodes/vendors/GoogleGemini/actions/router.js +92 -95
  1005. package/dist/nodes/vendors/GoogleGemini/actions/router.js.map +1 -1
  1006. package/dist/nodes/vendors/GoogleGemini/actions/text/index.d.ts +4 -0
  1007. package/dist/nodes/vendors/GoogleGemini/actions/text/index.js +58 -60
  1008. package/dist/nodes/vendors/GoogleGemini/actions/text/index.js.map +1 -1
  1009. package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.d.ts +28 -0
  1010. package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js +497 -522
  1011. package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js.map +1 -1
  1012. package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.d.ts +2 -0
  1013. package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js +118 -119
  1014. package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js.map +1 -1
  1015. package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.d.ts +28 -0
  1016. package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js +91 -116
  1017. package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js.map +1 -1
  1018. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.d.ts +28 -0
  1019. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js +51 -80
  1020. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js.map +1 -1
  1021. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.d.ts +28 -0
  1022. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +174 -213
  1023. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
  1024. package/dist/nodes/vendors/GoogleGemini/actions/video/index.d.ts +6 -0
  1025. package/dist/nodes/vendors/GoogleGemini/actions/video/index.js +76 -80
  1026. package/dist/nodes/vendors/GoogleGemini/actions/video/index.js.map +1 -1
  1027. package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.d.ts +2 -0
  1028. package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js +81 -99
  1029. package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js.map +1 -1
  1030. package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.d.ts +105 -0
  1031. package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js +4 -27
  1032. package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js.map +1 -1
  1033. package/dist/nodes/vendors/GoogleGemini/helpers/utils.d.ts +17 -0
  1034. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js +179 -247
  1035. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js.map +1 -1
  1036. package/dist/nodes/vendors/GoogleGemini/methods/index.d.ts +1 -0
  1037. package/dist/nodes/vendors/GoogleGemini/methods/index.js +35 -36
  1038. package/dist/nodes/vendors/GoogleGemini/methods/index.js.map +1 -1
  1039. package/dist/nodes/vendors/GoogleGemini/methods/listSearch.d.ts +6 -0
  1040. package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js +52 -78
  1041. package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js.map +1 -1
  1042. package/dist/nodes/vendors/GoogleGemini/transport/index.d.ts +9 -0
  1043. package/dist/nodes/vendors/GoogleGemini/transport/index.js +20 -44
  1044. package/dist/nodes/vendors/GoogleGemini/transport/index.js.map +1 -1
  1045. package/dist/nodes/vendors/Ollama/Ollama.node.d.ts +9 -0
  1046. package/dist/nodes/vendors/Ollama/Ollama.node.js +15 -38
  1047. package/dist/nodes/vendors/Ollama/Ollama.node.js.map +1 -1
  1048. package/dist/nodes/vendors/Ollama/actions/descriptions.d.ts +2 -0
  1049. package/dist/nodes/vendors/Ollama/actions/descriptions.js +25 -49
  1050. package/dist/nodes/vendors/Ollama/actions/descriptions.js.map +1 -1
  1051. package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.d.ts +28 -0
  1052. package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js +378 -393
  1053. package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js.map +1 -1
  1054. package/dist/nodes/vendors/Ollama/actions/image/index.d.ts +4 -0
  1055. package/dist/nodes/vendors/Ollama/actions/image/index.js +58 -60
  1056. package/dist/nodes/vendors/Ollama/actions/image/index.js.map +1 -1
  1057. package/dist/nodes/vendors/Ollama/actions/node.type.d.ts +7 -0
  1058. package/dist/nodes/vendors/Ollama/actions/node.type.js +1 -15
  1059. package/dist/nodes/vendors/Ollama/actions/node.type.js.map +1 -1
  1060. package/dist/nodes/vendors/Ollama/actions/router.d.ts +2 -0
  1061. package/dist/nodes/vendors/Ollama/actions/router.js +72 -72
  1062. package/dist/nodes/vendors/Ollama/actions/router.js.map +1 -1
  1063. package/dist/nodes/vendors/Ollama/actions/text/index.d.ts +4 -0
  1064. package/dist/nodes/vendors/Ollama/actions/text/index.js +58 -60
  1065. package/dist/nodes/vendors/Ollama/actions/text/index.js.map +1 -1
  1066. package/dist/nodes/vendors/Ollama/actions/text/message.operation.d.ts +28 -0
  1067. package/dist/nodes/vendors/Ollama/actions/text/message.operation.js +401 -419
  1068. package/dist/nodes/vendors/Ollama/actions/text/message.operation.js.map +1 -1
  1069. package/dist/nodes/vendors/Ollama/actions/versionDescription.d.ts +2 -0
  1070. package/dist/nodes/vendors/Ollama/actions/versionDescription.js +88 -89
  1071. package/dist/nodes/vendors/Ollama/actions/versionDescription.js.map +1 -1
  1072. package/dist/nodes/vendors/Ollama/helpers/index.d.ts +1 -0
  1073. package/dist/nodes/vendors/Ollama/helpers/index.js +1 -15
  1074. package/dist/nodes/vendors/Ollama/helpers/index.js.map +1 -1
  1075. package/dist/nodes/vendors/Ollama/helpers/interfaces.d.ts +50 -0
  1076. package/dist/nodes/vendors/Ollama/helpers/interfaces.js +1 -15
  1077. package/dist/nodes/vendors/Ollama/helpers/interfaces.js.map +1 -1
  1078. package/dist/nodes/vendors/Ollama/methods/index.d.ts +1 -0
  1079. package/dist/nodes/vendors/Ollama/methods/index.js +35 -36
  1080. package/dist/nodes/vendors/Ollama/methods/index.js.map +1 -1
  1081. package/dist/nodes/vendors/Ollama/methods/listSearch.d.ts +2 -0
  1082. package/dist/nodes/vendors/Ollama/methods/listSearch.js +11 -35
  1083. package/dist/nodes/vendors/Ollama/methods/listSearch.js.map +1 -1
  1084. package/dist/nodes/vendors/Ollama/transport/index.d.ts +9 -0
  1085. package/dist/nodes/vendors/Ollama/transport/index.js +28 -52
  1086. package/dist/nodes/vendors/Ollama/transport/index.js.map +1 -1
  1087. package/dist/nodes/vendors/OpenAi/OpenAi.node.d.ts +4 -0
  1088. package/dist/nodes/vendors/OpenAi/OpenAi.node.js +57 -80
  1089. package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -1
  1090. package/dist/nodes/vendors/OpenAi/helpers/binary-data.d.ts +6 -0
  1091. package/dist/nodes/vendors/OpenAi/helpers/binary-data.js +11 -33
  1092. package/dist/nodes/vendors/OpenAi/helpers/binary-data.js.map +1 -1
  1093. package/dist/nodes/vendors/OpenAi/helpers/constants.d.ts +1 -0
  1094. package/dist/nodes/vendors/OpenAi/helpers/constants.js +23 -47
  1095. package/dist/nodes/vendors/OpenAi/helpers/constants.js.map +1 -1
  1096. package/dist/nodes/vendors/OpenAi/helpers/description.d.ts +9 -0
  1097. package/dist/nodes/vendors/OpenAi/helpers/description.js +43 -67
  1098. package/dist/nodes/vendors/OpenAi/helpers/description.js.map +1 -1
  1099. package/dist/nodes/vendors/OpenAi/helpers/error-handling.d.ts +4 -0
  1100. package/dist/nodes/vendors/OpenAi/helpers/error-handling.js +32 -52
  1101. package/dist/nodes/vendors/OpenAi/helpers/error-handling.js.map +1 -1
  1102. package/dist/nodes/vendors/OpenAi/helpers/interfaces.d.ts +93 -0
  1103. package/dist/nodes/vendors/OpenAi/helpers/interfaces.js +1 -15
  1104. package/dist/nodes/vendors/OpenAi/helpers/interfaces.js.map +1 -1
  1105. package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.d.ts +1 -0
  1106. package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js +17 -30
  1107. package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js.map +1 -1
  1108. package/dist/nodes/vendors/OpenAi/helpers/polling.d.ts +2 -0
  1109. package/dist/nodes/vendors/OpenAi/helpers/polling.js +23 -47
  1110. package/dist/nodes/vendors/OpenAi/helpers/polling.js.map +1 -1
  1111. package/dist/nodes/vendors/OpenAi/helpers/utils.d.ts +9 -0
  1112. package/dist/nodes/vendors/OpenAi/helpers/utils.js +55 -83
  1113. package/dist/nodes/vendors/OpenAi/helpers/utils.js.map +1 -1
  1114. package/dist/nodes/vendors/OpenAi/methods/index.d.ts +2 -0
  1115. package/dist/nodes/vendors/OpenAi/methods/index.js +36 -39
  1116. package/dist/nodes/vendors/OpenAi/methods/index.js.map +1 -1
  1117. package/dist/nodes/vendors/OpenAi/methods/listSearch.d.ts +6 -0
  1118. package/dist/nodes/vendors/OpenAi/methods/listSearch.js +94 -120
  1119. package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
  1120. package/dist/nodes/vendors/OpenAi/methods/loadOptions.d.ts +2 -0
  1121. package/dist/nodes/vendors/OpenAi/methods/loadOptions.js +12 -36
  1122. package/dist/nodes/vendors/OpenAi/methods/loadOptions.js.map +1 -1
  1123. package/dist/nodes/vendors/OpenAi/transport/index.d.ts +10 -0
  1124. package/dist/nodes/vendors/OpenAi/transport/index.js +33 -50
  1125. package/dist/nodes/vendors/OpenAi/transport/index.js.map +1 -1
  1126. package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.d.ts +11 -0
  1127. package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js +103 -104
  1128. package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js.map +1 -1
  1129. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.d.ts +28 -0
  1130. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js +228 -267
  1131. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js.map +1 -1
  1132. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.d.ts +28 -0
  1133. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js +24 -49
  1134. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js.map +1 -1
  1135. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.d.ts +8 -0
  1136. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js +94 -100
  1137. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js.map +1 -1
  1138. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.d.ts +28 -0
  1139. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js +59 -83
  1140. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js.map +1 -1
  1141. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.d.ts +28 -0
  1142. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js +236 -261
  1143. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js.map +1 -1
  1144. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.d.ts +28 -0
  1145. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js +171 -216
  1146. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js.map +1 -1
  1147. package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.d.ts +28 -0
  1148. package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js +157 -186
  1149. package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js.map +1 -1
  1150. package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.d.ts +6 -0
  1151. package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js +88 -92
  1152. package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js.map +1 -1
  1153. package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.d.ts +28 -0
  1154. package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js +75 -111
  1155. package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js.map +1 -1
  1156. package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.d.ts +28 -0
  1157. package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js +65 -101
  1158. package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js.map +1 -1
  1159. package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.d.ts +3 -0
  1160. package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js +50 -75
  1161. package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js.map +1 -1
  1162. package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.d.ts +28 -0
  1163. package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js +50 -75
  1164. package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js.map +1 -1
  1165. package/dist/nodes/vendors/OpenAi/v1/actions/file/index.d.ts +6 -0
  1166. package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js +76 -80
  1167. package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js.map +1 -1
  1168. package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.d.ts +28 -0
  1169. package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js +49 -74
  1170. package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js.map +1 -1
  1171. package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.d.ts +28 -0
  1172. package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js +76 -110
  1173. package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js.map +1 -1
  1174. package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.d.ts +28 -0
  1175. package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js +187 -206
  1176. package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js.map +1 -1
  1177. package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.d.ts +28 -0
  1178. package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js +277 -305
  1179. package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js.map +1 -1
  1180. package/dist/nodes/vendors/OpenAi/v1/actions/image/index.d.ts +5 -0
  1181. package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js +67 -70
  1182. package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js.map +1 -1
  1183. package/dist/nodes/vendors/OpenAi/v1/actions/node.type.d.ts +10 -0
  1184. package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js +1 -15
  1185. package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js.map +1 -1
  1186. package/dist/nodes/vendors/OpenAi/v1/actions/router.d.ts +2 -0
  1187. package/dist/nodes/vendors/OpenAi/v1/actions/router.js +97 -100
  1188. package/dist/nodes/vendors/OpenAi/v1/actions/router.js.map +1 -1
  1189. package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.d.ts +28 -0
  1190. package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js +70 -93
  1191. package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js.map +1 -1
  1192. package/dist/nodes/vendors/OpenAi/v1/actions/text/index.d.ts +5 -0
  1193. package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js +67 -71
  1194. package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js.map +1 -1
  1195. package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.d.ts +28 -0
  1196. package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js +304 -334
  1197. package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js.map +1 -1
  1198. package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.d.ts +11 -0
  1199. package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js +109 -110
  1200. package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js.map +1 -1
  1201. package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.d.ts +28 -0
  1202. package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js +157 -186
  1203. package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js.map +1 -1
  1204. package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.d.ts +6 -0
  1205. package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js +88 -92
  1206. package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js.map +1 -1
  1207. package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.d.ts +28 -0
  1208. package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js +75 -111
  1209. package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js.map +1 -1
  1210. package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.d.ts +28 -0
  1211. package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js +65 -101
  1212. package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js.map +1 -1
  1213. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.d.ts +28 -0
  1214. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js +85 -110
  1215. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js.map +1 -1
  1216. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.d.ts +28 -0
  1217. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js +27 -52
  1218. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js.map +1 -1
  1219. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.d.ts +7 -0
  1220. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js +85 -90
  1221. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js.map +1 -1
  1222. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.d.ts +28 -0
  1223. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js +27 -52
  1224. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js.map +1 -1
  1225. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.d.ts +28 -0
  1226. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js +41 -66
  1227. package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js.map +1 -1
  1228. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.d.ts +5 -0
  1229. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js +237 -266
  1230. package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js.map +1 -1
  1231. package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.d.ts +28 -0
  1232. package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js +50 -75
  1233. package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js.map +1 -1
  1234. package/dist/nodes/vendors/OpenAi/v2/actions/file/index.d.ts +6 -0
  1235. package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js +76 -80
  1236. package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js.map +1 -1
  1237. package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.d.ts +28 -0
  1238. package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js +57 -83
  1239. package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js.map +1 -1
  1240. package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.d.ts +28 -0
  1241. package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js +84 -118
  1242. package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js.map +1 -1
  1243. package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.d.ts +28 -0
  1244. package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js +177 -197
  1245. package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js.map +1 -1
  1246. package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.d.ts +29 -0
  1247. package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js +395 -444
  1248. package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js.map +1 -1
  1249. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.d.ts +28 -0
  1250. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js +277 -305
  1251. package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js.map +1 -1
  1252. package/dist/nodes/vendors/OpenAi/v2/actions/image/index.d.ts +6 -0
  1253. package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js +76 -80
  1254. package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js.map +1 -1
  1255. package/dist/nodes/vendors/OpenAi/v2/actions/node.type.d.ts +11 -0
  1256. package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js +1 -15
  1257. package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js.map +1 -1
  1258. package/dist/nodes/vendors/OpenAi/v2/actions/router.d.ts +2 -0
  1259. package/dist/nodes/vendors/OpenAi/v2/actions/router.js +101 -104
  1260. package/dist/nodes/vendors/OpenAi/v2/actions/router.js.map +1 -1
  1261. package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.d.ts +28 -0
  1262. package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js +79 -102
  1263. package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js.map +1 -1
  1264. package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.d.ts +13 -0
  1265. package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js +193 -231
  1266. package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js.map +1 -1
  1267. package/dist/nodes/vendors/OpenAi/v2/actions/text/index.d.ts +5 -0
  1268. package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js +67 -71
  1269. package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js.map +1 -1
  1270. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.d.ts +28 -0
  1271. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js +628 -667
  1272. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js.map +1 -1
  1273. package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.d.ts +28 -0
  1274. package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js +136 -187
  1275. package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js.map +1 -1
  1276. package/dist/nodes/vendors/OpenAi/v2/actions/video/index.d.ts +4 -0
  1277. package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js +58 -60
  1278. package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js.map +1 -1
  1279. package/dist/typecheck.tsbuildinfo +1 -0
  1280. package/dist/types/nodes.json +21 -21
  1281. package/dist/types/types.d.ts +6 -0
  1282. package/dist/types/types.js +1 -15
  1283. package/dist/types/types.js.map +1 -1
  1284. package/dist/types/zod.types.d.ts +2 -0
  1285. package/dist/types/zod.types.js +1 -15
  1286. package/dist/types/zod.types.js.map +1 -1
  1287. package/dist/utils/N8nBinaryLoader.d.ts +18 -0
  1288. package/dist/utils/N8nBinaryLoader.js +142 -186
  1289. package/dist/utils/N8nBinaryLoader.js.map +1 -1
  1290. package/dist/utils/N8nJsonLoader.d.ts +11 -0
  1291. package/dist/utils/N8nJsonLoader.js +59 -82
  1292. package/dist/utils/N8nJsonLoader.js.map +1 -1
  1293. package/dist/utils/N8nTool.d.ts +11 -0
  1294. package/dist/utils/N8nTool.js +75 -95
  1295. package/dist/utils/N8nTool.js.map +1 -1
  1296. package/dist/utils/agent-execution/buildResponseMetadata.d.ts +3 -0
  1297. package/dist/utils/agent-execution/buildResponseMetadata.js +13 -0
  1298. package/dist/utils/agent-execution/buildResponseMetadata.js.map +1 -0
  1299. package/dist/utils/agent-execution/buildSteps.d.ts +3 -0
  1300. package/dist/utils/agent-execution/buildSteps.js +129 -142
  1301. package/dist/utils/agent-execution/buildSteps.js.map +1 -1
  1302. package/dist/utils/agent-execution/createEngineRequests.d.ts +8 -0
  1303. package/dist/utils/agent-execution/createEngineRequests.js +135 -74
  1304. package/dist/utils/agent-execution/createEngineRequests.js.map +1 -1
  1305. package/dist/utils/agent-execution/index.d.ts +7 -0
  1306. package/dist/utils/agent-execution/index.js +16 -40
  1307. package/dist/utils/agent-execution/index.js.map +1 -1
  1308. package/dist/utils/agent-execution/memoryManagement.d.ts +10 -0
  1309. package/dist/utils/agent-execution/memoryManagement.js +105 -126
  1310. package/dist/utils/agent-execution/memoryManagement.js.map +1 -1
  1311. package/dist/utils/agent-execution/processEventStream.d.ts +5 -0
  1312. package/dist/utils/agent-execution/processEventStream.js +55 -76
  1313. package/dist/utils/agent-execution/processEventStream.js.map +1 -1
  1314. package/dist/utils/agent-execution/processHitlResponses.d.ts +8 -0
  1315. package/dist/utils/agent-execution/processHitlResponses.js +124 -0
  1316. package/dist/utils/agent-execution/processHitlResponses.js.map +1 -0
  1317. package/dist/utils/agent-execution/types.d.ts +82 -0
  1318. package/dist/utils/agent-execution/types.js +22 -33
  1319. package/dist/utils/agent-execution/types.js.map +1 -1
  1320. package/dist/utils/descriptions.d.ts +19 -0
  1321. package/dist/utils/descriptions.js +143 -186
  1322. package/dist/utils/descriptions.js.map +1 -1
  1323. package/dist/utils/embeddings/embeddingInputValidation.d.ts +3 -0
  1324. package/dist/utils/embeddings/embeddingInputValidation.js +22 -49
  1325. package/dist/utils/embeddings/embeddingInputValidation.js.map +1 -1
  1326. package/dist/utils/fromAIToolFactory.d.ts +14 -0
  1327. package/dist/utils/fromAIToolFactory.js +27 -53
  1328. package/dist/utils/fromAIToolFactory.js.map +1 -1
  1329. package/dist/utils/helpers.d.ts +24 -0
  1330. package/dist/utils/helpers.js +235 -226
  1331. package/dist/utils/helpers.js.map +1 -1
  1332. package/dist/utils/httpProxyAgent.d.ts +10 -0
  1333. package/dist/utils/httpProxyAgent.js +34 -68
  1334. package/dist/utils/httpProxyAgent.js.map +1 -1
  1335. package/dist/utils/logWrapper.d.ts +29 -0
  1336. package/dist/utils/logWrapper.js +320 -365
  1337. package/dist/utils/logWrapper.js.map +1 -1
  1338. package/dist/utils/output_parsers/N8nItemListOutputParser.d.ts +13 -0
  1339. package/dist/utils/output_parsers/N8nItemListOutputParser.js +35 -57
  1340. package/dist/utils/output_parsers/N8nItemListOutputParser.js.map +1 -1
  1341. package/dist/utils/output_parsers/N8nOutputFixingParser.d.ts +18 -0
  1342. package/dist/utils/output_parsers/N8nOutputFixingParser.js +62 -94
  1343. package/dist/utils/output_parsers/N8nOutputFixingParser.js.map +1 -1
  1344. package/dist/utils/output_parsers/N8nOutputParser.d.ts +7 -0
  1345. package/dist/utils/output_parsers/N8nOutputParser.js +15 -44
  1346. package/dist/utils/output_parsers/N8nOutputParser.js.map +1 -1
  1347. package/dist/utils/output_parsers/N8nStructuredOutputParser.d.ts +12 -0
  1348. package/dist/utils/output_parsers/N8nStructuredOutputParser.js +115 -134
  1349. package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
  1350. package/dist/utils/output_parsers/prompt.d.ts +3 -0
  1351. package/dist/utils/output_parsers/prompt.js +5 -31
  1352. package/dist/utils/output_parsers/prompt.js.map +1 -1
  1353. package/dist/utils/schemaParsing.d.ts +6 -0
  1354. package/dist/utils/schemaParsing.js +34 -63
  1355. package/dist/utils/schemaParsing.js.map +1 -1
  1356. package/dist/utils/sharedFields.d.ts +8 -0
  1357. package/dist/utils/sharedFields.js +130 -157
  1358. package/dist/utils/sharedFields.js.map +1 -1
  1359. package/dist/utils/tokenizer/tiktoken.d.ts +4 -0
  1360. package/dist/utils/tokenizer/tiktoken.js +31 -56
  1361. package/dist/utils/tokenizer/tiktoken.js.map +1 -1
  1362. package/dist/utils/tokenizer/token-estimator.d.ts +4 -0
  1363. package/dist/utils/tokenizer/token-estimator.js +84 -105
  1364. package/dist/utils/tokenizer/token-estimator.js.map +1 -1
  1365. package/dist/utils/tracing.d.ts +7 -0
  1366. package/dist/utils/tracing.js +15 -37
  1367. package/dist/utils/tracing.js.map +1 -1
  1368. package/package.json +14 -15
  1369. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js +0 -37
  1370. package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../utils/logWrapper.ts"],"sourcesContent":["import type { BaseChatMemory } from '@langchain/community/memory/chat_memory';\nimport type { BaseCallbackConfig, Callbacks } from '@langchain/core/callbacks/manager';\nimport type { BaseChatMessageHistory } from '@langchain/core/chat_history';\nimport type { Document } from '@langchain/core/documents';\nimport { Embeddings } from '@langchain/core/embeddings';\nimport type { InputValues, MemoryVariables, OutputValues } from '@langchain/core/memory';\nimport type { BaseMessage } from '@langchain/core/messages';\nimport { BaseRetriever } from '@langchain/core/retrievers';\nimport { BaseDocumentCompressor } from '@langchain/core/retrievers/document_compressors';\nimport type { StructuredTool, Tool } from '@langchain/core/tools';\nimport { VectorStore } from '@langchain/core/vectorstores';\nimport { TextSplitter } from '@langchain/textsplitters';\nimport type { BaseDocumentLoader } from '@langchain/classic/dist/document_loaders/base';\nimport { OpenAIEmbeddings, AzureOpenAIEmbeddings } from '@langchain/openai';\nimport type {\n\tIDataObject,\n\tIExecuteFunctions,\n\tINodeExecutionData,\n\tISupplyDataFunctions,\n\tITaskMetadata,\n\tNodeConnectionType,\n} from 'n8n-workflow';\nimport {\n\tNodeOperationError,\n\tNodeConnectionTypes,\n\tparseErrorMetadata,\n\tdeepCopy,\n} from 'n8n-workflow';\n\nimport {\n\tvalidateEmbedQueryInput,\n\tvalidateEmbedDocumentsInput,\n} from './embeddings/embeddingInputValidation';\nimport { logAiEvent, isToolsInstance, isBaseChatMemory, isBaseChatMessageHistory } from './helpers';\nimport { N8nBinaryLoader } from './N8nBinaryLoader';\nimport { N8nJsonLoader } from './N8nJsonLoader';\n\nexport async function callMethodAsync<T>(\n\tthis: T,\n\tparameters: {\n\t\texecuteFunctions: IExecuteFunctions | ISupplyDataFunctions;\n\t\tconnectionType: NodeConnectionType;\n\t\tcurrentNodeRunIndex: number;\n\t\tmethod: (...args: any[]) => Promise<unknown>;\n\t\targuments: unknown[];\n\t},\n): Promise<unknown> {\n\ttry {\n\t\treturn await parameters.method.call(this, ...parameters.arguments);\n\t} catch (e) {\n\t\tconst connectedNode = parameters.executeFunctions.getNode();\n\n\t\tconst error = new NodeOperationError(connectedNode, e, {\n\t\t\tfunctionality: 'configuration-node',\n\t\t});\n\n\t\tconst metadata = parseErrorMetadata(error);\n\t\tparameters.executeFunctions.addOutputData(\n\t\t\tparameters.connectionType,\n\t\t\tparameters.currentNodeRunIndex,\n\t\t\terror,\n\t\t\tmetadata,\n\t\t);\n\n\t\tif (error.message) {\n\t\t\tif (!error.description) {\n\t\t\t\terror.description = error.message;\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\n\t\tthrow new NodeOperationError(\n\t\t\tconnectedNode,\n\t\t\t`Error on node \"${connectedNode.name}\" which is connected via input \"${parameters.connectionType}\"`,\n\t\t\t{ functionality: 'configuration-node' },\n\t\t);\n\t}\n}\n\nexport function callMethodSync<T>(\n\tthis: T,\n\tparameters: {\n\t\texecuteFunctions: IExecuteFunctions;\n\t\tconnectionType: NodeConnectionType;\n\t\tcurrentNodeRunIndex: number;\n\t\tmethod: (...args: any[]) => T;\n\t\targuments: unknown[];\n\t},\n): unknown {\n\ttry {\n\t\treturn parameters.method.call(this, ...parameters.arguments);\n\t} catch (e) {\n\t\tconst connectedNode = parameters.executeFunctions.getNode();\n\t\tconst error = new NodeOperationError(connectedNode, e);\n\t\tparameters.executeFunctions.addOutputData(\n\t\t\tparameters.connectionType,\n\t\t\tparameters.currentNodeRunIndex,\n\t\t\terror,\n\t\t);\n\n\t\tthrow new NodeOperationError(\n\t\t\tconnectedNode,\n\t\t\t`Error on node \"${connectedNode.name}\" which is connected via input \"${parameters.connectionType}\"`,\n\t\t\t{ functionality: 'configuration-node' },\n\t\t);\n\t}\n}\n\nexport function logWrapper<\n\tT extends\n\t\t| Tool\n\t\t| StructuredTool\n\t\t| BaseChatMemory\n\t\t| BaseChatMessageHistory\n\t\t| BaseRetriever\n\t\t| BaseDocumentCompressor\n\t\t| Embeddings\n\t\t| OpenAIEmbeddings\n\t\t| AzureOpenAIEmbeddings\n\t\t| Document[]\n\t\t| Document\n\t\t| BaseDocumentLoader\n\t\t| TextSplitter\n\t\t| VectorStore\n\t\t| N8nBinaryLoader\n\t\t| N8nJsonLoader,\n>(originalInstance: T, executeFunctions: IExecuteFunctions | ISupplyDataFunctions): T {\n\treturn new Proxy(originalInstance, {\n\t\tget: (target, prop) => {\n\t\t\tlet connectionType: NodeConnectionType | undefined;\n\t\t\t// ========== BaseChatMemory ==========\n\t\t\tif (isBaseChatMemory(originalInstance)) {\n\t\t\t\tif (prop === 'loadMemoryVariables' && 'loadMemoryVariables' in target) {\n\t\t\t\t\treturn async (values: InputValues): Promise<MemoryVariables> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiMemory;\n\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { action: 'loadMemoryVariables', values } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [values],\n\t\t\t\t\t\t})) as MemoryVariables;\n\n\t\t\t\t\t\tconst chatHistory = (response?.chat_history as BaseMessage[]) ?? response;\n\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [\n\t\t\t\t\t\t\t[{ json: { action: 'loadMemoryVariables', chatHistory } }],\n\t\t\t\t\t\t]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t} else if (prop === 'saveContext' && 'saveContext' in target) {\n\t\t\t\t\treturn async (input: InputValues, output: OutputValues): Promise<MemoryVariables> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiMemory;\n\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { action: 'saveContext', input, output } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [input, output],\n\t\t\t\t\t\t})) as MemoryVariables;\n\n\t\t\t\t\t\tconst chatHistory = await target.chatHistory.getMessages();\n\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [\n\t\t\t\t\t\t\t[{ json: { action: 'saveContext', chatHistory } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== BaseChatMessageHistory ==========\n\t\t\tif (isBaseChatMessageHistory(originalInstance)) {\n\t\t\t\tif (prop === 'getMessages' && 'getMessages' in target) {\n\t\t\t\t\treturn async (): Promise<BaseMessage[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiMemory;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { action: 'getMessages' } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [],\n\t\t\t\t\t\t})) as BaseMessage[];\n\n\t\t\t\t\t\tconst payload = { action: 'getMessages', response };\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: payload }]]);\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-messages-retrieved-from-memory', { response });\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t} else if (prop === 'addMessage' && 'addMessage' in target) {\n\t\t\t\t\treturn async (message: BaseMessage): Promise<void> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiMemory;\n\t\t\t\t\t\tconst payload = { action: 'addMessage', message };\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [[{ json: payload }]]);\n\n\t\t\t\t\t\tawait callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [message],\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-message-added-to-memory', { message });\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: payload }]]);\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== BaseRetriever ==========\n\t\t\tif (originalInstance instanceof BaseRetriever) {\n\t\t\t\tif (prop === 'getRelevantDocuments' && 'getRelevantDocuments' in target) {\n\t\t\t\t\treturn async (\n\t\t\t\t\t\tquery: string,\n\t\t\t\t\t\tconfig?: Callbacks | BaseCallbackConfig,\n\t\t\t\t\t): Promise<Document[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiRetriever;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { query, config } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [query, config],\n\t\t\t\t\t\t})) as Array<Document<Record<string, any>>>;\n\n\t\t\t\t\t\tconst executionId: string | undefined = response[0]?.metadata?.executionId as string;\n\t\t\t\t\t\tconst workflowId: string | undefined = response[0]?.metadata?.workflowId as string;\n\n\t\t\t\t\t\tconst metadata: ITaskMetadata = {};\n\t\t\t\t\t\tif (executionId && workflowId) {\n\t\t\t\t\t\t\tmetadata.subExecution = {\n\t\t\t\t\t\t\t\texecutionId,\n\t\t\t\t\t\t\t\tworkflowId,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-documents-retrieved', { query });\n\t\t\t\t\t\texecuteFunctions.addOutputData(\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tindex,\n\t\t\t\t\t\t\t[[{ json: { response } }]],\n\t\t\t\t\t\t\tmetadata,\n\t\t\t\t\t\t);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== Embeddings ==========\n\t\t\tif (\n\t\t\t\toriginalInstance instanceof Embeddings ||\n\t\t\t\toriginalInstance instanceof OpenAIEmbeddings ||\n\t\t\t\toriginalInstance instanceof AzureOpenAIEmbeddings\n\t\t\t) {\n\t\t\t\t// Docs -> Embeddings\n\t\t\t\tif (prop === 'embedDocuments' && 'embedDocuments' in target) {\n\t\t\t\t\treturn async (documents: string[]): Promise<number[][]> => {\n\t\t\t\t\t\t// Validate documents input before embedding\n\t\t\t\t\t\tconst validatedDocuments = validateEmbedDocumentsInput(\n\t\t\t\t\t\t\tdocuments,\n\t\t\t\t\t\t\texecuteFunctions.getNode(),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiEmbedding;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { documents: validatedDocuments } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [validatedDocuments],\n\t\t\t\t\t\t})) as number[][];\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-document-embedded');\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\t// Query -> Embeddings\n\t\t\t\tif (prop === 'embedQuery' && 'embedQuery' in target) {\n\t\t\t\t\treturn async (query: string): Promise<number[]> => {\n\t\t\t\t\t\t// Validate query input before embedding\n\t\t\t\t\t\tconst validatedQuery = validateEmbedQueryInput(query, executeFunctions.getNode());\n\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiEmbedding;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { query: validatedQuery } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [validatedQuery],\n\t\t\t\t\t\t})) as number[];\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-query-embedded');\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== Rerankers ==========\n\t\t\tif (originalInstance instanceof BaseDocumentCompressor) {\n\t\t\t\tif (prop === 'compressDocuments' && 'compressDocuments' in target) {\n\t\t\t\t\treturn async (documents: Document[], query: string): Promise<Document[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiReranker;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { query, documents } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\t// compressDocuments mutates the original object\n\t\t\t\t\t\t\t// messing up the input data logging\n\t\t\t\t\t\t\targuments: [deepCopy(documents), query],\n\t\t\t\t\t\t})) as Document[];\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-document-reranked', { query });\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== N8n Loaders Process All ==========\n\t\t\tif (\n\t\t\t\toriginalInstance instanceof N8nJsonLoader ||\n\t\t\t\toriginalInstance instanceof N8nBinaryLoader\n\t\t\t) {\n\t\t\t\t// Process All\n\t\t\t\tif (prop === 'processAll' && 'processAll' in target) {\n\t\t\t\t\treturn async (items: INodeExecutionData[]): Promise<number[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiDocument;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [items]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [items],\n\t\t\t\t\t\t})) as number[];\n\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Process Each\n\t\t\t\tif (prop === 'processItem' && 'processItem' in target) {\n\t\t\t\t\treturn async (item: INodeExecutionData, itemIndex: number): Promise<number[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiDocument;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [[item]]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [item, itemIndex],\n\t\t\t\t\t\t})) as number[];\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-document-processed');\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [\n\t\t\t\t\t\t\t[{ json: { response }, pairedItem: { item: itemIndex } }],\n\t\t\t\t\t\t]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== TextSplitter ==========\n\t\t\tif (originalInstance instanceof TextSplitter) {\n\t\t\t\tif (prop === 'splitText' && 'splitText' in target) {\n\t\t\t\t\treturn async (text: string): Promise<string[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiTextSplitter;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { textSplitter: text } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [text],\n\t\t\t\t\t\t})) as string[];\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-text-split');\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== Tool ==========\n\t\t\tif (isToolsInstance(originalInstance)) {\n\t\t\t\tif (prop === '_call' && '_call' in target) {\n\t\t\t\t\treturn async (query: string): Promise<string> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiTool;\n\t\t\t\t\t\tconst inputData: IDataObject = { query };\n\n\t\t\t\t\t\tif (target.metadata?.isFromToolkit) {\n\t\t\t\t\t\t\tinputData.tool = {\n\t\t\t\t\t\t\t\tname: target.name,\n\t\t\t\t\t\t\t\tdescription: target.description,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: inputData }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [query],\n\t\t\t\t\t\t})) as string;\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-tool-called', { ...inputData, response });\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\n\t\t\t\t\t\tif (typeof response === 'string') return response;\n\t\t\t\t\t\treturn JSON.stringify(response);\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// ========== VectorStore ==========\n\t\t\tif (originalInstance instanceof VectorStore) {\n\t\t\t\tif (prop === 'similaritySearch' && 'similaritySearch' in target) {\n\t\t\t\t\treturn async (\n\t\t\t\t\t\tquery: string,\n\t\t\t\t\t\tk?: number,\n\t\t\t\t\t\tfilter?: BiquadFilterType,\n\t\t\t\t\t\t_callbacks?: Callbacks,\n\t\t\t\t\t): Promise<Document[]> => {\n\t\t\t\t\t\tconnectionType = NodeConnectionTypes.AiVectorStore;\n\t\t\t\t\t\tconst { index } = executeFunctions.addInputData(connectionType, [\n\t\t\t\t\t\t\t[{ json: { query, k, filter } }],\n\t\t\t\t\t\t]);\n\n\t\t\t\t\t\tconst response = (await callMethodAsync.call(target, {\n\t\t\t\t\t\t\texecuteFunctions,\n\t\t\t\t\t\t\tconnectionType,\n\t\t\t\t\t\t\tcurrentNodeRunIndex: index,\n\t\t\t\t\t\t\tmethod: target[prop] as (...args: any[]) => Promise<unknown>,\n\t\t\t\t\t\t\targuments: [query, k, filter, _callbacks],\n\t\t\t\t\t\t})) as Array<Document<Record<string, any>>>;\n\n\t\t\t\t\t\tlogAiEvent(executeFunctions, 'ai-vector-store-searched', { query });\n\t\t\t\t\t\texecuteFunctions.addOutputData(connectionType, index, [[{ json: { response } }]]);\n\n\t\t\t\t\t\treturn response;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-return\n\t\t\treturn (target as any)[prop];\n\t\t},\n\t});\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,wBAA2B;AAG3B,wBAA8B;AAC9B,kCAAuC;AAEvC,0BAA4B;AAC5B,2BAA6B;AAE7B,oBAAwD;AASxD,0BAKO;AAEP,sCAGO;AACP,qBAAwF;AACxF,6BAAgC;AAChC,2BAA8B;AAE9B,eAAsB,gBAErB,YAOmB;AACnB,MAAI;AACH,WAAO,MAAM,WAAW,OAAO,KAAK,MAAM,GAAG,WAAW,SAAS;AAAA,EAClE,SAAS,GAAG;AACX,UAAM,gBAAgB,WAAW,iBAAiB,QAAQ;AAE1D,UAAM,QAAQ,IAAI,uCAAmB,eAAe,GAAG;AAAA,MACtD,eAAe;AAAA,IAChB,CAAC;AAED,UAAM,eAAW,wCAAmB,KAAK;AACzC,eAAW,iBAAiB;AAAA,MAC3B,WAAW;AAAA,MACX,WAAW;AAAA,MACX;AAAA,MACA;AAAA,IACD;AAEA,QAAI,MAAM,SAAS;A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BAAgB;4BAChB,cAAc;4BACd,mBAAmB,EAAE,KAAK;4BAC1B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAyC;4BAC5D,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC;yBACzC,CAAC,CAAyC,CAAC;wBAE5C,IAAA,oBAAU,EAAC,gBAAgB,EAAE,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;wBACpE,gBAAgB,CAAC,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAElF,OAAO,QAAQ,CAAC;oBACjB,CAAC,CAAC;gBACH,CAAC;YACF,CAAC;YAGD,OAAQ,MAAc,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { BaseOutputParser } from '@langchain/core/output_parsers';
2
+ export declare class N8nItemListOutputParser extends BaseOutputParser<string[]> {
3
+ lc_namespace: string[];
4
+ private numberOfItems;
5
+ private separator;
6
+ constructor(options: {
7
+ numberOfItems?: number;
8
+ separator?: string;
9
+ });
10
+ parse(text: string): Promise<string[]>;
11
+ getFormatInstructions(): string;
12
+ getSchema(): void;
13
+ }
@@ -1,64 +1,42 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var N8nItemListOutputParser_exports = {};
20
- __export(N8nItemListOutputParser_exports, {
21
- N8nItemListOutputParser: () => N8nItemListOutputParser
22
- });
23
- module.exports = __toCommonJS(N8nItemListOutputParser_exports);
24
- var import_output_parsers = require("@langchain/core/output_parsers");
25
- class N8nItemListOutputParser extends import_output_parsers.BaseOutputParser {
26
- constructor(options) {
27
- super();
28
- this.lc_namespace = ["n8n-nodes-langchain", "output_parsers", "list_items"];
29
- const { numberOfItems = 3, separator = "\n" } = options;
30
- if (numberOfItems && numberOfItems > 0) {
31
- this.numberOfItems = numberOfItems;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.N8nItemListOutputParser = void 0;
4
+ const output_parsers_1 = require("@langchain/core/output_parsers");
5
+ class N8nItemListOutputParser extends output_parsers_1.BaseOutputParser {
6
+ constructor(options) {
7
+ super();
8
+ this.lc_namespace = ['n8n-nodes-langchain', 'output_parsers', 'list_items'];
9
+ const { numberOfItems = 3, separator = '\n' } = options;
10
+ if (numberOfItems && numberOfItems > 0) {
11
+ this.numberOfItems = numberOfItems;
12
+ }
13
+ this.separator = separator;
14
+ if (this.separator === '\\n') {
15
+ this.separator = '\n';
16
+ }
32
17
  }
33
- this.separator = separator;
34
- if (this.separator === "\\n") {
35
- this.separator = "\n";
18
+ async parse(text) {
19
+ const response = text
20
+ .split(this.separator)
21
+ .map((item) => item.trim())
22
+ .filter((item) => item);
23
+ if (this.numberOfItems && response.length < this.numberOfItems) {
24
+ throw new output_parsers_1.OutputParserException(`Wrong number of items returned. Expected ${this.numberOfItems} items but got ${response.length} items instead.`);
25
+ }
26
+ return response.slice(0, this.numberOfItems);
36
27
  }
37
- }
38
- async parse(text) {
39
- const response = text.split(this.separator).map((item) => item.trim()).filter((item) => item);
40
- if (this.numberOfItems && response.length < this.numberOfItems) {
41
- throw new import_output_parsers.OutputParserException(
42
- `Wrong number of items returned. Expected ${this.numberOfItems} items but got ${response.length} items instead.`
43
- );
28
+ getFormatInstructions() {
29
+ const instructions = `Your response should be a list of ${this.numberOfItems ? this.numberOfItems + ' ' : ''}items separated by`;
30
+ const numberOfExamples = this.numberOfItems ?? 3;
31
+ const examples = [];
32
+ for (let i = 1; i <= numberOfExamples; i++) {
33
+ examples.push(`item${i}`);
34
+ }
35
+ return `${instructions} "${this.separator}" (for example: "${examples.join(this.separator)}")`;
44
36
  }
45
- return response.slice(0, this.numberOfItems);
46
- }
47
- getFormatInstructions() {
48
- const instructions = `Your response should be a list of ${this.numberOfItems ? this.numberOfItems + " " : ""}items separated by`;
49
- const numberOfExamples = this.numberOfItems ?? 3;
50
- const examples = [];
51
- for (let i = 1; i <= numberOfExamples; i++) {
52
- examples.push(`item${i}`);
37
+ getSchema() {
38
+ return;
53
39
  }
54
- return `${instructions} "${this.separator}" (for example: "${examples.join(this.separator)}")`;
55
- }
56
- getSchema() {
57
- return;
58
- }
59
40
  }
60
- // Annotate the CommonJS export names for ESM import in node:
61
- 0 && (module.exports = {
62
- N8nItemListOutputParser
63
- });
41
+ exports.N8nItemListOutputParser = N8nItemListOutputParser;
64
42
  //# sourceMappingURL=N8nItemListOutputParser.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../utils/output_parsers/N8nItemListOutputParser.ts"],"sourcesContent":["import { BaseOutputParser, OutputParserException } from '@langchain/core/output_parsers';\n\nexport class N8nItemListOutputParser extends BaseOutputParser<string[]> {\n\tlc_namespace = ['n8n-nodes-langchain', 'output_parsers', 'list_items'];\n\n\tprivate numberOfItems: number | undefined;\n\n\tprivate separator: string;\n\n\tconstructor(options: { numberOfItems?: number; separator?: string }) {\n\t\tsuper();\n\n\t\tconst { numberOfItems = 3, separator = '\\n' } = options;\n\n\t\tif (numberOfItems && numberOfItems > 0) {\n\t\t\tthis.numberOfItems = numberOfItems;\n\t\t}\n\n\t\tthis.separator = separator;\n\n\t\tif (this.separator === '\\\\n') {\n\t\t\tthis.separator = '\\n';\n\t\t}\n\t}\n\n\tasync parse(text: string): Promise<string[]> {\n\t\tconst response = text\n\t\t\t.split(this.separator)\n\t\t\t.map((item) => item.trim())\n\t\t\t.filter((item) => item);\n\n\t\tif (this.numberOfItems && response.length < this.numberOfItems) {\n\t\t\t// Only error if to few items got returned, if there are to many we can autofix it\n\t\t\tthrow new OutputParserException(\n\t\t\t\t`Wrong number of items returned. Expected ${this.numberOfItems} items but got ${response.length} items instead.`,\n\t\t\t);\n\t\t}\n\n\t\treturn response.slice(0, this.numberOfItems);\n\t}\n\n\tgetFormatInstructions(): string {\n\t\tconst instructions = `Your response should be a list of ${\n\t\t\tthis.numberOfItems ? this.numberOfItems + ' ' : ''\n\t\t}items separated by`;\n\n\t\tconst numberOfExamples = this.numberOfItems ?? 3; // Default number of examples in case numberOfItems is not set\n\n\t\tconst examples: string[] = [];\n\t\tfor (let i = 1; i <= numberOfExamples; i++) {\n\t\t\texamples.push(`item${i}`);\n\t\t}\n\n\t\treturn `${instructions} \"${this.separator}\" (for example: \"${examples.join(this.separator)}\")`;\n\t}\n\n\tgetSchema() {\n\t\treturn;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,4BAAwD;AAEjD,MAAM,gCAAgC,uCAA2B;AAAA,EAOvE,YAAY,SAAyD;AACpE,UAAM;AAPP,wBAAe,CAAC,uBAAuB,kBAAkB,YAAY;AASpE,UAAM,EAAE,gBAAgB,GAAG,YAAY,KAAK,IAAI;AAEhD,QAAI,iBAAiB,gBAAgB,GAAG;AACvC,WAAK,gBAAgB;AAAA,IACtB;AAEA,SAAK,YAAY;AAEjB,QAAI,KAAK,cAAc,OAAO;AAC7B,WAAK,YAAY;AAAA,IAClB;AAAA,EACD;AAAA,EAEA,MAAM,MAAM,MAAiC;AAC5C,UAAM,WAAW,KACf,MAAM,KAAK,SAAS,EACpB,IAAI,CAAC,SAAS,KAAK,KAAK,CAAC,EACzB,OAAO,CAAC,SAAS,IAAI;AAEvB,QAAI,KAAK,iBAAiB,SAAS,SAAS,KAAK,eAAe;AAE/D,YAAM,IAAI;AAAA,QACT,4CAA4C,KAAK,aAAa,kBAAkB,SAAS,MAAM;AAAA,MAChG;AAAA,IACD;AAEA,WAAO,SAAS,MAAM,GAAG,KAAK,aAAa;AAAA,EAC5C;AAAA,EAEA,wBAAgC;AAC/B,UAAM,eAAe,qCACpB,KAAK,gBAAgB,KAAK,gBAAgB,MAAM,EACjD;AAEA,UAAM,mBAAmB,KAAK,iBAAiB;AAE/C,UAAM,WAAqB,CAAC;AAC5B,aAAS,IAAI,GAAG,KAAK,kBAAkB,KAAK;AAC3C,eAAS,KAAK,OAAO,CAAC,EAAE;AAAA,IACzB;AAEA,WAAO,GAAG,YAAY,KAAK,KAAK,SAAS,oBAAoB,SAAS,KAAK,KAAK,SAAS,CAAC;AAAA,EAC3F;AAAA,EAEA,YAAY;AACX;AAAA,EACD;AACD;","names":[]}
1
+ {"version":3,"file":"N8nItemListOutputParser.js","sourceRoot":"","sources":["../../../utils/output_parsers/N8nItemListOutputParser.ts"],"names":[],"mappings":";;;AAAA,mEAAyF;AAEzF,MAAa,uBAAwB,SAAQ,iCAA0B;IAOtE,YAAY,OAAuD;QAClE,KAAK,EAAE,CAAC;QAPT,iBAAY,GAAG,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;QAStE,MAAM,EAAE,aAAa,GAAG,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;QAExD,IAAI,aAAa,IAAI,aAAa,GAAG,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACpC,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,IAAI,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;YAC9B,IAAI,CAAC,SAAS,GAAG,I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'@langchain/core/callbacks/manager';
2
+ import type { BaseLanguageModel } from '@langchain/core/language_models/base';
3
+ import { BaseOutputParser } from '@langchain/core/output_parsers';
4
+ import type { PromptTemplate } from '@langchain/core/prompts';
5
+ import type { ISupplyDataFunctions } from 'n8n-workflow';
6
+ import type { N8nStructuredOutputParser } from './N8nStructuredOutputParser';
7
+ export declare class N8nOutputFixingParser extends BaseOutputParser {
8
+ private context;
9
+ private model;
10
+ private outputParser;
11
+ private fixPromptTemplate;
12
+ lc_namespace: string[];
13
+ constructor(context: ISupplyDataFunctions, model: BaseLanguageModel, outputParser: N8nStructuredOutputParser, fixPromptTemplate: PromptTemplate);
14
+ getRetryChain(): import("@langchain/core/runnables").Runnable<any, any, import("@langchain/core/runnables").RunnableConfig<Record<string, any>>>;
15
+ parse(completion: string, callbacks?: Callbacks): Promise<object>;
16
+ getFormatInstructions(): string;
17
+ getSchema(): import("zod").ZodType<object, import("zod").ZodTypeDef, object>;
18
+ }
@@ -1,99 +1,67 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var N8nOutputFixingParser_exports = {};
20
- __export(N8nOutputFixingParser_exports, {
21
- N8nOutputFixingParser: () => N8nOutputFixingParser
22
- });
23
- module.exports = __toCommonJS(N8nOutputFixingParser_exports);
24
- var import_output_parsers = require("@langchain/core/output_parsers");
25
- var import_n8n_workflow = require("n8n-workflow");
26
- var import_helpers = require("../helpers");
27
- class N8nOutputFixingParser extends import_output_parsers.BaseOutputParser {
28
- constructor(context, model, outputParser, fixPromptTemplate) {
29
- super();
30
- this.context = context;
31
- this.model = model;
32
- this.outputParser = outputParser;
33
- this.fixPromptTemplate = fixPromptTemplate;
34
- this.lc_namespace = ["langchain", "output_parsers", "fix"];
35
- }
36
- getRetryChain() {
37
- return this.fixPromptTemplate.pipe(this.model);
38
- }
39
- /**
40
- * Attempts to parse the completion string using the output parser.
41
- * If the initial parse fails, it tries to fix the output using a retry chain.
42
- * @param completion The string to be parsed
43
- * @returns The parsed response
44
- * @throws Error if both parsing attempts fail
45
- */
46
- async parse(completion, callbacks) {
47
- const { index } = this.context.addInputData(import_n8n_workflow.NodeConnectionTypes.AiOutputParser, [
48
- [{ json: { action: "parse", text: completion } }]
49
- ]);
50
- try {
51
- const response = await this.outputParser.parse(completion, callbacks, (e) => {
52
- if (e instanceof import_output_parsers.OutputParserException) {
53
- return e;
54
- }
55
- return new import_output_parsers.OutputParserException(e.message, completion);
56
- });
57
- (0, import_helpers.logAiEvent)(this.context, "ai-output-parsed", { text: completion, response });
58
- this.context.addOutputData(import_n8n_workflow.NodeConnectionTypes.AiOutputParser, index, [
59
- [{ json: { action: "parse", response } }]
60
- ]);
61
- return response;
62
- } catch (error) {
63
- if (!(error instanceof import_output_parsers.OutputParserException)) {
64
- throw error;
65
- }
66
- try {
67
- const result = await this.getRetryChain().invoke({
68
- completion,
69
- error: error.message,
70
- instructions: this.getFormatInstructions()
71
- });
72
- const resultText = result.content.toString();
73
- const parsed = await this.outputParser.parse(resultText, callbacks);
74
- this.context.addOutputData(import_n8n_workflow.NodeConnectionTypes.AiOutputParser, index, [
75
- [{ json: { action: "parse", response: parsed } }]
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.N8nOutputFixingParser = void 0;
4
+ const output_parsers_1 = require("@langchain/core/output_parsers");
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const helpers_1 = require("../helpers");
7
+ class N8nOutputFixingParser extends output_parsers_1.BaseOutputParser {
8
+ constructor(context, model, outputParser, fixPromptTemplate) {
9
+ super();
10
+ this.context = context;
11
+ this.model = model;
12
+ this.outputParser = outputParser;
13
+ this.fixPromptTemplate = fixPromptTemplate;
14
+ this.lc_namespace = ['langchain', 'output_parsers', 'fix'];
15
+ }
16
+ getRetryChain() {
17
+ return this.fixPromptTemplate.pipe(this.model);
18
+ }
19
+ async parse(completion, callbacks) {
20
+ const { index } = this.context.addInputData(n8n_workflow_1.NodeConnectionTypes.AiOutputParser, [
21
+ [{ json: { action: 'parse', text: completion } }],
76
22
  ]);
77
- return parsed;
78
- } catch (autoParseError) {
79
- this.context.addOutputData(import_n8n_workflow.NodeConnectionTypes.AiOutputParser, index, autoParseError);
80
- throw autoParseError;
81
- }
23
+ try {
24
+ const response = await this.outputParser.parse(completion, callbacks, (e) => {
25
+ if (e instanceof output_parsers_1.OutputParserException) {
26
+ return e;
27
+ }
28
+ return new output_parsers_1.OutputParserException(e.message, completion);
29
+ });
30
+ (0, helpers_1.logAiEvent)(this.context, 'ai-output-parsed', { text: completion, response });
31
+ this.context.addOutputData(n8n_workflow_1.NodeConnectionTypes.AiOutputParser, index, [
32
+ [{ json: { action: 'parse', response } }],
33
+ ]);
34
+ return response;
35
+ }
36
+ catch (error) {
37
+ if (!(error instanceof output_parsers_1.OutputParserException)) {
38
+ throw error;
39
+ }
40
+ try {
41
+ const result = (await this.getRetryChain().invoke({
42
+ completion,
43
+ error: error.message,
44
+ instructions: this.getFormatInstructions(),
45
+ }));
46
+ const resultText = result.content.toString();
47
+ const parsed = await this.outputParser.parse(resultText, callbacks);
48
+ this.context.addOutputData(n8n_workflow_1.NodeConnectionTypes.AiOutputParser, index, [
49
+ [{ json: { action: 'parse', response: parsed } }],
50
+ ]);
51
+ return parsed;
52
+ }
53
+ catch (autoParseError) {
54
+ this.context.addOutputData(n8n_workflow_1.NodeConnectionTypes.AiOutputParser, index, autoParseError);
55
+ throw autoParseError;
56
+ }
57
+ }
58
+ }
59
+ getFormatInstructions() {
60
+ return this.outputParser.getFormatInstructions();
61
+ }
62
+ getSchema() {
63
+ return this.outputParser.schema;
82
64
  }
83
- }
84
- /**
85
- * Method to get the format instructions for the parser.
86
- * @returns The format instructions for the parser.
87
- */
88
- getFormatInstructions() {
89
- return this.outputParser.getFormatInstructions();
90
- }
91
- getSchema() {
92
- return this.outputParser.schema;
93
- }
94
65
  }
95
- // Annotate the CommonJS export names for ESM import in node:
96
- 0 && (module.exports = {
97
- N8nOutputFixingParser
98
- });
66
+ exports.N8nOutputFixingParser = N8nOutputFixingParser;
99
67
  //# sourceMappingURL=N8nOutputFixingParser.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../utils/output_parsers/N8nOutputFixingParser.ts"],"sourcesContent":["import type { Callbacks } from '@langchain/core/callbacks/manager';\nimport type { BaseLanguageModel } from '@langchain/core/language_models/base';\nimport type { AIMessage } from '@langchain/core/messages';\nimport { BaseOutputParser, OutputParserException } from '@langchain/core/output_parsers';\nimport type { PromptTemplate } from '@langchain/core/prompts';\nimport type { ISupplyDataFunctions } from 'n8n-workflow';\nimport { NodeConnectionTypes } from 'n8n-workflow';\n\nimport type { N8nStructuredOutputParser } from './N8nStructuredOutputParser';\nimport { logAiEvent } from '../helpers';\n\nexport class N8nOutputFixingParser extends BaseOutputParser {\n\tlc_namespace = ['langchain', 'output_parsers', 'fix'];\n\n\tconstructor(\n\t\tprivate context: ISupplyDataFunctions,\n\t\tprivate model: BaseLanguageModel,\n\t\tprivate outputParser: N8nStructuredOutputParser,\n\t\tprivate fixPromptTemplate: PromptTemplate,\n\t) {\n\t\tsuper();\n\t}\n\n\tgetRetryChain() {\n\t\treturn this.fixPromptTemplate.pipe(this.model);\n\t}\n\n\t/**\n\t * Attempts to parse the completion string using the output parser.\n\t * If the initial parse fails, it tries to fix the output using a retry chain.\n\t * @param completion The string to be parsed\n\t * @returns The parsed response\n\t * @throws Error if both parsing attempts fail\n\t */\n\tasync parse(completion: string, callbacks?: Callbacks) {\n\t\tconst { index } = this.context.addInputData(NodeConnectionTypes.AiOutputParser, [\n\t\t\t[{ json: { action: 'parse', text: completion } }],\n\t\t]);\n\n\t\ttry {\n\t\t\t// First attempt to parse the completion\n\t\t\tconst response = await this.outputParser.parse(completion, callbacks, (e) => {\n\t\t\t\tif (e instanceof OutputParserException) {\n\t\t\t\t\treturn e;\n\t\t\t\t}\n\t\t\t\treturn new OutputParserException(e.message, completion);\n\t\t\t});\n\t\t\tlogAiEvent(this.context, 'ai-output-parsed', { text: completion, response });\n\n\t\t\tthis.context.addOutputData(NodeConnectionTypes.AiOutputParser, index, [\n\t\t\t\t[{ json: { action: 'parse', response } }],\n\t\t\t]);\n\n\t\t\treturn response;\n\t\t} catch (error) {\n\t\t\tif (!(error instanceof OutputParserException)) {\n\t\t\t\tthrow error;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\t// Second attempt: use retry chain to fix the output\n\t\t\t\tconst result = (await this.getRetryChain().invoke({\n\t\t\t\t\tcompletion,\n\t\t\t\t\terror: error.message,\n\t\t\t\t\tinstructions: this.getFormatInstructions(),\n\t\t\t\t})) as AIMessage;\n\n\t\t\t\tconst resultText = result.content.toString();\n\t\t\t\tconst parsed = await this.outputParser.parse(resultText, callbacks);\n\n\t\t\t\t// Add the successfully parsed output to the context\n\t\t\t\tthis.context.addOutputData(NodeConnectionTypes.AiOutputParser, index, [\n\t\t\t\t\t[{ json: { action: 'parse', response: parsed } }],\n\t\t\t\t]);\n\n\t\t\t\treturn parsed;\n\t\t\t} catch (autoParseError) {\n\t\t\t\t// If both attempts fail, add the error to the output and throw\n\t\t\t\tthis.context.addOutputData(NodeConnectionTypes.AiOutputParser, index, autoParseError);\n\t\t\t\tthrow autoParseError;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Method to get the format instructions for the parser.\n\t * @returns The format instructions for the parser.\n\t */\n\tgetFormatInstructions() {\n\t\treturn this.outputParser.getFormatInstructions();\n\t}\n\n\tgetSchema() {\n\t\treturn this.outputParser.schema;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,4BAAwD;AAGxD,0BAAoC;AAGpC,qBAA2B;AAEpB,MAAM,8BAA8B,uCAAiB;AAAA,EAG3D,YACS,SACA,OACA,cACA,mBACP;AACD,UAAM;AALE;AACA;AACA;AACA;AANT,wBAAe,CAAC,aAAa,kBAAkB,KAAK;AAAA,EASpD;AAAA,EAEA,gBAAgB;AACf,WAAO,KAAK,kBAAkB,KAAK,KAAK,KAAK;AAAA,EAC9C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASA,MAAM,MAAM,YAAoB,WAAuB;AACtD,UAAM,EAAE,MAAM,IAAI,KAAK,QAAQ,aAAa,wCAAoB,gBAAgB;AAAA,MAC/E,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAS,MAAM,WAAW,EAAE,CAAC;AAAA,IACjD,CAAC;AAED,QAAI;AAEH,YAAM,WAAW,MAAM,KAAK,aAAa,MAAM,YAAY,WAAW,CAAC,MAAM;AAC5E,YAAI,aAAa,6CAAuB;AACvC,iBAAO;AAAA,QACR;AACA,eAAO,IAAI,4CAAsB,EAAE,SAAS,UAAU;AAAA,MACvD,CAAC;AACD,qCAAW,KAAK,SAAS,oBAAoB,EAAE,MAAM,YAAY,SAAS,CAAC;AAE3E,WAAK,QAAQ,cAAc,wCAAoB,gBAAgB,OAAO;AAAA,QACrE,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAS,SAAS,EAAE,CAAC;AAAA,MACzC,CAAC;AAED,aAAO;AAAA,IACR,SAAS,OAAO;AACf,UAAI,EAAE,iBAAiB,8CAAwB;AAC9C,cAAM;AAAA,MACP;AACA,UAAI;AAEH,cAAM,SAAU,MAAM,KAAK,cAAc,EAAE,OAAO;AAAA,UACjD;AAAA,UACA,OAAO,MAAM;AAAA,UACb,cAAc,KAAK,sBAAsB;AAAA,QAC1C,CAAC;AAED,cAAM,aAAa,OAAO,QAAQ,SAAS;AAC3C,cAAM,SAAS,MAAM,KAAK,aAAa,MAAM,YAAY,SAAS;AAGlE,aAAK,QAAQ,cAAc,wCAAoB,gBAAgB,OAAO;AAAA,UACrE,CAAC,EAAE,MAAM,EAAE,QAAQ,SAAS,UAAU,OAAO,EAAE,CAAC;AAAA,QACjD,CAAC;AAED,eAAO;AAAA,MACR,SAAS,gBAAgB;AAExB,aAAK,QAAQ,cAAc,wCAAoB,gBAAgB,OAAO,cAAc;AACpF,cAAM;AAAA,MACP;AAAA,IACD;AAAA,EACD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,wBAAwB;AACvB,WAAO,KAAK,aAAa,sBAAsB;AAAA,EAChD;AAAA,EAEA,YAAY;AACX,WAAO,KAAK,aAAa;AAAA,EAC1B;AACD;","names":[]}
1
+ {"version":3,"file":"N8nOutputFixingParser.js","sourceRoot":"","sources":["../../../utils/output_parsers/N8nOutputFixingParser.ts"],"names":[],"mappings":";;;AAGA,mEAAyF;AAGzF,+CAAmD;AAGnD,wCAAwC;AAExC,MAAa,qBAAsB,SAAQ,iCAAgB;IAG1D,YACS,OAA6B,EAC7B,KAAwB,EACxB,YAAuC,EACvC,iBAAiC;QAEzC,KAAK,EAAE,CAAC;QALA,YAAO,GAAP,OAAO,CAAsB;QAC7B,UAAK,GAAL,KAAK,CAAmB;QACxB,iBAAY,GAAZ,YAAY,CAA2B;QACvC,sBAAiB,GAAjB,iBAAiB,CAAgB;QAN1C,iBAAY,GAAG,CAAC,WAAW,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;IAStD,CAAC;IAED,aAAa;QACZ,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChD,CAAC;IASD,KAAK,CAAC,KAAK,CAAC,UAAkB,EAAE,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AEjB,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;gBAC7C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;gBAGpE,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,kCAAmB,CAAC,cAAc,EAAE,KAAK,EAAE;oBACrE,CAAC,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,CAAC;iBACjD,CAAC,CAAC;gBAEH,OAAO,MAAM,CAAC;YACf,CAAC;YAAC,OAAO,cAAc,EAAE,CAAC;gBAEzB,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,kCAAmB,CAAC,cAAc,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;gBACtF,MAAM,cAAc,CAAC;YACtB,CAAC;QACF,CAAC;IACF,CAAC;IAMD,qBAAqB;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC;IAClD,CAAC;IAED,SAAS;QACR,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC;IACjC,CAAC;CACD;AAnFD,sDAmFC"}
@@ -0,0 +1,7 @@
1
+ import type { IExecuteFunctions, ISupplyDataFunctions } from 'n8n-workflow';
2
+ import { N8nItemListOutputParser } from './N8nItemListOutputParser';
3
+ import { N8nOutputFixingParser } from './N8nOutputFixingParser';
4
+ import { N8nStructuredOutputParser } from './N8nStructuredOutputParser';
5
+ export type N8nOutputParser = N8nOutputFixingParser | N8nStructuredOutputParser | N8nItemListOutputParser;
6
+ export { N8nOutputFixingParser, N8nItemListOutputParser, N8nStructuredOutputParser };
7
+ export declare function getOptionalOutputParser(ctx: IExecuteFunctions | ISupplyDataFunctions, index?: number): Promise<N8nOutputParser | undefined>;
@@ -1,48 +1,19 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var N8nOutputParser_exports = {};
20
- __export(N8nOutputParser_exports, {
21
- N8nItemListOutputParser: () => import_N8nItemListOutputParser.N8nItemListOutputParser,
22
- N8nOutputFixingParser: () => import_N8nOutputFixingParser.N8nOutputFixingParser,
23
- N8nStructuredOutputParser: () => import_N8nStructuredOutputParser.N8nStructuredOutputParser,
24
- getOptionalOutputParser: () => getOptionalOutputParser
25
- });
26
- module.exports = __toCommonJS(N8nOutputParser_exports);
27
- var import_n8n_workflow = require("n8n-workflow");
28
- var import_N8nItemListOutputParser = require("./N8nItemListOutputParser");
29
- var import_N8nOutputFixingParser = require("./N8nOutputFixingParser");
30
- var import_N8nStructuredOutputParser = require("./N8nStructuredOutputParser");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.N8nStructuredOutputParser = exports.N8nItemListOutputParser = exports.N8nOutputFixingParser = void 0;
4
+ exports.getOptionalOutputParser = getOptionalOutputParser;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const N8nItemListOutputParser_1 = require("./N8nItemListOutputParser");
7
+ Object.defineProperty(exports, "N8nItemListOutputParser", { enumerable: true, get: function () { return N8nItemListOutputParser_1.N8nItemListOutputParser; } });
8
+ const N8nOutputFixingParser_1 = require("./N8nOutputFixingParser");
9
+ Object.defineProperty(exports, "N8nOutputFixingParser", { enumerable: true, get: function () { return N8nOutputFixingParser_1.N8nOutputFixingParser; } });
10
+ const N8nStructuredOutputParser_1 = require("./N8nStructuredOutputParser");
11
+ Object.defineProperty(exports, "N8nStructuredOutputParser", { enumerable: true, get: function () { return N8nStructuredOutputParser_1.N8nStructuredOutputParser; } });
31
12
  async function getOptionalOutputParser(ctx, index = 0) {
32
- let outputParser;
33
- if (ctx.getNodeParameter("hasOutputParser", 0, true) === true) {
34
- outputParser = await ctx.getInputConnectionData(
35
- import_n8n_workflow.NodeConnectionTypes.AiOutputParser,
36
- index
37
- );
38
- }
39
- return outputParser;
13
+ let outputParser;
14
+ if (ctx.getNodeParameter('hasOutputParser', 0, true) === true) {
15
+ outputParser = (await ctx.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiOutputParser, index));
16
+ }
17
+ return outputParser;
40
18
  }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- N8nItemListOutputParser,
44
- N8nOutputFixingParser,
45
- N8nStructuredOutputParser,
46
- getOptionalOutputParser
47
- });
48
19
  //# sourceMappingURL=N8nOutputParser.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../utils/output_parsers/N8nOutputParser.ts"],"sourcesContent":["import type { IExecuteFunctions, ISupplyDataFunctions } from 'n8n-workflow';\nimport { NodeConnectionTypes } from 'n8n-workflow';\n\nimport { N8nItemListOutputParser } from './N8nItemListOutputParser';\nimport { N8nOutputFixingParser } from './N8nOutputFixingParser';\nimport { N8nStructuredOutputParser } from './N8nStructuredOutputParser';\n\nexport type N8nOutputParser =\n\t| N8nOutputFixingParser\n\t| N8nStructuredOutputParser\n\t| N8nItemListOutputParser;\n\nexport { N8nOutputFixingParser, N8nItemListOutputParser, N8nStructuredOutputParser };\n\nexport async function getOptionalOutputParser(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n\tindex: number = 0,\n): Promise<N8nOutputParser | undefined> {\n\tlet outputParser: N8nOutputParser | undefined;\n\n\tif (ctx.getNodeParameter('hasOutputParser', 0, true) === true) {\n\t\toutputParser = (await ctx.getInputConnectionData(\n\t\t\tNodeConnectionTypes.AiOutputParser,\n\t\t\tindex,\n\t\t)) as N8nOutputParser;\n\t}\n\n\treturn outputParser;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,0BAAoC;AAEpC,qCAAwC;AACxC,mCAAsC;AACtC,uCAA0C;AAS1C,eAAsB,wBACrB,KACA,QAAgB,GACuB;AACvC,MAAI;AAEJ,MAAI,IAAI,iBAAiB,mBAAmB,GAAG,IAAI,MAAM,MAAM;AAC9D,mBAAgB,MAAM,IAAI;AAAA,MACzB,wCAAoB;AAAA,MACpB;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AACR;","names":[]}
1
+ {"version":3,"file":"N8nOutputParser.js","sourceRoot":"","sources":["../../../utils/output_parsers/N8nOutputParser.ts"],"names":[],"mappings":";;;AAcA,0DAcC;AA3BD,+CAAmD;AAEnD,uEAAoE;AASpC,wGATvB,iDAAuB,OASuB;AARvD,mEAAgE;AAQvD,sGARA,6CAAqB,OAQA;AAP9B,2EAAwE;AAOf,0GAPhD,qDAAyB,OAOgD;AAE3E,KAAK,UAAU,uBAAuB,CAC5C,GAA6C,EAC7C,QAAgB,CAAC;IAEjB,IAAI,YAAyC,CAAC;IAE9C,IAAI,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,EAAE,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;QAC/D,YAAY,GAAG,CAAC,MAAM,GAAG,CAAC,sBAAsB,CAC/C,kCAAmB,CAAC,cAAc,EAClC,KAAK,CACL,CAAoB,CAAC;IACvB,CAAC;IAED,OAAO,YAAY,CAAC;AACrB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Callbacks } from '@langchain/core/callbacks/manager';
2
+ import { StructuredOutputParser } from '@langchain/classic/output_parsers';
3
+ import type { ISupplyDataFunctions } from 'n8n-workflow';
4
+ import { z } from 'zod';
5
+ export declare class N8nStructuredOutputParser extends StructuredOutputParser<z.ZodType<object, z.ZodTypeDef, object>> {
6
+ private context;
7
+ constructor(context: ISupplyDataFunctions, zodSchema: z.ZodSchema<object>);
8
+ lc_namespace: string[];
9
+ parse(text: string, _callbacks?: Callbacks, errorMapper?: (error: Error) => Error): Promise<object>;
10
+ static fromZodJsonSchema(zodSchema: z.ZodSchema<object>, nodeVersion: number, context: ISupplyDataFunctions): Promise<N8nStructuredOutputParser>;
11
+ getSchema(): z.ZodType<object, z.ZodTypeDef, object>;
12
+ }