langchain 0.3.30 → 1.0.0-alpha.1

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 (2477) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +38 -0
  2. package/dist/_virtual/rolldown_runtime.js +34 -0
  3. package/dist/agents/ReactAgent.cjs +247 -0
  4. package/dist/agents/ReactAgent.cjs.map +1 -0
  5. package/dist/agents/ReactAgent.d.cts +68 -0
  6. package/dist/agents/ReactAgent.d.cts.map +1 -0
  7. package/dist/agents/ReactAgent.d.ts +68 -0
  8. package/dist/agents/ReactAgent.d.ts.map +1 -0
  9. package/dist/agents/ReactAgent.js +246 -0
  10. package/dist/agents/ReactAgent.js.map +1 -0
  11. package/dist/agents/RunnableCallable.cjs +30 -0
  12. package/dist/agents/RunnableCallable.cjs.map +1 -0
  13. package/dist/agents/RunnableCallable.d.cts +34 -0
  14. package/dist/agents/RunnableCallable.d.cts.map +1 -0
  15. package/dist/agents/RunnableCallable.d.ts +34 -0
  16. package/dist/agents/RunnableCallable.d.ts.map +1 -0
  17. package/dist/agents/RunnableCallable.js +29 -0
  18. package/dist/agents/RunnableCallable.js.map +1 -0
  19. package/dist/agents/annotation.cjs +29 -0
  20. package/dist/agents/annotation.cjs.map +1 -0
  21. package/dist/agents/annotation.d.cts +38 -0
  22. package/dist/agents/annotation.d.cts.map +1 -0
  23. package/dist/agents/annotation.d.ts +38 -0
  24. package/dist/agents/annotation.d.ts.map +1 -0
  25. package/dist/agents/annotation.js +28 -0
  26. package/dist/agents/annotation.js.map +1 -0
  27. package/dist/agents/constants.cjs +7 -0
  28. package/dist/agents/constants.cjs.map +1 -0
  29. package/dist/agents/constants.js +6 -0
  30. package/dist/agents/constants.js.map +1 -0
  31. package/dist/agents/errors.cjs +49 -0
  32. package/dist/agents/errors.cjs.map +1 -0
  33. package/dist/agents/errors.d.cts +25 -0
  34. package/dist/agents/errors.d.cts.map +1 -0
  35. package/dist/agents/errors.d.ts +25 -0
  36. package/dist/agents/errors.d.ts.map +1 -0
  37. package/dist/agents/errors.js +45 -0
  38. package/dist/agents/errors.js.map +1 -0
  39. package/dist/agents/index.cjs +16 -59
  40. package/dist/agents/index.cjs.map +1 -0
  41. package/dist/agents/index.d.cts +98 -0
  42. package/dist/agents/index.d.cts.map +1 -0
  43. package/dist/agents/index.d.ts +98 -20
  44. package/dist/agents/index.d.ts.map +1 -0
  45. package/dist/agents/index.js +14 -19
  46. package/dist/agents/index.js.map +1 -0
  47. package/dist/agents/interrupt.cjs +2 -0
  48. package/dist/agents/interrupt.d.cts +79 -0
  49. package/dist/agents/interrupt.d.cts.map +1 -0
  50. package/dist/agents/interrupt.d.ts +82 -0
  51. package/dist/agents/interrupt.d.ts.map +1 -0
  52. package/dist/agents/interrupt.js +1 -0
  53. package/dist/agents/nodes/AgentNode.cjs +266 -0
  54. package/dist/agents/nodes/AgentNode.cjs.map +1 -0
  55. package/dist/agents/nodes/AgentNode.js +265 -0
  56. package/dist/agents/nodes/AgentNode.js.map +1 -0
  57. package/dist/agents/nodes/ToolNode.cjs +169 -0
  58. package/dist/agents/nodes/ToolNode.cjs.map +1 -0
  59. package/dist/agents/nodes/ToolNode.d.cts +98 -0
  60. package/dist/agents/nodes/ToolNode.d.cts.map +1 -0
  61. package/dist/agents/nodes/ToolNode.d.ts +98 -0
  62. package/dist/agents/nodes/ToolNode.d.ts.map +1 -0
  63. package/dist/agents/nodes/ToolNode.js +168 -0
  64. package/dist/agents/nodes/ToolNode.js.map +1 -0
  65. package/dist/agents/nodes/utils.cjs +17 -0
  66. package/dist/agents/nodes/utils.cjs.map +1 -0
  67. package/dist/agents/nodes/utils.js +16 -0
  68. package/dist/agents/nodes/utils.js.map +1 -0
  69. package/dist/agents/responses.cjs +167 -0
  70. package/dist/agents/responses.cjs.map +1 -0
  71. package/dist/agents/responses.d.cts +121 -0
  72. package/dist/agents/responses.d.cts.map +1 -0
  73. package/dist/agents/responses.d.ts +121 -0
  74. package/dist/agents/responses.d.ts.map +1 -0
  75. package/dist/agents/responses.js +162 -0
  76. package/dist/agents/responses.js.map +1 -0
  77. package/dist/agents/types.d.cts +261 -0
  78. package/dist/agents/types.d.cts.map +1 -0
  79. package/dist/agents/types.d.ts +252 -84
  80. package/dist/agents/types.d.ts.map +1 -0
  81. package/dist/agents/utils.cjs +254 -0
  82. package/dist/agents/utils.cjs.map +1 -0
  83. package/dist/agents/utils.js +246 -0
  84. package/dist/agents/utils.js.map +1 -0
  85. package/dist/agents/withAgentName.cjs +39 -0
  86. package/dist/agents/withAgentName.cjs.map +1 -0
  87. package/dist/agents/withAgentName.js +38 -0
  88. package/dist/agents/withAgentName.js.map +1 -0
  89. package/dist/chains/analyze_documents_chain.cjs +81 -97
  90. package/dist/chains/analyze_documents_chain.cjs.map +1 -0
  91. package/dist/chains/analyze_documents_chain.d.cts +58 -0
  92. package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
  93. package/dist/chains/analyze_documents_chain.d.ts +27 -21
  94. package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
  95. package/dist/chains/analyze_documents_chain.js +80 -93
  96. package/dist/chains/analyze_documents_chain.js.map +1 -0
  97. package/dist/chains/api/api_chain.cjs +98 -118
  98. package/dist/chains/api/api_chain.cjs.map +1 -0
  99. package/dist/chains/api/api_chain.d.cts +63 -0
  100. package/dist/chains/api/api_chain.d.cts.map +1 -0
  101. package/dist/chains/api/api_chain.d.ts +47 -41
  102. package/dist/chains/api/api_chain.d.ts.map +1 -0
  103. package/dist/chains/api/api_chain.js +97 -113
  104. package/dist/chains/api/api_chain.js.map +1 -0
  105. package/dist/chains/api/prompts.cjs +22 -13
  106. package/dist/chains/api/prompts.cjs.map +1 -0
  107. package/dist/chains/api/prompts.js +19 -9
  108. package/dist/chains/api/prompts.js.map +1 -0
  109. package/dist/chains/base.cjs +178 -232
  110. package/dist/chains/base.cjs.map +1 -0
  111. package/dist/chains/base.d.cts +88 -0
  112. package/dist/chains/base.d.cts.map +1 -0
  113. package/dist/chains/base.d.ts +81 -76
  114. package/dist/chains/base.d.ts.map +1 -0
  115. package/dist/chains/base.js +177 -195
  116. package/dist/chains/base.js.map +1 -0
  117. package/dist/chains/chat_vector_db_chain.cjs +116 -163
  118. package/dist/chains/chat_vector_db_chain.cjs.map +1 -0
  119. package/dist/chains/chat_vector_db_chain.d.cts +62 -0
  120. package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
  121. package/dist/chains/chat_vector_db_chain.d.ts +53 -47
  122. package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
  123. package/dist/chains/chat_vector_db_chain.js +113 -157
  124. package/dist/chains/chat_vector_db_chain.js.map +1 -0
  125. package/dist/chains/combine_docs_chain.cjs +271 -397
  126. package/dist/chains/combine_docs_chain.cjs.map +1 -0
  127. package/dist/chains/combine_docs_chain.d.cts +126 -0
  128. package/dist/chains/combine_docs_chain.d.cts.map +1 -0
  129. package/dist/chains/combine_docs_chain.d.ts +92 -86
  130. package/dist/chains/combine_docs_chain.d.ts.map +1 -0
  131. package/dist/chains/combine_docs_chain.js +267 -390
  132. package/dist/chains/combine_docs_chain.js.map +1 -0
  133. package/dist/chains/combine_documents/base.cjs +21 -18
  134. package/dist/chains/combine_documents/base.cjs.map +1 -0
  135. package/dist/chains/combine_documents/base.js +16 -13
  136. package/dist/chains/combine_documents/base.js.map +1 -0
  137. package/dist/chains/combine_documents/index.cjs +16 -5
  138. package/dist/chains/combine_documents/index.cjs.map +1 -0
  139. package/dist/chains/combine_documents/index.d.cts +2 -0
  140. package/dist/chains/combine_documents/index.d.ts +2 -1
  141. package/dist/chains/combine_documents/index.js +10 -1
  142. package/dist/chains/combine_documents/index.js.map +1 -0
  143. package/dist/chains/combine_documents/reduce.cjs +66 -64
  144. package/dist/chains/combine_documents/reduce.cjs.map +1 -0
  145. package/dist/chains/combine_documents/reduce.d.cts +36 -0
  146. package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
  147. package/dist/chains/combine_documents/reduce.d.ts +10 -2
  148. package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
  149. package/dist/chains/combine_documents/reduce.js +60 -61
  150. package/dist/chains/combine_documents/reduce.js.map +1 -0
  151. package/dist/chains/combine_documents/stuff.cjs +39 -39
  152. package/dist/chains/combine_documents/stuff.cjs.map +1 -0
  153. package/dist/chains/combine_documents/stuff.d.cts +40 -0
  154. package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
  155. package/dist/chains/combine_documents/stuff.d.ts +21 -9
  156. package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
  157. package/dist/chains/combine_documents/stuff.js +38 -36
  158. package/dist/chains/combine_documents/stuff.js.map +1 -0
  159. package/dist/chains/constitutional_ai/constitutional_chain.cjs +129 -159
  160. package/dist/chains/constitutional_ai/constitutional_chain.cjs.map +1 -0
  161. package/dist/chains/constitutional_ai/constitutional_chain.d.cts +79 -0
  162. package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
  163. package/dist/chains/constitutional_ai/constitutional_chain.d.ts +46 -40
  164. package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
  165. package/dist/chains/constitutional_ai/constitutional_chain.js +127 -153
  166. package/dist/chains/constitutional_ai/constitutional_chain.js.map +1 -0
  167. package/dist/chains/constitutional_ai/constitutional_principle.cjs +320 -332
  168. package/dist/chains/constitutional_ai/constitutional_principle.cjs.map +1 -0
  169. package/dist/chains/constitutional_ai/constitutional_principle.d.cts +50 -0
  170. package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
  171. package/dist/chains/constitutional_ai/constitutional_principle.d.ts +20 -10
  172. package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
  173. package/dist/chains/constitutional_ai/constitutional_principle.js +318 -328
  174. package/dist/chains/constitutional_ai/constitutional_principle.js.map +1 -0
  175. package/dist/chains/constitutional_ai/constitutional_prompts.cjs +68 -59
  176. package/dist/chains/constitutional_ai/constitutional_prompts.cjs.map +1 -0
  177. package/dist/chains/constitutional_ai/constitutional_prompts.js +65 -55
  178. package/dist/chains/constitutional_ai/constitutional_prompts.js.map +1 -0
  179. package/dist/chains/conversation.cjs +43 -40
  180. package/dist/chains/conversation.cjs.map +1 -0
  181. package/dist/chains/conversation.d.cts +34 -0
  182. package/dist/chains/conversation.d.cts.map +1 -0
  183. package/dist/chains/conversation.d.ts +14 -4
  184. package/dist/chains/conversation.d.ts.map +1 -0
  185. package/dist/chains/conversation.js +40 -35
  186. package/dist/chains/conversation.js.map +1 -0
  187. package/dist/chains/conversational_retrieval_chain.cjs +210 -277
  188. package/dist/chains/conversational_retrieval_chain.cjs.map +1 -0
  189. package/dist/chains/conversational_retrieval_chain.d.cts +152 -0
  190. package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
  191. package/dist/chains/conversational_retrieval_chain.d.ts +66 -60
  192. package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
  193. package/dist/chains/conversational_retrieval_chain.js +207 -271
  194. package/dist/chains/conversational_retrieval_chain.js.map +1 -0
  195. package/dist/chains/graph_qa/cypher.cjs +130 -178
  196. package/dist/chains/graph_qa/cypher.cjs.map +1 -0
  197. package/dist/chains/graph_qa/cypher.d.cts +76 -0
  198. package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
  199. package/dist/chains/graph_qa/cypher.d.ts +46 -38
  200. package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
  201. package/dist/chains/graph_qa/cypher.js +122 -173
  202. package/dist/chains/graph_qa/cypher.js.map +1 -0
  203. package/dist/chains/graph_qa/prompts.cjs +15 -10
  204. package/dist/chains/graph_qa/prompts.cjs.map +1 -0
  205. package/dist/chains/graph_qa/prompts.js +12 -6
  206. package/dist/chains/graph_qa/prompts.js.map +1 -0
  207. package/dist/chains/history_aware_retriever.cjs +53 -51
  208. package/dist/chains/history_aware_retriever.cjs.map +1 -0
  209. package/dist/chains/history_aware_retriever.d.cts +64 -0
  210. package/dist/chains/history_aware_retriever.d.cts.map +1 -0
  211. package/dist/chains/history_aware_retriever.d.ts +32 -22
  212. package/dist/chains/history_aware_retriever.d.ts.map +1 -0
  213. package/dist/chains/history_aware_retriever.js +46 -47
  214. package/dist/chains/history_aware_retriever.js.map +1 -0
  215. package/dist/chains/index.cjs +109 -62
  216. package/dist/chains/index.cjs.map +1 -0
  217. package/dist/chains/index.d.cts +26 -0
  218. package/dist/chains/index.d.ts +26 -25
  219. package/dist/chains/index.js +69 -24
  220. package/dist/chains/index.js.map +1 -0
  221. package/dist/chains/llm_chain.cjs +149 -214
  222. package/dist/chains/llm_chain.cjs.map +1 -0
  223. package/dist/chains/llm_chain.d.cts +97 -0
  224. package/dist/chains/llm_chain.d.cts.map +1 -0
  225. package/dist/chains/llm_chain.d.ts +69 -64
  226. package/dist/chains/llm_chain.d.ts.map +1 -0
  227. package/dist/chains/llm_chain.js +147 -209
  228. package/dist/chains/llm_chain.js.map +1 -0
  229. package/dist/chains/load.cjs +42 -33
  230. package/dist/chains/load.cjs.map +1 -0
  231. package/dist/chains/load.d.cts +30 -0
  232. package/dist/chains/load.d.cts.map +1 -0
  233. package/dist/chains/load.d.ts +8 -1
  234. package/dist/chains/load.d.ts.map +1 -0
  235. package/dist/chains/load.js +34 -27
  236. package/dist/chains/load.js.map +1 -0
  237. package/dist/chains/openai_functions/base.cjs +133 -137
  238. package/dist/chains/openai_functions/base.cjs.map +1 -0
  239. package/dist/chains/openai_functions/base.d.cts +172 -0
  240. package/dist/chains/openai_functions/base.d.cts.map +1 -0
  241. package/dist/chains/openai_functions/base.d.ts +59 -41
  242. package/dist/chains/openai_functions/base.d.ts.map +1 -0
  243. package/dist/chains/openai_functions/base.js +132 -134
  244. package/dist/chains/openai_functions/base.js.map +1 -0
  245. package/dist/chains/openai_functions/extraction.cjs +58 -60
  246. package/dist/chains/openai_functions/extraction.cjs.map +1 -0
  247. package/dist/chains/openai_functions/extraction.d.cts +31 -0
  248. package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
  249. package/dist/chains/openai_functions/extraction.d.ts +14 -5
  250. package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
  251. package/dist/chains/openai_functions/extraction.js +56 -56
  252. package/dist/chains/openai_functions/extraction.js.map +1 -0
  253. package/dist/chains/openai_functions/index.cjs +38 -17
  254. package/dist/chains/openai_functions/index.cjs.map +1 -0
  255. package/dist/chains/openai_functions/index.d.cts +6 -0
  256. package/dist/chains/openai_functions/index.d.ts +6 -5
  257. package/dist/chains/openai_functions/index.js +24 -5
  258. package/dist/chains/openai_functions/index.js.map +1 -0
  259. package/dist/chains/openai_functions/openapi.cjs +271 -388
  260. package/dist/chains/openai_functions/openapi.cjs.map +1 -0
  261. package/dist/chains/openai_functions/openapi.d.cts +61 -0
  262. package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
  263. package/dist/chains/openai_functions/openapi.d.ts +32 -24
  264. package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
  265. package/dist/chains/openai_functions/openapi.js +268 -382
  266. package/dist/chains/openai_functions/openapi.js.map +1 -0
  267. package/dist/chains/openai_functions/structured_output.cjs +98 -140
  268. package/dist/chains/openai_functions/structured_output.cjs.map +1 -0
  269. package/dist/chains/openai_functions/structured_output.d.cts +38 -0
  270. package/dist/chains/openai_functions/structured_output.d.cts.map +1 -0
  271. package/dist/chains/openai_functions/structured_output.d.ts +20 -41
  272. package/dist/chains/openai_functions/structured_output.d.ts.map +1 -0
  273. package/dist/chains/openai_functions/structured_output.js +96 -134
  274. package/dist/chains/openai_functions/structured_output.js.map +1 -0
  275. package/dist/chains/openai_functions/tagging.cjs +59 -59
  276. package/dist/chains/openai_functions/tagging.cjs.map +1 -0
  277. package/dist/chains/openai_functions/tagging.d.cts +49 -0
  278. package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
  279. package/dist/chains/openai_functions/tagging.d.ts +17 -8
  280. package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
  281. package/dist/chains/openai_functions/tagging.js +57 -55
  282. package/dist/chains/openai_functions/tagging.js.map +1 -0
  283. package/dist/chains/openai_moderation.cjs +105 -161
  284. package/dist/chains/openai_moderation.cjs.map +1 -0
  285. package/dist/chains/openai_moderation.d.cts +74 -0
  286. package/dist/chains/openai_moderation.d.cts.map +1 -0
  287. package/dist/chains/openai_moderation.d.ts +34 -28
  288. package/dist/chains/openai_moderation.d.ts.map +1 -0
  289. package/dist/chains/openai_moderation.js +103 -156
  290. package/dist/chains/openai_moderation.js.map +1 -0
  291. package/dist/chains/query_constructor/index.cjs +136 -145
  292. package/dist/chains/query_constructor/index.cjs.map +1 -0
  293. package/dist/chains/query_constructor/index.d.cts +80 -0
  294. package/dist/chains/query_constructor/index.d.cts.map +1 -0
  295. package/dist/chains/query_constructor/index.d.ts +57 -49
  296. package/dist/chains/query_constructor/index.d.ts.map +1 -0
  297. package/dist/chains/query_constructor/index.js +121 -134
  298. package/dist/chains/query_constructor/index.js.map +1 -0
  299. package/dist/chains/query_constructor/ir.cjs +22 -17
  300. package/dist/chains/query_constructor/ir.cjs.map +1 -0
  301. package/dist/chains/query_constructor/ir.d.cts +1 -0
  302. package/dist/chains/query_constructor/ir.d.ts +1 -1
  303. package/dist/chains/query_constructor/ir.js +12 -1
  304. package/dist/chains/query_constructor/ir.js.map +1 -0
  305. package/dist/chains/query_constructor/parser.cjs +78 -123
  306. package/dist/chains/query_constructor/parser.cjs.map +1 -0
  307. package/dist/chains/query_constructor/parser.d.cts +43 -0
  308. package/dist/chains/query_constructor/parser.d.cts.map +1 -0
  309. package/dist/chains/query_constructor/parser.d.ts +34 -28
  310. package/dist/chains/query_constructor/parser.d.ts.map +1 -0
  311. package/dist/chains/query_constructor/parser.js +78 -120
  312. package/dist/chains/query_constructor/parser.js.map +1 -0
  313. package/dist/chains/query_constructor/prompt.cjs +39 -31
  314. package/dist/chains/query_constructor/prompt.cjs.map +1 -0
  315. package/dist/chains/query_constructor/prompt.d.cts +22 -0
  316. package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
  317. package/dist/chains/query_constructor/prompt.d.ts +19 -17
  318. package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
  319. package/dist/chains/query_constructor/prompt.js +33 -27
  320. package/dist/chains/query_constructor/prompt.js.map +1 -0
  321. package/dist/chains/question_answering/load.cjs +88 -77
  322. package/dist/chains/question_answering/load.cjs.map +1 -0
  323. package/dist/chains/question_answering/load.d.cts +72 -0
  324. package/dist/chains/question_answering/load.d.cts.map +1 -0
  325. package/dist/chains/question_answering/load.d.ts +31 -24
  326. package/dist/chains/question_answering/load.d.ts.map +1 -0
  327. package/dist/chains/question_answering/load.js +87 -72
  328. package/dist/chains/question_answering/load.js.map +1 -0
  329. package/dist/chains/question_answering/map_reduce_prompts.cjs +18 -30
  330. package/dist/chains/question_answering/map_reduce_prompts.cjs.map +1 -0
  331. package/dist/chains/question_answering/map_reduce_prompts.js +16 -27
  332. package/dist/chains/question_answering/map_reduce_prompts.js.map +1 -0
  333. package/dist/chains/question_answering/refine_prompts.cjs +30 -33
  334. package/dist/chains/question_answering/refine_prompts.cjs.map +1 -0
  335. package/dist/chains/question_answering/refine_prompts.js +28 -30
  336. package/dist/chains/question_answering/refine_prompts.js.map +1 -0
  337. package/dist/chains/question_answering/stuff_prompts.cjs +15 -15
  338. package/dist/chains/question_answering/stuff_prompts.cjs.map +1 -0
  339. package/dist/chains/question_answering/stuff_prompts.js +14 -12
  340. package/dist/chains/question_answering/stuff_prompts.js.map +1 -0
  341. package/dist/chains/retrieval.cjs +51 -55
  342. package/dist/chains/retrieval.cjs.map +1 -0
  343. package/dist/chains/retrieval.d.cts +77 -0
  344. package/dist/chains/retrieval.d.cts.map +1 -0
  345. package/dist/chains/retrieval.d.ts +44 -32
  346. package/dist/chains/retrieval.d.ts.map +1 -0
  347. package/dist/chains/retrieval.js +45 -52
  348. package/dist/chains/retrieval.js.map +1 -0
  349. package/dist/chains/retrieval_qa.cjs +104 -125
  350. package/dist/chains/retrieval_qa.cjs.map +1 -0
  351. package/dist/chains/retrieval_qa.d.cts +81 -0
  352. package/dist/chains/retrieval_qa.d.cts.map +1 -0
  353. package/dist/chains/retrieval_qa.d.ts +40 -34
  354. package/dist/chains/retrieval_qa.d.ts.map +1 -0
  355. package/dist/chains/retrieval_qa.js +104 -121
  356. package/dist/chains/retrieval_qa.js.map +1 -0
  357. package/dist/chains/router/llm_router.cjs +48 -45
  358. package/dist/chains/router/llm_router.cjs.map +1 -0
  359. package/dist/chains/router/llm_router.d.cts +54 -0
  360. package/dist/chains/router/llm_router.d.cts.map +1 -0
  361. package/dist/chains/router/llm_router.d.ts +34 -28
  362. package/dist/chains/router/llm_router.d.ts.map +1 -0
  363. package/dist/chains/router/llm_router.js +48 -41
  364. package/dist/chains/router/llm_router.js.map +1 -0
  365. package/dist/chains/router/multi_prompt.cjs +114 -128
  366. package/dist/chains/router/multi_prompt.cjs.map +1 -0
  367. package/dist/chains/router/multi_prompt.d.cts +76 -0
  368. package/dist/chains/router/multi_prompt.d.cts.map +1 -0
  369. package/dist/chains/router/multi_prompt.d.ts +47 -33
  370. package/dist/chains/router/multi_prompt.d.ts.map +1 -0
  371. package/dist/chains/router/multi_prompt.js +110 -121
  372. package/dist/chains/router/multi_prompt.js.map +1 -0
  373. package/dist/chains/router/multi_prompt_prompt.cjs +4 -24
  374. package/dist/chains/router/multi_prompt_prompt.cjs.map +1 -0
  375. package/dist/chains/router/multi_prompt_prompt.js +6 -23
  376. package/dist/chains/router/multi_prompt_prompt.js.map +1 -0
  377. package/dist/chains/router/multi_retrieval_prompt.cjs +4 -24
  378. package/dist/chains/router/multi_retrieval_prompt.cjs.map +1 -0
  379. package/dist/chains/router/multi_retrieval_prompt.js +6 -23
  380. package/dist/chains/router/multi_retrieval_prompt.js.map +1 -0
  381. package/dist/chains/router/multi_retrieval_qa.cjs +135 -151
  382. package/dist/chains/router/multi_retrieval_qa.cjs.map +1 -0
  383. package/dist/chains/router/multi_retrieval_qa.d.cts +100 -0
  384. package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
  385. package/dist/chains/router/multi_retrieval_qa.d.ts +57 -43
  386. package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
  387. package/dist/chains/router/multi_retrieval_qa.js +131 -144
  388. package/dist/chains/router/multi_retrieval_qa.js.map +1 -0
  389. package/dist/chains/router/multi_route.cjs +66 -96
  390. package/dist/chains/router/multi_route.cjs.map +1 -0
  391. package/dist/chains/router/multi_route.d.cts +69 -0
  392. package/dist/chains/router/multi_route.d.cts.map +1 -0
  393. package/dist/chains/router/multi_route.d.ts +36 -31
  394. package/dist/chains/router/multi_route.d.ts.map +1 -0
  395. package/dist/chains/router/multi_route.js +66 -92
  396. package/dist/chains/router/multi_route.js.map +1 -0
  397. package/dist/chains/router/utils.cjs +16 -31
  398. package/dist/chains/router/utils.cjs.map +1 -0
  399. package/dist/chains/router/utils.js +16 -29
  400. package/dist/chains/router/utils.js.map +1 -0
  401. package/dist/chains/sequential_chain.cjs +247 -316
  402. package/dist/chains/sequential_chain.cjs.map +1 -0
  403. package/dist/chains/sequential_chain.d.cts +158 -0
  404. package/dist/chains/sequential_chain.d.cts.map +1 -0
  405. package/dist/chains/sequential_chain.d.ts +54 -48
  406. package/dist/chains/sequential_chain.d.ts.map +1 -0
  407. package/dist/chains/sequential_chain.js +246 -311
  408. package/dist/chains/sequential_chain.js.map +1 -0
  409. package/dist/chains/serde.d.cts +156 -0
  410. package/dist/chains/serde.d.cts.map +1 -0
  411. package/dist/chains/serde.d.ts +59 -53
  412. package/dist/chains/serde.d.ts.map +1 -0
  413. package/dist/chains/sql_db/index.cjs +35 -14
  414. package/dist/chains/sql_db/index.cjs.map +1 -0
  415. package/dist/chains/sql_db/index.d.cts +3 -0
  416. package/dist/chains/sql_db/index.d.ts +3 -2
  417. package/dist/chains/sql_db/index.js +21 -2
  418. package/dist/chains/sql_db/index.js.map +1 -0
  419. package/dist/chains/sql_db/sql_db_chain.cjs +189 -263
  420. package/dist/chains/sql_db/sql_db_chain.cjs.map +1 -0
  421. package/dist/chains/sql_db/sql_db_chain.d.cts +124 -0
  422. package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
  423. package/dist/chains/sql_db/sql_db_chain.d.ts +62 -53
  424. package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
  425. package/dist/chains/sql_db/sql_db_chain.js +185 -256
  426. package/dist/chains/sql_db/sql_db_chain.js.map +1 -0
  427. package/dist/chains/sql_db/sql_db_prompt.cjs +78 -33
  428. package/dist/chains/sql_db/sql_db_prompt.cjs.map +1 -0
  429. package/dist/chains/sql_db/sql_db_prompt.d.cts +44 -0
  430. package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
  431. package/dist/chains/sql_db/sql_db_prompt.d.ts +37 -38
  432. package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
  433. package/dist/chains/sql_db/sql_db_prompt.js +69 -29
  434. package/dist/chains/sql_db/sql_db_prompt.js.map +1 -0
  435. package/dist/chains/summarization/load.cjs +71 -57
  436. package/dist/chains/summarization/load.cjs.map +1 -0
  437. package/dist/chains/summarization/load.d.cts +33 -0
  438. package/dist/chains/summarization/load.d.cts.map +1 -0
  439. package/dist/chains/summarization/load.d.ts +22 -16
  440. package/dist/chains/summarization/load.d.ts.map +1 -0
  441. package/dist/chains/summarization/load.js +70 -52
  442. package/dist/chains/summarization/load.js.map +1 -0
  443. package/dist/chains/summarization/refine_prompts.cjs +11 -7
  444. package/dist/chains/summarization/refine_prompts.cjs.map +1 -0
  445. package/dist/chains/summarization/refine_prompts.js +9 -3
  446. package/dist/chains/summarization/refine_prompts.js.map +1 -0
  447. package/dist/chains/summarization/stuff_prompts.cjs +11 -8
  448. package/dist/chains/summarization/stuff_prompts.cjs.map +1 -0
  449. package/dist/chains/summarization/stuff_prompts.js +9 -4
  450. package/dist/chains/summarization/stuff_prompts.js.map +1 -0
  451. package/dist/chains/transform.cjs +41 -54
  452. package/dist/chains/transform.cjs.map +1 -0
  453. package/dist/chains/transform.d.cts +44 -0
  454. package/dist/chains/transform.d.cts.map +1 -0
  455. package/dist/chains/transform.d.ts +22 -16
  456. package/dist/chains/transform.d.ts.map +1 -0
  457. package/dist/chains/transform.js +41 -50
  458. package/dist/chains/transform.js.map +1 -0
  459. package/dist/chains/vector_db_qa.cjs +93 -122
  460. package/dist/chains/vector_db_qa.cjs.map +1 -0
  461. package/dist/chains/vector_db_qa.d.cts +66 -0
  462. package/dist/chains/vector_db_qa.d.cts.map +1 -0
  463. package/dist/chains/vector_db_qa.d.ts +43 -37
  464. package/dist/chains/vector_db_qa.d.ts.map +1 -0
  465. package/dist/chains/vector_db_qa.js +92 -117
  466. package/dist/chains/vector_db_qa.js.map +1 -0
  467. package/dist/chat_models/universal.cjs +533 -679
  468. package/dist/chat_models/universal.cjs.map +1 -0
  469. package/dist/chat_models/universal.d.cts +213 -0
  470. package/dist/chat_models/universal.d.cts.map +1 -0
  471. package/dist/chat_models/universal.d.ts +187 -94
  472. package/dist/chat_models/universal.d.ts.map +1 -0
  473. package/dist/chat_models/universal.js +525 -642
  474. package/dist/chat_models/universal.js.map +1 -0
  475. package/dist/document.cjs +21 -5
  476. package/dist/document.cjs.map +1 -0
  477. package/dist/document.d.cts +2 -0
  478. package/dist/document.d.ts +2 -1
  479. package/dist/document.js +10 -1
  480. package/dist/document.js.map +1 -0
  481. package/dist/document_loaders/base.cjs +22 -17
  482. package/dist/document_loaders/base.cjs.map +1 -0
  483. package/dist/document_loaders/base.d.cts +1 -0
  484. package/dist/document_loaders/base.d.ts +1 -1
  485. package/dist/document_loaders/base.js +12 -1
  486. package/dist/document_loaders/base.js.map +1 -0
  487. package/dist/document_loaders/fs/buffer.cjs +67 -95
  488. package/dist/document_loaders/fs/buffer.cjs.map +1 -0
  489. package/dist/document_loaders/fs/buffer.d.cts +46 -0
  490. package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
  491. package/dist/document_loaders/fs/buffer.d.ts +37 -31
  492. package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
  493. package/dist/document_loaders/fs/buffer.js +61 -58
  494. package/dist/document_loaders/fs/buffer.js.map +1 -0
  495. package/dist/document_loaders/fs/directory.cjs +112 -164
  496. package/dist/document_loaders/fs/directory.cjs.map +1 -0
  497. package/dist/document_loaders/fs/directory.d.cts +77 -0
  498. package/dist/document_loaders/fs/directory.d.cts.map +1 -0
  499. package/dist/document_loaders/fs/directory.d.ts +47 -39
  500. package/dist/document_loaders/fs/directory.d.ts.map +1 -0
  501. package/dist/document_loaders/fs/directory.js +106 -128
  502. package/dist/document_loaders/fs/directory.js.map +1 -0
  503. package/dist/document_loaders/fs/json.cjs +119 -144
  504. package/dist/document_loaders/fs/json.cjs.map +1 -0
  505. package/dist/document_loaders/fs/json.d.cts +65 -0
  506. package/dist/document_loaders/fs/json.d.cts.map +1 -0
  507. package/dist/document_loaders/fs/json.d.ts +48 -42
  508. package/dist/document_loaders/fs/json.d.ts.map +1 -0
  509. package/dist/document_loaders/fs/json.js +112 -136
  510. package/dist/document_loaders/fs/json.js.map +1 -0
  511. package/dist/document_loaders/fs/multi_file.cjs +80 -96
  512. package/dist/document_loaders/fs/multi_file.cjs.map +1 -0
  513. package/dist/document_loaders/fs/multi_file.d.cts +43 -0
  514. package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
  515. package/dist/document_loaders/fs/multi_file.d.ts +23 -17
  516. package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
  517. package/dist/document_loaders/fs/multi_file.js +73 -91
  518. package/dist/document_loaders/fs/multi_file.js.map +1 -0
  519. package/dist/document_loaders/fs/text.cjs +99 -129
  520. package/dist/document_loaders/fs/text.cjs.map +1 -0
  521. package/dist/document_loaders/fs/text.d.cts +57 -0
  522. package/dist/document_loaders/fs/text.d.cts.map +1 -0
  523. package/dist/document_loaders/fs/text.d.ts +42 -36
  524. package/dist/document_loaders/fs/text.d.ts.map +1 -0
  525. package/dist/document_loaders/fs/text.js +92 -91
  526. package/dist/document_loaders/fs/text.js.map +1 -0
  527. package/dist/embeddings/cache_backed.cjs +138 -141
  528. package/dist/embeddings/cache_backed.cjs.map +1 -0
  529. package/dist/embeddings/cache_backed.d.cts +107 -0
  530. package/dist/embeddings/cache_backed.d.cts.map +1 -0
  531. package/dist/embeddings/cache_backed.d.ts +53 -47
  532. package/dist/embeddings/cache_backed.d.ts.map +1 -0
  533. package/dist/embeddings/cache_backed.js +132 -137
  534. package/dist/embeddings/cache_backed.js.map +1 -0
  535. package/dist/embeddings/fake.cjs +22 -17
  536. package/dist/embeddings/fake.cjs.map +1 -0
  537. package/dist/embeddings/fake.d.cts +1 -0
  538. package/dist/embeddings/fake.d.ts +1 -1
  539. package/dist/embeddings/fake.js +12 -1
  540. package/dist/embeddings/fake.js.map +1 -0
  541. package/dist/evaluation/agents/index.cjs +1 -17
  542. package/dist/evaluation/agents/index.js +1 -1
  543. package/dist/evaluation/agents/prompt.cjs +19 -18
  544. package/dist/evaluation/agents/prompt.cjs.map +1 -0
  545. package/dist/evaluation/agents/prompt.js +17 -15
  546. package/dist/evaluation/agents/prompt.js.map +1 -0
  547. package/dist/evaluation/agents/trajectory.cjs +124 -181
  548. package/dist/evaluation/agents/trajectory.cjs.map +1 -0
  549. package/dist/evaluation/agents/trajectory.d.cts +61 -0
  550. package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
  551. package/dist/evaluation/agents/trajectory.d.ts +48 -42
  552. package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
  553. package/dist/evaluation/agents/trajectory.js +121 -175
  554. package/dist/evaluation/agents/trajectory.js.map +1 -0
  555. package/dist/evaluation/base.cjs +159 -264
  556. package/dist/evaluation/base.cjs.map +1 -0
  557. package/dist/evaluation/base.d.cts +240 -0
  558. package/dist/evaluation/base.d.cts.map +1 -0
  559. package/dist/evaluation/base.d.ts +170 -163
  560. package/dist/evaluation/base.d.ts.map +1 -0
  561. package/dist/evaluation/base.js +156 -255
  562. package/dist/evaluation/base.js.map +1 -0
  563. package/dist/evaluation/comparison/index.cjs +1 -17
  564. package/dist/evaluation/comparison/index.js +1 -1
  565. package/dist/evaluation/comparison/pairwise.cjs +172 -238
  566. package/dist/evaluation/comparison/pairwise.cjs.map +1 -0
  567. package/dist/evaluation/comparison/pairwise.d.cts +56 -0
  568. package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
  569. package/dist/evaluation/comparison/pairwise.d.ts +39 -33
  570. package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
  571. package/dist/evaluation/comparison/pairwise.js +168 -231
  572. package/dist/evaluation/comparison/pairwise.js.map +1 -0
  573. package/dist/evaluation/comparison/prompt.cjs +26 -23
  574. package/dist/evaluation/comparison/prompt.cjs.map +1 -0
  575. package/dist/evaluation/comparison/prompt.js +23 -19
  576. package/dist/evaluation/comparison/prompt.js.map +1 -0
  577. package/dist/evaluation/criteria/criteria.cjs +159 -254
  578. package/dist/evaluation/criteria/criteria.cjs.map +1 -0
  579. package/dist/evaluation/criteria/criteria.d.cts +85 -0
  580. package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
  581. package/dist/evaluation/criteria/criteria.d.ts +69 -57
  582. package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
  583. package/dist/evaluation/criteria/criteria.js +155 -247
  584. package/dist/evaluation/criteria/criteria.js.map +1 -0
  585. package/dist/evaluation/criteria/index.cjs +1 -17
  586. package/dist/evaluation/criteria/index.js +1 -1
  587. package/dist/evaluation/criteria/prompt.cjs +24 -10
  588. package/dist/evaluation/criteria/prompt.cjs.map +1 -0
  589. package/dist/evaluation/criteria/prompt.js +21 -6
  590. package/dist/evaluation/criteria/prompt.js.map +1 -0
  591. package/dist/evaluation/embedding_distance/base.cjs +101 -156
  592. package/dist/evaluation/embedding_distance/base.cjs.map +1 -0
  593. package/dist/evaluation/embedding_distance/base.d.cts +82 -0
  594. package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
  595. package/dist/evaluation/embedding_distance/base.d.ts +46 -41
  596. package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
  597. package/dist/evaluation/embedding_distance/base.js +97 -149
  598. package/dist/evaluation/embedding_distance/base.js.map +1 -0
  599. package/dist/evaluation/embedding_distance/index.cjs +1 -17
  600. package/dist/evaluation/embedding_distance/index.js +1 -1
  601. package/dist/evaluation/index.cjs +54 -23
  602. package/dist/evaluation/index.cjs.map +1 -0
  603. package/dist/evaluation/index.d.cts +8 -0
  604. package/dist/evaluation/index.d.ts +8 -7
  605. package/dist/evaluation/index.js +35 -7
  606. package/dist/evaluation/index.js.map +1 -0
  607. package/dist/evaluation/loader.cjs +59 -56
  608. package/dist/evaluation/loader.cjs.map +1 -0
  609. package/dist/evaluation/loader.d.cts +32 -0
  610. package/dist/evaluation/loader.d.cts.map +1 -0
  611. package/dist/evaluation/loader.d.ts +22 -17
  612. package/dist/evaluation/loader.d.ts.map +1 -0
  613. package/dist/evaluation/loader.js +58 -53
  614. package/dist/evaluation/loader.js.map +1 -0
  615. package/dist/evaluation/qa/eval_chain.cjs +39 -36
  616. package/dist/evaluation/qa/eval_chain.cjs.map +1 -0
  617. package/dist/evaluation/qa/eval_chain.d.cts +22 -0
  618. package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
  619. package/dist/evaluation/qa/eval_chain.d.ts +18 -13
  620. package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
  621. package/dist/evaluation/qa/eval_chain.js +39 -32
  622. package/dist/evaluation/qa/eval_chain.js.map +1 -0
  623. package/dist/evaluation/qa/index.cjs +1 -5
  624. package/dist/evaluation/qa/index.js +1 -1
  625. package/dist/evaluation/qa/prompt.cjs +15 -22
  626. package/dist/evaluation/qa/prompt.cjs.map +1 -0
  627. package/dist/evaluation/qa/prompt.js +13 -18
  628. package/dist/evaluation/qa/prompt.js.map +1 -0
  629. package/dist/evaluation/types.d.cts +40 -0
  630. package/dist/evaluation/types.d.cts.map +1 -0
  631. package/dist/evaluation/types.d.ts +38 -33
  632. package/dist/evaluation/types.d.ts.map +1 -0
  633. package/dist/hub/base.cjs +102 -133
  634. package/dist/hub/base.cjs.map +1 -0
  635. package/dist/hub/base.d.cts +29 -0
  636. package/dist/hub/base.d.cts.map +1 -0
  637. package/dist/hub/base.d.ts +20 -21
  638. package/dist/hub/base.d.ts.map +1 -0
  639. package/dist/hub/base.js +99 -129
  640. package/dist/hub/base.js.map +1 -0
  641. package/dist/hub/index.cjs +46 -50
  642. package/dist/hub/index.cjs.map +1 -0
  643. package/dist/hub/index.d.cts +32 -0
  644. package/dist/hub/index.d.cts.map +1 -0
  645. package/dist/hub/index.d.ts +14 -8
  646. package/dist/hub/index.d.ts.map +1 -0
  647. package/dist/hub/index.js +45 -46
  648. package/dist/hub/index.js.map +1 -0
  649. package/dist/hub/node.cjs +32 -86
  650. package/dist/hub/node.cjs.map +1 -0
  651. package/dist/hub/node.d.cts +23 -0
  652. package/dist/hub/node.d.cts.map +1 -0
  653. package/dist/hub/node.d.ts +11 -6
  654. package/dist/hub/node.d.ts.map +1 -0
  655. package/dist/hub/node.js +31 -50
  656. package/dist/hub/node.js.map +1 -0
  657. package/dist/index.cjs +118 -2
  658. package/dist/index.cjs.map +1 -0
  659. package/dist/index.d.cts +12 -0
  660. package/dist/index.d.ts +12 -0
  661. package/dist/index.js +36 -2
  662. package/dist/index.js.map +1 -0
  663. package/dist/langchain-core/dist/load/map_keys.d.cts +10 -0
  664. package/dist/langchain-core/dist/load/map_keys.d.cts.map +1 -0
  665. package/dist/langchain-core/dist/load/serializable.d.cts +82 -0
  666. package/dist/langchain-core/dist/load/serializable.d.cts.map +1 -0
  667. package/dist/langchain-core/dist/messages/base.d.cts +134 -0
  668. package/dist/langchain-core/dist/messages/base.d.cts.map +1 -0
  669. package/dist/langchain-core/dist/messages/content/base.d.cts +22 -0
  670. package/dist/langchain-core/dist/messages/content/base.d.cts.map +1 -0
  671. package/dist/langchain-core/dist/messages/content/data.d.cts +96 -0
  672. package/dist/langchain-core/dist/messages/content/data.d.cts.map +1 -0
  673. package/dist/langchain-core/dist/messages/content/index.d.cts +102 -0
  674. package/dist/langchain-core/dist/messages/content/index.d.cts.map +1 -0
  675. package/dist/langchain-core/dist/messages/content/multimodal.d.cts +110 -0
  676. package/dist/langchain-core/dist/messages/content/multimodal.d.cts.map +1 -0
  677. package/dist/langchain-core/dist/messages/content/tools.d.cts +153 -0
  678. package/dist/langchain-core/dist/messages/content/tools.d.cts.map +1 -0
  679. package/dist/langchain-core/dist/prompt_values.d.cts +13 -0
  680. package/dist/langchain-core/dist/prompt_values.d.cts.map +1 -0
  681. package/dist/langchain-core/dist/utils/types/index.d.cts +8 -0
  682. package/dist/langchain-core/dist/utils/types/index.d.cts.map +1 -0
  683. package/dist/libs/langchain-core/dist/load/map_keys.d.ts +10 -0
  684. package/dist/libs/langchain-core/dist/load/map_keys.d.ts.map +1 -0
  685. package/dist/libs/langchain-core/dist/load/serializable.d.ts +82 -0
  686. package/dist/libs/langchain-core/dist/load/serializable.d.ts.map +1 -0
  687. package/dist/libs/langchain-core/dist/messages/base.d.ts +134 -0
  688. package/dist/libs/langchain-core/dist/messages/base.d.ts.map +1 -0
  689. package/dist/libs/langchain-core/dist/messages/content/base.d.ts +22 -0
  690. package/dist/libs/langchain-core/dist/messages/content/base.d.ts.map +1 -0
  691. package/dist/libs/langchain-core/dist/messages/content/data.d.ts +96 -0
  692. package/dist/libs/langchain-core/dist/messages/content/data.d.ts.map +1 -0
  693. package/dist/libs/langchain-core/dist/messages/content/index.d.ts +102 -0
  694. package/dist/libs/langchain-core/dist/messages/content/index.d.ts.map +1 -0
  695. package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +110 -0
  696. package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts.map +1 -0
  697. package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +153 -0
  698. package/dist/libs/langchain-core/dist/messages/content/tools.d.ts.map +1 -0
  699. package/dist/libs/langchain-core/dist/prompt_values.d.ts +13 -0
  700. package/dist/libs/langchain-core/dist/prompt_values.d.ts.map +1 -0
  701. package/dist/libs/langchain-core/dist/utils/types/index.d.ts +8 -0
  702. package/dist/libs/langchain-core/dist/utils/types/index.d.ts.map +1 -0
  703. package/dist/load/import_constants.cjs +31 -30
  704. package/dist/load/import_constants.cjs.map +1 -0
  705. package/dist/load/import_constants.js +30 -27
  706. package/dist/load/import_constants.js.map +1 -0
  707. package/dist/load/import_map.cjs +224 -211
  708. package/dist/load/import_map.cjs.map +1 -0
  709. package/dist/load/import_map.js +215 -170
  710. package/dist/load/import_map.js.map +1 -0
  711. package/dist/load/import_type.d.cts +6 -0
  712. package/dist/load/import_type.d.cts.map +1 -0
  713. package/dist/load/import_type.d.ts +6 -5
  714. package/dist/load/import_type.d.ts.map +1 -0
  715. package/dist/load/index.cjs +28 -60
  716. package/dist/load/index.cjs.map +1 -0
  717. package/dist/load/index.d.cts +23 -0
  718. package/dist/load/index.d.cts.map +1 -0
  719. package/dist/load/index.d.ts +13 -1
  720. package/dist/load/index.d.ts.map +1 -0
  721. package/dist/load/index.js +26 -23
  722. package/dist/load/index.js.map +1 -0
  723. package/dist/load/map_keys.d.cts +8 -0
  724. package/dist/load/map_keys.d.cts.map +1 -0
  725. package/dist/load/map_keys.d.ts +7 -2
  726. package/dist/load/map_keys.d.ts.map +1 -0
  727. package/dist/load/serializable.cjs +22 -17
  728. package/dist/load/serializable.cjs.map +1 -0
  729. package/dist/load/serializable.d.cts +10 -0
  730. package/dist/load/serializable.d.cts.map +1 -0
  731. package/dist/load/serializable.d.ts +9 -0
  732. package/dist/load/serializable.d.ts.map +1 -0
  733. package/dist/load/serializable.js +12 -1
  734. package/dist/load/serializable.js.map +1 -0
  735. package/dist/memory/buffer_memory.cjs +78 -94
  736. package/dist/memory/buffer_memory.cjs.map +1 -0
  737. package/dist/memory/buffer_memory.d.cts +67 -0
  738. package/dist/memory/buffer_memory.d.cts.map +1 -0
  739. package/dist/memory/buffer_memory.d.ts +25 -19
  740. package/dist/memory/buffer_memory.d.ts.map +1 -0
  741. package/dist/memory/buffer_memory.js +77 -90
  742. package/dist/memory/buffer_memory.js.map +1 -0
  743. package/dist/memory/buffer_token_memory.cjs +78 -105
  744. package/dist/memory/buffer_token_memory.cjs.map +1 -0
  745. package/dist/memory/buffer_token_memory.d.cts +67 -0
  746. package/dist/memory/buffer_token_memory.d.cts.map +1 -0
  747. package/dist/memory/buffer_token_memory.d.ts +41 -30
  748. package/dist/memory/buffer_token_memory.d.ts.map +1 -0
  749. package/dist/memory/buffer_token_memory.js +77 -101
  750. package/dist/memory/buffer_token_memory.js.map +1 -0
  751. package/dist/memory/buffer_window_memory.cjs +75 -96
  752. package/dist/memory/buffer_window_memory.cjs.map +1 -0
  753. package/dist/memory/buffer_window_memory.d.cts +64 -0
  754. package/dist/memory/buffer_window_memory.d.cts.map +1 -0
  755. package/dist/memory/buffer_window_memory.d.ts +29 -23
  756. package/dist/memory/buffer_window_memory.d.ts.map +1 -0
  757. package/dist/memory/buffer_window_memory.js +74 -92
  758. package/dist/memory/buffer_window_memory.js.map +1 -0
  759. package/dist/memory/chat_memory.cjs +51 -61
  760. package/dist/memory/chat_memory.cjs.map +1 -0
  761. package/dist/memory/chat_memory.d.cts +42 -0
  762. package/dist/memory/chat_memory.d.cts.map +1 -0
  763. package/dist/memory/chat_memory.d.ts +29 -23
  764. package/dist/memory/chat_memory.d.ts.map +1 -0
  765. package/dist/memory/chat_memory.js +46 -58
  766. package/dist/memory/chat_memory.js.map +1 -0
  767. package/dist/memory/combined_memory.cjs +86 -121
  768. package/dist/memory/combined_memory.cjs.map +1 -0
  769. package/dist/memory/combined_memory.d.cts +60 -0
  770. package/dist/memory/combined_memory.d.cts.map +1 -0
  771. package/dist/memory/combined_memory.d.ts +47 -41
  772. package/dist/memory/combined_memory.d.ts.map +1 -0
  773. package/dist/memory/combined_memory.js +86 -117
  774. package/dist/memory/combined_memory.js.map +1 -0
  775. package/dist/memory/entity_memory.cjs +142 -200
  776. package/dist/memory/entity_memory.cjs.map +1 -0
  777. package/dist/memory/entity_memory.d.cts +99 -0
  778. package/dist/memory/entity_memory.d.cts.map +1 -0
  779. package/dist/memory/entity_memory.d.ts +58 -47
  780. package/dist/memory/entity_memory.d.ts.map +1 -0
  781. package/dist/memory/entity_memory.js +140 -195
  782. package/dist/memory/entity_memory.js.map +1 -0
  783. package/dist/memory/index.cjs +85 -31
  784. package/dist/memory/index.cjs.map +1 -0
  785. package/dist/memory/index.d.cts +14 -0
  786. package/dist/memory/index.d.ts +14 -12
  787. package/dist/memory/index.js +39 -12
  788. package/dist/memory/index.js.map +1 -0
  789. package/dist/memory/prompt.cjs +35 -24
  790. package/dist/memory/prompt.cjs.map +1 -0
  791. package/dist/memory/prompt.d.cts +12 -0
  792. package/dist/memory/prompt.d.cts.map +1 -0
  793. package/dist/memory/prompt.d.ts +11 -22
  794. package/dist/memory/prompt.d.ts.map +1 -0
  795. package/dist/memory/prompt.js +30 -20
  796. package/dist/memory/prompt.js.map +1 -0
  797. package/dist/memory/stores/entity/base.cjs +11 -9
  798. package/dist/memory/stores/entity/base.cjs.map +1 -0
  799. package/dist/memory/stores/entity/base.d.cts +18 -0
  800. package/dist/memory/stores/entity/base.d.cts.map +1 -0
  801. package/dist/memory/stores/entity/base.d.ts +12 -6
  802. package/dist/memory/stores/entity/base.d.ts.map +1 -0
  803. package/dist/memory/stores/entity/base.js +10 -5
  804. package/dist/memory/stores/entity/base.js.map +1 -0
  805. package/dist/memory/stores/entity/in_memory.cjs +62 -65
  806. package/dist/memory/stores/entity/in_memory.cjs.map +1 -0
  807. package/dist/memory/stores/entity/in_memory.js +62 -61
  808. package/dist/memory/stores/entity/in_memory.js.map +1 -0
  809. package/dist/memory/summary.cjs +124 -151
  810. package/dist/memory/summary.cjs.map +1 -0
  811. package/dist/memory/summary.d.cts +101 -0
  812. package/dist/memory/summary.d.cts.map +1 -0
  813. package/dist/memory/summary.d.ts +53 -48
  814. package/dist/memory/summary.d.ts.map +1 -0
  815. package/dist/memory/summary.js +121 -145
  816. package/dist/memory/summary.js.map +1 -0
  817. package/dist/memory/summary_buffer.cjs +115 -137
  818. package/dist/memory/summary_buffer.cjs.map +1 -0
  819. package/dist/memory/summary_buffer.d.cts +90 -0
  820. package/dist/memory/summary_buffer.d.cts.map +1 -0
  821. package/dist/memory/summary_buffer.d.ts +44 -38
  822. package/dist/memory/summary_buffer.d.ts.map +1 -0
  823. package/dist/memory/summary_buffer.js +114 -133
  824. package/dist/memory/summary_buffer.js.map +1 -0
  825. package/dist/memory/vector_store.cjs +85 -116
  826. package/dist/memory/vector_store.cjs.map +1 -0
  827. package/dist/memory/vector_store.d.cts +81 -0
  828. package/dist/memory/vector_store.d.cts.map +1 -0
  829. package/dist/memory/vector_store.d.ts +41 -37
  830. package/dist/memory/vector_store.d.ts.map +1 -0
  831. package/dist/memory/vector_store.js +84 -112
  832. package/dist/memory/vector_store.js.map +1 -0
  833. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +248 -0
  834. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +1 -0
  835. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +244 -0
  836. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +1 -0
  837. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +3040 -0
  838. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs.map +1 -0
  839. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +3039 -0
  840. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js.map +1 -0
  841. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +12 -0
  842. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs.map +1 -0
  843. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +12 -0
  844. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js.map +1 -0
  845. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs +71 -0
  846. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.cjs.map +1 -0
  847. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js +38 -0
  848. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/constants.js.map +1 -0
  849. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs +221 -0
  850. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.cjs.map +1 -0
  851. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js +221 -0
  852. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/experimental/otel/translator.js.map +1 -0
  853. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +11 -0
  854. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs.map +1 -0
  855. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +11 -0
  856. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js.map +1 -0
  857. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs +701 -0
  858. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.cjs.map +1 -0
  859. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js +700 -0
  860. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/run_trees.js.map +1 -0
  861. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs +7 -0
  862. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.cjs.map +1 -0
  863. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js +6 -0
  864. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/constants.js.map +1 -0
  865. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs +29 -0
  866. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.cjs.map +1 -0
  867. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js +28 -0
  868. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/fetch.js.map +1 -0
  869. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs +115 -0
  870. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.cjs.map +1 -0
  871. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js +113 -0
  872. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/singletons/otel.js.map +1 -0
  873. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs +14 -0
  874. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.cjs.map +1 -0
  875. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js +13 -0
  876. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/_uuid.js.map +1 -0
  877. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs +94 -0
  878. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.cjs.map +1 -0
  879. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js +94 -0
  880. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/async_caller.js.map +1 -0
  881. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs +140 -0
  882. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.cjs.map +1 -0
  883. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js +135 -0
  884. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/env.js.map +1 -0
  885. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs +89 -0
  886. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.cjs.map +1 -0
  887. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js +86 -0
  888. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/error.js.map +1 -0
  889. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +140 -0
  890. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.map +1 -0
  891. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +140 -0
  892. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js.map +1 -0
  893. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs +18 -0
  894. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.cjs.map +1 -0
  895. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js +16 -0
  896. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/messages.js.map +1 -0
  897. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs +10 -0
  898. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.cjs.map +1 -0
  899. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js +10 -0
  900. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/project.js.map +1 -0
  901. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs +30 -0
  902. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.cjs.map +1 -0
  903. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js +30 -0
  904. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/prompts.js.map +1 -0
  905. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs +13 -0
  906. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.cjs.map +1 -0
  907. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js +12 -0
  908. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/utils/warn.js.map +1 -0
  909. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +6 -0
  910. package/dist/node_modules/.pnpm/langsmith@0.3.64_@opentelemetry_api@1.9.0_openai@5.11.0_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +6 -0
  911. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +27 -0
  912. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +1 -0
  913. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +23 -0
  914. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +1 -0
  915. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +267 -0
  916. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +1 -0
  917. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +263 -0
  918. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +1 -0
  919. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +32 -0
  920. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +1 -0
  921. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +28 -0
  922. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +1 -0
  923. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +49 -0
  924. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +1 -0
  925. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +45 -0
  926. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +1 -0
  927. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +52 -0
  928. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +1 -0
  929. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +48 -0
  930. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +1 -0
  931. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +90 -0
  932. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +1 -0
  933. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +86 -0
  934. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +1 -0
  935. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +294 -0
  936. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +1 -0
  937. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +290 -0
  938. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +1 -0
  939. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +191 -0
  940. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +1 -0
  941. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +187 -0
  942. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +1 -0
  943. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +24 -0
  944. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +1 -0
  945. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +20 -0
  946. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +1 -0
  947. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +51 -0
  948. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +1 -0
  949. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +47 -0
  950. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +1 -0
  951. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +48 -0
  952. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +1 -0
  953. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +44 -0
  954. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +1 -0
  955. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +25 -0
  956. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +1 -0
  957. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +21 -0
  958. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +1 -0
  959. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +21 -0
  960. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +1 -0
  961. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +17 -0
  962. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +1 -0
  963. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +21 -0
  964. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +1 -0
  965. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +17 -0
  966. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +1 -0
  967. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +43 -0
  968. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +1 -0
  969. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +39 -0
  970. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +1 -0
  971. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +21 -0
  972. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +1 -0
  973. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +17 -0
  974. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +1 -0
  975. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +21 -0
  976. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +1 -0
  977. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +17 -0
  978. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +1 -0
  979. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +21 -0
  980. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +1 -0
  981. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +17 -0
  982. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +1 -0
  983. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +32 -0
  984. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +1 -0
  985. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +28 -0
  986. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +1 -0
  987. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +21 -0
  988. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +1 -0
  989. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +17 -0
  990. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +1 -0
  991. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +21 -0
  992. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +1 -0
  993. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +17 -0
  994. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +1 -0
  995. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +21 -0
  996. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +1 -0
  997. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +17 -0
  998. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +1 -0
  999. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +21 -0
  1000. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +1 -0
  1001. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +17 -0
  1002. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +1 -0
  1003. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +21 -0
  1004. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +1 -0
  1005. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +17 -0
  1006. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +1 -0
  1007. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +29 -0
  1008. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +1 -0
  1009. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +25 -0
  1010. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +1 -0
  1011. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +21 -0
  1012. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +1 -0
  1013. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +17 -0
  1014. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +1 -0
  1015. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +24 -0
  1016. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +1 -0
  1017. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +20 -0
  1018. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +1 -0
  1019. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +21 -0
  1020. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +1 -0
  1021. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +17 -0
  1022. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +1 -0
  1023. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +21 -0
  1024. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +1 -0
  1025. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +17 -0
  1026. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +1 -0
  1027. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +28 -0
  1028. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +1 -0
  1029. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +24 -0
  1030. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +1 -0
  1031. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +21 -0
  1032. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +1 -0
  1033. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +17 -0
  1034. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +1 -0
  1035. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +24 -0
  1036. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +1 -0
  1037. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +20 -0
  1038. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +1 -0
  1039. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +146 -0
  1040. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +1 -0
  1041. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +142 -0
  1042. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +1 -0
  1043. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +41 -0
  1044. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +1 -0
  1045. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +37 -0
  1046. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +1 -0
  1047. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +19 -0
  1048. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +1 -0
  1049. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +15 -0
  1050. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +1 -0
  1051. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +32 -0
  1052. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +1 -0
  1053. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +28 -0
  1054. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +1 -0
  1055. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +47 -0
  1056. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +1 -0
  1057. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +43 -0
  1058. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +1 -0
  1059. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +25 -0
  1060. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +1 -0
  1061. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +21 -0
  1062. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +1 -0
  1063. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +94 -0
  1064. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +1 -0
  1065. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +90 -0
  1066. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +1 -0
  1067. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +21 -0
  1068. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +1 -0
  1069. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +17 -0
  1070. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +1 -0
  1071. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +25 -0
  1072. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +1 -0
  1073. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +21 -0
  1074. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +1 -0
  1075. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +21 -0
  1076. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +1 -0
  1077. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +17 -0
  1078. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +1 -0
  1079. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +41 -0
  1080. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +1 -0
  1081. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +37 -0
  1082. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +1 -0
  1083. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +41 -0
  1084. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +1 -0
  1085. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +37 -0
  1086. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +1 -0
  1087. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +55 -0
  1088. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +1 -0
  1089. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +51 -0
  1090. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +1 -0
  1091. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +74 -0
  1092. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +1 -0
  1093. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +70 -0
  1094. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +1 -0
  1095. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +48 -0
  1096. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +1 -0
  1097. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +44 -0
  1098. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +1 -0
  1099. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +112 -0
  1100. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +1 -0
  1101. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +108 -0
  1102. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +1 -0
  1103. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +21 -0
  1104. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +1 -0
  1105. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +17 -0
  1106. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +1 -0
  1107. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +27 -0
  1108. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +1 -0
  1109. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +23 -0
  1110. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +1 -0
  1111. package/dist/output_parsers/combining.cjs +59 -90
  1112. package/dist/output_parsers/combining.cjs.map +1 -0
  1113. package/dist/output_parsers/combining.d.cts +46 -0
  1114. package/dist/output_parsers/combining.d.cts.map +1 -0
  1115. package/dist/output_parsers/combining.d.ts +33 -26
  1116. package/dist/output_parsers/combining.d.ts.map +1 -0
  1117. package/dist/output_parsers/combining.js +58 -86
  1118. package/dist/output_parsers/combining.js.map +1 -0
  1119. package/dist/output_parsers/datetime.cjs +44 -61
  1120. package/dist/output_parsers/datetime.cjs.map +1 -0
  1121. package/dist/output_parsers/datetime.d.cts +33 -0
  1122. package/dist/output_parsers/datetime.d.cts.map +1 -0
  1123. package/dist/output_parsers/datetime.d.ts +27 -21
  1124. package/dist/output_parsers/datetime.d.ts.map +1 -0
  1125. package/dist/output_parsers/datetime.js +44 -58
  1126. package/dist/output_parsers/datetime.js.map +1 -0
  1127. package/dist/output_parsers/expression.cjs +84 -102
  1128. package/dist/output_parsers/expression.cjs.map +1 -0
  1129. package/dist/output_parsers/expression.d.cts +53 -0
  1130. package/dist/output_parsers/expression.d.cts.map +1 -0
  1131. package/dist/output_parsers/expression.d.ts +34 -28
  1132. package/dist/output_parsers/expression.d.ts.map +1 -0
  1133. package/dist/output_parsers/expression.js +77 -83
  1134. package/dist/output_parsers/expression.js.map +1 -0
  1135. package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs +36 -42
  1136. package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.cjs.map +1 -0
  1137. package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js +37 -39
  1138. package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.js.map +1 -0
  1139. package/dist/output_parsers/expression_type_handlers/base.cjs +127 -163
  1140. package/dist/output_parsers/expression_type_handlers/base.cjs.map +1 -0
  1141. package/dist/output_parsers/expression_type_handlers/base.d.cts +108 -0
  1142. package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
  1143. package/dist/output_parsers/expression_type_handlers/base.d.ts +97 -89
  1144. package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
  1145. package/dist/output_parsers/expression_type_handlers/base.js +126 -125
  1146. package/dist/output_parsers/expression_type_handlers/base.js.map +1 -0
  1147. package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs +36 -40
  1148. package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.cjs.map +1 -0
  1149. package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js +37 -37
  1150. package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.js.map +1 -0
  1151. package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs +62 -72
  1152. package/dist/output_parsers/expression_type_handlers/call_expression_handler.cjs.map +1 -0
  1153. package/dist/output_parsers/expression_type_handlers/call_expression_handler.js +63 -69
  1154. package/dist/output_parsers/expression_type_handlers/call_expression_handler.js.map +1 -0
  1155. package/dist/output_parsers/expression_type_handlers/factory.cjs +64 -72
  1156. package/dist/output_parsers/expression_type_handlers/factory.cjs.map +1 -0
  1157. package/dist/output_parsers/expression_type_handlers/factory.d.cts +35 -0
  1158. package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
  1159. package/dist/output_parsers/expression_type_handlers/factory.d.ts +26 -19
  1160. package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
  1161. package/dist/output_parsers/expression_type_handlers/factory.js +56 -60
  1162. package/dist/output_parsers/expression_type_handlers/factory.js.map +1 -0
  1163. package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs +18 -15
  1164. package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.cjs.map +1 -0
  1165. package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js +17 -12
  1166. package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.js.map +1 -0
  1167. package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs +38 -39
  1168. package/dist/output_parsers/expression_type_handlers/identifier_handler.cjs.map +1 -0
  1169. package/dist/output_parsers/expression_type_handlers/identifier_handler.js +39 -36
  1170. package/dist/output_parsers/expression_type_handlers/identifier_handler.js.map +1 -0
  1171. package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs +46 -60
  1172. package/dist/output_parsers/expression_type_handlers/member_expression_handler.cjs.map +1 -0
  1173. package/dist/output_parsers/expression_type_handlers/member_expression_handler.js +47 -57
  1174. package/dist/output_parsers/expression_type_handlers/member_expression_handler.js.map +1 -0
  1175. package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs +34 -38
  1176. package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.cjs.map +1 -0
  1177. package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js +35 -35
  1178. package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.js.map +1 -0
  1179. package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs +38 -43
  1180. package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.cjs.map +1 -0
  1181. package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js +38 -39
  1182. package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.js.map +1 -0
  1183. package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs +43 -51
  1184. package/dist/output_parsers/expression_type_handlers/property_assignment_handler.cjs.map +1 -0
  1185. package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js +44 -48
  1186. package/dist/output_parsers/expression_type_handlers/property_assignment_handler.js.map +1 -0
  1187. package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs +35 -36
  1188. package/dist/output_parsers/expression_type_handlers/string_literal_handler.cjs.map +1 -0
  1189. package/dist/output_parsers/expression_type_handlers/string_literal_handler.js +36 -33
  1190. package/dist/output_parsers/expression_type_handlers/string_literal_handler.js.map +1 -0
  1191. package/dist/output_parsers/expression_type_handlers/types.d.cts +95 -0
  1192. package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
  1193. package/dist/output_parsers/expression_type_handlers/types.d.ts +36 -32
  1194. package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
  1195. package/dist/output_parsers/fix.cjs +88 -100
  1196. package/dist/output_parsers/fix.cjs.map +1 -0
  1197. package/dist/output_parsers/fix.d.cts +60 -0
  1198. package/dist/output_parsers/fix.d.cts.map +1 -0
  1199. package/dist/output_parsers/fix.d.ts +49 -42
  1200. package/dist/output_parsers/fix.d.ts.map +1 -0
  1201. package/dist/output_parsers/fix.js +86 -95
  1202. package/dist/output_parsers/fix.js.map +1 -0
  1203. package/dist/output_parsers/http_response.cjs +51 -80
  1204. package/dist/output_parsers/http_response.cjs.map +1 -0
  1205. package/dist/output_parsers/http_response.d.cts +33 -0
  1206. package/dist/output_parsers/http_response.d.cts.map +1 -0
  1207. package/dist/output_parsers/http_response.d.ts +26 -21
  1208. package/dist/output_parsers/http_response.d.ts.map +1 -0
  1209. package/dist/output_parsers/http_response.js +51 -77
  1210. package/dist/output_parsers/http_response.js.map +1 -0
  1211. package/dist/output_parsers/index.cjs +74 -31
  1212. package/dist/output_parsers/index.cjs.map +1 -0
  1213. package/dist/output_parsers/index.d.cts +11 -0
  1214. package/dist/output_parsers/index.d.ts +11 -11
  1215. package/dist/output_parsers/index.js +37 -11
  1216. package/dist/output_parsers/index.js.map +1 -0
  1217. package/dist/output_parsers/noop.cjs +41 -47
  1218. package/dist/output_parsers/noop.cjs.map +1 -0
  1219. package/dist/output_parsers/noop.js +40 -43
  1220. package/dist/output_parsers/noop.js.map +1 -0
  1221. package/dist/output_parsers/openai_functions.cjs +141 -206
  1222. package/dist/output_parsers/openai_functions.cjs.map +1 -0
  1223. package/dist/output_parsers/openai_functions.d.cts +85 -0
  1224. package/dist/output_parsers/openai_functions.d.cts.map +1 -0
  1225. package/dist/output_parsers/openai_functions.d.ts +64 -58
  1226. package/dist/output_parsers/openai_functions.d.ts.map +1 -0
  1227. package/dist/output_parsers/openai_functions.js +139 -201
  1228. package/dist/output_parsers/openai_functions.js.map +1 -0
  1229. package/dist/output_parsers/openai_tools.cjs +86 -140
  1230. package/dist/output_parsers/openai_tools.cjs.map +1 -0
  1231. package/dist/output_parsers/openai_tools.d.cts +69 -0
  1232. package/dist/output_parsers/openai_tools.d.cts.map +1 -0
  1233. package/dist/output_parsers/openai_tools.d.ts +51 -42
  1234. package/dist/output_parsers/openai_tools.d.ts.map +1 -0
  1235. package/dist/output_parsers/openai_tools.js +84 -135
  1236. package/dist/output_parsers/openai_tools.js.map +1 -0
  1237. package/dist/output_parsers/prompts.cjs +10 -7
  1238. package/dist/output_parsers/prompts.cjs.map +1 -0
  1239. package/dist/output_parsers/prompts.js +8 -3
  1240. package/dist/output_parsers/prompts.js.map +1 -0
  1241. package/dist/output_parsers/regex.cjs +72 -106
  1242. package/dist/output_parsers/regex.cjs.map +1 -0
  1243. package/dist/output_parsers/regex.d.cts +49 -0
  1244. package/dist/output_parsers/regex.d.cts.map +1 -0
  1245. package/dist/output_parsers/regex.d.ts +38 -33
  1246. package/dist/output_parsers/regex.d.ts.map +1 -0
  1247. package/dist/output_parsers/regex.js +72 -103
  1248. package/dist/output_parsers/regex.js.map +1 -0
  1249. package/dist/output_parsers/router.cjs +38 -45
  1250. package/dist/output_parsers/router.cjs.map +1 -0
  1251. package/dist/output_parsers/router.d.cts +36 -0
  1252. package/dist/output_parsers/router.d.cts.map +1 -0
  1253. package/dist/output_parsers/router.d.ts +23 -17
  1254. package/dist/output_parsers/router.d.ts.map +1 -0
  1255. package/dist/output_parsers/router.js +37 -41
  1256. package/dist/output_parsers/router.js.map +1 -0
  1257. package/dist/output_parsers/structured.cjs +148 -180
  1258. package/dist/output_parsers/structured.cjs.map +1 -0
  1259. package/dist/output_parsers/structured.d.cts +97 -0
  1260. package/dist/output_parsers/structured.d.cts.map +1 -0
  1261. package/dist/output_parsers/structured.d.ts +82 -74
  1262. package/dist/output_parsers/structured.d.ts.map +1 -0
  1263. package/dist/output_parsers/structured.js +144 -173
  1264. package/dist/output_parsers/structured.js.map +1 -0
  1265. package/dist/retrievers/contextual_compression.cjs +51 -51
  1266. package/dist/retrievers/contextual_compression.cjs.map +1 -0
  1267. package/dist/retrievers/contextual_compression.d.cts +42 -0
  1268. package/dist/retrievers/contextual_compression.d.cts.map +1 -0
  1269. package/dist/retrievers/contextual_compression.d.ts +19 -13
  1270. package/dist/retrievers/contextual_compression.d.ts.map +1 -0
  1271. package/dist/retrievers/contextual_compression.js +46 -48
  1272. package/dist/retrievers/contextual_compression.js.map +1 -0
  1273. package/dist/retrievers/document_compressors/chain_extract.cjs +97 -104
  1274. package/dist/retrievers/document_compressors/chain_extract.cjs.map +1 -0
  1275. package/dist/retrievers/document_compressors/chain_extract.d.cts +47 -0
  1276. package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
  1277. package/dist/retrievers/document_compressors/chain_extract.d.ts +35 -26
  1278. package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
  1279. package/dist/retrievers/document_compressors/chain_extract.js +89 -98
  1280. package/dist/retrievers/document_compressors/chain_extract.js.map +1 -0
  1281. package/dist/retrievers/document_compressors/chain_extract_prompt.cjs +5 -3
  1282. package/dist/retrievers/document_compressors/chain_extract_prompt.cjs.map +1 -0
  1283. package/dist/retrievers/document_compressors/chain_extract_prompt.js +6 -1
  1284. package/dist/retrievers/document_compressors/chain_extract_prompt.js.map +1 -0
  1285. package/dist/retrievers/document_compressors/embeddings_filter.cjs +72 -89
  1286. package/dist/retrievers/document_compressors/embeddings_filter.cjs.map +1 -0
  1287. package/dist/retrievers/document_compressors/embeddings_filter.d.cts +58 -0
  1288. package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
  1289. package/dist/retrievers/document_compressors/embeddings_filter.d.ts +35 -29
  1290. package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
  1291. package/dist/retrievers/document_compressors/embeddings_filter.js +66 -85
  1292. package/dist/retrievers/document_compressors/embeddings_filter.js.map +1 -0
  1293. package/dist/retrievers/document_compressors/index.cjs +66 -64
  1294. package/dist/retrievers/document_compressors/index.cjs.map +1 -0
  1295. package/dist/retrievers/document_compressors/index.d.cts +61 -0
  1296. package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
  1297. package/dist/retrievers/document_compressors/index.d.ts +25 -19
  1298. package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
  1299. package/dist/retrievers/document_compressors/index.js +60 -60
  1300. package/dist/retrievers/document_compressors/index.js.map +1 -0
  1301. package/dist/retrievers/ensemble.cjs +74 -89
  1302. package/dist/retrievers/ensemble.cjs.map +1 -0
  1303. package/dist/retrievers/ensemble.d.cts +39 -0
  1304. package/dist/retrievers/ensemble.d.cts.map +1 -0
  1305. package/dist/retrievers/ensemble.d.ts +31 -26
  1306. package/dist/retrievers/ensemble.d.ts.map +1 -0
  1307. package/dist/retrievers/ensemble.js +68 -85
  1308. package/dist/retrievers/ensemble.js.map +1 -0
  1309. package/dist/retrievers/hyde.cjs +108 -111
  1310. package/dist/retrievers/hyde.cjs.map +1 -0
  1311. package/dist/retrievers/hyde.d.cts +61 -0
  1312. package/dist/retrievers/hyde.d.cts.map +1 -0
  1313. package/dist/retrievers/hyde.d.ts +20 -14
  1314. package/dist/retrievers/hyde.d.ts.map +1 -0
  1315. package/dist/retrievers/hyde.js +101 -106
  1316. package/dist/retrievers/hyde.js.map +1 -0
  1317. package/dist/retrievers/matryoshka_retriever.cjs +114 -146
  1318. package/dist/retrievers/matryoshka_retriever.cjs.map +1 -0
  1319. package/dist/retrievers/matryoshka_retriever.d.cts +99 -0
  1320. package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
  1321. package/dist/retrievers/matryoshka_retriever.d.ts +70 -64
  1322. package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
  1323. package/dist/retrievers/matryoshka_retriever.js +109 -143
  1324. package/dist/retrievers/matryoshka_retriever.js.map +1 -0
  1325. package/dist/retrievers/multi_query.cjs +133 -156
  1326. package/dist/retrievers/multi_query.cjs.map +1 -0
  1327. package/dist/retrievers/multi_query.d.cts +59 -0
  1328. package/dist/retrievers/multi_query.d.cts.map +1 -0
  1329. package/dist/retrievers/multi_query.d.ts +39 -33
  1330. package/dist/retrievers/multi_query.d.ts.map +1 -0
  1331. package/dist/retrievers/multi_query.js +127 -152
  1332. package/dist/retrievers/multi_query.js.map +1 -0
  1333. package/dist/retrievers/multi_vector.cjs +65 -92
  1334. package/dist/retrievers/multi_vector.cjs.map +1 -0
  1335. package/dist/retrievers/multi_vector.d.cts +51 -0
  1336. package/dist/retrievers/multi_vector.d.cts.map +1 -0
  1337. package/dist/retrievers/multi_vector.d.ts +27 -21
  1338. package/dist/retrievers/multi_vector.d.ts.map +1 -0
  1339. package/dist/retrievers/multi_vector.js +59 -88
  1340. package/dist/retrievers/multi_vector.js.map +1 -0
  1341. package/dist/retrievers/parent_document.cjs +135 -226
  1342. package/dist/retrievers/parent_document.cjs.map +1 -0
  1343. package/dist/retrievers/parent_document.d.cts +92 -0
  1344. package/dist/retrievers/parent_document.d.cts.map +1 -0
  1345. package/dist/retrievers/parent_document.d.ts +55 -49
  1346. package/dist/retrievers/parent_document.d.ts.map +1 -0
  1347. package/dist/retrievers/parent_document.js +129 -189
  1348. package/dist/retrievers/parent_document.js.map +1 -0
  1349. package/dist/retrievers/score_threshold.cjs +42 -44
  1350. package/dist/retrievers/score_threshold.cjs.map +1 -0
  1351. package/dist/retrievers/score_threshold.d.cts +20 -0
  1352. package/dist/retrievers/score_threshold.d.cts.map +1 -0
  1353. package/dist/retrievers/score_threshold.d.ts +16 -11
  1354. package/dist/retrievers/score_threshold.d.ts.map +1 -0
  1355. package/dist/retrievers/score_threshold.js +37 -41
  1356. package/dist/retrievers/score_threshold.js.map +1 -0
  1357. package/dist/retrievers/self_query/functional.cjs +21 -5
  1358. package/dist/retrievers/self_query/functional.cjs.map +1 -0
  1359. package/dist/retrievers/self_query/functional.d.cts +2 -0
  1360. package/dist/retrievers/self_query/functional.d.ts +2 -1
  1361. package/dist/retrievers/self_query/functional.js +10 -1
  1362. package/dist/retrievers/self_query/functional.js.map +1 -0
  1363. package/dist/retrievers/self_query/index.cjs +128 -124
  1364. package/dist/retrievers/self_query/index.cjs.map +1 -0
  1365. package/dist/retrievers/self_query/index.d.cts +79 -0
  1366. package/dist/retrievers/self_query/index.d.cts.map +1 -0
  1367. package/dist/retrievers/self_query/index.d.ts +53 -48
  1368. package/dist/retrievers/self_query/index.d.ts.map +1 -0
  1369. package/dist/retrievers/self_query/index.js +105 -119
  1370. package/dist/retrievers/self_query/index.js.map +1 -0
  1371. package/dist/retrievers/time_weighted.cjs +234 -254
  1372. package/dist/retrievers/time_weighted.cjs.map +1 -0
  1373. package/dist/retrievers/time_weighted.d.cts +142 -0
  1374. package/dist/retrievers/time_weighted.d.cts.map +1 -0
  1375. package/dist/retrievers/time_weighted.d.ts +115 -114
  1376. package/dist/retrievers/time_weighted.d.ts.map +1 -0
  1377. package/dist/retrievers/time_weighted.js +226 -250
  1378. package/dist/retrievers/time_weighted.js.map +1 -0
  1379. package/dist/sql_db.cjs +117 -196
  1380. package/dist/sql_db.cjs.map +1 -0
  1381. package/dist/sql_db.d.cts +60 -0
  1382. package/dist/sql_db.d.cts.map +1 -0
  1383. package/dist/sql_db.d.ts +44 -38
  1384. package/dist/sql_db.d.ts.map +1 -0
  1385. package/dist/sql_db.js +111 -159
  1386. package/dist/sql_db.js.map +1 -0
  1387. package/dist/storage/encoder_backed.cjs +91 -102
  1388. package/dist/storage/encoder_backed.cjs.map +1 -0
  1389. package/dist/storage/encoder_backed.d.cts +54 -0
  1390. package/dist/storage/encoder_backed.d.cts.map +1 -0
  1391. package/dist/storage/encoder_backed.d.ts +42 -35
  1392. package/dist/storage/encoder_backed.d.ts.map +1 -0
  1393. package/dist/storage/encoder_backed.js +83 -96
  1394. package/dist/storage/encoder_backed.js.map +1 -0
  1395. package/dist/storage/file_system.cjs +155 -214
  1396. package/dist/storage/file_system.cjs.map +1 -0
  1397. package/dist/storage/file_system.d.cts +83 -0
  1398. package/dist/storage/file_system.d.cts.map +1 -0
  1399. package/dist/storage/file_system.d.ts +50 -53
  1400. package/dist/storage/file_system.d.ts.map +1 -0
  1401. package/dist/storage/file_system.js +149 -177
  1402. package/dist/storage/file_system.js.map +1 -0
  1403. package/dist/storage/in_memory.cjs +21 -5
  1404. package/dist/storage/in_memory.cjs.map +1 -0
  1405. package/dist/storage/in_memory.d.cts +2 -0
  1406. package/dist/storage/in_memory.d.ts +2 -1
  1407. package/dist/storage/in_memory.js +10 -1
  1408. package/dist/storage/in_memory.js.map +1 -0
  1409. package/dist/stores/doc/base.cjs +18 -8
  1410. package/dist/stores/doc/base.cjs.map +1 -0
  1411. package/dist/stores/doc/base.d.cts +15 -0
  1412. package/dist/stores/doc/base.d.cts.map +1 -0
  1413. package/dist/stores/doc/base.d.ts +9 -3
  1414. package/dist/stores/doc/base.d.ts.map +1 -0
  1415. package/dist/stores/doc/base.js +13 -5
  1416. package/dist/stores/doc/base.js.map +1 -0
  1417. package/dist/stores/doc/in_memory.cjs +91 -104
  1418. package/dist/stores/doc/in_memory.cjs.map +1 -0
  1419. package/dist/stores/doc/in_memory.d.cts +53 -0
  1420. package/dist/stores/doc/in_memory.d.cts.map +1 -0
  1421. package/dist/stores/doc/in_memory.d.ts +42 -35
  1422. package/dist/stores/doc/in_memory.d.ts.map +1 -0
  1423. package/dist/stores/doc/in_memory.js +84 -99
  1424. package/dist/stores/doc/in_memory.js.map +1 -0
  1425. package/dist/stores/file/base.cjs +11 -9
  1426. package/dist/stores/file/base.cjs.map +1 -0
  1427. package/dist/stores/file/base.d.cts +15 -0
  1428. package/dist/stores/file/base.d.cts.map +1 -0
  1429. package/dist/stores/file/base.d.ts +9 -3
  1430. package/dist/stores/file/base.d.ts.map +1 -0
  1431. package/dist/stores/file/base.js +10 -5
  1432. package/dist/stores/file/base.js.map +1 -0
  1433. package/dist/stores/file/in_memory.cjs +51 -50
  1434. package/dist/stores/file/in_memory.cjs.map +1 -0
  1435. package/dist/stores/file/in_memory.d.cts +33 -0
  1436. package/dist/stores/file/in_memory.d.cts.map +1 -0
  1437. package/dist/stores/file/in_memory.d.ts +24 -18
  1438. package/dist/stores/file/in_memory.d.ts.map +1 -0
  1439. package/dist/stores/file/in_memory.js +45 -46
  1440. package/dist/stores/file/in_memory.js.map +1 -0
  1441. package/dist/stores/file/node.cjs +50 -77
  1442. package/dist/stores/file/node.cjs.map +1 -0
  1443. package/dist/stores/file/node.d.cts +29 -0
  1444. package/dist/stores/file/node.d.cts.map +1 -0
  1445. package/dist/stores/file/node.d.ts +23 -17
  1446. package/dist/stores/file/node.d.ts.map +1 -0
  1447. package/dist/stores/file/node.js +43 -39
  1448. package/dist/stores/file/node.js.map +1 -0
  1449. package/dist/stores/message/in_memory.cjs +21 -5
  1450. package/dist/stores/message/in_memory.cjs.map +1 -0
  1451. package/dist/stores/message/in_memory.d.cts +2 -0
  1452. package/dist/stores/message/in_memory.d.ts +2 -1
  1453. package/dist/stores/message/in_memory.js +10 -1
  1454. package/dist/stores/message/in_memory.js.map +1 -0
  1455. package/dist/text_splitter.cjs +22 -17
  1456. package/dist/text_splitter.cjs.map +1 -0
  1457. package/dist/text_splitter.d.cts +1 -0
  1458. package/dist/text_splitter.d.ts +1 -1
  1459. package/dist/text_splitter.js +12 -1
  1460. package/dist/text_splitter.js.map +1 -0
  1461. package/dist/tools/chain.cjs +34 -28
  1462. package/dist/tools/chain.cjs.map +1 -0
  1463. package/dist/tools/chain.d.cts +32 -0
  1464. package/dist/tools/chain.d.cts.map +1 -0
  1465. package/dist/tools/chain.d.ts +16 -7
  1466. package/dist/tools/chain.d.ts.map +1 -0
  1467. package/dist/tools/chain.js +28 -24
  1468. package/dist/tools/chain.js.map +1 -0
  1469. package/dist/tools/fs.cjs +53 -90
  1470. package/dist/tools/fs.cjs.map +1 -0
  1471. package/dist/tools/fs.d.cts +92 -0
  1472. package/dist/tools/fs.d.cts.map +1 -0
  1473. package/dist/tools/fs.d.ts +70 -36
  1474. package/dist/tools/fs.d.ts.map +1 -0
  1475. package/dist/tools/fs.js +51 -85
  1476. package/dist/tools/fs.js.map +1 -0
  1477. package/dist/tools/index.cjs +68 -26
  1478. package/dist/tools/index.cjs.map +1 -0
  1479. package/dist/tools/index.d.cts +8 -0
  1480. package/dist/tools/index.d.ts +8 -8
  1481. package/dist/tools/index.js +30 -8
  1482. package/dist/tools/index.js.map +1 -0
  1483. package/dist/tools/json.cjs +101 -159
  1484. package/dist/tools/json.cjs.map +1 -0
  1485. package/dist/tools/json.d.cts +65 -0
  1486. package/dist/tools/json.d.cts.map +1 -0
  1487. package/dist/tools/json.d.ts +46 -41
  1488. package/dist/tools/json.d.ts.map +1 -0
  1489. package/dist/tools/json.js +98 -150
  1490. package/dist/tools/json.js.map +1 -0
  1491. package/dist/tools/render.cjs +49 -48
  1492. package/dist/tools/render.cjs.map +1 -0
  1493. package/dist/tools/render.d.cts +32 -0
  1494. package/dist/tools/render.d.cts.map +1 -0
  1495. package/dist/tools/render.d.ts +8 -2
  1496. package/dist/tools/render.d.ts.map +1 -0
  1497. package/dist/tools/render.js +43 -45
  1498. package/dist/tools/render.js.map +1 -0
  1499. package/dist/tools/requests.cjs +66 -106
  1500. package/dist/tools/requests.cjs.map +1 -0
  1501. package/dist/tools/requests.d.cts +56 -0
  1502. package/dist/tools/requests.d.cts.map +1 -0
  1503. package/dist/tools/requests.d.ts +36 -27
  1504. package/dist/tools/requests.d.ts.map +1 -0
  1505. package/dist/tools/requests.js +64 -101
  1506. package/dist/tools/requests.js.map +1 -0
  1507. package/dist/tools/retriever.cjs +28 -14
  1508. package/dist/tools/retriever.cjs.map +1 -0
  1509. package/dist/tools/retriever.d.cts +19 -0
  1510. package/dist/tools/retriever.d.cts.map +1 -0
  1511. package/dist/tools/retriever.d.ts +13 -8
  1512. package/dist/tools/retriever.d.ts.map +1 -0
  1513. package/dist/tools/retriever.js +22 -11
  1514. package/dist/tools/retriever.js.map +1 -0
  1515. package/dist/tools/sql.cjs +147 -204
  1516. package/dist/tools/sql.cjs.map +1 -0
  1517. package/dist/tools/sql.d.cts +86 -0
  1518. package/dist/tools/sql.d.cts.map +1 -0
  1519. package/dist/tools/sql.d.ts +45 -40
  1520. package/dist/tools/sql.d.ts.map +1 -0
  1521. package/dist/tools/sql.js +137 -196
  1522. package/dist/tools/sql.js.map +1 -0
  1523. package/dist/tools/vectorstore.cjs +43 -65
  1524. package/dist/tools/vectorstore.cjs.map +1 -0
  1525. package/dist/tools/vectorstore.d.cts +40 -0
  1526. package/dist/tools/vectorstore.d.cts.map +1 -0
  1527. package/dist/tools/vectorstore.d.ts +28 -23
  1528. package/dist/tools/vectorstore.d.ts.map +1 -0
  1529. package/dist/tools/vectorstore.js +42 -61
  1530. package/dist/tools/vectorstore.js.map +1 -0
  1531. package/dist/tools/webbrowser.cjs +165 -254
  1532. package/dist/tools/webbrowser.cjs.map +1 -0
  1533. package/dist/tools/webbrowser.d.cts +69 -0
  1534. package/dist/tools/webbrowser.d.cts.map +1 -0
  1535. package/dist/tools/webbrowser.d.ts +47 -31
  1536. package/dist/tools/webbrowser.d.ts.map +1 -0
  1537. package/dist/tools/webbrowser.js +158 -213
  1538. package/dist/tools/webbrowser.js.map +1 -0
  1539. package/dist/types/expression-parser.d.cts +89 -0
  1540. package/dist/types/expression-parser.d.cts.map +1 -0
  1541. package/dist/types/expression-parser.d.ts +89 -0
  1542. package/dist/types/expression-parser.d.ts.map +1 -0
  1543. package/dist/types/type-utils.d.cts +7 -0
  1544. package/dist/types/type-utils.d.cts.map +1 -0
  1545. package/dist/types/type-utils.d.ts +7 -1
  1546. package/dist/types/type-utils.d.ts.map +1 -0
  1547. package/dist/util/document.cjs +20 -9
  1548. package/dist/util/document.cjs.map +1 -0
  1549. package/dist/util/document.d.cts +15 -0
  1550. package/dist/util/document.d.cts.map +1 -0
  1551. package/dist/util/document.d.ts +7 -1
  1552. package/dist/util/document.d.ts.map +1 -0
  1553. package/dist/util/document.js +16 -7
  1554. package/dist/util/document.js.map +1 -0
  1555. package/dist/util/entrypoint_deprecation.cjs +1 -69
  1556. package/dist/util/entrypoint_deprecation.js +1 -65
  1557. package/dist/util/env.cjs +2 -12
  1558. package/dist/util/env.js +1 -1
  1559. package/dist/util/extname.cjs +5 -3
  1560. package/dist/util/extname.cjs.map +1 -0
  1561. package/dist/util/extname.js +6 -1
  1562. package/dist/util/extname.js.map +1 -0
  1563. package/dist/util/hub.cjs +32 -39
  1564. package/dist/util/hub.cjs.map +1 -0
  1565. package/dist/util/hub.js +32 -33
  1566. package/dist/util/hub.js.map +1 -0
  1567. package/dist/util/load.cjs +12 -44
  1568. package/dist/util/load.cjs.map +1 -0
  1569. package/dist/util/load.d.cts +6 -0
  1570. package/dist/util/load.d.cts.map +1 -0
  1571. package/dist/util/load.d.ts +6 -3
  1572. package/dist/util/load.d.ts.map +1 -0
  1573. package/dist/util/load.js +13 -9
  1574. package/dist/util/load.js.map +1 -0
  1575. package/dist/util/math.cjs +22 -17
  1576. package/dist/util/math.cjs.map +1 -0
  1577. package/dist/util/math.d.cts +1 -0
  1578. package/dist/util/math.d.ts +1 -1
  1579. package/dist/util/math.js +12 -1
  1580. package/dist/util/math.js.map +1 -0
  1581. package/dist/util/ml-distance/distances.cjs +29 -45
  1582. package/dist/util/ml-distance/distances.cjs.map +1 -0
  1583. package/dist/util/ml-distance/distances.js +29 -42
  1584. package/dist/util/ml-distance/distances.js.map +1 -0
  1585. package/dist/util/ml-distance/similarities.cjs +20 -17
  1586. package/dist/util/ml-distance/similarities.cjs.map +1 -0
  1587. package/dist/util/ml-distance/similarities.d.cts +11 -0
  1588. package/dist/util/ml-distance/similarities.d.cts.map +1 -0
  1589. package/dist/util/ml-distance/similarities.d.ts +5 -1
  1590. package/dist/util/ml-distance/similarities.d.ts.map +1 -0
  1591. package/dist/util/ml-distance/similarities.js +20 -15
  1592. package/dist/util/ml-distance/similarities.js.map +1 -0
  1593. package/dist/util/ml-distance-euclidean/euclidean.cjs +10 -10
  1594. package/dist/util/ml-distance-euclidean/euclidean.cjs.map +1 -0
  1595. package/dist/util/ml-distance-euclidean/euclidean.js +11 -8
  1596. package/dist/util/ml-distance-euclidean/euclidean.js.map +1 -0
  1597. package/dist/util/openapi.cjs +148 -233
  1598. package/dist/util/openapi.cjs.map +1 -0
  1599. package/dist/util/openapi.d.cts +83 -0
  1600. package/dist/util/openapi.d.cts.map +1 -0
  1601. package/dist/util/openapi.d.ts +81 -74
  1602. package/dist/util/openapi.d.ts.map +1 -0
  1603. package/dist/util/openapi.js +147 -196
  1604. package/dist/util/openapi.js.map +1 -0
  1605. package/dist/util/parse.cjs +17 -54
  1606. package/dist/util/parse.cjs.map +1 -0
  1607. package/dist/util/parse.js +18 -18
  1608. package/dist/util/parse.js.map +1 -0
  1609. package/dist/util/set.cjs +25 -30
  1610. package/dist/util/set.cjs.map +1 -0
  1611. package/dist/util/set.js +25 -28
  1612. package/dist/util/set.js.map +1 -0
  1613. package/dist/util/sql_utils.cjs +128 -216
  1614. package/dist/util/sql_utils.cjs.map +1 -0
  1615. package/dist/util/sql_utils.d.cts +31 -0
  1616. package/dist/util/sql_utils.d.cts.map +1 -0
  1617. package/dist/util/sql_utils.d.ts +24 -25
  1618. package/dist/util/sql_utils.d.ts.map +1 -0
  1619. package/dist/util/sql_utils.js +130 -214
  1620. package/dist/util/sql_utils.js.map +1 -0
  1621. package/dist/util/time.cjs +23 -11
  1622. package/dist/util/time.cjs.map +1 -0
  1623. package/dist/util/time.d.cts +10 -0
  1624. package/dist/util/time.d.cts.map +1 -0
  1625. package/dist/util/time.d.ts +5 -1
  1626. package/dist/util/time.d.ts.map +1 -0
  1627. package/dist/util/time.js +17 -8
  1628. package/dist/util/time.js.map +1 -0
  1629. package/dist/vectorstores/memory.cjs +263 -270
  1630. package/dist/vectorstores/memory.cjs.map +1 -0
  1631. package/dist/vectorstores/memory.d.cts +216 -0
  1632. package/dist/vectorstores/memory.d.cts.map +1 -0
  1633. package/dist/vectorstores/memory.d.ts +91 -82
  1634. package/dist/vectorstores/memory.d.ts.map +1 -0
  1635. package/dist/vectorstores/memory.js +257 -266
  1636. package/dist/vectorstores/memory.js.map +1 -0
  1637. package/package.json +551 -1135
  1638. package/agents/format_scratchpad/log.cjs +0 -1
  1639. package/agents/format_scratchpad/log.d.cts +0 -1
  1640. package/agents/format_scratchpad/log.d.ts +0 -1
  1641. package/agents/format_scratchpad/log.js +0 -1
  1642. package/agents/format_scratchpad/log_to_message.cjs +0 -1
  1643. package/agents/format_scratchpad/log_to_message.d.cts +0 -1
  1644. package/agents/format_scratchpad/log_to_message.d.ts +0 -1
  1645. package/agents/format_scratchpad/log_to_message.js +0 -1
  1646. package/agents/format_scratchpad/openai_tools.cjs +0 -1
  1647. package/agents/format_scratchpad/openai_tools.d.cts +0 -1
  1648. package/agents/format_scratchpad/openai_tools.d.ts +0 -1
  1649. package/agents/format_scratchpad/openai_tools.js +0 -1
  1650. package/agents/format_scratchpad/xml.cjs +0 -1
  1651. package/agents/format_scratchpad/xml.d.cts +0 -1
  1652. package/agents/format_scratchpad/xml.d.ts +0 -1
  1653. package/agents/format_scratchpad/xml.js +0 -1
  1654. package/agents/format_scratchpad.cjs +0 -1
  1655. package/agents/format_scratchpad.d.cts +0 -1
  1656. package/agents/format_scratchpad.d.ts +0 -1
  1657. package/agents/format_scratchpad.js +0 -1
  1658. package/agents/load.cjs +0 -1
  1659. package/agents/load.d.cts +0 -1
  1660. package/agents/load.d.ts +0 -1
  1661. package/agents/load.js +0 -1
  1662. package/agents/openai/output_parser.cjs +0 -1
  1663. package/agents/openai/output_parser.d.cts +0 -1
  1664. package/agents/openai/output_parser.d.ts +0 -1
  1665. package/agents/openai/output_parser.js +0 -1
  1666. package/agents/react/output_parser.cjs +0 -1
  1667. package/agents/react/output_parser.d.cts +0 -1
  1668. package/agents/react/output_parser.d.ts +0 -1
  1669. package/agents/react/output_parser.js +0 -1
  1670. package/agents/toolkits/sql.cjs +0 -1
  1671. package/agents/toolkits/sql.d.cts +0 -1
  1672. package/agents/toolkits/sql.d.ts +0 -1
  1673. package/agents/toolkits/sql.js +0 -1
  1674. package/agents/toolkits.cjs +0 -1
  1675. package/agents/toolkits.d.cts +0 -1
  1676. package/agents/toolkits.d.ts +0 -1
  1677. package/agents/toolkits.js +0 -1
  1678. package/agents/xml/output_parser.cjs +0 -1
  1679. package/agents/xml/output_parser.d.cts +0 -1
  1680. package/agents/xml/output_parser.d.ts +0 -1
  1681. package/agents/xml/output_parser.js +0 -1
  1682. package/agents.cjs +0 -1
  1683. package/agents.d.cts +0 -1
  1684. package/agents.d.ts +0 -1
  1685. package/agents.js +0 -1
  1686. package/cache/file_system.cjs +0 -1
  1687. package/cache/file_system.d.cts +0 -1
  1688. package/cache/file_system.d.ts +0 -1
  1689. package/cache/file_system.js +0 -1
  1690. package/callbacks.cjs +0 -1
  1691. package/callbacks.d.cts +0 -1
  1692. package/callbacks.d.ts +0 -1
  1693. package/callbacks.js +0 -1
  1694. package/chains/combine_documents/reduce.cjs +0 -1
  1695. package/chains/combine_documents/reduce.d.cts +0 -1
  1696. package/chains/combine_documents/reduce.d.ts +0 -1
  1697. package/chains/combine_documents/reduce.js +0 -1
  1698. package/chains/combine_documents.cjs +0 -1
  1699. package/chains/combine_documents.d.cts +0 -1
  1700. package/chains/combine_documents.d.ts +0 -1
  1701. package/chains/combine_documents.js +0 -1
  1702. package/chains/graph_qa/cypher.cjs +0 -1
  1703. package/chains/graph_qa/cypher.d.cts +0 -1
  1704. package/chains/graph_qa/cypher.d.ts +0 -1
  1705. package/chains/graph_qa/cypher.js +0 -1
  1706. package/chains/history_aware_retriever.cjs +0 -1
  1707. package/chains/history_aware_retriever.d.cts +0 -1
  1708. package/chains/history_aware_retriever.d.ts +0 -1
  1709. package/chains/history_aware_retriever.js +0 -1
  1710. package/chains/load.cjs +0 -1
  1711. package/chains/load.d.cts +0 -1
  1712. package/chains/load.d.ts +0 -1
  1713. package/chains/load.js +0 -1
  1714. package/chains/openai_functions.cjs +0 -1
  1715. package/chains/openai_functions.d.cts +0 -1
  1716. package/chains/openai_functions.d.ts +0 -1
  1717. package/chains/openai_functions.js +0 -1
  1718. package/chains/query_constructor/ir.cjs +0 -1
  1719. package/chains/query_constructor/ir.d.cts +0 -1
  1720. package/chains/query_constructor/ir.d.ts +0 -1
  1721. package/chains/query_constructor/ir.js +0 -1
  1722. package/chains/query_constructor.cjs +0 -1
  1723. package/chains/query_constructor.d.cts +0 -1
  1724. package/chains/query_constructor.d.ts +0 -1
  1725. package/chains/query_constructor.js +0 -1
  1726. package/chains/retrieval.cjs +0 -1
  1727. package/chains/retrieval.d.cts +0 -1
  1728. package/chains/retrieval.d.ts +0 -1
  1729. package/chains/retrieval.js +0 -1
  1730. package/chains/sql_db.cjs +0 -1
  1731. package/chains/sql_db.d.cts +0 -1
  1732. package/chains/sql_db.d.ts +0 -1
  1733. package/chains/sql_db.js +0 -1
  1734. package/chains.cjs +0 -1
  1735. package/chains.d.cts +0 -1
  1736. package/chains.d.ts +0 -1
  1737. package/chains.js +0 -1
  1738. package/chat_models/universal.cjs +0 -1
  1739. package/chat_models/universal.d.cts +0 -1
  1740. package/chat_models/universal.d.ts +0 -1
  1741. package/chat_models/universal.js +0 -1
  1742. package/dist/agents/agent.cjs +0 -570
  1743. package/dist/agents/agent.d.ts +0 -284
  1744. package/dist/agents/agent.js +0 -524
  1745. package/dist/agents/chat/index.cjs +0 -123
  1746. package/dist/agents/chat/index.d.ts +0 -87
  1747. package/dist/agents/chat/index.js +0 -119
  1748. package/dist/agents/chat/outputParser.cjs +0 -94
  1749. package/dist/agents/chat/outputParser.d.ts +0 -70
  1750. package/dist/agents/chat/outputParser.js +0 -90
  1751. package/dist/agents/chat/prompt.cjs +0 -28
  1752. package/dist/agents/chat/prompt.d.ts +0 -3
  1753. package/dist/agents/chat/prompt.js +0 -25
  1754. package/dist/agents/chat_convo/index.cjs +0 -148
  1755. package/dist/agents/chat_convo/index.d.ts +0 -82
  1756. package/dist/agents/chat_convo/index.js +0 -144
  1757. package/dist/agents/chat_convo/outputParser.cjs +0 -163
  1758. package/dist/agents/chat_convo/outputParser.d.ts +0 -75
  1759. package/dist/agents/chat_convo/outputParser.js +0 -158
  1760. package/dist/agents/chat_convo/prompt.cjs +0 -60
  1761. package/dist/agents/chat_convo/prompt.d.ts +0 -5
  1762. package/dist/agents/chat_convo/prompt.js +0 -57
  1763. package/dist/agents/executor.cjs +0 -687
  1764. package/dist/agents/executor.d.ts +0 -163
  1765. package/dist/agents/executor.js +0 -681
  1766. package/dist/agents/format_scratchpad/log.cjs +0 -15
  1767. package/dist/agents/format_scratchpad/log.d.ts +0 -9
  1768. package/dist/agents/format_scratchpad/log.js +0 -12
  1769. package/dist/agents/format_scratchpad/log_to_message.cjs +0 -21
  1770. package/dist/agents/format_scratchpad/log_to_message.d.ts +0 -3
  1771. package/dist/agents/format_scratchpad/log_to_message.js +0 -18
  1772. package/dist/agents/format_scratchpad/openai_functions.cjs +0 -45
  1773. package/dist/agents/format_scratchpad/openai_functions.d.ts +0 -21
  1774. package/dist/agents/format_scratchpad/openai_functions.js +0 -41
  1775. package/dist/agents/format_scratchpad/openai_tools.cjs +0 -5
  1776. package/dist/agents/format_scratchpad/openai_tools.d.ts +0 -2
  1777. package/dist/agents/format_scratchpad/openai_tools.js +0 -2
  1778. package/dist/agents/format_scratchpad/tool_calling.cjs +0 -29
  1779. package/dist/agents/format_scratchpad/tool_calling.d.ts +0 -10
  1780. package/dist/agents/format_scratchpad/tool_calling.js +0 -25
  1781. package/dist/agents/format_scratchpad/xml.cjs +0 -11
  1782. package/dist/agents/format_scratchpad/xml.d.ts +0 -2
  1783. package/dist/agents/format_scratchpad/xml.js +0 -8
  1784. package/dist/agents/helpers.cjs +0 -21
  1785. package/dist/agents/helpers.d.ts +0 -4
  1786. package/dist/agents/helpers.js +0 -17
  1787. package/dist/agents/initialize.cjs +0 -136
  1788. package/dist/agents/initialize.d.ts +0 -60
  1789. package/dist/agents/initialize.js +0 -131
  1790. package/dist/agents/load.cjs +0 -21
  1791. package/dist/agents/load.d.ts +0 -8
  1792. package/dist/agents/load.js +0 -17
  1793. package/dist/agents/mrkl/index.cjs +0 -136
  1794. package/dist/agents/mrkl/index.d.ts +0 -93
  1795. package/dist/agents/mrkl/index.js +0 -132
  1796. package/dist/agents/mrkl/outputParser.cjs +0 -65
  1797. package/dist/agents/mrkl/outputParser.d.ts +0 -37
  1798. package/dist/agents/mrkl/outputParser.js +0 -61
  1799. package/dist/agents/mrkl/prompt.cjs +0 -18
  1800. package/dist/agents/mrkl/prompt.d.ts +0 -3
  1801. package/dist/agents/mrkl/prompt.js +0 -15
  1802. package/dist/agents/openai/output_parser.cjs +0 -22
  1803. package/dist/agents/openai/output_parser.d.ts +0 -2
  1804. package/dist/agents/openai/output_parser.js +0 -6
  1805. package/dist/agents/openai_functions/index.cjs +0 -249
  1806. package/dist/agents/openai_functions/index.d.ts +0 -154
  1807. package/dist/agents/openai_functions/index.js +0 -243
  1808. package/dist/agents/openai_functions/output_parser.cjs +0 -100
  1809. package/dist/agents/openai_functions/output_parser.d.ts +0 -56
  1810. package/dist/agents/openai_functions/output_parser.js +0 -96
  1811. package/dist/agents/openai_functions/prompt.cjs +0 -5
  1812. package/dist/agents/openai_functions/prompt.d.ts +0 -2
  1813. package/dist/agents/openai_functions/prompt.js +0 -2
  1814. package/dist/agents/openai_tools/index.cjs +0 -92
  1815. package/dist/agents/openai_tools/index.d.ts +0 -89
  1816. package/dist/agents/openai_tools/index.js +0 -88
  1817. package/dist/agents/openai_tools/output_parser.cjs +0 -100
  1818. package/dist/agents/openai_tools/output_parser.d.ts +0 -49
  1819. package/dist/agents/openai_tools/output_parser.js +0 -96
  1820. package/dist/agents/react/index.cjs +0 -80
  1821. package/dist/agents/react/index.d.ts +0 -70
  1822. package/dist/agents/react/index.js +0 -77
  1823. package/dist/agents/react/output_parser.cjs +0 -112
  1824. package/dist/agents/react/output_parser.d.ts +0 -62
  1825. package/dist/agents/react/output_parser.js +0 -108
  1826. package/dist/agents/react/prompt.cjs +0 -13
  1827. package/dist/agents/react/prompt.d.ts +0 -1
  1828. package/dist/agents/react/prompt.js +0 -10
  1829. package/dist/agents/structured_chat/index.cjs +0 -260
  1830. package/dist/agents/structured_chat/index.d.ts +0 -172
  1831. package/dist/agents/structured_chat/index.js +0 -255
  1832. package/dist/agents/structured_chat/outputParser.cjs +0 -162
  1833. package/dist/agents/structured_chat/outputParser.d.ts +0 -89
  1834. package/dist/agents/structured_chat/outputParser.js +0 -157
  1835. package/dist/agents/structured_chat/prompt.cjs +0 -62
  1836. package/dist/agents/structured_chat/prompt.d.ts +0 -4
  1837. package/dist/agents/structured_chat/prompt.js +0 -59
  1838. package/dist/agents/tool_calling/index.cjs +0 -93
  1839. package/dist/agents/tool_calling/index.d.ts +0 -78
  1840. package/dist/agents/tool_calling/index.js +0 -90
  1841. package/dist/agents/tool_calling/output_parser.cjs +0 -75
  1842. package/dist/agents/tool_calling/output_parser.d.ts +0 -22
  1843. package/dist/agents/tool_calling/output_parser.js +0 -70
  1844. package/dist/agents/toolkits/base.cjs +0 -5
  1845. package/dist/agents/toolkits/base.d.ts +0 -1
  1846. package/dist/agents/toolkits/base.js +0 -1
  1847. package/dist/agents/toolkits/conversational_retrieval/openai_functions.cjs +0 -49
  1848. package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts +0 -21
  1849. package/dist/agents/toolkits/conversational_retrieval/openai_functions.js +0 -46
  1850. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.cjs +0 -134
  1851. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +0 -52
  1852. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.js +0 -130
  1853. package/dist/agents/toolkits/conversational_retrieval/tool.cjs +0 -19
  1854. package/dist/agents/toolkits/conversational_retrieval/tool.d.ts +0 -15
  1855. package/dist/agents/toolkits/conversational_retrieval/tool.js +0 -16
  1856. package/dist/agents/toolkits/index.cjs +0 -21
  1857. package/dist/agents/toolkits/index.d.ts +0 -6
  1858. package/dist/agents/toolkits/index.js +0 -6
  1859. package/dist/agents/toolkits/json/json.cjs +0 -76
  1860. package/dist/agents/toolkits/json/json.d.ts +0 -36
  1861. package/dist/agents/toolkits/json/json.js +0 -71
  1862. package/dist/agents/toolkits/json/prompt.cjs +0 -27
  1863. package/dist/agents/toolkits/json/prompt.d.ts +0 -2
  1864. package/dist/agents/toolkits/json/prompt.js +0 -24
  1865. package/dist/agents/toolkits/openapi/openapi.cjs +0 -111
  1866. package/dist/agents/toolkits/openapi/openapi.d.ts +0 -64
  1867. package/dist/agents/toolkits/openapi/openapi.js +0 -105
  1868. package/dist/agents/toolkits/openapi/prompt.cjs +0 -32
  1869. package/dist/agents/toolkits/openapi/prompt.d.ts +0 -3
  1870. package/dist/agents/toolkits/openapi/prompt.js +0 -29
  1871. package/dist/agents/toolkits/sql/index.cjs +0 -9
  1872. package/dist/agents/toolkits/sql/index.d.ts +0 -2
  1873. package/dist/agents/toolkits/sql/index.js +0 -2
  1874. package/dist/agents/toolkits/sql/prompt.cjs +0 -20
  1875. package/dist/agents/toolkits/sql/prompt.d.ts +0 -2
  1876. package/dist/agents/toolkits/sql/prompt.js +0 -17
  1877. package/dist/agents/toolkits/sql/sql.cjs +0 -77
  1878. package/dist/agents/toolkits/sql/sql.d.ts +0 -32
  1879. package/dist/agents/toolkits/sql/sql.js +0 -72
  1880. package/dist/agents/toolkits/vectorstore/prompt.cjs +0 -11
  1881. package/dist/agents/toolkits/vectorstore/prompt.d.ts +0 -2
  1882. package/dist/agents/toolkits/vectorstore/prompt.js +0 -8
  1883. package/dist/agents/toolkits/vectorstore/vectorstore.cjs +0 -137
  1884. package/dist/agents/toolkits/vectorstore/vectorstore.d.ts +0 -55
  1885. package/dist/agents/toolkits/vectorstore/vectorstore.js +0 -130
  1886. package/dist/agents/types.cjs +0 -19
  1887. package/dist/agents/types.js +0 -14
  1888. package/dist/agents/xml/index.cjs +0 -185
  1889. package/dist/agents/xml/index.d.ts +0 -122
  1890. package/dist/agents/xml/index.js +0 -180
  1891. package/dist/agents/xml/output_parser.cjs +0 -67
  1892. package/dist/agents/xml/output_parser.d.ts +0 -35
  1893. package/dist/agents/xml/output_parser.js +0 -63
  1894. package/dist/agents/xml/prompt.cjs +0 -23
  1895. package/dist/agents/xml/prompt.d.ts +0 -1
  1896. package/dist/agents/xml/prompt.js +0 -20
  1897. package/dist/cache/base.cjs +0 -17
  1898. package/dist/cache/base.d.ts +0 -1
  1899. package/dist/cache/base.js +0 -1
  1900. package/dist/cache/file_system.cjs +0 -72
  1901. package/dist/cache/file_system.d.ts +0 -34
  1902. package/dist/cache/file_system.js +0 -65
  1903. package/dist/callbacks/handlers/console.cjs +0 -17
  1904. package/dist/callbacks/handlers/console.d.ts +0 -1
  1905. package/dist/callbacks/handlers/console.js +0 -1
  1906. package/dist/callbacks/handlers/run_collector.cjs +0 -17
  1907. package/dist/callbacks/handlers/run_collector.d.ts +0 -1
  1908. package/dist/callbacks/handlers/run_collector.js +0 -1
  1909. package/dist/callbacks/handlers/tracer.cjs +0 -17
  1910. package/dist/callbacks/handlers/tracer.d.ts +0 -1
  1911. package/dist/callbacks/handlers/tracer.js +0 -1
  1912. package/dist/callbacks/handlers/tracer_langchain.cjs +0 -17
  1913. package/dist/callbacks/handlers/tracer_langchain.d.ts +0 -1
  1914. package/dist/callbacks/handlers/tracer_langchain.js +0 -1
  1915. package/dist/callbacks/index.cjs +0 -14
  1916. package/dist/callbacks/index.d.ts +0 -5
  1917. package/dist/callbacks/index.js +0 -5
  1918. package/dist/callbacks/promises.cjs +0 -17
  1919. package/dist/callbacks/promises.d.ts +0 -1
  1920. package/dist/callbacks/promises.js +0 -1
  1921. package/dist/chains/api/prompts.d.ts +0 -13
  1922. package/dist/chains/combine_documents/base.d.ts +0 -13
  1923. package/dist/chains/constitutional_ai/constitutional_prompts.d.ts +0 -19
  1924. package/dist/chains/graph_qa/prompts.d.ts +0 -9
  1925. package/dist/chains/question_answering/map_reduce_prompts.d.ts +0 -6
  1926. package/dist/chains/question_answering/refine_prompts.d.ts +0 -17
  1927. package/dist/chains/question_answering/stuff_prompts.d.ts +0 -7
  1928. package/dist/chains/router/multi_prompt_prompt.d.ts +0 -2
  1929. package/dist/chains/router/multi_retrieval_prompt.d.ts +0 -2
  1930. package/dist/chains/router/utils.d.ts +0 -3
  1931. package/dist/chains/serde.cjs +0 -2
  1932. package/dist/chains/serde.js +0 -1
  1933. package/dist/chains/summarization/refine_prompts.d.ts +0 -5
  1934. package/dist/chains/summarization/stuff_prompts.d.ts +0 -4
  1935. package/dist/document_transformers/openai_functions.cjs +0 -52
  1936. package/dist/document_transformers/openai_functions.d.ts +0 -23
  1937. package/dist/document_transformers/openai_functions.js +0 -46
  1938. package/dist/evaluation/agents/index.d.ts +0 -1
  1939. package/dist/evaluation/agents/prompt.d.ts +0 -6
  1940. package/dist/evaluation/comparison/index.d.ts +0 -1
  1941. package/dist/evaluation/comparison/prompt.d.ts +0 -21
  1942. package/dist/evaluation/criteria/index.d.ts +0 -1
  1943. package/dist/evaluation/criteria/prompt.d.ts +0 -12
  1944. package/dist/evaluation/embedding_distance/index.d.ts +0 -1
  1945. package/dist/evaluation/qa/index.d.ts +0 -1
  1946. package/dist/evaluation/qa/prompt.d.ts +0 -11
  1947. package/dist/evaluation/types.cjs +0 -2
  1948. package/dist/evaluation/types.js +0 -1
  1949. package/dist/experimental/autogpt/agent.cjs +0 -210
  1950. package/dist/experimental/autogpt/agent.d.ts +0 -80
  1951. package/dist/experimental/autogpt/agent.js +0 -206
  1952. package/dist/experimental/autogpt/index.cjs +0 -10
  1953. package/dist/experimental/autogpt/index.d.ts +0 -4
  1954. package/dist/experimental/autogpt/index.js +0 -3
  1955. package/dist/experimental/autogpt/output_parser.cjs +0 -85
  1956. package/dist/experimental/autogpt/output_parser.d.ts +0 -33
  1957. package/dist/experimental/autogpt/output_parser.js +0 -80
  1958. package/dist/experimental/autogpt/prompt.cjs +0 -137
  1959. package/dist/experimental/autogpt/prompt.d.ts +0 -58
  1960. package/dist/experimental/autogpt/prompt.js +0 -133
  1961. package/dist/experimental/autogpt/prompt_generator.cjs +0 -154
  1962. package/dist/experimental/autogpt/prompt_generator.d.ts +0 -49
  1963. package/dist/experimental/autogpt/prompt_generator.js +0 -149
  1964. package/dist/experimental/autogpt/schema.cjs +0 -4
  1965. package/dist/experimental/autogpt/schema.d.ts +0 -18
  1966. package/dist/experimental/autogpt/schema.js +0 -1
  1967. package/dist/experimental/babyagi/agent.cjs +0 -274
  1968. package/dist/experimental/babyagi/agent.d.ts +0 -135
  1969. package/dist/experimental/babyagi/agent.js +0 -270
  1970. package/dist/experimental/babyagi/index.cjs +0 -11
  1971. package/dist/experimental/babyagi/index.d.ts +0 -4
  1972. package/dist/experimental/babyagi/index.js +0 -4
  1973. package/dist/experimental/babyagi/task_creation.cjs +0 -42
  1974. package/dist/experimental/babyagi/task_creation.d.ts +0 -16
  1975. package/dist/experimental/babyagi/task_creation.js +0 -38
  1976. package/dist/experimental/babyagi/task_execution.cjs +0 -32
  1977. package/dist/experimental/babyagi/task_execution.d.ts +0 -15
  1978. package/dist/experimental/babyagi/task_execution.js +0 -28
  1979. package/dist/experimental/babyagi/task_prioritization.cjs +0 -34
  1980. package/dist/experimental/babyagi/task_prioritization.d.ts +0 -14
  1981. package/dist/experimental/babyagi/task_prioritization.js +0 -30
  1982. package/dist/experimental/chains/violation_of_expectations/index.cjs +0 -5
  1983. package/dist/experimental/chains/violation_of_expectations/index.d.ts +0 -1
  1984. package/dist/experimental/chains/violation_of_expectations/index.js +0 -1
  1985. package/dist/experimental/chains/violation_of_expectations/types.cjs +0 -49
  1986. package/dist/experimental/chains/violation_of_expectations/types.d.ts +0 -69
  1987. package/dist/experimental/chains/violation_of_expectations/types.js +0 -46
  1988. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.cjs +0 -336
  1989. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts +0 -149
  1990. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.js +0 -332
  1991. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.cjs +0 -49
  1992. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.d.ts +0 -5
  1993. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_prompt.js +0 -46
  1994. package/dist/experimental/generative_agents/generative_agent.cjs +0 -397
  1995. package/dist/experimental/generative_agents/generative_agent.d.ts +0 -160
  1996. package/dist/experimental/generative_agents/generative_agent.js +0 -393
  1997. package/dist/experimental/generative_agents/generative_agent_memory.cjs +0 -518
  1998. package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -200
  1999. package/dist/experimental/generative_agents/generative_agent_memory.js +0 -514
  2000. package/dist/experimental/generative_agents/index.cjs +0 -7
  2001. package/dist/experimental/generative_agents/index.d.ts +0 -2
  2002. package/dist/experimental/generative_agents/index.js +0 -2
  2003. package/dist/experimental/masking/index.cjs +0 -9
  2004. package/dist/experimental/masking/index.d.ts +0 -4
  2005. package/dist/experimental/masking/index.js +0 -3
  2006. package/dist/experimental/masking/parser.cjs +0 -134
  2007. package/dist/experimental/masking/parser.d.ts +0 -44
  2008. package/dist/experimental/masking/parser.js +0 -130
  2009. package/dist/experimental/masking/regex_masking_transformer.cjs +0 -145
  2010. package/dist/experimental/masking/regex_masking_transformer.d.ts +0 -48
  2011. package/dist/experimental/masking/regex_masking_transformer.js +0 -141
  2012. package/dist/experimental/masking/transformer.cjs +0 -9
  2013. package/dist/experimental/masking/transformer.d.ts +0 -7
  2014. package/dist/experimental/masking/transformer.js +0 -5
  2015. package/dist/experimental/masking/types.cjs +0 -2
  2016. package/dist/experimental/masking/types.d.ts +0 -25
  2017. package/dist/experimental/masking/types.js +0 -1
  2018. package/dist/experimental/openai_assistant/index.cjs +0 -268
  2019. package/dist/experimental/openai_assistant/index.d.ts +0 -68
  2020. package/dist/experimental/openai_assistant/index.js +0 -264
  2021. package/dist/experimental/openai_assistant/schema.cjs +0 -2
  2022. package/dist/experimental/openai_assistant/schema.d.ts +0 -11
  2023. package/dist/experimental/openai_assistant/schema.js +0 -1
  2024. package/dist/experimental/openai_files/index.cjs +0 -88
  2025. package/dist/experimental/openai_files/index.d.ts +0 -87
  2026. package/dist/experimental/openai_files/index.js +0 -84
  2027. package/dist/experimental/plan_and_execute/agent_executor.cjs +0 -172
  2028. package/dist/experimental/plan_and_execute/agent_executor.d.ts +0 -86
  2029. package/dist/experimental/plan_and_execute/agent_executor.js +0 -167
  2030. package/dist/experimental/plan_and_execute/base.cjs +0 -97
  2031. package/dist/experimental/plan_and_execute/base.d.ts +0 -84
  2032. package/dist/experimental/plan_and_execute/base.js +0 -88
  2033. package/dist/experimental/plan_and_execute/index.cjs +0 -14
  2034. package/dist/experimental/plan_and_execute/index.d.ts +0 -3
  2035. package/dist/experimental/plan_and_execute/index.js +0 -3
  2036. package/dist/experimental/plan_and_execute/outputParser.cjs +0 -46
  2037. package/dist/experimental/plan_and_execute/outputParser.d.ts +0 -25
  2038. package/dist/experimental/plan_and_execute/outputParser.js +0 -42
  2039. package/dist/experimental/plan_and_execute/prompt.cjs +0 -43
  2040. package/dist/experimental/plan_and_execute/prompt.d.ts +0 -12
  2041. package/dist/experimental/plan_and_execute/prompt.js +0 -39
  2042. package/dist/experimental/prompts/custom_format.cjs +0 -78
  2043. package/dist/experimental/prompts/custom_format.d.ts +0 -24
  2044. package/dist/experimental/prompts/custom_format.js +0 -74
  2045. package/dist/experimental/prompts/handlebars.cjs +0 -71
  2046. package/dist/experimental/prompts/handlebars.d.ts +0 -13
  2047. package/dist/experimental/prompts/handlebars.js +0 -62
  2048. package/dist/indexes/index.cjs +0 -10
  2049. package/dist/indexes/index.d.ts +0 -2
  2050. package/dist/indexes/index.js +0 -2
  2051. package/dist/load/import_constants.d.ts +0 -1
  2052. package/dist/load/import_map.d.ts +0 -181
  2053. package/dist/load/import_type.cjs +0 -3
  2054. package/dist/load/import_type.js +0 -2
  2055. package/dist/load/map_keys.cjs +0 -2
  2056. package/dist/load/map_keys.js +0 -1
  2057. package/dist/memory/base.cjs +0 -20
  2058. package/dist/memory/base.d.ts +0 -2
  2059. package/dist/memory/base.js +0 -2
  2060. package/dist/memory/stores/entity/in_memory.d.ts +0 -40
  2061. package/dist/output_parsers/expression_type_handlers/array_literal_expression_handler.d.ts +0 -24
  2062. package/dist/output_parsers/expression_type_handlers/boolean_literal_handler.d.ts +0 -24
  2063. package/dist/output_parsers/expression_type_handlers/call_expression_handler.d.ts +0 -28
  2064. package/dist/output_parsers/expression_type_handlers/grammar/parser_grammar.d.ts +0 -13
  2065. package/dist/output_parsers/expression_type_handlers/identifier_handler.d.ts +0 -25
  2066. package/dist/output_parsers/expression_type_handlers/member_expression_handler.d.ts +0 -23
  2067. package/dist/output_parsers/expression_type_handlers/numeric_literal_handler.d.ts +0 -22
  2068. package/dist/output_parsers/expression_type_handlers/object_literal_expression_handler.d.ts +0 -22
  2069. package/dist/output_parsers/expression_type_handlers/property_assignment_handler.d.ts +0 -23
  2070. package/dist/output_parsers/expression_type_handlers/string_literal_handler.d.ts +0 -22
  2071. package/dist/output_parsers/expression_type_handlers/types.cjs +0 -2
  2072. package/dist/output_parsers/expression_type_handlers/types.js +0 -1
  2073. package/dist/output_parsers/json.cjs +0 -5
  2074. package/dist/output_parsers/json.d.ts +0 -1
  2075. package/dist/output_parsers/json.js +0 -1
  2076. package/dist/output_parsers/list.cjs +0 -7
  2077. package/dist/output_parsers/list.d.ts +0 -1
  2078. package/dist/output_parsers/list.js +0 -1
  2079. package/dist/output_parsers/noop.d.ts +0 -26
  2080. package/dist/output_parsers/prompts.d.ts +0 -3
  2081. package/dist/prompts/base.cjs +0 -10
  2082. package/dist/prompts/base.d.ts +0 -3
  2083. package/dist/prompts/base.js +0 -3
  2084. package/dist/prompts/chat.cjs +0 -15
  2085. package/dist/prompts/chat.d.ts +0 -2
  2086. package/dist/prompts/chat.js +0 -2
  2087. package/dist/prompts/few_shot.cjs +0 -6
  2088. package/dist/prompts/few_shot.d.ts +0 -1
  2089. package/dist/prompts/few_shot.js +0 -1
  2090. package/dist/prompts/index.cjs +0 -6
  2091. package/dist/prompts/index.d.ts +0 -0
  2092. package/dist/prompts/index.js +0 -6
  2093. package/dist/prompts/pipeline.cjs +0 -5
  2094. package/dist/prompts/pipeline.d.ts +0 -1
  2095. package/dist/prompts/pipeline.js +0 -1
  2096. package/dist/prompts/prompt.cjs +0 -5
  2097. package/dist/prompts/prompt.d.ts +0 -1
  2098. package/dist/prompts/prompt.js +0 -1
  2099. package/dist/prompts/selectors/LengthBasedExampleSelector.cjs +0 -5
  2100. package/dist/prompts/selectors/LengthBasedExampleSelector.d.ts +0 -1
  2101. package/dist/prompts/selectors/LengthBasedExampleSelector.js +0 -1
  2102. package/dist/prompts/selectors/SemanticSimilarityExampleSelector.cjs +0 -17
  2103. package/dist/prompts/selectors/SemanticSimilarityExampleSelector.d.ts +0 -1
  2104. package/dist/prompts/selectors/SemanticSimilarityExampleSelector.js +0 -1
  2105. package/dist/prompts/selectors/conditional.cjs +0 -8
  2106. package/dist/prompts/selectors/conditional.d.ts +0 -1
  2107. package/dist/prompts/selectors/conditional.js +0 -1
  2108. package/dist/prompts/serde.cjs +0 -2
  2109. package/dist/prompts/serde.d.ts +0 -1
  2110. package/dist/prompts/serde.js +0 -1
  2111. package/dist/prompts/template.cjs +0 -11
  2112. package/dist/prompts/template.d.ts +0 -1
  2113. package/dist/prompts/template.js +0 -1
  2114. package/dist/retrievers/document_compressors/chain_extract_prompt.d.ts +0 -1
  2115. package/dist/retrievers/document_compressors/test/document_compressor.int.test.cjs +0 -28
  2116. package/dist/retrievers/document_compressors/test/document_compressor.int.test.d.ts +0 -1
  2117. package/dist/retrievers/document_compressors/test/document_compressor.int.test.js +0 -26
  2118. package/dist/retrievers/self_query/base.cjs +0 -6
  2119. package/dist/retrievers/self_query/base.d.ts +0 -1
  2120. package/dist/retrievers/self_query/base.js +0 -1
  2121. package/dist/runnables/remote.cjs +0 -17
  2122. package/dist/runnables/remote.d.ts +0 -1
  2123. package/dist/runnables/remote.js +0 -1
  2124. package/dist/schema/prompt_template.cjs +0 -34
  2125. package/dist/schema/prompt_template.d.ts +0 -13
  2126. package/dist/schema/prompt_template.js +0 -30
  2127. package/dist/schema/query_constructor.cjs +0 -32
  2128. package/dist/schema/query_constructor.d.ts +0 -12
  2129. package/dist/schema/query_constructor.js +0 -28
  2130. package/dist/smith/config.cjs +0 -81
  2131. package/dist/smith/config.d.ts +0 -245
  2132. package/dist/smith/config.js +0 -74
  2133. package/dist/smith/index.cjs +0 -20
  2134. package/dist/smith/index.d.ts +0 -3
  2135. package/dist/smith/index.js +0 -3
  2136. package/dist/smith/name_generation.cjs +0 -725
  2137. package/dist/smith/name_generation.d.ts +0 -1
  2138. package/dist/smith/name_generation.js +0 -722
  2139. package/dist/smith/progress.cjs +0 -69
  2140. package/dist/smith/progress.d.ts +0 -22
  2141. package/dist/smith/progress.js +0 -65
  2142. package/dist/smith/runner_utils.cjs +0 -574
  2143. package/dist/smith/runner_utils.d.ts +0 -90
  2144. package/dist/smith/runner_utils.js +0 -571
  2145. package/dist/stores/message/utils.cjs +0 -6
  2146. package/dist/stores/message/utils.d.ts +0 -1
  2147. package/dist/stores/message/utils.js +0 -1
  2148. package/dist/tools/base.cjs +0 -7
  2149. package/dist/tools/base.d.ts +0 -1
  2150. package/dist/tools/base.js +0 -1
  2151. package/dist/tools/convert_to_openai.cjs +0 -21
  2152. package/dist/tools/convert_to_openai.d.ts +0 -5
  2153. package/dist/tools/convert_to_openai.js +0 -16
  2154. package/dist/tools/dynamic.cjs +0 -6
  2155. package/dist/tools/dynamic.d.ts +0 -1
  2156. package/dist/tools/dynamic.js +0 -1
  2157. package/dist/types/type-utils.cjs +0 -2
  2158. package/dist/types/type-utils.js +0 -1
  2159. package/dist/util/async_caller.cjs +0 -17
  2160. package/dist/util/async_caller.d.ts +0 -1
  2161. package/dist/util/async_caller.js +0 -1
  2162. package/dist/util/axios-fetch-adapter.cjs +0 -404
  2163. package/dist/util/axios-fetch-adapter.d.ts +0 -6
  2164. package/dist/util/axios-fetch-adapter.js +0 -398
  2165. package/dist/util/axios-types.cjs +0 -2
  2166. package/dist/util/axios-types.d.ts +0 -12
  2167. package/dist/util/axios-types.js +0 -1
  2168. package/dist/util/azure.cjs +0 -43
  2169. package/dist/util/azure.d.ts +0 -30
  2170. package/dist/util/azure.js +0 -40
  2171. package/dist/util/entrypoint_deprecation.d.ts +0 -10
  2172. package/dist/util/env.d.ts +0 -1
  2173. package/dist/util/event-source-parse.cjs +0 -17
  2174. package/dist/util/event-source-parse.d.ts +0 -1
  2175. package/dist/util/event-source-parse.js +0 -1
  2176. package/dist/util/extname.d.ts +0 -1
  2177. package/dist/util/hub.d.ts +0 -2
  2178. package/dist/util/ml-distance/distances.d.ts +0 -24
  2179. package/dist/util/ml-distance-euclidean/euclidean.d.ts +0 -2
  2180. package/dist/util/parse.d.ts +0 -2
  2181. package/dist/util/prompt-layer.cjs +0 -27
  2182. package/dist/util/prompt-layer.d.ts +0 -3
  2183. package/dist/util/prompt-layer.js +0 -23
  2184. package/dist/util/set.d.ts +0 -15
  2185. package/dist/util/stream.cjs +0 -17
  2186. package/dist/util/stream.d.ts +0 -1
  2187. package/dist/util/stream.js +0 -1
  2188. package/dist/util/testing/llms/fake.cjs +0 -82
  2189. package/dist/util/testing/llms/fake.d.ts +0 -31
  2190. package/dist/util/testing/llms/fake.js +0 -78
  2191. package/dist/util/testing/tools/calculator.cjs +0 -47
  2192. package/dist/util/testing/tools/calculator.d.ts +0 -19
  2193. package/dist/util/testing/tools/calculator.js +0 -43
  2194. package/dist/util/testing/tools/serpapi.cjs +0 -201
  2195. package/dist/util/testing/tools/serpapi.d.ts +0 -302
  2196. package/dist/util/testing/tools/serpapi.js +0 -197
  2197. package/dist/util/testing/tools/tavily_search.cjs +0 -75
  2198. package/dist/util/testing/tools/tavily_search.d.ts +0 -23
  2199. package/dist/util/testing/tools/tavily_search.js +0 -71
  2200. package/dist/util/tiktoken.cjs +0 -17
  2201. package/dist/util/tiktoken.d.ts +0 -1
  2202. package/dist/util/tiktoken.js +0 -1
  2203. package/dist/util/types.cjs +0 -5
  2204. package/dist/util/types.d.ts +0 -4
  2205. package/dist/util/types.js +0 -4
  2206. package/document.cjs +0 -1
  2207. package/document.d.cts +0 -1
  2208. package/document.d.ts +0 -1
  2209. package/document.js +0 -1
  2210. package/document_loaders/base.cjs +0 -1
  2211. package/document_loaders/base.d.cts +0 -1
  2212. package/document_loaders/base.d.ts +0 -1
  2213. package/document_loaders/base.js +0 -1
  2214. package/document_loaders/fs/buffer.cjs +0 -1
  2215. package/document_loaders/fs/buffer.d.cts +0 -1
  2216. package/document_loaders/fs/buffer.d.ts +0 -1
  2217. package/document_loaders/fs/buffer.js +0 -1
  2218. package/document_loaders/fs/directory.cjs +0 -1
  2219. package/document_loaders/fs/directory.d.cts +0 -1
  2220. package/document_loaders/fs/directory.d.ts +0 -1
  2221. package/document_loaders/fs/directory.js +0 -1
  2222. package/document_loaders/fs/json.cjs +0 -1
  2223. package/document_loaders/fs/json.d.cts +0 -1
  2224. package/document_loaders/fs/json.d.ts +0 -1
  2225. package/document_loaders/fs/json.js +0 -1
  2226. package/document_loaders/fs/multi_file.cjs +0 -1
  2227. package/document_loaders/fs/multi_file.d.cts +0 -1
  2228. package/document_loaders/fs/multi_file.d.ts +0 -1
  2229. package/document_loaders/fs/multi_file.js +0 -1
  2230. package/document_loaders/fs/text.cjs +0 -1
  2231. package/document_loaders/fs/text.d.cts +0 -1
  2232. package/document_loaders/fs/text.d.ts +0 -1
  2233. package/document_loaders/fs/text.js +0 -1
  2234. package/document_transformers/openai_functions.cjs +0 -1
  2235. package/document_transformers/openai_functions.d.cts +0 -1
  2236. package/document_transformers/openai_functions.d.ts +0 -1
  2237. package/document_transformers/openai_functions.js +0 -1
  2238. package/embeddings/cache_backed.cjs +0 -1
  2239. package/embeddings/cache_backed.d.cts +0 -1
  2240. package/embeddings/cache_backed.d.ts +0 -1
  2241. package/embeddings/cache_backed.js +0 -1
  2242. package/embeddings/fake.cjs +0 -1
  2243. package/embeddings/fake.d.cts +0 -1
  2244. package/embeddings/fake.d.ts +0 -1
  2245. package/embeddings/fake.js +0 -1
  2246. package/evaluation.cjs +0 -1
  2247. package/evaluation.d.cts +0 -1
  2248. package/evaluation.d.ts +0 -1
  2249. package/evaluation.js +0 -1
  2250. package/experimental/autogpt.cjs +0 -1
  2251. package/experimental/autogpt.d.cts +0 -1
  2252. package/experimental/autogpt.d.ts +0 -1
  2253. package/experimental/autogpt.js +0 -1
  2254. package/experimental/babyagi.cjs +0 -1
  2255. package/experimental/babyagi.d.cts +0 -1
  2256. package/experimental/babyagi.d.ts +0 -1
  2257. package/experimental/babyagi.js +0 -1
  2258. package/experimental/chains/violation_of_expectations.cjs +0 -1
  2259. package/experimental/chains/violation_of_expectations.d.cts +0 -1
  2260. package/experimental/chains/violation_of_expectations.d.ts +0 -1
  2261. package/experimental/chains/violation_of_expectations.js +0 -1
  2262. package/experimental/generative_agents.cjs +0 -1
  2263. package/experimental/generative_agents.d.cts +0 -1
  2264. package/experimental/generative_agents.d.ts +0 -1
  2265. package/experimental/generative_agents.js +0 -1
  2266. package/experimental/masking.cjs +0 -1
  2267. package/experimental/masking.d.cts +0 -1
  2268. package/experimental/masking.d.ts +0 -1
  2269. package/experimental/masking.js +0 -1
  2270. package/experimental/openai_assistant.cjs +0 -1
  2271. package/experimental/openai_assistant.d.cts +0 -1
  2272. package/experimental/openai_assistant.d.ts +0 -1
  2273. package/experimental/openai_assistant.js +0 -1
  2274. package/experimental/openai_files.cjs +0 -1
  2275. package/experimental/openai_files.d.cts +0 -1
  2276. package/experimental/openai_files.d.ts +0 -1
  2277. package/experimental/openai_files.js +0 -1
  2278. package/experimental/plan_and_execute.cjs +0 -1
  2279. package/experimental/plan_and_execute.d.cts +0 -1
  2280. package/experimental/plan_and_execute.d.ts +0 -1
  2281. package/experimental/plan_and_execute.js +0 -1
  2282. package/experimental/prompts/custom_format.cjs +0 -1
  2283. package/experimental/prompts/custom_format.d.cts +0 -1
  2284. package/experimental/prompts/custom_format.d.ts +0 -1
  2285. package/experimental/prompts/custom_format.js +0 -1
  2286. package/experimental/prompts/handlebars.cjs +0 -1
  2287. package/experimental/prompts/handlebars.d.cts +0 -1
  2288. package/experimental/prompts/handlebars.d.ts +0 -1
  2289. package/experimental/prompts/handlebars.js +0 -1
  2290. package/hub/node.cjs +0 -1
  2291. package/hub/node.d.cts +0 -1
  2292. package/hub/node.d.ts +0 -1
  2293. package/hub/node.js +0 -1
  2294. package/hub.cjs +0 -1
  2295. package/hub.d.cts +0 -1
  2296. package/hub.d.ts +0 -1
  2297. package/hub.js +0 -1
  2298. package/indexes.cjs +0 -1
  2299. package/indexes.d.cts +0 -1
  2300. package/indexes.d.ts +0 -1
  2301. package/indexes.js +0 -1
  2302. package/load/serializable.cjs +0 -1
  2303. package/load/serializable.d.cts +0 -1
  2304. package/load/serializable.d.ts +0 -1
  2305. package/load/serializable.js +0 -1
  2306. package/load.cjs +0 -1
  2307. package/load.d.cts +0 -1
  2308. package/load.d.ts +0 -1
  2309. package/load.js +0 -1
  2310. package/memory/chat_memory.cjs +0 -1
  2311. package/memory/chat_memory.d.cts +0 -1
  2312. package/memory/chat_memory.d.ts +0 -1
  2313. package/memory/chat_memory.js +0 -1
  2314. package/memory.cjs +0 -1
  2315. package/memory.d.cts +0 -1
  2316. package/memory.d.ts +0 -1
  2317. package/memory.js +0 -1
  2318. package/output_parsers/expression.cjs +0 -1
  2319. package/output_parsers/expression.d.cts +0 -1
  2320. package/output_parsers/expression.d.ts +0 -1
  2321. package/output_parsers/expression.js +0 -1
  2322. package/output_parsers.cjs +0 -1
  2323. package/output_parsers.d.cts +0 -1
  2324. package/output_parsers.d.ts +0 -1
  2325. package/output_parsers.js +0 -1
  2326. package/retrievers/contextual_compression.cjs +0 -1
  2327. package/retrievers/contextual_compression.d.cts +0 -1
  2328. package/retrievers/contextual_compression.d.ts +0 -1
  2329. package/retrievers/contextual_compression.js +0 -1
  2330. package/retrievers/document_compressors/chain_extract.cjs +0 -1
  2331. package/retrievers/document_compressors/chain_extract.d.cts +0 -1
  2332. package/retrievers/document_compressors/chain_extract.d.ts +0 -1
  2333. package/retrievers/document_compressors/chain_extract.js +0 -1
  2334. package/retrievers/document_compressors/embeddings_filter.cjs +0 -1
  2335. package/retrievers/document_compressors/embeddings_filter.d.cts +0 -1
  2336. package/retrievers/document_compressors/embeddings_filter.d.ts +0 -1
  2337. package/retrievers/document_compressors/embeddings_filter.js +0 -1
  2338. package/retrievers/document_compressors.cjs +0 -1
  2339. package/retrievers/document_compressors.d.cts +0 -1
  2340. package/retrievers/document_compressors.d.ts +0 -1
  2341. package/retrievers/document_compressors.js +0 -1
  2342. package/retrievers/ensemble.cjs +0 -1
  2343. package/retrievers/ensemble.d.cts +0 -1
  2344. package/retrievers/ensemble.d.ts +0 -1
  2345. package/retrievers/ensemble.js +0 -1
  2346. package/retrievers/hyde.cjs +0 -1
  2347. package/retrievers/hyde.d.cts +0 -1
  2348. package/retrievers/hyde.d.ts +0 -1
  2349. package/retrievers/hyde.js +0 -1
  2350. package/retrievers/matryoshka_retriever.cjs +0 -1
  2351. package/retrievers/matryoshka_retriever.d.cts +0 -1
  2352. package/retrievers/matryoshka_retriever.d.ts +0 -1
  2353. package/retrievers/matryoshka_retriever.js +0 -1
  2354. package/retrievers/multi_query.cjs +0 -1
  2355. package/retrievers/multi_query.d.cts +0 -1
  2356. package/retrievers/multi_query.d.ts +0 -1
  2357. package/retrievers/multi_query.js +0 -1
  2358. package/retrievers/multi_vector.cjs +0 -1
  2359. package/retrievers/multi_vector.d.cts +0 -1
  2360. package/retrievers/multi_vector.d.ts +0 -1
  2361. package/retrievers/multi_vector.js +0 -1
  2362. package/retrievers/parent_document.cjs +0 -1
  2363. package/retrievers/parent_document.d.cts +0 -1
  2364. package/retrievers/parent_document.d.ts +0 -1
  2365. package/retrievers/parent_document.js +0 -1
  2366. package/retrievers/score_threshold.cjs +0 -1
  2367. package/retrievers/score_threshold.d.cts +0 -1
  2368. package/retrievers/score_threshold.d.ts +0 -1
  2369. package/retrievers/score_threshold.js +0 -1
  2370. package/retrievers/self_query/functional.cjs +0 -1
  2371. package/retrievers/self_query/functional.d.cts +0 -1
  2372. package/retrievers/self_query/functional.d.ts +0 -1
  2373. package/retrievers/self_query/functional.js +0 -1
  2374. package/retrievers/self_query.cjs +0 -1
  2375. package/retrievers/self_query.d.cts +0 -1
  2376. package/retrievers/self_query.d.ts +0 -1
  2377. package/retrievers/self_query.js +0 -1
  2378. package/retrievers/time_weighted.cjs +0 -1
  2379. package/retrievers/time_weighted.d.cts +0 -1
  2380. package/retrievers/time_weighted.d.ts +0 -1
  2381. package/retrievers/time_weighted.js +0 -1
  2382. package/runnables/remote.cjs +0 -1
  2383. package/runnables/remote.d.cts +0 -1
  2384. package/runnables/remote.d.ts +0 -1
  2385. package/runnables/remote.js +0 -1
  2386. package/schema/prompt_template.cjs +0 -1
  2387. package/schema/prompt_template.d.cts +0 -1
  2388. package/schema/prompt_template.d.ts +0 -1
  2389. package/schema/prompt_template.js +0 -1
  2390. package/schema/query_constructor.cjs +0 -1
  2391. package/schema/query_constructor.d.cts +0 -1
  2392. package/schema/query_constructor.d.ts +0 -1
  2393. package/schema/query_constructor.js +0 -1
  2394. package/smith.cjs +0 -1
  2395. package/smith.d.cts +0 -1
  2396. package/smith.d.ts +0 -1
  2397. package/smith.js +0 -1
  2398. package/sql_db.cjs +0 -1
  2399. package/sql_db.d.cts +0 -1
  2400. package/sql_db.d.ts +0 -1
  2401. package/sql_db.js +0 -1
  2402. package/storage/encoder_backed.cjs +0 -1
  2403. package/storage/encoder_backed.d.cts +0 -1
  2404. package/storage/encoder_backed.d.ts +0 -1
  2405. package/storage/encoder_backed.js +0 -1
  2406. package/storage/file_system.cjs +0 -1
  2407. package/storage/file_system.d.cts +0 -1
  2408. package/storage/file_system.d.ts +0 -1
  2409. package/storage/file_system.js +0 -1
  2410. package/storage/in_memory.cjs +0 -1
  2411. package/storage/in_memory.d.cts +0 -1
  2412. package/storage/in_memory.d.ts +0 -1
  2413. package/storage/in_memory.js +0 -1
  2414. package/stores/doc/base.cjs +0 -1
  2415. package/stores/doc/base.d.cts +0 -1
  2416. package/stores/doc/base.d.ts +0 -1
  2417. package/stores/doc/base.js +0 -1
  2418. package/stores/doc/in_memory.cjs +0 -1
  2419. package/stores/doc/in_memory.d.cts +0 -1
  2420. package/stores/doc/in_memory.d.ts +0 -1
  2421. package/stores/doc/in_memory.js +0 -1
  2422. package/stores/file/in_memory.cjs +0 -1
  2423. package/stores/file/in_memory.d.cts +0 -1
  2424. package/stores/file/in_memory.d.ts +0 -1
  2425. package/stores/file/in_memory.js +0 -1
  2426. package/stores/file/node.cjs +0 -1
  2427. package/stores/file/node.d.cts +0 -1
  2428. package/stores/file/node.d.ts +0 -1
  2429. package/stores/file/node.js +0 -1
  2430. package/stores/message/in_memory.cjs +0 -1
  2431. package/stores/message/in_memory.d.cts +0 -1
  2432. package/stores/message/in_memory.d.ts +0 -1
  2433. package/stores/message/in_memory.js +0 -1
  2434. package/text_splitter.cjs +0 -1
  2435. package/text_splitter.d.cts +0 -1
  2436. package/text_splitter.d.ts +0 -1
  2437. package/text_splitter.js +0 -1
  2438. package/tools/chain.cjs +0 -1
  2439. package/tools/chain.d.cts +0 -1
  2440. package/tools/chain.d.ts +0 -1
  2441. package/tools/chain.js +0 -1
  2442. package/tools/render.cjs +0 -1
  2443. package/tools/render.d.cts +0 -1
  2444. package/tools/render.d.ts +0 -1
  2445. package/tools/render.js +0 -1
  2446. package/tools/retriever.cjs +0 -1
  2447. package/tools/retriever.d.cts +0 -1
  2448. package/tools/retriever.d.ts +0 -1
  2449. package/tools/retriever.js +0 -1
  2450. package/tools/sql.cjs +0 -1
  2451. package/tools/sql.d.cts +0 -1
  2452. package/tools/sql.d.ts +0 -1
  2453. package/tools/sql.js +0 -1
  2454. package/tools/webbrowser.cjs +0 -1
  2455. package/tools/webbrowser.d.cts +0 -1
  2456. package/tools/webbrowser.d.ts +0 -1
  2457. package/tools/webbrowser.js +0 -1
  2458. package/tools.cjs +0 -1
  2459. package/tools.d.cts +0 -1
  2460. package/tools.d.ts +0 -1
  2461. package/tools.js +0 -1
  2462. package/util/document.cjs +0 -1
  2463. package/util/document.d.cts +0 -1
  2464. package/util/document.d.ts +0 -1
  2465. package/util/document.js +0 -1
  2466. package/util/math.cjs +0 -1
  2467. package/util/math.d.cts +0 -1
  2468. package/util/math.d.ts +0 -1
  2469. package/util/math.js +0 -1
  2470. package/util/time.cjs +0 -1
  2471. package/util/time.d.cts +0 -1
  2472. package/util/time.d.ts +0 -1
  2473. package/util/time.js +0 -1
  2474. package/vectorstores/memory.cjs +0 -1
  2475. package/vectorstores/memory.d.cts +0 -1
  2476. package/vectorstores/memory.d.ts +0 -1
  2477. package/vectorstores/memory.js +0 -1
@@ -1,177 +1,126 @@
1
- import { LLMChain } from "../llm_chain.js";
1
+ import { __export } from "../../_virtual/rolldown_runtime.js";
2
2
  import { BaseChain } from "../base.js";
3
+ import { LLMChain } from "../llm_chain.js";
3
4
  import { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT } from "./prompts.js";
4
- import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation.js";
5
- /* #__PURE__ */ logVersion020MigrationWarning({
6
- oldEntrypointName: "chains/graph_qa/cypher",
7
- newPackageName: "@langchain/community",
5
+ import "../../util/entrypoint_deprecation.js";
6
+
7
+ //#region src/chains/graph_qa/cypher.ts
8
+ var cypher_exports = {};
9
+ __export(cypher_exports, {
10
+ GraphCypherQAChain: () => GraphCypherQAChain,
11
+ INTERMEDIATE_STEPS_KEY: () => INTERMEDIATE_STEPS_KEY
8
12
  });
9
- export const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
13
+ const INTERMEDIATE_STEPS_KEY = "intermediateSteps";
10
14
  /**
11
- * Chain for question-answering against a graph by generating Cypher statements.
12
- *
13
- * @example
14
- * ```typescript
15
- * const chain = new GraphCypherQAChain({
16
- * llm: new ChatOpenAI({ model: "gpt-4o-mini", temperature: 0 }),
17
- * graph: new Neo4jGraph(),
18
- * });
19
- * const res = await chain.invoke("Who played in Pulp Fiction?");
20
- * ```
21
- *
22
- * @security
23
- * This chain will execute Cypher statements against the provided database.
24
- * Make sure that the database connection uses credentials
25
- * that are narrowly-scoped to only include necessary permissions.
26
- * Failure to do so may result in data corruption or loss, since the calling code
27
- * may attempt commands that would result in deletion, mutation of data
28
- * if appropriately prompted or reading sensitive data if such data is present in the database.
29
- * The best way to guard against such negative outcomes is to (as appropriate) limit the
30
- * permissions granted to the credentials used with this tool.
31
- *
32
- * See https://js.langchain.com/docs/security for more information.
33
- */
34
- export class GraphCypherQAChain extends BaseChain {
35
- constructor(props) {
36
- super(props);
37
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
38
- Object.defineProperty(this, "graph", {
39
- enumerable: true,
40
- configurable: true,
41
- writable: true,
42
- value: void 0
43
- });
44
- Object.defineProperty(this, "cypherGenerationChain", {
45
- enumerable: true,
46
- configurable: true,
47
- writable: true,
48
- value: void 0
49
- });
50
- Object.defineProperty(this, "qaChain", {
51
- enumerable: true,
52
- configurable: true,
53
- writable: true,
54
- value: void 0
55
- });
56
- Object.defineProperty(this, "inputKey", {
57
- enumerable: true,
58
- configurable: true,
59
- writable: true,
60
- value: "query"
61
- });
62
- Object.defineProperty(this, "outputKey", {
63
- enumerable: true,
64
- configurable: true,
65
- writable: true,
66
- value: "result"
67
- });
68
- Object.defineProperty(this, "topK", {
69
- enumerable: true,
70
- configurable: true,
71
- writable: true,
72
- value: 10
73
- });
74
- Object.defineProperty(this, "returnDirect", {
75
- enumerable: true,
76
- configurable: true,
77
- writable: true,
78
- value: false
79
- });
80
- Object.defineProperty(this, "returnIntermediateSteps", {
81
- enumerable: true,
82
- configurable: true,
83
- writable: true,
84
- value: false
85
- });
86
- const { graph, cypherGenerationChain, qaChain, inputKey, outputKey, topK, returnIntermediateSteps, returnDirect, } = props;
87
- this.graph = graph;
88
- this.cypherGenerationChain = cypherGenerationChain;
89
- this.qaChain = qaChain;
90
- if (inputKey) {
91
- this.inputKey = inputKey;
92
- }
93
- if (outputKey) {
94
- this.outputKey = outputKey;
95
- }
96
- if (topK) {
97
- this.topK = topK;
98
- }
99
- if (returnIntermediateSteps) {
100
- this.returnIntermediateSteps = returnIntermediateSteps;
101
- }
102
- if (returnDirect) {
103
- this.returnDirect = returnDirect;
104
- }
105
- }
106
- _chainType() {
107
- return "graph_cypher_chain";
108
- }
109
- get inputKeys() {
110
- return [this.inputKey];
111
- }
112
- get outputKeys() {
113
- return [this.outputKey];
114
- }
115
- static fromLLM(props) {
116
- const { graph, qaPrompt = CYPHER_QA_PROMPT, cypherPrompt = CYPHER_GENERATION_PROMPT, llm, cypherLLM, qaLLM, returnIntermediateSteps = false, returnDirect = false, } = props;
117
- if (!cypherLLM && !llm) {
118
- throw new Error("Either 'llm' or 'cypherLLM' parameters must be provided");
119
- }
120
- if (!qaLLM && !llm) {
121
- throw new Error("Either 'llm' or 'qaLLM' parameters must be provided");
122
- }
123
- if (cypherLLM && qaLLM && llm) {
124
- throw new Error("You can specify up to two of 'cypherLLM', 'qaLLM', and 'llm', but not all three simultaneously.");
125
- }
126
- const qaChain = new LLMChain({
127
- llm: (qaLLM || llm),
128
- prompt: qaPrompt,
129
- });
130
- const cypherGenerationChain = new LLMChain({
131
- llm: (cypherLLM || llm),
132
- prompt: cypherPrompt,
133
- });
134
- return new GraphCypherQAChain({
135
- cypherGenerationChain,
136
- qaChain,
137
- graph,
138
- returnIntermediateSteps,
139
- returnDirect,
140
- });
141
- }
142
- extractCypher(text) {
143
- const pattern = /```(.*?)```/s;
144
- const matches = text.match(pattern);
145
- return matches ? matches[1] : text;
146
- }
147
- async _call(values, runManager) {
148
- const callbacks = runManager?.getChild();
149
- const question = values[this.inputKey];
150
- const intermediateSteps = [];
151
- const generatedCypher = await this.cypherGenerationChain.call({ question, schema: this.graph.getSchema() }, callbacks);
152
- const extractedCypher = this.extractCypher(generatedCypher.text);
153
- await runManager?.handleText(`Generated Cypher:\n`);
154
- await runManager?.handleText(`${extractedCypher} green\n`);
155
- intermediateSteps.push({ query: extractedCypher });
156
- let chainResult;
157
- const context = await this.graph.query(extractedCypher, {
158
- topK: this.topK,
159
- });
160
- if (this.returnDirect) {
161
- chainResult = { [this.outputKey]: context };
162
- }
163
- else {
164
- await runManager?.handleText("Full Context:\n");
165
- await runManager?.handleText(`${context} green\n`);
166
- intermediateSteps.push({ context });
167
- const result = await this.qaChain.call({ question, context: JSON.stringify(context) }, callbacks);
168
- chainResult = {
169
- [this.outputKey]: result[this.qaChain.outputKey],
170
- };
171
- }
172
- if (this.returnIntermediateSteps) {
173
- chainResult[INTERMEDIATE_STEPS_KEY] = intermediateSteps;
174
- }
175
- return chainResult;
176
- }
177
- }
15
+ * Chain for question-answering against a graph by generating Cypher statements.
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const chain = new GraphCypherQAChain({
20
+ * llm: new ChatOpenAI({ model: "gpt-4o-mini", temperature: 0 }),
21
+ * graph: new Neo4jGraph(),
22
+ * });
23
+ * const res = await chain.invoke("Who played in Pulp Fiction?");
24
+ * ```
25
+ *
26
+ * @security
27
+ * This chain will execute Cypher statements against the provided database.
28
+ * Make sure that the database connection uses credentials
29
+ * that are narrowly-scoped to only include necessary permissions.
30
+ * Failure to do so may result in data corruption or loss, since the calling code
31
+ * may attempt commands that would result in deletion, mutation of data
32
+ * if appropriately prompted or reading sensitive data if such data is present in the database.
33
+ * The best way to guard against such negative outcomes is to (as appropriate) limit the
34
+ * permissions granted to the credentials used with this tool.
35
+ *
36
+ * See https://js.langchain.com/docs/security for more information.
37
+ */
38
+ var GraphCypherQAChain = class GraphCypherQAChain extends BaseChain {
39
+ graph;
40
+ cypherGenerationChain;
41
+ qaChain;
42
+ inputKey = "query";
43
+ outputKey = "result";
44
+ topK = 10;
45
+ returnDirect = false;
46
+ returnIntermediateSteps = false;
47
+ constructor(props) {
48
+ super(props);
49
+ const { graph, cypherGenerationChain, qaChain, inputKey, outputKey, topK, returnIntermediateSteps, returnDirect } = props;
50
+ this.graph = graph;
51
+ this.cypherGenerationChain = cypherGenerationChain;
52
+ this.qaChain = qaChain;
53
+ if (inputKey) this.inputKey = inputKey;
54
+ if (outputKey) this.outputKey = outputKey;
55
+ if (topK) this.topK = topK;
56
+ if (returnIntermediateSteps) this.returnIntermediateSteps = returnIntermediateSteps;
57
+ if (returnDirect) this.returnDirect = returnDirect;
58
+ }
59
+ _chainType() {
60
+ return "graph_cypher_chain";
61
+ }
62
+ get inputKeys() {
63
+ return [this.inputKey];
64
+ }
65
+ get outputKeys() {
66
+ return [this.outputKey];
67
+ }
68
+ static fromLLM(props) {
69
+ const { graph, qaPrompt = CYPHER_QA_PROMPT, cypherPrompt = CYPHER_GENERATION_PROMPT, llm, cypherLLM, qaLLM, returnIntermediateSteps = false, returnDirect = false } = props;
70
+ if (!cypherLLM && !llm) throw new Error("Either 'llm' or 'cypherLLM' parameters must be provided");
71
+ if (!qaLLM && !llm) throw new Error("Either 'llm' or 'qaLLM' parameters must be provided");
72
+ if (cypherLLM && qaLLM && llm) throw new Error("You can specify up to two of 'cypherLLM', 'qaLLM', and 'llm', but not all three simultaneously.");
73
+ const qaChain = new LLMChain({
74
+ llm: qaLLM || llm,
75
+ prompt: qaPrompt
76
+ });
77
+ const cypherGenerationChain = new LLMChain({
78
+ llm: cypherLLM || llm,
79
+ prompt: cypherPrompt
80
+ });
81
+ return new GraphCypherQAChain({
82
+ cypherGenerationChain,
83
+ qaChain,
84
+ graph,
85
+ returnIntermediateSteps,
86
+ returnDirect
87
+ });
88
+ }
89
+ extractCypher(text) {
90
+ const pattern = /```(.*?)```/s;
91
+ const matches = text.match(pattern);
92
+ return matches ? matches[1] : text;
93
+ }
94
+ async _call(values, runManager) {
95
+ const callbacks = runManager?.getChild();
96
+ const question = values[this.inputKey];
97
+ const intermediateSteps = [];
98
+ const generatedCypher = await this.cypherGenerationChain.call({
99
+ question,
100
+ schema: this.graph.getSchema()
101
+ }, callbacks);
102
+ const extractedCypher = this.extractCypher(generatedCypher.text);
103
+ await runManager?.handleText(`Generated Cypher:\n`);
104
+ await runManager?.handleText(`${extractedCypher} green\n`);
105
+ intermediateSteps.push({ query: extractedCypher });
106
+ let chainResult;
107
+ const context = await this.graph.query(extractedCypher, { topK: this.topK });
108
+ if (this.returnDirect) chainResult = { [this.outputKey]: context };
109
+ else {
110
+ await runManager?.handleText("Full Context:\n");
111
+ await runManager?.handleText(`${context} green\n`);
112
+ intermediateSteps.push({ context });
113
+ const result = await this.qaChain.call({
114
+ question,
115
+ context: JSON.stringify(context)
116
+ }, callbacks);
117
+ chainResult = { [this.outputKey]: result[this.qaChain.outputKey] };
118
+ }
119
+ if (this.returnIntermediateSteps) chainResult[INTERMEDIATE_STEPS_KEY] = intermediateSteps;
120
+ return chainResult;
121
+ }
122
+ };
123
+
124
+ //#endregion
125
+ export { GraphCypherQAChain, INTERMEDIATE_STEPS_KEY, cypher_exports };
126
+ //# sourceMappingURL=cypher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cypher.js","names":["props: GraphCypherQAChainInput","props: FromLLMInput","text: string","values: ChainValues","runManager?: CallbackManagerForChainRun","chainResult: ChainValues"],"sources":["../../../src/chains/graph_qa/cypher.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { LLMChain } from \"../llm_chain.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT } from \"./prompts.js\";\nimport { logVersion020MigrationWarning } from \"../../util/entrypoint_deprecation.js\";\n\n/* #__PURE__ */ logVersion020MigrationWarning({\n oldEntrypointName: \"chains/graph_qa/cypher\",\n newPackageName: \"@langchain/community\",\n});\n\nexport const INTERMEDIATE_STEPS_KEY = \"intermediateSteps\";\n\nexport interface GraphCypherQAChainInput extends ChainInputs {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n graph: any;\n cypherGenerationChain: LLMChain;\n qaChain: LLMChain;\n inputKey?: string;\n outputKey?: string;\n topK?: number;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\n\nexport interface FromLLMInput {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n graph: any;\n llm?: BaseLanguageModelInterface;\n cypherLLM?: BaseLanguageModelInterface;\n qaLLM?: BaseLanguageModelInterface;\n qaPrompt?: BasePromptTemplate;\n cypherPrompt?: BasePromptTemplate;\n returnIntermediateSteps?: boolean;\n returnDirect?: boolean;\n}\n\n/**\n * Chain for question-answering against a graph by generating Cypher statements.\n *\n * @example\n * ```typescript\n * const chain = new GraphCypherQAChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * graph: new Neo4jGraph(),\n * });\n * const res = await chain.invoke(\"Who played in Pulp Fiction?\");\n * ```\n *\n * @security\n * This chain will execute Cypher statements against the provided database.\n * Make sure that the database connection uses credentials\n * that are narrowly-scoped to only include necessary permissions.\n * Failure to do so may result in data corruption or loss, since the calling code\n * may attempt commands that would result in deletion, mutation of data\n * if appropriately prompted or reading sensitive data if such data is present in the database.\n * The best way to guard against such negative outcomes is to (as appropriate) limit the\n * permissions granted to the credentials used with this tool.\n *\n * See https://js.langchain.com/docs/security for more information.\n */\nexport class GraphCypherQAChain extends BaseChain {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private graph: any;\n\n private cypherGenerationChain: LLMChain;\n\n private qaChain: LLMChain;\n\n private inputKey = \"query\";\n\n private outputKey = \"result\";\n\n private topK = 10;\n\n private returnDirect = false;\n\n private returnIntermediateSteps = false;\n\n constructor(props: GraphCypherQAChainInput) {\n super(props);\n const {\n graph,\n cypherGenerationChain,\n qaChain,\n inputKey,\n outputKey,\n topK,\n returnIntermediateSteps,\n returnDirect,\n } = props;\n\n this.graph = graph;\n this.cypherGenerationChain = cypherGenerationChain;\n this.qaChain = qaChain;\n\n if (inputKey) {\n this.inputKey = inputKey;\n }\n if (outputKey) {\n this.outputKey = outputKey;\n }\n if (topK) {\n this.topK = topK;\n }\n if (returnIntermediateSteps) {\n this.returnIntermediateSteps = returnIntermediateSteps;\n }\n if (returnDirect) {\n this.returnDirect = returnDirect;\n }\n }\n\n _chainType() {\n return \"graph_cypher_chain\" as const;\n }\n\n get inputKeys(): string[] {\n return [this.inputKey];\n }\n\n get outputKeys(): string[] {\n return [this.outputKey];\n }\n\n static fromLLM(props: FromLLMInput): GraphCypherQAChain {\n const {\n graph,\n qaPrompt = CYPHER_QA_PROMPT,\n cypherPrompt = CYPHER_GENERATION_PROMPT,\n llm,\n cypherLLM,\n qaLLM,\n returnIntermediateSteps = false,\n returnDirect = false,\n } = props;\n\n if (!cypherLLM && !llm) {\n throw new Error(\n \"Either 'llm' or 'cypherLLM' parameters must be provided\"\n );\n }\n\n if (!qaLLM && !llm) {\n throw new Error(\"Either 'llm' or 'qaLLM' parameters must be provided\");\n }\n\n if (cypherLLM && qaLLM && llm) {\n throw new Error(\n \"You can specify up to two of 'cypherLLM', 'qaLLM', and 'llm', but not all three simultaneously.\"\n );\n }\n\n const qaChain = new LLMChain({\n llm: (qaLLM || llm) as BaseLanguageModelInterface,\n prompt: qaPrompt,\n });\n\n const cypherGenerationChain = new LLMChain({\n llm: (cypherLLM || llm) as BaseLanguageModelInterface,\n prompt: cypherPrompt,\n });\n\n return new GraphCypherQAChain({\n cypherGenerationChain,\n qaChain,\n graph,\n returnIntermediateSteps,\n returnDirect,\n });\n }\n\n private extractCypher(text: string): string {\n const pattern = /```(.*?)```/s;\n const matches = text.match(pattern);\n return matches ? matches[1] : text;\n }\n\n async _call(\n values: ChainValues,\n runManager?: CallbackManagerForChainRun\n ): Promise<ChainValues> {\n const callbacks = runManager?.getChild();\n const question = values[this.inputKey];\n\n const intermediateSteps = [];\n\n const generatedCypher = await this.cypherGenerationChain.call(\n { question, schema: this.graph.getSchema() },\n callbacks\n );\n\n const extractedCypher = this.extractCypher(generatedCypher.text);\n\n await runManager?.handleText(`Generated Cypher:\\n`);\n await runManager?.handleText(`${extractedCypher} green\\n`);\n\n intermediateSteps.push({ query: extractedCypher });\n\n let chainResult: ChainValues;\n const context = await this.graph.query(extractedCypher, {\n topK: this.topK,\n });\n\n if (this.returnDirect) {\n chainResult = { [this.outputKey]: context };\n } else {\n await runManager?.handleText(\"Full Context:\\n\");\n await runManager?.handleText(`${context} green\\n`);\n\n intermediateSteps.push({ context });\n\n const result = await this.qaChain.call(\n { question, context: JSON.stringify(context) },\n callbacks\n );\n\n chainResult = {\n [this.outputKey]: result[this.qaChain.outputKey],\n };\n }\n\n if (this.returnIntermediateSteps) {\n chainResult[INTERMEDIATE_STEPS_KEY] = intermediateSteps;\n }\n\n return chainResult;\n }\n}\n"],"mappings":";;;;;;;;;;;;AAcA,MAAa,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;AAkDtC,IAAa,qBAAb,MAAa,2BAA2B,UAAU;CAEhD,AAAQ;CAER,AAAQ;CAER,AAAQ;CAER,AAAQ,WAAW;CAEnB,AAAQ,YAAY;CAEpB,AAAQ,OAAO;CAEf,AAAQ,eAAe;CAEvB,AAAQ,0BAA0B;CAElC,YAAYA,OAAgC;EAC1C,MAAM,MAAM;EACZ,MAAM,EACJ,OACA,uBACA,SACA,UACA,WACA,MACA,yBACA,cACD,GAAG;EAEJ,KAAK,QAAQ;EACb,KAAK,wBAAwB;EAC7B,KAAK,UAAU;AAEf,MAAI,UACF,KAAK,WAAW;AAElB,MAAI,WACF,KAAK,YAAY;AAEnB,MAAI,MACF,KAAK,OAAO;AAEd,MAAI,yBACF,KAAK,0BAA0B;AAEjC,MAAI,cACF,KAAK,eAAe;CAEvB;CAED,aAAa;AACX,SAAO;CACR;CAED,IAAI,YAAsB;AACxB,SAAO,CAAC,KAAK,QAAS;CACvB;CAED,IAAI,aAAuB;AACzB,SAAO,CAAC,KAAK,SAAU;CACxB;CAED,OAAO,QAAQC,OAAyC;EACtD,MAAM,EACJ,OACA,WAAW,kBACX,eAAe,0BACf,KACA,WACA,OACA,0BAA0B,OAC1B,eAAe,OAChB,GAAG;AAEJ,MAAI,CAAC,aAAa,CAAC,IACjB,OAAM,IAAI,MACR;AAIJ,MAAI,CAAC,SAAS,CAAC,IACb,OAAM,IAAI,MAAM;AAGlB,MAAI,aAAa,SAAS,IACxB,OAAM,IAAI,MACR;EAIJ,MAAM,UAAU,IAAI,SAAS;GAC3B,KAAM,SAAS;GACf,QAAQ;EACT;EAED,MAAM,wBAAwB,IAAI,SAAS;GACzC,KAAM,aAAa;GACnB,QAAQ;EACT;AAED,SAAO,IAAI,mBAAmB;GAC5B;GACA;GACA;GACA;GACA;EACD;CACF;CAED,AAAQ,cAAcC,MAAsB;EAC1C,MAAM,UAAU;EAChB,MAAM,UAAU,KAAK,MAAM,QAAQ;AACnC,SAAO,UAAU,QAAQ,KAAK;CAC/B;CAED,MAAM,MACJC,QACAC,YACsB;EACtB,MAAM,YAAY,YAAY,UAAU;EACxC,MAAM,WAAW,OAAO,KAAK;EAE7B,MAAM,oBAAoB,CAAE;EAE5B,MAAM,kBAAkB,MAAM,KAAK,sBAAsB,KACvD;GAAE;GAAU,QAAQ,KAAK,MAAM,WAAW;EAAE,GAC5C,UACD;EAED,MAAM,kBAAkB,KAAK,cAAc,gBAAgB,KAAK;EAEhE,MAAM,YAAY,WAAW,CAAC,mBAAmB,CAAC,CAAC;EACnD,MAAM,YAAY,WAAW,GAAG,gBAAgB,QAAQ,CAAC,CAAC;EAE1D,kBAAkB,KAAK,EAAE,OAAO,gBAAiB,EAAC;EAElD,IAAIC;EACJ,MAAM,UAAU,MAAM,KAAK,MAAM,MAAM,iBAAiB,EACtD,MAAM,KAAK,KACZ,EAAC;AAEF,MAAI,KAAK,cACP,cAAc,GAAG,KAAK,YAAY,QAAS;OACtC;GACL,MAAM,YAAY,WAAW,kBAAkB;GAC/C,MAAM,YAAY,WAAW,GAAG,QAAQ,QAAQ,CAAC,CAAC;GAElD,kBAAkB,KAAK,EAAE,QAAS,EAAC;GAEnC,MAAM,SAAS,MAAM,KAAK,QAAQ,KAChC;IAAE;IAAU,SAAS,KAAK,UAAU,QAAQ;GAAE,GAC9C,UACD;GAED,cAAc,GACX,KAAK,YAAY,OAAO,KAAK,QAAQ,WACvC;EACF;AAED,MAAI,KAAK,yBACP,YAAY,0BAA0B;AAGxC,SAAO;CACR;AACF"}
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CYPHER_QA_PROMPT = exports.CYPHER_GENERATION_PROMPT = void 0;
4
- const prompts_1 = require("@langchain/core/prompts");
1
+ const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
2
+ const __langchain_core_prompts = require_rolldown_runtime.__toESM(require("@langchain/core/prompts"));
3
+
4
+ //#region src/chains/graph_qa/prompts.ts
5
5
  const CYPHER_GENERATION_TEMPLATE = `Task:Generate Cypher statement to query a graph database.
6
6
  Instructions:
7
7
  Use only the provided relationship types and properties in the schema.
@@ -14,9 +14,9 @@ Do not include any text except the generated Cypher statement.
14
14
 
15
15
  The question is:
16
16
  {question}`;
17
- exports.CYPHER_GENERATION_PROMPT = new prompts_1.PromptTemplate({
18
- template: CYPHER_GENERATION_TEMPLATE,
19
- inputVariables: ["schema", "question"],
17
+ const CYPHER_GENERATION_PROMPT = /* @__PURE__ */ new __langchain_core_prompts.PromptTemplate({
18
+ template: CYPHER_GENERATION_TEMPLATE,
19
+ inputVariables: ["schema", "question"]
20
20
  });
21
21
  const CYPHER_QA_TEMPLATE = `You are an assistant that helps to form nice and human understandable answers.
22
22
  The information part contains the provided information that you must use to construct an answer.
@@ -35,7 +35,12 @@ Information:
35
35
 
36
36
  Question: {question}
37
37
  Helpful Answer:`;
38
- exports.CYPHER_QA_PROMPT = new prompts_1.PromptTemplate({
39
- template: CYPHER_QA_TEMPLATE,
40
- inputVariables: ["context", "question"],
38
+ const CYPHER_QA_PROMPT = /* @__PURE__ */ new __langchain_core_prompts.PromptTemplate({
39
+ template: CYPHER_QA_TEMPLATE,
40
+ inputVariables: ["context", "question"]
41
41
  });
42
+
43
+ //#endregion
44
+ exports.CYPHER_GENERATION_PROMPT = CYPHER_GENERATION_PROMPT;
45
+ exports.CYPHER_QA_PROMPT = CYPHER_QA_PROMPT;
46
+ //# sourceMappingURL=prompts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.cjs","names":["PromptTemplate"],"sources":["../../../src/chains/graph_qa/prompts.ts"],"sourcesContent":["import { PromptTemplate } from \"@langchain/core/prompts\";\n\nconst CYPHER_GENERATION_TEMPLATE = `Task:Generate Cypher statement to query a graph database.\nInstructions:\nUse only the provided relationship types and properties in the schema.\nDo not use any other relationship types or properties that are not provided.\nSchema:\n{schema}\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\n\nThe question is:\n{question}`;\nexport const CYPHER_GENERATION_PROMPT = /* #__PURE__ */ new PromptTemplate({\n template: CYPHER_GENERATION_TEMPLATE,\n inputVariables: [\"schema\", \"question\"],\n});\n\nconst CYPHER_QA_TEMPLATE = `You are an assistant that helps to form nice and human understandable answers.\nThe information part contains the provided information that you must use to construct an answer.\nThe provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it.\nMake the answer sound as a response to the question. Do not mention that you based the result on the given information.\nHere is an example:\n\nQuestion: Which managers own Neo4j stocks?\nContext:[manager:CTL LLC, manager:JANE STREET GROUP LLC]\nHelpful Answer: CTL LLC, JANE STREET GROUP LLC owns Neo4j stocks.\n\nFollow this example when generating answers.\nIf the provided information is empty, say that you don't know the answer.\nInformation:\n{context}\n\nQuestion: {question}\nHelpful Answer:`;\nexport const CYPHER_QA_PROMPT = /* #__PURE__ */ new PromptTemplate({\n template: CYPHER_QA_TEMPLATE,\n inputVariables: [\"context\", \"question\"],\n});\n"],"mappings":";;;;AAEA,MAAM,6BAA6B,CAAC;;;;;;;;;;;UAW1B,CAAC;AACX,MAAa,2CAA2C,IAAIA,wCAAe;CACzE,UAAU;CACV,gBAAgB,CAAC,UAAU,UAAW;AACvC;AAED,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;eAgBb,CAAC;AAChB,MAAa,mCAAmC,IAAIA,wCAAe;CACjE,UAAU;CACV,gBAAgB,CAAC,WAAW,UAAW;AACxC"}
@@ -1,4 +1,6 @@
1
1
  import { PromptTemplate } from "@langchain/core/prompts";
2
+
3
+ //#region src/chains/graph_qa/prompts.ts
2
4
  const CYPHER_GENERATION_TEMPLATE = `Task:Generate Cypher statement to query a graph database.
3
5
  Instructions:
4
6
  Use only the provided relationship types and properties in the schema.
@@ -11,9 +13,9 @@ Do not include any text except the generated Cypher statement.
11
13
 
12
14
  The question is:
13
15
  {question}`;
14
- export const CYPHER_GENERATION_PROMPT = /* #__PURE__ */ new PromptTemplate({
15
- template: CYPHER_GENERATION_TEMPLATE,
16
- inputVariables: ["schema", "question"],
16
+ const CYPHER_GENERATION_PROMPT = /* @__PURE__ */ new PromptTemplate({
17
+ template: CYPHER_GENERATION_TEMPLATE,
18
+ inputVariables: ["schema", "question"]
17
19
  });
18
20
  const CYPHER_QA_TEMPLATE = `You are an assistant that helps to form nice and human understandable answers.
19
21
  The information part contains the provided information that you must use to construct an answer.
@@ -32,7 +34,11 @@ Information:
32
34
 
33
35
  Question: {question}
34
36
  Helpful Answer:`;
35
- export const CYPHER_QA_PROMPT = /* #__PURE__ */ new PromptTemplate({
36
- template: CYPHER_QA_TEMPLATE,
37
- inputVariables: ["context", "question"],
37
+ const CYPHER_QA_PROMPT = /* @__PURE__ */ new PromptTemplate({
38
+ template: CYPHER_QA_TEMPLATE,
39
+ inputVariables: ["context", "question"]
38
40
  });
41
+
42
+ //#endregion
43
+ export { CYPHER_GENERATION_PROMPT, CYPHER_QA_PROMPT };
44
+ //# sourceMappingURL=prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts.js","names":[],"sources":["../../../src/chains/graph_qa/prompts.ts"],"sourcesContent":["import { PromptTemplate } from \"@langchain/core/prompts\";\n\nconst CYPHER_GENERATION_TEMPLATE = `Task:Generate Cypher statement to query a graph database.\nInstructions:\nUse only the provided relationship types and properties in the schema.\nDo not use any other relationship types or properties that are not provided.\nSchema:\n{schema}\nNote: Do not include any explanations or apologies in your responses.\nDo not respond to any questions that might ask anything else than for you to construct a Cypher statement.\nDo not include any text except the generated Cypher statement.\n\nThe question is:\n{question}`;\nexport const CYPHER_GENERATION_PROMPT = /* #__PURE__ */ new PromptTemplate({\n template: CYPHER_GENERATION_TEMPLATE,\n inputVariables: [\"schema\", \"question\"],\n});\n\nconst CYPHER_QA_TEMPLATE = `You are an assistant that helps to form nice and human understandable answers.\nThe information part contains the provided information that you must use to construct an answer.\nThe provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it.\nMake the answer sound as a response to the question. Do not mention that you based the result on the given information.\nHere is an example:\n\nQuestion: Which managers own Neo4j stocks?\nContext:[manager:CTL LLC, manager:JANE STREET GROUP LLC]\nHelpful Answer: CTL LLC, JANE STREET GROUP LLC owns Neo4j stocks.\n\nFollow this example when generating answers.\nIf the provided information is empty, say that you don't know the answer.\nInformation:\n{context}\n\nQuestion: {question}\nHelpful Answer:`;\nexport const CYPHER_QA_PROMPT = /* #__PURE__ */ new PromptTemplate({\n template: CYPHER_QA_TEMPLATE,\n inputVariables: [\"context\", \"question\"],\n});\n"],"mappings":";;;AAEA,MAAM,6BAA6B,CAAC;;;;;;;;;;;UAW1B,CAAC;AACX,MAAa,2CAA2C,IAAI,eAAe;CACzE,UAAU;CACV,gBAAgB,CAAC,UAAU,UAAW;AACvC;AAED,MAAM,qBAAqB,CAAC;;;;;;;;;;;;;;;;eAgBb,CAAC;AAChB,MAAa,mCAAmC,IAAI,eAAe;CACjE,UAAU;CACV,gBAAgB,CAAC,WAAW,UAAW;AACxC"}
@@ -1,53 +1,55 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createHistoryAwareRetriever = createHistoryAwareRetriever;
4
- const runnables_1 = require("@langchain/core/runnables");
5
- const output_parsers_1 = require("@langchain/core/output_parsers");
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const __langchain_core_runnables = require_rolldown_runtime.__toESM(require("@langchain/core/runnables"));
3
+ const __langchain_core_output_parsers = require_rolldown_runtime.__toESM(require("@langchain/core/output_parsers"));
4
+
5
+ //#region src/chains/history_aware_retriever.ts
6
+ var history_aware_retriever_exports = {};
7
+ require_rolldown_runtime.__export(history_aware_retriever_exports, { createHistoryAwareRetriever: () => createHistoryAwareRetriever });
6
8
  /**
7
- * Create a chain that takes conversation history and returns documents.
8
- * If there is no `chat_history`, then the `input` is just passed directly to the
9
- * retriever. If there is `chat_history`, then the prompt and LLM will be used
10
- * to generate a search query. That search query is then passed to the retriever.
11
- * @param {CreateHistoryAwareRetriever} params
12
- * @returns An LCEL Runnable. The runnable input must take in `input`, and if there
13
- * is chat history should take it in the form of `chat_history`.
14
- * The Runnable output is a list of Documents
15
- * @example
16
- * ```typescript
17
- * // yarn add langchain @langchain/openai
18
- *
19
- * import { ChatOpenAI } from "@langchain/openai";
20
- * import { pull } from "langchain/hub";
21
- * import { createHistoryAwareRetriever } from "langchain/chains/history_aware_retriever";
22
- *
23
- * const rephrasePrompt = await pull("langchain-ai/chat-langchain-rephrase");
24
- * const llm = new ChatOpenAI({ model: "gpt-4o-mini" });
25
- * const retriever = ...
26
- * const chain = await createHistoryAwareRetriever({
27
- * llm,
28
- * retriever,
29
- * rephrasePrompt,
30
- * });
31
- * const result = await chain.invoke({"input": "...", "chat_history": [] })
32
- * ```
33
- */
34
- async function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt, }) {
35
- if (!rephrasePrompt.inputVariables.includes("input")) {
36
- throw new Error(`Expected "input" to be a prompt variable, but got ${JSON.stringify(rephrasePrompt.inputVariables)}`);
37
- }
38
- const retrieveDocuments = runnables_1.RunnableBranch.from([
39
- [
40
- (input) => !input.chat_history || input.chat_history.length === 0,
41
- runnables_1.RunnableSequence.from([(input) => input.input, retriever]),
42
- ],
43
- runnables_1.RunnableSequence.from([
44
- rephrasePrompt,
45
- llm,
46
- new output_parsers_1.StringOutputParser(),
47
- retriever,
48
- ]),
49
- ]).withConfig({
50
- runName: "history_aware_retriever",
51
- });
52
- return retrieveDocuments;
9
+ * Create a chain that takes conversation history and returns documents.
10
+ * If there is no `chat_history`, then the `input` is just passed directly to the
11
+ * retriever. If there is `chat_history`, then the prompt and LLM will be used
12
+ * to generate a search query. That search query is then passed to the retriever.
13
+ * @param {CreateHistoryAwareRetriever} params
14
+ * @returns An LCEL Runnable. The runnable input must take in `input`, and if there
15
+ * is chat history should take it in the form of `chat_history`.
16
+ * The Runnable output is a list of Documents
17
+ * @example
18
+ * ```typescript
19
+ * // pnpm add langchain @langchain/openai
20
+ *
21
+ * import { ChatOpenAI } from "@langchain/openai";
22
+ * import { pull } from "langchain/hub";
23
+ * import { createHistoryAwareRetriever } from "langchain/chains/history_aware_retriever";
24
+ *
25
+ * const rephrasePrompt = await pull("langchain-ai/chat-langchain-rephrase");
26
+ * const llm = new ChatOpenAI({ model: "gpt-4o-mini" });
27
+ * const retriever = ...
28
+ * const chain = await createHistoryAwareRetriever({
29
+ * llm,
30
+ * retriever,
31
+ * rephrasePrompt,
32
+ * });
33
+ * const result = await chain.invoke({"input": "...", "chat_history": [] })
34
+ * ```
35
+ */
36
+ async function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt }) {
37
+ if (!rephrasePrompt.inputVariables.includes("input")) throw new Error(`Expected "input" to be a prompt variable, but got ${JSON.stringify(rephrasePrompt.inputVariables)}`);
38
+ const retrieveDocuments = __langchain_core_runnables.RunnableBranch.from([[(input) => !input.chat_history || input.chat_history.length === 0, __langchain_core_runnables.RunnableSequence.from([(input) => input.input, retriever])], __langchain_core_runnables.RunnableSequence.from([
39
+ rephrasePrompt,
40
+ llm,
41
+ new __langchain_core_output_parsers.StringOutputParser(),
42
+ retriever
43
+ ])]).withConfig({ runName: "history_aware_retriever" });
44
+ return retrieveDocuments;
53
45
  }
46
+
47
+ //#endregion
48
+ exports.createHistoryAwareRetriever = createHistoryAwareRetriever;
49
+ Object.defineProperty(exports, 'history_aware_retriever_exports', {
50
+ enumerable: true,
51
+ get: function () {
52
+ return history_aware_retriever_exports;
53
+ }
54
+ });
55
+ //# sourceMappingURL=history_aware_retriever.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history_aware_retriever.cjs","names":["RunnableBranch","RunnableSequence","StringOutputParser"],"sources":["../../src/chains/history_aware_retriever.ts"],"sourcesContent":["import type { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport {\n type Runnable,\n type RunnableInterface,\n RunnableSequence,\n RunnableBranch,\n} from \"@langchain/core/runnables\";\nimport { type BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { StringOutputParser } from \"@langchain/core/output_parsers\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport type { BaseMessage } from \"@langchain/core/messages\";\n\n/**\n * Params for the createHistoryAwareRetriever method.\n */\nexport type CreateHistoryAwareRetrieverParams = {\n /**\n * Language model to use for generating a search term given chat history.\n */\n llm: LanguageModelLike;\n /**\n * RetrieverLike object that takes a string as input and outputs a list of Documents.\n */\n retriever: RunnableInterface<string, DocumentInterface[]>;\n /**\n * The prompt used to generate the search query for the retriever.\n */\n rephrasePrompt: BasePromptTemplate;\n};\n\n/**\n * Create a chain that takes conversation history and returns documents.\n * If there is no `chat_history`, then the `input` is just passed directly to the\n * retriever. If there is `chat_history`, then the prompt and LLM will be used\n * to generate a search query. That search query is then passed to the retriever.\n * @param {CreateHistoryAwareRetriever} params\n * @returns An LCEL Runnable. The runnable input must take in `input`, and if there\n * is chat history should take it in the form of `chat_history`.\n * The Runnable output is a list of Documents\n * @example\n * ```typescript\n * // pnpm add langchain @langchain/openai\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n * import { pull } from \"langchain/hub\";\n * import { createHistoryAwareRetriever } from \"langchain/chains/history_aware_retriever\";\n *\n * const rephrasePrompt = await pull(\"langchain-ai/chat-langchain-rephrase\");\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const retriever = ...\n * const chain = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt,\n * });\n * const result = await chain.invoke({\"input\": \"...\", \"chat_history\": [] })\n * ```\n */\nexport async function createHistoryAwareRetriever({\n llm,\n retriever,\n rephrasePrompt,\n}: CreateHistoryAwareRetrieverParams): Promise<\n Runnable<\n { input: string; chat_history: string | BaseMessage[] },\n DocumentInterface[]\n >\n> {\n if (!rephrasePrompt.inputVariables.includes(\"input\")) {\n throw new Error(\n `Expected \"input\" to be a prompt variable, but got ${JSON.stringify(\n rephrasePrompt.inputVariables\n )}`\n );\n }\n const retrieveDocuments = RunnableBranch.from([\n [\n (input) => !input.chat_history || input.chat_history.length === 0,\n RunnableSequence.from([(input) => input.input, retriever]),\n ],\n RunnableSequence.from([\n rephrasePrompt,\n llm,\n new StringOutputParser(),\n retriever,\n ]),\n ]).withConfig({\n runName: \"history_aware_retriever\",\n });\n return retrieveDocuments;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DA,eAAsB,4BAA4B,EAChD,KACA,WACA,gBACkC,EAKlC;AACA,KAAI,CAAC,eAAe,eAAe,SAAS,QAAQ,CAClD,OAAM,IAAI,MACR,CAAC,kDAAkD,EAAE,KAAK,UACxD,eAAe,eAChB,EAAE;CAGP,MAAM,oBAAoBA,0CAAe,KAAK,CAC5C,CACE,CAAC,UAAU,CAAC,MAAM,gBAAgB,MAAM,aAAa,WAAW,GAChEC,4CAAiB,KAAK,CAAC,CAAC,UAAU,MAAM,OAAO,SAAU,EAAC,AAC3D,GACDA,4CAAiB,KAAK;EACpB;EACA;EACA,IAAIC;EACJ;CACD,EAAC,AACH,EAAC,CAAC,WAAW,EACZ,SAAS,0BACV,EAAC;AACF,QAAO;AACR"}
@@ -0,0 +1,64 @@
1
+ import { LanguageModelLike } from "@langchain/core/language_models/base";
2
+ import { BasePromptTemplate } from "@langchain/core/prompts";
3
+ import { Runnable, RunnableInterface } from "@langchain/core/runnables";
4
+ import { DocumentInterface } from "@langchain/core/documents";
5
+ import { BaseMessage } from "@langchain/core/messages";
6
+
7
+ //#region src/chains/history_aware_retriever.d.ts
8
+
9
+ /**
10
+ * Params for the createHistoryAwareRetriever method.
11
+ */
12
+ type CreateHistoryAwareRetrieverParams = {
13
+ /**
14
+ * Language model to use for generating a search term given chat history.
15
+ */
16
+ llm: LanguageModelLike;
17
+ /**
18
+ * RetrieverLike object that takes a string as input and outputs a list of Documents.
19
+ */
20
+ retriever: RunnableInterface<string, DocumentInterface[]>;
21
+ /**
22
+ * The prompt used to generate the search query for the retriever.
23
+ */
24
+ rephrasePrompt: BasePromptTemplate;
25
+ };
26
+ /**
27
+ * Create a chain that takes conversation history and returns documents.
28
+ * If there is no `chat_history`, then the `input` is just passed directly to the
29
+ * retriever. If there is `chat_history`, then the prompt and LLM will be used
30
+ * to generate a search query. That search query is then passed to the retriever.
31
+ * @param {CreateHistoryAwareRetriever} params
32
+ * @returns An LCEL Runnable. The runnable input must take in `input`, and if there
33
+ * is chat history should take it in the form of `chat_history`.
34
+ * The Runnable output is a list of Documents
35
+ * @example
36
+ * ```typescript
37
+ * // pnpm add langchain @langchain/openai
38
+ *
39
+ * import { ChatOpenAI } from "@langchain/openai";
40
+ * import { pull } from "langchain/hub";
41
+ * import { createHistoryAwareRetriever } from "langchain/chains/history_aware_retriever";
42
+ *
43
+ * const rephrasePrompt = await pull("langchain-ai/chat-langchain-rephrase");
44
+ * const llm = new ChatOpenAI({ model: "gpt-4o-mini" });
45
+ * const retriever = ...
46
+ * const chain = await createHistoryAwareRetriever({
47
+ * llm,
48
+ * retriever,
49
+ * rephrasePrompt,
50
+ * });
51
+ * const result = await chain.invoke({"input": "...", "chat_history": [] })
52
+ * ```
53
+ */
54
+ declare function createHistoryAwareRetriever({
55
+ llm,
56
+ retriever,
57
+ rephrasePrompt
58
+ }: CreateHistoryAwareRetrieverParams): Promise<Runnable<{
59
+ input: string;
60
+ chat_history: string | BaseMessage[];
61
+ }, DocumentInterface[]>>;
62
+ //#endregion
63
+ export { CreateHistoryAwareRetrieverParams, createHistoryAwareRetriever };
64
+ //# sourceMappingURL=history_aware_retriever.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"history_aware_retriever.d.cts","names":["LanguageModelLike","Runnable","RunnableInterface","BasePromptTemplate","DocumentInterface","BaseMessage","CreateHistoryAwareRetrieverParams","createHistoryAwareRetriever","llm","retriever","rephrasePrompt","Promise"],"sources":["../../src/chains/history_aware_retriever.d.ts"],"sourcesContent":["import type { LanguageModelLike } from \"@langchain/core/language_models/base\";\nimport { type Runnable, type RunnableInterface } from \"@langchain/core/runnables\";\nimport { type BasePromptTemplate } from \"@langchain/core/prompts\";\nimport type { DocumentInterface } from \"@langchain/core/documents\";\nimport type { BaseMessage } from \"@langchain/core/messages\";\n/**\n * Params for the createHistoryAwareRetriever method.\n */\nexport type CreateHistoryAwareRetrieverParams = {\n /**\n * Language model to use for generating a search term given chat history.\n */\n llm: LanguageModelLike;\n /**\n * RetrieverLike object that takes a string as input and outputs a list of Documents.\n */\n retriever: RunnableInterface<string, DocumentInterface[]>;\n /**\n * The prompt used to generate the search query for the retriever.\n */\n rephrasePrompt: BasePromptTemplate;\n};\n/**\n * Create a chain that takes conversation history and returns documents.\n * If there is no `chat_history`, then the `input` is just passed directly to the\n * retriever. If there is `chat_history`, then the prompt and LLM will be used\n * to generate a search query. That search query is then passed to the retriever.\n * @param {CreateHistoryAwareRetriever} params\n * @returns An LCEL Runnable. The runnable input must take in `input`, and if there\n * is chat history should take it in the form of `chat_history`.\n * The Runnable output is a list of Documents\n * @example\n * ```typescript\n * // pnpm add langchain @langchain/openai\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n * import { pull } from \"langchain/hub\";\n * import { createHistoryAwareRetriever } from \"langchain/chains/history_aware_retriever\";\n *\n * const rephrasePrompt = await pull(\"langchain-ai/chat-langchain-rephrase\");\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const retriever = ...\n * const chain = await createHistoryAwareRetriever({\n * llm,\n * retriever,\n * rephrasePrompt,\n * });\n * const result = await chain.invoke({\"input\": \"...\", \"chat_history\": [] })\n * ```\n */\nexport declare function createHistoryAwareRetriever({ llm, retriever, rephrasePrompt }: CreateHistoryAwareRetrieverParams): Promise<Runnable<{\n input: string;\n chat_history: string | BaseMessage[];\n}, DocumentInterface[]>>;\n"],"mappings":";;;;;;;;;;AAQA;AAA6C,KAAjCM,iCAAAA,GAAiC;EAAA;;;EAQb,GAIZH,EARXH,iBAQWG;EAAkB;AA8BtC;;EAAmD,SAAGK,EAlCvCN,iBAkCuCM,CAAAA,MAAAA,EAlCbJ,iBAkCaI,EAAAA,CAAAA;EAAG;;;EAAgE,cAE9FH,EAhCPF,kBAgCOE;CAAW;;;AAF6F;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA3GE,2BAAAA;;;;GAAgED,oCAAoCK,QAAQV;;yBAEzGI;GACxBD"}