@langchain/classic 1.0.4 → 1.0.6-dev-1765431816670

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 (950) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/_virtual/rolldown_runtime.cjs +0 -4
  3. package/dist/_virtual/rolldown_runtime.js +1 -10
  4. package/dist/agents/agent.d.cts +3 -23
  5. package/dist/agents/agent.d.cts.map +1 -1
  6. package/dist/agents/agent.d.ts +3 -23
  7. package/dist/agents/agent.d.ts.map +1 -1
  8. package/dist/agents/chat/index.d.cts.map +1 -1
  9. package/dist/agents/chat/index.d.ts.map +1 -1
  10. package/dist/agents/chat/outputParser.d.cts +2 -2
  11. package/dist/agents/chat/outputParser.d.cts.map +1 -1
  12. package/dist/agents/chat/outputParser.d.ts.map +1 -1
  13. package/dist/agents/chat_convo/index.d.cts.map +1 -1
  14. package/dist/agents/chat_convo/index.d.ts.map +1 -1
  15. package/dist/agents/chat_convo/outputParser.d.cts.map +1 -1
  16. package/dist/agents/chat_convo/outputParser.d.ts.map +1 -1
  17. package/dist/agents/executor.d.cts +1 -10
  18. package/dist/agents/executor.d.cts.map +1 -1
  19. package/dist/agents/executor.d.ts +1 -10
  20. package/dist/agents/executor.d.ts.map +1 -1
  21. package/dist/agents/format_scratchpad/log.d.cts.map +1 -1
  22. package/dist/agents/format_scratchpad/log.d.ts.map +1 -1
  23. package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -1
  24. package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -1
  25. package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -1
  26. package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -1
  27. package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -1
  28. package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -1
  29. package/dist/agents/format_scratchpad/xml.d.cts.map +1 -1
  30. package/dist/agents/format_scratchpad/xml.d.ts.map +1 -1
  31. package/dist/agents/index.d.ts +1 -0
  32. package/dist/agents/initialize.d.cts +1 -10
  33. package/dist/agents/initialize.d.cts.map +1 -1
  34. package/dist/agents/initialize.d.ts +1 -10
  35. package/dist/agents/initialize.d.ts.map +1 -1
  36. package/dist/agents/load.d.cts +2 -10
  37. package/dist/agents/load.d.cts.map +1 -1
  38. package/dist/agents/load.d.ts +2 -10
  39. package/dist/agents/load.d.ts.map +1 -1
  40. package/dist/agents/mrkl/index.d.cts.map +1 -1
  41. package/dist/agents/mrkl/index.d.ts.map +1 -1
  42. package/dist/agents/mrkl/outputParser.d.cts +1 -1
  43. package/dist/agents/mrkl/outputParser.d.cts.map +1 -1
  44. package/dist/agents/mrkl/outputParser.d.ts.map +1 -1
  45. package/dist/agents/openai_functions/index.d.cts.map +1 -1
  46. package/dist/agents/openai_functions/index.d.ts +1 -0
  47. package/dist/agents/openai_functions/index.d.ts.map +1 -1
  48. package/dist/agents/openai_functions/output_parser.d.cts.map +1 -1
  49. package/dist/agents/openai_functions/output_parser.d.ts.map +1 -1
  50. package/dist/agents/openai_tools/index.d.cts +3 -5
  51. package/dist/agents/openai_tools/index.d.cts.map +1 -1
  52. package/dist/agents/openai_tools/index.d.ts +3 -5
  53. package/dist/agents/openai_tools/index.d.ts.map +1 -1
  54. package/dist/agents/openai_tools/output_parser.d.cts.map +1 -1
  55. package/dist/agents/openai_tools/output_parser.d.ts.map +1 -1
  56. package/dist/agents/react/index.d.cts +2 -2
  57. package/dist/agents/react/index.d.cts.map +1 -1
  58. package/dist/agents/react/index.d.ts +2 -2
  59. package/dist/agents/react/index.d.ts.map +1 -1
  60. package/dist/agents/react/output_parser.d.cts.map +1 -1
  61. package/dist/agents/react/output_parser.d.ts.map +1 -1
  62. package/dist/agents/structured_chat/index.d.cts +2 -2
  63. package/dist/agents/structured_chat/index.d.cts.map +1 -1
  64. package/dist/agents/structured_chat/index.d.ts +2 -2
  65. package/dist/agents/structured_chat/index.d.ts.map +1 -1
  66. package/dist/agents/structured_chat/outputParser.d.cts.map +1 -1
  67. package/dist/agents/structured_chat/outputParser.d.ts.map +1 -1
  68. package/dist/agents/tool_calling/index.d.cts +2 -2
  69. package/dist/agents/tool_calling/index.d.cts.map +1 -1
  70. package/dist/agents/tool_calling/index.d.ts +2 -2
  71. package/dist/agents/tool_calling/index.d.ts.map +1 -1
  72. package/dist/agents/tool_calling/output_parser.d.cts.map +1 -1
  73. package/dist/agents/tool_calling/output_parser.d.ts +1 -0
  74. package/dist/agents/tool_calling/output_parser.d.ts.map +1 -1
  75. package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -1
  76. package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -1
  77. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts.map +1 -1
  78. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -1
  79. package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -1
  80. package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -1
  81. package/dist/agents/toolkits/json/json.d.cts.map +1 -1
  82. package/dist/agents/toolkits/json/json.d.ts.map +1 -1
  83. package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -1
  84. package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -1
  85. package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -1
  86. package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -1
  87. package/dist/agents/toolkits/sql/sql.d.cts.map +1 -1
  88. package/dist/agents/toolkits/sql/sql.d.ts.map +1 -1
  89. package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -1
  90. package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -1
  91. package/dist/agents/types.d.cts +0 -7
  92. package/dist/agents/types.d.cts.map +1 -1
  93. package/dist/agents/types.d.ts +0 -7
  94. package/dist/agents/types.d.ts.map +1 -1
  95. package/dist/agents/xml/index.d.cts.map +1 -1
  96. package/dist/agents/xml/index.d.ts.map +1 -1
  97. package/dist/agents/xml/output_parser.d.cts.map +1 -1
  98. package/dist/agents/xml/output_parser.d.ts.map +1 -1
  99. package/dist/cache/file_system.d.cts.map +1 -1
  100. package/dist/cache/file_system.d.ts.map +1 -1
  101. package/dist/callbacks/handlers/console.d.cts +1 -3
  102. package/dist/callbacks/handlers/console.d.cts.map +1 -1
  103. package/dist/callbacks/handlers/console.d.ts +1 -3
  104. package/dist/callbacks/handlers/console.d.ts.map +1 -1
  105. package/dist/callbacks/handlers/run_collector.d.cts +1 -3
  106. package/dist/callbacks/handlers/run_collector.d.cts.map +1 -1
  107. package/dist/callbacks/handlers/run_collector.d.ts +1 -3
  108. package/dist/callbacks/handlers/run_collector.d.ts.map +1 -1
  109. package/dist/callbacks/handlers/tracer.d.cts +1 -3
  110. package/dist/callbacks/handlers/tracer.d.cts.map +1 -1
  111. package/dist/callbacks/handlers/tracer.d.ts +1 -3
  112. package/dist/callbacks/handlers/tracer.d.ts.map +1 -1
  113. package/dist/callbacks/handlers/tracer_langchain.d.cts +1 -3
  114. package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -1
  115. package/dist/callbacks/handlers/tracer_langchain.d.ts +1 -3
  116. package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -1
  117. package/dist/callbacks/index.d.cts +8 -0
  118. package/dist/callbacks/index.d.ts +8 -0
  119. package/dist/callbacks/promises.d.cts +1 -3
  120. package/dist/callbacks/promises.d.cts.map +1 -1
  121. package/dist/callbacks/promises.d.ts +1 -3
  122. package/dist/callbacks/promises.d.ts.map +1 -1
  123. package/dist/chains/analyze_documents_chain.d.cts +0 -1
  124. package/dist/chains/analyze_documents_chain.d.cts.map +1 -1
  125. package/dist/chains/analyze_documents_chain.d.ts +0 -1
  126. package/dist/chains/analyze_documents_chain.d.ts.map +1 -1
  127. package/dist/chains/api/api_chain.d.cts.map +1 -1
  128. package/dist/chains/api/api_chain.d.ts.map +1 -1
  129. package/dist/chains/base.d.cts +1 -4
  130. package/dist/chains/base.d.cts.map +1 -1
  131. package/dist/chains/base.d.ts +1 -4
  132. package/dist/chains/base.d.ts.map +1 -1
  133. package/dist/chains/chat_vector_db_chain.d.cts +0 -1
  134. package/dist/chains/chat_vector_db_chain.d.cts.map +1 -1
  135. package/dist/chains/chat_vector_db_chain.d.ts +0 -1
  136. package/dist/chains/chat_vector_db_chain.d.ts.map +1 -1
  137. package/dist/chains/combine_docs_chain.d.cts +2 -2
  138. package/dist/chains/combine_docs_chain.d.cts.map +1 -1
  139. package/dist/chains/combine_docs_chain.d.ts +2 -2
  140. package/dist/chains/combine_docs_chain.d.ts.map +1 -1
  141. package/dist/chains/combine_documents/reduce.d.cts +1 -3
  142. package/dist/chains/combine_documents/reduce.d.cts.map +1 -1
  143. package/dist/chains/combine_documents/reduce.d.ts +1 -3
  144. package/dist/chains/combine_documents/reduce.d.ts.map +1 -1
  145. package/dist/chains/combine_documents/stuff.d.cts.map +1 -1
  146. package/dist/chains/combine_documents/stuff.d.ts.map +1 -1
  147. package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -1
  148. package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -1
  149. package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -1
  150. package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -1
  151. package/dist/chains/conversation.d.cts.map +1 -1
  152. package/dist/chains/conversation.d.ts.map +1 -1
  153. package/dist/chains/conversational_retrieval_chain.d.cts +1 -2
  154. package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -1
  155. package/dist/chains/conversational_retrieval_chain.d.ts +1 -2
  156. package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -1
  157. package/dist/chains/graph_qa/cypher.d.cts +0 -3
  158. package/dist/chains/graph_qa/cypher.d.cts.map +1 -1
  159. package/dist/chains/graph_qa/cypher.d.ts +0 -3
  160. package/dist/chains/graph_qa/cypher.d.ts.map +1 -1
  161. package/dist/chains/history_aware_retriever.d.cts.map +1 -1
  162. package/dist/chains/history_aware_retriever.d.ts.map +1 -1
  163. package/dist/chains/llm_chain.d.cts +0 -1
  164. package/dist/chains/llm_chain.d.cts.map +1 -1
  165. package/dist/chains/llm_chain.d.ts +0 -1
  166. package/dist/chains/llm_chain.d.ts.map +1 -1
  167. package/dist/chains/load.d.cts +2 -2
  168. package/dist/chains/load.d.cts.map +1 -1
  169. package/dist/chains/load.d.ts +2 -2
  170. package/dist/chains/load.d.ts.map +1 -1
  171. package/dist/chains/openai_functions/base.d.cts +4 -16
  172. package/dist/chains/openai_functions/base.d.cts.map +1 -1
  173. package/dist/chains/openai_functions/base.d.ts +4 -16
  174. package/dist/chains/openai_functions/base.d.ts.map +1 -1
  175. package/dist/chains/openai_functions/extraction.d.cts.map +1 -1
  176. package/dist/chains/openai_functions/extraction.d.ts.map +1 -1
  177. package/dist/chains/openai_functions/openapi.d.cts +1 -4
  178. package/dist/chains/openai_functions/openapi.d.cts.map +1 -1
  179. package/dist/chains/openai_functions/openapi.d.ts +1 -4
  180. package/dist/chains/openai_functions/openapi.d.ts.map +1 -1
  181. package/dist/chains/openai_functions/tagging.d.cts.map +1 -1
  182. package/dist/chains/openai_functions/tagging.d.ts.map +1 -1
  183. package/dist/chains/openai_moderation.d.cts.map +1 -1
  184. package/dist/chains/openai_moderation.d.ts.map +1 -1
  185. package/dist/chains/query_constructor/index.d.cts +1 -3
  186. package/dist/chains/query_constructor/index.d.cts.map +1 -1
  187. package/dist/chains/query_constructor/index.d.ts +1 -3
  188. package/dist/chains/query_constructor/index.d.ts.map +1 -1
  189. package/dist/chains/query_constructor/parser.d.cts.map +1 -1
  190. package/dist/chains/query_constructor/parser.d.ts.map +1 -1
  191. package/dist/chains/query_constructor/prompt.d.cts.map +1 -1
  192. package/dist/chains/query_constructor/prompt.d.ts.map +1 -1
  193. package/dist/chains/question_answering/load.d.cts +2 -2
  194. package/dist/chains/question_answering/load.d.cts.map +1 -1
  195. package/dist/chains/question_answering/load.d.ts +2 -2
  196. package/dist/chains/question_answering/load.d.ts.map +1 -1
  197. package/dist/chains/retrieval.d.cts +1 -4
  198. package/dist/chains/retrieval.d.cts.map +1 -1
  199. package/dist/chains/retrieval.d.ts +1 -4
  200. package/dist/chains/retrieval.d.ts.map +1 -1
  201. package/dist/chains/retrieval_qa.d.cts +0 -1
  202. package/dist/chains/retrieval_qa.d.cts.map +1 -1
  203. package/dist/chains/retrieval_qa.d.ts +0 -1
  204. package/dist/chains/retrieval_qa.d.ts.map +1 -1
  205. package/dist/chains/router/llm_router.d.cts.map +1 -1
  206. package/dist/chains/router/llm_router.d.ts.map +1 -1
  207. package/dist/chains/router/multi_prompt.d.cts.map +1 -1
  208. package/dist/chains/router/multi_prompt.d.ts.map +1 -1
  209. package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -1
  210. package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -1
  211. package/dist/chains/router/multi_route.d.cts.map +1 -1
  212. package/dist/chains/router/multi_route.d.ts.map +1 -1
  213. package/dist/chains/sequential_chain.d.cts.map +1 -1
  214. package/dist/chains/sequential_chain.d.ts.map +1 -1
  215. package/dist/chains/serde.d.cts.map +1 -1
  216. package/dist/chains/serde.d.ts.map +1 -1
  217. package/dist/chains/sql_db/sql_db_chain.d.cts +0 -5
  218. package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -1
  219. package/dist/chains/sql_db/sql_db_chain.d.ts +0 -5
  220. package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -1
  221. package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -1
  222. package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -1
  223. package/dist/chains/summarization/load.d.cts +2 -2
  224. package/dist/chains/summarization/load.d.cts.map +1 -1
  225. package/dist/chains/summarization/load.d.ts +2 -2
  226. package/dist/chains/summarization/load.d.ts.map +1 -1
  227. package/dist/chains/transform.d.cts.map +1 -1
  228. package/dist/chains/transform.d.ts.map +1 -1
  229. package/dist/chains/vector_db_qa.d.cts +0 -1
  230. package/dist/chains/vector_db_qa.d.cts.map +1 -1
  231. package/dist/chains/vector_db_qa.d.ts +0 -1
  232. package/dist/chains/vector_db_qa.d.ts.map +1 -1
  233. package/dist/chat_models/universal.d.cts +4 -21
  234. package/dist/chat_models/universal.d.cts.map +1 -1
  235. package/dist/chat_models/universal.d.ts +4 -21
  236. package/dist/chat_models/universal.d.ts.map +1 -1
  237. package/dist/document_loaders/fs/buffer.d.cts.map +1 -1
  238. package/dist/document_loaders/fs/buffer.d.ts.map +1 -1
  239. package/dist/document_loaders/fs/directory.d.cts +0 -2
  240. package/dist/document_loaders/fs/directory.d.cts.map +1 -1
  241. package/dist/document_loaders/fs/directory.d.ts +0 -2
  242. package/dist/document_loaders/fs/directory.d.ts.map +1 -1
  243. package/dist/document_loaders/fs/json.d.cts.map +1 -1
  244. package/dist/document_loaders/fs/json.d.ts.map +1 -1
  245. package/dist/document_loaders/fs/multi_file.d.cts.map +1 -1
  246. package/dist/document_loaders/fs/multi_file.d.ts.map +1 -1
  247. package/dist/document_loaders/fs/text.d.cts.map +1 -1
  248. package/dist/document_loaders/fs/text.d.ts.map +1 -1
  249. package/dist/document_transformers/openai_functions.d.cts.map +1 -1
  250. package/dist/document_transformers/openai_functions.d.ts +1 -1
  251. package/dist/document_transformers/openai_functions.d.ts.map +1 -1
  252. package/dist/embeddings/cache_backed.d.cts.map +1 -1
  253. package/dist/embeddings/cache_backed.d.ts.map +1 -1
  254. package/dist/evaluation/agents/index.d.ts +1 -0
  255. package/dist/evaluation/agents/trajectory.d.cts +2 -2
  256. package/dist/evaluation/agents/trajectory.d.cts.map +1 -1
  257. package/dist/evaluation/agents/trajectory.d.ts +2 -2
  258. package/dist/evaluation/agents/trajectory.d.ts.map +1 -1
  259. package/dist/evaluation/base.d.cts +1 -10
  260. package/dist/evaluation/base.d.cts.map +1 -1
  261. package/dist/evaluation/base.d.ts +2 -10
  262. package/dist/evaluation/base.d.ts.map +1 -1
  263. package/dist/evaluation/comparison/index.d.ts +1 -0
  264. package/dist/evaluation/comparison/pairwise.d.cts +3 -3
  265. package/dist/evaluation/comparison/pairwise.d.cts.map +1 -1
  266. package/dist/evaluation/comparison/pairwise.d.ts +3 -3
  267. package/dist/evaluation/comparison/pairwise.d.ts.map +1 -1
  268. package/dist/evaluation/criteria/criteria.d.cts +3 -5
  269. package/dist/evaluation/criteria/criteria.d.cts.map +1 -1
  270. package/dist/evaluation/criteria/criteria.d.ts +3 -5
  271. package/dist/evaluation/criteria/criteria.d.ts.map +1 -1
  272. package/dist/evaluation/criteria/index.d.ts +1 -0
  273. package/dist/evaluation/embedding_distance/base.d.cts.map +1 -1
  274. package/dist/evaluation/embedding_distance/base.d.ts.map +1 -1
  275. package/dist/evaluation/embedding_distance/index.d.ts +1 -0
  276. package/dist/evaluation/index.d.ts +5 -0
  277. package/dist/evaluation/loader.d.cts.map +1 -1
  278. package/dist/evaluation/loader.d.ts +2 -0
  279. package/dist/evaluation/loader.d.ts.map +1 -1
  280. package/dist/evaluation/qa/eval_chain.d.cts.map +1 -1
  281. package/dist/evaluation/qa/eval_chain.d.ts.map +1 -1
  282. package/dist/evaluation/qa/index.d.ts +1 -0
  283. package/dist/evaluation/types.d.cts.map +1 -1
  284. package/dist/evaluation/types.d.ts.map +1 -1
  285. package/dist/experimental/autogpt/agent.d.cts +0 -2
  286. package/dist/experimental/autogpt/agent.d.cts.map +1 -1
  287. package/dist/experimental/autogpt/agent.d.ts +0 -2
  288. package/dist/experimental/autogpt/agent.d.ts.map +1 -1
  289. package/dist/experimental/autogpt/output_parser.d.cts.map +1 -1
  290. package/dist/experimental/autogpt/output_parser.d.ts.map +1 -1
  291. package/dist/experimental/autogpt/prompt.d.cts.map +1 -1
  292. package/dist/experimental/autogpt/prompt.d.ts.map +1 -1
  293. package/dist/experimental/autogpt/schema.d.cts +0 -1
  294. package/dist/experimental/autogpt/schema.d.cts.map +1 -1
  295. package/dist/experimental/autogpt/schema.d.ts +0 -1
  296. package/dist/experimental/autogpt/schema.d.ts.map +1 -1
  297. package/dist/experimental/babyagi/agent.d.cts.map +1 -1
  298. package/dist/experimental/babyagi/agent.d.ts.map +1 -1
  299. package/dist/experimental/babyagi/task_creation.d.cts.map +1 -1
  300. package/dist/experimental/babyagi/task_creation.d.ts.map +1 -1
  301. package/dist/experimental/babyagi/task_execution.d.cts.map +1 -1
  302. package/dist/experimental/babyagi/task_execution.d.ts.map +1 -1
  303. package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -1
  304. package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -1
  305. package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -1
  306. package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -1
  307. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts.map +1 -1
  308. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -1
  309. package/dist/experimental/generative_agents/generative_agent.d.cts +8 -16
  310. package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -1
  311. package/dist/experimental/generative_agents/generative_agent.d.ts +8 -16
  312. package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -1
  313. package/dist/experimental/generative_agents/generative_agent_memory.d.cts +0 -1
  314. package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -1
  315. package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -1
  316. package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -1
  317. package/dist/experimental/masking/parser.d.cts.map +1 -1
  318. package/dist/experimental/masking/parser.d.ts.map +1 -1
  319. package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -1
  320. package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -1
  321. package/dist/experimental/masking/transformer.d.cts.map +1 -1
  322. package/dist/experimental/masking/transformer.d.ts.map +1 -1
  323. package/dist/experimental/masking/types.d.cts.map +1 -1
  324. package/dist/experimental/masking/types.d.ts.map +1 -1
  325. package/dist/experimental/openai_assistant/index.d.cts +1 -5
  326. package/dist/experimental/openai_assistant/index.d.cts.map +1 -1
  327. package/dist/experimental/openai_assistant/index.d.ts +1 -5
  328. package/dist/experimental/openai_assistant/index.d.ts.map +1 -1
  329. package/dist/experimental/openai_assistant/schema.d.cts +0 -1
  330. package/dist/experimental/openai_assistant/schema.d.cts.map +1 -1
  331. package/dist/experimental/openai_assistant/schema.d.ts +0 -1
  332. package/dist/experimental/openai_assistant/schema.d.ts.map +1 -1
  333. package/dist/experimental/openai_files/index.d.cts.map +1 -1
  334. package/dist/experimental/openai_files/index.d.ts.map +1 -1
  335. package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -1
  336. package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -1
  337. package/dist/experimental/plan_and_execute/base.d.cts.map +1 -1
  338. package/dist/experimental/plan_and_execute/base.d.ts.map +1 -1
  339. package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -1
  340. package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -1
  341. package/dist/experimental/prompts/custom_format.d.cts +2 -8
  342. package/dist/experimental/prompts/custom_format.d.cts.map +1 -1
  343. package/dist/experimental/prompts/custom_format.d.ts +2 -8
  344. package/dist/experimental/prompts/custom_format.d.ts.map +1 -1
  345. package/dist/experimental/prompts/handlebars.d.cts +2 -6
  346. package/dist/experimental/prompts/handlebars.d.cts.map +1 -1
  347. package/dist/experimental/prompts/handlebars.d.ts +2 -6
  348. package/dist/experimental/prompts/handlebars.d.ts.map +1 -1
  349. package/dist/hub/base.cjs +1 -1
  350. package/dist/hub/base.cjs.map +1 -1
  351. package/dist/hub/base.d.cts.map +1 -1
  352. package/dist/hub/base.d.ts.map +1 -1
  353. package/dist/hub/base.js +1 -1
  354. package/dist/hub/index.d.cts +0 -1
  355. package/dist/hub/index.d.cts.map +1 -1
  356. package/dist/hub/index.d.ts +0 -1
  357. package/dist/hub/index.d.ts.map +1 -1
  358. package/dist/hub/node.d.cts.map +1 -1
  359. package/dist/hub/node.d.ts.map +1 -1
  360. package/dist/load/import_constants.cjs +25 -24
  361. package/dist/load/import_constants.cjs.map +1 -1
  362. package/dist/load/import_constants.js +25 -24
  363. package/dist/load/import_constants.js.map +1 -1
  364. package/dist/load/import_map.cjs +47 -47
  365. package/dist/load/import_map.cjs.map +1 -1
  366. package/dist/load/import_map.js +54 -54
  367. package/dist/load/import_map.js.map +1 -1
  368. package/dist/load/import_type.d.cts +0 -1
  369. package/dist/load/import_type.d.cts.map +1 -1
  370. package/dist/load/import_type.d.ts +0 -1
  371. package/dist/load/import_type.d.ts.map +1 -1
  372. package/dist/load/index.d.cts +1 -7
  373. package/dist/load/index.d.cts.map +1 -1
  374. package/dist/load/index.d.ts +1 -7
  375. package/dist/load/index.d.ts.map +1 -1
  376. package/dist/load/map_keys.d.cts +0 -1
  377. package/dist/load/map_keys.d.cts.map +1 -1
  378. package/dist/load/map_keys.d.ts +0 -1
  379. package/dist/load/map_keys.d.ts.map +1 -1
  380. package/dist/load/serializable.d.cts +1 -10
  381. package/dist/load/serializable.d.ts +1 -10
  382. package/dist/memory/buffer_memory.d.cts.map +1 -1
  383. package/dist/memory/buffer_memory.d.ts.map +1 -1
  384. package/dist/memory/buffer_token_memory.d.cts +1 -6
  385. package/dist/memory/buffer_token_memory.d.cts.map +1 -1
  386. package/dist/memory/buffer_token_memory.d.ts +1 -6
  387. package/dist/memory/buffer_token_memory.d.ts.map +1 -1
  388. package/dist/memory/buffer_window_memory.d.cts.map +1 -1
  389. package/dist/memory/buffer_window_memory.d.ts.map +1 -1
  390. package/dist/memory/chat_memory.d.cts.map +1 -1
  391. package/dist/memory/chat_memory.d.ts.map +1 -1
  392. package/dist/memory/combined_memory.d.cts.map +1 -1
  393. package/dist/memory/combined_memory.d.ts.map +1 -1
  394. package/dist/memory/entity_memory.d.cts +0 -5
  395. package/dist/memory/entity_memory.d.cts.map +1 -1
  396. package/dist/memory/entity_memory.d.ts +0 -5
  397. package/dist/memory/entity_memory.d.ts.map +1 -1
  398. package/dist/memory/prompt.d.cts.map +1 -1
  399. package/dist/memory/prompt.d.ts.map +1 -1
  400. package/dist/memory/stores/entity/base.d.cts.map +1 -1
  401. package/dist/memory/stores/entity/base.d.ts.map +1 -1
  402. package/dist/memory/summary.d.cts.map +1 -1
  403. package/dist/memory/summary.d.ts.map +1 -1
  404. package/dist/memory/summary_buffer.d.cts.map +1 -1
  405. package/dist/memory/summary_buffer.d.ts.map +1 -1
  406. package/dist/memory/vector_store.d.cts.map +1 -1
  407. package/dist/memory/vector_store.d.ts.map +1 -1
  408. package/dist/output_parsers/combining.d.cts +0 -1
  409. package/dist/output_parsers/combining.d.cts.map +1 -1
  410. package/dist/output_parsers/combining.d.ts +0 -1
  411. package/dist/output_parsers/combining.d.ts.map +1 -1
  412. package/dist/output_parsers/datetime.d.cts.map +1 -1
  413. package/dist/output_parsers/datetime.d.ts.map +1 -1
  414. package/dist/output_parsers/expression.d.cts.map +1 -1
  415. package/dist/output_parsers/expression.d.ts.map +1 -1
  416. package/dist/output_parsers/expression_type_handlers/base.d.cts +0 -1
  417. package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -1
  418. package/dist/output_parsers/expression_type_handlers/base.d.ts +0 -1
  419. package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -1
  420. package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -1
  421. package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -1
  422. package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -1
  423. package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -1
  424. package/dist/output_parsers/fix.d.cts.map +1 -1
  425. package/dist/output_parsers/fix.d.ts.map +1 -1
  426. package/dist/output_parsers/http_response.d.cts.map +1 -1
  427. package/dist/output_parsers/http_response.d.ts.map +1 -1
  428. package/dist/output_parsers/openai_functions.d.cts.map +1 -1
  429. package/dist/output_parsers/openai_functions.d.ts.map +1 -1
  430. package/dist/output_parsers/openai_tools.d.cts +1 -4
  431. package/dist/output_parsers/openai_tools.d.cts.map +1 -1
  432. package/dist/output_parsers/openai_tools.d.ts +1 -4
  433. package/dist/output_parsers/openai_tools.d.ts.map +1 -1
  434. package/dist/output_parsers/regex.d.cts.map +1 -1
  435. package/dist/output_parsers/regex.d.ts.map +1 -1
  436. package/dist/output_parsers/router.d.cts.map +1 -1
  437. package/dist/output_parsers/router.d.ts.map +1 -1
  438. package/dist/output_parsers/structured.d.cts +2 -2
  439. package/dist/output_parsers/structured.d.cts.map +1 -1
  440. package/dist/output_parsers/structured.d.ts +2 -2
  441. package/dist/output_parsers/structured.d.ts.map +1 -1
  442. package/dist/retrievers/contextual_compression.d.cts.map +1 -1
  443. package/dist/retrievers/contextual_compression.d.ts.map +1 -1
  444. package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -1
  445. package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -1
  446. package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -1
  447. package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -1
  448. package/dist/retrievers/document_compressors/index.d.cts +0 -1
  449. package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
  450. package/dist/retrievers/document_compressors/index.d.ts +0 -1
  451. package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
  452. package/dist/retrievers/ensemble.d.cts.map +1 -1
  453. package/dist/retrievers/ensemble.d.ts.map +1 -1
  454. package/dist/retrievers/hyde.d.cts.map +1 -1
  455. package/dist/retrievers/hyde.d.ts.map +1 -1
  456. package/dist/retrievers/matryoshka_retriever.d.cts +0 -1
  457. package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -1
  458. package/dist/retrievers/matryoshka_retriever.d.ts +0 -1
  459. package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -1
  460. package/dist/retrievers/multi_query.d.cts +0 -2
  461. package/dist/retrievers/multi_query.d.cts.map +1 -1
  462. package/dist/retrievers/multi_query.d.ts +0 -2
  463. package/dist/retrievers/multi_query.d.ts.map +1 -1
  464. package/dist/retrievers/multi_vector.d.cts.map +1 -1
  465. package/dist/retrievers/multi_vector.d.ts +1 -1
  466. package/dist/retrievers/multi_vector.d.ts.map +1 -1
  467. package/dist/retrievers/parent_document.d.cts +0 -1
  468. package/dist/retrievers/parent_document.d.cts.map +1 -1
  469. package/dist/retrievers/parent_document.d.ts +0 -1
  470. package/dist/retrievers/parent_document.d.ts.map +1 -1
  471. package/dist/retrievers/score_threshold.d.cts.map +1 -1
  472. package/dist/retrievers/score_threshold.d.ts.map +1 -1
  473. package/dist/retrievers/self_query/index.cjs +1 -1
  474. package/dist/retrievers/self_query/index.d.cts.map +1 -1
  475. package/dist/retrievers/self_query/index.d.ts +1 -1
  476. package/dist/retrievers/self_query/index.d.ts.map +1 -1
  477. package/dist/retrievers/self_query/index.js +1 -1
  478. package/dist/retrievers/time_weighted.d.cts.map +1 -1
  479. package/dist/retrievers/time_weighted.d.ts +1 -1
  480. package/dist/retrievers/time_weighted.d.ts.map +1 -1
  481. package/dist/schema/prompt_template.d.cts +2 -2
  482. package/dist/schema/prompt_template.d.cts.map +1 -1
  483. package/dist/schema/prompt_template.d.ts +2 -2
  484. package/dist/schema/prompt_template.d.ts.map +1 -1
  485. package/dist/schema/query_constructor.d.cts.map +1 -1
  486. package/dist/schema/query_constructor.d.ts.map +1 -1
  487. package/dist/smith/config.d.cts +1 -11
  488. package/dist/smith/config.d.cts.map +1 -1
  489. package/dist/smith/config.d.ts +2 -11
  490. package/dist/smith/config.d.ts.map +1 -1
  491. package/dist/smith/runner_utils.cjs +4 -6
  492. package/dist/smith/runner_utils.cjs.map +1 -1
  493. package/dist/smith/runner_utils.d.cts +2 -7
  494. package/dist/smith/runner_utils.d.cts.map +1 -1
  495. package/dist/smith/runner_utils.d.ts +2 -7
  496. package/dist/smith/runner_utils.d.ts.map +1 -1
  497. package/dist/smith/runner_utils.js +1 -3
  498. package/dist/smith/runner_utils.js.map +1 -1
  499. package/dist/sql_db.d.cts.map +1 -1
  500. package/dist/sql_db.d.ts.map +1 -1
  501. package/dist/storage/encoder_backed.d.cts +0 -1
  502. package/dist/storage/encoder_backed.d.cts.map +1 -1
  503. package/dist/storage/encoder_backed.d.ts +0 -1
  504. package/dist/storage/encoder_backed.d.ts.map +1 -1
  505. package/dist/storage/file_system.d.cts.map +1 -1
  506. package/dist/storage/file_system.d.ts.map +1 -1
  507. package/dist/stores/doc/base.d.cts.map +1 -1
  508. package/dist/stores/doc/base.d.ts.map +1 -1
  509. package/dist/stores/doc/in_memory.d.cts +0 -1
  510. package/dist/stores/doc/in_memory.d.cts.map +1 -1
  511. package/dist/stores/doc/in_memory.d.ts +0 -1
  512. package/dist/stores/doc/in_memory.d.ts.map +1 -1
  513. package/dist/stores/file/base.d.cts.map +1 -1
  514. package/dist/stores/file/base.d.ts.map +1 -1
  515. package/dist/stores/file/in_memory.d.cts.map +1 -1
  516. package/dist/stores/file/in_memory.d.ts.map +1 -1
  517. package/dist/stores/file/node.d.cts.map +1 -1
  518. package/dist/stores/file/node.d.ts.map +1 -1
  519. package/dist/text_splitter.d.cts +1 -3
  520. package/dist/text_splitter.d.cts.map +1 -1
  521. package/dist/text_splitter.d.ts +1 -3
  522. package/dist/text_splitter.d.ts.map +1 -1
  523. package/dist/tools/chain.d.cts.map +1 -1
  524. package/dist/tools/chain.d.ts.map +1 -1
  525. package/dist/tools/fs.d.cts.map +1 -1
  526. package/dist/tools/fs.d.ts.map +1 -1
  527. package/dist/tools/json.d.cts.map +1 -1
  528. package/dist/tools/json.d.ts.map +1 -1
  529. package/dist/tools/render.d.cts.map +1 -1
  530. package/dist/tools/render.d.ts.map +1 -1
  531. package/dist/tools/requests.d.cts.map +1 -1
  532. package/dist/tools/requests.d.ts.map +1 -1
  533. package/dist/tools/retriever.d.cts.map +1 -1
  534. package/dist/tools/retriever.d.ts.map +1 -1
  535. package/dist/tools/sql.d.cts.map +1 -1
  536. package/dist/tools/sql.d.ts.map +1 -1
  537. package/dist/tools/vectorstore.d.cts.map +1 -1
  538. package/dist/tools/vectorstore.d.ts.map +1 -1
  539. package/dist/tools/webbrowser.d.cts +0 -1
  540. package/dist/tools/webbrowser.d.cts.map +1 -1
  541. package/dist/tools/webbrowser.d.ts +0 -1
  542. package/dist/tools/webbrowser.d.ts.map +1 -1
  543. package/dist/types/expression-parser.d.cts +0 -3
  544. package/dist/types/expression-parser.d.cts.map +1 -1
  545. package/dist/types/expression-parser.d.ts +0 -3
  546. package/dist/types/expression-parser.d.ts.map +1 -1
  547. package/dist/types/type-utils.d.cts +0 -2
  548. package/dist/types/type-utils.d.cts.map +1 -1
  549. package/dist/types/type-utils.d.ts +0 -2
  550. package/dist/types/type-utils.d.ts.map +1 -1
  551. package/dist/util/document.d.cts.map +1 -1
  552. package/dist/util/document.d.ts.map +1 -1
  553. package/dist/util/hub.cjs +2 -2
  554. package/dist/util/hub.cjs.map +1 -1
  555. package/dist/util/hub.js +1 -1
  556. package/dist/util/hub.js.map +1 -1
  557. package/dist/util/is-network-error/index.cjs +27 -0
  558. package/dist/util/is-network-error/index.cjs.map +1 -0
  559. package/dist/util/is-network-error/index.js +26 -0
  560. package/dist/util/is-network-error/index.js.map +1 -0
  561. package/dist/util/load.d.cts +0 -1
  562. package/dist/util/load.d.cts.map +1 -1
  563. package/dist/util/load.d.ts +0 -1
  564. package/dist/util/load.d.ts.map +1 -1
  565. package/dist/util/ml-distance/similarities.d.cts.map +1 -1
  566. package/dist/util/ml-distance/similarities.d.ts.map +1 -1
  567. package/dist/util/openapi.d.cts +0 -2
  568. package/dist/util/openapi.d.cts.map +1 -1
  569. package/dist/util/openapi.d.ts +0 -2
  570. package/dist/util/openapi.d.ts.map +1 -1
  571. package/dist/util/p-retry/index.cjs +141 -0
  572. package/dist/util/p-retry/index.cjs.map +1 -0
  573. package/dist/util/p-retry/index.js +141 -0
  574. package/dist/util/p-retry/index.js.map +1 -0
  575. package/dist/util/sql_utils.d.cts.map +1 -1
  576. package/dist/util/sql_utils.d.ts.map +1 -1
  577. package/dist/util/time.d.cts.map +1 -1
  578. package/dist/util/time.d.ts.map +1 -1
  579. package/dist/vectorstores/memory.d.cts +0 -1
  580. package/dist/vectorstores/memory.d.cts.map +1 -1
  581. package/dist/vectorstores/memory.d.ts +0 -1
  582. package/dist/vectorstores/memory.d.ts.map +1 -1
  583. package/package.json +766 -690
  584. package/dist/langchain-core/dist/load/map_keys.d.cts +0 -10
  585. package/dist/langchain-core/dist/load/map_keys.d.cts.map +0 -1
  586. package/dist/langchain-core/dist/load/serializable.d.cts +0 -82
  587. package/dist/langchain-core/dist/load/serializable.d.cts.map +0 -1
  588. package/dist/langchain-core/dist/messages/base.d.cts +0 -127
  589. package/dist/langchain-core/dist/messages/base.d.cts.map +0 -1
  590. package/dist/langchain-core/dist/messages/content/base.d.cts +0 -22
  591. package/dist/langchain-core/dist/messages/content/base.d.cts.map +0 -1
  592. package/dist/langchain-core/dist/messages/content/data.d.cts +0 -96
  593. package/dist/langchain-core/dist/messages/content/data.d.cts.map +0 -1
  594. package/dist/langchain-core/dist/messages/content/index.d.cts +0 -121
  595. package/dist/langchain-core/dist/messages/content/index.d.cts.map +0 -1
  596. package/dist/langchain-core/dist/messages/content/multimodal.d.cts +0 -110
  597. package/dist/langchain-core/dist/messages/content/multimodal.d.cts.map +0 -1
  598. package/dist/langchain-core/dist/messages/content/tools.d.cts +0 -130
  599. package/dist/langchain-core/dist/messages/content/tools.d.cts.map +0 -1
  600. package/dist/langchain-core/dist/messages/format.d.cts +0 -8
  601. package/dist/langchain-core/dist/messages/format.d.cts.map +0 -1
  602. package/dist/langchain-core/dist/messages/message.d.cts +0 -598
  603. package/dist/langchain-core/dist/messages/message.d.cts.map +0 -1
  604. package/dist/langchain-core/dist/messages/metadata.d.cts +0 -100
  605. package/dist/langchain-core/dist/messages/metadata.d.cts.map +0 -1
  606. package/dist/langchain-core/dist/messages/utils.d.cts +0 -75
  607. package/dist/langchain-core/dist/messages/utils.d.cts.map +0 -1
  608. package/dist/langchain-core/dist/prompt_values.d.cts +0 -13
  609. package/dist/langchain-core/dist/prompt_values.d.cts.map +0 -1
  610. package/dist/langchain-core/dist/tools/types.d.cts +0 -41
  611. package/dist/langchain-core/dist/tools/types.d.cts.map +0 -1
  612. package/dist/langchain-core/dist/utils/types/index.d.cts +0 -8
  613. package/dist/langchain-core/dist/utils/types/index.d.cts.map +0 -1
  614. package/dist/libs/langchain-core/dist/callbacks/base.d.ts +0 -1
  615. package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +0 -2
  616. package/dist/libs/langchain-core/dist/language_models/base.d.ts +0 -6
  617. package/dist/libs/langchain-core/dist/load/map_keys.d.ts +0 -10
  618. package/dist/libs/langchain-core/dist/load/map_keys.d.ts.map +0 -1
  619. package/dist/libs/langchain-core/dist/load/serializable.d.ts +0 -82
  620. package/dist/libs/langchain-core/dist/load/serializable.d.ts.map +0 -1
  621. package/dist/libs/langchain-core/dist/messages/base.d.ts +0 -127
  622. package/dist/libs/langchain-core/dist/messages/base.d.ts.map +0 -1
  623. package/dist/libs/langchain-core/dist/messages/content/base.d.ts +0 -22
  624. package/dist/libs/langchain-core/dist/messages/content/base.d.ts.map +0 -1
  625. package/dist/libs/langchain-core/dist/messages/content/data.d.ts +0 -96
  626. package/dist/libs/langchain-core/dist/messages/content/data.d.ts.map +0 -1
  627. package/dist/libs/langchain-core/dist/messages/content/index.d.ts +0 -121
  628. package/dist/libs/langchain-core/dist/messages/content/index.d.ts.map +0 -1
  629. package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +0 -110
  630. package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts.map +0 -1
  631. package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +0 -130
  632. package/dist/libs/langchain-core/dist/messages/content/tools.d.ts.map +0 -1
  633. package/dist/libs/langchain-core/dist/messages/format.d.ts +0 -8
  634. package/dist/libs/langchain-core/dist/messages/format.d.ts.map +0 -1
  635. package/dist/libs/langchain-core/dist/messages/message.d.ts +0 -598
  636. package/dist/libs/langchain-core/dist/messages/message.d.ts.map +0 -1
  637. package/dist/libs/langchain-core/dist/messages/metadata.d.ts +0 -100
  638. package/dist/libs/langchain-core/dist/messages/metadata.d.ts.map +0 -1
  639. package/dist/libs/langchain-core/dist/messages/utils.d.ts +0 -75
  640. package/dist/libs/langchain-core/dist/messages/utils.d.ts.map +0 -1
  641. package/dist/libs/langchain-core/dist/prompt_values.d.ts +0 -13
  642. package/dist/libs/langchain-core/dist/prompt_values.d.ts.map +0 -1
  643. package/dist/libs/langchain-core/dist/runnables/base.d.ts +0 -8
  644. package/dist/libs/langchain-core/dist/runnables/graph.d.ts +0 -1
  645. package/dist/libs/langchain-core/dist/runnables/types.d.ts +0 -2
  646. package/dist/libs/langchain-core/dist/tools/types.d.ts +0 -47
  647. package/dist/libs/langchain-core/dist/tools/types.d.ts.map +0 -1
  648. package/dist/libs/langchain-core/dist/tracers/base.d.ts +0 -2
  649. package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +0 -1
  650. package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +0 -3
  651. package/dist/libs/langchain-core/dist/utils/types/index.d.ts +0 -10
  652. package/dist/libs/langchain-core/dist/utils/types/index.d.ts.map +0 -1
  653. package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +0 -1
  654. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -16
  655. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +0 -2
  656. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +0 -1
  657. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +0 -2
  658. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +0 -1
  659. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +0 -2
  660. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +0 -1
  661. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +0 -2
  662. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +0 -1
  663. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +0 -2
  664. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +0 -1
  665. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +0 -2
  666. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +0 -4
  667. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +0 -2
  668. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +0 -1
  669. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +0 -2
  670. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +0 -2
  671. package/dist/load/serializable.d.cts.map +0 -1
  672. package/dist/load/serializable.d.ts.map +0 -1
  673. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
  674. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
  675. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
  676. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
  677. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.cjs +0 -3096
  678. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  679. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/client.js +0 -3095
  680. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  681. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.cjs +0 -12
  682. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  683. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/env.js +0 -12
  684. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  685. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -71
  686. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  687. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -38
  688. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  689. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -221
  690. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  691. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -221
  692. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  693. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.cjs +0 -11
  694. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  695. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/dist/index.js +0 -11
  696. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  697. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -703
  698. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  699. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -702
  700. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  701. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -7
  702. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  703. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -6
  704. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  705. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -29
  706. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  707. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -28
  708. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  709. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -115
  710. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  711. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -113
  712. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  713. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -14
  714. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  715. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -13
  716. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  717. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -94
  718. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  719. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -94
  720. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  721. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -136
  722. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  723. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -131
  724. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  725. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -102
  726. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  727. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -99
  728. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  729. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -140
  730. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  731. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -140
  732. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  733. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -18
  734. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  735. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -16
  736. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  737. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -10
  738. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  739. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -10
  740. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  741. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -30
  742. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  743. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -30
  744. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  745. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -13
  746. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  747. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -12
  748. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_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 +0 -1
  749. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.cjs +0 -6
  750. package/dist/node_modules/.pnpm/langsmith@0.3.74_@opentelemetry_api@1.9.0_openai@5.12.2_ws@8.18.3_bufferutil@4.0.9_utf-8-validate@6.0.5__zod@3.25.76_/node_modules/langsmith/index.js +0 -6
  751. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
  752. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
  753. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
  754. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
  755. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
  756. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
  757. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
  758. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
  759. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
  760. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
  761. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
  762. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
  763. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
  764. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
  765. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
  766. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
  767. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
  768. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
  769. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
  770. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
  771. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
  772. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
  773. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
  774. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
  775. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
  776. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
  777. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
  778. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
  779. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
  780. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
  781. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
  782. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
  783. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
  784. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
  785. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
  786. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
  787. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
  788. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
  789. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
  790. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
  791. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
  792. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
  793. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
  794. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
  795. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
  796. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
  797. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
  798. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
  799. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
  800. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
  801. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
  802. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
  803. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
  804. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
  805. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
  806. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
  807. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
  808. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
  809. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
  810. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
  811. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
  812. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
  813. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
  814. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
  815. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
  816. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
  817. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
  818. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
  819. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
  820. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
  821. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
  822. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
  823. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
  824. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
  825. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
  826. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
  827. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
  828. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
  829. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
  830. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
  831. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
  832. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
  833. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
  834. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
  835. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
  836. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
  837. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
  838. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
  839. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
  840. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
  841. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
  842. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
  843. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
  844. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
  845. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
  846. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
  847. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
  848. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
  849. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
  850. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
  851. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
  852. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
  853. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
  854. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
  855. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
  856. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
  857. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
  858. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
  859. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
  860. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
  861. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
  862. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
  863. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
  864. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
  865. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
  866. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
  867. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
  868. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
  869. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
  870. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
  871. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
  872. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
  873. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
  874. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
  875. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
  876. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
  877. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
  878. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
  879. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
  880. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
  881. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
  882. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
  883. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
  884. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
  885. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
  886. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
  887. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
  888. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
  889. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
  890. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
  891. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
  892. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
  893. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
  894. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
  895. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
  896. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
  897. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
  898. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
  899. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
  900. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
  901. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
  902. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
  903. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
  904. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
  905. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
  906. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
  907. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
  908. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
  909. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
  910. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
  911. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
  912. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
  913. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
  914. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
  915. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
  916. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
  917. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
  918. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
  919. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
  920. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
  921. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
  922. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
  923. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
  924. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
  925. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
  926. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
  927. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
  928. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
  929. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
  930. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
  931. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
  932. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
  933. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
  934. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
  935. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
  936. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
  937. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
  938. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
  939. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
  940. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
  941. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
  942. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
  943. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
  944. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
  945. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
  946. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
  947. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
  948. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
  949. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
  950. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"multi_retrieval_qa.d.ts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","PromptTemplate","MultiRouteChain","MultiRouteChainInput","BaseChain","RetrievalQAChainInput","MultiRetrievalDefaults","MultiRetrievalQAChain","Omit","retrieverNames","retrieverDescriptions","retrievers","retrieverPrompts","defaults","multiRetrievalChainOpts","retrievalQAChainOpts","Partial"],"sources":["../../../src/chains/router/multi_retrieval_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { PromptTemplate } from \"@langchain/core/prompts\";\nimport { MultiRouteChain, MultiRouteChainInput } from \"./multi_route.js\";\nimport { BaseChain } from \"../../chains/base.js\";\nimport { RetrievalQAChainInput } from \"../../chains/retrieval_qa.js\";\n/**\n * A type that represents the default values for the MultiRetrievalQAChain\n * class. It includes optional properties for the default retriever,\n * default prompt, and default chain.\n */\nexport type MultiRetrievalDefaults = {\n defaultRetriever?: BaseRetrieverInterface;\n defaultPrompt?: PromptTemplate;\n defaultChain?: BaseChain;\n};\n/**\n * A class that represents a multi-retrieval question answering chain in\n * the LangChain framework. It extends the MultiRouteChain class and\n * provides additional functionality specific to multi-retrieval QA\n * chains.\n * @example\n * ```typescript\n * const multiRetrievalQAChain = MultiRetrievalQAChain.fromLLMAndRetrievers(\n * new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * {\n * retrieverNames: [\"aqua teen\", \"mst3k\", \"animaniacs\"],\n * retrieverDescriptions: [\n * \"Good for answering questions about Aqua Teen Hunger Force theme song\",\n * \"Good for answering questions about Mystery Science Theater 3000 theme song\",\n * \"Good for answering questions about Animaniacs theme song\",\n * ],\n * retrievers: [\n * new MemoryVectorStore().asRetriever(3),\n * new MemoryVectorStore().asRetriever(3),\n * new MemoryVectorStore().asRetriever(3),\n * ],\n * retrievalQAChainOpts: {\n * returnSourceDocuments: true,\n * },\n * },\n * );\n *\n * const result = await multiRetrievalQAChain.call({\n * input:\n * \"In the Aqua Teen Hunger Force theme song, who calls himself the mike rula?\",\n * });\n *\n * console.log(result.sourceDocuments, result.text);\n * ```\n */\nexport declare class MultiRetrievalQAChain extends MultiRouteChain {\n get outputKeys(): string[];\n /**\n * @deprecated Use `fromRetrieversAndPrompts` instead\n */\n static fromRetrievers(llm: BaseLanguageModelInterface, retrieverNames: string[], retrieverDescriptions: string[], retrievers: BaseRetrieverInterface[], retrieverPrompts?: PromptTemplate[], defaults?: MultiRetrievalDefaults, options?: Omit<MultiRouteChainInput, \"defaultChain\">): MultiRetrievalQAChain;\n /**\n * A static method that creates an instance of MultiRetrievalQAChain from\n * a BaseLanguageModel and a set of retrievers. It takes in optional\n * parameters for the retriever names, descriptions, prompts, defaults,\n * and additional options. It is an alternative method to fromRetrievers\n * and provides more flexibility in configuring the underlying chains.\n * @param llm A BaseLanguageModel instance.\n * @param retrieverNames An array of retriever names.\n * @param retrieverDescriptions An array of retriever descriptions.\n * @param retrievers An array of BaseRetrieverInterface instances.\n * @param retrieverPrompts An optional array of PromptTemplate instances for the retrievers.\n * @param defaults An optional MultiRetrievalDefaults instance.\n * @param multiRetrievalChainOpts Additional optional parameters for the multi-retrieval chain.\n * @param retrievalQAChainOpts Additional optional parameters for the retrieval QA chain.\n * @returns A new instance of MultiRetrievalQAChain.\n */\n static fromLLMAndRetrievers(llm: BaseLanguageModelInterface, { retrieverNames, retrieverDescriptions, retrievers, retrieverPrompts, defaults, multiRetrievalChainOpts, retrievalQAChainOpts }: {\n retrieverNames: string[];\n retrieverDescriptions: string[];\n retrievers: BaseRetrieverInterface[];\n retrieverPrompts?: PromptTemplate[];\n defaults?: MultiRetrievalDefaults;\n multiRetrievalChainOpts?: Omit<MultiRouteChainInput, \"defaultChain\">;\n retrievalQAChainOpts?: Partial<Omit<RetrievalQAChainInput, \"retriever\" | \"combineDocumentsChain\">> & {\n prompt?: PromptTemplate;\n };\n }): MultiRetrievalQAChain;\n _chainType(): string;\n}\n"],"mappings":";;;;;;;;;;;AAWA;;;AAEoBE,KAFRK,sBAAAA,GAEQL;EAAc,gBACfG,CAAAA,EAFIJ,sBAEJI;EAAS,aAAA,CAAA,EADRH,cACQ;EAqCPM,YAAAA,CAAAA,EArCFH,SAqCuB;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAwB;;;;;;;;;cAA7CG,qBAAAA,SAA8BL,eAAAA;;;;;6BAKpBH,mGAAmGC,6CAA6CC,6BAA6BK,kCAAkCE,KAAKL,wCAAwCI;;;;;;;;;;;;;;;;;mCAiBtPR;;;;;;;;;;;gBAGjBC;uBACOC;eACRK;8BACeE,KAAKL;2BACRa,QAAQR,KAAKH;eACvBJ;;MAEbM"}
1
+ {"version":3,"file":"multi_retrieval_qa.d.ts","names":["BaseLanguageModelInterface","BaseRetrieverInterface","PromptTemplate","MultiRouteChain","MultiRouteChainInput","BaseChain","RetrievalQAChainInput","MultiRetrievalDefaults","MultiRetrievalQAChain","Omit","retrieverNames","retrieverDescriptions","retrievers","retrieverPrompts","defaults","multiRetrievalChainOpts","retrievalQAChainOpts","Partial"],"sources":["../../../src/chains/router/multi_retrieval_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { PromptTemplate } from \"@langchain/core/prompts\";\nimport { MultiRouteChain, MultiRouteChainInput } from \"./multi_route.js\";\nimport { BaseChain } from \"../../chains/base.js\";\nimport { RetrievalQAChainInput } from \"../../chains/retrieval_qa.js\";\n/**\n * A type that represents the default values for the MultiRetrievalQAChain\n * class. It includes optional properties for the default retriever,\n * default prompt, and default chain.\n */\nexport type MultiRetrievalDefaults = {\n defaultRetriever?: BaseRetrieverInterface;\n defaultPrompt?: PromptTemplate;\n defaultChain?: BaseChain;\n};\n/**\n * A class that represents a multi-retrieval question answering chain in\n * the LangChain framework. It extends the MultiRouteChain class and\n * provides additional functionality specific to multi-retrieval QA\n * chains.\n * @example\n * ```typescript\n * const multiRetrievalQAChain = MultiRetrievalQAChain.fromLLMAndRetrievers(\n * new ChatOpenAI({ model: \"gpt-4o-mini\" }),\n * {\n * retrieverNames: [\"aqua teen\", \"mst3k\", \"animaniacs\"],\n * retrieverDescriptions: [\n * \"Good for answering questions about Aqua Teen Hunger Force theme song\",\n * \"Good for answering questions about Mystery Science Theater 3000 theme song\",\n * \"Good for answering questions about Animaniacs theme song\",\n * ],\n * retrievers: [\n * new MemoryVectorStore().asRetriever(3),\n * new MemoryVectorStore().asRetriever(3),\n * new MemoryVectorStore().asRetriever(3),\n * ],\n * retrievalQAChainOpts: {\n * returnSourceDocuments: true,\n * },\n * },\n * );\n *\n * const result = await multiRetrievalQAChain.call({\n * input:\n * \"In the Aqua Teen Hunger Force theme song, who calls himself the mike rula?\",\n * });\n *\n * console.log(result.sourceDocuments, result.text);\n * ```\n */\nexport declare class MultiRetrievalQAChain extends MultiRouteChain {\n get outputKeys(): string[];\n /**\n * @deprecated Use `fromRetrieversAndPrompts` instead\n */\n static fromRetrievers(llm: BaseLanguageModelInterface, retrieverNames: string[], retrieverDescriptions: string[], retrievers: BaseRetrieverInterface[], retrieverPrompts?: PromptTemplate[], defaults?: MultiRetrievalDefaults, options?: Omit<MultiRouteChainInput, \"defaultChain\">): MultiRetrievalQAChain;\n /**\n * A static method that creates an instance of MultiRetrievalQAChain from\n * a BaseLanguageModel and a set of retrievers. It takes in optional\n * parameters for the retriever names, descriptions, prompts, defaults,\n * and additional options. It is an alternative method to fromRetrievers\n * and provides more flexibility in configuring the underlying chains.\n * @param llm A BaseLanguageModel instance.\n * @param retrieverNames An array of retriever names.\n * @param retrieverDescriptions An array of retriever descriptions.\n * @param retrievers An array of BaseRetrieverInterface instances.\n * @param retrieverPrompts An optional array of PromptTemplate instances for the retrievers.\n * @param defaults An optional MultiRetrievalDefaults instance.\n * @param multiRetrievalChainOpts Additional optional parameters for the multi-retrieval chain.\n * @param retrievalQAChainOpts Additional optional parameters for the retrieval QA chain.\n * @returns A new instance of MultiRetrievalQAChain.\n */\n static fromLLMAndRetrievers(llm: BaseLanguageModelInterface, { retrieverNames, retrieverDescriptions, retrievers, retrieverPrompts, defaults, multiRetrievalChainOpts, retrievalQAChainOpts }: {\n retrieverNames: string[];\n retrieverDescriptions: string[];\n retrievers: BaseRetrieverInterface[];\n retrieverPrompts?: PromptTemplate[];\n defaults?: MultiRetrievalDefaults;\n multiRetrievalChainOpts?: Omit<MultiRouteChainInput, \"defaultChain\">;\n retrievalQAChainOpts?: Partial<Omit<RetrievalQAChainInput, \"retriever\" | \"combineDocumentsChain\">> & {\n prompt?: PromptTemplate;\n };\n }): MultiRetrievalQAChain;\n _chainType(): string;\n}\n//# sourceMappingURL=multi_retrieval_qa.d.ts.map"],"mappings":";;;;;;;;;;;AAWA;;;AAGmBK,KAHPE,sBAAAA,GAGOF;EAAS,gBAAA,CAAA,EAFLJ,sBAEK;EAqCPO,aAAAA,CAAAA,EAtCDN,cAsCsB;EAKXF,YAAAA,CAAAA,EA1CZK,SA0CYL;CAAmGC;;;;;;;;;;;;;;;;;;;;;;;;;AALhE;;;;;;;;;;;cAA7CO,qBAAAA,SAA8BL,eAAAA;;;;;6BAKpBH,mGAAmGC,6CAA6CC,6BAA6BK,kCAAkCE,KAAKL,wCAAwCI;;;;;;;;;;;;;;;;;mCAiBtPR;;;;;;;;;;;gBAGjBC;uBACOC;eACRK;8BACeE,KAAKL;2BACRa,QAAQR,KAAKH;eACvBJ;;MAEbM"}
@@ -1 +1 @@
1
- {"version":3,"file":"multi_route.d.cts","names":["ChainValues","CallbackManagerForChainRun","Callbacks","BaseChain","ChainInputs","Inputs","Route","MultiRouteChainInput","RouterChain","Promise","MultiRouteChain"],"sources":["../../../src/chains/router/multi_route.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../../chains/base.js\";\n/**\n * A type that represents the inputs for the MultiRouteChain. It is a\n * recursive type that can contain nested objects, arrays, strings, and\n * numbers.\n */\ntype Inputs = {\n [key: string]: Inputs | Inputs[] | string | string[] | number | number[];\n};\n/**\n * An interface that represents the route returned by the RouterChain. It\n * includes optional fields for the destination and nextInputs.\n */\nexport interface Route {\n destination?: string;\n nextInputs: {\n [key: string]: Inputs;\n };\n}\n/**\n * An interface that extends the ChainInputs interface and adds additional\n * properties for the routerChain, destinationChains, defaultChain, and\n * silentErrors. It represents the input expected by the MultiRouteChain\n * class.\n */\nexport interface MultiRouteChainInput extends ChainInputs {\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors?: boolean;\n}\n/**\n * A class that represents a router chain. It\n * extends the BaseChain class and provides functionality for routing\n * inputs to different chains.\n */\nexport declare abstract class RouterChain extends BaseChain {\n get outputKeys(): string[];\n route(inputs: ChainValues, callbacks?: Callbacks): Promise<Route>;\n}\n/**\n * A class that represents a multi-route chain.\n * It extends the BaseChain class and provides functionality for routing\n * inputs to different chains based on a router chain.\n */\nexport declare class MultiRouteChain extends BaseChain {\n static lc_name(): string;\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors: boolean;\n constructor(fields: MultiRouteChainInput);\n get inputKeys(): string[];\n get outputKeys(): string[];\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n}\nexport {};\n"],"mappings":";;;;;;;;AAE8D;;;KAMzDK,MAAAA,GACuBA;EAAM,CAAA,GAAA,EAAA,MAAA,CAAA,EAAfA,MAAe,GAANA,MAAM,EAAA,GAAA,MAAA,GAAA,MAAA,EAAA,GAAA,MAAA,GAAA,MAAA,EAAA;AAMlC,CAAA;AAYA;;;;AAKkBF,UAjBDG,KAAAA,CAiBCH;EAAS,WALmBC,CAAAA,EAAAA,MAAAA;EAAW,UAAA,EAAA;IAa3BI,CAAAA,GAAAA,EAAAA,MAAW,CAAA,EAtBlBH,MAsBkB;EAAA,CAAA;;;;;;AAAkB;AAS3D;AAAoC,UAtBnBE,oBAAAA,SAA6BH,WAsBV,CAAA;EAAA,WAEnBI,EAvBAA,WAuBAA;EAAW,iBAEJL,EAAAA;IAENA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EAzBMA,SAyBNA;EAAS,CAAA;EAEiB,YAG1BH,EA5BAG,SA4BAH;EAAW,YAAeC,CAAAA,EAAAA,OAAAA;;;;AAXU;;;uBATxBO,WAAAA,SAAoBL,SAAAA;;gBAEhCH,yBAAyBE,YAAYO,QAAQH;;;;;;;cAO1CI,eAAAA,SAAwBP,SAAAA;;eAE5BK;;oBAEOL;;gBAENA;;sBAEMI;;;gBAGNP,0BAA0BC,6BAA6BQ,QAAQT"}
1
+ {"version":3,"file":"multi_route.d.cts","names":["ChainValues","CallbackManagerForChainRun","Callbacks","BaseChain","ChainInputs","Inputs","Route","MultiRouteChainInput","RouterChain","Promise","MultiRouteChain"],"sources":["../../../src/chains/router/multi_route.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../../chains/base.js\";\n/**\n * A type that represents the inputs for the MultiRouteChain. It is a\n * recursive type that can contain nested objects, arrays, strings, and\n * numbers.\n */\ntype Inputs = {\n [key: string]: Inputs | Inputs[] | string | string[] | number | number[];\n};\n/**\n * An interface that represents the route returned by the RouterChain. It\n * includes optional fields for the destination and nextInputs.\n */\nexport interface Route {\n destination?: string;\n nextInputs: {\n [key: string]: Inputs;\n };\n}\n/**\n * An interface that extends the ChainInputs interface and adds additional\n * properties for the routerChain, destinationChains, defaultChain, and\n * silentErrors. It represents the input expected by the MultiRouteChain\n * class.\n */\nexport interface MultiRouteChainInput extends ChainInputs {\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors?: boolean;\n}\n/**\n * A class that represents a router chain. It\n * extends the BaseChain class and provides functionality for routing\n * inputs to different chains.\n */\nexport declare abstract class RouterChain extends BaseChain {\n get outputKeys(): string[];\n route(inputs: ChainValues, callbacks?: Callbacks): Promise<Route>;\n}\n/**\n * A class that represents a multi-route chain.\n * It extends the BaseChain class and provides functionality for routing\n * inputs to different chains based on a router chain.\n */\nexport declare class MultiRouteChain extends BaseChain {\n static lc_name(): string;\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors: boolean;\n constructor(fields: MultiRouteChainInput);\n get inputKeys(): string[];\n get outputKeys(): string[];\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n}\nexport {};\n//# sourceMappingURL=multi_route.d.ts.map"],"mappings":";;;;;;;;AAE8D;AAa9D;AAYA;KAnBKK,MAAAA,GAoBYG;EAEOL,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EArBLE,MAqBKF,GArBIE,MAqBJF,EAAAA,GAAAA,MAAAA,GAAAA,MAAAA,EAAAA,GAAAA,MAAAA,GAAAA,MAAAA,EAAAA;CAENA;;AALuC;AAazD;;AAE2CD,UA3B1BI,KAAAA,CA2B0BJ;EAAoBI,WAAAA,CAAAA,EAAAA,MAAAA;EAARG,UAAAA,EAAAA;IAFLN,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAtB3BE,MAsB2BF;EAAS,CAAA;AAS3D;;;;;;;AAWiFH,UAjChEO,oBAAAA,SAA6BH,WAiCmCJ,CAAAA;EAARS,WAAAA,EAhCxDD,WAgCwDC;EAX5BN,iBAAAA,EAAAA;IAAS,CAAA,IAAA,EAAA,MAAA,CAAA,EAnB9BA,SAmB8B;;gBAjBpCA;;;;;;;;uBAQYK,WAAAA,SAAoBL,SAAAA;;gBAEhCH,yBAAyBE,YAAYO,QAAQH;;;;;;;cAO1CI,eAAAA,SAAwBP,SAAAA;;eAE5BK;;oBAEOL;;gBAENA;;sBAEMI;;;gBAGNP,0BAA0BC,6BAA6BQ,QAAQT"}
@@ -1 +1 @@
1
- {"version":3,"file":"multi_route.d.ts","names":["ChainValues","CallbackManagerForChainRun","Callbacks","BaseChain","ChainInputs","Inputs","Route","MultiRouteChainInput","RouterChain","Promise","MultiRouteChain"],"sources":["../../../src/chains/router/multi_route.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../../chains/base.js\";\n/**\n * A type that represents the inputs for the MultiRouteChain. It is a\n * recursive type that can contain nested objects, arrays, strings, and\n * numbers.\n */\ntype Inputs = {\n [key: string]: Inputs | Inputs[] | string | string[] | number | number[];\n};\n/**\n * An interface that represents the route returned by the RouterChain. It\n * includes optional fields for the destination and nextInputs.\n */\nexport interface Route {\n destination?: string;\n nextInputs: {\n [key: string]: Inputs;\n };\n}\n/**\n * An interface that extends the ChainInputs interface and adds additional\n * properties for the routerChain, destinationChains, defaultChain, and\n * silentErrors. It represents the input expected by the MultiRouteChain\n * class.\n */\nexport interface MultiRouteChainInput extends ChainInputs {\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors?: boolean;\n}\n/**\n * A class that represents a router chain. It\n * extends the BaseChain class and provides functionality for routing\n * inputs to different chains.\n */\nexport declare abstract class RouterChain extends BaseChain {\n get outputKeys(): string[];\n route(inputs: ChainValues, callbacks?: Callbacks): Promise<Route>;\n}\n/**\n * A class that represents a multi-route chain.\n * It extends the BaseChain class and provides functionality for routing\n * inputs to different chains based on a router chain.\n */\nexport declare class MultiRouteChain extends BaseChain {\n static lc_name(): string;\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors: boolean;\n constructor(fields: MultiRouteChainInput);\n get inputKeys(): string[];\n get outputKeys(): string[];\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n}\nexport {};\n"],"mappings":";;;;;;;;AAE8D;;;KAMzDK,MAAAA,GACuBA;EAAM,CAAA,GAAA,EAAA,MAAA,CAAA,EAAfA,MAAe,GAANA,MAAM,EAAA,GAAA,MAAA,GAAA,MAAA,EAAA,GAAA,MAAA,GAAA,MAAA,EAAA;AAMlC,CAAA;AAYA;;;;AAKkBF,UAjBDG,KAAAA,CAiBCH;EAAS,WALmBC,CAAAA,EAAAA,MAAAA;EAAW,UAAA,EAAA;IAa3BI,CAAAA,GAAAA,EAAAA,MAAW,CAAA,EAtBlBH,MAsBkB;EAAA,CAAA;;;;;;AAAkB;AAS3D;AAAoC,UAtBnBE,oBAAAA,SAA6BH,WAsBV,CAAA;EAAA,WAEnBI,EAvBAA,WAuBAA;EAAW,iBAEJL,EAAAA;IAENA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EAzBMA,SAyBNA;EAAS,CAAA;EAEiB,YAG1BH,EA5BAG,SA4BAH;EAAW,YAAeC,CAAAA,EAAAA,OAAAA;;;;AAXU;;;uBATxBO,WAAAA,SAAoBL,SAAAA;;gBAEhCH,yBAAyBE,YAAYO,QAAQH;;;;;;;cAO1CI,eAAAA,SAAwBP,SAAAA;;eAE5BK;;oBAEOL;;gBAENA;;sBAEMI;;;gBAGNP,0BAA0BC,6BAA6BQ,QAAQT"}
1
+ {"version":3,"file":"multi_route.d.ts","names":["ChainValues","CallbackManagerForChainRun","Callbacks","BaseChain","ChainInputs","Inputs","Route","MultiRouteChainInput","RouterChain","Promise","MultiRouteChain"],"sources":["../../../src/chains/router/multi_route.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"../../chains/base.js\";\n/**\n * A type that represents the inputs for the MultiRouteChain. It is a\n * recursive type that can contain nested objects, arrays, strings, and\n * numbers.\n */\ntype Inputs = {\n [key: string]: Inputs | Inputs[] | string | string[] | number | number[];\n};\n/**\n * An interface that represents the route returned by the RouterChain. It\n * includes optional fields for the destination and nextInputs.\n */\nexport interface Route {\n destination?: string;\n nextInputs: {\n [key: string]: Inputs;\n };\n}\n/**\n * An interface that extends the ChainInputs interface and adds additional\n * properties for the routerChain, destinationChains, defaultChain, and\n * silentErrors. It represents the input expected by the MultiRouteChain\n * class.\n */\nexport interface MultiRouteChainInput extends ChainInputs {\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors?: boolean;\n}\n/**\n * A class that represents a router chain. It\n * extends the BaseChain class and provides functionality for routing\n * inputs to different chains.\n */\nexport declare abstract class RouterChain extends BaseChain {\n get outputKeys(): string[];\n route(inputs: ChainValues, callbacks?: Callbacks): Promise<Route>;\n}\n/**\n * A class that represents a multi-route chain.\n * It extends the BaseChain class and provides functionality for routing\n * inputs to different chains based on a router chain.\n */\nexport declare class MultiRouteChain extends BaseChain {\n static lc_name(): string;\n routerChain: RouterChain;\n destinationChains: {\n [name: string]: BaseChain;\n };\n defaultChain: BaseChain;\n silentErrors: boolean;\n constructor(fields: MultiRouteChainInput);\n get inputKeys(): string[];\n get outputKeys(): string[];\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): string;\n}\nexport {};\n//# sourceMappingURL=multi_route.d.ts.map"],"mappings":";;;;;;;;AAE8D;AAa9D;AAYA;KAnBKK,MAAAA,GAoBYG;EAEOL,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EArBLE,MAqBKF,GArBIE,MAqBJF,EAAAA,GAAAA,MAAAA,GAAAA,MAAAA,EAAAA,GAAAA,MAAAA,GAAAA,MAAAA,EAAAA;CAENA;;AALuC;AAazD;;AAE2CD,UA3B1BI,KAAAA,CA2B0BJ;EAAoBI,WAAAA,CAAAA,EAAAA,MAAAA;EAARG,UAAAA,EAAAA;IAFLN,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAtB3BE,MAsB2BF;EAAS,CAAA;AAS3D;;;;;;;AAWiFH,UAjChEO,oBAAAA,SAA6BH,WAiCmCJ,CAAAA;EAARS,WAAAA,EAhCxDD,WAgCwDC;EAX5BN,iBAAAA,EAAAA;IAAS,CAAA,IAAA,EAAA,MAAA,CAAA,EAnB9BA,SAmB8B;;gBAjBpCA;;;;;;;;uBAQYK,WAAAA,SAAoBL,SAAAA;;gBAEhCH,yBAAyBE,YAAYO,QAAQH;;;;;;;cAO1CI,eAAAA,SAAwBP,SAAAA;;eAE5BK;;oBAEOL;;gBAENA;;sBAEMI;;;gBAGNP,0BAA0BC,6BAA6BQ,QAAQT"}
@@ -1 +1 @@
1
- {"version":3,"file":"sequential_chain.d.cts","names":["ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","SerializedSequentialChain","SerializedSimpleSequentialChain","SequentialChainInput","SequentialChain","Promise","SimpleSequentialChainInput","Array","SimpleSequentialChain"],"sources":["../../src/chains/sequential_chain.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedSequentialChain, SerializedSimpleSequentialChain } from \"./serde.js\";\n/**\n * Interface for the input parameters of the SequentialChain class.\n */\nexport interface SequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: BaseChain[];\n /** Defines which variables should be passed as initial input to the first chain. */\n inputVariables: string[];\n /** Which variables should be returned as a result of executing the chain. If not specified, output of the last of the chains is used. */\n outputVariables?: string[];\n /** Whether or not to return all intermediate outputs and variables (excluding initial input variables). */\n returnAll?: boolean;\n}\n/**\n * Chain where the outputs of one chain feed directly into next.\n * @example\n * ```typescript\n * const promptTemplate = new PromptTemplate({\n * template: `You are a playwright. Given the title of play and the era it is set in, it is your job to write a synopsis for that title.\n * Title: {title}\n * Era: {era}\n * Playwright: This is a synopsis for the above play:`,\n * inputVariables: [\"title\", \"era\"],\n * });\n\n * const reviewPromptTemplate = new PromptTemplate({\n * template: `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`,\n * inputVariables: [\"synopsis\"],\n * });\n\n * const overallChain = new SequentialChain({\n * chains: [\n * new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: promptTemplate,\n * outputKey: \"synopsis\",\n * }),\n * new LLMChain({\n * llm: new OpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: reviewPromptTemplate,\n * outputKey: \"review\",\n * }),\n * ],\n * inputVariables: [\"era\", \"title\"],\n * outputVariables: [\"synopsis\", \"review\"],\n * verbose: true,\n * });\n\n * const chainExecutionResult = await overallChain.call({\n * title: \"Tragedy at sunset on the beach\",\n * era: \"Victorian England\",\n * });\n * console.log(chainExecutionResult);\n * ```\n */\nexport declare class SequentialChain extends BaseChain implements SequentialChainInput {\n static lc_name(): string;\n chains: BaseChain[];\n inputVariables: string[];\n outputVariables: string[];\n returnAll?: boolean | undefined;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sequential_chain\";\n static deserialize(data: SerializedSequentialChain): Promise<SequentialChain>;\n serialize(): SerializedSequentialChain;\n}\n/**\n * Interface for the input parameters of the SimpleSequentialChain class.\n */\nexport interface SimpleSequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: Array<BaseChain>;\n /** Whether or not to trim the intermediate outputs. */\n trimOutputs?: boolean;\n}\n/**\n * Simple chain where a single string output of one chain is fed directly into the next.\n * @augments BaseChain\n * @augments SimpleSequentialChainInput\n *\n * @example\n * ```ts\n * import { SimpleSequentialChain, LLMChain } from \"@langchain/classic/chains\";\n * import { OpenAI } from \"langchain/llms/openai\";\n * import { PromptTemplate } from \"langchain/prompts\";\n *\n * // This is an LLMChain to write a synopsis given a title of a play.\n * const llm = new OpenAI({ temperature: 0 });\n * const template = `You are a playwright. Given the title of play, it is your job to write a synopsis for that title.\n *\n * Title: {title}\n * Playwright: This is a synopsis for the above play:`\n * const promptTemplate = new PromptTemplate({ template, inputVariables: [\"title\"] });\n * const synopsisChain = new LLMChain({ llm, prompt: promptTemplate });\n *\n *\n * // This is an LLMChain to write a review of a play given a synopsis.\n * const reviewLLM = new OpenAI({ temperature: 0 })\n * const reviewTemplate = `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`\n * const reviewPromptTemplate = new PromptTemplate({ template: reviewTemplate, inputVariables: [\"synopsis\"] });\n * const reviewChain = new LLMChain({ llm: reviewLLM, prompt: reviewPromptTemplate });\n *\n * const overallChain = new SimpleSequentialChain({chains: [synopsisChain, reviewChain], verbose:true})\n * const review = await overallChain.run(\"Tragedy at sunset on the beach\")\n * // the variable review contains resulting play review.\n * ```\n */\nexport declare class SimpleSequentialChain extends BaseChain implements SimpleSequentialChainInput {\n static lc_name(): string;\n chains: Array<BaseChain>;\n inputKey: string;\n outputKey: string;\n trimOutputs: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SimpleSequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"simple_sequential_chain\";\n static deserialize(data: SerializedSimpleSequentialChain): Promise<SimpleSequentialChain>;\n serialize(): SerializedSimpleSequentialChain;\n}\n"],"mappings":";;;;;;;;;AAOA;AAAqC,UAApBM,oBAAAA,SAA6BH,WAAT,CAAA;EAAA;EAEhB,MAFyBA,EAElCD,SAFkCC,EAAAA;EAAW;EAwDpCI,cAAAA,EAAAA,MAAe,EAAA;EAAA;EAAA,eAExBL,CAAAA,EAAAA,MAAAA,EAAAA;EAAS;EAMuB,SAI1BF,CAAAA,EAAAA,OAAAA;;;;;;;;;;AAZoE;AAoBtF;;;;;AAA+D;AA0C/D;;;;;;;;;;;;;;;AAAkG;;;;;;;;;;;;;;;;cA9D7EO,eAAAA,SAAwBL,SAAAA,YAAqBI;;UAEtDJ;;;;;;sBAMYI;;;;gBAINN,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDI,4BAA4BI,QAAQD;eAChDH;;;;;UAKAK,0BAAAA,SAAmCN;;UAExCO,MAAMR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCGS,qBAAAA,SAA8BT,SAAAA,YAAqBO;;UAE5DC,MAAMR;;;;;;sBAMMO;;;;gBAINT,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDK,kCAAkCG,QAAQG;eACtDN"}
1
+ {"version":3,"file":"sequential_chain.d.cts","names":["ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","SerializedSequentialChain","SerializedSimpleSequentialChain","SequentialChainInput","SequentialChain","Promise","SimpleSequentialChainInput","Array","SimpleSequentialChain"],"sources":["../../src/chains/sequential_chain.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedSequentialChain, SerializedSimpleSequentialChain } from \"./serde.js\";\n/**\n * Interface for the input parameters of the SequentialChain class.\n */\nexport interface SequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: BaseChain[];\n /** Defines which variables should be passed as initial input to the first chain. */\n inputVariables: string[];\n /** Which variables should be returned as a result of executing the chain. If not specified, output of the last of the chains is used. */\n outputVariables?: string[];\n /** Whether or not to return all intermediate outputs and variables (excluding initial input variables). */\n returnAll?: boolean;\n}\n/**\n * Chain where the outputs of one chain feed directly into next.\n * @example\n * ```typescript\n * const promptTemplate = new PromptTemplate({\n * template: `You are a playwright. Given the title of play and the era it is set in, it is your job to write a synopsis for that title.\n * Title: {title}\n * Era: {era}\n * Playwright: This is a synopsis for the above play:`,\n * inputVariables: [\"title\", \"era\"],\n * });\n\n * const reviewPromptTemplate = new PromptTemplate({\n * template: `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`,\n * inputVariables: [\"synopsis\"],\n * });\n\n * const overallChain = new SequentialChain({\n * chains: [\n * new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: promptTemplate,\n * outputKey: \"synopsis\",\n * }),\n * new LLMChain({\n * llm: new OpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: reviewPromptTemplate,\n * outputKey: \"review\",\n * }),\n * ],\n * inputVariables: [\"era\", \"title\"],\n * outputVariables: [\"synopsis\", \"review\"],\n * verbose: true,\n * });\n\n * const chainExecutionResult = await overallChain.call({\n * title: \"Tragedy at sunset on the beach\",\n * era: \"Victorian England\",\n * });\n * console.log(chainExecutionResult);\n * ```\n */\nexport declare class SequentialChain extends BaseChain implements SequentialChainInput {\n static lc_name(): string;\n chains: BaseChain[];\n inputVariables: string[];\n outputVariables: string[];\n returnAll?: boolean | undefined;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sequential_chain\";\n static deserialize(data: SerializedSequentialChain): Promise<SequentialChain>;\n serialize(): SerializedSequentialChain;\n}\n/**\n * Interface for the input parameters of the SimpleSequentialChain class.\n */\nexport interface SimpleSequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: Array<BaseChain>;\n /** Whether or not to trim the intermediate outputs. */\n trimOutputs?: boolean;\n}\n/**\n * Simple chain where a single string output of one chain is fed directly into the next.\n * @augments BaseChain\n * @augments SimpleSequentialChainInput\n *\n * @example\n * ```ts\n * import { SimpleSequentialChain, LLMChain } from \"@langchain/classic/chains\";\n * import { OpenAI } from \"langchain/llms/openai\";\n * import { PromptTemplate } from \"langchain/prompts\";\n *\n * // This is an LLMChain to write a synopsis given a title of a play.\n * const llm = new OpenAI({ temperature: 0 });\n * const template = `You are a playwright. Given the title of play, it is your job to write a synopsis for that title.\n *\n * Title: {title}\n * Playwright: This is a synopsis for the above play:`\n * const promptTemplate = new PromptTemplate({ template, inputVariables: [\"title\"] });\n * const synopsisChain = new LLMChain({ llm, prompt: promptTemplate });\n *\n *\n * // This is an LLMChain to write a review of a play given a synopsis.\n * const reviewLLM = new OpenAI({ temperature: 0 })\n * const reviewTemplate = `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`\n * const reviewPromptTemplate = new PromptTemplate({ template: reviewTemplate, inputVariables: [\"synopsis\"] });\n * const reviewChain = new LLMChain({ llm: reviewLLM, prompt: reviewPromptTemplate });\n *\n * const overallChain = new SimpleSequentialChain({chains: [synopsisChain, reviewChain], verbose:true})\n * const review = await overallChain.run(\"Tragedy at sunset on the beach\")\n * // the variable review contains resulting play review.\n * ```\n */\nexport declare class SimpleSequentialChain extends BaseChain implements SimpleSequentialChainInput {\n static lc_name(): string;\n chains: Array<BaseChain>;\n inputKey: string;\n outputKey: string;\n trimOutputs: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SimpleSequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"simple_sequential_chain\";\n static deserialize(data: SerializedSimpleSequentialChain): Promise<SimpleSequentialChain>;\n serialize(): SerializedSimpleSequentialChain;\n}\n//# sourceMappingURL=sequential_chain.d.ts.map"],"mappings":";;;;;;;;;AAOA;AAwDqBO,UAxDJD,oBAAAA,SAA6BH,WAwDV,CAAA;EAExBD;EAMYI,MAAAA,EA9DZJ,SA8DYI,EAAAA;EAINN;EAA0BC,cAAAA,EAAAA,MAAAA,EAAAA;EAAqCD;EAARQ,eAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAE5CJ;EAAoCG,SAAAA,CAAAA,EAAAA,OAAAA;;;;;AAdqB;AAoBtF;;;;AAA+D;AA0C/D;;;;;;;;;;;;;;AAAkG;;;;;;;;;;;;;;;;;;;;;;;cA9D7EA,eAAAA,SAAwBL,SAAAA,YAAqBI;;UAEtDJ;;;;;;sBAMYI;;;;gBAINN,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDI,4BAA4BI,QAAQD;eAChDH;;;;;UAKAK,0BAAAA,SAAmCN;;UAExCO,MAAMR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCGS,qBAAAA,SAA8BT,SAAAA,YAAqBO;;UAE5DC,MAAMR;;;;;;sBAMMO;;;;gBAINT,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDK,kCAAkCG,QAAQG;eACtDN"}
@@ -1 +1 @@
1
- {"version":3,"file":"sequential_chain.d.ts","names":["ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","SerializedSequentialChain","SerializedSimpleSequentialChain","SequentialChainInput","SequentialChain","Promise","SimpleSequentialChainInput","Array","SimpleSequentialChain"],"sources":["../../src/chains/sequential_chain.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedSequentialChain, SerializedSimpleSequentialChain } from \"./serde.js\";\n/**\n * Interface for the input parameters of the SequentialChain class.\n */\nexport interface SequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: BaseChain[];\n /** Defines which variables should be passed as initial input to the first chain. */\n inputVariables: string[];\n /** Which variables should be returned as a result of executing the chain. If not specified, output of the last of the chains is used. */\n outputVariables?: string[];\n /** Whether or not to return all intermediate outputs and variables (excluding initial input variables). */\n returnAll?: boolean;\n}\n/**\n * Chain where the outputs of one chain feed directly into next.\n * @example\n * ```typescript\n * const promptTemplate = new PromptTemplate({\n * template: `You are a playwright. Given the title of play and the era it is set in, it is your job to write a synopsis for that title.\n * Title: {title}\n * Era: {era}\n * Playwright: This is a synopsis for the above play:`,\n * inputVariables: [\"title\", \"era\"],\n * });\n\n * const reviewPromptTemplate = new PromptTemplate({\n * template: `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`,\n * inputVariables: [\"synopsis\"],\n * });\n\n * const overallChain = new SequentialChain({\n * chains: [\n * new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: promptTemplate,\n * outputKey: \"synopsis\",\n * }),\n * new LLMChain({\n * llm: new OpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: reviewPromptTemplate,\n * outputKey: \"review\",\n * }),\n * ],\n * inputVariables: [\"era\", \"title\"],\n * outputVariables: [\"synopsis\", \"review\"],\n * verbose: true,\n * });\n\n * const chainExecutionResult = await overallChain.call({\n * title: \"Tragedy at sunset on the beach\",\n * era: \"Victorian England\",\n * });\n * console.log(chainExecutionResult);\n * ```\n */\nexport declare class SequentialChain extends BaseChain implements SequentialChainInput {\n static lc_name(): string;\n chains: BaseChain[];\n inputVariables: string[];\n outputVariables: string[];\n returnAll?: boolean | undefined;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sequential_chain\";\n static deserialize(data: SerializedSequentialChain): Promise<SequentialChain>;\n serialize(): SerializedSequentialChain;\n}\n/**\n * Interface for the input parameters of the SimpleSequentialChain class.\n */\nexport interface SimpleSequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: Array<BaseChain>;\n /** Whether or not to trim the intermediate outputs. */\n trimOutputs?: boolean;\n}\n/**\n * Simple chain where a single string output of one chain is fed directly into the next.\n * @augments BaseChain\n * @augments SimpleSequentialChainInput\n *\n * @example\n * ```ts\n * import { SimpleSequentialChain, LLMChain } from \"@langchain/classic/chains\";\n * import { OpenAI } from \"langchain/llms/openai\";\n * import { PromptTemplate } from \"langchain/prompts\";\n *\n * // This is an LLMChain to write a synopsis given a title of a play.\n * const llm = new OpenAI({ temperature: 0 });\n * const template = `You are a playwright. Given the title of play, it is your job to write a synopsis for that title.\n *\n * Title: {title}\n * Playwright: This is a synopsis for the above play:`\n * const promptTemplate = new PromptTemplate({ template, inputVariables: [\"title\"] });\n * const synopsisChain = new LLMChain({ llm, prompt: promptTemplate });\n *\n *\n * // This is an LLMChain to write a review of a play given a synopsis.\n * const reviewLLM = new OpenAI({ temperature: 0 })\n * const reviewTemplate = `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`\n * const reviewPromptTemplate = new PromptTemplate({ template: reviewTemplate, inputVariables: [\"synopsis\"] });\n * const reviewChain = new LLMChain({ llm: reviewLLM, prompt: reviewPromptTemplate });\n *\n * const overallChain = new SimpleSequentialChain({chains: [synopsisChain, reviewChain], verbose:true})\n * const review = await overallChain.run(\"Tragedy at sunset on the beach\")\n * // the variable review contains resulting play review.\n * ```\n */\nexport declare class SimpleSequentialChain extends BaseChain implements SimpleSequentialChainInput {\n static lc_name(): string;\n chains: Array<BaseChain>;\n inputKey: string;\n outputKey: string;\n trimOutputs: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SimpleSequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"simple_sequential_chain\";\n static deserialize(data: SerializedSimpleSequentialChain): Promise<SimpleSequentialChain>;\n serialize(): SerializedSimpleSequentialChain;\n}\n"],"mappings":";;;;;;;;;AAOA;AAAqC,UAApBM,oBAAAA,SAA6BH,WAAT,CAAA;EAAA;EAEhB,MAFyBA,EAElCD,SAFkCC,EAAAA;EAAW;EAwDpCI,cAAAA,EAAAA,MAAe,EAAA;EAAA;EAAA,eAExBL,CAAAA,EAAAA,MAAAA,EAAAA;EAAS;EAMuB,SAI1BF,CAAAA,EAAAA,OAAAA;;;;;;;;;;AAZoE;AAoBtF;;;;;AAA+D;AA0C/D;;;;;;;;;;;;;;;AAAkG;;;;;;;;;;;;;;;;cA9D7EO,eAAAA,SAAwBL,SAAAA,YAAqBI;;UAEtDJ;;;;;;sBAMYI;;;;gBAINN,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDI,4BAA4BI,QAAQD;eAChDH;;;;;UAKAK,0BAAAA,SAAmCN;;UAExCO,MAAMR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCGS,qBAAAA,SAA8BT,SAAAA,YAAqBO;;UAE5DC,MAAMR;;;;;;sBAMMO;;;;gBAINT,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDK,kCAAkCG,QAAQG;eACtDN"}
1
+ {"version":3,"file":"sequential_chain.d.ts","names":["ChainValues","CallbackManagerForChainRun","BaseChain","ChainInputs","SerializedSequentialChain","SerializedSimpleSequentialChain","SequentialChainInput","SequentialChain","Promise","SimpleSequentialChainInput","Array","SimpleSequentialChain"],"sources":["../../src/chains/sequential_chain.d.ts"],"sourcesContent":["import { ChainValues } from \"@langchain/core/utils/types\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedSequentialChain, SerializedSimpleSequentialChain } from \"./serde.js\";\n/**\n * Interface for the input parameters of the SequentialChain class.\n */\nexport interface SequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: BaseChain[];\n /** Defines which variables should be passed as initial input to the first chain. */\n inputVariables: string[];\n /** Which variables should be returned as a result of executing the chain. If not specified, output of the last of the chains is used. */\n outputVariables?: string[];\n /** Whether or not to return all intermediate outputs and variables (excluding initial input variables). */\n returnAll?: boolean;\n}\n/**\n * Chain where the outputs of one chain feed directly into next.\n * @example\n * ```typescript\n * const promptTemplate = new PromptTemplate({\n * template: `You are a playwright. Given the title of play and the era it is set in, it is your job to write a synopsis for that title.\n * Title: {title}\n * Era: {era}\n * Playwright: This is a synopsis for the above play:`,\n * inputVariables: [\"title\", \"era\"],\n * });\n\n * const reviewPromptTemplate = new PromptTemplate({\n * template: `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`,\n * inputVariables: [\"synopsis\"],\n * });\n\n * const overallChain = new SequentialChain({\n * chains: [\n * new LLMChain({\n * llm: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: promptTemplate,\n * outputKey: \"synopsis\",\n * }),\n * new LLMChain({\n * llm: new OpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * prompt: reviewPromptTemplate,\n * outputKey: \"review\",\n * }),\n * ],\n * inputVariables: [\"era\", \"title\"],\n * outputVariables: [\"synopsis\", \"review\"],\n * verbose: true,\n * });\n\n * const chainExecutionResult = await overallChain.call({\n * title: \"Tragedy at sunset on the beach\",\n * era: \"Victorian England\",\n * });\n * console.log(chainExecutionResult);\n * ```\n */\nexport declare class SequentialChain extends BaseChain implements SequentialChainInput {\n static lc_name(): string;\n chains: BaseChain[];\n inputVariables: string[];\n outputVariables: string[];\n returnAll?: boolean | undefined;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sequential_chain\";\n static deserialize(data: SerializedSequentialChain): Promise<SequentialChain>;\n serialize(): SerializedSequentialChain;\n}\n/**\n * Interface for the input parameters of the SimpleSequentialChain class.\n */\nexport interface SimpleSequentialChainInput extends ChainInputs {\n /** Array of chains to run as a sequence. The chains are run in order they appear in the array. */\n chains: Array<BaseChain>;\n /** Whether or not to trim the intermediate outputs. */\n trimOutputs?: boolean;\n}\n/**\n * Simple chain where a single string output of one chain is fed directly into the next.\n * @augments BaseChain\n * @augments SimpleSequentialChainInput\n *\n * @example\n * ```ts\n * import { SimpleSequentialChain, LLMChain } from \"@langchain/classic/chains\";\n * import { OpenAI } from \"langchain/llms/openai\";\n * import { PromptTemplate } from \"langchain/prompts\";\n *\n * // This is an LLMChain to write a synopsis given a title of a play.\n * const llm = new OpenAI({ temperature: 0 });\n * const template = `You are a playwright. Given the title of play, it is your job to write a synopsis for that title.\n *\n * Title: {title}\n * Playwright: This is a synopsis for the above play:`\n * const promptTemplate = new PromptTemplate({ template, inputVariables: [\"title\"] });\n * const synopsisChain = new LLMChain({ llm, prompt: promptTemplate });\n *\n *\n * // This is an LLMChain to write a review of a play given a synopsis.\n * const reviewLLM = new OpenAI({ temperature: 0 })\n * const reviewTemplate = `You are a play critic from the New York Times. Given the synopsis of play, it is your job to write a review for that play.\n *\n * Play Synopsis:\n * {synopsis}\n * Review from a New York Times play critic of the above play:`\n * const reviewPromptTemplate = new PromptTemplate({ template: reviewTemplate, inputVariables: [\"synopsis\"] });\n * const reviewChain = new LLMChain({ llm: reviewLLM, prompt: reviewPromptTemplate });\n *\n * const overallChain = new SimpleSequentialChain({chains: [synopsisChain, reviewChain], verbose:true})\n * const review = await overallChain.run(\"Tragedy at sunset on the beach\")\n * // the variable review contains resulting play review.\n * ```\n */\nexport declare class SimpleSequentialChain extends BaseChain implements SimpleSequentialChainInput {\n static lc_name(): string;\n chains: Array<BaseChain>;\n inputKey: string;\n outputKey: string;\n trimOutputs: boolean;\n get inputKeys(): string[];\n get outputKeys(): string[];\n constructor(fields: SimpleSequentialChainInput);\n /** @ignore */\n _validateChains(): void;\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"simple_sequential_chain\";\n static deserialize(data: SerializedSimpleSequentialChain): Promise<SimpleSequentialChain>;\n serialize(): SerializedSimpleSequentialChain;\n}\n//# sourceMappingURL=sequential_chain.d.ts.map"],"mappings":";;;;;;;;;AAOA;AAwDqBO,UAxDJD,oBAAAA,SAA6BH,WAwDV,CAAA;EAExBD;EAMYI,MAAAA,EA9DZJ,SA8DYI,EAAAA;EAINN;EAA0BC,cAAAA,EAAAA,MAAAA,EAAAA;EAAqCD;EAARQ,eAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAE5CJ;EAAoCG,SAAAA,CAAAA,EAAAA,OAAAA;;;;;AAdqB;AAoBtF;;;;AAA+D;AA0C/D;;;;;;;;;;;;;;AAAkG;;;;;;;;;;;;;;;;;;;;;;;cA9D7EA,eAAAA,SAAwBL,SAAAA,YAAqBI;;UAEtDJ;;;;;;sBAMYI;;;;gBAINN,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDI,4BAA4BI,QAAQD;eAChDH;;;;;UAKAK,0BAAAA,SAAmCN;;UAExCO,MAAMR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwCGS,qBAAAA,SAA8BT,SAAAA,YAAqBO;;UAE5DC,MAAMR;;;;;;sBAMMO;;;;gBAINT,0BAA0BC,6BAA6BO,QAAQR;;2BAEpDK,kCAAkCG,QAAQG;eACtDN"}
@@ -1 +1 @@
1
- {"version":3,"file":"serde.d.cts","names":["SerializedLLM","SerializedBasePromptTemplate","SerializedLLMChain","SerializedSequentialChain","SerializedBaseChain","SerializedSimpleSequentialChain","Array","SerializedVectorDBQAChain","SerializedAPIChain","SerializedStuffDocumentsChain","SerializedChatVectorDBQAChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","SerializedAnalyzeDocumentChain","SerializedConstitutionalPrinciple","SerializedConstitutionalChain"],"sources":["../../src/chains/serde.d.ts"],"sourcesContent":["import type { SerializedLLM } from \"@langchain/core/language_models/llms\";\nimport { SerializedBasePromptTemplate } from \"@langchain/core/prompts\";\n/**\n * Represents the serialized form of an LLMChain. It includes properties\n * such as `_type`, `llm`, and `prompt`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedLLMChain = {\n _type: \"llm_chain\";\n llm?: SerializedLLM;\n prompt?: SerializedBasePromptTemplate;\n};\n/**\n * Represents the serialized form of a SequentialChain. It includes\n * properties such as `_type`, `input_variables`, `output_variables`, and\n * `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSequentialChain = {\n _type: \"sequential_chain\";\n input_variables: string[];\n output_variables: string[];\n chains: SerializedBaseChain[];\n};\n/**\n * Represents the serialized form of a SimpleSequentialChain. It includes\n * properties such as `_type` and `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSimpleSequentialChain = {\n _type: \"simple_sequential_chain\";\n chains: Array<SerializedBaseChain>;\n};\n/**\n * Represents the serialized form of a VectorDBQAChain. It includes\n * properties such as `_type`, `k`, and `combine_documents_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedVectorDBQAChain = {\n _type: \"vector_db_qa\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of an APIChain. It includes properties\n * such as `_type`, `api_request_chain`, `api_answer_chain`, and\n * `api_docs`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAPIChain = {\n _type: \"api_chain\";\n api_request_chain: SerializedLLMChain;\n api_answer_chain: SerializedLLMChain;\n api_docs: string;\n};\n/**\n * Represents the serialized form of a StuffDocumentsChain. It includes\n * properties such as `_type` and `llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedStuffDocumentsChain = {\n _type: \"stuff_documents_chain\";\n llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a ChatVectorDBQAChain. It includes\n * properties such as `_type`, `k`, `combine_documents_chain`, and\n * `question_generator`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedChatVectorDBQAChain = {\n _type: \"chat-vector-db\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n question_generator: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a MapReduceDocumentsChain. It\n * includes properties such as `_type`, `llm_chain`, and\n * `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedMapReduceDocumentsChain = {\n _type: \"map_reduce_documents_chain\";\n llm_chain?: SerializedLLMChain;\n combine_document_chain?: SerializedStuffDocumentsChain;\n};\n/**\n * Represents the serialized form of a RefineDocumentsChain. It includes\n * properties such as `_type`, `llm_chain`, and `refine_llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedRefineDocumentsChain = {\n _type: \"refine_documents_chain\";\n llm_chain?: SerializedLLMChain;\n refine_llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of an AnalyzeDocumentChain. It includes\n * properties such as `_type` and `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAnalyzeDocumentChain = {\n _type: \"analyze_document_chain\";\n combine_document_chain?: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of a ConstitutionalPrinciple. It\n * includes properties such as `_type`, `critiqueRequest`,\n * `revisionRequest`, and `name`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedConstitutionalPrinciple = {\n _type: \"constitutional_principle\";\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n};\n/**\n * Represents the serialized form of a ConstitutionalChain. It includes\n * properties such as `_type`, `chain`, `critiqueChain`, `revisionChain`,\n * and `ConstitutionalPrinciple`.\n *\n * @deprecated\n */\nexport type SerializedConstitutionalChain = {\n _type: \"constitutional_chain\";\n chain?: SerializedLLMChain;\n critiqueChain?: SerializedBaseChain;\n revisionChain?: SerializedBaseChain;\n ConstitutionalPrinciple?: SerializedConstitutionalPrinciple[];\n};\n/**\n * Represents the serialized form of a BaseChain. It can be one of the\n * above serialized chain types.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;\n"],"mappings":";;;;;;;AAQA;;;;AAGyC,KAH7BE,kBAAAA,GAG6B;EAS7BC,KAAAA,EAAAA,WAAAA;EAYAE,GAAAA,CAAAA,EAtBFL,aAsBEK;EAA+B,MAAA,CAAA,EArB9BJ,4BAqB8B;CAAA;;AAE1B;AAQjB;AAYA;;;;AAGwC,KArC5BE,yBAAAA,GAqC4B;EAS5BM,KAAAA,EAAAA,kBAAAA;EAWAC,eAAAA,EAAAA,MAAAA,EAAAA;EAA6B,gBAAA,EAAA,MAAA,EAAA;EAAA,MAGZN,EAxDjBA,mBAwDiBA,EAAAA;CAAmB;AACN;AAS1C;;;;AAG0D;AAQ9CQ,KArEAP,+BAAAA,GAqE8B;EAAA,KAAA,EAAA,yBAAA;EAAA,MAE1BH,EArEJI,KAqEIJ,CArEEE,mBAqEFF,CAAAA;CAAkB;AACO;AAQzC;AAWA;AAaA;;;AAGoBE,KAjGRG,yBAAAA,GAiGQH;EAAmB,KACnBA,EAAAA,cAAAA;EAAmB,CAAA,EACTU,MAAAA;EAAiC,uBAAA,EAhGlCV,mBAgGkC;AAQ/D,CAAA;;;;;;;;AAAsMM,KA/F1LF,kBAAAA,GA+F0LE;EAA6B,KAAGC,EAAAA,WAAAA;EAAiC,iBAAGE,EA7FnPX,kBA6FmPW;EAA8B,gBAAGD,EA5FrRV,kBA4FqRU;EAA8B,QAAGG,EAAAA,MAAAA;AAA6B,CAAA;;;;;;;KAnF7VN,6BAAAA;;cAEIP;;;;;;;;;KASJQ,6BAAAA;;;2BAGiBN;sBACLF;;;;;;;;;KASZS,iCAAAA;;cAEIT;2BACaO;;;;;;;;KAQjBG,8BAAAA;;cAEIV;qBACOA;;;;;;;;KAQXW,8BAAAA;;2BAEiBT;;;;;;;;;KASjBU,iCAAAA;;;;;;;;;;;;;KAaAC,6BAAAA;;UAEAb;kBACQE;kBACAA;4BACUU;;;;;;;;KAQlBV,mBAAAA,GAAsBF,qBAAqBC,4BAA4BE,kCAAkCE,4BAA4BC,qBAAqBC,gCAAgCC,gCAAgCC,oCAAoCE,iCAAiCD,iCAAiCG"}
1
+ {"version":3,"file":"serde.d.cts","names":["SerializedLLM","SerializedBasePromptTemplate","SerializedLLMChain","SerializedSequentialChain","SerializedBaseChain","SerializedSimpleSequentialChain","Array","SerializedVectorDBQAChain","SerializedAPIChain","SerializedStuffDocumentsChain","SerializedChatVectorDBQAChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","SerializedAnalyzeDocumentChain","SerializedConstitutionalPrinciple","SerializedConstitutionalChain"],"sources":["../../src/chains/serde.d.ts"],"sourcesContent":["import type { SerializedLLM } from \"@langchain/core/language_models/llms\";\nimport { SerializedBasePromptTemplate } from \"@langchain/core/prompts\";\n/**\n * Represents the serialized form of an LLMChain. It includes properties\n * such as `_type`, `llm`, and `prompt`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedLLMChain = {\n _type: \"llm_chain\";\n llm?: SerializedLLM;\n prompt?: SerializedBasePromptTemplate;\n};\n/**\n * Represents the serialized form of a SequentialChain. It includes\n * properties such as `_type`, `input_variables`, `output_variables`, and\n * `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSequentialChain = {\n _type: \"sequential_chain\";\n input_variables: string[];\n output_variables: string[];\n chains: SerializedBaseChain[];\n};\n/**\n * Represents the serialized form of a SimpleSequentialChain. It includes\n * properties such as `_type` and `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSimpleSequentialChain = {\n _type: \"simple_sequential_chain\";\n chains: Array<SerializedBaseChain>;\n};\n/**\n * Represents the serialized form of a VectorDBQAChain. It includes\n * properties such as `_type`, `k`, and `combine_documents_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedVectorDBQAChain = {\n _type: \"vector_db_qa\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of an APIChain. It includes properties\n * such as `_type`, `api_request_chain`, `api_answer_chain`, and\n * `api_docs`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAPIChain = {\n _type: \"api_chain\";\n api_request_chain: SerializedLLMChain;\n api_answer_chain: SerializedLLMChain;\n api_docs: string;\n};\n/**\n * Represents the serialized form of a StuffDocumentsChain. It includes\n * properties such as `_type` and `llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedStuffDocumentsChain = {\n _type: \"stuff_documents_chain\";\n llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a ChatVectorDBQAChain. It includes\n * properties such as `_type`, `k`, `combine_documents_chain`, and\n * `question_generator`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedChatVectorDBQAChain = {\n _type: \"chat-vector-db\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n question_generator: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a MapReduceDocumentsChain. It\n * includes properties such as `_type`, `llm_chain`, and\n * `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedMapReduceDocumentsChain = {\n _type: \"map_reduce_documents_chain\";\n llm_chain?: SerializedLLMChain;\n combine_document_chain?: SerializedStuffDocumentsChain;\n};\n/**\n * Represents the serialized form of a RefineDocumentsChain. It includes\n * properties such as `_type`, `llm_chain`, and `refine_llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedRefineDocumentsChain = {\n _type: \"refine_documents_chain\";\n llm_chain?: SerializedLLMChain;\n refine_llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of an AnalyzeDocumentChain. It includes\n * properties such as `_type` and `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAnalyzeDocumentChain = {\n _type: \"analyze_document_chain\";\n combine_document_chain?: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of a ConstitutionalPrinciple. It\n * includes properties such as `_type`, `critiqueRequest`,\n * `revisionRequest`, and `name`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedConstitutionalPrinciple = {\n _type: \"constitutional_principle\";\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n};\n/**\n * Represents the serialized form of a ConstitutionalChain. It includes\n * properties such as `_type`, `chain`, `critiqueChain`, `revisionChain`,\n * and `ConstitutionalPrinciple`.\n *\n * @deprecated\n */\nexport type SerializedConstitutionalChain = {\n _type: \"constitutional_chain\";\n chain?: SerializedLLMChain;\n critiqueChain?: SerializedBaseChain;\n revisionChain?: SerializedBaseChain;\n ConstitutionalPrinciple?: SerializedConstitutionalPrinciple[];\n};\n/**\n * Represents the serialized form of a BaseChain. It can be one of the\n * above serialized chain types.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;\n//# sourceMappingURL=serde.d.ts.map"],"mappings":";;;;;;;AAQA;AAYA;AAYA;AAUA;AAYYQ,KA9CAN,kBAAAA,GA8CkB;EAYlBO,KAAAA,EAAAA,WAAAA;EAWAC,GAAAA,CAAAA,EAnEFV,aAmEEU;EAaAC,MAAAA,CAAAA,EA/ECV,4BA+EgC;AAW7C,CAAA;AAWA;AAWA;AAaA;;;;;AAK+D,KAzHnDE,yBAAAA,GAyHmD;EAQnDC,KAAAA,EAAAA,kBAAmB;EAAGF,eAAAA,EAAAA,MAAAA,EAAAA;EAAqBC,gBAAAA,EAAAA,MAAAA,EAAAA;EAA4BE,MAAAA,EA7HvED,mBA6HuEC,EAAAA;CAAkCE;;;;;;;AAAuNQ,KArHhUV,+BAAAA,GAqHgUU;EAA6B,KAAA,EAAA,yBAAA;UAnH7VT,MAAMF;;;;;;;;KAQNG,yBAAAA;;;2BAGiBH;;;;;;;;;KASjBI,kBAAAA;;qBAEWN;oBACDA;;;;;;;;;KASVO,6BAAAA;;cAEIP;;;;;;;;;KASJQ,6BAAAA;;;2BAGiBN;sBACLF;;;;;;;;;KASZS,iCAAAA;;cAEIT;2BACaO;;;;;;;;KAQjBG,8BAAAA;;cAEIV;qBACOA;;;;;;;;KAQXW,8BAAAA;;2BAEiBT;;;;;;;;;KASjBU,iCAAAA;;;;;;;;;;;;;KAaAC,6BAAAA;;UAEAb;kBACQE;kBACAA;4BACUU;;;;;;;;KAQlBV,mBAAAA,GAAsBF,qBAAqBC,4BAA4BE,kCAAkCE,4BAA4BC,qBAAqBC,gCAAgCC,gCAAgCC,oCAAoCE,iCAAiCD,iCAAiCG"}
@@ -1 +1 @@
1
- {"version":3,"file":"serde.d.ts","names":["SerializedLLM","SerializedBasePromptTemplate","SerializedLLMChain","SerializedSequentialChain","SerializedBaseChain","SerializedSimpleSequentialChain","Array","SerializedVectorDBQAChain","SerializedAPIChain","SerializedStuffDocumentsChain","SerializedChatVectorDBQAChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","SerializedAnalyzeDocumentChain","SerializedConstitutionalPrinciple","SerializedConstitutionalChain"],"sources":["../../src/chains/serde.d.ts"],"sourcesContent":["import type { SerializedLLM } from \"@langchain/core/language_models/llms\";\nimport { SerializedBasePromptTemplate } from \"@langchain/core/prompts\";\n/**\n * Represents the serialized form of an LLMChain. It includes properties\n * such as `_type`, `llm`, and `prompt`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedLLMChain = {\n _type: \"llm_chain\";\n llm?: SerializedLLM;\n prompt?: SerializedBasePromptTemplate;\n};\n/**\n * Represents the serialized form of a SequentialChain. It includes\n * properties such as `_type`, `input_variables`, `output_variables`, and\n * `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSequentialChain = {\n _type: \"sequential_chain\";\n input_variables: string[];\n output_variables: string[];\n chains: SerializedBaseChain[];\n};\n/**\n * Represents the serialized form of a SimpleSequentialChain. It includes\n * properties such as `_type` and `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSimpleSequentialChain = {\n _type: \"simple_sequential_chain\";\n chains: Array<SerializedBaseChain>;\n};\n/**\n * Represents the serialized form of a VectorDBQAChain. It includes\n * properties such as `_type`, `k`, and `combine_documents_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedVectorDBQAChain = {\n _type: \"vector_db_qa\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of an APIChain. It includes properties\n * such as `_type`, `api_request_chain`, `api_answer_chain`, and\n * `api_docs`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAPIChain = {\n _type: \"api_chain\";\n api_request_chain: SerializedLLMChain;\n api_answer_chain: SerializedLLMChain;\n api_docs: string;\n};\n/**\n * Represents the serialized form of a StuffDocumentsChain. It includes\n * properties such as `_type` and `llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedStuffDocumentsChain = {\n _type: \"stuff_documents_chain\";\n llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a ChatVectorDBQAChain. It includes\n * properties such as `_type`, `k`, `combine_documents_chain`, and\n * `question_generator`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedChatVectorDBQAChain = {\n _type: \"chat-vector-db\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n question_generator: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a MapReduceDocumentsChain. It\n * includes properties such as `_type`, `llm_chain`, and\n * `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedMapReduceDocumentsChain = {\n _type: \"map_reduce_documents_chain\";\n llm_chain?: SerializedLLMChain;\n combine_document_chain?: SerializedStuffDocumentsChain;\n};\n/**\n * Represents the serialized form of a RefineDocumentsChain. It includes\n * properties such as `_type`, `llm_chain`, and `refine_llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedRefineDocumentsChain = {\n _type: \"refine_documents_chain\";\n llm_chain?: SerializedLLMChain;\n refine_llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of an AnalyzeDocumentChain. It includes\n * properties such as `_type` and `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAnalyzeDocumentChain = {\n _type: \"analyze_document_chain\";\n combine_document_chain?: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of a ConstitutionalPrinciple. It\n * includes properties such as `_type`, `critiqueRequest`,\n * `revisionRequest`, and `name`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedConstitutionalPrinciple = {\n _type: \"constitutional_principle\";\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n};\n/**\n * Represents the serialized form of a ConstitutionalChain. It includes\n * properties such as `_type`, `chain`, `critiqueChain`, `revisionChain`,\n * and `ConstitutionalPrinciple`.\n *\n * @deprecated\n */\nexport type SerializedConstitutionalChain = {\n _type: \"constitutional_chain\";\n chain?: SerializedLLMChain;\n critiqueChain?: SerializedBaseChain;\n revisionChain?: SerializedBaseChain;\n ConstitutionalPrinciple?: SerializedConstitutionalPrinciple[];\n};\n/**\n * Represents the serialized form of a BaseChain. It can be one of the\n * above serialized chain types.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;\n"],"mappings":";;;;;;;AAQA;;;;AAGyC,KAH7BE,kBAAAA,GAG6B;EAS7BC,KAAAA,EAAAA,WAAAA;EAYAE,GAAAA,CAAAA,EAtBFL,aAsBEK;EAA+B,MAAA,CAAA,EArB9BJ,4BAqB8B;CAAA;;AAE1B;AAQjB;AAYA;;;;AAGwC,KArC5BE,yBAAAA,GAqC4B;EAS5BM,KAAAA,EAAAA,kBAAAA;EAWAC,eAAAA,EAAAA,MAAAA,EAAAA;EAA6B,gBAAA,EAAA,MAAA,EAAA;EAAA,MAGZN,EAxDjBA,mBAwDiBA,EAAAA;CAAmB;AACN;AAS1C;;;;AAG0D;AAQ9CQ,KArEAP,+BAAAA,GAqE8B;EAAA,KAAA,EAAA,yBAAA;EAAA,MAE1BH,EArEJI,KAqEIJ,CArEEE,mBAqEFF,CAAAA;CAAkB;AACO;AAQzC;AAWA;AAaA;;;AAGoBE,KAjGRG,yBAAAA,GAiGQH;EAAmB,KACnBA,EAAAA,cAAAA;EAAmB,CAAA,EACTU,MAAAA;EAAiC,uBAAA,EAhGlCV,mBAgGkC;AAQ/D,CAAA;;;;;;;;AAAsMM,KA/F1LF,kBAAAA,GA+F0LE;EAA6B,KAAGC,EAAAA,WAAAA;EAAiC,iBAAGE,EA7FnPX,kBA6FmPW;EAA8B,gBAAGD,EA5FrRV,kBA4FqRU;EAA8B,QAAGG,EAAAA,MAAAA;AAA6B,CAAA;;;;;;;KAnF7VN,6BAAAA;;cAEIP;;;;;;;;;KASJQ,6BAAAA;;;2BAGiBN;sBACLF;;;;;;;;;KASZS,iCAAAA;;cAEIT;2BACaO;;;;;;;;KAQjBG,8BAAAA;;cAEIV;qBACOA;;;;;;;;KAQXW,8BAAAA;;2BAEiBT;;;;;;;;;KASjBU,iCAAAA;;;;;;;;;;;;;KAaAC,6BAAAA;;UAEAb;kBACQE;kBACAA;4BACUU;;;;;;;;KAQlBV,mBAAAA,GAAsBF,qBAAqBC,4BAA4BE,kCAAkCE,4BAA4BC,qBAAqBC,gCAAgCC,gCAAgCC,oCAAoCE,iCAAiCD,iCAAiCG"}
1
+ {"version":3,"file":"serde.d.ts","names":["SerializedLLM","SerializedBasePromptTemplate","SerializedLLMChain","SerializedSequentialChain","SerializedBaseChain","SerializedSimpleSequentialChain","Array","SerializedVectorDBQAChain","SerializedAPIChain","SerializedStuffDocumentsChain","SerializedChatVectorDBQAChain","SerializedMapReduceDocumentsChain","SerializedRefineDocumentsChain","SerializedAnalyzeDocumentChain","SerializedConstitutionalPrinciple","SerializedConstitutionalChain"],"sources":["../../src/chains/serde.d.ts"],"sourcesContent":["import type { SerializedLLM } from \"@langchain/core/language_models/llms\";\nimport { SerializedBasePromptTemplate } from \"@langchain/core/prompts\";\n/**\n * Represents the serialized form of an LLMChain. It includes properties\n * such as `_type`, `llm`, and `prompt`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedLLMChain = {\n _type: \"llm_chain\";\n llm?: SerializedLLM;\n prompt?: SerializedBasePromptTemplate;\n};\n/**\n * Represents the serialized form of a SequentialChain. It includes\n * properties such as `_type`, `input_variables`, `output_variables`, and\n * `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSequentialChain = {\n _type: \"sequential_chain\";\n input_variables: string[];\n output_variables: string[];\n chains: SerializedBaseChain[];\n};\n/**\n * Represents the serialized form of a SimpleSequentialChain. It includes\n * properties such as `_type` and `chains`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedSimpleSequentialChain = {\n _type: \"simple_sequential_chain\";\n chains: Array<SerializedBaseChain>;\n};\n/**\n * Represents the serialized form of a VectorDBQAChain. It includes\n * properties such as `_type`, `k`, and `combine_documents_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedVectorDBQAChain = {\n _type: \"vector_db_qa\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of an APIChain. It includes properties\n * such as `_type`, `api_request_chain`, `api_answer_chain`, and\n * `api_docs`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAPIChain = {\n _type: \"api_chain\";\n api_request_chain: SerializedLLMChain;\n api_answer_chain: SerializedLLMChain;\n api_docs: string;\n};\n/**\n * Represents the serialized form of a StuffDocumentsChain. It includes\n * properties such as `_type` and `llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedStuffDocumentsChain = {\n _type: \"stuff_documents_chain\";\n llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a ChatVectorDBQAChain. It includes\n * properties such as `_type`, `k`, `combine_documents_chain`, and\n * `question_generator`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedChatVectorDBQAChain = {\n _type: \"chat-vector-db\";\n k: number;\n combine_documents_chain: SerializedBaseChain;\n question_generator: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of a MapReduceDocumentsChain. It\n * includes properties such as `_type`, `llm_chain`, and\n * `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedMapReduceDocumentsChain = {\n _type: \"map_reduce_documents_chain\";\n llm_chain?: SerializedLLMChain;\n combine_document_chain?: SerializedStuffDocumentsChain;\n};\n/**\n * Represents the serialized form of a RefineDocumentsChain. It includes\n * properties such as `_type`, `llm_chain`, and `refine_llm_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedRefineDocumentsChain = {\n _type: \"refine_documents_chain\";\n llm_chain?: SerializedLLMChain;\n refine_llm_chain?: SerializedLLMChain;\n};\n/**\n * Represents the serialized form of an AnalyzeDocumentChain. It includes\n * properties such as `_type` and `combine_document_chain`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedAnalyzeDocumentChain = {\n _type: \"analyze_document_chain\";\n combine_document_chain?: SerializedBaseChain;\n};\n/**\n * Represents the serialized form of a ConstitutionalPrinciple. It\n * includes properties such as `_type`, `critiqueRequest`,\n * `revisionRequest`, and `name`.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedConstitutionalPrinciple = {\n _type: \"constitutional_principle\";\n critiqueRequest: string;\n revisionRequest: string;\n name: string;\n};\n/**\n * Represents the serialized form of a ConstitutionalChain. It includes\n * properties such as `_type`, `chain`, `critiqueChain`, `revisionChain`,\n * and `ConstitutionalPrinciple`.\n *\n * @deprecated\n */\nexport type SerializedConstitutionalChain = {\n _type: \"constitutional_chain\";\n chain?: SerializedLLMChain;\n critiqueChain?: SerializedBaseChain;\n revisionChain?: SerializedBaseChain;\n ConstitutionalPrinciple?: SerializedConstitutionalPrinciple[];\n};\n/**\n * Represents the serialized form of a BaseChain. It can be one of the\n * above serialized chain types.\n *\n * @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain.load.load.html | serialization methods}.\n */\nexport type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;\n//# sourceMappingURL=serde.d.ts.map"],"mappings":";;;;;;;AAQA;AAYA;AAYA;AAUA;AAYYQ,KA9CAN,kBAAAA,GA8CkB;EAYlBO,KAAAA,EAAAA,WAAAA;EAWAC,GAAAA,CAAAA,EAnEFV,aAmEEU;EAaAC,MAAAA,CAAAA,EA/ECV,4BA+EgC;AAW7C,CAAA;AAWA;AAWA;AAaA;;;;;AAK+D,KAzHnDE,yBAAAA,GAyHmD;EAQnDC,KAAAA,EAAAA,kBAAmB;EAAGF,eAAAA,EAAAA,MAAAA,EAAAA;EAAqBC,gBAAAA,EAAAA,MAAAA,EAAAA;EAA4BE,MAAAA,EA7HvED,mBA6HuEC,EAAAA;CAAkCE;;;;;;;AAAuNQ,KArHhUV,+BAAAA,GAqHgUU;EAA6B,KAAA,EAAA,yBAAA;UAnH7VT,MAAMF;;;;;;;;KAQNG,yBAAAA;;;2BAGiBH;;;;;;;;;KASjBI,kBAAAA;;qBAEWN;oBACDA;;;;;;;;;KASVO,6BAAAA;;cAEIP;;;;;;;;;KASJQ,6BAAAA;;;2BAGiBN;sBACLF;;;;;;;;;KASZS,iCAAAA;;cAEIT;2BACaO;;;;;;;;KAQjBG,8BAAAA;;cAEIV;qBACOA;;;;;;;;KAQXW,8BAAAA;;2BAEiBT;;;;;;;;;KASjBU,iCAAAA;;;;;;;;;;;;;KAaAC,6BAAAA;;UAEAb;kBACQE;kBACAA;4BACUU;;;;;;;;KAQlBV,mBAAAA,GAAsBF,qBAAqBC,4BAA4BE,kCAAkCE,4BAA4BC,qBAAqBC,gCAAgCC,gCAAgCC,oCAAoCE,iCAAiCD,iCAAiCG"}
@@ -50,23 +50,18 @@ interface SqlDatabaseChainInput extends ChainInputs {
50
50
  */
51
51
  declare class SqlDatabaseChain extends BaseChain {
52
52
  static lc_name(): string;
53
- // LLM wrapper to use
54
53
  llm: BaseLanguageModelInterface;
55
- // SQL Database to connect to.
56
54
  database: SqlDatabase;
57
- // Prompt to use to translate natural language to SQL.
58
55
  prompt: PromptTemplate<{
59
56
  dialect: any;
60
57
  input: any;
61
58
  table_info: any;
62
59
  top_k: any;
63
60
  }, any>;
64
- // Number of results to return from the query
65
61
  topK: number;
66
62
  inputKey: string;
67
63
  outputKey: string;
68
64
  sqlOutputKey: string | undefined;
69
- // Whether to return the result of querying the SQL table directly.
70
65
  returnDirect: boolean;
71
66
  constructor(fields: SqlDatabaseChainInput);
72
67
  /** @ignore */
@@ -1 +1 @@
1
- {"version":3,"file":"sql_db_chain.d.cts","names":["BaseLanguageModel","BaseLanguageModelInterface","ChainValues","BasePromptTemplate","PromptTemplate","CallbackManagerForChainRun","RunnableSequence","SqlDialect","BaseChain","ChainInputs","SqlDatabase","SqlDatabaseChainInput","SqlDatabaseChain","Promise","CreateSqlQueryChainFields","createSqlQueryChain","llm","db","prompt","k","dialect","Record"],"sources":["../../../src/chains/sql_db/sql_db_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModel, BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\nimport { SqlDialect } from \"./sql_db_prompt.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport type { SqlDatabase } from \"../../sql_db.js\";\n/**\n * Interface that extends the ChainInputs interface and defines additional\n * fields specific to a SQL database chain. It represents the input fields\n * for a SQL database chain.\n */\nexport interface SqlDatabaseChainInput extends ChainInputs {\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n topK?: number;\n inputKey?: string;\n outputKey?: string;\n sqlOutputKey?: string;\n prompt?: PromptTemplate;\n}\n/**\n * Class that represents a SQL database chain in the LangChain framework.\n * It extends the BaseChain class and implements the functionality\n * specific to a SQL database chain.\n *\n * @security **Security Notice**\n * This chain generates SQL queries for the given database.\n * The SQLDatabase class provides a getTableInfo method that can be used\n * to get column information as well as sample data from the table.\n * To mitigate risk of leaking sensitive data, limit permissions\n * to read and scope to the tables that are needed.\n * Optionally, use the includesTables or ignoreTables class parameters\n * to limit which tables can/cannot be accessed.\n *\n * @link See https://js.langchain.com/docs/security for more information.\n * @example\n * ```typescript\n * const chain = new SqlDatabaseChain({\n * llm: new OpenAI({ temperature: 0 }),\n * database: new SqlDatabase({ ...config }),\n * });\n *\n * const result = await chain.run(\"How many tracks are there?\");\n * ```\n */\nexport declare class SqlDatabaseChain extends BaseChain {\n static lc_name(): string;\n // LLM wrapper to use\n llm: BaseLanguageModelInterface;\n // SQL Database to connect to.\n database: SqlDatabase;\n // Prompt to use to translate natural language to SQL.\n prompt: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n }, any>;\n // Number of results to return from the query\n topK: number;\n inputKey: string;\n outputKey: string;\n sqlOutputKey: string | undefined;\n // Whether to return the result of querying the SQL table directly.\n returnDirect: boolean;\n constructor(fields: SqlDatabaseChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sql_database_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n private verifyNumberOfTokens;\n}\nexport interface CreateSqlQueryChainFields {\n llm: BaseLanguageModel;\n db: SqlDatabase;\n prompt?: BasePromptTemplate;\n /**\n * @default 5\n */\n k?: number;\n dialect: SqlDialect;\n}\n/**\n * Create a SQL query chain that can create SQL queries for the given database.\n * Returns a Runnable.\n *\n * @param {BaseLanguageModel} llm The language model to use in the chain.\n * @param {SqlDatabase} db The database to use in the chain.\n * @param {BasePromptTemplate | undefined} prompt The prompt to use in the chain.\n * @param {BaseLanguageModel | undefined} k The amount of docs/results to return. Passed through the prompt input value `top_k`.\n * @param {SqlDialect} dialect The SQL dialect to use in the chain.\n * @returns {Promise<RunnableSequence<Record<string, unknown>, string>>} A runnable sequence representing the chain.\n * @example ```typescript\n * const datasource = new DataSource({\n * type: \"sqlite\",\n * database: \"../../../../Chinook.db\",\n * });\n * const db = await SqlDatabase.fromDataSourceParams({\n * appDataSource: datasource,\n * });\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 });\n * const chain = await createSqlQueryChain({\n * llm,\n * db,\n * dialect: \"sqlite\",\n * });\n * ```\n */\nexport declare function createSqlQueryChain({ llm, db, prompt, k, dialect }: CreateSqlQueryChainFields): Promise<RunnableSequence<Record<string, unknown>, string>>;\n"],"mappings":";;;;;;;;;;;;;AAaA;;;AAEcU,UAFGC,qBAAAA,SAA8BF,WAEjCC,CAAAA;EAAW,GAKZN,EANJH,0BAMIG;EAAc,QAPoBK,EAEjCC,WAFiCD;EAAW,IAAA,CAAA,EAAA,MAAA;EAkCrCG,QAAAA,CAAAA,EAAAA,MAAAA;EAAgB,SAAA,CAAA,EAAA,MAAA;EAAA,YAG5BX,CAAAA,EAAAA,MAAAA;EAA0B,MAErBS,CAAAA,EAhCDN,cAgCCM;;;;;;;;AALyC;AA4BvD;;;;;;AAQuB;AA4BvB;;;;;;;;;;;AAAgH,cAhE3FE,gBAAAA,SAAyBJ,SAAAA,CAgEkE;;;OA7DvGP;;YAEKS;;UAEFN;;;;;;;;;;;;;sBAaYO;;gBAENT,0BAA0BG,6BAA6BQ,QAAQX;;;;;;UAMhEY,yBAAAA;OACRd;MACDU;WACKP;;;;;WAKAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BWQ,mBAAAA;;;;;;GAAqDD,4BAA4BD,QAAQP,iBAAiBe"}
1
+ {"version":3,"file":"sql_db_chain.d.cts","names":["BaseLanguageModel","BaseLanguageModelInterface","ChainValues","BasePromptTemplate","PromptTemplate","CallbackManagerForChainRun","RunnableSequence","SqlDialect","BaseChain","ChainInputs","SqlDatabase","SqlDatabaseChainInput","SqlDatabaseChain","Promise","CreateSqlQueryChainFields","createSqlQueryChain","llm","db","prompt","k","dialect","Record"],"sources":["../../../src/chains/sql_db/sql_db_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModel, BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\nimport { SqlDialect } from \"./sql_db_prompt.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport type { SqlDatabase } from \"../../sql_db.js\";\n/**\n * Interface that extends the ChainInputs interface and defines additional\n * fields specific to a SQL database chain. It represents the input fields\n * for a SQL database chain.\n */\nexport interface SqlDatabaseChainInput extends ChainInputs {\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n topK?: number;\n inputKey?: string;\n outputKey?: string;\n sqlOutputKey?: string;\n prompt?: PromptTemplate;\n}\n/**\n * Class that represents a SQL database chain in the LangChain framework.\n * It extends the BaseChain class and implements the functionality\n * specific to a SQL database chain.\n *\n * @security **Security Notice**\n * This chain generates SQL queries for the given database.\n * The SQLDatabase class provides a getTableInfo method that can be used\n * to get column information as well as sample data from the table.\n * To mitigate risk of leaking sensitive data, limit permissions\n * to read and scope to the tables that are needed.\n * Optionally, use the includesTables or ignoreTables class parameters\n * to limit which tables can/cannot be accessed.\n *\n * @link See https://js.langchain.com/docs/security for more information.\n * @example\n * ```typescript\n * const chain = new SqlDatabaseChain({\n * llm: new OpenAI({ temperature: 0 }),\n * database: new SqlDatabase({ ...config }),\n * });\n *\n * const result = await chain.run(\"How many tracks are there?\");\n * ```\n */\nexport declare class SqlDatabaseChain extends BaseChain {\n static lc_name(): string;\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n prompt: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n }, any>;\n topK: number;\n inputKey: string;\n outputKey: string;\n sqlOutputKey: string | undefined;\n returnDirect: boolean;\n constructor(fields: SqlDatabaseChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sql_database_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n private verifyNumberOfTokens;\n}\nexport interface CreateSqlQueryChainFields {\n llm: BaseLanguageModel;\n db: SqlDatabase;\n prompt?: BasePromptTemplate;\n /**\n * @default 5\n */\n k?: number;\n dialect: SqlDialect;\n}\n/**\n * Create a SQL query chain that can create SQL queries for the given database.\n * Returns a Runnable.\n *\n * @param {BaseLanguageModel} llm The language model to use in the chain.\n * @param {SqlDatabase} db The database to use in the chain.\n * @param {BasePromptTemplate | undefined} prompt The prompt to use in the chain.\n * @param {BaseLanguageModel | undefined} k The amount of docs/results to return. Passed through the prompt input value `top_k`.\n * @param {SqlDialect} dialect The SQL dialect to use in the chain.\n * @returns {Promise<RunnableSequence<Record<string, unknown>, string>>} A runnable sequence representing the chain.\n * @example ```typescript\n * const datasource = new DataSource({\n * type: \"sqlite\",\n * database: \"../../../../Chinook.db\",\n * });\n * const db = await SqlDatabase.fromDataSourceParams({\n * appDataSource: datasource,\n * });\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 });\n * const chain = await createSqlQueryChain({\n * llm,\n * db,\n * dialect: \"sqlite\",\n * });\n * ```\n */\nexport declare function createSqlQueryChain({ llm, db, prompt, k, dialect }: CreateSqlQueryChainFields): Promise<RunnableSequence<Record<string, unknown>, string>>;\n//# sourceMappingURL=sql_db_chain.d.ts.map"],"mappings":";;;;;;;;;;;;;AAaA;;;AAOaI,UAPIO,qBAAAA,SAA8BF,WAOlCL,CAAAA;EAPkCK,GAAAA,EACtCR,0BADsCQ;EAAW,QAAA,EAE5CC,WAF4C;EAkCrCE,IAAAA,CAAAA,EAAAA,MAAAA;EAEZX,QAAAA,CAAAA,EAAAA,MAAAA;EACKS,SAAAA,CAAAA,EAAAA,MAAAA;EACFN,YAAAA,CAAAA,EAAAA,MAAAA;EAWYO,MAAAA,CAAAA,EA1CXP,cA0CWO;;;;;;AAf+B;AAuBvD;;;;;AAQuB;AA4BvB;;;;;;;;;;AAAgH;;;;cA3D3FC,gBAAAA,SAAyBJ,SAAAA;;OAErCP;YACKS;UACFN;;;;;;;;;;;sBAWYO;;gBAENT,0BAA0BG,6BAA6BQ,QAAQX;;;;;;UAMhEY,yBAAAA;OACRd;MACDU;WACKP;;;;;WAKAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BWQ,mBAAAA;;;;;;GAAqDD,4BAA4BD,QAAQP,iBAAiBe"}
@@ -50,23 +50,18 @@ interface SqlDatabaseChainInput extends ChainInputs {
50
50
  */
51
51
  declare class SqlDatabaseChain extends BaseChain {
52
52
  static lc_name(): string;
53
- // LLM wrapper to use
54
53
  llm: BaseLanguageModelInterface;
55
- // SQL Database to connect to.
56
54
  database: SqlDatabase;
57
- // Prompt to use to translate natural language to SQL.
58
55
  prompt: PromptTemplate<{
59
56
  dialect: any;
60
57
  input: any;
61
58
  table_info: any;
62
59
  top_k: any;
63
60
  }, any>;
64
- // Number of results to return from the query
65
61
  topK: number;
66
62
  inputKey: string;
67
63
  outputKey: string;
68
64
  sqlOutputKey: string | undefined;
69
- // Whether to return the result of querying the SQL table directly.
70
65
  returnDirect: boolean;
71
66
  constructor(fields: SqlDatabaseChainInput);
72
67
  /** @ignore */
@@ -1 +1 @@
1
- {"version":3,"file":"sql_db_chain.d.ts","names":["BaseLanguageModel","BaseLanguageModelInterface","ChainValues","BasePromptTemplate","PromptTemplate","CallbackManagerForChainRun","RunnableSequence","SqlDialect","BaseChain","ChainInputs","SqlDatabase","SqlDatabaseChainInput","SqlDatabaseChain","Promise","CreateSqlQueryChainFields","createSqlQueryChain","llm","db","prompt","k","dialect","Record"],"sources":["../../../src/chains/sql_db/sql_db_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModel, BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\nimport { SqlDialect } from \"./sql_db_prompt.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport type { SqlDatabase } from \"../../sql_db.js\";\n/**\n * Interface that extends the ChainInputs interface and defines additional\n * fields specific to a SQL database chain. It represents the input fields\n * for a SQL database chain.\n */\nexport interface SqlDatabaseChainInput extends ChainInputs {\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n topK?: number;\n inputKey?: string;\n outputKey?: string;\n sqlOutputKey?: string;\n prompt?: PromptTemplate;\n}\n/**\n * Class that represents a SQL database chain in the LangChain framework.\n * It extends the BaseChain class and implements the functionality\n * specific to a SQL database chain.\n *\n * @security **Security Notice**\n * This chain generates SQL queries for the given database.\n * The SQLDatabase class provides a getTableInfo method that can be used\n * to get column information as well as sample data from the table.\n * To mitigate risk of leaking sensitive data, limit permissions\n * to read and scope to the tables that are needed.\n * Optionally, use the includesTables or ignoreTables class parameters\n * to limit which tables can/cannot be accessed.\n *\n * @link See https://js.langchain.com/docs/security for more information.\n * @example\n * ```typescript\n * const chain = new SqlDatabaseChain({\n * llm: new OpenAI({ temperature: 0 }),\n * database: new SqlDatabase({ ...config }),\n * });\n *\n * const result = await chain.run(\"How many tracks are there?\");\n * ```\n */\nexport declare class SqlDatabaseChain extends BaseChain {\n static lc_name(): string;\n // LLM wrapper to use\n llm: BaseLanguageModelInterface;\n // SQL Database to connect to.\n database: SqlDatabase;\n // Prompt to use to translate natural language to SQL.\n prompt: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n }, any>;\n // Number of results to return from the query\n topK: number;\n inputKey: string;\n outputKey: string;\n sqlOutputKey: string | undefined;\n // Whether to return the result of querying the SQL table directly.\n returnDirect: boolean;\n constructor(fields: SqlDatabaseChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sql_database_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n private verifyNumberOfTokens;\n}\nexport interface CreateSqlQueryChainFields {\n llm: BaseLanguageModel;\n db: SqlDatabase;\n prompt?: BasePromptTemplate;\n /**\n * @default 5\n */\n k?: number;\n dialect: SqlDialect;\n}\n/**\n * Create a SQL query chain that can create SQL queries for the given database.\n * Returns a Runnable.\n *\n * @param {BaseLanguageModel} llm The language model to use in the chain.\n * @param {SqlDatabase} db The database to use in the chain.\n * @param {BasePromptTemplate | undefined} prompt The prompt to use in the chain.\n * @param {BaseLanguageModel | undefined} k The amount of docs/results to return. Passed through the prompt input value `top_k`.\n * @param {SqlDialect} dialect The SQL dialect to use in the chain.\n * @returns {Promise<RunnableSequence<Record<string, unknown>, string>>} A runnable sequence representing the chain.\n * @example ```typescript\n * const datasource = new DataSource({\n * type: \"sqlite\",\n * database: \"../../../../Chinook.db\",\n * });\n * const db = await SqlDatabase.fromDataSourceParams({\n * appDataSource: datasource,\n * });\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 });\n * const chain = await createSqlQueryChain({\n * llm,\n * db,\n * dialect: \"sqlite\",\n * });\n * ```\n */\nexport declare function createSqlQueryChain({ llm, db, prompt, k, dialect }: CreateSqlQueryChainFields): Promise<RunnableSequence<Record<string, unknown>, string>>;\n"],"mappings":";;;;;;;;;;;;;AAaA;;;AAEcU,UAFGC,qBAAAA,SAA8BF,WAEjCC,CAAAA;EAAW,GAKZN,EANJH,0BAMIG;EAAc,QAPoBK,EAEjCC,WAFiCD;EAAW,IAAA,CAAA,EAAA,MAAA;EAkCrCG,QAAAA,CAAAA,EAAAA,MAAAA;EAAgB,SAAA,CAAA,EAAA,MAAA;EAAA,YAG5BX,CAAAA,EAAAA,MAAAA;EAA0B,MAErBS,CAAAA,EAhCDN,cAgCCM;;;;;;;;AALyC;AA4BvD;;;;;;AAQuB;AA4BvB;;;;;;;;;;;AAAgH,cAhE3FE,gBAAAA,SAAyBJ,SAAAA,CAgEkE;;;OA7DvGP;;YAEKS;;UAEFN;;;;;;;;;;;;;sBAaYO;;gBAENT,0BAA0BG,6BAA6BQ,QAAQX;;;;;;UAMhEY,yBAAAA;OACRd;MACDU;WACKP;;;;;WAKAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BWQ,mBAAAA;;;;;;GAAqDD,4BAA4BD,QAAQP,iBAAiBe"}
1
+ {"version":3,"file":"sql_db_chain.d.ts","names":["BaseLanguageModel","BaseLanguageModelInterface","ChainValues","BasePromptTemplate","PromptTemplate","CallbackManagerForChainRun","RunnableSequence","SqlDialect","BaseChain","ChainInputs","SqlDatabase","SqlDatabaseChainInput","SqlDatabaseChain","Promise","CreateSqlQueryChainFields","createSqlQueryChain","llm","db","prompt","k","dialect","Record"],"sources":["../../../src/chains/sql_db/sql_db_chain.d.ts"],"sourcesContent":["import type { BaseLanguageModel, BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { RunnableSequence } from \"@langchain/core/runnables\";\nimport { SqlDialect } from \"./sql_db_prompt.js\";\nimport { BaseChain, ChainInputs } from \"../base.js\";\nimport type { SqlDatabase } from \"../../sql_db.js\";\n/**\n * Interface that extends the ChainInputs interface and defines additional\n * fields specific to a SQL database chain. It represents the input fields\n * for a SQL database chain.\n */\nexport interface SqlDatabaseChainInput extends ChainInputs {\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n topK?: number;\n inputKey?: string;\n outputKey?: string;\n sqlOutputKey?: string;\n prompt?: PromptTemplate;\n}\n/**\n * Class that represents a SQL database chain in the LangChain framework.\n * It extends the BaseChain class and implements the functionality\n * specific to a SQL database chain.\n *\n * @security **Security Notice**\n * This chain generates SQL queries for the given database.\n * The SQLDatabase class provides a getTableInfo method that can be used\n * to get column information as well as sample data from the table.\n * To mitigate risk of leaking sensitive data, limit permissions\n * to read and scope to the tables that are needed.\n * Optionally, use the includesTables or ignoreTables class parameters\n * to limit which tables can/cannot be accessed.\n *\n * @link See https://js.langchain.com/docs/security for more information.\n * @example\n * ```typescript\n * const chain = new SqlDatabaseChain({\n * llm: new OpenAI({ temperature: 0 }),\n * database: new SqlDatabase({ ...config }),\n * });\n *\n * const result = await chain.run(\"How many tracks are there?\");\n * ```\n */\nexport declare class SqlDatabaseChain extends BaseChain {\n static lc_name(): string;\n llm: BaseLanguageModelInterface;\n database: SqlDatabase;\n prompt: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n }, any>;\n topK: number;\n inputKey: string;\n outputKey: string;\n sqlOutputKey: string | undefined;\n returnDirect: boolean;\n constructor(fields: SqlDatabaseChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"sql_database_chain\";\n get inputKeys(): string[];\n get outputKeys(): string[];\n private verifyNumberOfTokens;\n}\nexport interface CreateSqlQueryChainFields {\n llm: BaseLanguageModel;\n db: SqlDatabase;\n prompt?: BasePromptTemplate;\n /**\n * @default 5\n */\n k?: number;\n dialect: SqlDialect;\n}\n/**\n * Create a SQL query chain that can create SQL queries for the given database.\n * Returns a Runnable.\n *\n * @param {BaseLanguageModel} llm The language model to use in the chain.\n * @param {SqlDatabase} db The database to use in the chain.\n * @param {BasePromptTemplate | undefined} prompt The prompt to use in the chain.\n * @param {BaseLanguageModel | undefined} k The amount of docs/results to return. Passed through the prompt input value `top_k`.\n * @param {SqlDialect} dialect The SQL dialect to use in the chain.\n * @returns {Promise<RunnableSequence<Record<string, unknown>, string>>} A runnable sequence representing the chain.\n * @example ```typescript\n * const datasource = new DataSource({\n * type: \"sqlite\",\n * database: \"../../../../Chinook.db\",\n * });\n * const db = await SqlDatabase.fromDataSourceParams({\n * appDataSource: datasource,\n * });\n * const llm = new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 });\n * const chain = await createSqlQueryChain({\n * llm,\n * db,\n * dialect: \"sqlite\",\n * });\n * ```\n */\nexport declare function createSqlQueryChain({ llm, db, prompt, k, dialect }: CreateSqlQueryChainFields): Promise<RunnableSequence<Record<string, unknown>, string>>;\n//# sourceMappingURL=sql_db_chain.d.ts.map"],"mappings":";;;;;;;;;;;;;AAaA;;;AAOaI,UAPIO,qBAAAA,SAA8BF,WAOlCL,CAAAA;EAPkCK,GAAAA,EACtCR,0BADsCQ;EAAW,QAAA,EAE5CC,WAF4C;EAkCrCE,IAAAA,CAAAA,EAAAA,MAAAA;EAEZX,QAAAA,CAAAA,EAAAA,MAAAA;EACKS,SAAAA,CAAAA,EAAAA,MAAAA;EACFN,YAAAA,CAAAA,EAAAA,MAAAA;EAWYO,MAAAA,CAAAA,EA1CXP,cA0CWO;;;;;;AAf+B;AAuBvD;;;;;AAQuB;AA4BvB;;;;;;;;;;AAAgH;;;;cA3D3FC,gBAAAA,SAAyBJ,SAAAA;;OAErCP;YACKS;UACFN;;;;;;;;;;;sBAWYO;;gBAENT,0BAA0BG,6BAA6BQ,QAAQX;;;;;;UAMhEY,yBAAAA;OACRd;MACDU;WACKP;;;;;WAKAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BWQ,mBAAAA;;;;;;GAAqDD,4BAA4BD,QAAQP,iBAAiBe"}
@@ -1 +1 @@
1
- {"version":3,"file":"sql_db_prompt.d.cts","names":["BasePromptTemplate","PromptTemplate","DEFAULT_SQL_DATABASE_PROMPT","SQL_POSTGRES_PROMPT","SQL_SQLITE_PROMPT","SQL_MYSQL_PROMPT","SQL_MSSQL_PROMPT","SQL_SAP_HANA_PROMPT","SQL_ORACLE_PROMPT","SqlDialect","SQL_PROMPTS_MAP","Record"],"sources":["../../../src/chains/sql_db/sql_db_prompt.d.ts"],"sourcesContent":["import { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nexport declare const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_POSTGRES_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SQLITE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MYSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MSSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SAP_HANA_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_ORACLE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport type SqlDialect = \"oracle\" | \"postgres\" | \"sqlite\" | \"mysql\" | \"mssql\" | \"sap hana\";\nexport declare const SQL_PROMPTS_MAP: Record<SqlDialect, BasePromptTemplate>;\n"],"mappings":";;;cACqBE,6BAA6BD;;EAA7BC,KAAAA,EAAAA,GAAAA;EAMAC,UAAAA,EAAAA,GAAAA;EAMAC,KAAAA,EAAAA,GAAAA;AAMrB,CAAA,EAAA,GAAqBC,CAAAA;AAMAC,cAlBAH,mBAkBkBF,EAlBGA,cAkBW,CAAA;EAMhCM,OAAAA,EAAAA,GAAAA;EAYTE,KAAAA,EAAAA,GAAAA;EACSC,UAAAA,EAAAA,GAAAA;EAAuD,KAAA,EAAA,GAAA;CAAA,EAAA,GAAA,CAA/BD;AAAYT,cA/BpCI,iBA+BoCJ,EA/BjBC,cA+BiBD,CAAAA;EAAkB,OAArCW,EAAAA,GAAAA;EAAM,KAAA,EAAA,GAAA;;;;cAzBvBN,kBAAkBJ;;;;;;cAMlBK,kBAAkBL;;;;;;cAMlBM,qBAAqBN;;;;;;KAY9BQ,UAAAA;cACSC,iBAAiBC,OAAOF,YAAYT"}
1
+ {"version":3,"file":"sql_db_prompt.d.cts","names":["BasePromptTemplate","PromptTemplate","DEFAULT_SQL_DATABASE_PROMPT","SQL_POSTGRES_PROMPT","SQL_SQLITE_PROMPT","SQL_MYSQL_PROMPT","SQL_MSSQL_PROMPT","SQL_SAP_HANA_PROMPT","SQL_ORACLE_PROMPT","SqlDialect","SQL_PROMPTS_MAP","Record"],"sources":["../../../src/chains/sql_db/sql_db_prompt.d.ts"],"sourcesContent":["import { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nexport declare const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_POSTGRES_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SQLITE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MYSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MSSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SAP_HANA_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_ORACLE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport type SqlDialect = \"oracle\" | \"postgres\" | \"sqlite\" | \"mysql\" | \"mssql\" | \"sap hana\";\nexport declare const SQL_PROMPTS_MAP: Record<SqlDialect, BasePromptTemplate>;\n//# sourceMappingURL=sql_db_prompt.d.ts.map"],"mappings":";;;cACqBE,6BAA6BD;;EAA7BC,KAAAA,EAAAA,GAAAA;EAMAC,UAAAA,EAAAA,GAAAA;EAMAC,KAAAA,EAAAA,GAAAA;AAMrB,CAAA,EAAA,GAAqBC,CAAAA;AAMAC,cAlBAH,mBAkBkBF,EAlBGA,cAkBW,CAAA;EAMhCM,OAAAA,EAAAA,GAAAA;EAYTE,KAAAA,EAAAA,GAAAA;EACSC,UAAAA,EAAAA,GAAAA;EAAwBD,KAAAA,EAAAA,GAAAA;CAAYT,EAAAA,GAAAA,CAAAA;AAAnBW,cA/BjBP,iBA+BiBO,EA/BEV,cA+BFU,CAAAA;EAAM,OAAA,EAAA,GAAA;;;;;cAzBvBN,kBAAkBJ;;;;;;cAMlBK,kBAAkBL;;;;;;cAMlBM,qBAAqBN;;;;;;KAY9BQ,UAAAA;cACSC,iBAAiBC,OAAOF,YAAYT"}
@@ -1 +1 @@
1
- {"version":3,"file":"sql_db_prompt.d.ts","names":["BasePromptTemplate","PromptTemplate","DEFAULT_SQL_DATABASE_PROMPT","SQL_POSTGRES_PROMPT","SQL_SQLITE_PROMPT","SQL_MYSQL_PROMPT","SQL_MSSQL_PROMPT","SQL_SAP_HANA_PROMPT","SQL_ORACLE_PROMPT","SqlDialect","SQL_PROMPTS_MAP","Record"],"sources":["../../../src/chains/sql_db/sql_db_prompt.d.ts"],"sourcesContent":["import { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nexport declare const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_POSTGRES_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SQLITE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MYSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MSSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SAP_HANA_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_ORACLE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport type SqlDialect = \"oracle\" | \"postgres\" | \"sqlite\" | \"mysql\" | \"mssql\" | \"sap hana\";\nexport declare const SQL_PROMPTS_MAP: Record<SqlDialect, BasePromptTemplate>;\n"],"mappings":";;;cACqBE,6BAA6BD;;EAA7BC,KAAAA,EAAAA,GAAAA;EAMAC,UAAAA,EAAAA,GAAAA;EAMAC,KAAAA,EAAAA,GAAAA;AAMrB,CAAA,EAAA,GAAqBC,CAAAA;AAMAC,cAlBAH,mBAkBkBF,EAlBGA,cAkBW,CAAA;EAMhCM,OAAAA,EAAAA,GAAAA;EAYTE,KAAAA,EAAAA,GAAAA;EACSC,UAAAA,EAAAA,GAAAA;EAAuD,KAAA,EAAA,GAAA;CAAA,EAAA,GAAA,CAA/BD;AAAYT,cA/BpCI,iBA+BoCJ,EA/BjBC,cA+BiBD,CAAAA;EAAkB,OAArCW,EAAAA,GAAAA;EAAM,KAAA,EAAA,GAAA;;;;cAzBvBN,kBAAkBJ;;;;;;cAMlBK,kBAAkBL;;;;;;cAMlBM,qBAAqBN;;;;;;KAY9BQ,UAAAA;cACSC,iBAAiBC,OAAOF,YAAYT"}
1
+ {"version":3,"file":"sql_db_prompt.d.ts","names":["BasePromptTemplate","PromptTemplate","DEFAULT_SQL_DATABASE_PROMPT","SQL_POSTGRES_PROMPT","SQL_SQLITE_PROMPT","SQL_MYSQL_PROMPT","SQL_MSSQL_PROMPT","SQL_SAP_HANA_PROMPT","SQL_ORACLE_PROMPT","SqlDialect","SQL_PROMPTS_MAP","Record"],"sources":["../../../src/chains/sql_db/sql_db_prompt.d.ts"],"sourcesContent":["import { BasePromptTemplate, PromptTemplate } from \"@langchain/core/prompts\";\nexport declare const DEFAULT_SQL_DATABASE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_POSTGRES_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SQLITE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MYSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_MSSQL_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_SAP_HANA_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport declare const SQL_ORACLE_PROMPT: PromptTemplate<{\n dialect: any;\n input: any;\n table_info: any;\n top_k: any;\n}, any>;\nexport type SqlDialect = \"oracle\" | \"postgres\" | \"sqlite\" | \"mysql\" | \"mssql\" | \"sap hana\";\nexport declare const SQL_PROMPTS_MAP: Record<SqlDialect, BasePromptTemplate>;\n//# sourceMappingURL=sql_db_prompt.d.ts.map"],"mappings":";;;cACqBE,6BAA6BD;;EAA7BC,KAAAA,EAAAA,GAAAA;EAMAC,UAAAA,EAAAA,GAAAA;EAMAC,KAAAA,EAAAA,GAAAA;AAMrB,CAAA,EAAA,GAAqBC,CAAAA;AAMAC,cAlBAH,mBAkBkBF,EAlBGA,cAkBW,CAAA;EAMhCM,OAAAA,EAAAA,GAAAA;EAYTE,KAAAA,EAAAA,GAAAA;EACSC,UAAAA,EAAAA,GAAAA;EAAwBD,KAAAA,EAAAA,GAAAA;CAAYT,EAAAA,GAAAA,CAAAA;AAAnBW,cA/BjBP,iBA+BiBO,EA/BEV,cA+BFU,CAAAA;EAAM,OAAA,EAAA,GAAA;;;;;cAzBvBN,kBAAkBJ;;;;;;cAMlBK,kBAAkBL;;;;;;cAMlBM,qBAAqBN;;;;;;KAY9BQ,UAAAA;cACSC,iBAAiBC,OAAOF,YAAYT"}
@@ -1,6 +1,6 @@
1
1
  import { MapReduceDocumentsChain, MapReduceDocumentsChainInput, RefineDocumentsChain, StuffDocumentsChain } from "../combine_docs_chain.cjs";
2
2
  import { BasePromptTemplate } from "@langchain/core/prompts";
3
- import * as _langchain_core_language_models_base2 from "@langchain/core/language_models/base";
3
+ import * as _langchain_core_language_models_base0 from "@langchain/core/language_models/base";
4
4
  import { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
5
5
 
6
6
  //#region src/chains/summarization/load.d.ts
@@ -27,7 +27,7 @@ type SummarizationChainParams = BaseParams & ({
27
27
  refineLLM?: BaseLanguageModelInterface;
28
28
  questionPrompt?: BasePromptTemplate;
29
29
  });
30
- declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, _langchain_core_language_models_base2.BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;
30
+ declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, _langchain_core_language_models_base0.BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;
31
31
  //#endregion
32
32
  export { SummarizationChainParams, loadSummarizationChain };
33
33
  //# sourceMappingURL=load.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"load.d.cts","names":["BaseLanguageModelInterface","BasePromptTemplate","StuffDocumentsChain","MapReduceDocumentsChain","RefineDocumentsChain","MapReduceDocumentsChainInput","BaseParams","SummarizationChainParams","Pick","loadSummarizationChain","_langchain_core_language_models_base2","BaseLanguageModelCallOptions"],"sources":["../../../src/chains/summarization/load.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { StuffDocumentsChain, MapReduceDocumentsChain, RefineDocumentsChain, MapReduceDocumentsChainInput } from \"../combine_docs_chain.js\";\n/**\n * Type for the base parameters that can be used to configure a\n * summarization chain.\n */\ntype BaseParams = {\n verbose?: boolean;\n};\n/** @interface */\nexport type SummarizationChainParams = BaseParams & ({\n type?: \"stuff\";\n prompt?: BasePromptTemplate;\n} | ({\n type?: \"map_reduce\";\n combineMapPrompt?: BasePromptTemplate;\n combinePrompt?: BasePromptTemplate;\n combineLLM?: BaseLanguageModelInterface;\n} & Pick<MapReduceDocumentsChainInput, \"returnIntermediateSteps\">) | {\n type?: \"refine\";\n refinePrompt?: BasePromptTemplate;\n refineLLM?: BaseLanguageModelInterface;\n questionPrompt?: BasePromptTemplate;\n});\nexport declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, import(\"@langchain/core/language_models/base\").BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;\nexport {};\n"],"mappings":";;;;;;;;;;AAE4I;AAS5I,KAJKM,UAAAA,GAIOC;EAAwB,OAAA,CAAA,EAAA,OAAA;CAAA;;AAKbN,KALXM,wBAAAA,GAA2BD,UAKhBL,GAAAA,CAAAA;EAAkB,IACrBA,CAAAA,EAAAA,OAAAA;EAAkB,MACrBD,CAAAA,EALJC,kBAKID;CAA0B,GAAA,CAAA;EACN,IAAjCQ,CAAAA,EAAAA,YAAAA;EAAI,gBAEWP,CAAAA,EALIA,kBAKJA;EAAkB,aACrBD,CAAAA,EALIC,kBAKJD;EAA0B,UACrBC,CAAAA,EALJD,0BAKIC;AAAkB,CAAA,GAJnCO,IAImC,CAJ9BH,4BAI8B,EAAA,yBAAA,CAAA,CAAA,GAAA;EAElBI,IAAAA,CAAAA,EAAAA,QAAAA;EAAsP,YAAA,CAAA,EAJxPR,kBAIwP;EAAA,SAAAS,CAAAA,EAH3PV,0BAG2PU;EAA7G,cAA3GV,CAAAA,EAF9BC,kBAE8BD;CAA0B,CAAA;AAA0HG,cAAlLM,sBAAkLN,EAAAA,CAAAA,GAAAA,EAApJH,0BAAoJG,CAAAA,GAAAA,EAAoEO,qCAAAA,CAAzIC,4BAAAA,CAAqER,EAAAA,MAAAA,CAAAA,EAA7BI,wBAA6BJ,EAAAA,GAAAA,uBAAAA,GAA0BC,oBAA1BD,GAAiDD,mBAAjDC"}
1
+ {"version":3,"file":"load.d.cts","names":["BaseLanguageModelInterface","BasePromptTemplate","StuffDocumentsChain","MapReduceDocumentsChain","RefineDocumentsChain","MapReduceDocumentsChainInput","BaseParams","SummarizationChainParams","Pick","loadSummarizationChain","_langchain_core_language_models_base0","BaseLanguageModelCallOptions"],"sources":["../../../src/chains/summarization/load.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { StuffDocumentsChain, MapReduceDocumentsChain, RefineDocumentsChain, MapReduceDocumentsChainInput } from \"../combine_docs_chain.js\";\n/**\n * Type for the base parameters that can be used to configure a\n * summarization chain.\n */\ntype BaseParams = {\n verbose?: boolean;\n};\n/** @interface */\nexport type SummarizationChainParams = BaseParams & ({\n type?: \"stuff\";\n prompt?: BasePromptTemplate;\n} | ({\n type?: \"map_reduce\";\n combineMapPrompt?: BasePromptTemplate;\n combinePrompt?: BasePromptTemplate;\n combineLLM?: BaseLanguageModelInterface;\n} & Pick<MapReduceDocumentsChainInput, \"returnIntermediateSteps\">) | {\n type?: \"refine\";\n refinePrompt?: BasePromptTemplate;\n refineLLM?: BaseLanguageModelInterface;\n questionPrompt?: BasePromptTemplate;\n});\nexport declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, import(\"@langchain/core/language_models/base\").BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;\nexport {};\n//# sourceMappingURL=load.d.ts.map"],"mappings":";;;;;;;;;;AAE4I;AAS5I,KAJKM,UAAAA,GAIOC;EAA2BD,OAAAA,CAAAA,EAAAA,OAAAA;CAE1BL;;AAIOA,KANRM,wBAAAA,GAA2BD,UAMnBL,GAAAA,CAAAA;EACHD,IAAAA,CAAAA,EAAAA,OAAAA;EACRK,MAAAA,CAAAA,EANIJ,kBAMJI;CAALG,GAAAA,CAAAA;EAEeP,IAAAA,CAAAA,EAAAA,YAAAA;EACHD,gBAAAA,CAAAA,EANOC,kBAMPD;EACKC,aAAAA,CAAAA,EANDA,kBAMCA;EAAkB,UAAA,CAAA,EALtBD,0BAKsB;AAEvC,CAAA,GANIQ,IAMiBC,CANZJ,4BAMkQ,EAAA,yBAAA,CAAA,CAAA,GAAA;EAAAK,IAAAA,CAAAA,EAAAA,QAAAA;EAAxNV,YAAAA,CAAAA,EAJhCC,kBAIgCD;EAAuHO,SAAAA,CAAAA,EAH1JP,0BAG0JO;EAA6BJ,cAAAA,CAAAA,EAFlLF,kBAEkLE;CAA0BC,CAAAA;AAAuBF,cAAnOO,sBAAmOP,EAAAA,CAAAA,GAAAA,EAArMF,0BAAqME,CAAAA,GAAAA,EAAmBQ,qCAAAA,CAAzIC,4BAAAA,CAAsHT,EAAAA,MAAAA,CAAAA,EAA9EK,wBAA8EL,EAAAA,GAAjDC,uBAAiDD,GAAvBE,oBAAuBF,GAAAA,mBAAAA"}
@@ -1,6 +1,6 @@
1
1
  import { MapReduceDocumentsChain, MapReduceDocumentsChainInput, RefineDocumentsChain, StuffDocumentsChain } from "../combine_docs_chain.js";
2
2
  import { BasePromptTemplate } from "@langchain/core/prompts";
3
- import * as _langchain_core_language_models_base1 from "@langchain/core/language_models/base";
3
+ import * as _langchain_core_language_models_base0 from "@langchain/core/language_models/base";
4
4
  import { BaseLanguageModelInterface } from "@langchain/core/language_models/base";
5
5
 
6
6
  //#region src/chains/summarization/load.d.ts
@@ -27,7 +27,7 @@ type SummarizationChainParams = BaseParams & ({
27
27
  refineLLM?: BaseLanguageModelInterface;
28
28
  questionPrompt?: BasePromptTemplate;
29
29
  });
30
- declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, _langchain_core_language_models_base1.BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;
30
+ declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, _langchain_core_language_models_base0.BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;
31
31
  //#endregion
32
32
  export { SummarizationChainParams, loadSummarizationChain };
33
33
  //# sourceMappingURL=load.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"load.d.ts","names":["BaseLanguageModelInterface","BasePromptTemplate","StuffDocumentsChain","MapReduceDocumentsChain","RefineDocumentsChain","MapReduceDocumentsChainInput","BaseParams","SummarizationChainParams","Pick","loadSummarizationChain","_langchain_core_language_models_base1","BaseLanguageModelCallOptions"],"sources":["../../../src/chains/summarization/load.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { StuffDocumentsChain, MapReduceDocumentsChain, RefineDocumentsChain, MapReduceDocumentsChainInput } from \"../combine_docs_chain.js\";\n/**\n * Type for the base parameters that can be used to configure a\n * summarization chain.\n */\ntype BaseParams = {\n verbose?: boolean;\n};\n/** @interface */\nexport type SummarizationChainParams = BaseParams & ({\n type?: \"stuff\";\n prompt?: BasePromptTemplate;\n} | ({\n type?: \"map_reduce\";\n combineMapPrompt?: BasePromptTemplate;\n combinePrompt?: BasePromptTemplate;\n combineLLM?: BaseLanguageModelInterface;\n} & Pick<MapReduceDocumentsChainInput, \"returnIntermediateSteps\">) | {\n type?: \"refine\";\n refinePrompt?: BasePromptTemplate;\n refineLLM?: BaseLanguageModelInterface;\n questionPrompt?: BasePromptTemplate;\n});\nexport declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, import(\"@langchain/core/language_models/base\").BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;\nexport {};\n"],"mappings":";;;;;;;;;;AAE4I;AAS5I,KAJKM,UAAAA,GAIOC;EAAwB,OAAA,CAAA,EAAA,OAAA;CAAA;;AAKbN,KALXM,wBAAAA,GAA2BD,UAKhBL,GAAAA,CAAAA;EAAkB,IACrBA,CAAAA,EAAAA,OAAAA;EAAkB,MACrBD,CAAAA,EALJC,kBAKID;CAA0B,GAAA,CAAA;EACN,IAAjCQ,CAAAA,EAAAA,YAAAA;EAAI,gBAEWP,CAAAA,EALIA,kBAKJA;EAAkB,aACrBD,CAAAA,EALIC,kBAKJD;EAA0B,UACrBC,CAAAA,EALJD,0BAKIC;AAAkB,CAAA,GAJnCO,IAImC,CAJ9BH,4BAI8B,EAAA,yBAAA,CAAA,CAAA,GAAA;EAElBI,IAAAA,CAAAA,EAAAA,QAAAA;EAAsP,YAAA,CAAA,EAJxPR,kBAIwP;EAAA,SAAAS,CAAAA,EAH3PV,0BAG2PU;EAA7G,cAA3GV,CAAAA,EAF9BC,kBAE8BD;CAA0B,CAAA;AAA0HG,cAAlLM,sBAAkLN,EAAAA,CAAAA,GAAAA,EAApJH,0BAAoJG,CAAAA,GAAAA,EAAoEO,qCAAAA,CAAzIC,4BAAAA,CAAqER,EAAAA,MAAAA,CAAAA,EAA7BI,wBAA6BJ,EAAAA,GAAAA,uBAAAA,GAA0BC,oBAA1BD,GAAiDD,mBAAjDC"}
1
+ {"version":3,"file":"load.d.ts","names":["BaseLanguageModelInterface","BasePromptTemplate","StuffDocumentsChain","MapReduceDocumentsChain","RefineDocumentsChain","MapReduceDocumentsChainInput","BaseParams","SummarizationChainParams","Pick","loadSummarizationChain","_langchain_core_language_models_base0","BaseLanguageModelCallOptions"],"sources":["../../../src/chains/summarization/load.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { BasePromptTemplate } from \"@langchain/core/prompts\";\nimport { StuffDocumentsChain, MapReduceDocumentsChain, RefineDocumentsChain, MapReduceDocumentsChainInput } from \"../combine_docs_chain.js\";\n/**\n * Type for the base parameters that can be used to configure a\n * summarization chain.\n */\ntype BaseParams = {\n verbose?: boolean;\n};\n/** @interface */\nexport type SummarizationChainParams = BaseParams & ({\n type?: \"stuff\";\n prompt?: BasePromptTemplate;\n} | ({\n type?: \"map_reduce\";\n combineMapPrompt?: BasePromptTemplate;\n combinePrompt?: BasePromptTemplate;\n combineLLM?: BaseLanguageModelInterface;\n} & Pick<MapReduceDocumentsChainInput, \"returnIntermediateSteps\">) | {\n type?: \"refine\";\n refinePrompt?: BasePromptTemplate;\n refineLLM?: BaseLanguageModelInterface;\n questionPrompt?: BasePromptTemplate;\n});\nexport declare const loadSummarizationChain: (llm: BaseLanguageModelInterface<any, import(\"@langchain/core/language_models/base\").BaseLanguageModelCallOptions>, params?: SummarizationChainParams) => MapReduceDocumentsChain | RefineDocumentsChain | StuffDocumentsChain;\nexport {};\n//# sourceMappingURL=load.d.ts.map"],"mappings":";;;;;;;;;;AAE4I;AAS5I,KAJKM,UAAAA,GAIOC;EAA2BD,OAAAA,CAAAA,EAAAA,OAAAA;CAE1BL;;AAIOA,KANRM,wBAAAA,GAA2BD,UAMnBL,GAAAA,CAAAA;EACHD,IAAAA,CAAAA,EAAAA,OAAAA;EACRK,MAAAA,CAAAA,EANIJ,kBAMJI;CAALG,GAAAA,CAAAA;EAEeP,IAAAA,CAAAA,EAAAA,YAAAA;EACHD,gBAAAA,CAAAA,EANOC,kBAMPD;EACKC,aAAAA,CAAAA,EANDA,kBAMCA;EAAkB,UAAA,CAAA,EALtBD,0BAKsB;AAEvC,CAAA,GANIQ,IAMiBC,CANZJ,4BAMkQ,EAAA,yBAAA,CAAA,CAAA,GAAA;EAAAK,IAAAA,CAAAA,EAAAA,QAAAA;EAAxNV,YAAAA,CAAAA,EAJhCC,kBAIgCD;EAAuHO,SAAAA,CAAAA,EAH1JP,0BAG0JO;EAA6BJ,cAAAA,CAAAA,EAFlLF,kBAEkLE;CAA0BC,CAAAA;AAAuBF,cAAnOO,sBAAmOP,EAAAA,CAAAA,GAAAA,EAArMF,0BAAqME,CAAAA,GAAAA,EAAmBQ,qCAAAA,CAAzIC,4BAAAA,CAAsHT,EAAAA,MAAAA,CAAAA,EAA9EK,wBAA8EL,EAAAA,GAAjDC,uBAAiDD,GAAvBE,oBAAuBF,GAAAA,mBAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.cts","names":["CallbackManagerForChainRun","Callbacks","ChainValues","ChainInputs","BaseChain","TransformChainFields","I","O","Promise","TransformChain"],"sources":["../../src/chains/transform.d.ts"],"sourcesContent":["import { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { ChainInputs, BaseChain } from \"./base.js\";\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * fields required for a transform chain. It includes the `transform`\n * function, `inputVariables`, and `outputVariables` properties.\n */\nexport interface TransformChainFields<I extends ChainValues, O extends ChainValues> extends ChainInputs {\n transform: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n}\n/**\n * Class that represents a transform chain. It extends the `BaseChain`\n * class and implements the `TransformChainFields` interface. It provides\n * a way to transform input values to output values using a specified\n * transform function.\n */\nexport declare class TransformChain<I extends ChainValues, O extends ChainValues> extends BaseChain {\n static lc_name(): string;\n transformFunc: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n _chainType(): \"transform\";\n get inputKeys(): (keyof I extends string ? keyof I : never)[];\n get outputKeys(): (keyof O extends string ? keyof O : never)[];\n constructor(fields: TransformChainFields<I, O>);\n _call(values: I, runManager?: CallbackManagerForChainRun): Promise<O>;\n}\n"],"mappings":";;;;;;;;AAQA;;;AAAuEE,UAAtDG,oBAAsDH,CAAAA,UAAvBA,WAAuBA,EAAAA,UAAAA,WAAAA,CAAAA,SAAqBC,WAArBD,CAAAA;EAAW,SAC1DI,EAAAA,CAAAA,MAAAA,EAAAA,CAAAA,EAAAA,SAAAA,CAAAA,EAAeL,SAAfK,EAAAA,GAA6BC,CAA7BD,GAAiCE,OAAjCF,CAAyCC,CAAzCD,CAAAA;EAAC,cAAcL,EAAAA,CAAAA,MACZK,CADYL,SAAAA,MAAAA,GAAAA,MACaK,CADbL,GAAAA,KAAAA,CAAAA,EAAAA;EAAS,eAAKM,EAAAA,CAAAA,MAEzBA,CAFyBA,SAAAA,MAAAA,GAAAA,MAEAA,CAFAA,GAAAA,KAAAA,CAAAA,EAAAA;;;;;;;;AADkD,cAWlFE,cAXkF,CAAA,UAWzDP,WAXyD,EAAA,UAWlCA,WAXkC,CAAA,SAWbE,SAAAA,CAXa;EAWlFK,OAAAA,OAAAA,CAAAA,CAAAA,EAAc,MAAA;EAAA,aAAA,EAAA,CAAA,MAAA,EAEPH,CAFO,EAAA,SAAA,CAAA,EAEQL,SAFR,EAAA,GAEsBM,CAFtB,GAE0BC,OAF1B,CAEkCD,CAFlC,CAAA;EAAA,cAAWL,EAAAA,CAAAA,MAGnBI,CAHmBJ,SAAAA,MAAAA,GAAAA,MAGMI,CAHNJ,GAAAA,KAAAA,CAAAA,EAAAA;EAAW,eAAYA,EAAAA,CAAAA,MAIzCK,CAJyCL,SAAAA,MAAAA,GAAAA,MAIhBK,CAJgBL,GAAAA,KAAAA,CAAAA,EAAAA;EAAW,UAEpDI,CAAAA,CAAAA,EAAAA,WAAAA;EAAC,IAAcL,SAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAIfK,CAJeL,SAAAA,MAAAA,GAAAA,MAIUK,CAJVL,GAAAA,KAAAA,CAAAA,EAAAA;EAAS,IAAKM,UAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAK5BA,CAL4BA,SAAAA,MAAAA,GAAAA,MAKHA,CALGA,GAAAA,KAAAA,CAAAA,EAAAA;EAAC,WAAWA,CAAAA,MAAAA,EAM7CF,oBAN6CE,CAMxBD,CANwBC,EAMrBA,CANqBA,CAAAA;EAAC,KAATC,CAAAA,MAAAA,EAO3CF,CAP2CE,EAAAA,UAAAA,CAAAA,EAO3BR,0BAP2BQ,CAAAA,EAOEA,OAPFA,CAOUD,CAPVC,CAAAA"}
1
+ {"version":3,"file":"transform.d.cts","names":["CallbackManagerForChainRun","Callbacks","ChainValues","ChainInputs","BaseChain","TransformChainFields","I","O","Promise","TransformChain"],"sources":["../../src/chains/transform.d.ts"],"sourcesContent":["import { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { ChainInputs, BaseChain } from \"./base.js\";\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * fields required for a transform chain. It includes the `transform`\n * function, `inputVariables`, and `outputVariables` properties.\n */\nexport interface TransformChainFields<I extends ChainValues, O extends ChainValues> extends ChainInputs {\n transform: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n}\n/**\n * Class that represents a transform chain. It extends the `BaseChain`\n * class and implements the `TransformChainFields` interface. It provides\n * a way to transform input values to output values using a specified\n * transform function.\n */\nexport declare class TransformChain<I extends ChainValues, O extends ChainValues> extends BaseChain {\n static lc_name(): string;\n transformFunc: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n _chainType(): \"transform\";\n get inputKeys(): (keyof I extends string ? keyof I : never)[];\n get outputKeys(): (keyof O extends string ? keyof O : never)[];\n constructor(fields: TransformChainFields<I, O>);\n _call(values: I, runManager?: CallbackManagerForChainRun): Promise<O>;\n}\n//# sourceMappingURL=transform.d.ts.map"],"mappings":";;;;;;;;AAQA;;;AACwBM,UADPD,oBACOC,CAAAA,UADwBJ,WACxBI,EAAAA,UAD+CJ,WAC/CI,CAAAA,SADoEH,WACpEG,CAAAA;EAAeL,SAAAA,EAAAA,CAAAA,MAAAA,EAAfK,CAAeL,EAAAA,SAAAA,CAAAA,EAAAA,SAAAA,EAAAA,GAAcM,CAAdN,GAAkBO,OAAlBP,CAA0BM,CAA1BN,CAAAA;EAAcM,cAAAA,EAAAA,CAAAA,MAC1BD,CAD0BC,SAAAA,MAAAA,GAAAA,MACDD,CADCC,GAAAA,KAAAA,CAAAA,EAAAA;EAAYA,eAAAA,EAAAA,CAAAA,MAErCA,CAFqCA,SAAAA,MAAAA,GAAAA,MAEZA,CAFYA,GAAAA,KAAAA,CAAAA,EAAAA;;;;;;;AADsC;AAWlFE,cAAAA,cAAcF,CAAAA,UAAWL,WAAX,EAAA,UAAkCA,WAAlC,CAAA,SAAuDE,SAAAA,CAAvD;EAAWF,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAuBA,aAAAA,EAAAA,CAAAA,MAAAA,EAEzCI,CAFyCJ,EAAAA,SAAAA,CAAAA,EAE1BD,SAF0BC,EAAAA,GAEZK,CAFYL,GAERM,OAFQN,CAEAK,CAFAL,CAAAA;EAEzCI,cAAAA,EAAAA,CAAAA,MACDA,CADCA,SAAAA,MAAAA,GAAAA,MACwBA,CADxBA,GAAAA,KAAAA,CAAAA,EAAAA;EAAeL,eAAAA,EAAAA,CAAAA,MAEfM,CAFeN,SAAAA,MAAAA,GAAAA,MAEUM,CAFVN,GAAAA,KAAAA,CAAAA,EAAAA;EAAcM,UAAAA,CAAAA,CAAAA,EAAAA,WAAAA;EAAYA,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAIzCD,CAJyCC,SAAAA,MAAAA,GAAAA,MAIhBD,CAJgBC,GAAAA,KAAAA,CAAAA,EAAAA;EAARC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAKhCD,CALgCC,SAAAA,MAAAA,GAAAA,MAKPD,CALOC,GAAAA,KAAAA,CAAAA,EAAAA;EAClCF,WAAAA,CAAAA,MAAAA,EAKHD,oBALGC,CAKkBA,CALlBA,EAKqBC,CALrBD,CAAAA;EAAyBA,KAAAA,CAAAA,MAAAA,EAMlCA,CANkCA,EAAAA,UAAAA,CAAAA,EAMlBN,0BANkBM,CAAAA,EAMWE,OANXF,CAMmBC,CANnBD,CAAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","names":["CallbackManagerForChainRun","Callbacks","ChainValues","ChainInputs","BaseChain","TransformChainFields","I","O","Promise","TransformChain"],"sources":["../../src/chains/transform.d.ts"],"sourcesContent":["import { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { ChainInputs, BaseChain } from \"./base.js\";\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * fields required for a transform chain. It includes the `transform`\n * function, `inputVariables`, and `outputVariables` properties.\n */\nexport interface TransformChainFields<I extends ChainValues, O extends ChainValues> extends ChainInputs {\n transform: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n}\n/**\n * Class that represents a transform chain. It extends the `BaseChain`\n * class and implements the `TransformChainFields` interface. It provides\n * a way to transform input values to output values using a specified\n * transform function.\n */\nexport declare class TransformChain<I extends ChainValues, O extends ChainValues> extends BaseChain {\n static lc_name(): string;\n transformFunc: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n _chainType(): \"transform\";\n get inputKeys(): (keyof I extends string ? keyof I : never)[];\n get outputKeys(): (keyof O extends string ? keyof O : never)[];\n constructor(fields: TransformChainFields<I, O>);\n _call(values: I, runManager?: CallbackManagerForChainRun): Promise<O>;\n}\n"],"mappings":";;;;;;;;AAQA;;;AAAuEE,UAAtDG,oBAAsDH,CAAAA,UAAvBA,WAAuBA,EAAAA,UAAAA,WAAAA,CAAAA,SAAqBC,WAArBD,CAAAA;EAAW,SAC1DI,EAAAA,CAAAA,MAAAA,EAAAA,CAAAA,EAAAA,SAAAA,CAAAA,EAAeL,SAAfK,EAAAA,GAA6BC,CAA7BD,GAAiCE,OAAjCF,CAAyCC,CAAzCD,CAAAA;EAAC,cAAcL,EAAAA,CAAAA,MACZK,CADYL,SAAAA,MAAAA,GAAAA,MACaK,CADbL,GAAAA,KAAAA,CAAAA,EAAAA;EAAS,eAAKM,EAAAA,CAAAA,MAEzBA,CAFyBA,SAAAA,MAAAA,GAAAA,MAEAA,CAFAA,GAAAA,KAAAA,CAAAA,EAAAA;;;;;;;;AADkD,cAWlFE,cAXkF,CAAA,UAWzDP,WAXyD,EAAA,UAWlCA,WAXkC,CAAA,SAWbE,SAAAA,CAXa;EAWlFK,OAAAA,OAAAA,CAAAA,CAAAA,EAAc,MAAA;EAAA,aAAA,EAAA,CAAA,MAAA,EAEPH,CAFO,EAAA,SAAA,CAAA,EAEQL,SAFR,EAAA,GAEsBM,CAFtB,GAE0BC,OAF1B,CAEkCD,CAFlC,CAAA;EAAA,cAAWL,EAAAA,CAAAA,MAGnBI,CAHmBJ,SAAAA,MAAAA,GAAAA,MAGMI,CAHNJ,GAAAA,KAAAA,CAAAA,EAAAA;EAAW,eAAYA,EAAAA,CAAAA,MAIzCK,CAJyCL,SAAAA,MAAAA,GAAAA,MAIhBK,CAJgBL,GAAAA,KAAAA,CAAAA,EAAAA;EAAW,UAEpDI,CAAAA,CAAAA,EAAAA,WAAAA;EAAC,IAAcL,SAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAIfK,CAJeL,SAAAA,MAAAA,GAAAA,MAIUK,CAJVL,GAAAA,KAAAA,CAAAA,EAAAA;EAAS,IAAKM,UAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAK5BA,CAL4BA,SAAAA,MAAAA,GAAAA,MAKHA,CALGA,GAAAA,KAAAA,CAAAA,EAAAA;EAAC,WAAWA,CAAAA,MAAAA,EAM7CF,oBAN6CE,CAMxBD,CANwBC,EAMrBA,CANqBA,CAAAA;EAAC,KAATC,CAAAA,MAAAA,EAO3CF,CAP2CE,EAAAA,UAAAA,CAAAA,EAO3BR,0BAP2BQ,CAAAA,EAOEA,OAPFA,CAOUD,CAPVC,CAAAA"}
1
+ {"version":3,"file":"transform.d.ts","names":["CallbackManagerForChainRun","Callbacks","ChainValues","ChainInputs","BaseChain","TransformChainFields","I","O","Promise","TransformChain"],"sources":["../../src/chains/transform.d.ts"],"sourcesContent":["import { CallbackManagerForChainRun, Callbacks } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { ChainInputs, BaseChain } from \"./base.js\";\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * fields required for a transform chain. It includes the `transform`\n * function, `inputVariables`, and `outputVariables` properties.\n */\nexport interface TransformChainFields<I extends ChainValues, O extends ChainValues> extends ChainInputs {\n transform: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n}\n/**\n * Class that represents a transform chain. It extends the `BaseChain`\n * class and implements the `TransformChainFields` interface. It provides\n * a way to transform input values to output values using a specified\n * transform function.\n */\nexport declare class TransformChain<I extends ChainValues, O extends ChainValues> extends BaseChain {\n static lc_name(): string;\n transformFunc: (values: I, callbacks?: Callbacks) => O | Promise<O>;\n inputVariables: (keyof I extends string ? keyof I : never)[];\n outputVariables: (keyof O extends string ? keyof O : never)[];\n _chainType(): \"transform\";\n get inputKeys(): (keyof I extends string ? keyof I : never)[];\n get outputKeys(): (keyof O extends string ? keyof O : never)[];\n constructor(fields: TransformChainFields<I, O>);\n _call(values: I, runManager?: CallbackManagerForChainRun): Promise<O>;\n}\n//# sourceMappingURL=transform.d.ts.map"],"mappings":";;;;;;;;AAQA;;;AACwBM,UADPD,oBACOC,CAAAA,UADwBJ,WACxBI,EAAAA,UAD+CJ,WAC/CI,CAAAA,SADoEH,WACpEG,CAAAA;EAAeL,SAAAA,EAAAA,CAAAA,MAAAA,EAAfK,CAAeL,EAAAA,SAAAA,CAAAA,EAAAA,SAAAA,EAAAA,GAAcM,CAAdN,GAAkBO,OAAlBP,CAA0BM,CAA1BN,CAAAA;EAAcM,cAAAA,EAAAA,CAAAA,MAC1BD,CAD0BC,SAAAA,MAAAA,GAAAA,MACDD,CADCC,GAAAA,KAAAA,CAAAA,EAAAA;EAAYA,eAAAA,EAAAA,CAAAA,MAErCA,CAFqCA,SAAAA,MAAAA,GAAAA,MAEZA,CAFYA,GAAAA,KAAAA,CAAAA,EAAAA;;;;;;;AADsC;AAWlFE,cAAAA,cAAcF,CAAAA,UAAWL,WAAX,EAAA,UAAkCA,WAAlC,CAAA,SAAuDE,SAAAA,CAAvD;EAAWF,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAuBA,aAAAA,EAAAA,CAAAA,MAAAA,EAEzCI,CAFyCJ,EAAAA,SAAAA,CAAAA,EAE1BD,SAF0BC,EAAAA,GAEZK,CAFYL,GAERM,OAFQN,CAEAK,CAFAL,CAAAA;EAEzCI,cAAAA,EAAAA,CAAAA,MACDA,CADCA,SAAAA,MAAAA,GAAAA,MACwBA,CADxBA,GAAAA,KAAAA,CAAAA,EAAAA;EAAeL,eAAAA,EAAAA,CAAAA,MAEfM,CAFeN,SAAAA,MAAAA,GAAAA,MAEUM,CAFVN,GAAAA,KAAAA,CAAAA,EAAAA;EAAcM,UAAAA,CAAAA,CAAAA,EAAAA,WAAAA;EAAYA,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAIzCD,CAJyCC,SAAAA,MAAAA,GAAAA,MAIhBD,CAJgBC,GAAAA,KAAAA,CAAAA,EAAAA;EAARC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,CAAAA,MAKhCD,CALgCC,SAAAA,MAAAA,GAAAA,MAKPD,CALOC,GAAAA,KAAAA,CAAAA,EAAAA;EAClCF,WAAAA,CAAAA,MAAAA,EAKHD,oBALGC,CAKkBA,CALlBA,EAKqBC,CALrBD,CAAAA;EAAyBA,KAAAA,CAAAA,MAAAA,EAMlCA,CANkCA,EAAAA,UAAAA,CAAAA,EAMlBN,0BANkBM,CAAAA,EAMWE,OANXF,CAMmBC,CANnBD,CAAAA"}
@@ -6,7 +6,6 @@ import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager";
6
6
  import { VectorStoreInterface } from "@langchain/core/vectorstores";
7
7
 
8
8
  //#region src/chains/vector_db_qa.d.ts
9
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
9
  type LoadValues = Record<string, any>;
11
10
  /**
12
11
  * Interface that extends the `ChainInputs` interface and defines the
@@ -1 +1 @@
1
- {"version":3,"file":"vector_db_qa.d.cts","names":["BaseLanguageModelInterface","VectorStoreInterface","CallbackManagerForChainRun","ChainValues","BaseChain","ChainInputs","SerializedVectorDBQAChain","LoadValues","Record","VectorDBQAChainInput","Omit","VectorDBQAChain","Promise","Partial"],"sources":["../../src/chains/vector_db_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedVectorDBQAChain } from \"./serde.js\";\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type LoadValues = Record<string, any>;\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * input fields required for a VectorDBQAChain. It includes properties\n * such as `vectorstore`, `combineDocumentsChain`,\n * `returnSourceDocuments`, `k`, and `inputKey`.\n */\nexport interface VectorDBQAChainInput extends Omit<ChainInputs, \"memory\"> {\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments?: boolean;\n k?: number;\n inputKey?: string;\n}\n/**\n * Class that represents a VectorDBQAChain. It extends the `BaseChain`\n * class and implements the `VectorDBQAChainInput` interface. It performs\n * a similarity search using a vector store and combines the search\n * results using a specified combine documents chain.\n */\nexport declare class VectorDBQAChain extends BaseChain implements VectorDBQAChainInput {\n static lc_name(): string;\n k: number;\n inputKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments: boolean;\n constructor(fields: VectorDBQAChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"vector_db_qa\";\n static deserialize(data: SerializedVectorDBQAChain, values: LoadValues): Promise<VectorDBQAChain>;\n serialize(): SerializedVectorDBQAChain;\n /**\n * Static method that creates a VectorDBQAChain instance from a\n * BaseLanguageModel and a vector store. It also accepts optional options\n * to customize the chain.\n * @param llm The BaseLanguageModel instance.\n * @param vectorstore The vector store used for similarity search.\n * @param options Optional options to customize the chain.\n * @returns A new instance of VectorDBQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, vectorstore: VectorStoreInterface, options?: Partial<Omit<VectorDBQAChainInput, \"combineDocumentsChain\" | \"vectorstore\">>): VectorDBQAChain;\n}\n"],"mappings":";;;;;;;;;KAOYO,UAAAA,GAAaC;AAAzB;AAOA;;;;;AAA8CE,UAA7BD,oBAAAA,SAA6BC,IAAAA,CAAKL,WAALK,EAAAA,QAAAA,CAAAA,CAAAA;EAAI,WAAA,EACjCT,oBADiC;EAa7BU,qBAAe,EAXTP,SAWS;EAAA,qBAAA,CAAA,EAAA,OAAA;EAAA,CAAA,CAAA,EAMnBH,MAAAA;EAAoB,QACVG,CAAAA,EAAAA,MAAAA;;;;;;;;AAM0DO,cAbhEA,eAAAA,SAAwBP,SAAAA,YAAqBK,oBAamBE,CAAAA;EAAe,OAAvBC,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAO,CAAA,EACnEN,MAAAA;EAAyB,QAUlBN,EAAAA,MAAAA;EAA0B,IAAeC,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAAoB,IAAyBQ,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAAoB,WAAzBC,EAlBxFT,oBAkBwFS;EAAI,qBAAZG,EAjBtET,SAiBsES;EAAO,qBAAwEF,EAAAA,OAAAA;EAAe,WAxBlJP,CAAAA,MAAAA,EASrBK,oBATqBL;EAAS;EAAgC,KAAA,CAAA,MAAA,EAWpED,WAXoE,EAAA,UAAA,CAAA,EAW1CD,0BAX0C,CAAA,EAWbU,OAXa,CAWLT,WAXK,CAAA;;2BAazDG,mCAAmCC,aAAaK,QAAQD;eACpEL;;;;;;;;;;sBAUON,yCAAyCC,gCAAgCY,QAAQH,KAAKD,kEAAkEE"}
1
+ {"version":3,"file":"vector_db_qa.d.cts","names":["BaseLanguageModelInterface","VectorStoreInterface","CallbackManagerForChainRun","ChainValues","BaseChain","ChainInputs","SerializedVectorDBQAChain","LoadValues","Record","VectorDBQAChainInput","Omit","VectorDBQAChain","Promise","Partial"],"sources":["../../src/chains/vector_db_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedVectorDBQAChain } from \"./serde.js\";\nexport type LoadValues = Record<string, any>;\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * input fields required for a VectorDBQAChain. It includes properties\n * such as `vectorstore`, `combineDocumentsChain`,\n * `returnSourceDocuments`, `k`, and `inputKey`.\n */\nexport interface VectorDBQAChainInput extends Omit<ChainInputs, \"memory\"> {\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments?: boolean;\n k?: number;\n inputKey?: string;\n}\n/**\n * Class that represents a VectorDBQAChain. It extends the `BaseChain`\n * class and implements the `VectorDBQAChainInput` interface. It performs\n * a similarity search using a vector store and combines the search\n * results using a specified combine documents chain.\n */\nexport declare class VectorDBQAChain extends BaseChain implements VectorDBQAChainInput {\n static lc_name(): string;\n k: number;\n inputKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments: boolean;\n constructor(fields: VectorDBQAChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"vector_db_qa\";\n static deserialize(data: SerializedVectorDBQAChain, values: LoadValues): Promise<VectorDBQAChain>;\n serialize(): SerializedVectorDBQAChain;\n /**\n * Static method that creates a VectorDBQAChain instance from a\n * BaseLanguageModel and a vector store. It also accepts optional options\n * to customize the chain.\n * @param llm The BaseLanguageModel instance.\n * @param vectorstore The vector store used for similarity search.\n * @param options Optional options to customize the chain.\n * @returns A new instance of VectorDBQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, vectorstore: VectorStoreInterface, options?: Partial<Omit<VectorDBQAChainInput, \"combineDocumentsChain\" | \"vectorstore\">>): VectorDBQAChain;\n}\n//# sourceMappingURL=vector_db_qa.d.ts.map"],"mappings":";;;;;;;;KAMYO,UAAAA,GAAaC;;AAAzB;AAOA;;;;AAA8CE,UAA7BD,oBAAAA,SAA6BC,IAAAA,CAAKL,WAALK,EAAAA,QAAAA,CAAAA,CAAAA;EAAI,WAAA,EACjCT,oBADiC;EAa7BU,qBAAe,EAXTP,SAWS;EAMnBH,qBAAAA,CAAAA,EAAAA,OAAAA;EACUG,CAAAA,CAAAA,EAAAA,MAAAA;EAEHK,QAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;AAIqDG,cAbxDD,eAAAA,SAAwBP,SAAAA,YAAqBK,oBAaWG,CAAAA;EAC5DN,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAUON,CAAAA,EAAAA,MAAAA;EAAyCC,QAAAA,EAAAA,MAAAA;EAA6CQ,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAALC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAARG,WAAAA,EAlBhFZ,oBAkBgFY;EAA+EF,qBAAAA,EAjBrJP,SAiBqJO;EAxBnIP,qBAAAA,EAAAA,OAAAA;EAAqBK,WAAAA,CAAAA,MAAAA,EAS1CA,oBAT0CA;EAAoB;gBAWpEN,0BAA0BD,6BAA6BU,QAAQT;;2BAEpDG,mCAAmCC,aAAaK,QAAQD;eACpEL;;;;;;;;;;sBAUON,yCAAyCC,gCAAgCY,QAAQH,KAAKD,kEAAkEE"}
@@ -6,7 +6,6 @@ import { ChainValues } from "@langchain/core/utils/types";
6
6
  import { VectorStoreInterface } from "@langchain/core/vectorstores";
7
7
 
8
8
  //#region src/chains/vector_db_qa.d.ts
9
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
9
  type LoadValues = Record<string, any>;
11
10
  /**
12
11
  * Interface that extends the `ChainInputs` interface and defines the
@@ -1 +1 @@
1
- {"version":3,"file":"vector_db_qa.d.ts","names":["BaseLanguageModelInterface","VectorStoreInterface","CallbackManagerForChainRun","ChainValues","BaseChain","ChainInputs","SerializedVectorDBQAChain","LoadValues","Record","VectorDBQAChainInput","Omit","VectorDBQAChain","Promise","Partial"],"sources":["../../src/chains/vector_db_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedVectorDBQAChain } from \"./serde.js\";\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type LoadValues = Record<string, any>;\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * input fields required for a VectorDBQAChain. It includes properties\n * such as `vectorstore`, `combineDocumentsChain`,\n * `returnSourceDocuments`, `k`, and `inputKey`.\n */\nexport interface VectorDBQAChainInput extends Omit<ChainInputs, \"memory\"> {\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments?: boolean;\n k?: number;\n inputKey?: string;\n}\n/**\n * Class that represents a VectorDBQAChain. It extends the `BaseChain`\n * class and implements the `VectorDBQAChainInput` interface. It performs\n * a similarity search using a vector store and combines the search\n * results using a specified combine documents chain.\n */\nexport declare class VectorDBQAChain extends BaseChain implements VectorDBQAChainInput {\n static lc_name(): string;\n k: number;\n inputKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments: boolean;\n constructor(fields: VectorDBQAChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"vector_db_qa\";\n static deserialize(data: SerializedVectorDBQAChain, values: LoadValues): Promise<VectorDBQAChain>;\n serialize(): SerializedVectorDBQAChain;\n /**\n * Static method that creates a VectorDBQAChain instance from a\n * BaseLanguageModel and a vector store. It also accepts optional options\n * to customize the chain.\n * @param llm The BaseLanguageModel instance.\n * @param vectorstore The vector store used for similarity search.\n * @param options Optional options to customize the chain.\n * @returns A new instance of VectorDBQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, vectorstore: VectorStoreInterface, options?: Partial<Omit<VectorDBQAChainInput, \"combineDocumentsChain\" | \"vectorstore\">>): VectorDBQAChain;\n}\n"],"mappings":";;;;;;;;;KAOYO,UAAAA,GAAaC;AAAzB;AAOA;;;;;AAA8CE,UAA7BD,oBAAAA,SAA6BC,IAAAA,CAAKL,WAALK,EAAAA,QAAAA,CAAAA,CAAAA;EAAI,WAAA,EACjCT,oBADiC;EAa7BU,qBAAe,EAXTP,SAWS;EAAA,qBAAA,CAAA,EAAA,OAAA;EAAA,CAAA,CAAA,EAMnBH,MAAAA;EAAoB,QACVG,CAAAA,EAAAA,MAAAA;;;;;;;;AAM0DO,cAbhEA,eAAAA,SAAwBP,SAAAA,YAAqBK,oBAamBE,CAAAA;EAAe,OAAvBC,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAO,CAAA,EACnEN,MAAAA;EAAyB,QAUlBN,EAAAA,MAAAA;EAA0B,IAAeC,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAAoB,IAAyBQ,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAAoB,WAAzBC,EAlBxFT,oBAkBwFS;EAAI,qBAAZG,EAjBtET,SAiBsES;EAAO,qBAAwEF,EAAAA,OAAAA;EAAe,WAxBlJP,CAAAA,MAAAA,EASrBK,oBATqBL;EAAS;EAAgC,KAAA,CAAA,MAAA,EAWpED,WAXoE,EAAA,UAAA,CAAA,EAW1CD,0BAX0C,CAAA,EAWbU,OAXa,CAWLT,WAXK,CAAA;;2BAazDG,mCAAmCC,aAAaK,QAAQD;eACpEL;;;;;;;;;;sBAUON,yCAAyCC,gCAAgCY,QAAQH,KAAKD,kEAAkEE"}
1
+ {"version":3,"file":"vector_db_qa.d.ts","names":["BaseLanguageModelInterface","VectorStoreInterface","CallbackManagerForChainRun","ChainValues","BaseChain","ChainInputs","SerializedVectorDBQAChain","LoadValues","Record","VectorDBQAChainInput","Omit","VectorDBQAChain","Promise","Partial"],"sources":["../../src/chains/vector_db_qa.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { CallbackManagerForChainRun } from \"@langchain/core/callbacks/manager\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { BaseChain, ChainInputs } from \"./base.js\";\nimport { SerializedVectorDBQAChain } from \"./serde.js\";\nexport type LoadValues = Record<string, any>;\n/**\n * Interface that extends the `ChainInputs` interface and defines the\n * input fields required for a VectorDBQAChain. It includes properties\n * such as `vectorstore`, `combineDocumentsChain`,\n * `returnSourceDocuments`, `k`, and `inputKey`.\n */\nexport interface VectorDBQAChainInput extends Omit<ChainInputs, \"memory\"> {\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments?: boolean;\n k?: number;\n inputKey?: string;\n}\n/**\n * Class that represents a VectorDBQAChain. It extends the `BaseChain`\n * class and implements the `VectorDBQAChainInput` interface. It performs\n * a similarity search using a vector store and combines the search\n * results using a specified combine documents chain.\n */\nexport declare class VectorDBQAChain extends BaseChain implements VectorDBQAChainInput {\n static lc_name(): string;\n k: number;\n inputKey: string;\n get inputKeys(): string[];\n get outputKeys(): string[];\n vectorstore: VectorStoreInterface;\n combineDocumentsChain: BaseChain;\n returnSourceDocuments: boolean;\n constructor(fields: VectorDBQAChainInput);\n /** @ignore */\n _call(values: ChainValues, runManager?: CallbackManagerForChainRun): Promise<ChainValues>;\n _chainType(): \"vector_db_qa\";\n static deserialize(data: SerializedVectorDBQAChain, values: LoadValues): Promise<VectorDBQAChain>;\n serialize(): SerializedVectorDBQAChain;\n /**\n * Static method that creates a VectorDBQAChain instance from a\n * BaseLanguageModel and a vector store. It also accepts optional options\n * to customize the chain.\n * @param llm The BaseLanguageModel instance.\n * @param vectorstore The vector store used for similarity search.\n * @param options Optional options to customize the chain.\n * @returns A new instance of VectorDBQAChain.\n */\n static fromLLM(llm: BaseLanguageModelInterface, vectorstore: VectorStoreInterface, options?: Partial<Omit<VectorDBQAChainInput, \"combineDocumentsChain\" | \"vectorstore\">>): VectorDBQAChain;\n}\n//# sourceMappingURL=vector_db_qa.d.ts.map"],"mappings":";;;;;;;;KAMYO,UAAAA,GAAaC;;AAAzB;AAOA;;;;AAA8CE,UAA7BD,oBAAAA,SAA6BC,IAAAA,CAAKL,WAALK,EAAAA,QAAAA,CAAAA,CAAAA;EAAI,WAAA,EACjCT,oBADiC;EAa7BU,qBAAe,EAXTP,SAWS;EAMnBH,qBAAAA,CAAAA,EAAAA,OAAAA;EACUG,CAAAA,CAAAA,EAAAA,MAAAA;EAEHK,QAAAA,CAAAA,EAAAA,MAAAA;;;;;;;;AAIqDG,cAbxDD,eAAAA,SAAwBP,SAAAA,YAAqBK,oBAaWG,CAAAA;EAC5DN,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAUON,CAAAA,EAAAA,MAAAA;EAAyCC,QAAAA,EAAAA,MAAAA;EAA6CQ,IAAAA,SAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAALC,IAAAA,UAAAA,CAAAA,CAAAA,EAAAA,MAAAA,EAAAA;EAARG,WAAAA,EAlBhFZ,oBAkBgFY;EAA+EF,qBAAAA,EAjBrJP,SAiBqJO;EAxBnIP,qBAAAA,EAAAA,OAAAA;EAAqBK,WAAAA,CAAAA,MAAAA,EAS1CA,oBAT0CA;EAAoB;gBAWpEN,0BAA0BD,6BAA6BU,QAAQT;;2BAEpDG,mCAAmCC,aAAaK,QAAQD;eACpEL;;;;;;;;;;sBAUON,yCAAyCC,gCAAgCY,QAAQH,KAAKD,kEAAkEE"}