@langchain/classic 1.0.5 → 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 (1277) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +0 -4
  2. package/dist/_virtual/rolldown_runtime.js +1 -10
  3. package/dist/agents/agent.d.cts +3 -17
  4. package/dist/agents/agent.d.cts.map +1 -0
  5. package/dist/agents/agent.d.ts +3 -17
  6. package/dist/agents/agent.d.ts.map +1 -0
  7. package/dist/agents/chat/index.d.cts.map +1 -0
  8. package/dist/agents/chat/index.d.ts.map +1 -0
  9. package/dist/agents/chat/outputParser.d.cts.map +1 -0
  10. package/dist/agents/chat/outputParser.d.ts +2 -2
  11. package/dist/agents/chat/outputParser.d.ts.map +1 -0
  12. package/dist/agents/chat_convo/index.d.cts.map +1 -0
  13. package/dist/agents/chat_convo/index.d.ts.map +1 -0
  14. package/dist/agents/chat_convo/outputParser.d.cts.map +1 -0
  15. package/dist/agents/chat_convo/outputParser.d.ts.map +1 -0
  16. package/dist/agents/executor.d.cts +1 -5
  17. package/dist/agents/executor.d.cts.map +1 -0
  18. package/dist/agents/executor.d.ts +1 -5
  19. package/dist/agents/executor.d.ts.map +1 -0
  20. package/dist/agents/format_scratchpad/log.d.cts.map +1 -0
  21. package/dist/agents/format_scratchpad/log.d.ts.map +1 -0
  22. package/dist/agents/format_scratchpad/log_to_message.d.cts.map +1 -0
  23. package/dist/agents/format_scratchpad/log_to_message.d.ts.map +1 -0
  24. package/dist/agents/format_scratchpad/openai_functions.d.cts.map +1 -0
  25. package/dist/agents/format_scratchpad/openai_functions.d.ts.map +1 -0
  26. package/dist/agents/format_scratchpad/tool_calling.d.cts.map +1 -0
  27. package/dist/agents/format_scratchpad/tool_calling.d.ts.map +1 -0
  28. package/dist/agents/format_scratchpad/xml.d.cts.map +1 -0
  29. package/dist/agents/format_scratchpad/xml.d.ts.map +1 -0
  30. package/dist/agents/initialize.d.cts +1 -10
  31. package/dist/agents/initialize.d.cts.map +1 -0
  32. package/dist/agents/initialize.d.ts +1 -10
  33. package/dist/agents/initialize.d.ts.map +1 -0
  34. package/dist/agents/load.d.cts +2 -10
  35. package/dist/agents/load.d.cts.map +1 -0
  36. package/dist/agents/load.d.ts +2 -10
  37. package/dist/agents/load.d.ts.map +1 -0
  38. package/dist/agents/mrkl/index.d.cts.map +1 -0
  39. package/dist/agents/mrkl/index.d.ts.map +1 -0
  40. package/dist/agents/mrkl/outputParser.d.cts +1 -1
  41. package/dist/agents/mrkl/outputParser.d.cts.map +1 -0
  42. package/dist/agents/mrkl/outputParser.d.ts +1 -1
  43. package/dist/agents/mrkl/outputParser.d.ts.map +1 -0
  44. package/dist/agents/openai_functions/index.d.cts.map +1 -0
  45. package/dist/agents/openai_functions/index.d.ts.map +1 -0
  46. package/dist/agents/openai_functions/output_parser.d.cts.map +1 -0
  47. package/dist/agents/openai_functions/output_parser.d.ts.map +1 -0
  48. package/dist/agents/openai_tools/index.d.cts +3 -5
  49. package/dist/agents/openai_tools/index.d.cts.map +1 -0
  50. package/dist/agents/openai_tools/index.d.ts +3 -5
  51. package/dist/agents/openai_tools/index.d.ts.map +1 -0
  52. package/dist/agents/openai_tools/output_parser.d.cts.map +1 -0
  53. package/dist/agents/openai_tools/output_parser.d.ts.map +1 -0
  54. package/dist/agents/react/index.d.cts +2 -2
  55. package/dist/agents/react/index.d.cts.map +1 -0
  56. package/dist/agents/react/index.d.ts +2 -2
  57. package/dist/agents/react/index.d.ts.map +1 -0
  58. package/dist/agents/react/output_parser.d.cts.map +1 -0
  59. package/dist/agents/react/output_parser.d.ts.map +1 -0
  60. package/dist/agents/structured_chat/index.d.cts +2 -2
  61. package/dist/agents/structured_chat/index.d.cts.map +1 -0
  62. package/dist/agents/structured_chat/index.d.ts +2 -2
  63. package/dist/agents/structured_chat/index.d.ts.map +1 -0
  64. package/dist/agents/structured_chat/outputParser.d.cts.map +1 -0
  65. package/dist/agents/structured_chat/outputParser.d.ts.map +1 -0
  66. package/dist/agents/tool_calling/index.d.cts +2 -2
  67. package/dist/agents/tool_calling/index.d.cts.map +1 -0
  68. package/dist/agents/tool_calling/index.d.ts +2 -2
  69. package/dist/agents/tool_calling/index.d.ts.map +1 -0
  70. package/dist/agents/tool_calling/output_parser.d.cts.map +1 -0
  71. package/dist/agents/tool_calling/output_parser.d.ts.map +1 -0
  72. package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.cts.map +1 -0
  73. package/dist/agents/toolkits/conversational_retrieval/openai_functions.d.ts.map +1 -0
  74. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.cts.map +1 -0
  75. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +2 -2
  76. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -0
  77. package/dist/agents/toolkits/conversational_retrieval/tool.d.cts.map +1 -0
  78. package/dist/agents/toolkits/conversational_retrieval/tool.d.ts.map +1 -0
  79. package/dist/agents/toolkits/json/json.d.cts.map +1 -0
  80. package/dist/agents/toolkits/json/json.d.ts.map +1 -0
  81. package/dist/agents/toolkits/openapi/openapi.d.cts.map +1 -0
  82. package/dist/agents/toolkits/openapi/openapi.d.ts.map +1 -0
  83. package/dist/agents/toolkits/sql/prompt.d.cts.map +1 -0
  84. package/dist/agents/toolkits/sql/prompt.d.ts.map +1 -0
  85. package/dist/agents/toolkits/sql/sql.d.cts.map +1 -0
  86. package/dist/agents/toolkits/sql/sql.d.ts.map +1 -0
  87. package/dist/agents/toolkits/vectorstore/vectorstore.d.cts.map +1 -0
  88. package/dist/agents/toolkits/vectorstore/vectorstore.d.ts.map +1 -0
  89. package/dist/agents/types.d.cts.map +1 -0
  90. package/dist/agents/types.d.ts.map +1 -0
  91. package/dist/agents/xml/index.d.cts.map +1 -0
  92. package/dist/agents/xml/index.d.ts.map +1 -0
  93. package/dist/agents/xml/output_parser.d.cts.map +1 -0
  94. package/dist/agents/xml/output_parser.d.ts.map +1 -0
  95. package/dist/cache/file_system.d.cts.map +1 -0
  96. package/dist/cache/file_system.d.ts.map +1 -0
  97. package/dist/callbacks/handlers/console.d.cts.map +1 -0
  98. package/dist/callbacks/handlers/console.d.ts.map +1 -0
  99. package/dist/callbacks/handlers/run_collector.d.cts.map +1 -0
  100. package/dist/callbacks/handlers/run_collector.d.ts.map +1 -0
  101. package/dist/callbacks/handlers/tracer.d.cts.map +1 -0
  102. package/dist/callbacks/handlers/tracer.d.ts.map +1 -0
  103. package/dist/callbacks/handlers/tracer_langchain.d.cts.map +1 -0
  104. package/dist/callbacks/handlers/tracer_langchain.d.ts.map +1 -0
  105. package/dist/callbacks/promises.d.cts.map +1 -0
  106. package/dist/callbacks/promises.d.ts.map +1 -0
  107. package/dist/chains/analyze_documents_chain.d.cts +0 -1
  108. package/dist/chains/analyze_documents_chain.d.cts.map +1 -0
  109. package/dist/chains/analyze_documents_chain.d.ts +0 -1
  110. package/dist/chains/analyze_documents_chain.d.ts.map +1 -0
  111. package/dist/chains/api/api_chain.d.cts.map +1 -0
  112. package/dist/chains/api/api_chain.d.ts.map +1 -0
  113. package/dist/chains/base.d.cts +1 -4
  114. package/dist/chains/base.d.cts.map +1 -0
  115. package/dist/chains/base.d.ts +1 -4
  116. package/dist/chains/base.d.ts.map +1 -0
  117. package/dist/chains/chat_vector_db_chain.d.cts +0 -1
  118. package/dist/chains/chat_vector_db_chain.d.cts.map +1 -0
  119. package/dist/chains/chat_vector_db_chain.d.ts +0 -1
  120. package/dist/chains/chat_vector_db_chain.d.ts.map +1 -0
  121. package/dist/chains/combine_docs_chain.d.cts +2 -2
  122. package/dist/chains/combine_docs_chain.d.cts.map +1 -0
  123. package/dist/chains/combine_docs_chain.d.ts +2 -2
  124. package/dist/chains/combine_docs_chain.d.ts.map +1 -0
  125. package/dist/chains/combine_documents/reduce.d.cts +1 -3
  126. package/dist/chains/combine_documents/reduce.d.cts.map +1 -0
  127. package/dist/chains/combine_documents/reduce.d.ts +1 -3
  128. package/dist/chains/combine_documents/reduce.d.ts.map +1 -0
  129. package/dist/chains/combine_documents/stuff.d.cts.map +1 -0
  130. package/dist/chains/combine_documents/stuff.d.ts.map +1 -0
  131. package/dist/chains/constitutional_ai/constitutional_chain.d.cts.map +1 -0
  132. package/dist/chains/constitutional_ai/constitutional_chain.d.ts.map +1 -0
  133. package/dist/chains/constitutional_ai/constitutional_principle.d.cts.map +1 -0
  134. package/dist/chains/constitutional_ai/constitutional_principle.d.ts.map +1 -0
  135. package/dist/chains/conversation.d.cts.map +1 -0
  136. package/dist/chains/conversation.d.ts.map +1 -0
  137. package/dist/chains/conversational_retrieval_chain.d.cts +1 -2
  138. package/dist/chains/conversational_retrieval_chain.d.cts.map +1 -0
  139. package/dist/chains/conversational_retrieval_chain.d.ts +1 -2
  140. package/dist/chains/conversational_retrieval_chain.d.ts.map +1 -0
  141. package/dist/chains/graph_qa/cypher.d.cts +0 -3
  142. package/dist/chains/graph_qa/cypher.d.cts.map +1 -0
  143. package/dist/chains/graph_qa/cypher.d.ts +0 -3
  144. package/dist/chains/graph_qa/cypher.d.ts.map +1 -0
  145. package/dist/chains/history_aware_retriever.d.cts.map +1 -0
  146. package/dist/chains/history_aware_retriever.d.ts.map +1 -0
  147. package/dist/chains/llm_chain.d.cts +0 -1
  148. package/dist/chains/llm_chain.d.cts.map +1 -0
  149. package/dist/chains/llm_chain.d.ts +0 -1
  150. package/dist/chains/llm_chain.d.ts.map +1 -0
  151. package/dist/chains/load.d.cts +2 -2
  152. package/dist/chains/load.d.cts.map +1 -0
  153. package/dist/chains/load.d.ts +2 -2
  154. package/dist/chains/load.d.ts.map +1 -0
  155. package/dist/chains/openai_functions/base.d.cts +4 -16
  156. package/dist/chains/openai_functions/base.d.cts.map +1 -0
  157. package/dist/chains/openai_functions/base.d.ts +4 -16
  158. package/dist/chains/openai_functions/base.d.ts.map +1 -0
  159. package/dist/chains/openai_functions/extraction.d.cts.map +1 -0
  160. package/dist/chains/openai_functions/extraction.d.ts.map +1 -0
  161. package/dist/chains/openai_functions/openapi.d.cts +1 -4
  162. package/dist/chains/openai_functions/openapi.d.cts.map +1 -0
  163. package/dist/chains/openai_functions/openapi.d.ts +1 -4
  164. package/dist/chains/openai_functions/openapi.d.ts.map +1 -0
  165. package/dist/chains/openai_functions/tagging.d.cts.map +1 -0
  166. package/dist/chains/openai_functions/tagging.d.ts.map +1 -0
  167. package/dist/chains/openai_moderation.d.cts.map +1 -0
  168. package/dist/chains/openai_moderation.d.ts.map +1 -0
  169. package/dist/chains/query_constructor/index.d.cts +1 -3
  170. package/dist/chains/query_constructor/index.d.cts.map +1 -0
  171. package/dist/chains/query_constructor/index.d.ts +1 -3
  172. package/dist/chains/query_constructor/index.d.ts.map +1 -0
  173. package/dist/chains/query_constructor/parser.d.cts.map +1 -0
  174. package/dist/chains/query_constructor/parser.d.ts.map +1 -0
  175. package/dist/chains/query_constructor/prompt.d.cts.map +1 -0
  176. package/dist/chains/query_constructor/prompt.d.ts.map +1 -0
  177. package/dist/chains/question_answering/load.d.cts +2 -2
  178. package/dist/chains/question_answering/load.d.cts.map +1 -0
  179. package/dist/chains/question_answering/load.d.ts +2 -2
  180. package/dist/chains/question_answering/load.d.ts.map +1 -0
  181. package/dist/chains/retrieval.d.cts +1 -4
  182. package/dist/chains/retrieval.d.cts.map +1 -0
  183. package/dist/chains/retrieval.d.ts +1 -4
  184. package/dist/chains/retrieval.d.ts.map +1 -0
  185. package/dist/chains/retrieval_qa.d.cts +0 -1
  186. package/dist/chains/retrieval_qa.d.cts.map +1 -0
  187. package/dist/chains/retrieval_qa.d.ts +0 -1
  188. package/dist/chains/retrieval_qa.d.ts.map +1 -0
  189. package/dist/chains/router/llm_router.d.cts.map +1 -0
  190. package/dist/chains/router/llm_router.d.ts.map +1 -0
  191. package/dist/chains/router/multi_prompt.d.cts.map +1 -0
  192. package/dist/chains/router/multi_prompt.d.ts.map +1 -0
  193. package/dist/chains/router/multi_retrieval_qa.d.cts.map +1 -0
  194. package/dist/chains/router/multi_retrieval_qa.d.ts.map +1 -0
  195. package/dist/chains/router/multi_route.d.cts.map +1 -0
  196. package/dist/chains/router/multi_route.d.ts.map +1 -0
  197. package/dist/chains/sequential_chain.d.cts.map +1 -0
  198. package/dist/chains/sequential_chain.d.ts.map +1 -0
  199. package/dist/chains/serde.d.cts.map +1 -0
  200. package/dist/chains/serde.d.ts.map +1 -0
  201. package/dist/chains/sql_db/sql_db_chain.d.cts +0 -5
  202. package/dist/chains/sql_db/sql_db_chain.d.cts.map +1 -0
  203. package/dist/chains/sql_db/sql_db_chain.d.ts +0 -5
  204. package/dist/chains/sql_db/sql_db_chain.d.ts.map +1 -0
  205. package/dist/chains/sql_db/sql_db_prompt.d.cts.map +1 -0
  206. package/dist/chains/sql_db/sql_db_prompt.d.ts.map +1 -0
  207. package/dist/chains/summarization/load.d.cts.map +1 -0
  208. package/dist/chains/summarization/load.d.ts +2 -2
  209. package/dist/chains/summarization/load.d.ts.map +1 -0
  210. package/dist/chains/transform.d.cts.map +1 -0
  211. package/dist/chains/transform.d.ts.map +1 -0
  212. package/dist/chains/vector_db_qa.d.cts +0 -1
  213. package/dist/chains/vector_db_qa.d.cts.map +1 -0
  214. package/dist/chains/vector_db_qa.d.ts +0 -1
  215. package/dist/chains/vector_db_qa.d.ts.map +1 -0
  216. package/dist/chat_models/universal.d.cts +4 -21
  217. package/dist/chat_models/universal.d.cts.map +1 -0
  218. package/dist/chat_models/universal.d.ts +4 -21
  219. package/dist/chat_models/universal.d.ts.map +1 -0
  220. package/dist/document_loaders/fs/buffer.d.cts.map +1 -0
  221. package/dist/document_loaders/fs/buffer.d.ts.map +1 -0
  222. package/dist/document_loaders/fs/directory.d.cts +0 -2
  223. package/dist/document_loaders/fs/directory.d.cts.map +1 -0
  224. package/dist/document_loaders/fs/directory.d.ts +0 -2
  225. package/dist/document_loaders/fs/directory.d.ts.map +1 -0
  226. package/dist/document_loaders/fs/json.d.cts.map +1 -0
  227. package/dist/document_loaders/fs/json.d.ts.map +1 -0
  228. package/dist/document_loaders/fs/multi_file.d.cts.map +1 -0
  229. package/dist/document_loaders/fs/multi_file.d.ts.map +1 -0
  230. package/dist/document_loaders/fs/text.d.cts.map +1 -0
  231. package/dist/document_loaders/fs/text.d.ts.map +1 -0
  232. package/dist/document_transformers/openai_functions.d.cts.map +1 -0
  233. package/dist/document_transformers/openai_functions.d.ts.map +1 -0
  234. package/dist/embeddings/cache_backed.d.cts.map +1 -0
  235. package/dist/embeddings/cache_backed.d.ts.map +1 -0
  236. package/dist/evaluation/agents/trajectory.d.cts +2 -2
  237. package/dist/evaluation/agents/trajectory.d.cts.map +1 -0
  238. package/dist/evaluation/agents/trajectory.d.ts +2 -2
  239. package/dist/evaluation/agents/trajectory.d.ts.map +1 -0
  240. package/dist/evaluation/base.d.cts +1 -3
  241. package/dist/evaluation/base.d.cts.map +1 -0
  242. package/dist/evaluation/base.d.ts +1 -3
  243. package/dist/evaluation/base.d.ts.map +1 -0
  244. package/dist/evaluation/comparison/pairwise.d.cts +3 -3
  245. package/dist/evaluation/comparison/pairwise.d.cts.map +1 -0
  246. package/dist/evaluation/comparison/pairwise.d.ts +3 -3
  247. package/dist/evaluation/comparison/pairwise.d.ts.map +1 -0
  248. package/dist/evaluation/criteria/criteria.d.cts +3 -5
  249. package/dist/evaluation/criteria/criteria.d.cts.map +1 -0
  250. package/dist/evaluation/criteria/criteria.d.ts +3 -5
  251. package/dist/evaluation/criteria/criteria.d.ts.map +1 -0
  252. package/dist/evaluation/embedding_distance/base.d.cts.map +1 -0
  253. package/dist/evaluation/embedding_distance/base.d.ts.map +1 -0
  254. package/dist/evaluation/loader.d.cts.map +1 -0
  255. package/dist/evaluation/loader.d.ts.map +1 -0
  256. package/dist/evaluation/qa/eval_chain.d.cts.map +1 -0
  257. package/dist/evaluation/qa/eval_chain.d.ts.map +1 -0
  258. package/dist/evaluation/types.d.cts.map +1 -0
  259. package/dist/evaluation/types.d.ts.map +1 -0
  260. package/dist/experimental/autogpt/agent.d.cts +0 -2
  261. package/dist/experimental/autogpt/agent.d.cts.map +1 -0
  262. package/dist/experimental/autogpt/agent.d.ts +0 -2
  263. package/dist/experimental/autogpt/agent.d.ts.map +1 -0
  264. package/dist/experimental/autogpt/output_parser.d.cts.map +1 -0
  265. package/dist/experimental/autogpt/output_parser.d.ts.map +1 -0
  266. package/dist/experimental/autogpt/prompt.d.cts.map +1 -0
  267. package/dist/experimental/autogpt/prompt.d.ts +2 -2
  268. package/dist/experimental/autogpt/prompt.d.ts.map +1 -0
  269. package/dist/experimental/autogpt/schema.d.cts +0 -1
  270. package/dist/experimental/autogpt/schema.d.cts.map +1 -0
  271. package/dist/experimental/autogpt/schema.d.ts +0 -1
  272. package/dist/experimental/autogpt/schema.d.ts.map +1 -0
  273. package/dist/experimental/babyagi/agent.d.cts.map +1 -0
  274. package/dist/experimental/babyagi/agent.d.ts.map +1 -0
  275. package/dist/experimental/babyagi/task_creation.d.cts.map +1 -0
  276. package/dist/experimental/babyagi/task_creation.d.ts.map +1 -0
  277. package/dist/experimental/babyagi/task_execution.d.cts.map +1 -0
  278. package/dist/experimental/babyagi/task_execution.d.ts.map +1 -0
  279. package/dist/experimental/babyagi/task_prioritization.d.cts.map +1 -0
  280. package/dist/experimental/babyagi/task_prioritization.d.ts.map +1 -0
  281. package/dist/experimental/chains/violation_of_expectations/types.d.cts.map +1 -0
  282. package/dist/experimental/chains/violation_of_expectations/types.d.ts.map +1 -0
  283. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.cts.map +1 -0
  284. package/dist/experimental/chains/violation_of_expectations/violation_of_expectations_chain.d.ts.map +1 -0
  285. package/dist/experimental/generative_agents/generative_agent.d.cts +8 -16
  286. package/dist/experimental/generative_agents/generative_agent.d.cts.map +1 -0
  287. package/dist/experimental/generative_agents/generative_agent.d.ts +8 -16
  288. package/dist/experimental/generative_agents/generative_agent.d.ts.map +1 -0
  289. package/dist/experimental/generative_agents/generative_agent_memory.d.cts +0 -1
  290. package/dist/experimental/generative_agents/generative_agent_memory.d.cts.map +1 -0
  291. package/dist/experimental/generative_agents/generative_agent_memory.d.ts +0 -1
  292. package/dist/experimental/generative_agents/generative_agent_memory.d.ts.map +1 -0
  293. package/dist/experimental/masking/parser.d.cts.map +1 -0
  294. package/dist/experimental/masking/parser.d.ts.map +1 -0
  295. package/dist/experimental/masking/regex_masking_transformer.d.cts.map +1 -0
  296. package/dist/experimental/masking/regex_masking_transformer.d.ts.map +1 -0
  297. package/dist/experimental/masking/transformer.d.cts.map +1 -0
  298. package/dist/experimental/masking/transformer.d.ts.map +1 -0
  299. package/dist/experimental/masking/types.d.cts.map +1 -0
  300. package/dist/experimental/masking/types.d.ts.map +1 -0
  301. package/dist/experimental/openai_assistant/index.d.cts +1 -5
  302. package/dist/experimental/openai_assistant/index.d.cts.map +1 -0
  303. package/dist/experimental/openai_assistant/index.d.ts +1 -5
  304. package/dist/experimental/openai_assistant/index.d.ts.map +1 -0
  305. package/dist/experimental/openai_assistant/schema.d.cts +0 -1
  306. package/dist/experimental/openai_assistant/schema.d.cts.map +1 -0
  307. package/dist/experimental/openai_assistant/schema.d.ts +0 -1
  308. package/dist/experimental/openai_assistant/schema.d.ts.map +1 -0
  309. package/dist/experimental/openai_files/index.d.cts.map +1 -0
  310. package/dist/experimental/openai_files/index.d.ts.map +1 -0
  311. package/dist/experimental/plan_and_execute/agent_executor.d.cts.map +1 -0
  312. package/dist/experimental/plan_and_execute/agent_executor.d.ts.map +1 -0
  313. package/dist/experimental/plan_and_execute/base.d.cts.map +1 -0
  314. package/dist/experimental/plan_and_execute/base.d.ts.map +1 -0
  315. package/dist/experimental/plan_and_execute/outputParser.d.cts.map +1 -0
  316. package/dist/experimental/plan_and_execute/outputParser.d.ts.map +1 -0
  317. package/dist/experimental/prompts/custom_format.d.cts +2 -8
  318. package/dist/experimental/prompts/custom_format.d.cts.map +1 -0
  319. package/dist/experimental/prompts/custom_format.d.ts +2 -8
  320. package/dist/experimental/prompts/custom_format.d.ts.map +1 -0
  321. package/dist/experimental/prompts/handlebars.d.cts +2 -6
  322. package/dist/experimental/prompts/handlebars.d.cts.map +1 -0
  323. package/dist/experimental/prompts/handlebars.d.ts +2 -6
  324. package/dist/experimental/prompts/handlebars.d.ts.map +1 -0
  325. package/dist/hub/base.cjs +1 -1
  326. package/dist/hub/base.cjs.map +1 -1
  327. package/dist/hub/base.d.cts.map +1 -0
  328. package/dist/hub/base.d.ts.map +1 -0
  329. package/dist/hub/base.js +1 -1
  330. package/dist/hub/index.d.cts +0 -1
  331. package/dist/hub/index.d.cts.map +1 -0
  332. package/dist/hub/index.d.ts +0 -1
  333. package/dist/hub/index.d.ts.map +1 -0
  334. package/dist/hub/node.d.cts.map +1 -0
  335. package/dist/hub/node.d.ts.map +1 -0
  336. package/dist/load/import_map.cjs +2 -2
  337. package/dist/load/import_map.cjs.map +1 -1
  338. package/dist/load/import_map.js +2 -2
  339. package/dist/load/import_map.js.map +1 -1
  340. package/dist/load/import_type.d.cts +0 -1
  341. package/dist/load/import_type.d.cts.map +1 -0
  342. package/dist/load/import_type.d.ts +0 -1
  343. package/dist/load/import_type.d.ts.map +1 -0
  344. package/dist/load/index.d.cts +1 -7
  345. package/dist/load/index.d.cts.map +1 -0
  346. package/dist/load/index.d.ts +1 -7
  347. package/dist/load/index.d.ts.map +1 -0
  348. package/dist/load/map_keys.d.cts +0 -1
  349. package/dist/load/map_keys.d.cts.map +1 -0
  350. package/dist/load/map_keys.d.ts +0 -1
  351. package/dist/load/map_keys.d.ts.map +1 -0
  352. package/dist/load/serializable.d.cts +1 -8
  353. package/dist/load/serializable.d.ts +1 -8
  354. package/dist/memory/buffer_memory.d.cts.map +1 -0
  355. package/dist/memory/buffer_memory.d.ts.map +1 -0
  356. package/dist/memory/buffer_token_memory.d.cts +1 -6
  357. package/dist/memory/buffer_token_memory.d.cts.map +1 -0
  358. package/dist/memory/buffer_token_memory.d.ts +1 -6
  359. package/dist/memory/buffer_token_memory.d.ts.map +1 -0
  360. package/dist/memory/buffer_window_memory.d.cts.map +1 -0
  361. package/dist/memory/buffer_window_memory.d.ts.map +1 -0
  362. package/dist/memory/chat_memory.d.cts.map +1 -0
  363. package/dist/memory/chat_memory.d.ts.map +1 -0
  364. package/dist/memory/combined_memory.d.cts.map +1 -0
  365. package/dist/memory/combined_memory.d.ts.map +1 -0
  366. package/dist/memory/entity_memory.d.cts +0 -5
  367. package/dist/memory/entity_memory.d.cts.map +1 -0
  368. package/dist/memory/entity_memory.d.ts +0 -5
  369. package/dist/memory/entity_memory.d.ts.map +1 -0
  370. package/dist/memory/prompt.d.cts.map +1 -0
  371. package/dist/memory/prompt.d.ts.map +1 -0
  372. package/dist/memory/stores/entity/base.d.cts.map +1 -0
  373. package/dist/memory/stores/entity/base.d.ts.map +1 -0
  374. package/dist/memory/summary.d.cts.map +1 -0
  375. package/dist/memory/summary.d.ts.map +1 -0
  376. package/dist/memory/summary_buffer.d.cts.map +1 -0
  377. package/dist/memory/summary_buffer.d.ts.map +1 -0
  378. package/dist/memory/vector_store.d.cts.map +1 -0
  379. package/dist/memory/vector_store.d.ts.map +1 -0
  380. package/dist/output_parsers/combining.d.cts +0 -1
  381. package/dist/output_parsers/combining.d.cts.map +1 -0
  382. package/dist/output_parsers/combining.d.ts +0 -1
  383. package/dist/output_parsers/combining.d.ts.map +1 -0
  384. package/dist/output_parsers/datetime.d.cts.map +1 -0
  385. package/dist/output_parsers/datetime.d.ts.map +1 -0
  386. package/dist/output_parsers/expression.d.cts.map +1 -0
  387. package/dist/output_parsers/expression.d.ts.map +1 -0
  388. package/dist/output_parsers/expression_type_handlers/base.d.cts +0 -1
  389. package/dist/output_parsers/expression_type_handlers/base.d.cts.map +1 -0
  390. package/dist/output_parsers/expression_type_handlers/base.d.ts +0 -1
  391. package/dist/output_parsers/expression_type_handlers/base.d.ts.map +1 -0
  392. package/dist/output_parsers/expression_type_handlers/factory.d.cts.map +1 -0
  393. package/dist/output_parsers/expression_type_handlers/factory.d.ts.map +1 -0
  394. package/dist/output_parsers/expression_type_handlers/types.d.cts.map +1 -0
  395. package/dist/output_parsers/expression_type_handlers/types.d.ts.map +1 -0
  396. package/dist/output_parsers/fix.d.cts.map +1 -0
  397. package/dist/output_parsers/fix.d.ts.map +1 -0
  398. package/dist/output_parsers/http_response.d.cts.map +1 -0
  399. package/dist/output_parsers/http_response.d.ts.map +1 -0
  400. package/dist/output_parsers/openai_functions.d.cts.map +1 -0
  401. package/dist/output_parsers/openai_functions.d.ts.map +1 -0
  402. package/dist/output_parsers/openai_tools.d.cts +1 -4
  403. package/dist/output_parsers/openai_tools.d.cts.map +1 -0
  404. package/dist/output_parsers/openai_tools.d.ts +1 -4
  405. package/dist/output_parsers/openai_tools.d.ts.map +1 -0
  406. package/dist/output_parsers/regex.d.cts.map +1 -0
  407. package/dist/output_parsers/regex.d.ts.map +1 -0
  408. package/dist/output_parsers/router.d.cts.map +1 -0
  409. package/dist/output_parsers/router.d.ts.map +1 -0
  410. package/dist/output_parsers/structured.d.cts +2 -2
  411. package/dist/output_parsers/structured.d.cts.map +1 -0
  412. package/dist/output_parsers/structured.d.ts +2 -2
  413. package/dist/output_parsers/structured.d.ts.map +1 -0
  414. package/dist/retrievers/contextual_compression.d.cts.map +1 -0
  415. package/dist/retrievers/contextual_compression.d.ts.map +1 -0
  416. package/dist/retrievers/document_compressors/chain_extract.d.cts.map +1 -0
  417. package/dist/retrievers/document_compressors/chain_extract.d.ts.map +1 -0
  418. package/dist/retrievers/document_compressors/embeddings_filter.d.cts.map +1 -0
  419. package/dist/retrievers/document_compressors/embeddings_filter.d.ts.map +1 -0
  420. package/dist/retrievers/document_compressors/index.d.cts +0 -1
  421. package/dist/retrievers/document_compressors/index.d.cts.map +1 -0
  422. package/dist/retrievers/document_compressors/index.d.ts +0 -1
  423. package/dist/retrievers/document_compressors/index.d.ts.map +1 -0
  424. package/dist/retrievers/ensemble.d.cts.map +1 -0
  425. package/dist/retrievers/ensemble.d.ts.map +1 -0
  426. package/dist/retrievers/hyde.d.cts.map +1 -0
  427. package/dist/retrievers/hyde.d.ts.map +1 -0
  428. package/dist/retrievers/matryoshka_retriever.d.cts +0 -1
  429. package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -0
  430. package/dist/retrievers/matryoshka_retriever.d.ts +0 -1
  431. package/dist/retrievers/matryoshka_retriever.d.ts.map +1 -0
  432. package/dist/retrievers/multi_query.d.cts +0 -2
  433. package/dist/retrievers/multi_query.d.cts.map +1 -0
  434. package/dist/retrievers/multi_query.d.ts +0 -2
  435. package/dist/retrievers/multi_query.d.ts.map +1 -0
  436. package/dist/retrievers/multi_vector.d.cts.map +1 -0
  437. package/dist/retrievers/multi_vector.d.ts.map +1 -0
  438. package/dist/retrievers/parent_document.d.cts +0 -1
  439. package/dist/retrievers/parent_document.d.cts.map +1 -0
  440. package/dist/retrievers/parent_document.d.ts +0 -1
  441. package/dist/retrievers/parent_document.d.ts.map +1 -0
  442. package/dist/retrievers/score_threshold.d.cts.map +1 -0
  443. package/dist/retrievers/score_threshold.d.ts.map +1 -0
  444. package/dist/retrievers/self_query/index.d.cts.map +1 -0
  445. package/dist/retrievers/self_query/index.d.ts.map +1 -0
  446. package/dist/retrievers/time_weighted.d.cts.map +1 -0
  447. package/dist/retrievers/time_weighted.d.ts.map +1 -0
  448. package/dist/schema/prompt_template.d.cts +2 -2
  449. package/dist/schema/prompt_template.d.cts.map +1 -0
  450. package/dist/schema/prompt_template.d.ts +2 -2
  451. package/dist/schema/prompt_template.d.ts.map +1 -0
  452. package/dist/schema/query_constructor.d.cts.map +1 -0
  453. package/dist/schema/query_constructor.d.ts.map +1 -0
  454. package/dist/smith/config.d.cts +1 -11
  455. package/dist/smith/config.d.cts.map +1 -0
  456. package/dist/smith/config.d.ts +1 -11
  457. package/dist/smith/config.d.ts.map +1 -0
  458. package/dist/smith/runner_utils.cjs +4 -6
  459. package/dist/smith/runner_utils.cjs.map +1 -1
  460. package/dist/smith/runner_utils.d.cts +2 -7
  461. package/dist/smith/runner_utils.d.cts.map +1 -0
  462. package/dist/smith/runner_utils.d.ts +2 -7
  463. package/dist/smith/runner_utils.d.ts.map +1 -0
  464. package/dist/smith/runner_utils.js +1 -3
  465. package/dist/smith/runner_utils.js.map +1 -1
  466. package/dist/sql_db.d.cts.map +1 -0
  467. package/dist/sql_db.d.ts.map +1 -0
  468. package/dist/storage/encoder_backed.d.cts +0 -1
  469. package/dist/storage/encoder_backed.d.cts.map +1 -0
  470. package/dist/storage/encoder_backed.d.ts +0 -1
  471. package/dist/storage/encoder_backed.d.ts.map +1 -0
  472. package/dist/storage/file_system.d.cts.map +1 -0
  473. package/dist/storage/file_system.d.ts.map +1 -0
  474. package/dist/stores/doc/base.d.cts.map +1 -0
  475. package/dist/stores/doc/base.d.ts.map +1 -0
  476. package/dist/stores/doc/in_memory.d.cts +0 -1
  477. package/dist/stores/doc/in_memory.d.cts.map +1 -0
  478. package/dist/stores/doc/in_memory.d.ts +0 -1
  479. package/dist/stores/doc/in_memory.d.ts.map +1 -0
  480. package/dist/stores/file/base.d.cts.map +1 -0
  481. package/dist/stores/file/base.d.ts.map +1 -0
  482. package/dist/stores/file/in_memory.d.cts.map +1 -0
  483. package/dist/stores/file/in_memory.d.ts.map +1 -0
  484. package/dist/stores/file/node.d.cts.map +1 -0
  485. package/dist/stores/file/node.d.ts.map +1 -0
  486. package/dist/text_splitter.d.cts.map +1 -0
  487. package/dist/text_splitter.d.ts.map +1 -0
  488. package/dist/tools/chain.d.cts.map +1 -0
  489. package/dist/tools/chain.d.ts.map +1 -0
  490. package/dist/tools/fs.d.cts.map +1 -0
  491. package/dist/tools/fs.d.ts.map +1 -0
  492. package/dist/tools/json.d.cts.map +1 -0
  493. package/dist/tools/json.d.ts.map +1 -0
  494. package/dist/tools/render.d.cts.map +1 -0
  495. package/dist/tools/render.d.ts.map +1 -0
  496. package/dist/tools/requests.d.cts.map +1 -0
  497. package/dist/tools/requests.d.ts.map +1 -0
  498. package/dist/tools/retriever.d.cts.map +1 -0
  499. package/dist/tools/retriever.d.ts.map +1 -0
  500. package/dist/tools/sql.d.cts.map +1 -0
  501. package/dist/tools/sql.d.ts.map +1 -0
  502. package/dist/tools/vectorstore.d.cts.map +1 -0
  503. package/dist/tools/vectorstore.d.ts.map +1 -0
  504. package/dist/tools/webbrowser.d.cts +0 -1
  505. package/dist/tools/webbrowser.d.cts.map +1 -0
  506. package/dist/tools/webbrowser.d.ts +0 -1
  507. package/dist/tools/webbrowser.d.ts.map +1 -0
  508. package/dist/types/expression-parser.d.cts +0 -3
  509. package/dist/types/expression-parser.d.cts.map +1 -0
  510. package/dist/types/expression-parser.d.ts +0 -3
  511. package/dist/types/expression-parser.d.ts.map +1 -0
  512. package/dist/types/type-utils.d.cts +0 -2
  513. package/dist/types/type-utils.d.cts.map +1 -0
  514. package/dist/types/type-utils.d.ts +0 -2
  515. package/dist/types/type-utils.d.ts.map +1 -0
  516. package/dist/util/document.d.cts.map +1 -0
  517. package/dist/util/document.d.ts.map +1 -0
  518. package/dist/util/hub.cjs +2 -2
  519. package/dist/util/hub.cjs.map +1 -1
  520. package/dist/util/hub.js +1 -1
  521. package/dist/util/hub.js.map +1 -1
  522. package/dist/util/is-network-error/index.cjs +27 -0
  523. package/dist/util/is-network-error/index.cjs.map +1 -0
  524. package/dist/util/is-network-error/index.js +26 -0
  525. package/dist/util/is-network-error/index.js.map +1 -0
  526. package/dist/util/load.d.cts +0 -1
  527. package/dist/util/load.d.cts.map +1 -0
  528. package/dist/util/load.d.ts +0 -1
  529. package/dist/util/load.d.ts.map +1 -0
  530. package/dist/util/ml-distance/similarities.d.cts.map +1 -0
  531. package/dist/util/ml-distance/similarities.d.ts.map +1 -0
  532. package/dist/util/openapi.d.cts +0 -2
  533. package/dist/util/openapi.d.cts.map +1 -0
  534. package/dist/util/openapi.d.ts +0 -2
  535. package/dist/util/openapi.d.ts.map +1 -0
  536. package/dist/util/p-retry/index.cjs +141 -0
  537. package/dist/util/p-retry/index.cjs.map +1 -0
  538. package/dist/util/p-retry/index.js +141 -0
  539. package/dist/util/p-retry/index.js.map +1 -0
  540. package/dist/util/sql_utils.d.cts.map +1 -0
  541. package/dist/util/sql_utils.d.ts.map +1 -0
  542. package/dist/util/time.d.cts.map +1 -0
  543. package/dist/util/time.d.ts.map +1 -0
  544. package/dist/vectorstores/memory.d.cts +0 -1
  545. package/dist/vectorstores/memory.d.cts.map +1 -0
  546. package/dist/vectorstores/memory.d.ts +0 -1
  547. package/dist/vectorstores/memory.d.ts.map +1 -0
  548. package/package.json +19 -19
  549. package/agents/format_scratchpad/log.cjs +0 -1
  550. package/agents/format_scratchpad/log.d.cts +0 -1
  551. package/agents/format_scratchpad/log.d.ts +0 -1
  552. package/agents/format_scratchpad/log.js +0 -1
  553. package/agents/format_scratchpad/log_to_message.cjs +0 -1
  554. package/agents/format_scratchpad/log_to_message.d.cts +0 -1
  555. package/agents/format_scratchpad/log_to_message.d.ts +0 -1
  556. package/agents/format_scratchpad/log_to_message.js +0 -1
  557. package/agents/format_scratchpad/openai_functions.cjs +0 -1
  558. package/agents/format_scratchpad/openai_functions.d.cts +0 -1
  559. package/agents/format_scratchpad/openai_functions.d.ts +0 -1
  560. package/agents/format_scratchpad/openai_functions.js +0 -1
  561. package/agents/format_scratchpad/openai_tools.cjs +0 -1
  562. package/agents/format_scratchpad/openai_tools.d.cts +0 -1
  563. package/agents/format_scratchpad/openai_tools.d.ts +0 -1
  564. package/agents/format_scratchpad/openai_tools.js +0 -1
  565. package/agents/format_scratchpad/xml.cjs +0 -1
  566. package/agents/format_scratchpad/xml.d.cts +0 -1
  567. package/agents/format_scratchpad/xml.d.ts +0 -1
  568. package/agents/format_scratchpad/xml.js +0 -1
  569. package/agents/load.cjs +0 -1
  570. package/agents/load.d.cts +0 -1
  571. package/agents/load.d.ts +0 -1
  572. package/agents/load.js +0 -1
  573. package/agents/openai/output_parser.cjs +0 -1
  574. package/agents/openai/output_parser.d.cts +0 -1
  575. package/agents/openai/output_parser.d.ts +0 -1
  576. package/agents/openai/output_parser.js +0 -1
  577. package/agents/react/output_parser.cjs +0 -1
  578. package/agents/react/output_parser.d.cts +0 -1
  579. package/agents/react/output_parser.d.ts +0 -1
  580. package/agents/react/output_parser.js +0 -1
  581. package/agents/toolkits/sql.cjs +0 -1
  582. package/agents/toolkits/sql.d.cts +0 -1
  583. package/agents/toolkits/sql.d.ts +0 -1
  584. package/agents/toolkits/sql.js +0 -1
  585. package/agents/toolkits.cjs +0 -1
  586. package/agents/toolkits.d.cts +0 -1
  587. package/agents/toolkits.d.ts +0 -1
  588. package/agents/toolkits.js +0 -1
  589. package/agents/xml/output_parser.cjs +0 -1
  590. package/agents/xml/output_parser.d.cts +0 -1
  591. package/agents/xml/output_parser.d.ts +0 -1
  592. package/agents/xml/output_parser.js +0 -1
  593. package/agents.cjs +0 -1
  594. package/agents.d.cts +0 -1
  595. package/agents.d.ts +0 -1
  596. package/agents.js +0 -1
  597. package/cache/file_system.cjs +0 -1
  598. package/cache/file_system.d.cts +0 -1
  599. package/cache/file_system.d.ts +0 -1
  600. package/cache/file_system.js +0 -1
  601. package/callbacks.cjs +0 -1
  602. package/callbacks.d.cts +0 -1
  603. package/callbacks.d.ts +0 -1
  604. package/callbacks.js +0 -1
  605. package/chains/combine_documents/reduce.cjs +0 -1
  606. package/chains/combine_documents/reduce.d.cts +0 -1
  607. package/chains/combine_documents/reduce.d.ts +0 -1
  608. package/chains/combine_documents/reduce.js +0 -1
  609. package/chains/combine_documents.cjs +0 -1
  610. package/chains/combine_documents.d.cts +0 -1
  611. package/chains/combine_documents.d.ts +0 -1
  612. package/chains/combine_documents.js +0 -1
  613. package/chains/graph_qa/cypher.cjs +0 -1
  614. package/chains/graph_qa/cypher.d.cts +0 -1
  615. package/chains/graph_qa/cypher.d.ts +0 -1
  616. package/chains/graph_qa/cypher.js +0 -1
  617. package/chains/history_aware_retriever.cjs +0 -1
  618. package/chains/history_aware_retriever.d.cts +0 -1
  619. package/chains/history_aware_retriever.d.ts +0 -1
  620. package/chains/history_aware_retriever.js +0 -1
  621. package/chains/load.cjs +0 -1
  622. package/chains/load.d.cts +0 -1
  623. package/chains/load.d.ts +0 -1
  624. package/chains/load.js +0 -1
  625. package/chains/openai_functions.cjs +0 -1
  626. package/chains/openai_functions.d.cts +0 -1
  627. package/chains/openai_functions.d.ts +0 -1
  628. package/chains/openai_functions.js +0 -1
  629. package/chains/query_constructor/ir.cjs +0 -1
  630. package/chains/query_constructor/ir.d.cts +0 -1
  631. package/chains/query_constructor/ir.d.ts +0 -1
  632. package/chains/query_constructor/ir.js +0 -1
  633. package/chains/query_constructor.cjs +0 -1
  634. package/chains/query_constructor.d.cts +0 -1
  635. package/chains/query_constructor.d.ts +0 -1
  636. package/chains/query_constructor.js +0 -1
  637. package/chains/retrieval.cjs +0 -1
  638. package/chains/retrieval.d.cts +0 -1
  639. package/chains/retrieval.d.ts +0 -1
  640. package/chains/retrieval.js +0 -1
  641. package/chains/sql_db.cjs +0 -1
  642. package/chains/sql_db.d.cts +0 -1
  643. package/chains/sql_db.d.ts +0 -1
  644. package/chains/sql_db.js +0 -1
  645. package/chains.cjs +0 -1
  646. package/chains.d.cts +0 -1
  647. package/chains.d.ts +0 -1
  648. package/chains.js +0 -1
  649. package/chat_models/universal.cjs +0 -1
  650. package/chat_models/universal.d.cts +0 -1
  651. package/chat_models/universal.d.ts +0 -1
  652. package/chat_models/universal.js +0 -1
  653. package/dist/langchain-core/dist/load/map_keys.d.cts +0 -10
  654. package/dist/langchain-core/dist/load/serializable.d.cts +0 -82
  655. package/dist/langchain-core/dist/messages/base.d.cts +0 -127
  656. package/dist/langchain-core/dist/messages/content/base.d.cts +0 -22
  657. package/dist/langchain-core/dist/messages/content/data.d.cts +0 -96
  658. package/dist/langchain-core/dist/messages/content/index.d.cts +0 -121
  659. package/dist/langchain-core/dist/messages/content/multimodal.d.cts +0 -110
  660. package/dist/langchain-core/dist/messages/content/tools.d.cts +0 -130
  661. package/dist/langchain-core/dist/messages/format.d.cts +0 -8
  662. package/dist/langchain-core/dist/messages/message.d.cts +0 -598
  663. package/dist/langchain-core/dist/messages/metadata.d.cts +0 -100
  664. package/dist/langchain-core/dist/messages/utils.d.cts +0 -75
  665. package/dist/langchain-core/dist/prompt_values.d.cts +0 -13
  666. package/dist/langchain-core/dist/tools/types.d.cts +0 -28
  667. package/dist/langchain-core/dist/utils/types/index.d.cts +0 -8
  668. package/dist/libs/langchain-core/dist/callbacks/base.d.ts +0 -1
  669. package/dist/libs/langchain-core/dist/callbacks/manager.d.ts +0 -2
  670. package/dist/libs/langchain-core/dist/language_models/base.d.ts +0 -8
  671. package/dist/libs/langchain-core/dist/load/map_keys.d.ts +0 -10
  672. package/dist/libs/langchain-core/dist/load/serializable.d.ts +0 -82
  673. package/dist/libs/langchain-core/dist/messages/base.d.ts +0 -127
  674. package/dist/libs/langchain-core/dist/messages/content/base.d.ts +0 -22
  675. package/dist/libs/langchain-core/dist/messages/content/data.d.ts +0 -96
  676. package/dist/libs/langchain-core/dist/messages/content/index.d.ts +0 -121
  677. package/dist/libs/langchain-core/dist/messages/content/multimodal.d.ts +0 -110
  678. package/dist/libs/langchain-core/dist/messages/content/tools.d.ts +0 -130
  679. package/dist/libs/langchain-core/dist/messages/format.d.ts +0 -8
  680. package/dist/libs/langchain-core/dist/messages/message.d.ts +0 -598
  681. package/dist/libs/langchain-core/dist/messages/metadata.d.ts +0 -100
  682. package/dist/libs/langchain-core/dist/messages/utils.d.ts +0 -75
  683. package/dist/libs/langchain-core/dist/prompt_values.d.ts +0 -13
  684. package/dist/libs/langchain-core/dist/runnables/base.d.ts +0 -8
  685. package/dist/libs/langchain-core/dist/runnables/config.d.ts +0 -2
  686. package/dist/libs/langchain-core/dist/runnables/graph.d.ts +0 -1
  687. package/dist/libs/langchain-core/dist/runnables/types.d.ts +0 -2
  688. package/dist/libs/langchain-core/dist/tools/types.d.ts +0 -36
  689. package/dist/libs/langchain-core/dist/tracers/base.d.ts +0 -2
  690. package/dist/libs/langchain-core/dist/tracers/event_stream.d.ts +0 -2
  691. package/dist/libs/langchain-core/dist/tracers/log_stream.d.ts +0 -3
  692. package/dist/libs/langchain-core/dist/utils/json_schema.d.ts +0 -8
  693. package/dist/libs/langchain-core/dist/utils/types/index.d.ts +0 -10
  694. package/dist/libs/langchain-core/dist/utils/types/zod.d.ts +0 -1
  695. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Options.d.ts +0 -3
  696. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/Refs.d.ts +0 -3
  697. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/errorMessages.d.ts +0 -2
  698. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/index.d.ts +0 -13
  699. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseDef.d.ts +0 -3
  700. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -21
  701. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/any.d.ts +0 -1
  702. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/array.d.ts +0 -4
  703. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +0 -3
  704. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/branded.d.ts +0 -3
  705. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/catch.d.ts +0 -3
  706. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/date.d.ts +0 -5
  707. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/default.d.ts +0 -3
  708. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/effects.d.ts +0 -3
  709. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/enum.d.ts +0 -1
  710. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +0 -3
  711. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/literal.d.ts +0 -2
  712. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/map.d.ts +0 -4
  713. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +0 -1
  714. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/never.d.ts +0 -2
  715. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/null.d.ts +0 -1
  716. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +0 -4
  717. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/number.d.ts +0 -3
  718. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/object.d.ts +0 -3
  719. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/optional.d.ts +0 -3
  720. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/pipeline.d.ts +0 -4
  721. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/promise.d.ts +0 -3
  722. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/readonly.d.ts +0 -3
  723. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/record.d.ts +0 -5
  724. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/set.d.ts +0 -4
  725. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/string.d.ts +0 -3
  726. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +0 -3
  727. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +0 -2
  728. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/union.d.ts +0 -3
  729. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +0 -2
  730. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/selectParser.d.ts +0 -2
  731. package/dist/libs/langchain-core/dist/utils/zod-to-json-schema/zodToJsonSchema.d.ts +0 -3
  732. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs +0 -248
  733. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.map +0 -1
  734. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js +0 -244
  735. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.js.map +0 -1
  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/client.cjs +0 -3096
  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/client.cjs.map +0 -1
  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/client.js +0 -3095
  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/client.js.map +0 -1
  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/env.cjs +0 -12
  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/env.cjs.map +0 -1
  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/env.js +0 -12
  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/env.js.map +0 -1
  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/experimental/otel/constants.cjs +0 -71
  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/experimental/otel/constants.cjs.map +0 -1
  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/experimental/otel/constants.js +0 -38
  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/experimental/otel/constants.js.map +0 -1
  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/experimental/otel/translator.cjs +0 -221
  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/dist/experimental/otel/translator.cjs.map +0 -1
  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/dist/experimental/otel/translator.js +0 -221
  751. 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
  752. 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
  753. 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
  754. 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
  755. 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
  756. 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
  757. 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
  758. 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
  759. 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
  760. 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
  761. 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
  762. 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
  763. 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
  764. 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
  765. 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
  766. 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
  767. 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
  768. 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
  769. 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
  770. 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
  771. 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
  772. 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
  773. 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
  774. 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
  775. 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
  776. 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
  777. 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
  778. 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
  779. 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
  780. 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
  781. 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
  782. 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
  783. 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
  784. 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
  785. 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
  786. 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
  787. 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
  788. 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
  789. 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
  790. 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
  791. 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
  792. 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
  793. 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
  794. 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
  795. 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
  796. 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
  797. 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
  798. 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
  799. 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
  800. 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
  801. 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
  802. 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
  803. 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
  804. 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
  805. 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
  806. 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
  807. 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
  808. 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
  809. 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
  810. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs +0 -27
  811. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.cjs.map +0 -1
  812. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js +0 -23
  813. package/dist/node_modules/.pnpm/p-finally@1.0.0/node_modules/p-finally/index.js.map +0 -1
  814. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs +0 -267
  815. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.map +0 -1
  816. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js +0 -263
  817. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.js.map +0 -1
  818. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs +0 -32
  819. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.cjs.map +0 -1
  820. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js +0 -28
  821. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/lower-bound.js.map +0 -1
  822. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs +0 -49
  823. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.cjs.map +0 -1
  824. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js +0 -45
  825. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/priority-queue.js.map +0 -1
  826. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs +0 -52
  827. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.map +0 -1
  828. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js +0 -48
  829. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.js.map +0 -1
  830. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs +0 -90
  831. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.cjs.map +0 -1
  832. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js +0 -86
  833. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/comparator.js.map +0 -1
  834. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs +0 -294
  835. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.cjs.map +0 -1
  836. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js +0 -290
  837. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/range.js.map +0 -1
  838. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs +0 -191
  839. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.cjs.map +0 -1
  840. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js +0 -187
  841. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/classes/semver.js.map +0 -1
  842. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs +0 -24
  843. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.cjs.map +0 -1
  844. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js +0 -20
  845. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/clean.js.map +0 -1
  846. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs +0 -51
  847. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.cjs.map +0 -1
  848. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js +0 -47
  849. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/cmp.js.map +0 -1
  850. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs +0 -48
  851. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.cjs.map +0 -1
  852. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js +0 -44
  853. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/coerce.js.map +0 -1
  854. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs +0 -25
  855. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.cjs.map +0 -1
  856. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js +0 -21
  857. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-build.js.map +0 -1
  858. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs +0 -21
  859. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.cjs.map +0 -1
  860. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js +0 -17
  861. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare-loose.js.map +0 -1
  862. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs +0 -21
  863. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.cjs.map +0 -1
  864. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js +0 -17
  865. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/compare.js.map +0 -1
  866. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs +0 -43
  867. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.cjs.map +0 -1
  868. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js +0 -39
  869. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/diff.js.map +0 -1
  870. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs +0 -21
  871. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.cjs.map +0 -1
  872. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js +0 -17
  873. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/eq.js.map +0 -1
  874. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs +0 -21
  875. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.cjs.map +0 -1
  876. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js +0 -17
  877. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gt.js.map +0 -1
  878. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs +0 -21
  879. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.cjs.map +0 -1
  880. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js +0 -17
  881. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/gte.js.map +0 -1
  882. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs +0 -32
  883. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.cjs.map +0 -1
  884. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js +0 -28
  885. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/inc.js.map +0 -1
  886. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs +0 -21
  887. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.cjs.map +0 -1
  888. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js +0 -17
  889. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lt.js.map +0 -1
  890. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs +0 -21
  891. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.cjs.map +0 -1
  892. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js +0 -17
  893. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/lte.js.map +0 -1
  894. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs +0 -21
  895. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.cjs.map +0 -1
  896. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js +0 -17
  897. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/major.js.map +0 -1
  898. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs +0 -21
  899. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.cjs.map +0 -1
  900. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js +0 -17
  901. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/minor.js.map +0 -1
  902. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs +0 -21
  903. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.cjs.map +0 -1
  904. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js +0 -17
  905. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/neq.js.map +0 -1
  906. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs +0 -29
  907. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.cjs.map +0 -1
  908. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js +0 -25
  909. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/parse.js.map +0 -1
  910. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs +0 -21
  911. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.cjs.map +0 -1
  912. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js +0 -17
  913. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/patch.js.map +0 -1
  914. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs +0 -24
  915. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.cjs.map +0 -1
  916. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js +0 -20
  917. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/prerelease.js.map +0 -1
  918. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs +0 -21
  919. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.cjs.map +0 -1
  920. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js +0 -17
  921. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rcompare.js.map +0 -1
  922. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs +0 -21
  923. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.cjs.map +0 -1
  924. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js +0 -17
  925. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/rsort.js.map +0 -1
  926. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs +0 -28
  927. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.cjs.map +0 -1
  928. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js +0 -24
  929. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/satisfies.js.map +0 -1
  930. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs +0 -21
  931. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.cjs.map +0 -1
  932. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js +0 -17
  933. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/sort.js.map +0 -1
  934. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs +0 -24
  935. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.cjs.map +0 -1
  936. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js +0 -20
  937. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/functions/valid.js.map +0 -1
  938. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs +0 -146
  939. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.cjs.map +0 -1
  940. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js +0 -142
  941. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/index.js.map +0 -1
  942. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs +0 -41
  943. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.cjs.map +0 -1
  944. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js +0 -37
  945. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/constants.js.map +0 -1
  946. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs +0 -19
  947. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.cjs.map +0 -1
  948. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js +0 -15
  949. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/debug.js.map +0 -1
  950. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs +0 -32
  951. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.cjs.map +0 -1
  952. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js +0 -28
  953. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/identifiers.js.map +0 -1
  954. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs +0 -47
  955. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.cjs.map +0 -1
  956. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js +0 -43
  957. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/lrucache.js.map +0 -1
  958. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs +0 -25
  959. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.cjs.map +0 -1
  960. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js +0 -21
  961. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/parse-options.js.map +0 -1
  962. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs +0 -94
  963. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.cjs.map +0 -1
  964. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js +0 -90
  965. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/internal/re.js.map +0 -1
  966. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs +0 -21
  967. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.cjs.map +0 -1
  968. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js +0 -17
  969. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/gtr.js.map +0 -1
  970. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs +0 -25
  971. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.cjs.map +0 -1
  972. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js +0 -21
  973. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/intersects.js.map +0 -1
  974. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs +0 -21
  975. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.cjs.map +0 -1
  976. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js +0 -17
  977. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/ltr.js.map +0 -1
  978. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs +0 -41
  979. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.cjs.map +0 -1
  980. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js +0 -37
  981. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/max-satisfying.js.map +0 -1
  982. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs +0 -41
  983. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.cjs.map +0 -1
  984. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js +0 -37
  985. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-satisfying.js.map +0 -1
  986. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs +0 -55
  987. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.cjs.map +0 -1
  988. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js +0 -51
  989. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/min-version.js.map +0 -1
  990. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs +0 -74
  991. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.cjs.map +0 -1
  992. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js +0 -70
  993. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/outside.js.map +0 -1
  994. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs +0 -48
  995. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.cjs.map +0 -1
  996. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js +0 -44
  997. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/simplify.js.map +0 -1
  998. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs +0 -112
  999. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.cjs.map +0 -1
  1000. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js +0 -108
  1001. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/subset.js.map +0 -1
  1002. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs +0 -21
  1003. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.cjs.map +0 -1
  1004. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js +0 -17
  1005. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/to-comparators.js.map +0 -1
  1006. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs +0 -27
  1007. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.cjs.map +0 -1
  1008. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js +0 -23
  1009. package/dist/node_modules/.pnpm/semver@7.7.2/node_modules/semver/ranges/valid.js.map +0 -1
  1010. package/document.cjs +0 -1
  1011. package/document.d.cts +0 -1
  1012. package/document.d.ts +0 -1
  1013. package/document.js +0 -1
  1014. package/document_loaders/base.cjs +0 -1
  1015. package/document_loaders/base.d.cts +0 -1
  1016. package/document_loaders/base.d.ts +0 -1
  1017. package/document_loaders/base.js +0 -1
  1018. package/document_loaders/fs/buffer.cjs +0 -1
  1019. package/document_loaders/fs/buffer.d.cts +0 -1
  1020. package/document_loaders/fs/buffer.d.ts +0 -1
  1021. package/document_loaders/fs/buffer.js +0 -1
  1022. package/document_loaders/fs/directory.cjs +0 -1
  1023. package/document_loaders/fs/directory.d.cts +0 -1
  1024. package/document_loaders/fs/directory.d.ts +0 -1
  1025. package/document_loaders/fs/directory.js +0 -1
  1026. package/document_loaders/fs/json.cjs +0 -1
  1027. package/document_loaders/fs/json.d.cts +0 -1
  1028. package/document_loaders/fs/json.d.ts +0 -1
  1029. package/document_loaders/fs/json.js +0 -1
  1030. package/document_loaders/fs/multi_file.cjs +0 -1
  1031. package/document_loaders/fs/multi_file.d.cts +0 -1
  1032. package/document_loaders/fs/multi_file.d.ts +0 -1
  1033. package/document_loaders/fs/multi_file.js +0 -1
  1034. package/document_loaders/fs/text.cjs +0 -1
  1035. package/document_loaders/fs/text.d.cts +0 -1
  1036. package/document_loaders/fs/text.d.ts +0 -1
  1037. package/document_loaders/fs/text.js +0 -1
  1038. package/document_transformers/openai_functions.cjs +0 -1
  1039. package/document_transformers/openai_functions.d.cts +0 -1
  1040. package/document_transformers/openai_functions.d.ts +0 -1
  1041. package/document_transformers/openai_functions.js +0 -1
  1042. package/embeddings/cache_backed.cjs +0 -1
  1043. package/embeddings/cache_backed.d.cts +0 -1
  1044. package/embeddings/cache_backed.d.ts +0 -1
  1045. package/embeddings/cache_backed.js +0 -1
  1046. package/embeddings/fake.cjs +0 -1
  1047. package/embeddings/fake.d.cts +0 -1
  1048. package/embeddings/fake.d.ts +0 -1
  1049. package/embeddings/fake.js +0 -1
  1050. package/evaluation.cjs +0 -1
  1051. package/evaluation.d.cts +0 -1
  1052. package/evaluation.d.ts +0 -1
  1053. package/evaluation.js +0 -1
  1054. package/experimental/autogpt.cjs +0 -1
  1055. package/experimental/autogpt.d.cts +0 -1
  1056. package/experimental/autogpt.d.ts +0 -1
  1057. package/experimental/autogpt.js +0 -1
  1058. package/experimental/babyagi.cjs +0 -1
  1059. package/experimental/babyagi.d.cts +0 -1
  1060. package/experimental/babyagi.d.ts +0 -1
  1061. package/experimental/babyagi.js +0 -1
  1062. package/experimental/chains/violation_of_expectations.cjs +0 -1
  1063. package/experimental/chains/violation_of_expectations.d.cts +0 -1
  1064. package/experimental/chains/violation_of_expectations.d.ts +0 -1
  1065. package/experimental/chains/violation_of_expectations.js +0 -1
  1066. package/experimental/generative_agents.cjs +0 -1
  1067. package/experimental/generative_agents.d.cts +0 -1
  1068. package/experimental/generative_agents.d.ts +0 -1
  1069. package/experimental/generative_agents.js +0 -1
  1070. package/experimental/masking.cjs +0 -1
  1071. package/experimental/masking.d.cts +0 -1
  1072. package/experimental/masking.d.ts +0 -1
  1073. package/experimental/masking.js +0 -1
  1074. package/experimental/openai_assistant.cjs +0 -1
  1075. package/experimental/openai_assistant.d.cts +0 -1
  1076. package/experimental/openai_assistant.d.ts +0 -1
  1077. package/experimental/openai_assistant.js +0 -1
  1078. package/experimental/openai_files.cjs +0 -1
  1079. package/experimental/openai_files.d.cts +0 -1
  1080. package/experimental/openai_files.d.ts +0 -1
  1081. package/experimental/openai_files.js +0 -1
  1082. package/experimental/plan_and_execute.cjs +0 -1
  1083. package/experimental/plan_and_execute.d.cts +0 -1
  1084. package/experimental/plan_and_execute.d.ts +0 -1
  1085. package/experimental/plan_and_execute.js +0 -1
  1086. package/experimental/prompts/custom_format.cjs +0 -1
  1087. package/experimental/prompts/custom_format.d.cts +0 -1
  1088. package/experimental/prompts/custom_format.d.ts +0 -1
  1089. package/experimental/prompts/custom_format.js +0 -1
  1090. package/experimental/prompts/handlebars.cjs +0 -1
  1091. package/experimental/prompts/handlebars.d.cts +0 -1
  1092. package/experimental/prompts/handlebars.d.ts +0 -1
  1093. package/experimental/prompts/handlebars.js +0 -1
  1094. package/hub/node.cjs +0 -1
  1095. package/hub/node.d.cts +0 -1
  1096. package/hub/node.d.ts +0 -1
  1097. package/hub/node.js +0 -1
  1098. package/hub.cjs +0 -1
  1099. package/hub.d.cts +0 -1
  1100. package/hub.d.ts +0 -1
  1101. package/hub.js +0 -1
  1102. package/indexes.cjs +0 -1
  1103. package/indexes.d.cts +0 -1
  1104. package/indexes.d.ts +0 -1
  1105. package/indexes.js +0 -1
  1106. package/load/serializable.cjs +0 -1
  1107. package/load/serializable.d.cts +0 -1
  1108. package/load/serializable.d.ts +0 -1
  1109. package/load/serializable.js +0 -1
  1110. package/load.cjs +0 -1
  1111. package/load.d.cts +0 -1
  1112. package/load.d.ts +0 -1
  1113. package/load.js +0 -1
  1114. package/memory/chat_memory.cjs +0 -1
  1115. package/memory/chat_memory.d.cts +0 -1
  1116. package/memory/chat_memory.d.ts +0 -1
  1117. package/memory/chat_memory.js +0 -1
  1118. package/memory.cjs +0 -1
  1119. package/memory.d.cts +0 -1
  1120. package/memory.d.ts +0 -1
  1121. package/memory.js +0 -1
  1122. package/output_parsers/expression.cjs +0 -1
  1123. package/output_parsers/expression.d.cts +0 -1
  1124. package/output_parsers/expression.d.ts +0 -1
  1125. package/output_parsers/expression.js +0 -1
  1126. package/output_parsers.cjs +0 -1
  1127. package/output_parsers.d.cts +0 -1
  1128. package/output_parsers.d.ts +0 -1
  1129. package/output_parsers.js +0 -1
  1130. package/retrievers/contextual_compression.cjs +0 -1
  1131. package/retrievers/contextual_compression.d.cts +0 -1
  1132. package/retrievers/contextual_compression.d.ts +0 -1
  1133. package/retrievers/contextual_compression.js +0 -1
  1134. package/retrievers/document_compressors/chain_extract.cjs +0 -1
  1135. package/retrievers/document_compressors/chain_extract.d.cts +0 -1
  1136. package/retrievers/document_compressors/chain_extract.d.ts +0 -1
  1137. package/retrievers/document_compressors/chain_extract.js +0 -1
  1138. package/retrievers/document_compressors/embeddings_filter.cjs +0 -1
  1139. package/retrievers/document_compressors/embeddings_filter.d.cts +0 -1
  1140. package/retrievers/document_compressors/embeddings_filter.d.ts +0 -1
  1141. package/retrievers/document_compressors/embeddings_filter.js +0 -1
  1142. package/retrievers/document_compressors.cjs +0 -1
  1143. package/retrievers/document_compressors.d.cts +0 -1
  1144. package/retrievers/document_compressors.d.ts +0 -1
  1145. package/retrievers/document_compressors.js +0 -1
  1146. package/retrievers/ensemble.cjs +0 -1
  1147. package/retrievers/ensemble.d.cts +0 -1
  1148. package/retrievers/ensemble.d.ts +0 -1
  1149. package/retrievers/ensemble.js +0 -1
  1150. package/retrievers/hyde.cjs +0 -1
  1151. package/retrievers/hyde.d.cts +0 -1
  1152. package/retrievers/hyde.d.ts +0 -1
  1153. package/retrievers/hyde.js +0 -1
  1154. package/retrievers/matryoshka_retriever.cjs +0 -1
  1155. package/retrievers/matryoshka_retriever.d.cts +0 -1
  1156. package/retrievers/matryoshka_retriever.d.ts +0 -1
  1157. package/retrievers/matryoshka_retriever.js +0 -1
  1158. package/retrievers/multi_query.cjs +0 -1
  1159. package/retrievers/multi_query.d.cts +0 -1
  1160. package/retrievers/multi_query.d.ts +0 -1
  1161. package/retrievers/multi_query.js +0 -1
  1162. package/retrievers/multi_vector.cjs +0 -1
  1163. package/retrievers/multi_vector.d.cts +0 -1
  1164. package/retrievers/multi_vector.d.ts +0 -1
  1165. package/retrievers/multi_vector.js +0 -1
  1166. package/retrievers/parent_document.cjs +0 -1
  1167. package/retrievers/parent_document.d.cts +0 -1
  1168. package/retrievers/parent_document.d.ts +0 -1
  1169. package/retrievers/parent_document.js +0 -1
  1170. package/retrievers/score_threshold.cjs +0 -1
  1171. package/retrievers/score_threshold.d.cts +0 -1
  1172. package/retrievers/score_threshold.d.ts +0 -1
  1173. package/retrievers/score_threshold.js +0 -1
  1174. package/retrievers/self_query/functional.cjs +0 -1
  1175. package/retrievers/self_query/functional.d.cts +0 -1
  1176. package/retrievers/self_query/functional.d.ts +0 -1
  1177. package/retrievers/self_query/functional.js +0 -1
  1178. package/retrievers/self_query.cjs +0 -1
  1179. package/retrievers/self_query.d.cts +0 -1
  1180. package/retrievers/self_query.d.ts +0 -1
  1181. package/retrievers/self_query.js +0 -1
  1182. package/retrievers/time_weighted.cjs +0 -1
  1183. package/retrievers/time_weighted.d.cts +0 -1
  1184. package/retrievers/time_weighted.d.ts +0 -1
  1185. package/retrievers/time_weighted.js +0 -1
  1186. package/schema/prompt_template.cjs +0 -1
  1187. package/schema/prompt_template.d.cts +0 -1
  1188. package/schema/prompt_template.d.ts +0 -1
  1189. package/schema/prompt_template.js +0 -1
  1190. package/schema/query_constructor.cjs +0 -1
  1191. package/schema/query_constructor.d.cts +0 -1
  1192. package/schema/query_constructor.d.ts +0 -1
  1193. package/schema/query_constructor.js +0 -1
  1194. package/smith.cjs +0 -1
  1195. package/smith.d.cts +0 -1
  1196. package/smith.d.ts +0 -1
  1197. package/smith.js +0 -1
  1198. package/sql_db.cjs +0 -1
  1199. package/sql_db.d.cts +0 -1
  1200. package/sql_db.d.ts +0 -1
  1201. package/sql_db.js +0 -1
  1202. package/storage/encoder_backed.cjs +0 -1
  1203. package/storage/encoder_backed.d.cts +0 -1
  1204. package/storage/encoder_backed.d.ts +0 -1
  1205. package/storage/encoder_backed.js +0 -1
  1206. package/storage/file_system.cjs +0 -1
  1207. package/storage/file_system.d.cts +0 -1
  1208. package/storage/file_system.d.ts +0 -1
  1209. package/storage/file_system.js +0 -1
  1210. package/storage/in_memory.cjs +0 -1
  1211. package/storage/in_memory.d.cts +0 -1
  1212. package/storage/in_memory.d.ts +0 -1
  1213. package/storage/in_memory.js +0 -1
  1214. package/stores/doc/base.cjs +0 -1
  1215. package/stores/doc/base.d.cts +0 -1
  1216. package/stores/doc/base.d.ts +0 -1
  1217. package/stores/doc/base.js +0 -1
  1218. package/stores/doc/in_memory.cjs +0 -1
  1219. package/stores/doc/in_memory.d.cts +0 -1
  1220. package/stores/doc/in_memory.d.ts +0 -1
  1221. package/stores/doc/in_memory.js +0 -1
  1222. package/stores/file/in_memory.cjs +0 -1
  1223. package/stores/file/in_memory.d.cts +0 -1
  1224. package/stores/file/in_memory.d.ts +0 -1
  1225. package/stores/file/in_memory.js +0 -1
  1226. package/stores/file/node.cjs +0 -1
  1227. package/stores/file/node.d.cts +0 -1
  1228. package/stores/file/node.d.ts +0 -1
  1229. package/stores/file/node.js +0 -1
  1230. package/stores/message/in_memory.cjs +0 -1
  1231. package/stores/message/in_memory.d.cts +0 -1
  1232. package/stores/message/in_memory.d.ts +0 -1
  1233. package/stores/message/in_memory.js +0 -1
  1234. package/text_splitter.cjs +0 -1
  1235. package/text_splitter.d.cts +0 -1
  1236. package/text_splitter.d.ts +0 -1
  1237. package/text_splitter.js +0 -1
  1238. package/tools/chain.cjs +0 -1
  1239. package/tools/chain.d.cts +0 -1
  1240. package/tools/chain.d.ts +0 -1
  1241. package/tools/chain.js +0 -1
  1242. package/tools/render.cjs +0 -1
  1243. package/tools/render.d.cts +0 -1
  1244. package/tools/render.d.ts +0 -1
  1245. package/tools/render.js +0 -1
  1246. package/tools/retriever.cjs +0 -1
  1247. package/tools/retriever.d.cts +0 -1
  1248. package/tools/retriever.d.ts +0 -1
  1249. package/tools/retriever.js +0 -1
  1250. package/tools/sql.cjs +0 -1
  1251. package/tools/sql.d.cts +0 -1
  1252. package/tools/sql.d.ts +0 -1
  1253. package/tools/sql.js +0 -1
  1254. package/tools/webbrowser.cjs +0 -1
  1255. package/tools/webbrowser.d.cts +0 -1
  1256. package/tools/webbrowser.d.ts +0 -1
  1257. package/tools/webbrowser.js +0 -1
  1258. package/tools.cjs +0 -1
  1259. package/tools.d.cts +0 -1
  1260. package/tools.d.ts +0 -1
  1261. package/tools.js +0 -1
  1262. package/util/document.cjs +0 -1
  1263. package/util/document.d.cts +0 -1
  1264. package/util/document.d.ts +0 -1
  1265. package/util/document.js +0 -1
  1266. package/util/math.cjs +0 -1
  1267. package/util/math.d.cts +0 -1
  1268. package/util/math.d.ts +0 -1
  1269. package/util/math.js +0 -1
  1270. package/util/time.cjs +0 -1
  1271. package/util/time.d.cts +0 -1
  1272. package/util/time.d.ts +0 -1
  1273. package/util/time.js +0 -1
  1274. package/vectorstores/memory.cjs +0 -1
  1275. package/vectorstores/memory.d.cts +0 -1
  1276. package/vectorstores/memory.d.ts +0 -1
  1277. package/vectorstores/memory.js +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"runner_utils.js","names":["_chain: Serialized","_inputs: ChainValues","runId: string","run: Run","evaluator: RunEvaluatorLike","example?: Example","evaluator: any","config: RunTreeConfig","callbackManager: CallbackManager","fields: { func: AnyTraceableFunction }","input: RunInput","options?: Partial<RunnableConfig>","evaluator: LLMStringEvaluator","evaluationName: string","formatEvaluatorInputs: EvaluatorInputFormatter","config: EvalConfig | keyof EvaluatorType","evaluators: (RunEvaluator | DynamicRunEvaluator)[]","config: RunEvalConfig<keyof EvaluatorType>","modelOrFactory: ChainOrFactory","configs: RunnableConfig[]","examples: Example[]","chainOrFactory: ChainOrFactory","dataType?: DataType","datasetName: string","options?: RunOnDatasetParams","evaluationConfig: RunEvalConfig | undefined","wrappedRunnable: Runnable","runs: Run[]","evalResults: Record<\n string,\n { run_id: string; execution_time?: number; feedback: Feedback[] }\n >","results: EvalResults","x: unknown"],"sources":["../../src/smith/runner_utils.ts"],"sourcesContent":["import { BaseLanguageModel } from \"@langchain/core/language_models/base\";\nimport { Serialized } from \"@langchain/core/load/serializable\";\nimport { mapStoredMessagesToChatMessages } from \"@langchain/core/messages\";\nimport {\n Runnable,\n RunnableConfig,\n RunnableLambda,\n getCallbackManagerForConfig,\n} from \"@langchain/core/runnables\";\nimport { LangChainTracer } from \"@langchain/core/tracers/tracer_langchain\";\nimport { BaseTracer } from \"@langchain/core/tracers/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { AsyncCaller } from \"@langchain/core/utils/async_caller\";\nimport type {\n CallbackManager,\n CallbackManagerForChainRun,\n} from \"@langchain/core/callbacks/manager\";\nimport {\n Client,\n Example,\n Feedback,\n Run,\n RunTree,\n RunTreeConfig,\n} from \"langsmith\";\nimport { EvaluationResult, RunEvaluator } from \"langsmith/evaluation\";\nimport { DataType } from \"langsmith/schemas\";\nimport type { TraceableFunction } from \"langsmith/singletons/traceable\";\nimport { LLMStringEvaluator } from \"../evaluation/base.js\";\nimport { loadEvaluator } from \"../evaluation/loader.js\";\nimport { EvaluatorType } from \"../evaluation/types.js\";\nimport {\n isOffTheShelfEvaluator,\n type DynamicRunEvaluatorParams,\n type EvalConfig,\n type EvaluatorInputFormatter,\n type RunEvalConfig,\n type RunEvaluatorLike,\n isCustomEvaluator,\n} from \"./config.js\";\nimport { randomName } from \"./name_generation.js\";\nimport { ProgressBar } from \"./progress.js\";\n\nexport type ChainOrFactory =\n | Runnable\n | (() => Runnable)\n | AnyTraceableFunction\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((obj: any) => any)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((obj: any) => Promise<any>)\n | (() => (obj: unknown) => unknown)\n | (() => (obj: unknown) => Promise<unknown>);\n\nclass SingleRunIdExtractor {\n runIdPromiseResolver: (runId: string) => void;\n\n runIdPromise: Promise<string>;\n\n constructor() {\n this.runIdPromise = new Promise<string>((extract) => {\n this.runIdPromiseResolver = extract;\n });\n }\n\n handleChainStart = (\n _chain: Serialized,\n _inputs: ChainValues,\n runId: string\n ) => {\n this.runIdPromiseResolver(runId);\n };\n\n async extract(): Promise<string> {\n return this.runIdPromise;\n }\n}\n\nclass SingleRunExtractor extends BaseTracer {\n runPromiseResolver: (run: Run) => void;\n\n runPromise: Promise<Run>;\n\n /** The name of the callback handler. */\n name = \"single_run_extractor\";\n\n constructor() {\n super();\n this.runPromise = new Promise<Run>((extract) => {\n this.runPromiseResolver = extract;\n });\n }\n\n async persistRun(run: Run) {\n this.runPromiseResolver(run);\n }\n\n async extract(): Promise<Run> {\n return this.runPromise;\n }\n}\n\n/**\n * Wraps an evaluator function + implements the RunEvaluator interface.\n */\nclass DynamicRunEvaluator implements RunEvaluator {\n evaluator: RunnableLambda<DynamicRunEvaluatorParams, EvaluationResult>;\n\n constructor(evaluator: RunEvaluatorLike) {\n this.evaluator = new RunnableLambda({ func: evaluator });\n }\n\n /**\n * Evaluates a run with an optional example and returns the evaluation result.\n * @param run The run to evaluate.\n * @param example The optional example to use for evaluation.\n * @returns A promise that extracts to the evaluation result.\n */\n async evaluateRun(run: Run, example?: Example): Promise<EvaluationResult> {\n const extractor = new SingleRunIdExtractor();\n const tracer = new LangChainTracer({ projectName: \"evaluators\" });\n const result = await this.evaluator.invoke(\n {\n run,\n example,\n input: run.inputs,\n prediction: run.outputs,\n reference: example?.outputs,\n },\n {\n callbacks: [extractor, tracer],\n }\n );\n const runId = await extractor.extract();\n return {\n sourceRunId: runId,\n ...result,\n };\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction isLLMStringEvaluator(evaluator: any): evaluator is LLMStringEvaluator {\n return evaluator && typeof evaluator.evaluateStrings === \"function\";\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AnyTraceableFunction = TraceableFunction<(...any: any[]) => any>;\n\n/**\n * Internal implementation of RunTree, which uses the\n * provided callback manager instead of the internal LangSmith client.\n *\n * The goal of this class is to ensure seamless interop when intergrated\n * with other Runnables.\n */\nclass CallbackManagerRunTree extends RunTree {\n callbackManager: CallbackManager;\n\n activeCallbackManager: CallbackManagerForChainRun | undefined = undefined;\n\n constructor(config: RunTreeConfig, callbackManager: CallbackManager) {\n super(config);\n\n this.callbackManager = callbackManager;\n }\n\n createChild(config: RunTreeConfig): CallbackManagerRunTree {\n const child = new CallbackManagerRunTree(\n {\n ...config,\n parent_run: this,\n project_name: this.project_name,\n client: this.client,\n },\n this.activeCallbackManager?.getChild() ?? this.callbackManager\n );\n this.child_runs.push(child);\n return child;\n }\n\n async postRun(): Promise<void> {\n // how it is translated in comparison to basic RunTree?\n this.activeCallbackManager = await this.callbackManager.handleChainStart(\n typeof this.serialized !== \"object\" &&\n this.serialized != null &&\n \"lc\" in this.serialized\n ? this.serialized\n : {\n id: [\"langchain\", \"smith\", \"CallbackManagerRunTree\"],\n lc: 1,\n type: \"not_implemented\",\n },\n this.inputs,\n this.id,\n this.run_type,\n undefined,\n undefined,\n this.name\n );\n }\n\n async patchRun(): Promise<void> {\n if (this.error) {\n await this.activeCallbackManager?.handleChainError(\n this.error,\n this.id,\n this.parent_run?.id,\n undefined,\n undefined\n );\n } else {\n await this.activeCallbackManager?.handleChainEnd(\n this.outputs ?? {},\n this.id,\n this.parent_run?.id,\n undefined,\n undefined\n );\n }\n }\n}\n\nclass RunnableTraceable<RunInput, RunOutput> extends Runnable<\n RunInput,\n RunOutput\n> {\n lc_serializable = false;\n\n lc_namespace = [\"langchain_core\", \"runnables\"];\n\n protected func: AnyTraceableFunction;\n\n constructor(fields: { func: AnyTraceableFunction }) {\n super(fields);\n\n if (!isLangsmithTraceableFunction(fields.func)) {\n throw new Error(\n \"RunnableTraceable requires a function that is wrapped in traceable higher-order function\"\n );\n }\n\n this.func = fields.func;\n }\n\n async invoke(input: RunInput, options?: Partial<RunnableConfig>) {\n const [config] = this._getOptionsList(options ?? {}, 1);\n const callbackManager = await getCallbackManagerForConfig(config);\n\n const partialConfig =\n \"langsmith:traceable\" in this.func\n ? (this.func[\"langsmith:traceable\"] as RunTreeConfig)\n : { name: \"<lambda>\" };\n\n if (!callbackManager) throw new Error(\"CallbackManager not found\");\n const runTree = new CallbackManagerRunTree(\n {\n ...partialConfig,\n parent_run: callbackManager?._parentRunId\n ? new RunTree({ name: \"<parent>\", id: callbackManager?._parentRunId })\n : undefined,\n },\n callbackManager\n );\n\n if (\n typeof input === \"object\" &&\n input != null &&\n Object.keys(input).length === 1\n ) {\n if (\"args\" in input && Array.isArray(input)) {\n return (await this.func(runTree, ...input)) as RunOutput;\n }\n\n if (\n \"input\" in input &&\n !(\n typeof input === \"object\" &&\n input != null &&\n !Array.isArray(input) &&\n // eslint-disable-next-line no-instanceof/no-instanceof\n !(input instanceof Date)\n )\n ) {\n try {\n return (await this.func(runTree, input.input)) as RunOutput;\n } catch {\n return (await this.func(runTree, input)) as RunOutput;\n }\n }\n }\n\n return (await this.func(runTree, input)) as RunOutput;\n }\n}\n\n/**\n * Wraps an off-the-shelf evaluator (loaded using loadEvaluator; of EvaluatorType[T])\n * and composes with a prepareData function so the user can prepare the trace and\n * dataset data for the evaluator.\n */\nclass PreparedRunEvaluator implements RunEvaluator {\n evaluator: LLMStringEvaluator;\n\n formatEvaluatorInputs: EvaluatorInputFormatter;\n\n isStringEvaluator: boolean;\n\n evaluationName: string;\n\n constructor(\n evaluator: LLMStringEvaluator,\n evaluationName: string,\n formatEvaluatorInputs: EvaluatorInputFormatter\n ) {\n this.evaluator = evaluator;\n this.isStringEvaluator = typeof evaluator?.evaluateStrings === \"function\";\n this.evaluationName = evaluationName;\n this.formatEvaluatorInputs = formatEvaluatorInputs;\n }\n\n static async fromEvalConfig(\n config: EvalConfig | keyof EvaluatorType\n ): Promise<PreparedRunEvaluator> {\n const evaluatorType =\n typeof config === \"string\" ? config : config.evaluatorType;\n const evalConfig = typeof config === \"string\" ? ({} as EvalConfig) : config;\n const evaluator = await loadEvaluator(evaluatorType, evalConfig);\n const feedbackKey = evalConfig?.feedbackKey ?? evaluator?.evaluationName;\n if (!isLLMStringEvaluator(evaluator)) {\n throw new Error(\n `Evaluator of type ${evaluatorType} not yet supported. ` +\n \"Please use a string evaluator, or implement your \" +\n \"evaluation logic as a custom evaluator.\"\n );\n }\n if (!feedbackKey) {\n throw new Error(\n `Evaluator of type ${evaluatorType} must have an evaluationName` +\n ` or feedbackKey. Please manually provide a feedbackKey in the EvalConfig.`\n );\n }\n return new PreparedRunEvaluator(\n evaluator as LLMStringEvaluator,\n feedbackKey,\n evalConfig?.formatEvaluatorInputs\n );\n }\n\n /**\n * Evaluates a run with an optional example and returns the evaluation result.\n * @param run The run to evaluate.\n * @param example The optional example to use for evaluation.\n * @returns A promise that extracts to the evaluation result.\n */\n async evaluateRun(run: Run, example?: Example): Promise<EvaluationResult> {\n const { prediction, input, reference } = this.formatEvaluatorInputs({\n rawInput: run.inputs,\n rawPrediction: run.outputs,\n rawReferenceOutput: example?.outputs,\n run,\n });\n const extractor = new SingleRunIdExtractor();\n const tracer = new LangChainTracer({ projectName: \"evaluators\" });\n if (this.isStringEvaluator) {\n const evalResult = await this.evaluator.evaluateStrings(\n {\n prediction: prediction as string,\n reference: reference as string,\n input: input as string,\n },\n {\n callbacks: [extractor, tracer],\n }\n );\n const runId = await extractor.extract();\n return {\n key: this.evaluationName,\n comment: evalResult?.reasoning,\n sourceRunId: runId,\n ...evalResult,\n };\n }\n throw new Error(\n \"Evaluator not yet supported. \" +\n \"Please use a string evaluator, or implement your \" +\n \"evaluation logic as a custom evaluator.\"\n );\n }\n}\n\nclass LoadedEvalConfig {\n constructor(public evaluators: (RunEvaluator | DynamicRunEvaluator)[]) {}\n\n static async fromRunEvalConfig(\n config: RunEvalConfig<keyof EvaluatorType>\n ): Promise<LoadedEvalConfig> {\n // Custom evaluators are applied \"as-is\"\n const customEvaluators = (\n config?.customEvaluators ?? config.evaluators?.filter(isCustomEvaluator)\n )?.map((evaluator) => {\n if (typeof evaluator === \"function\") {\n return new DynamicRunEvaluator(evaluator);\n } else {\n return evaluator;\n }\n });\n\n const offTheShelfEvaluators = await Promise.all(\n config?.evaluators\n ?.filter(isOffTheShelfEvaluator)\n ?.map(\n async (evaluator) =>\n await PreparedRunEvaluator.fromEvalConfig(evaluator)\n ) ?? []\n );\n return new LoadedEvalConfig(\n (customEvaluators ?? []).concat(offTheShelfEvaluators ?? [])\n );\n }\n}\n\nexport interface RunOnDatasetParams\n extends Omit<RunEvalConfig, \"customEvaluators\"> {\n /**\n * Name of the project for logging and tracking.\n */\n projectName?: string;\n\n /**\n * Additional metadata for the project.\n */\n projectMetadata?: Record<string, unknown>;\n\n /**\n * Client instance for LangSmith service interaction.\n */\n client?: Client;\n\n /**\n * Maximum concurrency level for dataset processing.\n */\n maxConcurrency?: number;\n\n /**\n * @deprecated Pass keys directly to the RunOnDatasetParams instead\n */\n evaluationConfig?: RunEvalConfig;\n}\n\n/**\n * Internals expect a constructor () -> Runnable. This function wraps/coerces\n * the provided LangChain object, custom function, or factory function into\n * a constructor of a runnable.\n * @param modelOrFactory The model or factory to create a wrapped model from.\n * @returns A function that returns the wrapped model.\n * @throws Error if the modelOrFactory is invalid.\n */\nconst createWrappedModel = async (modelOrFactory: ChainOrFactory) => {\n if (Runnable.isRunnable(modelOrFactory)) {\n return () => modelOrFactory;\n }\n if (typeof modelOrFactory === \"function\") {\n if (isLangsmithTraceableFunction(modelOrFactory)) {\n const wrappedModel = new RunnableTraceable({ func: modelOrFactory });\n return () => wrappedModel;\n }\n\n try {\n // If it works with no arguments, assume it's a factory\n let res = (modelOrFactory as () => Runnable)();\n if (\n res &&\n typeof (res as unknown as Promise<Runnable>).then === \"function\"\n ) {\n res = await res;\n }\n return modelOrFactory as () => Runnable;\n } catch {\n // Otherwise, it's a custom UDF, and we'll wrap\n // the function in a lambda\n const wrappedModel = new RunnableLambda({ func: modelOrFactory });\n return () => wrappedModel;\n }\n }\n throw new Error(\"Invalid modelOrFactory\");\n};\n\nconst loadExamples = async ({\n datasetName,\n client,\n projectName,\n}: {\n datasetName: string;\n client: Client;\n projectName: string;\n maxConcurrency: number;\n}) => {\n const exampleIterator = client.listExamples({ datasetName });\n const configs: RunnableConfig[] = [];\n const runExtractors = [];\n const examples = [];\n for await (const example of exampleIterator) {\n const runExtractor = new SingleRunExtractor();\n configs.push({\n callbacks: [\n new LangChainTracer({ exampleId: example.id, projectName }),\n runExtractor,\n ],\n });\n examples.push(example);\n runExtractors.push(runExtractor);\n }\n return {\n configs,\n examples,\n runExtractors,\n };\n};\n\nconst applyEvaluators = async ({\n evaluation,\n runs,\n examples,\n client,\n maxConcurrency,\n}: {\n evaluation: LoadedEvalConfig;\n runs: Run[];\n examples: Example[];\n client: Client;\n maxConcurrency: number;\n}): Promise<{\n [key: string]: {\n execution_time?: number;\n run_id: string;\n feedback: Feedback[];\n };\n}> => {\n // TODO: Parallelize and/or put in callbacks to speed up evals.\n const { evaluators } = evaluation;\n const progress = new ProgressBar({\n total: examples.length,\n format: \"Running Evaluators: {bar} {percentage}% | {value}/{total}\\n\",\n });\n const caller = new AsyncCaller({\n maxConcurrency,\n });\n const requests = runs.map(\n async (\n run,\n i\n ): Promise<{\n run_id: string;\n execution_time?: number;\n feedback: Feedback[];\n }> =>\n caller.call(async () => {\n const evaluatorResults = await Promise.allSettled(\n evaluators.map((evaluator) =>\n client.evaluateRun(run, evaluator, {\n referenceExample: examples[i],\n loadChildRuns: false,\n })\n )\n );\n progress.increment();\n return {\n execution_time:\n run?.end_time && run.start_time\n ? new Date(run.end_time).getTime() -\n new Date(run.start_time).getTime()\n : undefined,\n feedback: evaluatorResults.map((evalResult) =>\n evalResult.status === \"fulfilled\"\n ? evalResult.value\n : evalResult.reason\n ),\n run_id: run.id,\n };\n })\n );\n const results = await Promise.all(requests);\n\n return results.reduce(\n (acc, result, i) => ({\n ...acc,\n [examples[i].id]: result,\n }),\n {}\n );\n};\n\nexport type EvalResults = {\n projectName: string;\n results: {\n [key: string]: {\n execution_time?: number;\n run_id: string;\n feedback: Feedback[];\n };\n };\n};\n\nconst getExamplesInputs = (\n examples: Example[],\n chainOrFactory: ChainOrFactory,\n dataType?: DataType\n) => {\n if (dataType === \"chat\") {\n // For some batty reason, we store the chat dataset differently.\n // { type: \"system\", data: { content: inputs.input } },\n // But we need to create AIMesage, SystemMessage, etc.\n return examples.map(({ inputs }) =>\n mapStoredMessagesToChatMessages(inputs.input)\n );\n }\n // If it's a language model and ALL example inputs have a single value,\n // then we can be friendly and flatten the inputs to a list of strings.\n const isLanguageModel =\n typeof chainOrFactory === \"object\" &&\n typeof (chainOrFactory as BaseLanguageModel)._llmType === \"function\";\n if (\n isLanguageModel &&\n examples.every(({ inputs }) => Object.keys(inputs).length === 1)\n ) {\n return examples.map(({ inputs }) => Object.values(inputs)[0]);\n }\n return examples.map(({ inputs }) => inputs);\n};\n\n/**\n * Evaluates a given model or chain against a specified LangSmith dataset.\n *\n * This function fetches example records from the specified dataset,\n * runs the model or chain against each example, and returns the evaluation\n * results.\n *\n * @param chainOrFactory - A model or factory/constructor function to be evaluated. It can be a\n * Runnable instance, a factory function that returns a Runnable, or a user-defined\n * function or factory.\n *\n * @param datasetName - The name of the dataset against which the evaluation will be\n * performed. This dataset should already be defined and contain the relevant data\n * for evaluation.\n *\n * @param options - (Optional) Additional parameters for the evaluation process:\n * - `evaluators` (RunEvalType[]): Evaluators to apply to a dataset run.\n * - `formatEvaluatorInputs` (EvaluatorInputFormatter): Convert the evaluation data into formats that can be used by the evaluator.\n * - `projectName` (string): Name of the project for logging and tracking.\n * - `projectMetadata` (Record<string, unknown>): Additional metadata for the project.\n * - `client` (Client): Client instance for LangSmith service interaction.\n * - `maxConcurrency` (number): Maximum concurrency level for dataset processing.\n *\n * @returns A promise that resolves to an `EvalResults` object. This object includes\n * detailed results of the evaluation, such as execution time, run IDs, and feedback\n * for each entry in the dataset.\n *\n * @example\n * ```typescript\n * // Example usage for evaluating a model on a dataset\n * async function evaluateModel() {\n * const chain = /* ...create your model or chain...*\\//\n * const datasetName = 'example-dataset';\n * const client = new Client(/* ...config... *\\//);\n *\n * const results = await runOnDataset(chain, datasetName, {\n * evaluators: [/* ...evaluators... *\\//],\n * client,\n * });\n *\n * console.log('Evaluation Results:', results);\n * }\n *\n * evaluateModel();\n * ```\n * In this example, `runOnDataset` is used to evaluate a language model (or a chain of models) against\n * a dataset named 'example-dataset'. The evaluation process is configured using `RunOnDatasetParams[\"evaluators\"]`, which can\n * include both standard and custom evaluators. The `Client` instance is used to interact with LangChain services.\n * The function returns the evaluation results, which can be logged or further processed as needed.\n */\n\nexport async function runOnDataset(\n chainOrFactory: ChainOrFactory,\n datasetName: string,\n options?: RunOnDatasetParams\n) {\n const {\n projectName,\n projectMetadata,\n client,\n maxConcurrency,\n }: RunOnDatasetParams = options ?? {};\n\n const evaluationConfig: RunEvalConfig | undefined =\n options?.evaluationConfig ??\n (options?.evaluators != null\n ? {\n evaluators: options.evaluators,\n formatEvaluatorInputs: options.formatEvaluatorInputs,\n }\n : undefined);\n\n const wrappedModel = await createWrappedModel(chainOrFactory);\n const testClient = client ?? new Client();\n const testProjectName = projectName ?? randomName();\n const dataset = await testClient.readDataset({ datasetName });\n const datasetId = dataset.id;\n const testConcurrency = maxConcurrency ?? 5;\n const { configs, examples, runExtractors } = await loadExamples({\n datasetName,\n client: testClient,\n projectName: testProjectName,\n maxConcurrency: testConcurrency,\n });\n\n await testClient.createProject({\n projectName: testProjectName,\n referenceDatasetId: datasetId,\n projectExtra: { metadata: { ...projectMetadata } },\n });\n const wrappedRunnable: Runnable = new RunnableLambda({\n func: wrappedModel,\n }).withConfig({ runName: \"evaluationRun\" });\n const runInputs = getExamplesInputs(\n examples,\n chainOrFactory,\n dataset.data_type\n );\n const progress = new ProgressBar({\n total: runInputs.length,\n format: \"Predicting: {bar} {percentage}% | {value}/{total}\",\n });\n // TODO: Collect the runs as well.\n await wrappedRunnable\n .withListeners({\n onEnd: () => progress.increment(),\n })\n // TODO: Insert evaluation inline for immediate feedback.\n .batch(runInputs, configs, {\n maxConcurrency,\n returnExceptions: true,\n });\n\n progress.complete();\n const runs: Run[] = [];\n for (let i = 0; i < examples.length; i += 1) {\n runs.push(await runExtractors[i].extract());\n }\n let evalResults: Record<\n string,\n { run_id: string; execution_time?: number; feedback: Feedback[] }\n > = {};\n if (evaluationConfig) {\n const loadedEvalConfig = await LoadedEvalConfig.fromRunEvalConfig(\n evaluationConfig\n );\n evalResults = await applyEvaluators({\n evaluation: loadedEvalConfig,\n runs,\n examples,\n client: testClient,\n maxConcurrency: testConcurrency,\n });\n }\n const results: EvalResults = {\n projectName: testProjectName,\n results: evalResults ?? {},\n };\n return results;\n}\n\nfunction isLangsmithTraceableFunction(x: unknown): x is AnyTraceableFunction {\n return typeof x === \"function\" && \"langsmith:traceable\" in x;\n}\n"],"mappings":";;;;;;;;;;;;;;AAsDA,IAAM,uBAAN,MAA2B;CACzB;CAEA;CAEA,cAAc;EACZ,KAAK,eAAe,IAAI,QAAgB,CAAC,YAAY;GACnD,KAAK,uBAAuB;EAC7B;CACF;CAED,mBAAmB,CACjBA,QACAC,SACAC,UACG;EACH,KAAK,qBAAqB,MAAM;CACjC;CAED,MAAM,UAA2B;AAC/B,SAAO,KAAK;CACb;AACF;AAED,IAAM,qBAAN,cAAiC,WAAW;CAC1C;CAEA;;CAGA,OAAO;CAEP,cAAc;EACZ,OAAO;EACP,KAAK,aAAa,IAAI,QA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EACA,kBAAkB;CACnB,EAAC;CAEJ,SAAS,UAAU;CACnB,MAAMC,OAAc,CAAE;AACtB,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK,GACxC,KAAK,KAAK,MAAM,cAAc,GAAG,SAAS,CAAC;CAE7C,IAAIC,cAGA,CAAE;AACN,KAAI,kBAAkB;EACpB,MAAM,mBAAmB,MAAM,iBAAiB,kBAC9C,iBACD;EACD,cAAc,MAAM,gBAAgB;GAClC,YAAY;GACZ;GACA;GACA,QAAQ;GACR,gBAAgB;EACjB,EAAC;CACH;CACD,MAAMC,UAAuB;EAC3B,aAAa;EACb,SAAS,eAAe,CAAE;CAC3B;AACD,QAAO;AACR;AAED,SAAS,6BAA6BC,GAAuC;AAC3E,QAAO,OAAO,MAAM,cAAc,yBAAyB;AAC5D"}
1
+ {"version":3,"file":"runner_utils.js","names":["_chain: Serialized","_inputs: ChainValues","runId: string","run: Run","evaluator: RunEvaluatorLike","example?: Example","evaluator: any","config: RunTreeConfig","callbackManager: CallbackManager","fields: { func: AnyTraceableFunction }","input: RunInput","options?: Partial<RunnableConfig>","evaluator: LLMStringEvaluator","evaluationName: string","formatEvaluatorInputs: EvaluatorInputFormatter","config: EvalConfig | keyof EvaluatorType","evaluators: (RunEvaluator | DynamicRunEvaluator)[]","config: RunEvalConfig<keyof EvaluatorType>","modelOrFactory: ChainOrFactory","configs: RunnableConfig[]","examples: Example[]","chainOrFactory: ChainOrFactory","dataType?: DataType","datasetName: string","options?: RunOnDatasetParams","evaluationConfig: RunEvalConfig | undefined","wrappedRunnable: Runnable","runs: Run[]","evalResults: Record<\n string,\n { run_id: string; execution_time?: number; feedback: Feedback[] }\n >","results: EvalResults","x: unknown"],"sources":["../../src/smith/runner_utils.ts"],"sourcesContent":["import { BaseLanguageModel } from \"@langchain/core/language_models/base\";\nimport { Serialized } from \"@langchain/core/load/serializable\";\nimport { mapStoredMessagesToChatMessages } from \"@langchain/core/messages\";\nimport {\n Runnable,\n RunnableConfig,\n RunnableLambda,\n getCallbackManagerForConfig,\n} from \"@langchain/core/runnables\";\nimport { LangChainTracer } from \"@langchain/core/tracers/tracer_langchain\";\nimport { BaseTracer } from \"@langchain/core/tracers/base\";\nimport { ChainValues } from \"@langchain/core/utils/types\";\nimport { AsyncCaller } from \"@langchain/core/utils/async_caller\";\nimport type {\n CallbackManager,\n CallbackManagerForChainRun,\n} from \"@langchain/core/callbacks/manager\";\nimport {\n Client,\n Example,\n Feedback,\n Run,\n RunTree,\n RunTreeConfig,\n} from \"langsmith\";\nimport { EvaluationResult, RunEvaluator } from \"langsmith/evaluation\";\nimport { DataType } from \"langsmith/schemas\";\nimport type { TraceableFunction } from \"langsmith/singletons/traceable\";\nimport { LLMStringEvaluator } from \"../evaluation/base.js\";\nimport { loadEvaluator } from \"../evaluation/loader.js\";\nimport { EvaluatorType } from \"../evaluation/types.js\";\nimport {\n isOffTheShelfEvaluator,\n type DynamicRunEvaluatorParams,\n type EvalConfig,\n type EvaluatorInputFormatter,\n type RunEvalConfig,\n type RunEvaluatorLike,\n isCustomEvaluator,\n} from \"./config.js\";\nimport { randomName } from \"./name_generation.js\";\nimport { ProgressBar } from \"./progress.js\";\n\nexport type ChainOrFactory =\n | Runnable\n | (() => Runnable)\n | AnyTraceableFunction\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((obj: any) => any)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n | ((obj: any) => Promise<any>)\n | (() => (obj: unknown) => unknown)\n | (() => (obj: unknown) => Promise<unknown>);\n\nclass SingleRunIdExtractor {\n runIdPromiseResolver: (runId: string) => void;\n\n runIdPromise: Promise<string>;\n\n constructor() {\n this.runIdPromise = new Promise<string>((extract) => {\n this.runIdPromiseResolver = extract;\n });\n }\n\n handleChainStart = (\n _chain: Serialized,\n _inputs: ChainValues,\n runId: string\n ) => {\n this.runIdPromiseResolver(runId);\n };\n\n async extract(): Promise<string> {\n return this.runIdPromise;\n }\n}\n\nclass SingleRunExtractor extends BaseTracer {\n runPromiseResolver: (run: Run) => void;\n\n runPromise: Promise<Run>;\n\n /** The name of the callback handler. */\n name = \"single_run_extractor\";\n\n constructor() {\n super();\n this.runPromise = new Promise<Run>((extract) => {\n this.runPromiseResolver = extract;\n });\n }\n\n async persistRun(run: Run) {\n this.runPromiseResolver(run);\n }\n\n async extract(): Promise<Run> {\n return this.runPromise;\n }\n}\n\n/**\n * Wraps an evaluator function + implements the RunEvaluator interface.\n */\nclass DynamicRunEvaluator implements RunEvaluator {\n evaluator: RunnableLambda<DynamicRunEvaluatorParams, EvaluationResult>;\n\n constructor(evaluator: RunEvaluatorLike) {\n this.evaluator = new RunnableLambda({ func: evaluator });\n }\n\n /**\n * Evaluates a run with an optional example and returns the evaluation result.\n * @param run The run to evaluate.\n * @param example The optional example to use for evaluation.\n * @returns A promise that extracts to the evaluation result.\n */\n async evaluateRun(run: Run, example?: Example): Promise<EvaluationResult> {\n const extractor = new SingleRunIdExtractor();\n const tracer = new LangChainTracer({ projectName: \"evaluators\" });\n const result = await this.evaluator.invoke(\n {\n run,\n example,\n input: run.inputs,\n prediction: run.outputs,\n reference: example?.outputs,\n },\n {\n callbacks: [extractor, tracer],\n }\n );\n const runId = await extractor.extract();\n return {\n sourceRunId: runId,\n ...result,\n };\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction isLLMStringEvaluator(evaluator: any): evaluator is LLMStringEvaluator {\n return evaluator && typeof evaluator.evaluateStrings === \"function\";\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AnyTraceableFunction = TraceableFunction<(...any: any[]) => any>;\n\n/**\n * Internal implementation of RunTree, which uses the\n * provided callback manager instead of the internal LangSmith client.\n *\n * The goal of this class is to ensure seamless interop when intergrated\n * with other Runnables.\n */\nclass CallbackManagerRunTree extends RunTree {\n callbackManager: CallbackManager;\n\n activeCallbackManager: CallbackManagerForChainRun | undefined = undefined;\n\n constructor(config: RunTreeConfig, callbackManager: CallbackManager) {\n super(config);\n\n this.callbackManager = callbackManager;\n }\n\n createChild(config: RunTreeConfig): CallbackManagerRunTree {\n const child = new CallbackManagerRunTree(\n {\n ...config,\n parent_run: this,\n project_name: this.project_name,\n client: this.client,\n },\n this.activeCallbackManager?.getChild() ?? this.callbackManager\n );\n this.child_runs.push(child);\n return child;\n }\n\n async postRun(): Promise<void> {\n // how it is translated in comparison to basic RunTree?\n this.activeCallbackManager = await this.callbackManager.handleChainStart(\n typeof this.serialized !== \"object\" &&\n this.serialized != null &&\n \"lc\" in this.serialized\n ? this.serialized\n : {\n id: [\"langchain\", \"smith\", \"CallbackManagerRunTree\"],\n lc: 1,\n type: \"not_implemented\",\n },\n this.inputs,\n this.id,\n this.run_type,\n undefined,\n undefined,\n this.name\n );\n }\n\n async patchRun(): Promise<void> {\n if (this.error) {\n await this.activeCallbackManager?.handleChainError(\n this.error,\n this.id,\n this.parent_run?.id,\n undefined,\n undefined\n );\n } else {\n await this.activeCallbackManager?.handleChainEnd(\n this.outputs ?? {},\n this.id,\n this.parent_run?.id,\n undefined,\n undefined\n );\n }\n }\n}\n\nclass RunnableTraceable<RunInput, RunOutput> extends Runnable<\n RunInput,\n RunOutput\n> {\n lc_serializable = false;\n\n lc_namespace = [\"langchain_core\", \"runnables\"];\n\n protected func: AnyTraceableFunction;\n\n constructor(fields: { func: AnyTraceableFunction }) {\n super(fields);\n\n if (!isLangsmithTraceableFunction(fields.func)) {\n throw new Error(\n \"RunnableTraceable requires a function that is wrapped in traceable higher-order function\"\n );\n }\n\n this.func = fields.func;\n }\n\n async invoke(input: RunInput, options?: Partial<RunnableConfig>) {\n const [config] = this._getOptionsList(options ?? {}, 1);\n const callbackManager = await getCallbackManagerForConfig(config);\n\n const partialConfig =\n \"langsmith:traceable\" in this.func\n ? (this.func[\"langsmith:traceable\"] as RunTreeConfig)\n : { name: \"<lambda>\" };\n\n if (!callbackManager) throw new Error(\"CallbackManager not found\");\n const runTree = new CallbackManagerRunTree(\n {\n ...partialConfig,\n parent_run: callbackManager?._parentRunId\n ? new RunTree({ name: \"<parent>\", id: callbackManager?._parentRunId })\n : undefined,\n },\n callbackManager\n );\n\n if (\n typeof input === \"object\" &&\n input != null &&\n Object.keys(input).length === 1\n ) {\n if (\"args\" in input && Array.isArray(input)) {\n return (await this.func(runTree, ...input)) as RunOutput;\n }\n\n if (\n \"input\" in input &&\n !(\n typeof input === \"object\" &&\n input != null &&\n !Array.isArray(input) &&\n // eslint-disable-next-line no-instanceof/no-instanceof\n !(input instanceof Date)\n )\n ) {\n try {\n return (await this.func(runTree, input.input)) as RunOutput;\n } catch {\n return (await this.func(runTree, input)) as RunOutput;\n }\n }\n }\n\n return (await this.func(runTree, input)) as RunOutput;\n }\n}\n\n/**\n * Wraps an off-the-shelf evaluator (loaded using loadEvaluator; of EvaluatorType[T])\n * and composes with a prepareData function so the user can prepare the trace and\n * dataset data for the evaluator.\n */\nclass PreparedRunEvaluator implements RunEvaluator {\n evaluator: LLMStringEvaluator;\n\n formatEvaluatorInputs: EvaluatorInputFormatter;\n\n isStringEvaluator: boolean;\n\n evaluationName: string;\n\n constructor(\n evaluator: LLMStringEvaluator,\n evaluationName: string,\n formatEvaluatorInputs: EvaluatorInputFormatter\n ) {\n this.evaluator = evaluator;\n this.isStringEvaluator = typeof evaluator?.evaluateStrings === \"function\";\n this.evaluationName = evaluationName;\n this.formatEvaluatorInputs = formatEvaluatorInputs;\n }\n\n static async fromEvalConfig(\n config: EvalConfig | keyof EvaluatorType\n ): Promise<PreparedRunEvaluator> {\n const evaluatorType =\n typeof config === \"string\" ? config : config.evaluatorType;\n const evalConfig = typeof config === \"string\" ? ({} as EvalConfig) : config;\n const evaluator = await loadEvaluator(evaluatorType, evalConfig);\n const feedbackKey = evalConfig?.feedbackKey ?? evaluator?.evaluationName;\n if (!isLLMStringEvaluator(evaluator)) {\n throw new Error(\n `Evaluator of type ${evaluatorType} not yet supported. ` +\n \"Please use a string evaluator, or implement your \" +\n \"evaluation logic as a custom evaluator.\"\n );\n }\n if (!feedbackKey) {\n throw new Error(\n `Evaluator of type ${evaluatorType} must have an evaluationName` +\n ` or feedbackKey. Please manually provide a feedbackKey in the EvalConfig.`\n );\n }\n return new PreparedRunEvaluator(\n evaluator as LLMStringEvaluator,\n feedbackKey,\n evalConfig?.formatEvaluatorInputs\n );\n }\n\n /**\n * Evaluates a run with an optional example and returns the evaluation result.\n * @param run The run to evaluate.\n * @param example The optional example to use for evaluation.\n * @returns A promise that extracts to the evaluation result.\n */\n async evaluateRun(run: Run, example?: Example): Promise<EvaluationResult> {\n const { prediction, input, reference } = this.formatEvaluatorInputs({\n rawInput: run.inputs,\n rawPrediction: run.outputs,\n rawReferenceOutput: example?.outputs,\n run,\n });\n const extractor = new SingleRunIdExtractor();\n const tracer = new LangChainTracer({ projectName: \"evaluators\" });\n if (this.isStringEvaluator) {\n const evalResult = await this.evaluator.evaluateStrings(\n {\n prediction: prediction as string,\n reference: reference as string,\n input: input as string,\n },\n {\n callbacks: [extractor, tracer],\n }\n );\n const runId = await extractor.extract();\n return {\n key: this.evaluationName,\n comment: evalResult?.reasoning,\n sourceRunId: runId,\n ...evalResult,\n };\n }\n throw new Error(\n \"Evaluator not yet supported. \" +\n \"Please use a string evaluator, or implement your \" +\n \"evaluation logic as a custom evaluator.\"\n );\n }\n}\n\nclass LoadedEvalConfig {\n constructor(public evaluators: (RunEvaluator | DynamicRunEvaluator)[]) {}\n\n static async fromRunEvalConfig(\n config: RunEvalConfig<keyof EvaluatorType>\n ): Promise<LoadedEvalConfig> {\n // Custom evaluators are applied \"as-is\"\n const customEvaluators = (\n config?.customEvaluators ?? config.evaluators?.filter(isCustomEvaluator)\n )?.map((evaluator) => {\n if (typeof evaluator === \"function\") {\n return new DynamicRunEvaluator(evaluator);\n } else {\n return evaluator;\n }\n });\n\n const offTheShelfEvaluators = await Promise.all(\n config?.evaluators\n ?.filter(isOffTheShelfEvaluator)\n ?.map(\n async (evaluator) =>\n await PreparedRunEvaluator.fromEvalConfig(evaluator)\n ) ?? []\n );\n return new LoadedEvalConfig(\n (customEvaluators ?? []).concat(offTheShelfEvaluators ?? [])\n );\n }\n}\n\nexport interface RunOnDatasetParams\n extends Omit<RunEvalConfig, \"customEvaluators\"> {\n /**\n * Name of the project for logging and tracking.\n */\n projectName?: string;\n\n /**\n * Additional metadata for the project.\n */\n projectMetadata?: Record<string, unknown>;\n\n /**\n * Client instance for LangSmith service interaction.\n */\n client?: Client;\n\n /**\n * Maximum concurrency level for dataset processing.\n */\n maxConcurrency?: number;\n\n /**\n * @deprecated Pass keys directly to the RunOnDatasetParams instead\n */\n evaluationConfig?: RunEvalConfig;\n}\n\n/**\n * Internals expect a constructor () -> Runnable. This function wraps/coerces\n * the provided LangChain object, custom function, or factory function into\n * a constructor of a runnable.\n * @param modelOrFactory The model or factory to create a wrapped model from.\n * @returns A function that returns the wrapped model.\n * @throws Error if the modelOrFactory is invalid.\n */\nconst createWrappedModel = async (modelOrFactory: ChainOrFactory) => {\n if (Runnable.isRunnable(modelOrFactory)) {\n return () => modelOrFactory;\n }\n if (typeof modelOrFactory === \"function\") {\n if (isLangsmithTraceableFunction(modelOrFactory)) {\n const wrappedModel = new RunnableTraceable({ func: modelOrFactory });\n return () => wrappedModel;\n }\n\n try {\n // If it works with no arguments, assume it's a factory\n let res = (modelOrFactory as () => Runnable)();\n if (\n res &&\n typeof (res as unknown as Promise<Runnable>).then === \"function\"\n ) {\n res = await res;\n }\n return modelOrFactory as () => Runnable;\n } catch {\n // Otherwise, it's a custom UDF, and we'll wrap\n // the function in a lambda\n const wrappedModel = new RunnableLambda({ func: modelOrFactory });\n return () => wrappedModel;\n }\n }\n throw new Error(\"Invalid modelOrFactory\");\n};\n\nconst loadExamples = async ({\n datasetName,\n client,\n projectName,\n}: {\n datasetName: string;\n client: Client;\n projectName: string;\n maxConcurrency: number;\n}) => {\n const exampleIterator = client.listExamples({ datasetName });\n const configs: RunnableConfig[] = [];\n const runExtractors = [];\n const examples = [];\n for await (const example of exampleIterator) {\n const runExtractor = new SingleRunExtractor();\n configs.push({\n callbacks: [\n new LangChainTracer({ exampleId: example.id, projectName }),\n runExtractor,\n ],\n });\n examples.push(example);\n runExtractors.push(runExtractor);\n }\n return {\n configs,\n examples,\n runExtractors,\n };\n};\n\nconst applyEvaluators = async ({\n evaluation,\n runs,\n examples,\n client,\n maxConcurrency,\n}: {\n evaluation: LoadedEvalConfig;\n runs: Run[];\n examples: Example[];\n client: Client;\n maxConcurrency: number;\n}): Promise<{\n [key: string]: {\n execution_time?: number;\n run_id: string;\n feedback: Feedback[];\n };\n}> => {\n // TODO: Parallelize and/or put in callbacks to speed up evals.\n const { evaluators } = evaluation;\n const progress = new ProgressBar({\n total: examples.length,\n format: \"Running Evaluators: {bar} {percentage}% | {value}/{total}\\n\",\n });\n const caller = new AsyncCaller({\n maxConcurrency,\n });\n const requests = runs.map(\n async (\n run,\n i\n ): Promise<{\n run_id: string;\n execution_time?: number;\n feedback: Feedback[];\n }> =>\n caller.call(async () => {\n const evaluatorResults = await Promise.allSettled(\n evaluators.map((evaluator) =>\n client.evaluateRun(run, evaluator, {\n referenceExample: examples[i],\n loadChildRuns: false,\n })\n )\n );\n progress.increment();\n return {\n execution_time:\n run?.end_time && run.start_time\n ? new Date(run.end_time).getTime() -\n new Date(run.start_time).getTime()\n : undefined,\n feedback: evaluatorResults.map((evalResult) =>\n evalResult.status === \"fulfilled\"\n ? evalResult.value\n : evalResult.reason\n ),\n run_id: run.id,\n };\n })\n );\n const results = await Promise.all(requests);\n\n return results.reduce(\n (acc, result, i) => ({\n ...acc,\n [examples[i].id]: result,\n }),\n {}\n );\n};\n\nexport type EvalResults = {\n projectName: string;\n results: {\n [key: string]: {\n execution_time?: number;\n run_id: string;\n feedback: Feedback[];\n };\n };\n};\n\nconst getExamplesInputs = (\n examples: Example[],\n chainOrFactory: ChainOrFactory,\n dataType?: DataType\n) => {\n if (dataType === \"chat\") {\n // For some batty reason, we store the chat dataset differently.\n // { type: \"system\", data: { content: inputs.input } },\n // But we need to create AIMesage, SystemMessage, etc.\n return examples.map(({ inputs }) =>\n mapStoredMessagesToChatMessages(inputs.input)\n );\n }\n // If it's a language model and ALL example inputs have a single value,\n // then we can be friendly and flatten the inputs to a list of strings.\n const isLanguageModel =\n typeof chainOrFactory === \"object\" &&\n typeof (chainOrFactory as BaseLanguageModel)._llmType === \"function\";\n if (\n isLanguageModel &&\n examples.every(({ inputs }) => Object.keys(inputs).length === 1)\n ) {\n return examples.map(({ inputs }) => Object.values(inputs)[0]);\n }\n return examples.map(({ inputs }) => inputs);\n};\n\n/**\n * Evaluates a given model or chain against a specified LangSmith dataset.\n *\n * This function fetches example records from the specified dataset,\n * runs the model or chain against each example, and returns the evaluation\n * results.\n *\n * @param chainOrFactory - A model or factory/constructor function to be evaluated. It can be a\n * Runnable instance, a factory function that returns a Runnable, or a user-defined\n * function or factory.\n *\n * @param datasetName - The name of the dataset against which the evaluation will be\n * performed. This dataset should already be defined and contain the relevant data\n * for evaluation.\n *\n * @param options - (Optional) Additional parameters for the evaluation process:\n * - `evaluators` (RunEvalType[]): Evaluators to apply to a dataset run.\n * - `formatEvaluatorInputs` (EvaluatorInputFormatter): Convert the evaluation data into formats that can be used by the evaluator.\n * - `projectName` (string): Name of the project for logging and tracking.\n * - `projectMetadata` (Record<string, unknown>): Additional metadata for the project.\n * - `client` (Client): Client instance for LangSmith service interaction.\n * - `maxConcurrency` (number): Maximum concurrency level for dataset processing.\n *\n * @returns A promise that resolves to an `EvalResults` object. This object includes\n * detailed results of the evaluation, such as execution time, run IDs, and feedback\n * for each entry in the dataset.\n *\n * @example\n * ```typescript\n * // Example usage for evaluating a model on a dataset\n * async function evaluateModel() {\n * const chain = /* ...create your model or chain...*\\//\n * const datasetName = 'example-dataset';\n * const client = new Client(/* ...config... *\\//);\n *\n * const results = await runOnDataset(chain, datasetName, {\n * evaluators: [/* ...evaluators... *\\//],\n * client,\n * });\n *\n * console.log('Evaluation Results:', results);\n * }\n *\n * evaluateModel();\n * ```\n * In this example, `runOnDataset` is used to evaluate a language model (or a chain of models) against\n * a dataset named 'example-dataset'. The evaluation process is configured using `RunOnDatasetParams[\"evaluators\"]`, which can\n * include both standard and custom evaluators. The `Client` instance is used to interact with LangChain services.\n * The function returns the evaluation results, which can be logged or further processed as needed.\n */\n\nexport async function runOnDataset(\n chainOrFactory: ChainOrFactory,\n datasetName: string,\n options?: RunOnDatasetParams\n) {\n const {\n projectName,\n projectMetadata,\n client,\n maxConcurrency,\n }: RunOnDatasetParams = options ?? {};\n\n const evaluationConfig: RunEvalConfig | undefined =\n options?.evaluationConfig ??\n (options?.evaluators != null\n ? {\n evaluators: options.evaluators,\n formatEvaluatorInputs: options.formatEvaluatorInputs,\n }\n : undefined);\n\n const wrappedModel = await createWrappedModel(chainOrFactory);\n const testClient = client ?? new Client();\n const testProjectName = projectName ?? randomName();\n const dataset = await testClient.readDataset({ datasetName });\n const datasetId = dataset.id;\n const testConcurrency = maxConcurrency ?? 5;\n const { configs, examples, runExtractors } = await loadExamples({\n datasetName,\n client: testClient,\n projectName: testProjectName,\n maxConcurrency: testConcurrency,\n });\n\n await testClient.createProject({\n projectName: testProjectName,\n referenceDatasetId: datasetId,\n projectExtra: { metadata: { ...projectMetadata } },\n });\n const wrappedRunnable: Runnable = new RunnableLambda({\n func: wrappedModel,\n }).withConfig({ runName: \"evaluationRun\" });\n const runInputs = getExamplesInputs(\n examples,\n chainOrFactory,\n dataset.data_type\n );\n const progress = new ProgressBar({\n total: runInputs.length,\n format: \"Predicting: {bar} {percentage}% | {value}/{total}\",\n });\n // TODO: Collect the runs as well.\n await wrappedRunnable\n .withListeners({\n onEnd: () => progress.increment(),\n })\n // TODO: Insert evaluation inline for immediate feedback.\n .batch(runInputs, configs, {\n maxConcurrency,\n returnExceptions: true,\n });\n\n progress.complete();\n const runs: Run[] = [];\n for (let i = 0; i < examples.length; i += 1) {\n runs.push(await runExtractors[i].extract());\n }\n let evalResults: Record<\n string,\n { run_id: string; execution_time?: number; feedback: Feedback[] }\n > = {};\n if (evaluationConfig) {\n const loadedEvalConfig = await LoadedEvalConfig.fromRunEvalConfig(\n evaluationConfig\n );\n evalResults = await applyEvaluators({\n evaluation: loadedEvalConfig,\n runs,\n examples,\n client: testClient,\n maxConcurrency: testConcurrency,\n });\n }\n const results: EvalResults = {\n projectName: testProjectName,\n results: evalResults ?? {},\n };\n return results;\n}\n\nfunction isLangsmithTraceableFunction(x: unknown): x is AnyTraceableFunction {\n return typeof x === \"function\" && \"langsmith:traceable\" in x;\n}\n"],"mappings":";;;;;;;;;;;;AAsDA,IAAM,uBAAN,MAA2B;CACzB;CAEA;CAEA,cAAc;EACZ,KAAK,eAAe,IAAI,QAAgB,CAAC,YAAY;GACnD,KAAK,uBAAuB;EAC7B;CACF;CAED,mBAAmB,CACjBA,QACAC,SACAC,UACG;EACH,KAAK,qBAAqB,MAAM;CACjC;CAED,MAAM,UAA2B;AAC/B,SAAO,KAAK;CACb;AACF;AAED,IAAM,qBAAN,cAAiC,WAAW;CAC1C;CAEA;;CAGA,OAAO;CAEP,cAAc;EACZ,OAAO;EACP,KAAK,aAAa,IAAI,QAAa,CAAC,YAAY;GAC9C,KAAK,qBAAqB;EAC3B;CACF;CAED,MAAM,WAAWC,KAAU;EACzB,KAAK,mBAAmB,IAAI;CAC7B;CAED,MAAM,UAAwB;AAC5B,SAAO,KAAK;CACb;AACF;;;;AAKD,IAAM,sBAAN,MAAkD;CAChD;CAEA,YAAYC,WAA6B;EACvC,KAAK,YAAY,IAAI,eAAe,EAAE,MAAM,UAAW;CACxD;;;;;;;CAQD,MAAM,YAAYD,KAAUE,SAA8C;EACxE,MAAM,YAAY,IAAI;EACtB,MAAM,SAAS,IAAI,gBAAgB,EAAE,aAAa,aAAc;EAChE,MAAM,SAAS,MAAM,KAAK,UAAU,OAClC;GACE;GACA;GACA,OAAO,IAAI;GACX,YAAY,IAAI;GAChB,WAAW,SAAS;EACrB,GACD,EACE,WAAW,CAAC,WAAW,MAAO,EAC/B,EACF;EACD,MAAM,Q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sql_db.d.cts","names":["DataSource","DataSourceT","DataSourceOptions","Serializable","SerializedSqlDatabase","SqlDatabaseDataSourceParams","SqlDatabaseOptionsParams","SqlTable","SqlDatabase","_langchain_core_load_serializable0","SerializedNotImplemented","Array","Record","Promise"],"sources":["../src/sql_db.d.ts"],"sourcesContent":["import type { DataSource as DataSourceT, DataSourceOptions } from \"typeorm\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { SerializedSqlDatabase, SqlDatabaseDataSourceParams, SqlDatabaseOptionsParams, SqlTable } from \"./util/sql_utils.js\";\nexport type { SqlDatabaseDataSourceParams, SqlDatabaseOptionsParams };\n/**\n * Class that represents a SQL database in the LangChain framework.\n *\n * @security **Security Notice**\n * This class 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 */\nexport declare class SqlDatabase extends Serializable implements SqlDatabaseOptionsParams, SqlDatabaseDataSourceParams {\n lc_namespace: string[];\n toJSON(): import(\"@langchain/core/load/serializable\").SerializedNotImplemented;\n appDataSourceOptions: DataSourceOptions;\n appDataSource: DataSourceT;\n allTables: Array<SqlTable>;\n includesTables: Array<string>;\n ignoreTables: Array<string>;\n sampleRowsInTableInfo: number;\n customDescription?: Record<string, string>;\n protected constructor(fields: SqlDatabaseDataSourceParams);\n static fromDataSourceParams(fields: SqlDatabaseDataSourceParams): Promise<SqlDatabase>;\n static fromOptionsParams(fields: SqlDatabaseOptionsParams): Promise<SqlDatabase>;\n /**\n * Get information about specified tables.\n *\n * Follows best practices as specified in: Rajkumar et al, 2022\n * (https://arxiv.org/abs/2204.00498)\n *\n * If `sample_rows_in_table_info`, the specified number of sample rows will be\n * appended to each table description. This can increase performance as\n * demonstrated in the paper.\n */\n getTableInfo(targetTables?: Array<string>): Promise<string>;\n /**\n * Execute a SQL command and return a string representing the results.\n * If the statement returns rows, a string of the results is returned.\n * If the statement returns no rows, an empty string is returned.\n */\n run(command: string, fetch?: \"all\" | \"one\"): Promise<string>;\n serialize(): SerializedSqlDatabase;\n /** @ignore */\n static imports(): Promise<{\n DataSource: typeof DataSourceT;\n }>;\n}\n//# sourceMappingURL=sql_db.d.ts.map"],"mappings":";;;;;;;;;AAkBA;;;;;;;;;;;;AAWsEa,cAXjDL,WAAAA,SAAoBL,YAAAA,YAAwBG,wBAWKO,EAXqBR,2BAWrBQ,CAAAA;EACjCP,YAAAA,EAAAA,MAAAA,EAAAA;EAAmCE,MAAAA,CAAAA,CAAAA,EAZxCC,kCAAAA,CAE0BC,wBAUcF;EAARK,oBAAAA,EATtCX,iBASsCW;EAWhCF,aAAAA,EAnBbV,UAmBaU;EAAgBE,SAAAA,EAlBjCF,KAkBiCE,CAlB3BN,QAkB2BM,CAAAA;EAMCA,cAAAA,EAvB7BF,KAuB6BE,CAAAA,MAAAA,CAAAA;EAChCT,YAAAA,EAvBCO,KAuBDP,CAAAA,MAAAA,CAAAA;EAGUH,qBAAAA,EAAAA,MAAAA;EADLY,iBAAAA,CAAAA,EAvBED,MAuBFC,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA;EAhCmBV,UAAAA,WAAAA,CAAAA,MAAAA,EAUPE,2BAVOF;EAAwBG,OAAAA,oBAAAA,CAAAA,MAAAA,EAWzBD,2BAXyBC,CAAAA,EAWKO,OAXLP,CAWaE,WAXbF,CAAAA;EAA0BD,OAAAA,iBAAAA,CAAAA,MAAAA,EAYtDC,wBAZsDD,CAAAA,EAY3BQ,OAZ2BR,CAYnBG,WAZmBH,CAAAA;EAA2B;;;;;;;;;;8BAuBtFM,gBAAgBE;;;;;;+CAMCA;eAChCT;;oBAEKS;uBACKZ"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sql_db.d.ts","names":["DataSource","DataSourceT","DataSourceOptions","Serializable","SerializedSqlDatabase","SqlDatabaseDataSourceParams","SqlDatabaseOptionsParams","SqlTable","SqlDatabase","_langchain_core_load_serializable0","SerializedNotImplemented","Array","Record","Promise"],"sources":["../src/sql_db.d.ts"],"sourcesContent":["import type { DataSource as DataSourceT, DataSourceOptions } from \"typeorm\";\nimport { Serializable } from \"@langchain/core/load/serializable\";\nimport { SerializedSqlDatabase, SqlDatabaseDataSourceParams, SqlDatabaseOptionsParams, SqlTable } from \"./util/sql_utils.js\";\nexport type { SqlDatabaseDataSourceParams, SqlDatabaseOptionsParams };\n/**\n * Class that represents a SQL database in the LangChain framework.\n *\n * @security **Security Notice**\n * This class 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 */\nexport declare class SqlDatabase extends Serializable implements SqlDatabaseOptionsParams, SqlDatabaseDataSourceParams {\n lc_namespace: string[];\n toJSON(): import(\"@langchain/core/load/serializable\").SerializedNotImplemented;\n appDataSourceOptions: DataSourceOptions;\n appDataSource: DataSourceT;\n allTables: Array<SqlTable>;\n includesTables: Array<string>;\n ignoreTables: Array<string>;\n sampleRowsInTableInfo: number;\n customDescription?: Record<string, string>;\n protected constructor(fields: SqlDatabaseDataSourceParams);\n static fromDataSourceParams(fields: SqlDatabaseDataSourceParams): Promise<SqlDatabase>;\n static fromOptionsParams(fields: SqlDatabaseOptionsParams): Promise<SqlDatabase>;\n /**\n * Get information about specified tables.\n *\n * Follows best practices as specified in: Rajkumar et al, 2022\n * (https://arxiv.org/abs/2204.00498)\n *\n * If `sample_rows_in_table_info`, the specified number of sample rows will be\n * appended to each table description. This can increase performance as\n * demonstrated in the paper.\n */\n getTableInfo(targetTables?: Array<string>): Promise<string>;\n /**\n * Execute a SQL command and return a string representing the results.\n * If the statement returns rows, a string of the results is returned.\n * If the statement returns no rows, an empty string is returned.\n */\n run(command: string, fetch?: \"all\" | \"one\"): Promise<string>;\n serialize(): SerializedSqlDatabase;\n /** @ignore */\n static imports(): Promise<{\n DataSource: typeof DataSourceT;\n }>;\n}\n//# sourceMappingURL=sql_db.d.ts.map"],"mappings":";;;;;;;;;AAkBA;;;;;;;;;;;;AAWsEa,cAXjDL,WAAAA,SAAoBL,YAAAA,YAAwBG,wBAWKO,EAXqBR,2BAWrBQ,CAAAA;EACjCP,YAAAA,EAAAA,MAAAA,EAAAA;EAAmCE,MAAAA,CAAAA,CAAAA,EAZxCC,kCAAAA,CAE0BC,wBAUcF;EAARK,oBAAAA,EATtCX,iBASsCW;EAWhCF,aAAAA,EAnBbV,UAmBaU;EAAgBE,SAAAA,EAlBjCF,KAkBiCE,CAlB3BN,QAkB2BM,CAAAA;EAMCA,cAAAA,EAvB7BF,KAuB6BE,CAAAA,MAAAA,CAAAA;EAChCT,YAAAA,EAvBCO,KAuBDP,CAAAA,MAAAA,CAAAA;EAGUH,qBAAAA,EAAAA,MAAAA;EADLY,iBAAAA,CAAAA,EAvBED,MAuBFC,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA;EAhCmBV,UAAAA,WAAAA,CAAAA,MAAAA,EAUPE,2BAVOF;EAAwBG,OAAAA,oBAAAA,CAAAA,MAAAA,EAWzBD,2BAXyBC,CAAAA,EAWKO,OAXLP,CAWaE,WAXbF,CAAAA;EAA0BD,OAAAA,iBAAAA,CAAAA,MAAAA,EAYtDC,wBAZsDD,CAAAA,EAY3BQ,OAZ2BR,CAYnBG,WAZmBH,CAAAA;EAA2B;;;;;;;;;;8BAuBtFM,gBAAgBE;;;;;;+CAMCA;eAChCT;;oBAEKS;uBACKZ"}
@@ -8,7 +8,6 @@ import { BaseStore } from "@langchain/core/stores";
8
8
  * allowing for the encoding and decoding of keys and values. It extends
9
9
  * the BaseStore class.
10
10
  */
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
11
  declare class EncoderBackedStore<K, V, SerializedType = any> extends BaseStore<K, V> {
13
12
  lc_namespace: string[];
14
13
  store: BaseStore<string, SerializedType>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoder_backed.d.cts","names":["Document","BaseStore","EncoderBackedStore","K","V","SerializedType","Promise","AsyncGenerator","createDocumentStoreFromByteStore","Uint8Array","Record","ArrayBufferLike"],"sources":["../../src/storage/encoder_backed.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseStore } from \"@langchain/core/stores\";\n/**\n * Class that provides a layer of abstraction over the base storage,\n * allowing for the encoding and decoding of keys and values. It extends\n * the BaseStore class.\n */\nexport declare class EncoderBackedStore<K, V, SerializedType = any> extends BaseStore<K, V> {\n lc_namespace: string[];\n store: BaseStore<string, SerializedType>;\n keyEncoder: (key: K) => string;\n valueSerializer: (value: V) => SerializedType;\n valueDeserializer: (value: SerializedType) => V;\n constructor(fields: {\n store: BaseStore<string, SerializedType>;\n keyEncoder: (key: K) => string;\n valueSerializer: (value: V) => SerializedType;\n valueDeserializer: (value: SerializedType) => V;\n });\n /**\n * Method to get multiple keys at once. It works with the encoded keys and\n * serialized values.\n * @param keys Array of keys to get\n * @returns Promise that resolves with an array of values or undefined for each key\n */\n mget(keys: K[]): Promise<(V | undefined)[]>;\n /**\n * Method to set multiple keys at once. It works with the encoded keys and\n * serialized values.\n * @param keyValuePairs Array of key-value pairs to set\n * @returns Promise that resolves when the operation is complete\n */\n mset(keyValuePairs: [K, V][]): Promise<void>;\n /**\n * Method to delete multiple keys at once. It works with the encoded keys.\n * @param keys Array of keys to delete\n * @returns Promise that resolves when the operation is complete\n */\n mdelete(keys: K[]): Promise<void>;\n /**\n * Method to yield keys. It works with the encoded keys.\n * @param prefix Optional prefix to filter keys\n * @returns AsyncGenerator that yields keys\n */\n yieldKeys(prefix?: string | undefined): AsyncGenerator<string | K>;\n}\nexport declare function createDocumentStoreFromByteStore(store: BaseStore<string, Uint8Array>): EncoderBackedStore<string,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A,EAR7IL,OAQ6IK,CAAAA,IAAAA,CAAAA;EAAXF;;AAAxC;;;0CAFtEF,wBAAwBJ;;iBAE5CK,gCAAAA,QAAwCP,kBAAkBQ,cAAcP,2BAA2BF,SAASU,sBAAsBD,WAAWE"}
@@ -8,7 +8,6 @@ import { BaseStore } from "@langchain/core/stores";
8
8
  * allowing for the encoding and decoding of keys and values. It extends
9
9
  * the BaseStore class.
10
10
  */
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
11
  declare class EncoderBackedStore<K, V, SerializedType = any> extends BaseStore<K, V> {
13
12
  lc_namespace: string[];
14
13
  store: BaseStore<string, SerializedType>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoder_backed.d.ts","names":["Document","BaseStore","EncoderBackedStore","K","V","SerializedType","Promise","AsyncGenerator","createDocumentStoreFromByteStore","Uint8Array","Record","ArrayBufferLike"],"sources":["../../src/storage/encoder_backed.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseStore } from \"@langchain/core/stores\";\n/**\n * Class that provides a layer of abstraction over the base storage,\n * allowing for the encoding and decoding of keys and values. It extends\n * the BaseStore class.\n */\nexport declare class EncoderBackedStore<K, V, SerializedType = any> extends BaseStore<K, V> {\n lc_namespace: string[];\n store: BaseStore<string, SerializedType>;\n keyEncoder: (key: K) => string;\n valueSerializer: (value: V) => SerializedType;\n valueDeserializer: (value: SerializedType) => V;\n constructor(fields: {\n store: BaseStore<string, SerializedType>;\n keyEncoder: (key: K) => string;\n valueSerializer: (value: V) => SerializedType;\n valueDeserializer: (value: SerializedType) => V;\n });\n /**\n * Method to get multiple keys at once. It works with the encoded keys and\n * serialized values.\n * @param keys Array of keys to get\n * @returns Promise that resolves with an array of values or undefined for each key\n */\n mget(keys: K[]): Promise<(V | undefined)[]>;\n /**\n * Method to set multiple keys at once. It works with the encoded keys and\n * serialized values.\n * @param keyValuePairs Array of key-value pairs to set\n * @returns Promise that resolves when the operation is complete\n */\n mset(keyValuePairs: [K, V][]): Promise<void>;\n /**\n * Method to delete multiple keys at once. It works with the encoded keys.\n * @param keys Array of keys to delete\n * @returns Promise that resolves when the operation is complete\n */\n mdelete(keys: K[]): Promise<void>;\n /**\n * Method to yield keys. It works with the encoded keys.\n * @param prefix Optional prefix to filter keys\n * @returns AsyncGenerator that yields keys\n */\n yieldKeys(prefix?: string | undefined): AsyncGenerator<string | K>;\n}\nexport declare function createDocumentStoreFromByteStore(store: BaseStore<string, Uint8Array>): EncoderBackedStore<string, Document<Record<string, any>>, Uint8Array<ArrayBufferLike>>;\n//# sourceMappingURL=encoder_backed.d.ts.map"],"mappings":";;;;;;;AAOA;;;AAE6BK,cAFRH,kBAEQG,CAAAA,CAAAA,EAAAA,CAAAA,EAAAA,iBAAAA,GAAAA,CAAAA,SAF+CJ,SAE/CI,CAFyDF,CAEzDE,EAF4DD,CAE5DC,CAAAA,CAAAA;EAAlBJ,YAAAA,EAAAA,MAAAA,EAAAA;EACWE,KAAAA,EADXF,SACWE,CAAAA,MAAAA,EADOE,cACPF,CAAAA;EACOC,UAAAA,EAAAA,CAAAA,GAAAA,EADPD,CACOC,EAAAA,GAAAA,MAAAA;EAAMC,eAAAA,EAAAA,CAAAA,KAAAA,EAAND,CAAMC,EAAAA,GAAAA,cAAAA;EACJA,iBAAAA,EAAAA,CAAAA,KAAAA,EAAAA,cAAAA,EAAAA,GAAmBD,CAAnBC;EAAmBD,WAAAA,CAAAA,MAAAA,EAAAA;IAEjBC,KAAAA,EAAlBJ,SAAkBI,CAAAA,MAAAA,EAAAA,cAAAA,CAAAA;IAAlBJ,UAAAA,EAAAA,CAAAA,GAAAA,EACWE,CADXF,EAAAA,GAAAA,MAAAA;IACWE,eAAAA,EAAAA,CAAAA,KAAAA,EACOC,CADPD,EAAAA,GACaE,cADbF;IACOC,iBAAAA,EAAAA,CAAAA,KAAAA,EACEC,cADFD,EAAAA,GACqBA,CADrBA;EAAMC,CAAAA;EACJA;;;;;;EAePD,IAAAA,CAAAA,IAAAA,EAPbD,CAOaC,EAAAA,CAAAA,EAPPE,OAOOF,CAAAA,CAPEA,CAOFA,GAAAA,SAAAA,CAAAA,EAAAA,CAAAA;EAAOE;;;;;;EAzBkD,IAAA,CAAA,aAAA,EAAA,CAyB5DH,CAzB4D,EAyBzDC,CAzByD,CAAA,EAAA,CAAA,EAyBlDE,OAzBkD,CAAA,IAAA,CAAA;EAuC7DE;;;;;EAA6IG,OAAAA,CAAAA,IAAAA,EARnJR,CAQmJQ,EAAAA,CAAAA,EAR7IL,OAQ6IK,CAAAA,IAAAA,CAAAA;EAAXF;;AAAxC;;;0CAFtEF,wBAAwBJ;;iBAE5CK,gCAAAA,QAAwCP,kBAAkBQ,cAAcP,2BAA2BF,SAASU,sBAAsBD,WAAWE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file_system.d.cts","names":["BaseStore","LocalFileStore","Uint8Array","ArrayBufferLike","Promise","AsyncGenerator"],"sources":["../../src/storage/file_system.d.ts"],"sourcesContent":["import { BaseStore } from \"@langchain/core/stores\";\n/**\n * File system implementation of the BaseStore using a dictionary. Used for\n * storing key-value pairs in the file system.\n * @example\n * ```typescript\n * const store = await LocalFileStore.fromPath(\"./messages\");\n * await store.mset(\n * Array.from({ length: 5 }).map((_, index) => [\n * `message:id:${index}`,\n * new TextEncoder().encode(\n * JSON.stringify(\n * index % 2 === 0\n * ? new AIMessage(\"ai stuff...\")\n * : new HumanMessage(\"human stuff...\"),\n * ),\n * ),\n * ]),\n * );\n * const retrievedMessages = await store.mget([\"message:id:0\", \"message:id:1\"]);\n * console.log(retrievedMessages.map((v) => new TextDecoder().decode(v)));\n * for await (const key of store.yieldKeys(\"message:id:\")) {\n * await store.mdelete([key]);\n * }\n * ```\n *\n * @security **Security Notice** This file store\n * can alter any text file in the provided directory and any subfolders.\n * Make sure that the path you specify when initializing the store is free\n * of other files.\n */\nexport declare class LocalFileStore extends BaseStore<string, Uint8Array> {\n lc_namespace: string[];\n rootPath: string;\n constructor(fields: {\n rootPath: string;\n });\n private getParsedFile;\n private setFileContent;\n /**\n * Returns the full path of the file where the value of the given key is stored.\n * @param key the key to get the full path for\n */\n private getFullPath;\n /**\n * Retrieves the values associated with the given keys from the store.\n * @param keys Keys to retrieve values for.\n * @returns Array of values associated with the given keys.\n */\n mget(keys: string[]): Promise<(Uint8Array<ArrayBufferLike> | undefined)[]>;\n /**\n * Sets the values for the given keys in the store.\n * @param keyValuePairs Array of key-value pairs to set in the store.\n * @returns Promise that resolves when all key-value pairs have been set.\n */\n mset(keyValuePairs: [string, Uint8Array][]): Promise<void>;\n /**\n * Deletes the given keys and their associated values from the store.\n * @param keys Keys to delete from the store.\n * @returns Promise that resolves when all keys have been deleted.\n */\n mdelete(keys: string[]): Promise<void>;\n /**\n * Asynchronous generator that yields keys from the store. If a prefix is\n * provided, it only yields keys that start with the prefix.\n * @param prefix Optional prefix to filter keys.\n * @returns AsyncGenerator that yields keys from the store.\n */\n yieldKeys(prefix?: string): AsyncGenerator<string>;\n /**\n * Static method for initializing the class.\n * Preforms a check to see if the directory exists, and if not, creates it.\n * @param path Path to the directory.\n * @returns Promise that resolves to an instance of the class.\n */\n static fromPath(rootPath: string): Promise<LocalFileStore>;\n}\n//# sourceMappingURL=file_system.d.ts.map"],"mappings":";;;;;;AA+BA;;;;;;;;;;;;AAAqD;;;;;;;;;;;;;;;;cAAhCC,cAAAA,SAAuBD,kBAAkBE;;;;;;;;;;;;;;;;;;wBAkBpCE,SAASF,WAAWC;;;;;;+BAMbD,gBAAgBE;;;;;;2BAMpBA;;;;;;;8BAOGC;;;;;;;qCAOOD,QAAQH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file_system.d.ts","names":["BaseStore","LocalFileStore","Uint8Array","ArrayBufferLike","Promise","AsyncGenerator"],"sources":["../../src/storage/file_system.d.ts"],"sourcesContent":["import { BaseStore } from \"@langchain/core/stores\";\n/**\n * File system implementation of the BaseStore using a dictionary. Used for\n * storing key-value pairs in the file system.\n * @example\n * ```typescript\n * const store = await LocalFileStore.fromPath(\"./messages\");\n * await store.mset(\n * Array.from({ length: 5 }).map((_, index) => [\n * `message:id:${index}`,\n * new TextEncoder().encode(\n * JSON.stringify(\n * index % 2 === 0\n * ? new AIMessage(\"ai stuff...\")\n * : new HumanMessage(\"human stuff...\"),\n * ),\n * ),\n * ]),\n * );\n * const retrievedMessages = await store.mget([\"message:id:0\", \"message:id:1\"]);\n * console.log(retrievedMessages.map((v) => new TextDecoder().decode(v)));\n * for await (const key of store.yieldKeys(\"message:id:\")) {\n * await store.mdelete([key]);\n * }\n * ```\n *\n * @security **Security Notice** This file store\n * can alter any text file in the provided directory and any subfolders.\n * Make sure that the path you specify when initializing the store is free\n * of other files.\n */\nexport declare class LocalFileStore extends BaseStore<string, Uint8Array> {\n lc_namespace: string[];\n rootPath: string;\n constructor(fields: {\n rootPath: string;\n });\n private getParsedFile;\n private setFileContent;\n /**\n * Returns the full path of the file where the value of the given key is stored.\n * @param key the key to get the full path for\n */\n private getFullPath;\n /**\n * Retrieves the values associated with the given keys from the store.\n * @param keys Keys to retrieve values for.\n * @returns Array of values associated with the given keys.\n */\n mget(keys: string[]): Promise<(Uint8Array<ArrayBufferLike> | undefined)[]>;\n /**\n * Sets the values for the given keys in the store.\n * @param keyValuePairs Array of key-value pairs to set in the store.\n * @returns Promise that resolves when all key-value pairs have been set.\n */\n mset(keyValuePairs: [string, Uint8Array][]): Promise<void>;\n /**\n * Deletes the given keys and their associated values from the store.\n * @param keys Keys to delete from the store.\n * @returns Promise that resolves when all keys have been deleted.\n */\n mdelete(keys: string[]): Promise<void>;\n /**\n * Asynchronous generator that yields keys from the store. If a prefix is\n * provided, it only yields keys that start with the prefix.\n * @param prefix Optional prefix to filter keys.\n * @returns AsyncGenerator that yields keys from the store.\n */\n yieldKeys(prefix?: string): AsyncGenerator<string>;\n /**\n * Static method for initializing the class.\n * Preforms a check to see if the directory exists, and if not, creates it.\n * @param path Path to the directory.\n * @returns Promise that resolves to an instance of the class.\n */\n static fromPath(rootPath: string): Promise<LocalFileStore>;\n}\n//# sourceMappingURL=file_system.d.ts.map"],"mappings":";;;;;;AA+BA;;;;;;;;;;;;AAAqD;;;;;;;;;;;;;;;;cAAhCC,cAAAA,SAAuBD,kBAAkBE;;;;;;;;;;;;;;;;;;wBAkBpCE,SAASF,WAAWC;;;;;;+BAMbD,gBAAgBE;;;;;;2BAMpBA;;;;;;;8BAOGC;;;;;;;qCAOOD,QAAQH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.cts","names":["Document","Docstore","Promise","Record"],"sources":["../../../src/stores/doc/base.d.ts"],"sourcesContent":["import { type Document } from \"@langchain/core/documents\";\n/**\n * Abstract class for a document store. All document stores should extend\n * this class.\n */\nexport declare abstract class Docstore {\n abstract search(search: string): Promise<Document>;\n abstract add(texts: Record<string, Document>): Promise<void>;\n}\n//# sourceMappingURL=base.d.ts.map"],"mappings":";;;;;;AAKA;;AACqCE,uBADPD,QAAAA,CACOC;EACEF,SAAAA,MAAAA,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,EADFE,OACEF,CADMA,QACNA,CAAAA;EAAfG,SAAAA,GAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,MAAAA,EAAeH,QAAfG,CAAAA,CAAAA,EAA2BD,OAA3BC,CAAAA,IAAAA,CAAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","names":["Document","Docstore","Promise","Record"],"sources":["../../../src/stores/doc/base.d.ts"],"sourcesContent":["import { type Document } from \"@langchain/core/documents\";\n/**\n * Abstract class for a document store. All document stores should extend\n * this class.\n */\nexport declare abstract class Docstore {\n abstract search(search: string): Promise<Document>;\n abstract add(texts: Record<string, Document>): Promise<void>;\n}\n//# sourceMappingURL=base.d.ts.map"],"mappings":";;;;;;AAKA;;AACqCE,uBADPD,QAAAA,CACOC;EACEF,SAAAA,MAAAA,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,EADFE,OACEF,CADMA,QACNA,CAAAA;EAAfG,SAAAA,GAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,MAAAA,EAAeH,QAAfG,CAAAA,CAAAA,EAA2BD,OAA3BC,CAAAA,IAAAA,CAAAA"}
@@ -26,7 +26,6 @@ declare class InMemoryDocstore extends Docstore implements BaseStoreInterface<st
26
26
  mget(keys: string[]): Promise<Document[]>;
27
27
  mset(keyValuePairs: [string, Document][]): Promise<void>;
28
28
  mdelete(_keys: string[]): Promise<void>;
29
- // eslint-disable-next-line require-yield
30
29
  yieldKeys(_prefix?: string): AsyncGenerator<string>;
31
30
  }
32
31
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in_memory.d.cts","names":["Document","BaseStoreInterface","Docstore","InMemoryDocstore","Map","Promise","Record","AsyncGenerator","SynchronousInMemoryDocstore"],"sources":["../../../src/stores/doc/in_memory.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseStoreInterface } from \"@langchain/core/stores\";\nimport { Docstore } from \"./base.js\";\n/**\n * Class for storing and retrieving documents in memory asynchronously.\n * Extends the Docstore class.\n */\nexport declare class InMemoryDocstore extends Docstore implements BaseStoreInterface<string, Document> {\n _docs: Map<string, Document>;\n constructor(docs?: Map<string, Document>);\n /**\n * Searches for a document in the store based on its ID.\n * @param search The ID of the document to search for.\n * @returns The document with the given ID.\n */\n search(search: string): Promise<Document>;\n /**\n * Adds new documents to the store.\n * @param texts An object where the keys are document IDs and the values are the documents themselves.\n * @returns Void\n */\n add(texts: Record<string, Document>): Promise<void>;\n mget(keys: string[]): Promise<Document[]>;\n mset(keyValuePairs: [string, Document][]): Promise<void>;\n mdelete(_keys: string[]): Promise<void>;\n yieldKeys(_prefix?: string): AsyncGenerator<string>;\n}\n/**\n * Class for storing and retrieving documents in memory synchronously.\n */\nexport declare class SynchronousInMemoryDocstore {\n _docs: Map<string, Document>;\n constructor(docs?: Map<string, Document>);\n /**\n * Searches for a document in the store based on its ID.\n * @param search The ID of the document to search for.\n * @returns The document with the given ID.\n */\n search(search: string): Document;\n /**\n * Adds new documents to the store.\n * @param texts An object where the keys are document IDs and the values are the documents themselves.\n * @returns Void\n */\n add(texts: Record<string, Document>): void;\n}\n//# sourceMappingURL=in_memory.d.ts.map"],"mappings":";;;;;;;;AAOA;;AACuBA,cADFG,gBAAAA,SAAyBD,QAAAA,YAAoBD,kBAC3CD,CAAAA,MAAAA,EADsEA,QACtEA,CAAAA,CAAAA;EAAZI,KAAAA,EAAAA,GAAAA,CAAAA,MAAAA,EAAYJ,QAAZI,CAAAA;EACwBJ,WAAAA,CAAAA,IAAAA,CAAAA,EAAZI,GAAYJ,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA;EAAZI;;;;;EAYmBC,MAAAA,CAAAA,MAAAA,EAAAA,MAAAA,CAAAA,EANdA,OAMcA,CANNL,QAMMK,CAAAA;EACRL;;;;;EAGDO,GAAAA,CAAAA,KAAAA,EAJlBD,MAIkBC,CAAAA,MAAAA,EAJHP,QAIGO,CAAAA,CAAAA,EAJSF,OAITE,CAAAA,IAAAA,CAAAA;EAlBaL,IAAAA,CAAAA,IAAAA,EAAAA,MAAAA,EAAAA,CAAAA,EAepBG,OAfoBH,CAeZF,QAfYE,EAAAA,CAAAA;EAAoBD,IAAAA,CAAAA,aAAAA,EAAAA,CAAAA,MAAAA,EAgBjCD,QAhBiCC,CAAAA,EAAAA,CAAAA,EAgBnBI,OAhBmBJ,CAAAA,IAAAA,CAAAA;EAAkB,OAAA,CAAA,KAAA,EAAA,MAAA,EAAA,CAAA,EAiBtDI,OAjBsD,CAAA,IAAA,CAAA;EAuB/DG,SAAAA,CAAAA,OAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EALYD,cAKe,CAAA,MAAA,CAAA;;;;;AAQpBP,cARPQ,2BAAAA,CAQOR;EAMEA,KAAAA,EAbnBI,GAamBJ,CAAAA,MAAAA,EAbPA,QAaOA,CAAAA;EAAfM,WAAAA,CAAAA,IAAAA,CAAAA,EAZQF,GAYRE,CAAAA,MAAAA,EAZoBN,QAYpBM,CAAAA;EAAM;;;;;0BANON;;;;;;aAMbM,eAAeN"}
@@ -26,7 +26,6 @@ declare class InMemoryDocstore extends Docstore implements BaseStoreInterface<st
26
26
  mget(keys: string[]): Promise<Document[]>;
27
27
  mset(keyValuePairs: [string, Document][]): Promise<void>;
28
28
  mdelete(_keys: string[]): Promise<void>;
29
- // eslint-disable-next-line require-yield
30
29
  yieldKeys(_prefix?: string): AsyncGenerator<string>;
31
30
  }
32
31
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in_memory.d.ts","names":["Document","BaseStoreInterface","Docstore","InMemoryDocstore","Map","Promise","Record","AsyncGenerator","SynchronousInMemoryDocstore"],"sources":["../../../src/stores/doc/in_memory.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseStoreInterface } from \"@langchain/core/stores\";\nimport { Docstore } from \"./base.js\";\n/**\n * Class for storing and retrieving documents in memory asynchronously.\n * Extends the Docstore class.\n */\nexport declare class InMemoryDocstore extends Docstore implements BaseStoreInterface<string, Document> {\n _docs: Map<string, Document>;\n constructor(docs?: Map<string, Document>);\n /**\n * Searches for a document in the store based on its ID.\n * @param search The ID of the document to search for.\n * @returns The document with the given ID.\n */\n search(search: string): Promise<Document>;\n /**\n * Adds new documents to the store.\n * @param texts An object where the keys are document IDs and the values are the documents themselves.\n * @returns Void\n */\n add(texts: Record<string, Document>): Promise<void>;\n mget(keys: string[]): Promise<Document[]>;\n mset(keyValuePairs: [string, Document][]): Promise<void>;\n mdelete(_keys: string[]): Promise<void>;\n yieldKeys(_prefix?: string): AsyncGenerator<string>;\n}\n/**\n * Class for storing and retrieving documents in memory synchronously.\n */\nexport declare class SynchronousInMemoryDocstore {\n _docs: Map<string, Document>;\n constructor(docs?: Map<string, Document>);\n /**\n * Searches for a document in the store based on its ID.\n * @param search The ID of the document to search for.\n * @returns The document with the given ID.\n */\n search(search: string): Document;\n /**\n * Adds new documents to the store.\n * @param texts An object where the keys are document IDs and the values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}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.cts","names":["Serializable","BaseFileStore","Promise"],"sources":["../../../src/stores/file/base.d.ts"],"sourcesContent":["import { Serializable } from \"@langchain/core/load/serializable\";\n/**\n * Base class for all file stores. All file stores should extend this\n * class.\n */\nexport declare abstract class BaseFileStore extends Serializable {\n abstract readFile(path: string): Promise<string>;\n abstract writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=base.d.ts.map"],"mappings":";;;;;;AAKA;;AAEwDE,uBAF1BD,aAAAA,SAAsBD,YAAAA,CAEIE;EAFJF,SAAAA,QAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EACfE,OADeF,CAAAA,MAAAA,CAAAA;EAAY,SAAA,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,CAAA,EAERE,OAFQ,CAAA,IAAA,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","names":["Serializable","BaseFileStore","Promise"],"sources":["../../../src/stores/file/base.d.ts"],"sourcesContent":["import { Serializable } from \"@langchain/core/load/serializable\";\n/**\n * Base class for all file stores. All file stores should extend this\n * class.\n */\nexport declare abstract class BaseFileStore extends Serializable {\n abstract readFile(path: string): Promise<string>;\n abstract writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=base.d.ts.map"],"mappings":";;;;;;AAKA;;AAEwDE,uBAF1BD,aAAAA,SAAsBD,YAAAA,CAEIE;EAFJF,SAAAA,QAAAA,CAAAA,IAAAA,EAAAA,MAAAA,CAAAA,EACfE,OADeF,CAAAA,MAAAA,CAAAA;EAAY,SAAA,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,CAAA,EAERE,OAFQ,CAAA,IAAA,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in_memory.d.cts","names":["BaseFileStore","InMemoryFileStore","Promise"],"sources":["../../../src/stores/file/in_memory.d.ts"],"sourcesContent":["import { BaseFileStore } from \"./base.js\";\n/**\n * Class that provides an in-memory file storage system. It extends the\n * BaseFileStore class and implements its readFile and writeFile methods.\n * This class is typically used in scenarios where temporary, in-memory\n * file storage is needed, such as during testing or for caching files in\n * memory for quick access.\n */\nexport declare class InMemoryFileStore extends BaseFileStore {\n lc_namespace: string[];\n private files;\n /**\n * Retrieves the contents of a file given its path. If the file does not\n * exist, it throws an error.\n * @param path The path of the file to read.\n * @returns The contents of the file as a string.\n */\n readFile(path: string): Promise<string>;\n /**\n * Writes contents to a file at a given path. If the file already exists,\n * it overwrites the existing contents.\n * @param path The path of the file to write.\n * @param contents The contents to write to the file.\n * @returns Void\n */\n writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=in_memory.d.ts.map"],"mappings":";;;;;;AAQA;;;;AAA4D;cAAvCC,iBAAAA,SAA0BD,aAAAA;;;;;;;;;0BASnBE;;;;;;;;6CAQmBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"in_memory.d.ts","names":["BaseFileStore","InMemoryFileStore","Promise"],"sources":["../../../src/stores/file/in_memory.d.ts"],"sourcesContent":["import { BaseFileStore } from \"./base.js\";\n/**\n * Class that provides an in-memory file storage system. It extends the\n * BaseFileStore class and implements its readFile and writeFile methods.\n * This class is typically used in scenarios where temporary, in-memory\n * file storage is needed, such as during testing or for caching files in\n * memory for quick access.\n */\nexport declare class InMemoryFileStore extends BaseFileStore {\n lc_namespace: string[];\n private files;\n /**\n * Retrieves the contents of a file given its path. If the file does not\n * exist, it throws an error.\n * @param path The path of the file to read.\n * @returns The contents of the file as a string.\n */\n readFile(path: string): Promise<string>;\n /**\n * Writes contents to a file at a given path. If the file already exists,\n * it overwrites the existing contents.\n * @param path The path of the file to write.\n * @param contents The contents to write to the file.\n * @returns Void\n */\n writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=in_memory.d.ts.map"],"mappings":";;;;;;AAQA;;;;AAA4D;cAAvCC,iBAAAA,SAA0BD,aAAAA;;;;;;;;;0BASnBE;;;;;;;;6CAQmBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.cts","names":["BaseFileStore","NodeFileStore","Promise"],"sources":["../../../src/stores/file/node.d.ts"],"sourcesContent":["import { BaseFileStore } from \"./base.js\";\n/**\n * Specific implementation of the `BaseFileStore` class for Node.js.\n * Provides methods to read and write files in a specific base path.\n */\nexport declare class NodeFileStore extends BaseFileStore {\n basePath: string;\n lc_namespace: string[];\n constructor(basePath?: string);\n /**\n * Reads the contents of a file at the given path.\n * @param path Path of the file to read.\n * @returns The contents of the file as a string.\n */\n readFile(path: string): Promise<string>;\n /**\n * Writes the given contents to a file at the specified path.\n * @param path Path of the file to write to.\n * @param contents Contents to write to the file.\n * @returns Promise that resolves when the file has been written.\n */\n writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=node.d.ts.map"],"mappings":";;;;;;AAKA;;AAgB+CE,cAhB1BD,aAAAA,SAAsBD,aAAAA,CAgBIE;EAhBJF,QAAAA,EAAAA,MAAAA;EAAa,YAAA,EAAA,MAAA,EAAA;;;;;;;0BAS5BE;;;;;;;6CAOmBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","names":["BaseFileStore","NodeFileStore","Promise"],"sources":["../../../src/stores/file/node.d.ts"],"sourcesContent":["import { BaseFileStore } from \"./base.js\";\n/**\n * Specific implementation of the `BaseFileStore` class for Node.js.\n * Provides methods to read and write files in a specific base path.\n */\nexport declare class NodeFileStore extends BaseFileStore {\n basePath: string;\n lc_namespace: string[];\n constructor(basePath?: string);\n /**\n * Reads the contents of a file at the given path.\n * @param path Path of the file to read.\n * @returns The contents of the file as a string.\n */\n readFile(path: string): Promise<string>;\n /**\n * Writes the given contents to a file at the specified path.\n * @param path Path of the file to write to.\n * @param contents Contents to write to the file.\n * @returns Promise that resolves when the file has been written.\n */\n writeFile(path: string, contents: string): Promise<void>;\n}\n//# sourceMappingURL=node.d.ts.map"],"mappings":";;;;;;AAKA;;AAgB+CE,cAhB1BD,aAAAA,SAAsBD,aAAAA,CAgBIE;EAhBJF,QAAAA,EAAAA,MAAAA;EAAa,YAAA,EAAA,MAAA,EAAA;;;;;;;0BAS5BE;;;;;;;6CAOmBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_splitter.d.cts","names":[],"sources":["../src/text_splitter.d.ts"],"sourcesContent":["export * from \"@langchain/textsplitters\";\n//# sourceMappingURL=text_splitter.d.ts.map"],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text_splitter.d.ts","names":[],"sources":["../src/text_splitter.d.ts"],"sourcesContent":["export * from \"@langchain/textsplitters\";\n//# sourceMappingURL=text_splitter.d.ts.map"],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.d.cts","names":["DynamicTool","DynamicToolInput","BaseChain","ChainToolInput","Omit","ChainTool","chain"],"sources":["../../src/tools/chain.d.ts"],"sourcesContent":["import { DynamicTool, DynamicToolInput } from \"@langchain/core/tools\";\nimport { BaseChain } from \"../chains/base.js\";\n/**\n * Interface for the input parameters of the ChainTool constructor.\n * Extends the DynamicToolInput interface, replacing the 'func' property\n * with a 'chain' property.\n */\nexport interface ChainToolInput extends Omit<DynamicToolInput, \"func\"> {\n chain: BaseChain;\n}\n/**\n * Class that extends DynamicTool for creating tools that can run chains.\n * Takes an instance of a class that extends BaseChain as a parameter in\n * its constructor and uses it to run the chain when its 'func' method is\n * called.\n */\nexport declare class ChainTool extends DynamicTool {\n static lc_name(): string;\n chain: BaseChain;\n constructor({ chain, ...rest }: ChainToolInput);\n}\n//# sourceMappingURL=chain.d.ts.map"],"mappings":";;;;;;;AAOA;;;AAAwCI,UAAvBD,cAAAA,SAAuBC,IAAAA,CAAKH,gBAALG,EAAAA,MAAAA,CAAAA,CAAAA;EAAI,KAAA,EACjCF,SADiC;AAS5C;;;;;AAAkD;;cAA7BG,SAAAA,SAAkBL,WAAAA;;SAE5BE;;;;KACyBC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain.d.ts","names":["DynamicTool","DynamicToolInput","BaseChain","ChainToolInput","Omit","ChainTool","chain"],"sources":["../../src/tools/chain.d.ts"],"sourcesContent":["import { DynamicTool, DynamicToolInput } from \"@langchain/core/tools\";\nimport { BaseChain } from \"../chains/base.js\";\n/**\n * Interface for the input parameters of the ChainTool constructor.\n * Extends the DynamicToolInput interface, replacing the 'func' property\n * with a 'chain' property.\n */\nexport interface ChainToolInput extends Omit<DynamicToolInput, \"func\"> {\n chain: BaseChain;\n}\n/**\n * Class that extends DynamicTool for creating tools that can run chains.\n * Takes an instance of a class that extends BaseChain as a parameter in\n * its constructor and uses it to run the chain when its 'func' method is\n * called.\n */\nexport declare class ChainTool extends DynamicTool {\n static lc_name(): string;\n chain: BaseChain;\n constructor({ chain, ...rest }: ChainToolInput);\n}\n//# sourceMappingURL=chain.d.ts.map"],"mappings":";;;;;;;AAOA;;;AAAwCI,UAAvBD,cAAAA,SAAuBC,IAAAA,CAAKH,gBAALG,EAAAA,MAAAA,CAAAA,CAAAA;EAAI,KAAA,EACjCF,SADiC;AAS5C;;;;;AAAkD;;cAA7BG,SAAAA,SAAkBL,WAAAA;;SAE5BE;;;;KACyBC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.cts","names":["z","StructuredTool","ToolParams","InferInteropZodOutput","BaseFileStore","ReadFileParams","readSchema","ZodString","ZodTypeAny","ZodObject","ReadToolSchema","ReadFileTool","store","file_path","Promise","WriteFileParams","writeSchema","WriteToolSchema","WriteFileTool","text"],"sources":["../../src/tools/fs.d.ts"],"sourcesContent":["import { z } from \"zod/v3\";\nimport { StructuredTool, ToolParams } from \"@langchain/core/tools\";\nimport { InferInteropZodOutput } from \"@langchain/core/utils/types\";\nimport { BaseFileStore } from \"../stores/file/base.js\";\n/**\n * Interface for parameters required by the ReadFileTool class.\n */\ninterface ReadFileParams extends ToolParams {\n store: BaseFileStore;\n}\ndeclare const readSchema: z.ZodObject<{\n file_path: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n file_path: string;\n}, {\n file_path: string;\n}>;\ntype ReadToolSchema = typeof readSchema;\n/**\n * Class for reading files from the disk. Extends the StructuredTool\n * class.\n */\nexport declare class ReadFileTool extends StructuredTool {\n static lc_name(): string;\n schema: z.ZodObject<{\n file_path: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n file_path: string;\n }, {\n file_path: string;\n }>;\n name: string;\n description: string;\n store: BaseFileStore;\n constructor({ store }: ReadFileParams);\n _call({ file_path }: InferInteropZodOutput<ReadToolSchema>): Promise<string>;\n}\n/**\n * Interface for parameters required by the WriteFileTool class.\n */\ninterface WriteFileParams extends ToolParams {\n store: BaseFileStore;\n}\ndeclare const writeSchema: z.ZodObject<{\n file_path: z.ZodString;\n text: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n file_path: string;\n text: string;\n}, {\n file_path: string;\n text: string;\n}>;\ntype WriteToolSchema = typeof writeSchema;\n/**\n * Class for writing data to files on the disk. Extends the StructuredTool\n * class.\n */\nexport declare class WriteFileTool extends StructuredTool {\n static lc_name(): string;\n schema: z.ZodObject<{\n file_path: z.ZodString;\n text: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n file_path: string;\n text: string;\n }, {\n file_path: string;\n text: string;\n }>;\n name: string;\n description: string;\n store: BaseFileStore;\n constructor({ store, ...rest }: WriteFileParams);\n _call({ file_path, text }: InferInteropZodOutput<WriteToolSchema>): Promise<string>;\n}\nexport {};\n//# sourceMappingURL=fs.d.ts.map"],"mappings":";;;;;;;;;AAGuD;AAIZ,UAAjCK,cAAAA,SAAuBH,UAS/B,CAAA;EALeK,KAAAA,EAHNH,aAGMG;;cADHD,UAAcG,EAAFT,CAAAA,CAAES,SAAAA,CAAAA;EAAS,SAAA,EACtBT,CAAAA,CAAEO,SADoB;AAAA,CAAA,EAAA,OAOhCG,EALOV,CAAAA,CAAEQ,UAKK,EAAA;EAKEG,SAAAA,EAAAA,MAAY;CAGdX,EAAEO;EACHC,SAA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;SASPJ;;;;KACyBW;;;;KACLZ,sBAAsBc,mBAAmBH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fs.d.ts","names":["z","StructuredTool","ToolParams","InferInteropZodOutput","BaseFileStore","ReadFileParams","readSchema","ZodString","ZodTypeAny","ZodObject","ReadToolSchema","ReadFileTool","store","file_path","Promise","WriteFileParams","writeSchema","WriteToolSchema","WriteFileTool","text"],"sources":["../../src/tools/fs.d.ts"],"sourcesContent":["import { z } from \"zod/v3\";\nimport { StructuredTool, ToolParams } from \"@langchain/core/tools\";\nimport { InferInteropZodOutput } from \"@langchain/core/utils/types\";\nimport { BaseFileStore } from \"../stores/file/base.js\";\n/**\n * Interface for parameters required by the ReadFileTool class.\n */\ninterface ReadFileParams extends ToolParams {\n store: BaseFileStore;\n}\ndeclare const readSchema: z.ZodObject<{\n file_path: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n file_path: string;\n}, {\n file_path: string;\n}>;\ntype ReadToolSchema = typeof readSchema;\n/**\n * Class for reading files from the disk. Extends the StructuredTool\n * class.\n */\nexport declare class ReadFileTool extends StructuredTool {\n static lc_name(): string;\n schema: z.ZodObject<{\n file_path: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n file_path: string;\n }, {\n file_path: string;\n }>;\n name: string;\n description: string;\n store: BaseFileStore;\n constructor({ store }: ReadFileParams);\n _call({ file_path }: InferInteropZodOutput<ReadToolSchema>): Promise<string>;\n}\n/**\n * Interface for parameters required by the WriteFileTool class.\n */\ninterface WriteFileParams extends ToolParams {\n store: BaseFileStore;\n}\ndeclare const writeSchema: z.ZodObject<{\n file_path: z.ZodString;\n text: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n file_path: string;\n text: string;\n}, {\n file_path: string;\n text: string;\n}>;\ntype WriteToolSchema = typeof writeSchema;\n/**\n * Class for writing data to files on the disk. Extends the StructuredTool\n * class.\n */\nexport declare class WriteFileTool extends StructuredTool {\n static lc_name(): string;\n schema: z.ZodObject<{\n file_path: z.ZodString;\n text: z.ZodString;\n }, \"strip\", z.ZodTypeAny, {\n file_path: string;\n text: string;\n }, {\n file_path: string;\n text: string;\n }>;\n name: string;\n description: string;\n store: BaseFileStore;\n constructor({ store, ...rest }: WriteFileParams);\n _call({ file_path, text }: InferInteropZodOutput<WriteToolSchema>): Promise<string>;\n}\nexport {};\n//# sourceMappingURL=fs.d.ts.map"],"mappings":";;;;;;;;;AAGuD;AAIZ,UAAjCK,cAAAA,SAAuBH,UAS/B,CAAA;EALeK,KAAAA,EAHNH,aAGMG;;cADHD,UAAcG,EAAFT,CAAAA,CAAES,SAAAA,CAAAA;EAAS,SAAA,EACtBT,CAAAA,CAAEO,SADoB;AAAA,CAAA,EAAA,OAOhCG,EALOV,CAAAA,CAAEQ,UAKK,EAAA;EAKEG,SAAAA,EAAAA,MAAY;CAGdX,EAAEO;EACHC,SAAAA,EAAAA,MAAAA;CAFNR,CAAAA;KAPPU,cAAAA,GAgBMN,OAhBkBE,UAgBlBF;;;;;AAEcD,cAbJQ,YAAAA,SAAqBV,cAAAA,CAajBE;EAAwCW,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAbvBb,MAAAA,EAE9BD,CAAAA,CAAES,SAF4BR,CAAAA;IAAc,SAAA,EAGrCD,CAAAA,CAAEO,SAHmC;EAkB9CQ,CAAAA,EAAAA,OAAAA,EAdMf,CAAAA,CAAEQ,UAcO,EAAA;IAGXQ,SAAAA,EASZ,MAAA;EAReT,CAAAA,EAAAA;IACLA,SAAAA,EAAAA,MAAAA;EACEC,CAAAA,CAAAA;EAHeC,IAAAA,EAAAA,MAAAA;EAAS,WAAA,EAAA,MAAA;EAUjCQ,KAAAA,EApBMb,aAoBS;EAKCc,WAAAA,CAAAA;IAAAA;EAAa,CAAA,EAxBPb,cAwBO;EAGbE,KAAAA,CAAAA;IAAAA;EAAAA,CAAAA,EA1BIJ,qBA0BJI,CA1B0BG,cA0B1BH,CAAAA,CAAAA,EA1B4CO,OA0B5CP,CAAAA,MAAAA,CAAAA;;;;;UArBXQ,eAAAA,SAAwBb,UAiChBU,CAAAA;EAAkBG,KAAAA,EAhCzBX,aAgCyBW;;cA9BtBC,WA+BSG,EA/BInB,CAAAA,CAAES,SA+BNU,CAAAA;EAA8BF,SAAAA,EA9BtCjB,CAAAA,CAAEO,SA8BoCU;EAAtBd,IAAAA,EA7BrBH,CAAAA,CAAEO,SA6BmBJ;CAAyCW,EAAAA,OAAAA,EA5B5Dd,CAAAA,CAAEQ,UA4B0DM,EAAAA;EAhB7Bb,SAAAA,EAAAA,MAAAA;EAAc,IAAA,EAAA,MAAA;;;;;KALpDgB,eAAAA,UAAyBD;;;;;cAKTE,aAAAA,SAAsBjB,cAAAA;;UAE/BD,CAAAA,CAAES;eACKT,CAAAA,CAAEO;UACPP,CAAAA,CAAEO;cACAP,CAAAA,CAAEQ;;;;;;;;;SASPJ;;;;KACyBW;;;;KACLZ,sBAAsBc,mBAAmBH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.cts","names":["Serializable","Tool","ToolParams","Json","JsonObject","JsonSpec","JsonToolFields","JsonListKeysTool","Promise","JsonGetValueTool"],"sources":["../../src/tools/json.d.ts"],"sourcesContent":["import { Serializable } from \"@langchain/core/load/serializable\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nexport type Json = string | number | boolean | null | {\n [key: string]: Json;\n} | Json[];\nexport type JsonObject = {\n [key: string]: Json;\n};\n/**\n * Represents a JSON object in the LangChain framework. Provides methods\n * to get keys and values from the JSON object.\n */\nexport declare class JsonSpec extends Serializable {\n lc_namespace: string[];\n obj: JsonObject;\n maxValueLength: number;\n constructor(obj: JsonObject, max_value_length?: number);\n /**\n * Retrieves all keys at a given path in the JSON object.\n * @param input The path to the keys in the JSON object, provided as a string in JSON pointer syntax.\n * @returns A string containing all keys at the given path, separated by commas.\n */\n getKeys(input: string): string;\n /**\n * Retrieves the value at a given path in the JSON object.\n * @param input The path to the value in the JSON object, provided as a string in JSON pointer syntax.\n * @returns The value at the given path in the JSON object, as a string. If the value is a large dictionary or exceeds the maximum length, a message is returned instead.\n */\n getValue(input: string): string;\n}\nexport interface JsonToolFields extends ToolParams {\n jsonSpec: JsonSpec;\n}\n/**\n * A tool in the LangChain framework that lists all keys at a given path\n * in a JSON object.\n */\nexport declare class JsonListKeysTool extends Tool {\n static lc_name(): string;\n name: string;\n jsonSpec: JsonSpec;\n constructor(jsonSpec: JsonSpec);\n constructor(fields: JsonToolFields);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool in the LangChain framework that retrieves the value at a given\n * path in a JSON object.\n */\nexport declare class JsonGetValueTool extends Tool {\n jsonSpec: JsonSpec;\n static lc_name(): string;\n name: string;\n constructor(jsonSpec: JsonSpec);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n//# sourceMappingURL=json.d.ts.map"],"mappings":";;;;KAEYG,IAAAA;iBACOA;AADnB,CAAA,GAEIA,IAFQA,EAAAA;AAGAC,KAAAA,UAAAA,GAAU;EAODC,CAAAA,GAAAA,EAAAA,MAAQ,CAAA,EANVF,IAMU;CAEpBC;;;AAFyC;AAkBlD;AAOqBG,cAzBAF,QAAAA,SAAiBL,YAAAA,CAyBD;EAGvBK,YAAAA,EAAAA,MAAAA,EAAAA;EACYA,GAAAA,EA3BjBD,UA2BiBC;EACFC,cAAAA,EAAAA,MAAAA;EAEEE,WAAAA,CAAAA,GAAAA,EA5BLJ,UA4BKI,EAAAA,gBAAAA,CAAAA,EAAAA,MAAAA;EAPoBP;AAAI;AAclD;;;EAM0BO,OAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EANoBP;AAAI;;;;;;UArBjCK,cAAAA,SAAuBJ;YAC1BG;;;;;;cAMOE,gBAAAA,SAAyBN,IAAAA;;;YAGhCI;wBACYA;sBACFC;;wBAEEE;;;;;;;cAOLC,gBAAAA,SAAyBR,IAAAA;YAChCI;;;wBAGYA;;wBAEAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"json.d.ts","names":["Serializable","Tool","ToolParams","Json","JsonObject","JsonSpec","JsonToolFields","JsonListKeysTool","Promise","JsonGetValueTool"],"sources":["../../src/tools/json.d.ts"],"sourcesContent":["import { Serializable } from \"@langchain/core/load/serializable\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nexport type Json = string | number | boolean | null | {\n [key: string]: Json;\n} | Json[];\nexport type JsonObject = {\n [key: string]: Json;\n};\n/**\n * Represents a JSON object in the LangChain framework. Provides methods\n * to get keys and values from the JSON object.\n */\nexport declare class JsonSpec extends Serializable {\n lc_namespace: string[];\n obj: JsonObject;\n maxValueLength: number;\n constructor(obj: JsonObject, max_value_length?: number);\n /**\n * Retrieves all keys at a given path in the JSON object.\n * @param input The path to the keys in the JSON object, provided as a string in JSON pointer syntax.\n * @returns A string containing all keys at the given path, separated by commas.\n */\n getKeys(input: string): string;\n /**\n * Retrieves the value at a given path in the JSON object.\n * @param input The path to the value in the JSON object, provided as a string in JSON pointer syntax.\n * @returns The value at the given path in the JSON object, as a string. If the value is a large dictionary or exceeds the maximum length, a message is returned instead.\n */\n getValue(input: string): string;\n}\nexport interface JsonToolFields extends ToolParams {\n jsonSpec: JsonSpec;\n}\n/**\n * A tool in the LangChain framework that lists all keys at a given path\n * in a JSON object.\n */\nexport declare class JsonListKeysTool extends Tool {\n static lc_name(): string;\n name: string;\n jsonSpec: JsonSpec;\n constructor(jsonSpec: JsonSpec);\n constructor(fields: JsonToolFields);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool in the LangChain framework that retrieves the value at a given\n * path in a JSON object.\n */\nexport declare class JsonGetValueTool extends Tool {\n jsonSpec: JsonSpec;\n static lc_name(): string;\n name: string;\n constructor(jsonSpec: JsonSpec);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n//# sourceMappingURL=json.d.ts.map"],"mappings":";;;;KAEYG,IAAAA;iBACOA;AADnB,CAAA,GAEIA,IAFQA,EAAAA;AAGAC,KAAAA,UAAAA,GAAU;EAODC,CAAAA,GAAAA,EAAAA,MAAQ,CAAA,EANVF,IAMU;CAEpBC;;;AAFyC;AAkBlD;AAOqBG,cAzBAF,QAAAA,SAAiBL,YAAAA,CAyBD;EAGvBK,YAAAA,EAAAA,MAAAA,EAAAA;EACYA,GAAAA,EA3BjBD,UA2BiBC;EACFC,cAAAA,EAAAA,MAAAA;EAEEE,WAAAA,CAAAA,GAAAA,EA5BLJ,UA4BKI,EAAAA,gBAAAA,CAAAA,EAAAA,MAAAA;EAPoBP;AAAI;AAclD;;;EAM0BO,OAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA;EANoBP;AAAI;;;;;;UArBjCK,cAAAA,SAAuBJ;YAC1BG;;;;;;cAMOE,gBAAAA,SAAyBN,IAAAA;;;YAGhCI;wBACYA;sBACFC;;wBAEEE;;;;;;;cAOLC,gBAAAA,SAAyBR,IAAAA;YAChCI;;;wBAGYA;;wBAEAG"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.cts","names":["StructuredToolInterface","ToolDefinition","renderTextDescription","renderTextDescriptionAndArgs"],"sources":["../../src/tools/render.d.ts"],"sourcesContent":["import { StructuredToolInterface } from \"@langchain/core/tools\";\nimport { ToolDefinition } from \"@langchain/core/language_models/base\";\n/**\n * Render the tool name and description in plain text.\n *\n * Output will be in the format of:\n * ```\n * search: This tool is used for search\n * calculator: This tool is used for math\n * ```\n * @param tools\n * @returns a string of all tools and their descriptions\n */\nexport declare function renderTextDescription(tools: StructuredToolInterface[] | ToolDefinition[]): string;\n/**\n * Render the tool name, description, and args in plain text.\n * Output will be in the format of:'\n * ```\n * search: This tool is used for search, args: {\"query\": {\"type\": \"string\"}}\n * calculator: This tool is used for math,\n * args: {\"expression\": {\"type\": \"string\"}}\n * ```\n * @param tools\n * @returns a string of all tools, their descriptions and a stringified version of their schemas\n */\nexport declare function renderTextDescriptionAndArgs(tools: StructuredToolInterface[] | ToolDefinition[]): string;\n//# sourceMappingURL=render.d.ts.map"],"mappings":";;;;;;;AAaA;AAYA;;;;;;;;iBAZwBE,qBAAAA,QAA6BF,4BAA4BC;;;;;;;;;;;;iBAYzDE,4BAAAA,QAAoCH,4BAA4BC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","names":["StructuredToolInterface","ToolDefinition","renderTextDescription","renderTextDescriptionAndArgs"],"sources":["../../src/tools/render.d.ts"],"sourcesContent":["import { StructuredToolInterface } from \"@langchain/core/tools\";\nimport { ToolDefinition } from \"@langchain/core/language_models/base\";\n/**\n * Render the tool name and description in plain text.\n *\n * Output will be in the format of:\n * ```\n * search: This tool is used for search\n * calculator: This tool is used for math\n * ```\n * @param tools\n * @returns a string of all tools and their descriptions\n */\nexport declare function renderTextDescription(tools: StructuredToolInterface[] | ToolDefinition[]): string;\n/**\n * Render the tool name, description, and args in plain text.\n * Output will be in the format of:'\n * ```\n * search: This tool is used for search, args: {\"query\": {\"type\": \"string\"}}\n * calculator: This tool is used for math,\n * args: {\"expression\": {\"type\": \"string\"}}\n * ```\n * @param tools\n * @returns a string of all tools, their descriptions and a stringified version of their schemas\n */\nexport declare function renderTextDescriptionAndArgs(tools: StructuredToolInterface[] | ToolDefinition[]): string;\n//# sourceMappingURL=render.d.ts.map"],"mappings":";;;;;;;AAaA;AAYA;;;;;;;;iBAZwBE,qBAAAA,QAA6BF,4BAA4BC;;;;;;;;;;;;iBAYzDE,4BAAAA,QAAoCH,4BAA4BC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requests.d.cts","names":["Tool","Headers","RequestTool","RequestsGetTool","maxOutputLength","Promise","RequestsPostTool"],"sources":["../../src/tools/requests.d.ts"],"sourcesContent":["import { Tool } from \"@langchain/core/tools\";\nexport interface Headers {\n [key: string]: string;\n}\n/**\n * Interface for HTTP request tools. Contains properties for headers and\n * maximum output length.\n */\nexport interface RequestTool {\n headers: Headers;\n maxOutputLength: number;\n}\n/**\n * Class for making GET requests. Extends the Tool class and implements\n * the RequestTool interface. The input should be a URL string, and the\n * output will be the text response of the GET request.\n */\nexport declare class RequestsGetTool extends Tool implements RequestTool {\n headers: Headers;\n static lc_name(): string;\n name: string;\n maxOutputLength: number;\n constructor(headers?: Headers, { maxOutputLength }?: {\n maxOutputLength?: number;\n });\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * Class for making POST requests. Extends the Tool class and implements\n * the RequestTool interface. The input should be a JSON string with two\n * keys: 'url' and 'data'. The output will be the text response of the\n * POST request.\n */\nexport declare class RequestsPostTool extends Tool implements RequestTool {\n headers: Headers;\n static lc_name(): string;\n name: string;\n maxOutputLength: number;\n constructor(headers?: Headers, { maxOutputLength }?: {\n maxOutputLength?: number;\n });\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n//# sourceMappingURL=requests.d.ts.map"],"mappings":";;;UACiBC,OAAAA;;AAAjB;AAOA;AASA;;;AAKqCG,UAdpBF,WAAAA,CAcoBE;EAIXC,OAAAA,EAjBbJ,OAiBaI;EATmBL,eAAAA,EAAAA,MAAAA;;AAA2B;AAkBxE;;;;AAS0BK,cA3BLF,eAAAA,SAAwBH,IAAAA,YAAgBE,WA2BnCG,CAAAA;EAToBL,OAAAA,EAjBjCC,OAiBiCD;EAAgBE,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAW,IAAA,EAAA,MAAA;;wBAb/CD;;;;;;wBAIAI;;;;;;;;;cASLC,gBAAAA,SAAyBN,IAAAA,YAAgBE;WACjDD;;;;wBAIaA;;;;;;wBAIAI"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requests.d.ts","names":["Tool","Headers","RequestTool","RequestsGetTool","maxOutputLength","Promise","RequestsPostTool"],"sources":["../../src/tools/requests.d.ts"],"sourcesContent":["import { Tool } from \"@langchain/core/tools\";\nexport interface Headers {\n [key: string]: string;\n}\n/**\n * Interface for HTTP request tools. Contains properties for headers and\n * maximum output length.\n */\nexport interface RequestTool {\n headers: Headers;\n maxOutputLength: number;\n}\n/**\n * Class for making GET requests. Extends the Tool class and implements\n * the RequestTool interface. The input should be a URL string, and the\n * output will be the text response of the GET request.\n */\nexport declare class RequestsGetTool extends Tool implements RequestTool {\n headers: Headers;\n static lc_name(): string;\n name: string;\n maxOutputLength: number;\n constructor(headers?: Headers, { maxOutputLength }?: {\n maxOutputLength?: number;\n });\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * Class for making POST requests. Extends the Tool class and implements\n * the RequestTool interface. The input should be a JSON string with two\n * keys: 'url' and 'data'. The output will be the text response of the\n * POST request.\n */\nexport declare class RequestsPostTool extends Tool implements RequestTool {\n headers: Headers;\n static lc_name(): string;\n name: string;\n maxOutputLength: number;\n constructor(headers?: Headers, { maxOutputLength }?: {\n maxOutputLength?: number;\n });\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n//# sourceMappingURL=requests.d.ts.map"],"mappings":";;;UACiBC,OAAAA;;AAAjB;AAOA;AASA;;;AAKqCG,UAdpBF,WAAAA,CAcoBE;EAIXC,OAAAA,EAjBbJ,OAiBaI;EATmBL,eAAAA,EAAAA,MAAAA;;AAA2B;AAkBxE;;;;AAS0BK,cA3BLF,eAAAA,SAAwBH,IAAAA,YAAgBE,WA2BnCG,CAAAA;EAToBL,OAAAA,EAjBjCC,OAiBiCD;EAAgBE,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAW,IAAA,EAAA,MAAA;;wBAb/CD;;;;;;wBAIAI;;;;;;;;;cASLC,gBAAAA,SAAyBN,IAAAA,YAAgBE;WACjDD;;;;wBAIaA;;;;;;wBAIAI"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retriever.d.cts","names":["BaseRetrieverInterface","z","DynamicStructuredTool","DynamicStructuredToolInput","createRetrieverTool","Omit","ZodString","ZodTypeAny","ZodObject"],"sources":["../../src/tools/retriever.d.ts"],"sourcesContent":["import type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { z } from \"zod/v3\";\nimport { DynamicStructuredTool, type DynamicStructuredToolInput } from \"@langchain/core/tools\";\nexport declare function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, \"func\" | \"schema\">): DynamicStructuredTool<z.ZodObject<{\n query: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n query: string;\n}, {\n query: string;\n}>, {\n query: string;\n}, {\n query: string;\n}, string>;\n//# sourceMappingURL=retriever.d.ts.map"],"mappings":";;;;;iBAGwBI,mBAAAA,YAA+BJ,+BAA+BK,KAAKF,iDAAiDD,sBAAsBD,CAAAA,CAAEO;SACzJP,CAAAA,CAAEK;AADb,CAAA,EAAA,OAAwBF,EAEZH,CAAAA,CAAEM,UAFUH,EAAmB;EAAYJ,KAAAA,EAAAA,MAAAA;CAAoCG,EAAAA;EAALE,KAAAA,EAAAA,MAAAA;CAC3EJ,CAAAA,EAAEK;EACCC,KAAAA,EAAAA,MAAAA;CAFoJN,EAAEO;EAAxBN,KAAAA,EAAAA,MAAAA;AAAqB,CAAA,EAAA,MAAA,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"retriever.d.ts","names":["BaseRetrieverInterface","z","DynamicStructuredTool","DynamicStructuredToolInput","createRetrieverTool","Omit","ZodString","ZodTypeAny","ZodObject"],"sources":["../../src/tools/retriever.d.ts"],"sourcesContent":["import type { BaseRetrieverInterface } from \"@langchain/core/retrievers\";\nimport { z } from \"zod/v3\";\nimport { DynamicStructuredTool, type DynamicStructuredToolInput } from \"@langchain/core/tools\";\nexport declare function createRetrieverTool(retriever: BaseRetrieverInterface, input: Omit<DynamicStructuredToolInput, \"func\" | \"schema\">): DynamicStructuredTool<z.ZodObject<{\n query: z.ZodString;\n}, \"strip\", z.ZodTypeAny, {\n query: string;\n}, {\n query: string;\n}>, {\n query: string;\n}, {\n query: string;\n}, string>;\n//# sourceMappingURL=retriever.d.ts.map"],"mappings":";;;;;iBAGwBI,mBAAAA,YAA+BJ,+BAA+BK,KAAKF,iDAAiDD,sBAAsBD,CAAAA,CAAEO;SACzJP,CAAAA,CAAEK;AADb,CAAA,EAAA,OAAwBF,EAEZH,CAAAA,CAAEM,UAFUH,EAAmB;EAAYJ,KAAAA,EAAAA,MAAAA;CAAoCG,EAAAA;EAALE,KAAAA,EAAAA,MAAAA;CAC3EJ,CAAAA,EAAEK;EACCC,KAAAA,EAAAA,MAAAA;CAFoJN,EAAEO;EAAxBN,KAAAA,EAAAA,MAAAA;AAAqB,CAAA,EAAA,MAAA,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sql.d.cts","names":["BaseLanguageModelInterface","Tool","LLMChain","SqlDatabase","SqlTool","QuerySqlTool","Promise","InfoSqlTool","ListTablesSqlTool","QueryCheckerToolArgs","QueryCheckerTool"],"sources":["../../src/tools/sql.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { Tool } from \"@langchain/core/tools\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { SqlDatabase } from \"../sql_db.js\";\n/**\n * Interface for SQL tools. It has a `db` property which is a SQL\n * database.\n */\ninterface SqlTool {\n db: SqlDatabase;\n}\n/**\n * A tool for executing SQL queries. It takes a SQL database as a\n * parameter and assigns it to the `db` property. The `_call` method is\n * used to run the SQL query and return the result. If the query is\n * incorrect, an error message is returned.\n */\nexport declare class QuerySqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool for retrieving information about SQL tables. It takes a SQL\n * database as a parameter and assigns it to the `db` property. The\n * `_call` method is used to retrieve the schema and sample rows for the\n * specified tables. If the tables do not exist, an error message is\n * returned.\n */\nexport declare class InfoSqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool for listing all tables in a SQL database. It takes a SQL\n * database as a parameter and assigns it to the `db` property. The\n * `_call` method is used to return a comma-separated list of all tables\n * in the database.\n */\nexport declare class ListTablesSqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n _call(_: string): Promise<string>;\n description: string;\n}\n/**\n * Arguments for the QueryCheckerTool class.\n */\ntype QueryCheckerToolArgs = {\n llmChain?: LLMChain;\n llm: BaseLanguageModelInterface;\n _chainType?: never;\n};\n/**\n * A tool for checking SQL queries for common mistakes. It takes a\n * LLMChain or QueryCheckerToolArgs as a parameter. The `_call` method is\n * used to check the input query for common mistakes and returns a\n * prediction.\n */\nexport declare class QueryCheckerTool extends Tool {\n static lc_name(): string;\n name: string;\n template: string;\n llmChain: LLMChain;\n constructor(llmChainOrOptions?: LLMChain | QueryCheckerToolArgs);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\nexport {};\n//# sourceMappingURL=sql.d.ts.map"],"mappings":";;;;;;;;;AAGgD;AAchD;UATUI,OAAAA,CAYFD;EACYA,EAAAA,EAZZA,WAYYA;;;;AAJ6C;AAgBjE;;;AAM0BG,cAtBLD,YAAAA,SAAqBJ,IAAAA,YAAgBG,OAsBhCE,CAAAA;EANeL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAgBG,IAAAA,EAAAA,MAAAA;EAAO,EAAA,EAbxDD,WAawD;EAe3CK,WAAAA,CAAAA,EAAAA,EA3BDL,WA2BkB;EAG9BA;EACYA,KAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EA7BMG,OA6BNH,CAAAA,MAAAA,CAAAA;EACEG,WAAAA,EAAAA,MAAAA;;;AALgD;AAOrE;AAeD;;;;AAO0BA,cA5CLC,WAAAA,SAAoBN,IAAAA,YAAgBG,OA4C/BE,CAAAA;EAPoBL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAI,IAAA,EAAA,MAAA;MAlC1CE;kBACYA;;wBAEMG;;;;;;;;;cASLE,iBAAAA,SAA0BP,IAAAA,YAAgBG;;;MAGvDD;kBACYA;oBACEG;;;;;;KAMjBG,oBAAAA;aACUP;OACNF;;;;;;;;;cASYU,gBAAAA,SAAyBT,IAAAA;;;;YAIhCC;kCACsBA,WAAWO;;wBAErBH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sql.d.ts","names":["BaseLanguageModelInterface","Tool","LLMChain","SqlDatabase","SqlTool","QuerySqlTool","Promise","InfoSqlTool","ListTablesSqlTool","QueryCheckerToolArgs","QueryCheckerTool"],"sources":["../../src/tools/sql.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport { Tool } from \"@langchain/core/tools\";\nimport { LLMChain } from \"../chains/llm_chain.js\";\nimport type { SqlDatabase } from \"../sql_db.js\";\n/**\n * Interface for SQL tools. It has a `db` property which is a SQL\n * database.\n */\ninterface SqlTool {\n db: SqlDatabase;\n}\n/**\n * A tool for executing SQL queries. It takes a SQL database as a\n * parameter and assigns it to the `db` property. The `_call` method is\n * used to run the SQL query and return the result. If the query is\n * incorrect, an error message is returned.\n */\nexport declare class QuerySqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool for retrieving information about SQL tables. It takes a SQL\n * database as a parameter and assigns it to the `db` property. The\n * `_call` method is used to retrieve the schema and sample rows for the\n * specified tables. If the tables do not exist, an error message is\n * returned.\n */\nexport declare class InfoSqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\n/**\n * A tool for listing all tables in a SQL database. It takes a SQL\n * database as a parameter and assigns it to the `db` property. The\n * `_call` method is used to return a comma-separated list of all tables\n * in the database.\n */\nexport declare class ListTablesSqlTool extends Tool implements SqlTool {\n static lc_name(): string;\n name: string;\n db: SqlDatabase;\n constructor(db: SqlDatabase);\n _call(_: string): Promise<string>;\n description: string;\n}\n/**\n * Arguments for the QueryCheckerTool class.\n */\ntype QueryCheckerToolArgs = {\n llmChain?: LLMChain;\n llm: BaseLanguageModelInterface;\n _chainType?: never;\n};\n/**\n * A tool for checking SQL queries for common mistakes. It takes a\n * LLMChain or QueryCheckerToolArgs as a parameter. The `_call` method is\n * used to check the input query for common mistakes and returns a\n * prediction.\n */\nexport declare class QueryCheckerTool extends Tool {\n static lc_name(): string;\n name: string;\n template: string;\n llmChain: LLMChain;\n constructor(llmChainOrOptions?: LLMChain | QueryCheckerToolArgs);\n /** @ignore */\n _call(input: string): Promise<string>;\n description: string;\n}\nexport {};\n//# sourceMappingURL=sql.d.ts.map"],"mappings":";;;;;;;;;AAGgD;AAchD;UATUI,OAAAA,CAYFD;EACYA,EAAAA,EAZZA,WAYYA;;;;AAJ6C;AAgBjE;;;AAM0BG,cAtBLD,YAAAA,SAAqBJ,IAAAA,YAAgBG,OAsBhCE,CAAAA;EANeL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAgBG,IAAAA,EAAAA,MAAAA;EAAO,EAAA,EAbxDD,WAawD;EAe3CK,WAAAA,CAAAA,EAAAA,EA3BDL,WA2BkB;EAG9BA;EACYA,KAAAA,CAAAA,KAAAA,EAAAA,MAAAA,CAAAA,EA7BMG,OA6BNH,CAAAA,MAAAA,CAAAA;EACEG,WAAAA,EAAAA,MAAAA;;;AALgD;AAOrE;AAeD;;;;AAO0BA,cA5CLC,WAAAA,SAAoBN,IAAAA,YAAgBG,OA4C/BE,CAAAA;EAPoBL,OAAAA,OAAAA,CAAAA,CAAAA,EAAAA,MAAAA;EAAI,IAAA,EAAA,MAAA;MAlC1CE;kBACYA;;wBAEMG;;;;;;;;;cASLE,iBAAAA,SAA0BP,IAAAA,YAAgBG;;;MAGvDD;kBACYA;oBACEG;;;;;;KAMjBG,oBAAAA;aACUP;OACNF;;;;;;;;;cASYU,gBAAAA,SAAyBT,IAAAA;;;;YAIhCC;kCACsBA,WAAWO;;wBAErBH"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vectorstore.d.cts","names":["BaseLanguageModelInterface","VectorStoreInterface","Tool","VectorDBQAChain","VectorStoreTool","VectorStoreQATool","Promise"],"sources":["../../src/tools/vectorstore.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { Tool } from \"@langchain/core/tools\";\nimport { VectorDBQAChain } from \"../chains/vector_db_qa.js\";\n/**\n * Interface for tools that interact with a Vector Store.\n */\ninterface VectorStoreTool {\n vectorStore: VectorStoreInterface;\n llm: BaseLanguageModelInterface;\n}\n/**\n * A tool for the VectorDBQA chain to interact with a Vector Store. It is\n * used to answer questions about a specific topic. The input to this tool\n * should be a fully formed question.\n */\nexport declare class VectorStoreQATool extends Tool implements VectorStoreTool {\n static lc_name(): string;\n vectorStore: VectorStoreInterface;\n llm: BaseLanguageModelInterface;\n name: string;\n description: string;\n chain: VectorDBQAChain;\n constructor(name: string, description: string, fields: VectorStoreTool);\n /**\n * Returns a string that describes what the tool does.\n * @param name The name of the tool.\n * @param description A description of what the tool does.\n * @returns A string that describes what the tool does.\n */\n static getDescription(name: string, description: string): string;\n /** @ignore */\n _call(input: string): Promise<string>;\n}\nexport {};\n//# sourceMappingURL=vectorstore.d.ts.map"],"mappings":";;;;;;;;;AAG4D;AAa5D,UATUI,eAAAA,CAS4B;EAErBH,WAAAA,EAVAA,oBAUAA;EACRD,GAAAA,EAVAA,0BAUAA;;;;;;AAHqE;cAAzDK,iBAAAA,SAA0BH,IAAAA,YAAgBE;;eAE9CH;OACRD;;;SAGEG;yDACgDC;;;;;;;;;wBASjCE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vectorstore.d.ts","names":["BaseLanguageModelInterface","VectorStoreInterface","Tool","VectorDBQAChain","VectorStoreTool","VectorStoreQATool","Promise"],"sources":["../../src/tools/vectorstore.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { VectorStoreInterface } from \"@langchain/core/vectorstores\";\nimport { Tool } from \"@langchain/core/tools\";\nimport { VectorDBQAChain } from \"../chains/vector_db_qa.js\";\n/**\n * Interface for tools that interact with a Vector Store.\n */\ninterface VectorStoreTool {\n vectorStore: VectorStoreInterface;\n llm: BaseLanguageModelInterface;\n}\n/**\n * A tool for the VectorDBQA chain to interact with a Vector Store. It is\n * used to answer questions about a specific topic. The input to this tool\n * should be a fully formed question.\n */\nexport declare class VectorStoreQATool extends Tool implements VectorStoreTool {\n static lc_name(): string;\n vectorStore: VectorStoreInterface;\n llm: BaseLanguageModelInterface;\n name: string;\n description: string;\n chain: VectorDBQAChain;\n constructor(name: string, description: string, fields: VectorStoreTool);\n /**\n * Returns a string that describes what the tool does.\n * @param name The name of the tool.\n * @param description A description of what the tool does.\n * @returns A string that describes what the tool does.\n */\n static getDescription(name: string, description: string): string;\n /** @ignore */\n _call(input: string): Promise<string>;\n}\nexport {};\n//# sourceMappingURL=vectorstore.d.ts.map"],"mappings":";;;;;;;;;AAG4D;AAa5D,UATUI,eAAAA,CAS4B;EAErBH,WAAAA,EAVAA,oBAUAA;EACRD,GAAAA,EAVAA,0BAUAA;;;;;;AAHqE;cAAzDK,iBAAAA,SAA0BH,IAAAA,YAAgBE;;eAE9CH;OACRD;;;SAGEG;yDACgDC;;;;;;;;;wBASjCE"}
@@ -7,7 +7,6 @@ import { EmbeddingsInterface } from "@langchain/core/embeddings";
7
7
  //#region src/tools/webbrowser.d.ts
8
8
  declare const parseInputs: (inputs: string) => [string, string];
9
9
  declare const getText: (html: string, baseUrl: string, summary: boolean) => string;
10
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
10
  type Headers = Record<string, any>;
12
11
  /**
13
12
  * Configuration options for fetch requests, similar to axios config but for fetch
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webbrowser.d.cts","names":["BaseLanguageModelInterface","EmbeddingsInterface","CallbackManager","CallbackManagerForToolRun","Tool","ToolParams","TextSplitter","parseInputs","getText","Headers","Record","RequestConfig","RequestInit","Omit","WebBrowserArgs","WebBrowser","model","headers","embeddings","requestConfig","textSplitter","Promise"],"sources":["../../src/tools/webbrowser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport { CallbackManager, CallbackManagerForToolRun } from \"@langchain/core/callbacks/manager\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nimport { TextSplitter } from \"@langchain/textsplitters\";\nexport declare const parseInputs: (inputs: string) => [string, string];\nexport declare const getText: (html: string, baseUrl: string, summary: boolean) => string;\ntype Headers = Record<string, any>;\n/**\n * Configuration options for fetch requests, similar to axios config but for fetch\n */\nexport interface RequestConfig extends Omit<RequestInit, \"headers\"> {\n withCredentials?: boolean;\n}\n/**\n * Defines the arguments that can be passed to the WebBrowser constructor.\n * It extends the ToolParams interface and includes properties for a\n * language model, embeddings, HTTP headers, an Axios configuration, a\n * callback manager, and a text splitter.\n */\nexport interface WebBrowserArgs extends ToolParams {\n model: BaseLanguageModelInterface;\n embeddings: EmbeddingsInterface;\n headers?: Headers;\n requestConfig?: RequestConfig;\n /** @deprecated */\n callbackManager?: CallbackManager;\n textSplitter?: TextSplitter;\n}\n/**\n * A class designed to interact with web pages, either to extract\n * information from them or to summarize their content. It uses the native\n * fetch API to send HTTP requests and the cheerio library to parse the\n * returned HTML.\n * @example\n * ```typescript\n * const browser = new WebBrowser({\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * embeddings: new OpenAIEmbeddings({}),\n * });\n * const result = await browser.invoke(\"https:exampleurl.com\");\n * ```\n */\nexport declare class WebBrowser extends Tool {\n static lc_name(): string;\n get lc_namespace(): string[];\n private model;\n private embeddings;\n private headers;\n private requestConfig;\n private textSplitter;\n constructor({ model, headers, embeddings, requestConfig, textSplitter }: WebBrowserArgs);\n /** @ignore */\n _call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;\n name: string;\n description: string;\n}\nexport {};\n//# sourceMappingURL=webbrowser.d.ts.map"],"mappings":";;;;;;;cAKqBO;cACAC;AADrB,KAEKC,OAAAA,GAAUC,MAFuD,CAAA,MAAA,EAAA,GAAA,CAAA;AACtE;AAA0F;AAK1F;AASiBI,UATAH,aAAAA,SAAsBE,IASR,CATaD,WASb,EAAA,SAAA,CAAA,CAAA;EACpBZ,eAAAA,CAAAA,EAAAA,OAAAA;;;;;;;AADuC;AAuB7Be,UAvBJD,cAAAA,SAAuBT,UAuBT,CAAA;EAQbW,KAAAA,EA9BPhB,0BA8BOgB;EAAOC,UAAAA,EA7BThB,mBA6BSgB;EAASC,OAAAA,CAAAA,EA5BpBT,OA4BoBS;EAAYC,aAAAA,CAAAA,EA3B1BR,aA2B0BQ;EAAeC;EAAgBN,eAAAA,CAAAA,EAzBvDZ,eAyBuDY;EAEtCX,YAAAA,CAAAA,EA1BpBG,YA0BoBH;;;AAVK;;;;;;;;;;;;;cAAvBY,UAAAA,SAAmBX,IAAAA;;;;;;;;;;;;;;KAQqCU;;qCAEtCX,4BAA4BkB"}
@@ -7,7 +7,6 @@ import { EmbeddingsInterface } from "@langchain/core/embeddings";
7
7
  //#region src/tools/webbrowser.d.ts
8
8
  declare const parseInputs: (inputs: string) => [string, string];
9
9
  declare const getText: (html: string, baseUrl: string, summary: boolean) => string;
10
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
11
10
  type Headers = Record<string, any>;
12
11
  /**
13
12
  * Configuration options for fetch requests, similar to axios config but for fetch
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webbrowser.d.ts","names":["BaseLanguageModelInterface","EmbeddingsInterface","CallbackManager","CallbackManagerForToolRun","Tool","ToolParams","TextSplitter","parseInputs","getText","Headers","Record","RequestConfig","RequestInit","Omit","WebBrowserArgs","WebBrowser","model","headers","embeddings","requestConfig","textSplitter","Promise"],"sources":["../../src/tools/webbrowser.d.ts"],"sourcesContent":["import type { BaseLanguageModelInterface } from \"@langchain/core/language_models/base\";\nimport type { EmbeddingsInterface } from \"@langchain/core/embeddings\";\nimport { CallbackManager, CallbackManagerForToolRun } from \"@langchain/core/callbacks/manager\";\nimport { Tool, ToolParams } from \"@langchain/core/tools\";\nimport { TextSplitter } from \"@langchain/textsplitters\";\nexport declare const parseInputs: (inputs: string) => [string, string];\nexport declare const getText: (html: string, baseUrl: string, summary: boolean) => string;\ntype Headers = Record<string, any>;\n/**\n * Configuration options for fetch requests, similar to axios config but for fetch\n */\nexport interface RequestConfig extends Omit<RequestInit, \"headers\"> {\n withCredentials?: boolean;\n}\n/**\n * Defines the arguments that can be passed to the WebBrowser constructor.\n * It extends the ToolParams interface and includes properties for a\n * language model, embeddings, HTTP headers, an Axios configuration, a\n * callback manager, and a text splitter.\n */\nexport interface WebBrowserArgs extends ToolParams {\n model: BaseLanguageModelInterface;\n embeddings: EmbeddingsInterface;\n headers?: Headers;\n requestConfig?: RequestConfig;\n /** @deprecated */\n callbackManager?: CallbackManager;\n textSplitter?: TextSplitter;\n}\n/**\n * A class designed to interact with web pages, either to extract\n * information from them or to summarize their content. It uses the native\n * fetch API to send HTTP requests and the cheerio library to parse the\n * returned HTML.\n * @example\n * ```typescript\n * const browser = new WebBrowser({\n * model: new ChatOpenAI({ model: \"gpt-4o-mini\", temperature: 0 }),\n * embeddings: new OpenAIEmbeddings({}),\n * });\n * const result = await browser.invoke(\"https:exampleurl.com\");\n * ```\n */\nexport declare class WebBrowser extends Tool {\n static lc_name(): string;\n get lc_namespace(): string[];\n private model;\n private embeddings;\n private headers;\n private requestConfig;\n private textSplitter;\n constructor({ model, headers, embeddings, requestConfig, textSplitter }: WebBrowserArgs);\n /** @ignore */\n _call(inputs: string, runManager?: CallbackManagerForToolRun): Promise<string>;\n name: string;\n description: string;\n}\nexport {};\n//# sourceMappingURL=webbrowser.d.ts.map"],"mappings":";;;;;;;cAKqBO;cACAC;AADrB,KAEKC,OAAAA,GAAUC,MAFuD,CAAA,MAAA,EAAA,GAAA,CAAA;AACtE;AAA0F;AAK1F;AASiBI,UATAH,aAAAA,SAAsBE,IASR,CATaD,WASb,EAAA,SAAA,CAAA,CAAA;EACpBZ,eAAAA,CAAAA,EAAAA,OAAAA;;;;;;;AADuC;AAuB7Be,UAvBJD,cAAAA,SAAuBT,UAuBT,CAAA;EAQbW,KAAAA,EA9BPhB,0BA8BOgB;EAAOC,UAAAA,EA7BThB,mBA6BSgB;EAASC,OAAAA,CAAAA,EA5BpBT,OA4BoBS;EAAYC,aAAAA,CAAAA,EA3B1BR,aA2B0BQ;EAAeC;EAAgBN,eAAAA,CAAAA,EAzBvDZ,eAyBuDY;EAEtCX,YAAAA,CAAAA,EA1BpBG,YA0BoBH;;;AAVK;;;;;;;;;;;;;cAAvBY,UAAAA,SAAmBX,IAAAA;;;;;;;;;;;;;;KAQqCU;;qCAEtCX,4BAA4BkB"}
@@ -2,15 +2,12 @@
2
2
  interface ParseOptions {
3
3
  filename?: string;
4
4
  startRule?: "Start";
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
5
  tracer?: any;
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
6
  [key: string]: any;
9
7
  }
10
8
  type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {
11
9
  startRule: infer StartRule;
12
10
  } ? StartRule extends "Start" ? Start : Start : Start;
13
- // These types were autogenerated by ts-pegjs
14
11
  type Start = Program;
15
12
  type Identifier = IdentifierName;
16
13
  type IdentifierName = {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expression-parser.d.cts","names":["ParseOptions","ParseFunction","Options","StartRule","Start","Program","Identifier","IdentifierName","Literal","NullLiteral","BooleanLiteral","NumericLiteral","StringLiteral","DecimalLiteral","PrimaryExpression","ArrayExpression","ObjectExpression","Expression","ElementList","PropertyNameAndValueList","PropertyAssignment","PropertyName","MemberExpression","CallExpression","Arguments","ExpressionStatement","ExpressionNode"],"sources":["../../src/types/expression-parser.d.ts"],"sourcesContent":["export interface ParseOptions {\n filename?: string;\n startRule?: \"Start\";\n tracer?: any;\n [key: string]: any;\n}\nexport type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {\n startRule: infer StartRule;\n} ? StartRule extends \"Start\" ? Start : Start : Start;\nexport type Start = Program;\nexport type Identifier = IdentifierName;\nexport type IdentifierName = {\n type: \"Identifier\";\n name: string;\n};\nexport type Literal = NullLiteral | BooleanLiteral | NumericLiteral | StringLiteral;\nexport type NullLiteral = {\n type: \"NullLiteral\";\n value: null;\n};\nexport type BooleanLiteral = {\n type: \"BooleanLiteral\";\n value: true;\n} | {\n type: \"BooleanLiteral\";\n value: false;\n};\nexport type NumericLiteral = DecimalLiteral;\nexport type DecimalLiteral = {\n type: \"NumericLiteral\";\n value: number;\n};\nexport type StringLiteral = {\n type: \"StringLiteral\";\n value: string;\n};\nexport type PrimaryExpression = Identifier | Literal | ArrayExpression | ObjectExpression | Expression;\nexport type ArrayExpression = {\n type: \"ArrayExpression\";\n elements: ElementList;\n};\nexport type ElementList = PrimaryExpression[];\nexport type ObjectExpression = {\n type: \"ObjectExpression\";\n properties: [];\n} | {\n type: \"ObjectExpression\";\n properties: PropertyNameAndValueList;\n};\nexport type PropertyNameAndValueList = PrimaryExpression[];\nexport type PropertyAssignment = {\n type: \"PropertyAssignment\";\n key: PropertyName;\n value: Expression;\n kind: \"init\";\n};\nexport type PropertyName = IdentifierName | StringLiteral | NumericLiteral;\nexport type MemberExpression = {\n type: \"MemberExpression\";\n property: StringLiteral;\n computed: true;\n object: MemberExpression | Identifier | StringLiteral;\n} | {\n type: \"MemberExpression\";\n property: Identifier;\n computed: false;\n object: MemberExpression | Identifier | StringLiteral;\n};\nexport type CallExpression = {\n type: \"CallExpression\";\n arguments: Arguments;\n callee: MemberExpression | Identifier;\n};\nexport type Arguments = PrimaryExpression[];\nexport type Expression = CallExpression | MemberExpression;\nexport type ExpressionStatement = {\n type: \"ExpressionStatement\";\n expression: Expression;\n};\nexport type Program = {\n type: \"Program\";\n body: ExpressionStatement;\n};\nexport type ExpressionNode = Program | ExpressionStatement | ArrayExpression | BooleanLiteral | CallExpression | Identifier | MemberExpression | NumericLiteral | ObjectExpression | PropertyAssignment | NullLiteral | StringLiteral;\n//# sourceMappingURL=expression-parser.d.ts.map"],"mappings":";UAAiBA,YAAAA;EAAAA,QAAAA,CAAAA,EAAAA,MAAY;EAMjBC,SAAAA,CAAAA,EAAAA,OAAa;EAAoBD,MAAAA,CAAAA,EAAAA,GAAAA;EAAuCE,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,GAAAA;;AAEhFC,KAFQF,aAAAA,GAERE,CAAAA,gBAFyCH,YAEzCG,CAAAA,CAAAA,KAAAA,EAAAA,MAAAA,EAAAA,OAAAA,CAAAA,EAFgFD,OAEhFC,EAAAA,GAF4FD,OAE5FC,SAAAA;EAA4BC,SAAAA,EAAAA,KAAAA,UAAAA;CAAQA,GAApCD,SAAoCC,SAAAA,OAAAA,GAARA,KAAQA,GAAAA,KAAAA,GAAQA,KAARA;AAAQA,KACpCA,KAAAA,GAAQC,OAD4BD;AAAK,KAEzCE,UAAAA,GAAaC,cAF4B;AACzCH,KAEAG,cAAAA,GAFQF;EACRC,IAAAA,EAAAA,YAAU;EACVC,IAAAA,EAAAA,MAAAA;AAIZ,CAAA;AAAsBE,KAAVD,OAAAA,GAAUC,WAAAA,GAAcC,cAAdD,GAA+BE,cAA/BF,GAAgDG,aAAhDH;AAAcC,KACxBD,WAAAA,GADwBC;EAAiBC,IAAAA,EAAAA,aAAAA;EAAiBC,KAAAA,EAAAA,IAAAA;AAAa,CAAA;AACvEH,KAIAC,cAAAA,GAJW;EAIXA,IAAAA,EAAAA,gBAAc;EAOdC,KAAAA,EAAAA,IAAAA;AACZ,CA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AAA;EAAUoB,IAAAA,EAAAA,kBAAAA;EAAsBV,QAAAA,EAnB/CT,UAmB+CS;EAAkBL,QAAAA,EAAAA,KAAAA;EAAiBa,MAAAA,EAjBpFD,gBAiBoFC,GAjBjEjB,UAiBiEiB,GAjBpDX,aAiBoDW;CAAiBjB;AAAagB,KAflHC,cAAAA,GAekHD;EAAmBX,IAAAA,EAAAA,gBAAAA;EAAiBK,SAAAA,EAbnJQ,SAamJR;EAAmBI,MAAAA,EAZzKE,gBAYyKF,GAZtJd,UAYsJc;CAAqBX;AAAcG,KAV5MY,SAAAA,GAAYV,iBAUgMF,EAAAA;AAAa,KATzNK,UAAAA,GAAaM,cAS4M,GAT3LD,gBAS2L;KARzNG,mBAAAA;;cAEIR;;KAEJZ,OAAAA;;QAEFoB;;KAEEC,cAAAA,GAAiBrB,UAAUoB,sBAAsBV,kBAAkBL,iBAAiBa,iBAAiBjB,aAAagB,mBAAmBX,iBAAiBK,mBAAmBI,qBAAqBX,cAAcG"}
@@ -2,15 +2,12 @@
2
2
  interface ParseOptions {
3
3
  filename?: string;
4
4
  startRule?: "Start";
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
5
  tracer?: any;
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
6
  [key: string]: any;
9
7
  }
10
8
  type ParseFunction = <Options extends ParseOptions>(input: string, options?: Options) => Options extends {
11
9
  startRule: infer StartRule;
12
10
  } ? StartRule extends "Start" ? Start : Start : Start;
13
- // These types were autogenerated by ts-pegjs
14
11
  type Start = Program;
15
12
  type Identifier = IdentifierName;
16
13
  type IdentifierName = {