@langchain/classic 1.0.6-dev-1765432861398 → 1.0.6

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 (407) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/agents/format_scratchpad/log.cjs +1 -0
  3. package/agents/format_scratchpad/log.d.cts +1 -0
  4. package/agents/format_scratchpad/log.d.ts +1 -0
  5. package/agents/format_scratchpad/log.js +1 -0
  6. package/agents/format_scratchpad/log_to_message.cjs +1 -0
  7. package/agents/format_scratchpad/log_to_message.d.cts +1 -0
  8. package/agents/format_scratchpad/log_to_message.d.ts +1 -0
  9. package/agents/format_scratchpad/log_to_message.js +1 -0
  10. package/agents/format_scratchpad/openai_functions.cjs +1 -0
  11. package/agents/format_scratchpad/openai_functions.d.cts +1 -0
  12. package/agents/format_scratchpad/openai_functions.d.ts +1 -0
  13. package/agents/format_scratchpad/openai_functions.js +1 -0
  14. package/agents/format_scratchpad/openai_tools.cjs +1 -0
  15. package/agents/format_scratchpad/openai_tools.d.cts +1 -0
  16. package/agents/format_scratchpad/openai_tools.d.ts +1 -0
  17. package/agents/format_scratchpad/openai_tools.js +1 -0
  18. package/agents/format_scratchpad/xml.cjs +1 -0
  19. package/agents/format_scratchpad/xml.d.cts +1 -0
  20. package/agents/format_scratchpad/xml.d.ts +1 -0
  21. package/agents/format_scratchpad/xml.js +1 -0
  22. package/agents/load.cjs +1 -0
  23. package/agents/load.d.cts +1 -0
  24. package/agents/load.d.ts +1 -0
  25. package/agents/load.js +1 -0
  26. package/agents/openai/output_parser.cjs +1 -0
  27. package/agents/openai/output_parser.d.cts +1 -0
  28. package/agents/openai/output_parser.d.ts +1 -0
  29. package/agents/openai/output_parser.js +1 -0
  30. package/agents/react/output_parser.cjs +1 -0
  31. package/agents/react/output_parser.d.cts +1 -0
  32. package/agents/react/output_parser.d.ts +1 -0
  33. package/agents/react/output_parser.js +1 -0
  34. package/agents/toolkits/sql.cjs +1 -0
  35. package/agents/toolkits/sql.d.cts +1 -0
  36. package/agents/toolkits/sql.d.ts +1 -0
  37. package/agents/toolkits/sql.js +1 -0
  38. package/agents/toolkits.cjs +1 -0
  39. package/agents/toolkits.d.cts +1 -0
  40. package/agents/toolkits.d.ts +1 -0
  41. package/agents/toolkits.js +1 -0
  42. package/agents/xml/output_parser.cjs +1 -0
  43. package/agents/xml/output_parser.d.cts +1 -0
  44. package/agents/xml/output_parser.d.ts +1 -0
  45. package/agents/xml/output_parser.js +1 -0
  46. package/agents.cjs +1 -0
  47. package/agents.d.cts +1 -0
  48. package/agents.d.ts +1 -0
  49. package/agents.js +1 -0
  50. package/cache/file_system.cjs +1 -0
  51. package/cache/file_system.d.cts +1 -0
  52. package/cache/file_system.d.ts +1 -0
  53. package/cache/file_system.js +1 -0
  54. package/callbacks.cjs +1 -0
  55. package/callbacks.d.cts +1 -0
  56. package/callbacks.d.ts +1 -0
  57. package/callbacks.js +1 -0
  58. package/chains/combine_documents/reduce.cjs +1 -0
  59. package/chains/combine_documents/reduce.d.cts +1 -0
  60. package/chains/combine_documents/reduce.d.ts +1 -0
  61. package/chains/combine_documents/reduce.js +1 -0
  62. package/chains/combine_documents.cjs +1 -0
  63. package/chains/combine_documents.d.cts +1 -0
  64. package/chains/combine_documents.d.ts +1 -0
  65. package/chains/combine_documents.js +1 -0
  66. package/chains/graph_qa/cypher.cjs +1 -0
  67. package/chains/graph_qa/cypher.d.cts +1 -0
  68. package/chains/graph_qa/cypher.d.ts +1 -0
  69. package/chains/graph_qa/cypher.js +1 -0
  70. package/chains/history_aware_retriever.cjs +1 -0
  71. package/chains/history_aware_retriever.d.cts +1 -0
  72. package/chains/history_aware_retriever.d.ts +1 -0
  73. package/chains/history_aware_retriever.js +1 -0
  74. package/chains/load.cjs +1 -0
  75. package/chains/load.d.cts +1 -0
  76. package/chains/load.d.ts +1 -0
  77. package/chains/load.js +1 -0
  78. package/chains/openai_functions.cjs +1 -0
  79. package/chains/openai_functions.d.cts +1 -0
  80. package/chains/openai_functions.d.ts +1 -0
  81. package/chains/openai_functions.js +1 -0
  82. package/chains/query_constructor/ir.cjs +1 -0
  83. package/chains/query_constructor/ir.d.cts +1 -0
  84. package/chains/query_constructor/ir.d.ts +1 -0
  85. package/chains/query_constructor/ir.js +1 -0
  86. package/chains/query_constructor.cjs +1 -0
  87. package/chains/query_constructor.d.cts +1 -0
  88. package/chains/query_constructor.d.ts +1 -0
  89. package/chains/query_constructor.js +1 -0
  90. package/chains/retrieval.cjs +1 -0
  91. package/chains/retrieval.d.cts +1 -0
  92. package/chains/retrieval.d.ts +1 -0
  93. package/chains/retrieval.js +1 -0
  94. package/chains/sql_db.cjs +1 -0
  95. package/chains/sql_db.d.cts +1 -0
  96. package/chains/sql_db.d.ts +1 -0
  97. package/chains/sql_db.js +1 -0
  98. package/chains.cjs +1 -0
  99. package/chains.d.cts +1 -0
  100. package/chains.d.ts +1 -0
  101. package/chains.js +1 -0
  102. package/chat_models/universal.cjs +1 -0
  103. package/chat_models/universal.d.cts +1 -0
  104. package/chat_models/universal.d.ts +1 -0
  105. package/chat_models/universal.js +1 -0
  106. package/dist/agents/chat/outputParser.d.cts +2 -2
  107. package/dist/agents/chat/outputParser.d.cts.map +1 -1
  108. package/dist/agents/chat/outputParser.d.ts +2 -2
  109. package/dist/agents/chat/outputParser.d.ts.map +1 -1
  110. package/dist/agents/mrkl/outputParser.d.cts +1 -1
  111. package/dist/agents/mrkl/outputParser.d.cts.map +1 -1
  112. package/dist/agents/mrkl/outputParser.d.ts +1 -1
  113. package/dist/agents/mrkl/outputParser.d.ts.map +1 -1
  114. package/dist/agents/openai_tools/index.d.ts +2 -2
  115. package/dist/agents/openai_tools/index.d.ts.map +1 -1
  116. package/dist/agents/structured_chat/index.d.ts +2 -2
  117. package/dist/agents/structured_chat/index.d.ts.map +1 -1
  118. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts +2 -2
  119. package/dist/agents/toolkits/conversational_retrieval/token_buffer_memory.d.ts.map +1 -1
  120. package/dist/chains/openai_functions/openapi.cjs +13 -0
  121. package/dist/chains/openai_functions/openapi.cjs.map +1 -1
  122. package/dist/chains/openai_functions/openapi.js +13 -0
  123. package/dist/chains/openai_functions/openapi.js.map +1 -1
  124. package/dist/evaluation/agents/trajectory.d.cts +2 -2
  125. package/dist/evaluation/agents/trajectory.d.cts.map +1 -1
  126. package/dist/evaluation/agents/trajectory.d.ts +2 -2
  127. package/dist/evaluation/agents/trajectory.d.ts.map +1 -1
  128. package/dist/evaluation/comparison/pairwise.d.cts +3 -3
  129. package/dist/evaluation/comparison/pairwise.d.cts.map +1 -1
  130. package/dist/evaluation/comparison/pairwise.d.ts +3 -3
  131. package/dist/evaluation/comparison/pairwise.d.ts.map +1 -1
  132. package/dist/evaluation/criteria/criteria.d.cts +3 -3
  133. package/dist/evaluation/criteria/criteria.d.cts.map +1 -1
  134. package/dist/evaluation/criteria/criteria.d.ts +3 -3
  135. package/dist/evaluation/criteria/criteria.d.ts.map +1 -1
  136. package/dist/experimental/autogpt/prompt.d.ts +2 -2
  137. package/dist/experimental/autogpt/prompt.d.ts.map +1 -1
  138. package/dist/retrievers/matryoshka_retriever.d.cts.map +1 -1
  139. package/document.cjs +1 -0
  140. package/document.d.cts +1 -0
  141. package/document.d.ts +1 -0
  142. package/document.js +1 -0
  143. package/document_loaders/base.cjs +1 -0
  144. package/document_loaders/base.d.cts +1 -0
  145. package/document_loaders/base.d.ts +1 -0
  146. package/document_loaders/base.js +1 -0
  147. package/document_loaders/fs/buffer.cjs +1 -0
  148. package/document_loaders/fs/buffer.d.cts +1 -0
  149. package/document_loaders/fs/buffer.d.ts +1 -0
  150. package/document_loaders/fs/buffer.js +1 -0
  151. package/document_loaders/fs/directory.cjs +1 -0
  152. package/document_loaders/fs/directory.d.cts +1 -0
  153. package/document_loaders/fs/directory.d.ts +1 -0
  154. package/document_loaders/fs/directory.js +1 -0
  155. package/document_loaders/fs/json.cjs +1 -0
  156. package/document_loaders/fs/json.d.cts +1 -0
  157. package/document_loaders/fs/json.d.ts +1 -0
  158. package/document_loaders/fs/json.js +1 -0
  159. package/document_loaders/fs/multi_file.cjs +1 -0
  160. package/document_loaders/fs/multi_file.d.cts +1 -0
  161. package/document_loaders/fs/multi_file.d.ts +1 -0
  162. package/document_loaders/fs/multi_file.js +1 -0
  163. package/document_loaders/fs/text.cjs +1 -0
  164. package/document_loaders/fs/text.d.cts +1 -0
  165. package/document_loaders/fs/text.d.ts +1 -0
  166. package/document_loaders/fs/text.js +1 -0
  167. package/document_transformers/openai_functions.cjs +1 -0
  168. package/document_transformers/openai_functions.d.cts +1 -0
  169. package/document_transformers/openai_functions.d.ts +1 -0
  170. package/document_transformers/openai_functions.js +1 -0
  171. package/embeddings/cache_backed.cjs +1 -0
  172. package/embeddings/cache_backed.d.cts +1 -0
  173. package/embeddings/cache_backed.d.ts +1 -0
  174. package/embeddings/cache_backed.js +1 -0
  175. package/embeddings/fake.cjs +1 -0
  176. package/embeddings/fake.d.cts +1 -0
  177. package/embeddings/fake.d.ts +1 -0
  178. package/embeddings/fake.js +1 -0
  179. package/evaluation.cjs +1 -0
  180. package/evaluation.d.cts +1 -0
  181. package/evaluation.d.ts +1 -0
  182. package/evaluation.js +1 -0
  183. package/experimental/autogpt.cjs +1 -0
  184. package/experimental/autogpt.d.cts +1 -0
  185. package/experimental/autogpt.d.ts +1 -0
  186. package/experimental/autogpt.js +1 -0
  187. package/experimental/babyagi.cjs +1 -0
  188. package/experimental/babyagi.d.cts +1 -0
  189. package/experimental/babyagi.d.ts +1 -0
  190. package/experimental/babyagi.js +1 -0
  191. package/experimental/chains/violation_of_expectations.cjs +1 -0
  192. package/experimental/chains/violation_of_expectations.d.cts +1 -0
  193. package/experimental/chains/violation_of_expectations.d.ts +1 -0
  194. package/experimental/chains/violation_of_expectations.js +1 -0
  195. package/experimental/generative_agents.cjs +1 -0
  196. package/experimental/generative_agents.d.cts +1 -0
  197. package/experimental/generative_agents.d.ts +1 -0
  198. package/experimental/generative_agents.js +1 -0
  199. package/experimental/masking.cjs +1 -0
  200. package/experimental/masking.d.cts +1 -0
  201. package/experimental/masking.d.ts +1 -0
  202. package/experimental/masking.js +1 -0
  203. package/experimental/openai_assistant.cjs +1 -0
  204. package/experimental/openai_assistant.d.cts +1 -0
  205. package/experimental/openai_assistant.d.ts +1 -0
  206. package/experimental/openai_assistant.js +1 -0
  207. package/experimental/openai_files.cjs +1 -0
  208. package/experimental/openai_files.d.cts +1 -0
  209. package/experimental/openai_files.d.ts +1 -0
  210. package/experimental/openai_files.js +1 -0
  211. package/experimental/plan_and_execute.cjs +1 -0
  212. package/experimental/plan_and_execute.d.cts +1 -0
  213. package/experimental/plan_and_execute.d.ts +1 -0
  214. package/experimental/plan_and_execute.js +1 -0
  215. package/experimental/prompts/custom_format.cjs +1 -0
  216. package/experimental/prompts/custom_format.d.cts +1 -0
  217. package/experimental/prompts/custom_format.d.ts +1 -0
  218. package/experimental/prompts/custom_format.js +1 -0
  219. package/experimental/prompts/handlebars.cjs +1 -0
  220. package/experimental/prompts/handlebars.d.cts +1 -0
  221. package/experimental/prompts/handlebars.d.ts +1 -0
  222. package/experimental/prompts/handlebars.js +1 -0
  223. package/hub/node.cjs +1 -0
  224. package/hub/node.d.cts +1 -0
  225. package/hub/node.d.ts +1 -0
  226. package/hub/node.js +1 -0
  227. package/hub.cjs +1 -0
  228. package/hub.d.cts +1 -0
  229. package/hub.d.ts +1 -0
  230. package/hub.js +1 -0
  231. package/indexes.cjs +1 -0
  232. package/indexes.d.cts +1 -0
  233. package/indexes.d.ts +1 -0
  234. package/indexes.js +1 -0
  235. package/load/serializable.cjs +1 -0
  236. package/load/serializable.d.cts +1 -0
  237. package/load/serializable.d.ts +1 -0
  238. package/load/serializable.js +1 -0
  239. package/load.cjs +1 -0
  240. package/load.d.cts +1 -0
  241. package/load.d.ts +1 -0
  242. package/load.js +1 -0
  243. package/memory/chat_memory.cjs +1 -0
  244. package/memory/chat_memory.d.cts +1 -0
  245. package/memory/chat_memory.d.ts +1 -0
  246. package/memory/chat_memory.js +1 -0
  247. package/memory.cjs +1 -0
  248. package/memory.d.cts +1 -0
  249. package/memory.d.ts +1 -0
  250. package/memory.js +1 -0
  251. package/output_parsers/expression.cjs +1 -0
  252. package/output_parsers/expression.d.cts +1 -0
  253. package/output_parsers/expression.d.ts +1 -0
  254. package/output_parsers/expression.js +1 -0
  255. package/output_parsers.cjs +1 -0
  256. package/output_parsers.d.cts +1 -0
  257. package/output_parsers.d.ts +1 -0
  258. package/output_parsers.js +1 -0
  259. package/package.json +17 -17
  260. package/retrievers/contextual_compression.cjs +1 -0
  261. package/retrievers/contextual_compression.d.cts +1 -0
  262. package/retrievers/contextual_compression.d.ts +1 -0
  263. package/retrievers/contextual_compression.js +1 -0
  264. package/retrievers/document_compressors/chain_extract.cjs +1 -0
  265. package/retrievers/document_compressors/chain_extract.d.cts +1 -0
  266. package/retrievers/document_compressors/chain_extract.d.ts +1 -0
  267. package/retrievers/document_compressors/chain_extract.js +1 -0
  268. package/retrievers/document_compressors/embeddings_filter.cjs +1 -0
  269. package/retrievers/document_compressors/embeddings_filter.d.cts +1 -0
  270. package/retrievers/document_compressors/embeddings_filter.d.ts +1 -0
  271. package/retrievers/document_compressors/embeddings_filter.js +1 -0
  272. package/retrievers/document_compressors.cjs +1 -0
  273. package/retrievers/document_compressors.d.cts +1 -0
  274. package/retrievers/document_compressors.d.ts +1 -0
  275. package/retrievers/document_compressors.js +1 -0
  276. package/retrievers/ensemble.cjs +1 -0
  277. package/retrievers/ensemble.d.cts +1 -0
  278. package/retrievers/ensemble.d.ts +1 -0
  279. package/retrievers/ensemble.js +1 -0
  280. package/retrievers/hyde.cjs +1 -0
  281. package/retrievers/hyde.d.cts +1 -0
  282. package/retrievers/hyde.d.ts +1 -0
  283. package/retrievers/hyde.js +1 -0
  284. package/retrievers/matryoshka_retriever.cjs +1 -0
  285. package/retrievers/matryoshka_retriever.d.cts +1 -0
  286. package/retrievers/matryoshka_retriever.d.ts +1 -0
  287. package/retrievers/matryoshka_retriever.js +1 -0
  288. package/retrievers/multi_query.cjs +1 -0
  289. package/retrievers/multi_query.d.cts +1 -0
  290. package/retrievers/multi_query.d.ts +1 -0
  291. package/retrievers/multi_query.js +1 -0
  292. package/retrievers/multi_vector.cjs +1 -0
  293. package/retrievers/multi_vector.d.cts +1 -0
  294. package/retrievers/multi_vector.d.ts +1 -0
  295. package/retrievers/multi_vector.js +1 -0
  296. package/retrievers/parent_document.cjs +1 -0
  297. package/retrievers/parent_document.d.cts +1 -0
  298. package/retrievers/parent_document.d.ts +1 -0
  299. package/retrievers/parent_document.js +1 -0
  300. package/retrievers/score_threshold.cjs +1 -0
  301. package/retrievers/score_threshold.d.cts +1 -0
  302. package/retrievers/score_threshold.d.ts +1 -0
  303. package/retrievers/score_threshold.js +1 -0
  304. package/retrievers/self_query/functional.cjs +1 -0
  305. package/retrievers/self_query/functional.d.cts +1 -0
  306. package/retrievers/self_query/functional.d.ts +1 -0
  307. package/retrievers/self_query/functional.js +1 -0
  308. package/retrievers/self_query.cjs +1 -0
  309. package/retrievers/self_query.d.cts +1 -0
  310. package/retrievers/self_query.d.ts +1 -0
  311. package/retrievers/self_query.js +1 -0
  312. package/retrievers/time_weighted.cjs +1 -0
  313. package/retrievers/time_weighted.d.cts +1 -0
  314. package/retrievers/time_weighted.d.ts +1 -0
  315. package/retrievers/time_weighted.js +1 -0
  316. package/schema/prompt_template.cjs +1 -0
  317. package/schema/prompt_template.d.cts +1 -0
  318. package/schema/prompt_template.d.ts +1 -0
  319. package/schema/prompt_template.js +1 -0
  320. package/schema/query_constructor.cjs +1 -0
  321. package/schema/query_constructor.d.cts +1 -0
  322. package/schema/query_constructor.d.ts +1 -0
  323. package/schema/query_constructor.js +1 -0
  324. package/smith.cjs +1 -0
  325. package/smith.d.cts +1 -0
  326. package/smith.d.ts +1 -0
  327. package/smith.js +1 -0
  328. package/sql_db.cjs +1 -0
  329. package/sql_db.d.cts +1 -0
  330. package/sql_db.d.ts +1 -0
  331. package/sql_db.js +1 -0
  332. package/storage/encoder_backed.cjs +1 -0
  333. package/storage/encoder_backed.d.cts +1 -0
  334. package/storage/encoder_backed.d.ts +1 -0
  335. package/storage/encoder_backed.js +1 -0
  336. package/storage/file_system.cjs +1 -0
  337. package/storage/file_system.d.cts +1 -0
  338. package/storage/file_system.d.ts +1 -0
  339. package/storage/file_system.js +1 -0
  340. package/storage/in_memory.cjs +1 -0
  341. package/storage/in_memory.d.cts +1 -0
  342. package/storage/in_memory.d.ts +1 -0
  343. package/storage/in_memory.js +1 -0
  344. package/stores/doc/base.cjs +1 -0
  345. package/stores/doc/base.d.cts +1 -0
  346. package/stores/doc/base.d.ts +1 -0
  347. package/stores/doc/base.js +1 -0
  348. package/stores/doc/in_memory.cjs +1 -0
  349. package/stores/doc/in_memory.d.cts +1 -0
  350. package/stores/doc/in_memory.d.ts +1 -0
  351. package/stores/doc/in_memory.js +1 -0
  352. package/stores/file/in_memory.cjs +1 -0
  353. package/stores/file/in_memory.d.cts +1 -0
  354. package/stores/file/in_memory.d.ts +1 -0
  355. package/stores/file/in_memory.js +1 -0
  356. package/stores/file/node.cjs +1 -0
  357. package/stores/file/node.d.cts +1 -0
  358. package/stores/file/node.d.ts +1 -0
  359. package/stores/file/node.js +1 -0
  360. package/stores/message/in_memory.cjs +1 -0
  361. package/stores/message/in_memory.d.cts +1 -0
  362. package/stores/message/in_memory.d.ts +1 -0
  363. package/stores/message/in_memory.js +1 -0
  364. package/text_splitter.cjs +1 -0
  365. package/text_splitter.d.cts +1 -0
  366. package/text_splitter.d.ts +1 -0
  367. package/text_splitter.js +1 -0
  368. package/tools/chain.cjs +1 -0
  369. package/tools/chain.d.cts +1 -0
  370. package/tools/chain.d.ts +1 -0
  371. package/tools/chain.js +1 -0
  372. package/tools/render.cjs +1 -0
  373. package/tools/render.d.cts +1 -0
  374. package/tools/render.d.ts +1 -0
  375. package/tools/render.js +1 -0
  376. package/tools/retriever.cjs +1 -0
  377. package/tools/retriever.d.cts +1 -0
  378. package/tools/retriever.d.ts +1 -0
  379. package/tools/retriever.js +1 -0
  380. package/tools/sql.cjs +1 -0
  381. package/tools/sql.d.cts +1 -0
  382. package/tools/sql.d.ts +1 -0
  383. package/tools/sql.js +1 -0
  384. package/tools/webbrowser.cjs +1 -0
  385. package/tools/webbrowser.d.cts +1 -0
  386. package/tools/webbrowser.d.ts +1 -0
  387. package/tools/webbrowser.js +1 -0
  388. package/tools.cjs +1 -0
  389. package/tools.d.cts +1 -0
  390. package/tools.d.ts +1 -0
  391. package/tools.js +1 -0
  392. package/util/document.cjs +1 -0
  393. package/util/document.d.cts +1 -0
  394. package/util/document.d.ts +1 -0
  395. package/util/document.js +1 -0
  396. package/util/math.cjs +1 -0
  397. package/util/math.d.cts +1 -0
  398. package/util/math.d.ts +1 -0
  399. package/util/math.js +1 -0
  400. package/util/time.cjs +1 -0
  401. package/util/time.d.cts +1 -0
  402. package/util/time.d.ts +1 -0
  403. package/util/time.js +1 -0
  404. package/vectorstores/memory.cjs +1 -0
  405. package/vectorstores/memory.d.cts +1 -0
  406. package/vectorstores/memory.d.ts +1 -0
  407. package/vectorstores/memory.js +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @langchain/classic
2
2
 
3
+ ## 1.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#9596](https://github.com/langchain-ai/langchainjs/pull/9596) [`316392e`](https://github.com/langchain-ai/langchainjs/commit/316392ea5666008873ab88971f599469ea7a2765) Thanks [@christian-bromann](https://github.com/christian-bromann)! - fix(@langchain/classic): add langsmith as external dependency
8
+
9
+ - [#9606](https://github.com/langchain-ai/langchainjs/pull/9606) [`41b26a4`](https://github.com/langchain-ai/langchainjs/commit/41b26a499625f5f6cd817433832a8d2c2639d2fb) Thanks [@patrykkopycinski](https://github.com/patrykkopycinski)! - bin p-retry
10
+
11
+ - Updated dependencies [[`5a01b5b`](https://github.com/langchain-ai/langchainjs/commit/5a01b5b705f6933958f61318b22f00b5f4763be8), [`eab88a5`](https://github.com/langchain-ai/langchainjs/commit/eab88a5ab7610f5b63212f753ebcbeee2f393622), [`5f79bc5`](https://github.com/langchain-ai/langchainjs/commit/5f79bc50aebc093c90b6716c0aebf5c4813d0171), [`7b301c0`](https://github.com/langchain-ai/langchainjs/commit/7b301c00ac851c286a13c2a908757cb40180c768), [`bb2f422`](https://github.com/langchain-ai/langchainjs/commit/bb2f422cd8e0d709d82baca44565980abb57120f), [`2a5ba50`](https://github.com/langchain-ai/langchainjs/commit/2a5ba50d240e7d6181546facf088142fbb7b4977), [`47edf3f`](https://github.com/langchain-ai/langchainjs/commit/47edf3fc673eb0627ec585a3a5c2b9381e234527), [`2e563e3`](https://github.com/langchain-ai/langchainjs/commit/2e563e332772aa0468f610c334cbedd7f3513ce8), [`72795fe`](https://github.com/langchain-ai/langchainjs/commit/72795fe76b515d9edc7d78fb28db59df844ce0c3), [`f97b488`](https://github.com/langchain-ai/langchainjs/commit/f97b488200b34c485b15a743277984ecacc62160), [`29a8480`](https://github.com/langchain-ai/langchainjs/commit/29a8480799d4c3534892a29cef4a135c437deb9b), [`3ecc1e7`](https://github.com/langchain-ai/langchainjs/commit/3ecc1e716704a032e941e670d1d9fbf5370d57aa), [`6baa851`](https://github.com/langchain-ai/langchainjs/commit/6baa851176b5dde5da19891df114a4645dfe7481), [`a552cad`](https://github.com/langchain-ai/langchainjs/commit/a552cad1a463239a0d1d1b5da7798978722738cf), [`69a1045`](https://github.com/langchain-ai/langchainjs/commit/69a1045e1e14aed9273a1a4085ac35e601a1ecc7)]:
12
+ - @langchain/openai@1.2.0
13
+ - @langchain/textsplitters@1.0.1
14
+
3
15
  ## 1.0.5
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/format_scratchpad/log.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/format_scratchpad/log_to_message.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log_to_message.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log_to_message.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/log_to_message.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/format_scratchpad/openai_functions.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_functions.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_functions.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_functions.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/format_scratchpad/openai_tools.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_tools.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_tools.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/openai_tools.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/format_scratchpad/xml.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/xml.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/xml.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/format_scratchpad/xml.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/agents/load.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/load.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/load.js";
package/agents/load.js ADDED
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/load.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/openai/output_parser.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/openai/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/openai/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/openai/output_parser.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/react/output_parser.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/react/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/react/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/react/output_parser.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/toolkits/sql/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/toolkits/sql/index.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/toolkits/sql/index.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/toolkits/sql/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/agents/toolkits/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/toolkits/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/toolkits/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/agents/toolkits/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/agents/xml/output_parser.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/xml/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/xml/output_parser.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/agents/xml/output_parser.js";
package/agents.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./dist/agents/index.cjs");
package/agents.d.cts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/agents/index.js";
package/agents.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/agents/index.js";
package/agents.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/agents/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/cache/file_system.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/cache/file_system.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/cache/file_system.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/cache/file_system.js";
package/callbacks.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./dist/callbacks/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "./dist/callbacks/index.js";
package/callbacks.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/callbacks/index.js";
package/callbacks.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/callbacks/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/chains/combine_documents/reduce.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/combine_documents/reduce.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/combine_documents/reduce.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/combine_documents/reduce.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/combine_documents/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/combine_documents/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/combine_documents/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/combine_documents/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/chains/graph_qa/cypher.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/graph_qa/cypher.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/graph_qa/cypher.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/graph_qa/cypher.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/history_aware_retriever.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/history_aware_retriever.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/history_aware_retriever.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/history_aware_retriever.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/load.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/load.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/load.js";
package/chains/load.js ADDED
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/load.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/openai_functions/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/openai_functions/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/openai_functions/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/openai_functions/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../../dist/chains/query_constructor/ir.cjs");
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/query_constructor/ir.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/query_constructor/ir.js";
@@ -0,0 +1 @@
1
+ export * from "../../dist/chains/query_constructor/ir.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/query_constructor/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/query_constructor/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/query_constructor/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/query_constructor/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/retrieval.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/retrieval.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/retrieval.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/retrieval.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chains/sql_db/index.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/sql_db/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/sql_db/index.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chains/sql_db/index.js";
package/chains.cjs ADDED
@@ -0,0 +1 @@
1
+ module.exports = require("./dist/chains/index.cjs");
package/chains.d.cts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/chains/index.js";
package/chains.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/chains/index.js";
package/chains.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./dist/chains/index.js";
@@ -0,0 +1 @@
1
+ module.exports = require("../dist/chat_models/universal.cjs");
@@ -0,0 +1 @@
1
+ export * from "../dist/chat_models/universal.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chat_models/universal.js";
@@ -0,0 +1 @@
1
+ export * from "../dist/chat_models/universal.js";
@@ -51,12 +51,12 @@ declare class ChatAgentOutputParser extends AgentActionOutputParser {
51
51
  * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.
52
52
  */
53
53
  parse(text: string): Promise<{
54
- tool?: undefined;
55
- toolInput?: undefined;
56
54
  returnValues: {
57
55
  output: string;
58
56
  };
59
57
  log: string;
58
+ tool?: undefined;
59
+ toolInput?: undefined;
60
60
  } | {
61
61
  returnValues?: undefined;
62
62
  tool: any;
@@ -1 +1 @@
1
- {"version":3,"file":"outputParser.d.cts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n tool?: undefined;\n toolInput?: undefined;\n returnValues: {\n output: string;\n };\n log: string;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
1
+ {"version":3,"file":"outputParser.d.cts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
@@ -51,12 +51,12 @@ declare class ChatAgentOutputParser extends AgentActionOutputParser {
51
51
  * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.
52
52
  */
53
53
  parse(text: string): Promise<{
54
- tool?: undefined;
55
- toolInput?: undefined;
56
54
  returnValues: {
57
55
  output: string;
58
56
  };
59
57
  log: string;
58
+ tool?: undefined;
59
+ toolInput?: undefined;
60
60
  } | {
61
61
  returnValues?: undefined;
62
62
  tool: any;
@@ -1 +1 @@
1
- {"version":3,"file":"outputParser.d.ts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n tool?: undefined;\n toolInput?: undefined;\n returnValues: {\n output: string;\n };\n log: string;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
1
+ {"version":3,"file":"outputParser.d.ts","names":["AgentActionOutputParser","FINAL_ANSWER_ACTION","ChatAgentOutputParser","Promise"],"sources":["../../../src/agents/chat/outputParser.d.ts"],"sourcesContent":["import { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends the AgentActionOutputParser to parse the output of\n * the ChatAgent in LangChain. It checks if the output text contains the\n * final answer action or a JSON response, and parses it accordingly.\n * @example\n * ```typescript\n * const prompt = ChatPromptTemplate.fromMessages([\n * [\n * \"ai\",\n * `{PREFIX}\n * {FORMAT_INSTRUCTIONS}\n * {SUFFIX}`,\n * ],\n * [\"human\", \"Question: {input}\"],\n * ]);\n * const runnableAgent = RunnableSequence.from([\n * {\n * input: (i: { input: string; steps: AgentStep[] }) => i.input,\n * agent_scratchpad: (i: { input: string; steps: AgentStep[] }) =>\n * formatLogToString(i.steps),\n * },\n * prompt,\n * new OpenAI({ temperature: 0 }),\n * new ChatAgentOutputParser(),\n * ]);\n *\n * const executor = AgentExecutor.fromAgentAndTools({\n * agent: runnableAgent,\n * tools: [new SerpAPI(), new Calculator()],\n * });\n *\n * const result = await executor.invoke({\n * input:\n * \"Who is Olivia Wilde's boyfriend? What is his current age raised to the 0.23 power?\",\n * });\n * ```\n */\nexport declare class ChatAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n /**\n * Parses the output text from the MRKL chain into an agent action or\n * agent finish. If the text contains the final answer action or does not\n * contain an action, it returns an AgentFinish with the output and log.\n * If the text contains a JSON response, it returns the tool, toolInput,\n * and log.\n * @param text The output text from the MRKL chain.\n * @returns An object that satisfies the AgentFinish interface or an object with the tool, toolInput, and log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n returnValues?: undefined;\n tool: any;\n toolInput: any;\n log: string;\n }>;\n /**\n * Returns the format instructions used in the output parser for the\n * ChatAgent class.\n * @returns The format instructions as a string.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAqBE,qBAAAA,SAA8BF,uBAAuB;;;;;;;;;;;uBAWjDG"}
@@ -25,10 +25,10 @@ declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {
25
25
  tool?: undefined;
26
26
  toolInput?: undefined;
27
27
  } | {
28
- returnValues?: undefined;
29
28
  tool: string;
30
29
  toolInput: string;
31
30
  log: string;
31
+ returnValues?: undefined;
32
32
  }>;
33
33
  /**
34
34
  * Returns the format instructions for parsing the output of an agent
@@ -1 +1 @@
1
- {"version":3,"file":"outputParser.d.cts","names":["OutputParserArgs","AgentActionOutputParser","FINAL_ANSWER_ACTION","ZeroShotAgentOutputParser","Promise"],"sources":["../../../src/agents/mrkl/outputParser.d.ts"],"sourcesContent":["import { OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends `AgentActionOutputParser` to provide a custom\n * implementation for parsing the output of a ZeroShotAgent action.\n */\nexport declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n finishToolName: string;\n constructor(fields?: OutputParserArgs);\n /**\n * Parses the text output of an agent action, extracting the tool, tool\n * input, and output.\n * @param text The text output of an agent action.\n * @returns An object containing the tool, tool input, and output extracted from the text, along with the original text as a log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n returnValues?: undefined;\n tool: string;\n toolInput: string;\n log: string;\n }>;\n /**\n * Returns the format instructions for parsing the output of an agent\n * action in the style of the ZeroShotAgent.\n * @returns The format instructions for parsing the output.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;AAOA;;;AAAuDC,cAAlCE,yBAAAA,SAAkCF,uBAAAA,CAAAA;EAAuB,YAAA,EAAA,MAAA,EAAA;;uBAGrDD;;;;;;;uBAOAI"}
1
+ {"version":3,"file":"outputParser.d.cts","names":["OutputParserArgs","AgentActionOutputParser","FINAL_ANSWER_ACTION","ZeroShotAgentOutputParser","Promise"],"sources":["../../../src/agents/mrkl/outputParser.d.ts"],"sourcesContent":["import { OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends `AgentActionOutputParser` to provide a custom\n * implementation for parsing the output of a ZeroShotAgent action.\n */\nexport declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n finishToolName: string;\n constructor(fields?: OutputParserArgs);\n /**\n * Parses the text output of an agent action, extracting the tool, tool\n * input, and output.\n * @param text The text output of an agent action.\n * @returns An object containing the tool, tool input, and output extracted from the text, along with the original text as a log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n tool: string;\n toolInput: string;\n log: string;\n returnValues?: undefined;\n }>;\n /**\n * Returns the format instructions for parsing the output of an agent\n * action in the style of the ZeroShotAgent.\n * @returns The format instructions for parsing the output.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;AAOA;;;AAAuDC,cAAlCE,yBAAAA,SAAkCF,uBAAAA,CAAAA;EAAuB,YAAA,EAAA,MAAA,EAAA;;uBAGrDD;;;;;;;uBAOAI"}
@@ -25,10 +25,10 @@ declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {
25
25
  tool?: undefined;
26
26
  toolInput?: undefined;
27
27
  } | {
28
- returnValues?: undefined;
29
28
  tool: string;
30
29
  toolInput: string;
31
30
  log: string;
31
+ returnValues?: undefined;
32
32
  }>;
33
33
  /**
34
34
  * Returns the format instructions for parsing the output of an agent
@@ -1 +1 @@
1
- {"version":3,"file":"outputParser.d.ts","names":["OutputParserArgs","AgentActionOutputParser","FINAL_ANSWER_ACTION","ZeroShotAgentOutputParser","Promise"],"sources":["../../../src/agents/mrkl/outputParser.d.ts"],"sourcesContent":["import { OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends `AgentActionOutputParser` to provide a custom\n * implementation for parsing the output of a ZeroShotAgent action.\n */\nexport declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n finishToolName: string;\n constructor(fields?: OutputParserArgs);\n /**\n * Parses the text output of an agent action, extracting the tool, tool\n * input, and output.\n * @param text The text output of an agent action.\n * @returns An object containing the tool, tool input, and output extracted from the text, along with the original text as a log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n returnValues?: undefined;\n tool: string;\n toolInput: string;\n log: string;\n }>;\n /**\n * Returns the format instructions for parsing the output of an agent\n * action in the style of the ZeroShotAgent.\n * @returns The format instructions for parsing the output.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;AAOA;;;AAAuDC,cAAlCE,yBAAAA,SAAkCF,uBAAAA,CAAAA;EAAuB,YAAA,EAAA,MAAA,EAAA;;uBAGrDD;;;;;;;uBAOAI"}
1
+ {"version":3,"file":"outputParser.d.ts","names":["OutputParserArgs","AgentActionOutputParser","FINAL_ANSWER_ACTION","ZeroShotAgentOutputParser","Promise"],"sources":["../../../src/agents/mrkl/outputParser.d.ts"],"sourcesContent":["import { OutputParserArgs } from \"../agent.js\";\nimport { AgentActionOutputParser } from \"../types.js\";\nexport declare const FINAL_ANSWER_ACTION = \"Final Answer:\";\n/**\n * A class that extends `AgentActionOutputParser` to provide a custom\n * implementation for parsing the output of a ZeroShotAgent action.\n */\nexport declare class ZeroShotAgentOutputParser extends AgentActionOutputParser {\n lc_namespace: string[];\n finishToolName: string;\n constructor(fields?: OutputParserArgs);\n /**\n * Parses the text output of an agent action, extracting the tool, tool\n * input, and output.\n * @param text The text output of an agent action.\n * @returns An object containing the tool, tool input, and output extracted from the text, along with the original text as a log.\n */\n parse(text: string): Promise<{\n returnValues: {\n output: string;\n };\n log: string;\n tool?: undefined;\n toolInput?: undefined;\n } | {\n tool: string;\n toolInput: string;\n log: string;\n returnValues?: undefined;\n }>;\n /**\n * Returns the format instructions for parsing the output of an agent\n * action in the style of the ZeroShotAgent.\n * @returns The format instructions for parsing the output.\n */\n getFormatInstructions(): string;\n}\n//# sourceMappingURL=outputParser.d.ts.map"],"mappings":";;;;;;AAOA;;;AAAuDC,cAAlCE,yBAAAA,SAAkCF,uBAAAA,CAAAA;EAAuB,YAAA,EAAA,MAAA,EAAA;;uBAGrDD;;;;;;;uBAOAI"}
@@ -6,7 +6,7 @@ import { StructuredToolInterface } from "@langchain/core/tools";
6
6
  import { ToolDefinition } from "@langchain/core/language_models/base";
7
7
  import { OpenAIClient } from "@langchain/openai";
8
8
  import { BaseChatModel, BaseChatModelCallOptions } from "@langchain/core/language_models/chat_models";
9
- import * as _langchain_core_agents0 from "@langchain/core/agents";
9
+ import * as _langchain_core_agents1 from "@langchain/core/agents";
10
10
 
11
11
  //#region src/agents/openai_tools/index.d.ts
12
12
  /**
@@ -94,7 +94,7 @@ declare function createOpenAIToolsAgent({
94
94
  streamRunnable
95
95
  }: CreateOpenAIToolsAgentParams): Promise<AgentRunnableSequence<{
96
96
  steps: ToolsAgentStep[];
97
- }, _langchain_core_agents0.AgentFinish | _langchain_core_agents0.AgentAction[]>>;
97
+ }, _langchain_core_agents1.AgentFinish | _langchain_core_agents1.AgentAction[]>>;
98
98
  //#endregion
99
99
  export { CreateOpenAIToolsAgentParams, createOpenAIToolsAgent };
100
100
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":["StructuredToolInterface","BaseChatModel","BaseChatModelCallOptions","ChatPromptTemplate","OpenAIClient","ToolDefinition","OpenAIToolsAgentOutputParser","ToolsAgentStep","AgentRunnableSequence","CreateOpenAIToolsAgentParams","ChatCompletionTool","createOpenAIToolsAgent","llm","tools","prompt","streamRunnable","_langchain_core_agents0","AgentFinish","AgentAction","Promise"],"sources":["../../../src/agents/openai_tools/index.d.ts"],"sourcesContent":["import type { StructuredToolInterface } from \"@langchain/core/tools\";\nimport type { BaseChatModel, BaseChatModelCallOptions } from \"@langchain/core/language_models/chat_models\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport { OpenAIClient } from \"@langchain/openai\";\nimport { ToolDefinition } from \"@langchain/core/language_models/base\";\nimport { OpenAIToolsAgentOutputParser, type ToolsAgentStep } from \"./output_parser.js\";\nimport { AgentRunnableSequence } from \"../agent.js\";\nexport { OpenAIToolsAgentOutputParser, type ToolsAgentStep };\n/**\n * Params used by the createOpenAIToolsAgent function.\n */\nexport type CreateOpenAIToolsAgentParams = {\n /**\n * LLM to use as the agent. Should work with OpenAI tool calling,\n * so must either be an OpenAI model that supports that or a wrapper of\n * a different model that adds in equivalent support.\n */\n llm: BaseChatModel<BaseChatModelCallOptions & {\n tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[] | any[];\n }>;\n /** Tools this agent has access to. */\n tools: StructuredToolInterface[] | ToolDefinition[];\n /** The prompt to use, must have an input key of `agent_scratchpad`. */\n prompt: ChatPromptTemplate;\n /**\n * Whether to invoke the underlying model in streaming mode,\n * allowing streaming of intermediate steps. Defaults to true.\n */\n streamRunnable?: boolean;\n};\n/**\n * Create an agent that uses OpenAI-style tool calling.\n * @param params Params required to create the agent. Includes an LLM, tools, and prompt.\n * @returns A runnable sequence representing an agent. It takes as input all the same input\n * variables as the prompt passed in does. It returns as output either an\n * AgentAction or AgentFinish.\n *\n * @example\n * ```typescript\n * import { AgentExecutor, createOpenAIToolsAgent } from \"langchain/agents\";\n * import { pull } from \"langchain/hub\";\n * import type { ChatPromptTemplate } from \"@langchain/core/prompts\";\n * import { AIMessage, HumanMessage } from \"@langchain/core/messages\";\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n *\n * // Define the tools the agent will have access to.\n * const tools = [...];\n *\n * // Get the prompt to use - you can modify this!\n * // If you want to see the prompt in full, you can at:\n * // https://smith.langchain.com/hub/hwchase17/openai-tools-agent\n * const prompt = await pull<ChatPromptTemplate>(\n * \"hwchase17/openai-tools-agent\"\n * );\n *\n * const llm = new ChatOpenAI({\n * temperature: 0,\n * model: \"gpt-3.5-turbo-1106\",\n * });\n *\n * const agent = await createOpenAIToolsAgent({\n * llm,\n * tools,\n * prompt,\n * });\n *\n * const agentExecutor = new AgentExecutor({\n * agent,\n * tools,\n * });\n *\n * const result = await agentExecutor.invoke({\n * input: \"what is LangChain?\",\n * });\n *\n * // With chat history\n * const result2 = await agentExecutor.invoke({\n * input: \"what's my name?\",\n * chat_history: [\n * new HumanMessage(\"hi! my name is cob\"),\n * new AIMessage(\"Hello Cob! How can I assist you today?\"),\n * ],\n * });\n * ```\n */\nexport declare function createOpenAIToolsAgent({ llm, tools, prompt, streamRunnable }: CreateOpenAIToolsAgentParams): Promise<AgentRunnableSequence<{\n steps: ToolsAgentStep[];\n}, import(\"@langchain/core/agents\").AgentFinish | import(\"@langchain/core/agents\").AgentAction[]>>;\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;;AAWYS,KAAAA,4BAAAA,GAA4B;EAMjBP;;;;;EAIgBG,GAAAA,EAJ9BJ,aAI8BI,CAJhBH,wBAIgBG,GAAAA;IAE3BF,KAAAA,CAAAA,EALIH,uBAKJG,EAAAA,GALgCC,YAAAA,CAAaM,kBAK7CP,EAAAA,GAAAA,GAAAA,EAAAA;EAAkB,CAAA,CAAA;EA+DNQ;EAAyBC,KAAAA,EAjEtCZ,uBAiEsCY,EAAAA,GAjEVP,cAiEUO,EAAAA;EAAKC;EAAOC,MAAAA,EA/DjDX,kBA+DiDW;EAAQC;;;;EAEtBC,cAAAA,CAAAA,EAAAA,OAAoCE;CAF2CV;;AAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAArGG,sBAAAA;;;;;GAA+DF,+BAA+BU,QAAQX;SACnHD;GAAcS,uBAAAA,CACWC,WAAAA,GAAWD,uBAAAA,CAAoCE,WAAAA"}
1
+ {"version":3,"file":"index.d.ts","names":["StructuredToolInterface","BaseChatModel","BaseChatModelCallOptions","ChatPromptTemplate","OpenAIClient","ToolDefinition","OpenAIToolsAgentOutputParser","ToolsAgentStep","AgentRunnableSequence","CreateOpenAIToolsAgentParams","ChatCompletionTool","createOpenAIToolsAgent","llm","tools","prompt","streamRunnable","_langchain_core_agents1","AgentFinish","AgentAction","Promise"],"sources":["../../../src/agents/openai_tools/index.d.ts"],"sourcesContent":["import type { StructuredToolInterface } from \"@langchain/core/tools\";\nimport type { BaseChatModel, BaseChatModelCallOptions } from \"@langchain/core/language_models/chat_models\";\nimport { ChatPromptTemplate } from \"@langchain/core/prompts\";\nimport { OpenAIClient } from \"@langchain/openai\";\nimport { ToolDefinition } from \"@langchain/core/language_models/base\";\nimport { OpenAIToolsAgentOutputParser, type ToolsAgentStep } from \"./output_parser.js\";\nimport { AgentRunnableSequence } from \"../agent.js\";\nexport { OpenAIToolsAgentOutputParser, type ToolsAgentStep };\n/**\n * Params used by the createOpenAIToolsAgent function.\n */\nexport type CreateOpenAIToolsAgentParams = {\n /**\n * LLM to use as the agent. Should work with OpenAI tool calling,\n * so must either be an OpenAI model that supports that or a wrapper of\n * a different model that adds in equivalent support.\n */\n llm: BaseChatModel<BaseChatModelCallOptions & {\n tools?: StructuredToolInterface[] | OpenAIClient.ChatCompletionTool[] | any[];\n }>;\n /** Tools this agent has access to. */\n tools: StructuredToolInterface[] | ToolDefinition[];\n /** The prompt to use, must have an input key of `agent_scratchpad`. */\n prompt: ChatPromptTemplate;\n /**\n * Whether to invoke the underlying model in streaming mode,\n * allowing streaming of intermediate steps. Defaults to true.\n */\n streamRunnable?: boolean;\n};\n/**\n * Create an agent that uses OpenAI-style tool calling.\n * @param params Params required to create the agent. Includes an LLM, tools, and prompt.\n * @returns A runnable sequence representing an agent. It takes as input all the same input\n * variables as the prompt passed in does. It returns as output either an\n * AgentAction or AgentFinish.\n *\n * @example\n * ```typescript\n * import { AgentExecutor, createOpenAIToolsAgent } from \"langchain/agents\";\n * import { pull } from \"langchain/hub\";\n * import type { ChatPromptTemplate } from \"@langchain/core/prompts\";\n * import { AIMessage, HumanMessage } from \"@langchain/core/messages\";\n *\n * import { ChatOpenAI } from \"@langchain/openai\";\n *\n * // Define the tools the agent will have access to.\n * const tools = [...];\n *\n * // Get the prompt to use - you can modify this!\n * // If you want to see the prompt in full, you can at:\n * // https://smith.langchain.com/hub/hwchase17/openai-tools-agent\n * const prompt = await pull<ChatPromptTemplate>(\n * \"hwchase17/openai-tools-agent\"\n * );\n *\n * const llm = new ChatOpenAI({\n * temperature: 0,\n * model: \"gpt-3.5-turbo-1106\",\n * });\n *\n * const agent = await createOpenAIToolsAgent({\n * llm,\n * tools,\n * prompt,\n * });\n *\n * const agentExecutor = new AgentExecutor({\n * agent,\n * tools,\n * });\n *\n * const result = await agentExecutor.invoke({\n * input: \"what is LangChain?\",\n * });\n *\n * // With chat history\n * const result2 = await agentExecutor.invoke({\n * input: \"what's my name?\",\n * chat_history: [\n * new HumanMessage(\"hi! my name is cob\"),\n * new AIMessage(\"Hello Cob! How can I assist you today?\"),\n * ],\n * });\n * ```\n */\nexport declare function createOpenAIToolsAgent({ llm, tools, prompt, streamRunnable }: CreateOpenAIToolsAgentParams): Promise<AgentRunnableSequence<{\n steps: ToolsAgentStep[];\n}, import(\"@langchain/core/agents\").AgentFinish | import(\"@langchain/core/agents\").AgentAction[]>>;\n//# sourceMappingURL=index.d.ts.map"],"mappings":";;;;;;;;;;;;;;AAWYS,KAAAA,4BAAAA,GAA4B;EAMjBP;;;;;EAIgBG,GAAAA,EAJ9BJ,aAI8BI,CAJhBH,wBAIgBG,GAAAA;IAE3BF,KAAAA,CAAAA,EALIH,uBAKJG,EAAAA,GALgCC,YAAAA,CAAaM,kBAK7CP,EAAAA,GAAAA,GAAAA,EAAAA;EAAkB,CAAA,CAAA;EA+DNQ;EAAyBC,KAAAA,EAjEtCZ,uBAiEsCY,EAAAA,GAjEVP,cAiEUO,EAAAA;EAAKC;EAAOC,MAAAA,EA/DjDX,kBA+DiDW;EAAQC;;;;EAEtBC,cAAAA,CAAAA,EAAAA,OAAoCE;CAF2CV;;AAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAArGG,sBAAAA;;;;;GAA+DF,+BAA+BU,QAAQX;SACnHD;GAAcS,uBAAAA,CACWC,WAAAA,GAAWD,uBAAAA,CAAoCE,WAAAA"}
@@ -5,7 +5,7 @@ import { StructuredChatOutputParserWithRetries } from "./outputParser.js";
5
5
  import { BaseMessagePromptTemplate, BasePromptTemplate, ChatPromptTemplate } from "@langchain/core/prompts";
6
6
  import { StructuredToolInterface } from "@langchain/core/tools";
7
7
  import { BaseLanguageModelInterface, ToolDefinition } from "@langchain/core/language_models/base";
8
- import * as _langchain_core_agents1 from "@langchain/core/agents";
8
+ import * as _langchain_core_agents0 from "@langchain/core/agents";
9
9
  import { AgentStep } from "@langchain/core/agents";
10
10
 
11
11
  //#region src/agents/structured_chat/index.d.ts
@@ -176,7 +176,7 @@ declare function createStructuredChatAgent({
176
176
  streamRunnable
177
177
  }: CreateStructuredChatAgentParams): Promise<AgentRunnableSequence<{
178
178
  steps: AgentStep[];
179
- }, _langchain_core_agents1.AgentAction | _langchain_core_agents1.AgentFinish>>;
179
+ }, _langchain_core_agents0.AgentAction | _langchain_core_agents0.AgentFinish>>;
180
180
  //#endregion
181
181
  export { CreateStructuredChatAgentParams, StructuredChatAgent, StructuredChatAgentInput, StructuredChatCreatePromptArgs, createStructuredChatAgent };
182
182
  //# sourceMappingURL=index.d.ts.map