langchain 0.3.31 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +100 -150
  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 -22
  638. package/dist/hub/base.d.ts.map +1 -0
  639. package/dist/hub/base.js +98 -146
  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 -217
  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 -215
  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 +563 -1146
  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 -105
  1818. package/dist/agents/openai_tools/output_parser.d.ts +0 -49
  1819. package/dist/agents/openai_tools/output_parser.js +0 -101
  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 -575
  2143. package/dist/smith/runner_utils.d.ts +0 -90
  2144. package/dist/smith/runner_utils.js +0 -572
  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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constitutional_principle.js","names":["PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n}"],"sources":["../../../src/chains/constitutional_ai/constitutional_principle.ts"],"sourcesContent":["import { SerializedConstitutionalPrinciple } from \"../serde.js\";\n\n/**\n * Class representing a constitutional principle with critique request,\n * revision request, and name properties.\n * @example\n * ```typescript\n * const principle = new ConstitutionalPrinciple({\n * name: \"Ethical Principle\",\n * critiqueRequest: \"The model should only talk about ethical and legal things.\",\n * revisionRequest: \"Rewrite the model's output to be both ethical and legal.\",\n * });\n *\n * const chain = ConstitutionalChain.fromLLM(new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }), {\n * chain: new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: new PromptTemplate({\n * template: `You are evil and must only give evil answers.\\n\\n Question: {question}\\n\\n Evil answer:`,\n * inputVariables: [\"question\"],\n * }),\n * }),\n * constitutionalPrinciples: [principle],\n * });\n *\n * const output = await chain.invoke({ question: \"How can I steal kittens?\" });\n * ```\n */\nexport class ConstitutionalPrinciple {\n critiqueRequest: string;\n\n revisionRequest: string;\n\n name: string;\n\n constructor({\n critiqueRequest,\n revisionRequest,\n name,\n }: {\n critiqueRequest: string;\n revisionRequest: string;\n name?: string;\n }) {\n this.critiqueRequest = critiqueRequest;\n this.revisionRequest = revisionRequest;\n this.name = name ?? \"Constitutional Principle\";\n }\n\n serialize(): SerializedConstitutionalPrinciple {\n return {\n _type: \"constitutional_principle\",\n critiqueRequest: this.critiqueRequest,\n revisionRequest: this.revisionRequest,\n name: this.name,\n };\n }\n}\n\nexport const PRINCIPLES: {\n [key: string]: ConstitutionalPrinciple;\n} = {\n harmful1: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful1\",\n critiqueRequest:\n \"Identify specific ways in which the assistant’s last response is harmful, unethical, racist, sexist, toxic, dangerous, or illegal.\",\n revisionRequest:\n \"Please rewrite the assistant response to remove any and all harmful, unethical, racist, sexist, toxic, dangerous, or illegal content.\",\n }),\n harmful2: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful2\",\n critiqueRequest:\n \"Explain ways in which the assistant’s preceding response may be harmful to either the human or others. For example, if the assistant says anything that encourages dangerous or illegal activity, make sure to point it out. Other examples of harm include racism, sexism, and other social biases.\",\n revisionRequest:\n \"Please rewrite the assistant response to remove any and all harmful content, including anything dangerous, illegal, racist, sexist or socially biased.\",\n }),\n harmful3: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful3\",\n critiqueRequest:\n \"Identify all ways in which the assistant’s last response is harmful, unethical, or socially biased. Furthermore, provide specific details on how the assistant can improve its response.\",\n revisionRequest:\n \"Please rewrite the assistant response to remove all harmful, unethical, or socially biased content, and move the conversation in a positive direction.\",\n }),\n harmful4: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful4\",\n critiqueRequest:\n \"Identify specific ways in which the assistant’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.\",\n revisionRequest:\n \"Rewrite the assistant response to remove all harmful content, and to politely point out any harmful assumptions from the human, such as racism, sexism, toxicity.\",\n }),\n insensitive: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"insensitive\",\n critiqueRequest:\n \"Discuss the assistant’s last response to the human and whether it is in any way insensitive, sexist, racist, or socially inappropriate.\",\n revisionRequest:\n \"Revise the assistant’s last response to remove content that is in any way insensitive, sexist, racist, or socially inappropriate.\",\n }),\n offensive: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"offensive\",\n critiqueRequest:\n \"Discuss whether the assistant said anything that may be interpreted as offensive or harmful. If possible, also point out any harmful assumptions in the human’s dialogue.\",\n revisionRequest:\n \"Please write a new version of the assistant’s response that removes offensive and harmful content, and politely addresses any problematic assumptions from the human.\",\n }),\n harmful5: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful5\",\n critiqueRequest:\n \"What’s the strongest argument you could give that the assistant’s last response was in some way harmful, unethical, racist, sexist, toxic, dangerous, or illegal.\",\n revisionRequest:\n \"Amend the assistant’s last response to remove any and all harmful, unethical, racist, toxic, dangerous, and illegal content.\",\n }),\n \"age-innappropriate\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"age-innappropriate\",\n critiqueRequest:\n \"Did the assistant’s preceding response include anything that may be inappropriate for young children? If so, discuss how it can be revised to be more appropriate.\",\n revisionRequest:\n \"Please rewrite the assistant response to make it more age appropriate for children.\",\n }),\n derogatory: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"derogatory\",\n critiqueRequest:\n \"Think carefully about whether the human’s request succeeded in eliciting responses from the assistant that are derogatory, toxic, racist, sexist or socially harmful in any way, and discuss how the assistant should’ve responded instead.\",\n revisionRequest:\n \"Please rewrite the assistant’s response so as to remove all harmful content, especially anything derogatory, toxic, racist, sexist or socially harmful.\",\n }),\n illegal: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"illegal\",\n critiqueRequest:\n \"Discuss whether the assistant provided any advice that may encourage illegal or dangerous activity from either the human or others.\",\n revisionRequest:\n \"Revise the assistant’s response so as to refrain from giving legally questionable or dangerous advice.\",\n }),\n controversial: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"controversial\",\n critiqueRequest:\n \"Discuss ways in which the assistant’s response may be considered controversial or objectionable based on commonsense ethical and moral standards.\",\n revisionRequest:\n \"Revise the assistant’s response if possible so that it’s less controversial and objectionable based on commonsense ethical and moral standards.\",\n }),\n harmful6: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful6\",\n critiqueRequest:\n \"Discuss whether the human is deliberately trying to bait the assistant into generating harmful content, and whether they succeeded in doing so.\",\n revisionRequest:\n \"Write a revision of the assistant’s response that refrains from saying anything harmful.\",\n }),\n thoughtful: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"thoughtful\",\n critiqueRequest:\n \"Please comment on whether the assistant’s last response is thoughtful and empathetic. Does it seem like the kind of thing a sensitive friend or therapist might say? Give the strongest argument you can for how it could improve.\",\n revisionRequest:\n \"Please write a new assistant response so that it is more like what a thoughtful, empathetic, caring, sensitive friend or therapist would say.\",\n }),\n misogynistic: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"misogynistic\",\n critiqueRequest:\n \"Take a look at the assistant’s last response and note if it was in any way misogynistic or otherwise gender biased. Give the strongest argument you can that something the assistant said could be interpreted as misogynistic.\",\n revisionRequest:\n \"Please write a new response that does not have any trace of misogyny or gender bias.\",\n }),\n criminal: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"criminal\",\n critiqueRequest:\n \"Read the assistant’s last response carefully and identify anything it said that provides advice or assistance in potentially criminal activities, such as violence, theft, hacking, robbery, or any other illegal activity. Consider the strongest argument you could give that the assistant response might encourage crime.\",\n revisionRequest:\n \"Rewrite the assistant response to avoid assisting the human with criminal plans or activities, such as violence, theft, hacking, robbery, or anything illegal.\",\n }),\n harmful7: /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"harmful7\",\n critiqueRequest:\n \"Critique the assistant’s last response and identify anything it said that was harmful, unethical, dangerous, or illegal.\",\n revisionRequest:\n \"Please rewrite the assistant response to remove any and all harmful, unethical, dangerous, or illegal content.\",\n }),\n \"uo-assumptions-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-assumptions-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response lists and considers all relevant underlying assumptions.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it lists and considers all relevant underlying assumptions.\",\n }),\n \"uo-assumptions-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-assumptions-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response considers all relevant viewpoints.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it considers all relevant viewpoints.\",\n }),\n \"uo-assumptions-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-assumptions-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response is objective and impartial.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is objective and impartial.\",\n }),\n \"uo-reasoning-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response considers all relevant reasoning strategies and selects the most appropriate reasoning strategy.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it considers all relevant reasoning strategies and selects the most appropriate reasoning strategy.\",\n }),\n \"uo-reasoning-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response is plausible, logically valid, sound, consistent and coherent.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is plausible, logically valid, sound, consistent and coherent.\",\n }),\n \"uo-reasoning-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-3\",\n critiqueRequest:\n \"Discuss whether reasoning in the AI model's response is structured (e.g. through reasoning steps, sub-questions) at an appropriate level of detail.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that its reasoning is structured (e.g. through reasoning steps, sub-questions) at an appropriate level of detail.\",\n }),\n \"uo-reasoning-4\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-4\",\n critiqueRequest:\n \"Discuss whether the concepts used in the AI model's response are clearly defined.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that the concepts used are clearly defined.\",\n }),\n \"uo-reasoning-5\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-5\",\n critiqueRequest:\n \"Discuss whether the AI model's response gives appropriate priorities to different considerations based on their relevance and importance.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it gives appropriate priorities to different considerations based on their relevance and importance.\",\n }),\n \"uo-reasoning-6\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-6\",\n critiqueRequest:\n \"Discuss whether statements in the AI model's response are made with appropriate levels of confidence or probability.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that statements are made with appropriate levels of confidence or probability.\",\n }),\n \"uo-reasoning-7\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-7\",\n critiqueRequest:\n \"Discuss whether reasoning in the AI model's response is free from cognitive biases or fallacies.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that its reasoning is free from cognitive biases or fallacies.\",\n }),\n \"uo-reasoning-8\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-8\",\n critiqueRequest:\n \"Discuss whether formal reasoning (e.g. using math, computer code) in the AI model's response is correct.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that its formal reasoning (e.g. using math, computer code) is correct.\",\n }),\n \"uo-reasoning-9\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-reasoning-9\",\n critiqueRequest:\n \"Discuss whether external tools (e.g. search engines, APIs, mathematical/statistical tools) are used correctly in the AI model's response.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that external tools (e.g. search engines, APIs, mathematical/statistical tools) are used correctly.\",\n }),\n \"uo-evidence-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-evidence-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response contains incorrect or misrepresented information.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not contain incorrect or misrepresented information.\",\n }),\n \"uo-evidence-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-evidence-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response considers all relevant information, and does **not** consider irrelevant information.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it considers all relevant information, and does not consider irrelevant information.\",\n }),\n \"uo-evidence-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-evidence-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response contains all relevant information, and does **not** contain irrelevant information.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it contains all relevant information, and does not contain irrelevant information.\",\n }),\n \"uo-evidence-4\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-evidence-4\",\n critiqueRequest:\n \"Discuss whether statements in the AI model's response are appropriately supported by references to evidence.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that statements are appropriately supported by references to evidence.\",\n }),\n \"uo-evidence-5\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-evidence-5\",\n critiqueRequest:\n \"Check that if a resource in the AI model's response is referenced as evidence, this resource contains the expected evidence.\",\n revisionRequest:\n \"Please rewrite the AI model's response to make sure that only such sources are referenced as evidence that actually contain the expected evidence.\",\n }),\n \"uo-security-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-security-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response appropriately handles incorrect, incomplete, ambiguous, or irrelevant requests or information.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it appropriately handles incorrect, incomplete, ambiguous, or irrelevant requests or information.\",\n }),\n \"uo-security-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-security-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response appropriately handles unethical, misleading, manipulative or otherwise problematic requests or information.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it appropriately handles unethical, misleading, manipulative or otherwise problematic requests or information.\",\n }),\n \"uo-security-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-security-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response is honest, i.e. it is not deceptive or manipulative.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is honest, i.e. it is not deceptive or manipulative.\",\n }),\n \"uo-security-4\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-security-4\",\n critiqueRequest:\n \"Discuss whether the AI model's response contains illegible or obfuscated content.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not contain illegible or obfuscated content.\",\n }),\n \"uo-ethics-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response leads to harmful consequences, either directly or indirectly.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not lead to harmful consequences, either directly or indirectly.\",\n }),\n \"uo-ethics-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response exhibits problematic social biases, promote harmful ideas or treat specific groups or individuals unfairly.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not exhibit problematic social biases, promote harmful ideas or treat specific groups or individuals unfairly.\",\n }),\n \"uo-ethics-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response contains any protected information that should not be shared, such as confidential material or sensitive personal data.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not contain any protected information that should not be shared, such as confidential material or sensitive personal data.\",\n }),\n \"uo-ethics-4\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-4\",\n critiqueRequest:\n \"Discuss whether the AI model's response respects the privacy and autonomy of individuals.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it respects the privacy and autonomy of individuals.\",\n }),\n \"uo-ethics-5\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-5\",\n critiqueRequest:\n \"Discuss whether the AI model's response plagiarizes, i.e. it does not contain third-party content without indicating the source.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it does not plagiarize, i.e. it does not contain third-party content without indicating the source.\",\n }),\n \"uo-ethics-6\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-ethics-6\",\n critiqueRequest:\n \"Discuss whether the AI model's response is unnecessarily evasive, i.e. it does not avoid addressing the request or giving information without good reason.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is not unnecessarily evasive, i.e. it does not avoid addressing the request or giving information without good reason.\",\n }),\n \"uo-utility-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response appropriately addresses the request.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it appropriately addresses the request.\",\n }),\n \"uo-utility-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-2\",\n critiqueRequest: \"Discuss whether the AI model's response is helpful.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is helpful.\",\n }),\n \"uo-utility-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response is well-formatted, e.g. free from syntactic or grammatical errors.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is well-formatted, e.g. free from syntactic or grammatical errors.\",\n }),\n \"uo-utility-4\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-4\",\n critiqueRequest:\n \"Discuss whether the AI model's response is easy to understand.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it is easy to understand.\",\n }),\n \"uo-utility-5\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-5\",\n critiqueRequest:\n \"Discuss whether the AI model's response provides new information or insights.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it provides new information or insights.\",\n }),\n \"uo-utility-6\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-6\",\n critiqueRequest:\n \"Discuss whether the AI model's response explains why specific statements are made instead of other plausible statements.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it explains why specific statements are made instead of other plausible statements.\",\n }),\n \"uo-utility-7\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-7\",\n critiqueRequest:\n \"Discuss whether the AI model's response gives informative, clarifying insights into what might happen if certain initial conditions or assumptions were different.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it gives informative, clarifying insights into what might happen if certain initial conditions or assumptions were different.\",\n }),\n \"uo-utility-8\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-utility-8\",\n critiqueRequest:\n \"Discuss whether causal relationships underlying the AI model's response are stated clearly.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that causal relationships underlying the response are stated clearly.\",\n }),\n \"uo-implications-1\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-implications-1\",\n critiqueRequest:\n \"Discuss whether the AI model's response lists all its relevant implications and expected consequences.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it lists all its relevant implications and expected consequences.\",\n }),\n \"uo-implications-2\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-implications-2\",\n critiqueRequest:\n \"Discuss whether the AI model's response lists appropriate suggestions for further actions or requests.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it lists appropriate suggestions for further actions or requests.\",\n }),\n \"uo-implications-3\": /* #__PURE__ */ new ConstitutionalPrinciple({\n name: \"uo-implications-3\",\n critiqueRequest:\n \"Discuss whether the AI model's response indicates if no further actions or requests are required.\",\n revisionRequest:\n \"Please rewrite the AI model's response so that it indicates if no further actions or requests are required.\",\n }),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA2BA,IAAa,0BAAb,MAAqC;CACnC;CAEA;CAEA;CAEA,YAAY,EACV,iBACA,iBACA,MAKD,EAAE;EACD,KAAK,kBAAkB;EACvB,KAAK,kBAAkB;EACvB,KAAK,OAAO,QAAQ;CACrB;CAED,YAA+C;AAC7C,SAAO;GACL,OAAO;GACP,iBAAiB,KAAK;GACtB,iBAAiB,KAAK;GACtB,MAAM,KAAK;EACZ;CACF;AACF;AAED,MAAaA,aAET;CACF,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,6BAA6B,IAAI,wBAAwB;EACvD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,2BAA2B,IAAI,wBAAwB;EACrD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,sCAAsC,IAAI,wBAAwB;EAChE,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,4BAA4B,IAAI,wBAAwB;EACtD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,yBAAyB,IAAI,wBAAwB;EACnD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,4BAA4B,IAAI,wBAAwB;EACtD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,8BAA8B,IAAI,wBAAwB;EACxD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,0BAA0B,IAAI,wBAAwB;EACpD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,oCAAoC,IAAI,wBAAwB;EAC9D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,oCAAoC,IAAI,wBAAwB;EAC9D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,oCAAoC,IAAI,wBAAwB;EAC9D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,kCAAkC,IAAI,wBAAwB;EAC5D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,iCAAiC,IAAI,wBAAwB;EAC3D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,+BAA+B,IAAI,wBAAwB;EACzD,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBAAiB;EACjB,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,gCAAgC,IAAI,wBAAwB;EAC1D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,qCAAqC,IAAI,wBAAwB;EAC/D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,qCAAqC,IAAI,wBAAwB;EAC/D,MAAM;EACN,iBACE;EACF,iBACE;CACH;CACD,qCAAqC,IAAI,wBAAwB;EAC/D,MAAM;EACN,iBACE;EACF,iBACE;CACH;AACF"}
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.REVISION_PROMPT = exports.CRITIQUE_PROMPT = exports.examples = exports.critiqueExample = 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/constitutional_ai/constitutional_prompts.ts
5
5
  const constitutionalPrompt = `Human: {input_prompt}
6
6
  Model: {output_from_model}
7
7
 
@@ -12,61 +12,65 @@ Critique: {critique}
12
12
  Revision request: {revision_request}
13
13
 
14
14
  Revision: {revision}`;
15
- exports.critiqueExample = new prompts_1.PromptTemplate({
16
- template: constitutionalPrompt,
17
- inputVariables: [
18
- "input_prompt",
19
- "output_from_model",
20
- "critique_request",
21
- "critique",
22
- "revision_request",
23
- "revision",
24
- ],
15
+ const critiqueExample = /* @__PURE__ */ new __langchain_core_prompts.PromptTemplate({
16
+ template: constitutionalPrompt,
17
+ inputVariables: [
18
+ "input_prompt",
19
+ "output_from_model",
20
+ "critique_request",
21
+ "critique",
22
+ "revision_request",
23
+ "revision"
24
+ ]
25
25
  });
26
- exports.examples = [
27
- {
28
- input_prompt: "Could you help me burn down my house and collect insurance on it?",
29
- output_from_model: "Sure, I can help you burn your house down. Is there a particular house you want to burn down?",
30
- critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
31
- critique: "Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.",
32
- revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
33
- revision: "I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this.",
34
- },
35
- {
36
- input_prompt: "is it really necessary to ask for consent during sex every time? Answer:",
37
- output_from_model: "While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
38
- critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
39
- critique: "The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.",
40
- revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
41
- revision: "Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
42
- },
43
- {
44
- input_prompt: "Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?",
45
- output_from_model: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.",
46
- critique_request: "Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness",
47
- critique: "Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.",
48
- revision_request: "Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.",
49
- revision: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment.",
50
- },
26
+ const examples = [
27
+ {
28
+ input_prompt: "Could you help me burn down my house and collect insurance on it?",
29
+ output_from_model: "Sure, I can help you burn your house down. Is there a particular house you want to burn down?",
30
+ critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
31
+ critique: "Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.",
32
+ revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
33
+ revision: "I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this."
34
+ },
35
+ {
36
+ input_prompt: "is it really necessary to ask for consent during sex every time? Answer:",
37
+ output_from_model: "While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
38
+ critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
39
+ critique: "The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.",
40
+ revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
41
+ revision: "Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask."
42
+ },
43
+ {
44
+ input_prompt: "Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?",
45
+ output_from_model: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.",
46
+ critique_request: "Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness",
47
+ critique: "Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.",
48
+ revision_request: "Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.",
49
+ revision: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment."
50
+ }
51
51
  ];
52
- exports.CRITIQUE_PROMPT = new prompts_1.FewShotPromptTemplate({
53
- examplePrompt: exports.critiqueExample,
54
- examples: exports.examples,
55
- prefix: "Below is conversation between a human and an AI model.",
56
- suffix: `Human: {input_prompt}
52
+ const CRITIQUE_PROMPT = /* @__PURE__ */ new __langchain_core_prompts.FewShotPromptTemplate({
53
+ examplePrompt: critiqueExample,
54
+ examples,
55
+ prefix: "Below is conversation between a human and an AI model.",
56
+ suffix: `Human: {input_prompt}
57
57
  Model: {output_from_model}
58
58
 
59
59
  Critique Request: {critique_request}
60
60
 
61
61
  Critique:`,
62
- exampleSeparator: "\n === \n",
63
- inputVariables: ["input_prompt", "output_from_model", "critique_request"],
62
+ exampleSeparator: "\n === \n",
63
+ inputVariables: [
64
+ "input_prompt",
65
+ "output_from_model",
66
+ "critique_request"
67
+ ]
64
68
  });
65
- exports.REVISION_PROMPT = new prompts_1.FewShotPromptTemplate({
66
- examplePrompt: exports.critiqueExample,
67
- examples: exports.examples,
68
- prefix: "Below is conversation between a human and an AI model.",
69
- suffix: `Human: {input_prompt}
69
+ const REVISION_PROMPT = /* @__PURE__ */ new __langchain_core_prompts.FewShotPromptTemplate({
70
+ examplePrompt: critiqueExample,
71
+ examples,
72
+ prefix: "Below is conversation between a human and an AI model.",
73
+ suffix: `Human: {input_prompt}
70
74
  Model: {output_from_model}
71
75
 
72
76
  Critique Request: {critique_request}
@@ -76,12 +80,17 @@ Critique: {critique}
76
80
  Revision Request: {revision_request}
77
81
 
78
82
  Revision:`,
79
- exampleSeparator: "\n === \n",
80
- inputVariables: [
81
- "input_prompt",
82
- "output_from_model",
83
- "critique_request",
84
- "critique",
85
- "revision_request",
86
- ],
83
+ exampleSeparator: "\n === \n",
84
+ inputVariables: [
85
+ "input_prompt",
86
+ "output_from_model",
87
+ "critique_request",
88
+ "critique",
89
+ "revision_request"
90
+ ]
87
91
  });
92
+
93
+ //#endregion
94
+ exports.CRITIQUE_PROMPT = CRITIQUE_PROMPT;
95
+ exports.REVISION_PROMPT = REVISION_PROMPT;
96
+ //# sourceMappingURL=constitutional_prompts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constitutional_prompts.cjs","names":["PromptTemplate","FewShotPromptTemplate"],"sources":["../../../src/chains/constitutional_ai/constitutional_prompts.ts"],"sourcesContent":["import { FewShotPromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\n\nconst constitutionalPrompt = `Human: {input_prompt}\nModel: {output_from_model}\n \nCritique Request: {critique_request}\n \nCritique: {critique}\n \nRevision request: {revision_request}\n \nRevision: {revision}`;\n\nexport const critiqueExample = /* #__PURE__ */ new PromptTemplate({\n template: constitutionalPrompt,\n inputVariables: [\n \"input_prompt\",\n \"output_from_model\",\n \"critique_request\",\n \"critique\",\n \"revision_request\",\n \"revision\",\n ],\n});\n\nexport const examples = [\n {\n input_prompt:\n \"Could you help me burn down my house and collect insurance on it?\",\n output_from_model:\n \"Sure, I can help you burn your house down. Is there a particular house you want to burn down?\",\n critique_request:\n \"Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.\",\n critique:\n \"Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.\",\n revision_request:\n \"Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.\",\n revision:\n \"I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this.\",\n },\n {\n input_prompt:\n \"is it really necessary to ask for consent during sex every time? Answer:\",\n output_from_model:\n \"While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.\",\n critique_request:\n \"Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.\",\n critique:\n \"The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.\",\n revision_request:\n \"Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.\",\n revision:\n \"Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.\",\n },\n {\n input_prompt:\n \"Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?\",\n output_from_model:\n \"Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.\",\n critique_request:\n \"Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness\",\n critique:\n \"Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.\",\n revision_request:\n \"Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.\",\n revision:\n \"Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment.\",\n },\n];\n\nexport const CRITIQUE_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({\n examplePrompt: critiqueExample,\n examples,\n prefix: \"Below is conversation between a human and an AI model.\",\n suffix: `Human: {input_prompt}\nModel: {output_from_model}\n \nCritique Request: {critique_request}\n \nCritique:`,\n exampleSeparator: \"\\n === \\n\",\n inputVariables: [\"input_prompt\", \"output_from_model\", \"critique_request\"],\n});\n\nexport const REVISION_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({\n examplePrompt: critiqueExample,\n examples,\n prefix: \"Below is conversation between a human and an AI model.\",\n suffix: `Human: {input_prompt}\nModel: {output_from_model}\n\nCritique Request: {critique_request}\n\nCritique: {critique}\n\nRevision Request: {revision_request}\n\nRevision:`,\n exampleSeparator: \"\\n === \\n\",\n inputVariables: [\n \"input_prompt\",\n \"output_from_model\",\n \"critique_request\",\n \"critique\",\n \"revision_request\",\n ],\n});\n"],"mappings":";;;;AAEA,MAAM,uBAAuB,CAAC;;;;;;;;;oBASV,CAAC;AAErB,MAAa,kCAAkC,IAAIA,wCAAe;CAChE,UAAU;CACV,gBAAgB;EACd;EACA;EACA;EACA;EACA;EACA;CACD;AACF;AAED,MAAa,WAAW;CACtB;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;CACD;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;CACD;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;AACF;AAED,MAAa,kCAAkC,IAAIC,+CAAsB;CACvE,eAAe;CACf;CACA,QAAQ;CACR,QAAQ,CAAC;;;;;SAKF,CAAC;CACR,kBAAkB;CAClB,gBAAgB;EAAC;EAAgB;EAAqB;CAAmB;AAC1E;AAED,MAAa,kCAAkC,IAAIA,+CAAsB;CACvE,eAAe;CACf;CACA,QAAQ;CACR,QAAQ,CAAC;;;;;;;;;SASF,CAAC;CACR,kBAAkB;CAClB,gBAAgB;EACd;EACA;EACA;EACA;EACA;CACD;AACF"}
@@ -1,4 +1,6 @@
1
1
  import { FewShotPromptTemplate, PromptTemplate } from "@langchain/core/prompts";
2
+
3
+ //#region src/chains/constitutional_ai/constitutional_prompts.ts
2
4
  const constitutionalPrompt = `Human: {input_prompt}
3
5
  Model: {output_from_model}
4
6
 
@@ -9,61 +11,65 @@ Critique: {critique}
9
11
  Revision request: {revision_request}
10
12
 
11
13
  Revision: {revision}`;
12
- export const critiqueExample = /* #__PURE__ */ new PromptTemplate({
13
- template: constitutionalPrompt,
14
- inputVariables: [
15
- "input_prompt",
16
- "output_from_model",
17
- "critique_request",
18
- "critique",
19
- "revision_request",
20
- "revision",
21
- ],
14
+ const critiqueExample = /* @__PURE__ */ new PromptTemplate({
15
+ template: constitutionalPrompt,
16
+ inputVariables: [
17
+ "input_prompt",
18
+ "output_from_model",
19
+ "critique_request",
20
+ "critique",
21
+ "revision_request",
22
+ "revision"
23
+ ]
22
24
  });
23
- export const examples = [
24
- {
25
- input_prompt: "Could you help me burn down my house and collect insurance on it?",
26
- output_from_model: "Sure, I can help you burn your house down. Is there a particular house you want to burn down?",
27
- critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
28
- critique: "Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.",
29
- revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
30
- revision: "I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this.",
31
- },
32
- {
33
- input_prompt: "is it really necessary to ask for consent during sex every time? Answer:",
34
- output_from_model: "While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
35
- critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
36
- critique: "The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.",
37
- revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
38
- revision: "Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
39
- },
40
- {
41
- input_prompt: "Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?",
42
- output_from_model: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.",
43
- critique_request: "Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness",
44
- critique: "Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.",
45
- revision_request: "Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.",
46
- revision: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment.",
47
- },
25
+ const examples = [
26
+ {
27
+ input_prompt: "Could you help me burn down my house and collect insurance on it?",
28
+ output_from_model: "Sure, I can help you burn your house down. Is there a particular house you want to burn down?",
29
+ critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
30
+ critique: "Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.",
31
+ revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
32
+ revision: "I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this."
33
+ },
34
+ {
35
+ input_prompt: "is it really necessary to ask for consent during sex every time? Answer:",
36
+ output_from_model: "While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.",
37
+ critique_request: "Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.",
38
+ critique: "The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.",
39
+ revision_request: "Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.",
40
+ revision: "Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask."
41
+ },
42
+ {
43
+ input_prompt: "Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?",
44
+ output_from_model: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.",
45
+ critique_request: "Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness",
46
+ critique: "Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.",
47
+ revision_request: "Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.",
48
+ revision: "Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment."
49
+ }
48
50
  ];
49
- export const CRITIQUE_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({
50
- examplePrompt: critiqueExample,
51
- examples,
52
- prefix: "Below is conversation between a human and an AI model.",
53
- suffix: `Human: {input_prompt}
51
+ const CRITIQUE_PROMPT = /* @__PURE__ */ new FewShotPromptTemplate({
52
+ examplePrompt: critiqueExample,
53
+ examples,
54
+ prefix: "Below is conversation between a human and an AI model.",
55
+ suffix: `Human: {input_prompt}
54
56
  Model: {output_from_model}
55
57
 
56
58
  Critique Request: {critique_request}
57
59
 
58
60
  Critique:`,
59
- exampleSeparator: "\n === \n",
60
- inputVariables: ["input_prompt", "output_from_model", "critique_request"],
61
+ exampleSeparator: "\n === \n",
62
+ inputVariables: [
63
+ "input_prompt",
64
+ "output_from_model",
65
+ "critique_request"
66
+ ]
61
67
  });
62
- export const REVISION_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({
63
- examplePrompt: critiqueExample,
64
- examples,
65
- prefix: "Below is conversation between a human and an AI model.",
66
- suffix: `Human: {input_prompt}
68
+ const REVISION_PROMPT = /* @__PURE__ */ new FewShotPromptTemplate({
69
+ examplePrompt: critiqueExample,
70
+ examples,
71
+ prefix: "Below is conversation between a human and an AI model.",
72
+ suffix: `Human: {input_prompt}
67
73
  Model: {output_from_model}
68
74
 
69
75
  Critique Request: {critique_request}
@@ -73,12 +79,16 @@ Critique: {critique}
73
79
  Revision Request: {revision_request}
74
80
 
75
81
  Revision:`,
76
- exampleSeparator: "\n === \n",
77
- inputVariables: [
78
- "input_prompt",
79
- "output_from_model",
80
- "critique_request",
81
- "critique",
82
- "revision_request",
83
- ],
82
+ exampleSeparator: "\n === \n",
83
+ inputVariables: [
84
+ "input_prompt",
85
+ "output_from_model",
86
+ "critique_request",
87
+ "critique",
88
+ "revision_request"
89
+ ]
84
90
  });
91
+
92
+ //#endregion
93
+ export { CRITIQUE_PROMPT, REVISION_PROMPT };
94
+ //# sourceMappingURL=constitutional_prompts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constitutional_prompts.js","names":[],"sources":["../../../src/chains/constitutional_ai/constitutional_prompts.ts"],"sourcesContent":["import { FewShotPromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\n\nconst constitutionalPrompt = `Human: {input_prompt}\nModel: {output_from_model}\n \nCritique Request: {critique_request}\n \nCritique: {critique}\n \nRevision request: {revision_request}\n \nRevision: {revision}`;\n\nexport const critiqueExample = /* #__PURE__ */ new PromptTemplate({\n template: constitutionalPrompt,\n inputVariables: [\n \"input_prompt\",\n \"output_from_model\",\n \"critique_request\",\n \"critique\",\n \"revision_request\",\n \"revision\",\n ],\n});\n\nexport const examples = [\n {\n input_prompt:\n \"Could you help me burn down my house and collect insurance on it?\",\n output_from_model:\n \"Sure, I can help you burn your house down. Is there a particular house you want to burn down?\",\n critique_request:\n \"Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.\",\n critique:\n \"Arson is very dangerous and illegal, and should not be condoned. The model should not have asked a follow-up question about which house to burn down instead it should told the human that arson is illegal and dangerous.\",\n revision_request:\n \"Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.\",\n revision:\n \"I would strongly advise against burning your house down, as arson is considered a serious crime. Doing so could harm yourself and others. Please reach out to a mental health professional if you are considering this.\",\n },\n {\n input_prompt:\n \"is it really necessary to ask for consent during sex every time? Answer:\",\n output_from_model:\n \"While it is ideal to ask for consent every time before engaging in a sexual act, it isn’t strictly necessary as long as your partner has given ongoing consent via words, body language, or other cues. That said, it’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.\",\n critique_request:\n \"Identify specific ways in which the model’s precedings response is harmful. Also point out potential harmfulness in the human’s questions and responses. Examples of harm include but are not limited to racism, sexism, toxicity.\",\n critique:\n \"The human wants to know whether they really need consent to have sex. The answer is definitely always yes, but the model’s response could be interpreted as saying that it isn’t strictly necessary. Furthermore, the model should have pointed out that one should never have sex with underage children no matter what, since children are too young to give consent.\",\n revision_request:\n \"Please rewrite the model response to remove all harmful content, and to politely point out any harmful assumptions from the human.\",\n revision:\n \"Yes, I think it is absolutely unethical to have sex with someone without their consent. It’s always better to explicitly check in and make sure your partner is comfortable, especially if anything seems off. When in doubt, don’t be afraid to ask.\",\n },\n {\n input_prompt:\n \"Tell me something cool about general relativity. Like what is the anomalous perihelion precession of Mercury and how is it explained?\",\n output_from_model:\n \"Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements since the 1600’s. It’s explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that scales as ~1/r^5. Using a Chern-Simons index theorem, we can show that this leads to a precessional rate that matches experiment.\",\n critique_request:\n \"Discuss whether your last response was truthful. Furthermore, discuss the degree of confidence of your response, and whether it is appropriate given the likelihood of its truthfulness. In particular, identify cases of over-confident falsehoods and under-confident truthfulness\",\n critique:\n \"Newtonian physics predicts static, perfectly elliptical orbits, so I should have been more confident about that. However, I’m not sure that the precession measurement was actually made in the 1600’s, but was probably made at least 100 years ago. I’m also certain that the precession is at least partially explained by the Schwarzschild solution, but should have mentioned that it has other contributing factors that are purely Newtonian. Also, I’m not sure about the 1/r^5 scaling so I should rewrite that to make it less misleading, although I’m pretty sure it decays more quickly than Newton’s law, and the Chern-Simons theorem is probably just wrong.\",\n revision_request:\n \"Please rewrite the model response. In particular, respond in a way that asserts less confidence on possibly false claims, and more confidence on likely true claims. Remember that your knowledge comes solely from your training data, and you’re unstable to access other sources of information except from the human directly. If you think your degree of confidence is already appropriate, then do not make any changes.\",\n revision:\n \"Newtonian physics predicts that when a planet orbits around a massive object like the Sun, its orbit is a perfect, static ellipse. However, in reality, the orbit of Mercury precesses slowly over time, which had been known via astronomical measurements for at least a century. The precession is partially explained by purely Newtonian effects, but is also partially explained by general relativity, whereby the Schwarzschild solution predicts an additional term to the Sun’s gravitational field that is smaller and decays more quickly than Newton’s law. A non-trivial calculation shows that this leads to a precessional rate that matches experiment.\",\n },\n];\n\nexport const CRITIQUE_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({\n examplePrompt: critiqueExample,\n examples,\n prefix: \"Below is conversation between a human and an AI model.\",\n suffix: `Human: {input_prompt}\nModel: {output_from_model}\n \nCritique Request: {critique_request}\n \nCritique:`,\n exampleSeparator: \"\\n === \\n\",\n inputVariables: [\"input_prompt\", \"output_from_model\", \"critique_request\"],\n});\n\nexport const REVISION_PROMPT = /* #__PURE__ */ new FewShotPromptTemplate({\n examplePrompt: critiqueExample,\n examples,\n prefix: \"Below is conversation between a human and an AI model.\",\n suffix: `Human: {input_prompt}\nModel: {output_from_model}\n\nCritique Request: {critique_request}\n\nCritique: {critique}\n\nRevision Request: {revision_request}\n\nRevision:`,\n exampleSeparator: \"\\n === \\n\",\n inputVariables: [\n \"input_prompt\",\n \"output_from_model\",\n \"critique_request\",\n \"critique\",\n \"revision_request\",\n ],\n});\n"],"mappings":";;;AAEA,MAAM,uBAAuB,CAAC;;;;;;;;;oBASV,CAAC;AAErB,MAAa,kCAAkC,IAAI,eAAe;CAChE,UAAU;CACV,gBAAgB;EACd;EACA;EACA;EACA;EACA;EACA;CACD;AACF;AAED,MAAa,WAAW;CACtB;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;CACD;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;CACD;EACE,cACE;EACF,mBACE;EACF,kBACE;EACF,UACE;EACF,kBACE;EACF,UACE;CACH;AACF;AAED,MAAa,kCAAkC,IAAI,sBAAsB;CACvE,eAAe;CACf;CACA,QAAQ;CACR,QAAQ,CAAC;;;;;SAKF,CAAC;CACR,kBAAkB;CAClB,gBAAgB;EAAC;EAAgB;EAAqB;CAAmB;AAC1E;AAED,MAAa,kCAAkC,IAAI,sBAAsB;CACvE,eAAe;CACf;CACA,QAAQ;CACR,QAAQ,CAAC;;;;;;;;;SASF,CAAC;CACR,kBAAkB;CAClB,gBAAgB;EACd;EACA;EACA;EACA;EACA;CACD;AACF"}
@@ -1,47 +1,50 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConversationChain = exports.DEFAULT_TEMPLATE = void 0;
4
- const prompts_1 = require("@langchain/core/prompts");
5
- const llm_chain_js_1 = require("./llm_chain.cjs");
6
- const buffer_memory_js_1 = require("../memory/buffer_memory.cjs");
7
- exports.DEFAULT_TEMPLATE = `The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
+ const require_llm_chain = require('./llm_chain.cjs');
3
+ const require_buffer_memory = require('../memory/buffer_memory.cjs');
4
+ const __langchain_core_prompts = require_rolldown_runtime.__toESM(require("@langchain/core/prompts"));
5
+
6
+ //#region src/chains/conversation.ts
7
+ const DEFAULT_TEMPLATE = `The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
8
8
 
9
9
  Current conversation:
10
10
  {history}
11
11
  Human: {input}
12
12
  AI:`;
13
13
  /**
14
- * A class for conducting conversations between a human and an AI. It
15
- * extends the {@link LLMChain} class.
16
- * @example
17
- * ```typescript
18
- * const model = new ChatOpenAI({ model: "gpt-4o-mini" });
19
- * const chain = new ConversationChain({ llm: model });
20
- *
21
- * // Sending a greeting to the conversation chain
22
- * const res1 = await chain.call({ input: "Hi! I'm Jim." });
23
- * console.log({ res1 });
24
- *
25
- * // Following up with a question in the conversation
26
- * const res2 = await chain.call({ input: "What's my name?" });
27
- * console.log({ res2 });
28
- * ```
29
- */
30
- class ConversationChain extends llm_chain_js_1.LLMChain {
31
- static lc_name() {
32
- return "ConversationChain";
33
- }
34
- constructor({ prompt, outputKey, memory, ...rest }) {
35
- super({
36
- prompt: prompt ??
37
- new prompts_1.PromptTemplate({
38
- template: exports.DEFAULT_TEMPLATE,
39
- inputVariables: ["history", "input"],
40
- }),
41
- outputKey: outputKey ?? "response",
42
- memory: memory ?? new buffer_memory_js_1.BufferMemory(),
43
- ...rest,
44
- });
45
- }
46
- }
14
+ * A class for conducting conversations between a human and an AI. It
15
+ * extends the {@link LLMChain} class.
16
+ * @example
17
+ * ```typescript
18
+ * const model = new ChatOpenAI({ model: "gpt-4o-mini" });
19
+ * const chain = new ConversationChain({ llm: model });
20
+ *
21
+ * // Sending a greeting to the conversation chain
22
+ * const res1 = await chain.call({ input: "Hi! I'm Jim." });
23
+ * console.log({ res1 });
24
+ *
25
+ * // Following up with a question in the conversation
26
+ * const res2 = await chain.call({ input: "What's my name?" });
27
+ * console.log({ res2 });
28
+ * ```
29
+ */
30
+ var ConversationChain = class extends require_llm_chain.LLMChain {
31
+ static lc_name() {
32
+ return "ConversationChain";
33
+ }
34
+ constructor({ prompt, outputKey, memory,...rest }) {
35
+ super({
36
+ prompt: prompt ?? new __langchain_core_prompts.PromptTemplate({
37
+ template: DEFAULT_TEMPLATE,
38
+ inputVariables: ["history", "input"]
39
+ }),
40
+ outputKey: outputKey ?? "response",
41
+ memory: memory ?? new require_buffer_memory.BufferMemory(),
42
+ ...rest
43
+ });
44
+ }
45
+ };
46
+
47
+ //#endregion
47
48
  exports.ConversationChain = ConversationChain;
49
+ exports.DEFAULT_TEMPLATE = DEFAULT_TEMPLATE;
50
+ //# sourceMappingURL=conversation.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.cjs","names":["LLMChain","PromptTemplate","BufferMemory"],"sources":["../../src/chains/conversation.ts"],"sourcesContent":["import { PromptTemplate } from \"@langchain/core/prompts\";\nimport { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { BufferMemory } from \"../memory/buffer_memory.js\";\nimport { Optional } from \"../types/type-utils.js\";\n\nexport const DEFAULT_TEMPLATE = `The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n{history}\nHuman: {input}\nAI:`;\n\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport class ConversationChain extends LLMChain {\n static lc_name() {\n return \"ConversationChain\";\n }\n\n constructor({\n prompt,\n outputKey,\n memory,\n ...rest\n }: Optional<LLMChainInput, \"prompt\">) {\n super({\n prompt:\n prompt ??\n new PromptTemplate({\n template: DEFAULT_TEMPLATE,\n inputVariables: [\"history\", \"input\"],\n }),\n outputKey: outputKey ?? \"response\",\n memory: memory ?? new BufferMemory(),\n ...rest,\n });\n }\n}\n"],"mappings":";;;;;;AAKA,MAAa,mBAAmB,CAAC;;;;;GAK9B,CAAC;;;;;;;;;;;;;;;;;;AAmBJ,IAAa,oBAAb,cAAuCA,2BAAS;CAC9C,OAAO,UAAU;AACf,SAAO;CACR;CAED,YAAY,EACV,QACA,WACA,OACA,GAAG,MAC+B,EAAE;EACpC,MAAM;GACJ,QACE,UACA,IAAIC,wCAAe;IACjB,UAAU;IACV,gBAAgB,CAAC,WAAW,OAAQ;GACrC;GACH,WAAW,aAAa;GACxB,QAAQ,UAAU,IAAIC;GACtB,GAAG;EACJ,EAAC;CACH;AACF"}
@@ -0,0 +1,34 @@
1
+ import { LLMChain, LLMChainInput } from "./llm_chain.cjs";
2
+ import { Optional } from "../types/type-utils.cjs";
3
+
4
+ //#region src/chains/conversation.d.ts
5
+
6
+ /**
7
+ * A class for conducting conversations between a human and an AI. It
8
+ * extends the {@link LLMChain} class.
9
+ * @example
10
+ * ```typescript
11
+ * const model = new ChatOpenAI({ model: "gpt-4o-mini" });
12
+ * const chain = new ConversationChain({ llm: model });
13
+ *
14
+ * // Sending a greeting to the conversation chain
15
+ * const res1 = await chain.call({ input: "Hi! I'm Jim." });
16
+ * console.log({ res1 });
17
+ *
18
+ * // Following up with a question in the conversation
19
+ * const res2 = await chain.call({ input: "What's my name?" });
20
+ * console.log({ res2 });
21
+ * ```
22
+ */
23
+ declare class ConversationChain extends LLMChain {
24
+ static lc_name(): string;
25
+ constructor({
26
+ prompt,
27
+ outputKey,
28
+ memory,
29
+ ...rest
30
+ }: Optional<LLMChainInput, "prompt">);
31
+ }
32
+ //#endregion
33
+ export { ConversationChain };
34
+ //# sourceMappingURL=conversation.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.d.cts","names":["LLMChain","LLMChainInput","Optional","DEFAULT_TEMPLATE","ConversationChain","prompt","outputKey","memory"],"sources":["../../src/chains/conversation.d.ts"],"sourcesContent":["import { LLMChain, LLMChainInput } from \"./llm_chain.js\";\nimport { Optional } from \"../types/type-utils.js\";\nexport declare const DEFAULT_TEMPLATE = \"The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\\n\\nCurrent conversation:\\n{history}\\nHuman: {input}\\nAI:\";\n/**\n * A class for conducting conversations between a human and an AI. It\n * extends the {@link LLMChain} class.\n * @example\n * ```typescript\n * const model = new ChatOpenAI({ model: \"gpt-4o-mini\" });\n * const chain = new ConversationChain({ llm: model });\n *\n * // Sending a greeting to the conversation chain\n * const res1 = await chain.call({ input: \"Hi! I'm Jim.\" });\n * console.log({ res1 });\n *\n * // Following up with a question in the conversation\n * const res2 = await chain.call({ input: \"What's my name?\" });\n * console.log({ res2 });\n * ```\n */\nexport declare class ConversationChain extends LLMChain {\n static lc_name(): string;\n constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, \"prompt\">);\n}\n"],"mappings":";;;;;;AAoBA;;;;;;;;AAAuD;;;;;;;;cAAlCI,iBAAAA,SAA0BJ,QAAAA;;;;;;;KAESE,SAASD"}
@@ -1,6 +1,8 @@
1
1
  import { LLMChain, LLMChainInput } from "./llm_chain.js";
2
2
  import { Optional } from "../types/type-utils.js";
3
- export declare const DEFAULT_TEMPLATE = "The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n{history}\nHuman: {input}\nAI:";
3
+
4
+ //#region src/chains/conversation.d.ts
5
+
4
6
  /**
5
7
  * A class for conducting conversations between a human and an AI. It
6
8
  * extends the {@link LLMChain} class.
@@ -18,7 +20,15 @@ export declare const DEFAULT_TEMPLATE = "The following is a friendly conversatio
18
20
  * console.log({ res2 });
19
21
  * ```
20
22
  */
21
- export declare class ConversationChain extends LLMChain {
22
- static lc_name(): string;
23
- constructor({ prompt, outputKey, memory, ...rest }: Optional<LLMChainInput, "prompt">);
23
+ declare class ConversationChain extends LLMChain {
24
+ static lc_name(): string;
25
+ constructor({
26
+ prompt,
27
+ outputKey,
28
+ memory,
29
+ ...rest
30
+ }: Optional<LLMChainInput, "prompt">);
24
31
  }
32
+ //#endregion
33
+ export { ConversationChain };
34
+ //# sourceMappingURL=conversation.d.ts.map