@langchain/core 1.2.3 → 1.2.5

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 (1248) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/agents.d.cts.map +1 -1
  3. package/dist/agents.d.ts.map +1 -1
  4. package/dist/caches/index.cjs.map +1 -1
  5. package/dist/caches/index.d.cts +0 -1
  6. package/dist/caches/index.d.cts.map +1 -1
  7. package/dist/caches/index.d.ts +0 -1
  8. package/dist/caches/index.d.ts.map +1 -1
  9. package/dist/caches/index.js.map +1 -1
  10. package/dist/callbacks/base.cjs.map +1 -1
  11. package/dist/callbacks/base.d.cts +68 -36
  12. package/dist/callbacks/base.d.cts.map +1 -1
  13. package/dist/callbacks/base.d.ts +68 -36
  14. package/dist/callbacks/base.d.ts.map +1 -1
  15. package/dist/callbacks/base.js.map +1 -1
  16. package/dist/callbacks/dispatch/index.cjs +0 -1
  17. package/dist/callbacks/dispatch/index.cjs.map +1 -1
  18. package/dist/callbacks/dispatch/index.d.cts +1 -0
  19. package/dist/callbacks/dispatch/index.d.cts.map +1 -1
  20. package/dist/callbacks/dispatch/index.d.ts +1 -0
  21. package/dist/callbacks/dispatch/index.d.ts.map +1 -1
  22. package/dist/callbacks/dispatch/index.js.map +1 -1
  23. package/dist/callbacks/dispatch/web.cjs.map +1 -1
  24. package/dist/callbacks/dispatch/web.d.cts +1 -0
  25. package/dist/callbacks/dispatch/web.d.cts.map +1 -1
  26. package/dist/callbacks/dispatch/web.d.ts +1 -0
  27. package/dist/callbacks/dispatch/web.d.ts.map +1 -1
  28. package/dist/callbacks/dispatch/web.js.map +1 -1
  29. package/dist/callbacks/manager.cjs +75 -8
  30. package/dist/callbacks/manager.cjs.map +1 -1
  31. package/dist/callbacks/manager.d.cts +1 -2
  32. package/dist/callbacks/manager.d.cts.map +1 -1
  33. package/dist/callbacks/manager.d.ts +1 -2
  34. package/dist/callbacks/manager.d.ts.map +1 -1
  35. package/dist/callbacks/manager.js +75 -8
  36. package/dist/callbacks/manager.js.map +1 -1
  37. package/dist/chat_history.cjs.map +1 -1
  38. package/dist/chat_history.d.cts +1 -0
  39. package/dist/chat_history.d.cts.map +1 -1
  40. package/dist/chat_history.d.ts +1 -0
  41. package/dist/chat_history.d.ts.map +1 -1
  42. package/dist/chat_history.js.map +1 -1
  43. package/dist/context.cjs +0 -1
  44. package/dist/context.cjs.map +1 -1
  45. package/dist/context.d.cts +0 -1
  46. package/dist/context.d.cts.map +1 -1
  47. package/dist/context.d.ts +0 -1
  48. package/dist/context.d.ts.map +1 -1
  49. package/dist/context.js.map +1 -1
  50. package/dist/document_loaders/base.cjs.map +1 -1
  51. package/dist/document_loaders/base.d.cts +0 -1
  52. package/dist/document_loaders/base.d.cts.map +1 -1
  53. package/dist/document_loaders/base.d.ts +0 -1
  54. package/dist/document_loaders/base.d.ts.map +1 -1
  55. package/dist/document_loaders/base.js.map +1 -1
  56. package/dist/document_loaders/langsmith.cjs.map +1 -1
  57. package/dist/document_loaders/langsmith.d.cts +0 -1
  58. package/dist/document_loaders/langsmith.d.cts.map +1 -1
  59. package/dist/document_loaders/langsmith.d.ts +0 -1
  60. package/dist/document_loaders/langsmith.d.ts.map +1 -1
  61. package/dist/document_loaders/langsmith.js.map +1 -1
  62. package/dist/documents/document.cjs.map +1 -1
  63. package/dist/documents/document.d.cts.map +1 -1
  64. package/dist/documents/document.d.ts.map +1 -1
  65. package/dist/documents/document.js.map +1 -1
  66. package/dist/documents/transformers.cjs.map +1 -1
  67. package/dist/documents/transformers.d.cts +0 -1
  68. package/dist/documents/transformers.d.cts.map +1 -1
  69. package/dist/documents/transformers.d.ts +0 -1
  70. package/dist/documents/transformers.d.ts.map +1 -1
  71. package/dist/documents/transformers.js.map +1 -1
  72. package/dist/embeddings.cjs.map +1 -1
  73. package/dist/embeddings.d.cts +0 -1
  74. package/dist/embeddings.d.cts.map +1 -1
  75. package/dist/embeddings.d.ts +0 -1
  76. package/dist/embeddings.d.ts.map +1 -1
  77. package/dist/embeddings.js.map +1 -1
  78. package/dist/errors/index.cjs.map +1 -1
  79. package/dist/errors/index.d.cts +0 -1
  80. package/dist/errors/index.d.cts.map +1 -1
  81. package/dist/errors/index.d.ts +0 -1
  82. package/dist/errors/index.d.ts.map +1 -1
  83. package/dist/errors/index.js.map +1 -1
  84. package/dist/example_selectors/base.cjs.map +1 -1
  85. package/dist/example_selectors/base.d.cts +0 -1
  86. package/dist/example_selectors/base.d.cts.map +1 -1
  87. package/dist/example_selectors/base.d.ts +0 -1
  88. package/dist/example_selectors/base.d.ts.map +1 -1
  89. package/dist/example_selectors/base.js.map +1 -1
  90. package/dist/example_selectors/conditional.cjs.map +1 -1
  91. package/dist/example_selectors/conditional.d.cts +0 -1
  92. package/dist/example_selectors/conditional.d.cts.map +1 -1
  93. package/dist/example_selectors/conditional.d.ts +0 -1
  94. package/dist/example_selectors/conditional.d.ts.map +1 -1
  95. package/dist/example_selectors/conditional.js.map +1 -1
  96. package/dist/example_selectors/length_based.cjs.map +1 -1
  97. package/dist/example_selectors/length_based.d.cts +0 -1
  98. package/dist/example_selectors/length_based.d.cts.map +1 -1
  99. package/dist/example_selectors/length_based.d.ts +0 -1
  100. package/dist/example_selectors/length_based.d.ts.map +1 -1
  101. package/dist/example_selectors/length_based.js.map +1 -1
  102. package/dist/example_selectors/semantic_similarity.cjs +2 -1
  103. package/dist/example_selectors/semantic_similarity.cjs.map +1 -1
  104. package/dist/example_selectors/semantic_similarity.d.cts +0 -1
  105. package/dist/example_selectors/semantic_similarity.d.cts.map +1 -1
  106. package/dist/example_selectors/semantic_similarity.d.ts +0 -1
  107. package/dist/example_selectors/semantic_similarity.d.ts.map +1 -1
  108. package/dist/example_selectors/semantic_similarity.js +2 -1
  109. package/dist/example_selectors/semantic_similarity.js.map +1 -1
  110. package/dist/index.d.cts +1 -1
  111. package/dist/index.d.ts +1 -1
  112. package/dist/indexing/base.cjs.map +1 -1
  113. package/dist/indexing/base.d.cts +0 -1
  114. package/dist/indexing/base.d.cts.map +1 -1
  115. package/dist/indexing/base.d.ts +0 -1
  116. package/dist/indexing/base.d.ts.map +1 -1
  117. package/dist/indexing/base.js.map +1 -1
  118. package/dist/indexing/record_manager.cjs.map +1 -1
  119. package/dist/indexing/record_manager.d.cts +0 -1
  120. package/dist/indexing/record_manager.d.cts.map +1 -1
  121. package/dist/indexing/record_manager.d.ts +0 -1
  122. package/dist/indexing/record_manager.d.ts.map +1 -1
  123. package/dist/indexing/record_manager.js.map +1 -1
  124. package/dist/language_models/base.cjs +1 -1
  125. package/dist/language_models/base.cjs.map +1 -1
  126. package/dist/language_models/base.d.cts +10 -17
  127. package/dist/language_models/base.d.cts.map +1 -1
  128. package/dist/language_models/base.d.ts +10 -17
  129. package/dist/language_models/base.d.ts.map +1 -1
  130. package/dist/language_models/base.js +1 -1
  131. package/dist/language_models/base.js.map +1 -1
  132. package/dist/language_models/chat_models.cjs +12 -6
  133. package/dist/language_models/chat_models.cjs.map +1 -1
  134. package/dist/language_models/chat_models.d.cts +7 -9
  135. package/dist/language_models/chat_models.d.cts.map +1 -1
  136. package/dist/language_models/chat_models.d.ts +7 -9
  137. package/dist/language_models/chat_models.d.ts.map +1 -1
  138. package/dist/language_models/chat_models.js +12 -6
  139. package/dist/language_models/chat_models.js.map +1 -1
  140. package/dist/language_models/compat.cjs.map +1 -1
  141. package/dist/language_models/compat.d.cts +0 -1
  142. package/dist/language_models/compat.d.cts.map +1 -1
  143. package/dist/language_models/compat.d.ts +0 -1
  144. package/dist/language_models/compat.d.ts.map +1 -1
  145. package/dist/language_models/compat.js.map +1 -1
  146. package/dist/language_models/event.d.cts +0 -1
  147. package/dist/language_models/event.d.cts.map +1 -1
  148. package/dist/language_models/event.d.ts +0 -1
  149. package/dist/language_models/event.d.ts.map +1 -1
  150. package/dist/language_models/llms.cjs.map +1 -1
  151. package/dist/language_models/llms.d.cts +2 -9
  152. package/dist/language_models/llms.d.cts.map +1 -1
  153. package/dist/language_models/llms.d.ts +2 -9
  154. package/dist/language_models/llms.d.ts.map +1 -1
  155. package/dist/language_models/llms.js.map +1 -1
  156. package/dist/language_models/openai_completions_stream.cjs.map +1 -1
  157. package/dist/language_models/openai_completions_stream.d.cts +0 -1
  158. package/dist/language_models/openai_completions_stream.d.cts.map +1 -1
  159. package/dist/language_models/openai_completions_stream.d.ts +0 -1
  160. package/dist/language_models/openai_completions_stream.d.ts.map +1 -1
  161. package/dist/language_models/openai_completions_stream.js.map +1 -1
  162. package/dist/language_models/profile.d.cts.map +1 -1
  163. package/dist/language_models/profile.d.ts.map +1 -1
  164. package/dist/language_models/stream.cjs.map +1 -1
  165. package/dist/language_models/stream.d.cts +2 -1
  166. package/dist/language_models/stream.d.cts.map +1 -1
  167. package/dist/language_models/stream.d.ts +2 -1
  168. package/dist/language_models/stream.d.ts.map +1 -1
  169. package/dist/language_models/stream.js.map +1 -1
  170. package/dist/language_models/structured_output.cjs.map +1 -1
  171. package/dist/language_models/structured_output.d.cts +4 -0
  172. package/dist/language_models/structured_output.d.cts.map +1 -1
  173. package/dist/language_models/structured_output.d.ts +4 -0
  174. package/dist/language_models/structured_output.d.ts.map +1 -1
  175. package/dist/language_models/structured_output.js.map +1 -1
  176. package/dist/language_models/utils.cjs.map +1 -1
  177. package/dist/language_models/utils.js.map +1 -1
  178. package/dist/load/import_constants.cjs.map +1 -1
  179. package/dist/load/import_constants.js.map +1 -1
  180. package/dist/load/import_map.cjs +410 -0
  181. package/dist/load/import_map.cjs.map +1 -1
  182. package/dist/load/import_map.js +3 -1
  183. package/dist/load/import_map.js.map +1 -1
  184. package/dist/load/import_type.d.cts.map +1 -1
  185. package/dist/load/import_type.d.ts.map +1 -1
  186. package/dist/load/index.cjs.map +1 -1
  187. package/dist/load/index.d.cts +0 -1
  188. package/dist/load/index.d.cts.map +1 -1
  189. package/dist/load/index.d.ts +0 -1
  190. package/dist/load/index.d.ts.map +1 -1
  191. package/dist/load/index.js.map +1 -1
  192. package/dist/load/map_keys.cjs.map +1 -1
  193. package/dist/load/map_keys.d.cts.map +1 -1
  194. package/dist/load/map_keys.d.ts.map +1 -1
  195. package/dist/load/map_keys.js.map +1 -1
  196. package/dist/load/serializable.cjs.map +1 -1
  197. package/dist/load/serializable.d.cts +0 -1
  198. package/dist/load/serializable.d.cts.map +1 -1
  199. package/dist/load/serializable.d.ts +0 -1
  200. package/dist/load/serializable.d.ts.map +1 -1
  201. package/dist/load/serializable.js.map +1 -1
  202. package/dist/load/validation.cjs +3 -0
  203. package/dist/load/validation.cjs.map +1 -1
  204. package/dist/load/validation.js +1 -1
  205. package/dist/load/validation.js.map +1 -1
  206. package/dist/memory.cjs +8 -2
  207. package/dist/memory.cjs.map +1 -1
  208. package/dist/memory.d.cts.map +1 -1
  209. package/dist/memory.d.ts.map +1 -1
  210. package/dist/memory.js +8 -2
  211. package/dist/memory.js.map +1 -1
  212. package/dist/messages/ai.cjs.map +1 -1
  213. package/dist/messages/ai.d.cts +0 -1
  214. package/dist/messages/ai.d.cts.map +1 -1
  215. package/dist/messages/ai.d.ts +0 -1
  216. package/dist/messages/ai.d.ts.map +1 -1
  217. package/dist/messages/ai.js.map +1 -1
  218. package/dist/messages/base.cjs.map +1 -1
  219. package/dist/messages/base.d.cts +6 -9
  220. package/dist/messages/base.d.cts.map +1 -1
  221. package/dist/messages/base.d.ts +6 -9
  222. package/dist/messages/base.d.ts.map +1 -1
  223. package/dist/messages/base.js.map +1 -1
  224. package/dist/messages/block_translators/anthropic.cjs +2 -0
  225. package/dist/messages/block_translators/anthropic.cjs.map +1 -1
  226. package/dist/messages/block_translators/anthropic.js +1 -1
  227. package/dist/messages/block_translators/anthropic.js.map +1 -1
  228. package/dist/messages/block_translators/bedrock_converse.cjs.map +1 -1
  229. package/dist/messages/block_translators/bedrock_converse.js.map +1 -1
  230. package/dist/messages/block_translators/data.cjs +1 -0
  231. package/dist/messages/block_translators/data.cjs.map +1 -1
  232. package/dist/messages/block_translators/data.js +1 -1
  233. package/dist/messages/block_translators/data.js.map +1 -1
  234. package/dist/messages/block_translators/deepseek.cjs +1 -0
  235. package/dist/messages/block_translators/deepseek.cjs.map +1 -1
  236. package/dist/messages/block_translators/deepseek.js +1 -1
  237. package/dist/messages/block_translators/deepseek.js.map +1 -1
  238. package/dist/messages/block_translators/google.cjs.map +1 -1
  239. package/dist/messages/block_translators/google.js.map +1 -1
  240. package/dist/messages/block_translators/google_genai.cjs.map +1 -1
  241. package/dist/messages/block_translators/google_genai.js.map +1 -1
  242. package/dist/messages/block_translators/google_vertexai.cjs.map +1 -1
  243. package/dist/messages/block_translators/google_vertexai.js.map +1 -1
  244. package/dist/messages/block_translators/groq.cjs +1 -0
  245. package/dist/messages/block_translators/groq.cjs.map +1 -1
  246. package/dist/messages/block_translators/groq.js +1 -1
  247. package/dist/messages/block_translators/groq.js.map +1 -1
  248. package/dist/messages/block_translators/index.cjs +1 -1
  249. package/dist/messages/block_translators/index.cjs.map +1 -1
  250. package/dist/messages/block_translators/index.js +1 -1
  251. package/dist/messages/block_translators/index.js.map +1 -1
  252. package/dist/messages/block_translators/ollama.cjs +1 -0
  253. package/dist/messages/block_translators/ollama.cjs.map +1 -1
  254. package/dist/messages/block_translators/ollama.js +1 -1
  255. package/dist/messages/block_translators/ollama.js.map +1 -1
  256. package/dist/messages/block_translators/openai.cjs +4 -0
  257. package/dist/messages/block_translators/openai.cjs.map +1 -1
  258. package/dist/messages/block_translators/openai.js +1 -1
  259. package/dist/messages/block_translators/openai.js.map +1 -1
  260. package/dist/messages/block_translators/openrouter.cjs +1 -0
  261. package/dist/messages/block_translators/openrouter.cjs.map +1 -1
  262. package/dist/messages/block_translators/openrouter.js +1 -1
  263. package/dist/messages/block_translators/openrouter.js.map +1 -1
  264. package/dist/messages/block_translators/utils.cjs.map +1 -1
  265. package/dist/messages/block_translators/utils.js.map +1 -1
  266. package/dist/messages/block_translators/xai.cjs +1 -0
  267. package/dist/messages/block_translators/xai.cjs.map +1 -1
  268. package/dist/messages/block_translators/xai.js +1 -1
  269. package/dist/messages/block_translators/xai.js.map +1 -1
  270. package/dist/messages/chat.cjs.map +1 -1
  271. package/dist/messages/chat.d.cts +0 -1
  272. package/dist/messages/chat.d.cts.map +1 -1
  273. package/dist/messages/chat.d.ts +0 -1
  274. package/dist/messages/chat.d.ts.map +1 -1
  275. package/dist/messages/chat.js.map +1 -1
  276. package/dist/messages/content/base.d.cts.map +1 -1
  277. package/dist/messages/content/base.d.ts.map +1 -1
  278. package/dist/messages/content/data.cjs.map +1 -1
  279. package/dist/messages/content/data.d.cts +2 -9
  280. package/dist/messages/content/data.d.cts.map +1 -1
  281. package/dist/messages/content/data.d.ts +2 -9
  282. package/dist/messages/content/data.d.ts.map +1 -1
  283. package/dist/messages/content/data.js.map +1 -1
  284. package/dist/messages/content/index.cjs.map +1 -1
  285. package/dist/messages/content/index.d.cts +0 -1
  286. package/dist/messages/content/index.d.cts.map +1 -1
  287. package/dist/messages/content/index.d.ts +0 -1
  288. package/dist/messages/content/index.d.ts.map +1 -1
  289. package/dist/messages/content/index.js.map +1 -1
  290. package/dist/messages/content/multimodal.cjs.map +1 -1
  291. package/dist/messages/content/multimodal.d.cts +8 -5
  292. package/dist/messages/content/multimodal.d.cts.map +1 -1
  293. package/dist/messages/content/multimodal.d.ts +8 -5
  294. package/dist/messages/content/multimodal.d.ts.map +1 -1
  295. package/dist/messages/content/multimodal.js.map +1 -1
  296. package/dist/messages/content/tools.cjs.map +1 -1
  297. package/dist/messages/content/tools.d.cts +0 -1
  298. package/dist/messages/content/tools.d.cts.map +1 -1
  299. package/dist/messages/content/tools.d.ts +0 -1
  300. package/dist/messages/content/tools.d.ts.map +1 -1
  301. package/dist/messages/content/tools.js.map +1 -1
  302. package/dist/messages/format.cjs.map +1 -1
  303. package/dist/messages/format.d.cts.map +1 -1
  304. package/dist/messages/format.d.ts.map +1 -1
  305. package/dist/messages/format.js.map +1 -1
  306. package/dist/messages/function.cjs.map +1 -1
  307. package/dist/messages/function.d.cts +0 -1
  308. package/dist/messages/function.d.cts.map +1 -1
  309. package/dist/messages/function.d.ts +0 -1
  310. package/dist/messages/function.d.ts.map +1 -1
  311. package/dist/messages/function.js.map +1 -1
  312. package/dist/messages/human.cjs.map +1 -1
  313. package/dist/messages/human.d.cts +0 -1
  314. package/dist/messages/human.d.cts.map +1 -1
  315. package/dist/messages/human.d.ts +0 -1
  316. package/dist/messages/human.d.ts.map +1 -1
  317. package/dist/messages/human.js.map +1 -1
  318. package/dist/messages/message.cjs.map +1 -1
  319. package/dist/messages/message.d.cts +31 -22
  320. package/dist/messages/message.d.cts.map +1 -1
  321. package/dist/messages/message.d.ts +31 -22
  322. package/dist/messages/message.d.ts.map +1 -1
  323. package/dist/messages/message.js.map +1 -1
  324. package/dist/messages/metadata.cjs.map +1 -1
  325. package/dist/messages/metadata.d.cts +0 -1
  326. package/dist/messages/metadata.d.cts.map +1 -1
  327. package/dist/messages/metadata.d.ts +0 -1
  328. package/dist/messages/metadata.d.ts.map +1 -1
  329. package/dist/messages/metadata.js.map +1 -1
  330. package/dist/messages/modifier.cjs.map +1 -1
  331. package/dist/messages/modifier.d.cts +0 -1
  332. package/dist/messages/modifier.d.cts.map +1 -1
  333. package/dist/messages/modifier.d.ts +0 -1
  334. package/dist/messages/modifier.d.ts.map +1 -1
  335. package/dist/messages/modifier.js.map +1 -1
  336. package/dist/messages/system.cjs.map +1 -1
  337. package/dist/messages/system.d.cts +0 -1
  338. package/dist/messages/system.d.cts.map +1 -1
  339. package/dist/messages/system.d.ts +0 -1
  340. package/dist/messages/system.d.ts.map +1 -1
  341. package/dist/messages/system.js.map +1 -1
  342. package/dist/messages/tool.cjs.map +1 -1
  343. package/dist/messages/tool.d.cts +3 -4
  344. package/dist/messages/tool.d.cts.map +1 -1
  345. package/dist/messages/tool.d.ts +3 -4
  346. package/dist/messages/tool.d.ts.map +1 -1
  347. package/dist/messages/tool.js.map +1 -1
  348. package/dist/messages/transformers.cjs +1 -1
  349. package/dist/messages/transformers.cjs.map +1 -1
  350. package/dist/messages/transformers.d.cts +1 -3
  351. package/dist/messages/transformers.d.cts.map +1 -1
  352. package/dist/messages/transformers.d.ts +1 -3
  353. package/dist/messages/transformers.d.ts.map +1 -1
  354. package/dist/messages/transformers.js +1 -1
  355. package/dist/messages/transformers.js.map +1 -1
  356. package/dist/messages/utils.cjs.map +1 -1
  357. package/dist/messages/utils.d.cts +4 -5
  358. package/dist/messages/utils.d.cts.map +1 -1
  359. package/dist/messages/utils.d.ts +4 -5
  360. package/dist/messages/utils.d.ts.map +1 -1
  361. package/dist/messages/utils.js.map +1 -1
  362. package/dist/output_parsers/base.cjs.map +1 -1
  363. package/dist/output_parsers/base.d.cts +4 -1
  364. package/dist/output_parsers/base.d.cts.map +1 -1
  365. package/dist/output_parsers/base.d.ts +4 -1
  366. package/dist/output_parsers/base.d.ts.map +1 -1
  367. package/dist/output_parsers/base.js.map +1 -1
  368. package/dist/output_parsers/bytes.cjs.map +1 -1
  369. package/dist/output_parsers/bytes.d.cts +0 -1
  370. package/dist/output_parsers/bytes.d.cts.map +1 -1
  371. package/dist/output_parsers/bytes.d.ts +0 -1
  372. package/dist/output_parsers/bytes.d.ts.map +1 -1
  373. package/dist/output_parsers/bytes.js.map +1 -1
  374. package/dist/output_parsers/json.cjs +2 -0
  375. package/dist/output_parsers/json.cjs.map +1 -1
  376. package/dist/output_parsers/json.d.cts +2 -2
  377. package/dist/output_parsers/json.d.cts.map +1 -1
  378. package/dist/output_parsers/json.d.ts +2 -2
  379. package/dist/output_parsers/json.d.ts.map +1 -1
  380. package/dist/output_parsers/json.js +2 -2
  381. package/dist/output_parsers/json.js.map +1 -1
  382. package/dist/output_parsers/list.cjs.map +1 -1
  383. package/dist/output_parsers/list.d.cts +2 -5
  384. package/dist/output_parsers/list.d.cts.map +1 -1
  385. package/dist/output_parsers/list.d.ts +2 -5
  386. package/dist/output_parsers/list.d.ts.map +1 -1
  387. package/dist/output_parsers/list.js.map +1 -1
  388. package/dist/output_parsers/openai_functions/json_output_functions_parsers.cjs.map +1 -1
  389. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts +1 -1
  390. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts.map +1 -1
  391. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +1 -1
  392. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts.map +1 -1
  393. package/dist/output_parsers/openai_functions/json_output_functions_parsers.js.map +1 -1
  394. package/dist/output_parsers/openai_tools/json_output_tools_parsers.cjs.map +1 -1
  395. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts +2 -2
  396. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts.map +1 -1
  397. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +2 -2
  398. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts.map +1 -1
  399. package/dist/output_parsers/openai_tools/json_output_tools_parsers.js.map +1 -1
  400. package/dist/output_parsers/standard_schema.cjs.map +1 -1
  401. package/dist/output_parsers/standard_schema.d.cts +1 -1
  402. package/dist/output_parsers/standard_schema.d.cts.map +1 -1
  403. package/dist/output_parsers/standard_schema.d.ts +1 -1
  404. package/dist/output_parsers/standard_schema.d.ts.map +1 -1
  405. package/dist/output_parsers/standard_schema.js.map +1 -1
  406. package/dist/output_parsers/string.cjs.map +1 -1
  407. package/dist/output_parsers/string.d.cts +1 -1
  408. package/dist/output_parsers/string.d.cts.map +1 -1
  409. package/dist/output_parsers/string.d.ts +1 -1
  410. package/dist/output_parsers/string.d.ts.map +1 -1
  411. package/dist/output_parsers/string.js.map +1 -1
  412. package/dist/output_parsers/structured.cjs +1 -1
  413. package/dist/output_parsers/structured.cjs.map +1 -1
  414. package/dist/output_parsers/structured.d.cts +2 -4
  415. package/dist/output_parsers/structured.d.cts.map +1 -1
  416. package/dist/output_parsers/structured.d.ts +2 -4
  417. package/dist/output_parsers/structured.d.ts.map +1 -1
  418. package/dist/output_parsers/structured.js +1 -0
  419. package/dist/output_parsers/structured.js.map +1 -1
  420. package/dist/output_parsers/transform.cjs +0 -1
  421. package/dist/output_parsers/transform.cjs.map +1 -1
  422. package/dist/output_parsers/transform.d.cts +0 -1
  423. package/dist/output_parsers/transform.d.cts.map +1 -1
  424. package/dist/output_parsers/transform.d.ts +0 -1
  425. package/dist/output_parsers/transform.d.ts.map +1 -1
  426. package/dist/output_parsers/transform.js.map +1 -1
  427. package/dist/output_parsers/xml.cjs.map +1 -1
  428. package/dist/output_parsers/xml.d.cts +0 -1
  429. package/dist/output_parsers/xml.d.cts.map +1 -1
  430. package/dist/output_parsers/xml.d.ts +0 -1
  431. package/dist/output_parsers/xml.d.ts.map +1 -1
  432. package/dist/output_parsers/xml.js.map +1 -1
  433. package/dist/outputs.cjs.map +1 -1
  434. package/dist/outputs.d.cts +0 -1
  435. package/dist/outputs.d.cts.map +1 -1
  436. package/dist/outputs.d.ts +0 -1
  437. package/dist/outputs.d.ts.map +1 -1
  438. package/dist/outputs.js.map +1 -1
  439. package/dist/prompt_values.cjs.map +1 -1
  440. package/dist/prompt_values.d.cts +3 -2
  441. package/dist/prompt_values.d.cts.map +1 -1
  442. package/dist/prompt_values.d.ts +3 -2
  443. package/dist/prompt_values.d.ts.map +1 -1
  444. package/dist/prompt_values.js.map +1 -1
  445. package/dist/prompts/base.cjs.map +1 -1
  446. package/dist/prompts/base.d.cts +2 -1
  447. package/dist/prompts/base.d.cts.map +1 -1
  448. package/dist/prompts/base.d.ts +2 -1
  449. package/dist/prompts/base.d.ts.map +1 -1
  450. package/dist/prompts/base.js.map +1 -1
  451. package/dist/prompts/chat.cjs +3 -2
  452. package/dist/prompts/chat.cjs.map +1 -1
  453. package/dist/prompts/chat.d.cts +4 -4
  454. package/dist/prompts/chat.d.cts.map +1 -1
  455. package/dist/prompts/chat.d.ts +4 -4
  456. package/dist/prompts/chat.d.ts.map +1 -1
  457. package/dist/prompts/chat.js +3 -2
  458. package/dist/prompts/chat.js.map +1 -1
  459. package/dist/prompts/dict.cjs.map +1 -1
  460. package/dist/prompts/dict.d.cts +0 -1
  461. package/dist/prompts/dict.d.cts.map +1 -1
  462. package/dist/prompts/dict.d.ts +0 -1
  463. package/dist/prompts/dict.d.ts.map +1 -1
  464. package/dist/prompts/dict.js.map +1 -1
  465. package/dist/prompts/few_shot.cjs +6 -4
  466. package/dist/prompts/few_shot.cjs.map +1 -1
  467. package/dist/prompts/few_shot.d.cts +1 -1
  468. package/dist/prompts/few_shot.d.cts.map +1 -1
  469. package/dist/prompts/few_shot.d.ts +1 -1
  470. package/dist/prompts/few_shot.d.ts.map +1 -1
  471. package/dist/prompts/few_shot.js +6 -4
  472. package/dist/prompts/few_shot.js.map +1 -1
  473. package/dist/prompts/image.cjs +3 -2
  474. package/dist/prompts/image.cjs.map +1 -1
  475. package/dist/prompts/image.d.cts +1 -1
  476. package/dist/prompts/image.d.cts.map +1 -1
  477. package/dist/prompts/image.d.ts +1 -1
  478. package/dist/prompts/image.d.ts.map +1 -1
  479. package/dist/prompts/image.js +3 -2
  480. package/dist/prompts/image.js.map +1 -1
  481. package/dist/prompts/pipeline.cjs.map +1 -1
  482. package/dist/prompts/pipeline.d.cts +0 -1
  483. package/dist/prompts/pipeline.d.cts.map +1 -1
  484. package/dist/prompts/pipeline.d.ts +0 -1
  485. package/dist/prompts/pipeline.d.ts.map +1 -1
  486. package/dist/prompts/pipeline.js.map +1 -1
  487. package/dist/prompts/prompt.cjs +9 -7
  488. package/dist/prompts/prompt.cjs.map +1 -1
  489. package/dist/prompts/prompt.d.cts +2 -2
  490. package/dist/prompts/prompt.d.cts.map +1 -1
  491. package/dist/prompts/prompt.d.ts +2 -2
  492. package/dist/prompts/prompt.d.ts.map +1 -1
  493. package/dist/prompts/prompt.js +9 -7
  494. package/dist/prompts/prompt.js.map +1 -1
  495. package/dist/prompts/serde.d.cts +1 -1
  496. package/dist/prompts/serde.d.cts.map +1 -1
  497. package/dist/prompts/serde.d.ts +1 -1
  498. package/dist/prompts/serde.d.ts.map +1 -1
  499. package/dist/prompts/string.cjs.map +1 -1
  500. package/dist/prompts/string.d.cts +0 -1
  501. package/dist/prompts/string.d.cts.map +1 -1
  502. package/dist/prompts/string.d.ts +0 -1
  503. package/dist/prompts/string.d.ts.map +1 -1
  504. package/dist/prompts/string.js.map +1 -1
  505. package/dist/prompts/structured.cjs.map +1 -1
  506. package/dist/prompts/structured.d.cts +2 -2
  507. package/dist/prompts/structured.d.cts.map +1 -1
  508. package/dist/prompts/structured.d.ts +2 -2
  509. package/dist/prompts/structured.d.ts.map +1 -1
  510. package/dist/prompts/structured.js.map +1 -1
  511. package/dist/prompts/template.cjs +9 -9
  512. package/dist/prompts/template.cjs.map +1 -1
  513. package/dist/prompts/template.d.cts +1 -0
  514. package/dist/prompts/template.d.cts.map +1 -1
  515. package/dist/prompts/template.d.ts +1 -0
  516. package/dist/prompts/template.d.ts.map +1 -1
  517. package/dist/prompts/template.js +9 -9
  518. package/dist/prompts/template.js.map +1 -1
  519. package/dist/retrievers/document_compressors/index.cjs.map +1 -1
  520. package/dist/retrievers/document_compressors/index.d.cts +0 -1
  521. package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
  522. package/dist/retrievers/document_compressors/index.d.ts +0 -1
  523. package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
  524. package/dist/retrievers/document_compressors/index.js.map +1 -1
  525. package/dist/retrievers/index.cjs.map +1 -1
  526. package/dist/retrievers/index.d.cts +1 -1
  527. package/dist/retrievers/index.d.cts.map +1 -1
  528. package/dist/retrievers/index.d.ts +1 -1
  529. package/dist/retrievers/index.d.ts.map +1 -1
  530. package/dist/retrievers/index.js.map +1 -1
  531. package/dist/runnables/base.cjs +2 -1
  532. package/dist/runnables/base.cjs.map +1 -1
  533. package/dist/runnables/base.d.cts +7 -19
  534. package/dist/runnables/base.d.cts.map +1 -1
  535. package/dist/runnables/base.d.ts +7 -19
  536. package/dist/runnables/base.d.ts.map +1 -1
  537. package/dist/runnables/base.js +1 -1
  538. package/dist/runnables/base.js.map +1 -1
  539. package/dist/runnables/branch.cjs.map +1 -1
  540. package/dist/runnables/branch.d.cts +1 -1
  541. package/dist/runnables/branch.d.cts.map +1 -1
  542. package/dist/runnables/branch.d.ts +1 -1
  543. package/dist/runnables/branch.d.ts.map +1 -1
  544. package/dist/runnables/branch.js.map +1 -1
  545. package/dist/runnables/config.cjs +3 -2
  546. package/dist/runnables/config.cjs.map +1 -1
  547. package/dist/runnables/config.d.cts +2 -10
  548. package/dist/runnables/config.d.cts.map +1 -1
  549. package/dist/runnables/config.d.ts +2 -10
  550. package/dist/runnables/config.d.ts.map +1 -1
  551. package/dist/runnables/config.js +3 -3
  552. package/dist/runnables/config.js.map +1 -1
  553. package/dist/runnables/graph.cjs.map +1 -1
  554. package/dist/runnables/graph.d.cts +1 -2
  555. package/dist/runnables/graph.d.cts.map +1 -1
  556. package/dist/runnables/graph.d.ts +1 -2
  557. package/dist/runnables/graph.d.ts.map +1 -1
  558. package/dist/runnables/graph.js.map +1 -1
  559. package/dist/runnables/graph_mermaid.cjs.map +1 -1
  560. package/dist/runnables/graph_mermaid.js.map +1 -1
  561. package/dist/runnables/history.cjs.map +1 -1
  562. package/dist/runnables/history.d.cts +2 -1
  563. package/dist/runnables/history.d.cts.map +1 -1
  564. package/dist/runnables/history.d.ts +2 -1
  565. package/dist/runnables/history.d.ts.map +1 -1
  566. package/dist/runnables/history.js.map +1 -1
  567. package/dist/runnables/iter.cjs.map +1 -1
  568. package/dist/runnables/iter.js.map +1 -1
  569. package/dist/runnables/passthrough.cjs.map +1 -1
  570. package/dist/runnables/passthrough.d.cts +1 -1
  571. package/dist/runnables/passthrough.d.cts.map +1 -1
  572. package/dist/runnables/passthrough.d.ts +1 -1
  573. package/dist/runnables/passthrough.d.ts.map +1 -1
  574. package/dist/runnables/passthrough.js.map +1 -1
  575. package/dist/runnables/router.cjs.map +1 -1
  576. package/dist/runnables/router.d.cts +1 -1
  577. package/dist/runnables/router.d.cts.map +1 -1
  578. package/dist/runnables/router.d.ts +1 -1
  579. package/dist/runnables/router.d.ts.map +1 -1
  580. package/dist/runnables/router.js.map +1 -1
  581. package/dist/runnables/types.d.cts +2 -2
  582. package/dist/runnables/types.d.cts.map +1 -1
  583. package/dist/runnables/types.d.ts +2 -2
  584. package/dist/runnables/types.d.ts.map +1 -1
  585. package/dist/runnables/utils.cjs.map +1 -1
  586. package/dist/runnables/utils.js.map +1 -1
  587. package/dist/runnables/wrappers.cjs.map +1 -1
  588. package/dist/runnables/wrappers.js.map +1 -1
  589. package/dist/singletons/async_local_storage/context.cjs +0 -1
  590. package/dist/singletons/async_local_storage/context.cjs.map +1 -1
  591. package/dist/singletons/async_local_storage/context.d.cts +0 -1
  592. package/dist/singletons/async_local_storage/context.d.cts.map +1 -1
  593. package/dist/singletons/async_local_storage/context.d.ts +0 -1
  594. package/dist/singletons/async_local_storage/context.d.ts.map +1 -1
  595. package/dist/singletons/async_local_storage/context.js.map +1 -1
  596. package/dist/singletons/async_local_storage/globals.cjs +1 -0
  597. package/dist/singletons/async_local_storage/globals.cjs.map +1 -1
  598. package/dist/singletons/async_local_storage/globals.d.cts.map +1 -1
  599. package/dist/singletons/async_local_storage/globals.d.ts.map +1 -1
  600. package/dist/singletons/async_local_storage/globals.js +1 -1
  601. package/dist/singletons/async_local_storage/globals.js.map +1 -1
  602. package/dist/singletons/async_local_storage/index.cjs +0 -1
  603. package/dist/singletons/async_local_storage/index.cjs.map +1 -1
  604. package/dist/singletons/async_local_storage/index.d.cts +1 -2
  605. package/dist/singletons/async_local_storage/index.d.cts.map +1 -1
  606. package/dist/singletons/async_local_storage/index.d.ts +1 -2
  607. package/dist/singletons/async_local_storage/index.d.ts.map +1 -1
  608. package/dist/singletons/async_local_storage/index.js.map +1 -1
  609. package/dist/singletons/callbacks.cjs +1 -0
  610. package/dist/singletons/callbacks.cjs.map +1 -1
  611. package/dist/singletons/callbacks.d.cts +1 -0
  612. package/dist/singletons/callbacks.d.cts.map +1 -1
  613. package/dist/singletons/callbacks.d.ts +0 -1
  614. package/dist/singletons/callbacks.d.ts.map +1 -1
  615. package/dist/singletons/callbacks.js +1 -1
  616. package/dist/singletons/callbacks.js.map +1 -1
  617. package/dist/singletons/tracer.cjs +0 -1
  618. package/dist/singletons/tracer.cjs.map +1 -1
  619. package/dist/singletons/tracer.js.map +1 -1
  620. package/dist/stores.cjs.map +1 -1
  621. package/dist/stores.d.cts +0 -1
  622. package/dist/stores.d.cts.map +1 -1
  623. package/dist/stores.d.ts +0 -1
  624. package/dist/stores.d.ts.map +1 -1
  625. package/dist/stores.js.map +1 -1
  626. package/dist/structured_query/base.cjs.map +1 -1
  627. package/dist/structured_query/base.d.cts +0 -1
  628. package/dist/structured_query/base.d.cts.map +1 -1
  629. package/dist/structured_query/base.d.ts +0 -1
  630. package/dist/structured_query/base.d.ts.map +1 -1
  631. package/dist/structured_query/base.js.map +1 -1
  632. package/dist/structured_query/functional.cjs.map +1 -1
  633. package/dist/structured_query/functional.d.cts +0 -1
  634. package/dist/structured_query/functional.d.cts.map +1 -1
  635. package/dist/structured_query/functional.d.ts +0 -1
  636. package/dist/structured_query/functional.d.ts.map +1 -1
  637. package/dist/structured_query/functional.js.map +1 -1
  638. package/dist/structured_query/ir.cjs +7 -0
  639. package/dist/structured_query/ir.cjs.map +1 -1
  640. package/dist/structured_query/ir.d.cts +0 -1
  641. package/dist/structured_query/ir.d.cts.map +1 -1
  642. package/dist/structured_query/ir.d.ts +0 -1
  643. package/dist/structured_query/ir.d.ts.map +1 -1
  644. package/dist/structured_query/ir.js +7 -0
  645. package/dist/structured_query/ir.js.map +1 -1
  646. package/dist/structured_query/utils.cjs.map +1 -1
  647. package/dist/structured_query/utils.d.cts.map +1 -1
  648. package/dist/structured_query/utils.d.ts.map +1 -1
  649. package/dist/structured_query/utils.js.map +1 -1
  650. package/dist/testing/fake_model_builder.cjs.map +1 -1
  651. package/dist/testing/fake_model_builder.d.cts +1 -1
  652. package/dist/testing/fake_model_builder.d.cts.map +1 -1
  653. package/dist/testing/fake_model_builder.d.ts +1 -1
  654. package/dist/testing/fake_model_builder.d.ts.map +1 -1
  655. package/dist/testing/fake_model_builder.js.map +1 -1
  656. package/dist/testing/matchers.cjs.map +1 -1
  657. package/dist/testing/matchers.d.cts +0 -1
  658. package/dist/testing/matchers.d.cts.map +1 -1
  659. package/dist/testing/matchers.d.ts +0 -1
  660. package/dist/testing/matchers.d.ts.map +1 -1
  661. package/dist/testing/matchers.js.map +1 -1
  662. package/dist/tools/index.cjs.map +1 -1
  663. package/dist/tools/index.d.cts +8 -7
  664. package/dist/tools/index.d.cts.map +1 -1
  665. package/dist/tools/index.d.ts +8 -7
  666. package/dist/tools/index.d.ts.map +1 -1
  667. package/dist/tools/index.js.map +1 -1
  668. package/dist/tools/types.cjs.map +1 -1
  669. package/dist/tools/types.d.cts +4 -3
  670. package/dist/tools/types.d.cts.map +1 -1
  671. package/dist/tools/types.d.ts +4 -3
  672. package/dist/tools/types.d.ts.map +1 -1
  673. package/dist/tools/types.js.map +1 -1
  674. package/dist/tools/utils.cjs.map +1 -1
  675. package/dist/tools/utils.d.cts.map +1 -1
  676. package/dist/tools/utils.d.ts.map +1 -1
  677. package/dist/tools/utils.js.map +1 -1
  678. package/dist/tracers/base.cjs.map +1 -1
  679. package/dist/tracers/base.d.cts +18 -14
  680. package/dist/tracers/base.d.cts.map +1 -1
  681. package/dist/tracers/base.d.ts +18 -14
  682. package/dist/tracers/base.d.ts.map +1 -1
  683. package/dist/tracers/base.js.map +1 -1
  684. package/dist/tracers/console.cjs.map +1 -1
  685. package/dist/tracers/console.d.cts +0 -1
  686. package/dist/tracers/console.d.cts.map +1 -1
  687. package/dist/tracers/console.d.ts +0 -1
  688. package/dist/tracers/console.d.ts.map +1 -1
  689. package/dist/tracers/console.js.map +1 -1
  690. package/dist/tracers/event_stream.cjs.map +1 -1
  691. package/dist/tracers/event_stream.d.cts +5 -2
  692. package/dist/tracers/event_stream.d.cts.map +1 -1
  693. package/dist/tracers/event_stream.d.ts +5 -2
  694. package/dist/tracers/event_stream.d.ts.map +1 -1
  695. package/dist/tracers/event_stream.js.map +1 -1
  696. package/dist/tracers/log_stream.cjs.map +1 -1
  697. package/dist/tracers/log_stream.d.cts +30 -15
  698. package/dist/tracers/log_stream.d.cts.map +1 -1
  699. package/dist/tracers/log_stream.d.ts +30 -15
  700. package/dist/tracers/log_stream.d.ts.map +1 -1
  701. package/dist/tracers/log_stream.js.map +1 -1
  702. package/dist/tracers/root_listener.cjs.map +1 -1
  703. package/dist/tracers/root_listener.js.map +1 -1
  704. package/dist/tracers/run_collector.cjs.map +1 -1
  705. package/dist/tracers/run_collector.d.cts +1 -4
  706. package/dist/tracers/run_collector.d.cts.map +1 -1
  707. package/dist/tracers/run_collector.d.ts +1 -4
  708. package/dist/tracers/run_collector.d.ts.map +1 -1
  709. package/dist/tracers/run_collector.js.map +1 -1
  710. package/dist/tracers/tracer_langchain.cjs +8 -3
  711. package/dist/tracers/tracer_langchain.cjs.map +1 -1
  712. package/dist/tracers/tracer_langchain.d.cts +3 -5
  713. package/dist/tracers/tracer_langchain.d.cts.map +1 -1
  714. package/dist/tracers/tracer_langchain.d.ts +3 -5
  715. package/dist/tracers/tracer_langchain.d.ts.map +1 -1
  716. package/dist/tracers/tracer_langchain.js +8 -3
  717. package/dist/tracers/tracer_langchain.js.map +1 -1
  718. package/dist/types/_internal.d.cts.map +1 -1
  719. package/dist/types/_internal.d.ts.map +1 -1
  720. package/dist/types/stream.d.cts +1 -1
  721. package/dist/types/stream.d.ts +1 -1
  722. package/dist/types/type-utils.d.cts +1 -1
  723. package/dist/types/type-utils.d.cts.map +1 -1
  724. package/dist/types/type-utils.d.ts +1 -1
  725. package/dist/types/type-utils.d.ts.map +1 -1
  726. package/dist/utils/async_caller.cjs.map +1 -1
  727. package/dist/utils/async_caller.d.cts.map +1 -1
  728. package/dist/utils/async_caller.d.ts.map +1 -1
  729. package/dist/utils/async_caller.js.map +1 -1
  730. package/dist/utils/callbacks.cjs.map +1 -1
  731. package/dist/utils/callbacks.js.map +1 -1
  732. package/dist/utils/chunk_array.cjs.map +1 -1
  733. package/dist/utils/chunk_array.d.cts.map +1 -1
  734. package/dist/utils/chunk_array.d.ts.map +1 -1
  735. package/dist/utils/chunk_array.js.map +1 -1
  736. package/dist/utils/context.cjs.map +1 -1
  737. package/dist/utils/context.d.cts.map +1 -1
  738. package/dist/utils/context.d.ts.map +1 -1
  739. package/dist/utils/context.js.map +1 -1
  740. package/dist/utils/env.cjs.map +1 -1
  741. package/dist/utils/env.d.cts.map +1 -1
  742. package/dist/utils/env.d.ts.map +1 -1
  743. package/dist/utils/env.js.map +1 -1
  744. package/dist/utils/event_source_parse.cjs +2 -2
  745. package/dist/utils/event_source_parse.cjs.map +1 -1
  746. package/dist/utils/event_source_parse.d.cts +0 -1
  747. package/dist/utils/event_source_parse.d.cts.map +1 -1
  748. package/dist/utils/event_source_parse.d.ts +0 -1
  749. package/dist/utils/event_source_parse.d.ts.map +1 -1
  750. package/dist/utils/event_source_parse.js +2 -2
  751. package/dist/utils/event_source_parse.js.map +1 -1
  752. package/dist/utils/fast-json-patch/index.cjs +9 -1
  753. package/dist/utils/fast-json-patch/index.cjs.map +1 -1
  754. package/dist/utils/fast-json-patch/index.js +3 -3
  755. package/dist/utils/fast-json-patch/index.js.map +1 -1
  756. package/dist/utils/fast-json-patch/src/core.cjs +7 -0
  757. package/dist/utils/fast-json-patch/src/core.cjs.map +1 -1
  758. package/dist/utils/fast-json-patch/src/core.d.cts +1 -1
  759. package/dist/utils/fast-json-patch/src/core.d.cts.map +1 -1
  760. package/dist/utils/fast-json-patch/src/core.d.ts +1 -1
  761. package/dist/utils/fast-json-patch/src/core.d.ts.map +1 -1
  762. package/dist/utils/fast-json-patch/src/core.js +6 -1
  763. package/dist/utils/fast-json-patch/src/core.js.map +1 -1
  764. package/dist/utils/fast-json-patch/src/duplex.cjs.map +1 -1
  765. package/dist/utils/fast-json-patch/src/duplex.d.cts +0 -1
  766. package/dist/utils/fast-json-patch/src/duplex.d.cts.map +1 -1
  767. package/dist/utils/fast-json-patch/src/duplex.d.ts +0 -1
  768. package/dist/utils/fast-json-patch/src/duplex.d.ts.map +1 -1
  769. package/dist/utils/fast-json-patch/src/duplex.js.map +1 -1
  770. package/dist/utils/fast-json-patch/src/helpers.cjs +4 -0
  771. package/dist/utils/fast-json-patch/src/helpers.cjs.map +1 -1
  772. package/dist/utils/fast-json-patch/src/helpers.js +4 -0
  773. package/dist/utils/fast-json-patch/src/helpers.js.map +1 -1
  774. package/dist/utils/format.d.cts.map +1 -1
  775. package/dist/utils/format.d.ts.map +1 -1
  776. package/dist/utils/function_calling.cjs.map +1 -1
  777. package/dist/utils/function_calling.d.cts +0 -1
  778. package/dist/utils/function_calling.d.cts.map +1 -1
  779. package/dist/utils/function_calling.d.ts +0 -1
  780. package/dist/utils/function_calling.d.ts.map +1 -1
  781. package/dist/utils/function_calling.js.map +1 -1
  782. package/dist/utils/gateway.cjs +43 -0
  783. package/dist/utils/gateway.cjs.map +1 -0
  784. package/dist/utils/gateway.d.cts +13 -0
  785. package/dist/utils/gateway.d.cts.map +1 -0
  786. package/dist/utils/gateway.d.ts +13 -0
  787. package/dist/utils/gateway.d.ts.map +1 -0
  788. package/dist/utils/gateway.js +36 -0
  789. package/dist/utils/gateway.js.map +1 -0
  790. package/dist/utils/hash.d.cts +0 -1
  791. package/dist/utils/hash.d.cts.map +1 -1
  792. package/dist/utils/hash.d.ts +0 -1
  793. package/dist/utils/hash.d.ts.map +1 -1
  794. package/dist/utils/is-network-error/index.cjs +1 -1
  795. package/dist/utils/is-network-error/index.cjs.map +1 -1
  796. package/dist/utils/is-network-error/index.js +1 -1
  797. package/dist/utils/is-network-error/index.js.map +1 -1
  798. package/dist/utils/js-sha256/hash.cjs.map +1 -1
  799. package/dist/utils/js-sha256/hash.d.cts.map +1 -1
  800. package/dist/utils/js-sha256/hash.d.ts.map +1 -1
  801. package/dist/utils/js-sha256/hash.js.map +1 -1
  802. package/dist/utils/json.cjs +1 -0
  803. package/dist/utils/json.cjs.map +1 -1
  804. package/dist/utils/json.d.cts.map +1 -1
  805. package/dist/utils/json.d.ts.map +1 -1
  806. package/dist/utils/json.js +1 -1
  807. package/dist/utils/json.js.map +1 -1
  808. package/dist/utils/json_schema.cjs.map +1 -1
  809. package/dist/utils/json_schema.d.cts +1 -1
  810. package/dist/utils/json_schema.d.cts.map +1 -1
  811. package/dist/utils/json_schema.d.ts +1 -1
  812. package/dist/utils/json_schema.d.ts.map +1 -1
  813. package/dist/utils/json_schema.js.map +1 -1
  814. package/dist/utils/math.cjs.map +1 -1
  815. package/dist/utils/math.d.cts.map +1 -1
  816. package/dist/utils/math.d.ts.map +1 -1
  817. package/dist/utils/math.js.map +1 -1
  818. package/dist/utils/ml-distance/distances.cjs.map +1 -1
  819. package/dist/utils/ml-distance/distances.js.map +1 -1
  820. package/dist/utils/ml-distance/similarities.cjs.map +1 -1
  821. package/dist/utils/ml-distance/similarities.d.cts.map +1 -1
  822. package/dist/utils/ml-distance/similarities.d.ts.map +1 -1
  823. package/dist/utils/ml-distance/similarities.js.map +1 -1
  824. package/dist/utils/ml-distance-euclidean/euclidean.cjs +1 -0
  825. package/dist/utils/ml-distance-euclidean/euclidean.cjs.map +1 -1
  826. package/dist/utils/ml-distance-euclidean/euclidean.js +1 -1
  827. package/dist/utils/ml-distance-euclidean/euclidean.js.map +1 -1
  828. package/dist/utils/namespace.cjs +1 -0
  829. package/dist/utils/namespace.cjs.map +1 -1
  830. package/dist/utils/namespace.d.cts.map +1 -1
  831. package/dist/utils/namespace.d.ts.map +1 -1
  832. package/dist/utils/namespace.js +1 -1
  833. package/dist/utils/namespace.js.map +1 -1
  834. package/dist/utils/p-retry/index.cjs +1 -0
  835. package/dist/utils/p-retry/index.cjs.map +1 -1
  836. package/dist/utils/p-retry/index.js +1 -1
  837. package/dist/utils/p-retry/index.js.map +1 -1
  838. package/dist/utils/sax-js/sax.cjs.map +1 -1
  839. package/dist/utils/sax-js/sax.js.map +1 -1
  840. package/dist/utils/signal.cjs.map +1 -1
  841. package/dist/utils/signal.d.cts.map +1 -1
  842. package/dist/utils/signal.d.ts.map +1 -1
  843. package/dist/utils/signal.js.map +1 -1
  844. package/dist/utils/ssrf.cjs.map +1 -1
  845. package/dist/utils/ssrf.d.cts.map +1 -1
  846. package/dist/utils/ssrf.d.ts.map +1 -1
  847. package/dist/utils/ssrf.js.map +1 -1
  848. package/dist/utils/standard_schema.cjs.map +1 -1
  849. package/dist/utils/standard_schema.d.cts +0 -1
  850. package/dist/utils/standard_schema.d.cts.map +1 -1
  851. package/dist/utils/standard_schema.d.ts +0 -1
  852. package/dist/utils/standard_schema.d.ts.map +1 -1
  853. package/dist/utils/standard_schema.js.map +1 -1
  854. package/dist/utils/stream.cjs.map +1 -1
  855. package/dist/utils/stream.d.cts +0 -1
  856. package/dist/utils/stream.d.cts.map +1 -1
  857. package/dist/utils/stream.d.ts +0 -1
  858. package/dist/utils/stream.d.ts.map +1 -1
  859. package/dist/utils/stream.js.map +1 -1
  860. package/dist/utils/testing/chat_models.cjs.map +1 -1
  861. package/dist/utils/testing/chat_models.d.cts +2 -9
  862. package/dist/utils/testing/chat_models.d.cts.map +1 -1
  863. package/dist/utils/testing/chat_models.d.ts +2 -9
  864. package/dist/utils/testing/chat_models.d.ts.map +1 -1
  865. package/dist/utils/testing/chat_models.js.map +1 -1
  866. package/dist/utils/testing/embeddings.cjs.map +1 -1
  867. package/dist/utils/testing/embeddings.d.cts +0 -1
  868. package/dist/utils/testing/embeddings.d.cts.map +1 -1
  869. package/dist/utils/testing/embeddings.d.ts +0 -1
  870. package/dist/utils/testing/embeddings.d.ts.map +1 -1
  871. package/dist/utils/testing/embeddings.js.map +1 -1
  872. package/dist/utils/testing/llms.cjs.map +1 -1
  873. package/dist/utils/testing/llms.d.cts +0 -1
  874. package/dist/utils/testing/llms.d.cts.map +1 -1
  875. package/dist/utils/testing/llms.d.ts +0 -1
  876. package/dist/utils/testing/llms.d.ts.map +1 -1
  877. package/dist/utils/testing/llms.js.map +1 -1
  878. package/dist/utils/testing/message_history.cjs.map +1 -1
  879. package/dist/utils/testing/message_history.d.cts +1 -1
  880. package/dist/utils/testing/message_history.d.cts.map +1 -1
  881. package/dist/utils/testing/message_history.d.ts +1 -1
  882. package/dist/utils/testing/message_history.d.ts.map +1 -1
  883. package/dist/utils/testing/message_history.js.map +1 -1
  884. package/dist/utils/testing/openai_stream_fixtures.cjs.map +1 -1
  885. package/dist/utils/testing/openai_stream_fixtures.d.cts +0 -1
  886. package/dist/utils/testing/openai_stream_fixtures.d.cts.map +1 -1
  887. package/dist/utils/testing/openai_stream_fixtures.d.ts +0 -1
  888. package/dist/utils/testing/openai_stream_fixtures.d.ts.map +1 -1
  889. package/dist/utils/testing/openai_stream_fixtures.js.map +1 -1
  890. package/dist/utils/testing/output_parsers.cjs.map +1 -1
  891. package/dist/utils/testing/output_parsers.d.cts +0 -1
  892. package/dist/utils/testing/output_parsers.d.cts.map +1 -1
  893. package/dist/utils/testing/output_parsers.d.ts +0 -1
  894. package/dist/utils/testing/output_parsers.d.ts.map +1 -1
  895. package/dist/utils/testing/output_parsers.js.map +1 -1
  896. package/dist/utils/testing/retrievers.cjs.map +1 -1
  897. package/dist/utils/testing/retrievers.d.cts +0 -1
  898. package/dist/utils/testing/retrievers.d.cts.map +1 -1
  899. package/dist/utils/testing/retrievers.d.ts +0 -1
  900. package/dist/utils/testing/retrievers.d.ts.map +1 -1
  901. package/dist/utils/testing/retrievers.js.map +1 -1
  902. package/dist/utils/testing/runnables.cjs.map +1 -1
  903. package/dist/utils/testing/runnables.d.cts +0 -1
  904. package/dist/utils/testing/runnables.d.cts.map +1 -1
  905. package/dist/utils/testing/runnables.d.ts +0 -1
  906. package/dist/utils/testing/runnables.d.ts.map +1 -1
  907. package/dist/utils/testing/runnables.js.map +1 -1
  908. package/dist/utils/testing/stream.cjs +5 -0
  909. package/dist/utils/testing/stream.cjs.map +1 -1
  910. package/dist/utils/testing/stream.d.cts.map +1 -1
  911. package/dist/utils/testing/stream.d.ts.map +1 -1
  912. package/dist/utils/testing/stream.js +1 -1
  913. package/dist/utils/testing/stream.js.map +1 -1
  914. package/dist/utils/testing/tools.cjs.map +1 -1
  915. package/dist/utils/testing/tools.d.cts +0 -1
  916. package/dist/utils/testing/tools.d.cts.map +1 -1
  917. package/dist/utils/testing/tools.d.ts +0 -1
  918. package/dist/utils/testing/tools.d.ts.map +1 -1
  919. package/dist/utils/testing/tools.js.map +1 -1
  920. package/dist/utils/testing/tracers.cjs.map +1 -1
  921. package/dist/utils/testing/tracers.d.cts +0 -1
  922. package/dist/utils/testing/tracers.d.cts.map +1 -1
  923. package/dist/utils/testing/tracers.d.ts +0 -1
  924. package/dist/utils/testing/tracers.d.ts.map +1 -1
  925. package/dist/utils/testing/tracers.js.map +1 -1
  926. package/dist/utils/testing/vectorstores.cjs.map +1 -1
  927. package/dist/utils/testing/vectorstores.d.cts +1 -5
  928. package/dist/utils/testing/vectorstores.d.cts.map +1 -1
  929. package/dist/utils/testing/vectorstores.d.ts +1 -5
  930. package/dist/utils/testing/vectorstores.d.ts.map +1 -1
  931. package/dist/utils/testing/vectorstores.js.map +1 -1
  932. package/dist/utils/tiktoken.cjs +1 -1
  933. package/dist/utils/tiktoken.cjs.map +1 -1
  934. package/dist/utils/tiktoken.d.cts +0 -1
  935. package/dist/utils/tiktoken.d.cts.map +1 -1
  936. package/dist/utils/tiktoken.d.ts +0 -1
  937. package/dist/utils/tiktoken.d.ts.map +1 -1
  938. package/dist/utils/tiktoken.js +1 -1
  939. package/dist/utils/tiktoken.js.map +1 -1
  940. package/dist/utils/types/index.d.cts +0 -1
  941. package/dist/utils/types/index.d.cts.map +1 -1
  942. package/dist/utils/types/index.d.ts +0 -1
  943. package/dist/utils/types/index.d.ts.map +1 -1
  944. package/dist/utils/types/zod.cjs +0 -1
  945. package/dist/utils/types/zod.cjs.map +1 -1
  946. package/dist/utils/types/zod.d.cts +2 -3
  947. package/dist/utils/types/zod.d.cts.map +1 -1
  948. package/dist/utils/types/zod.d.ts +2 -3
  949. package/dist/utils/types/zod.d.ts.map +1 -1
  950. package/dist/utils/types/zod.js.map +1 -1
  951. package/dist/utils/uuid/index.d.cts +10 -11
  952. package/dist/utils/uuid/index.d.cts.map +1 -1
  953. package/dist/utils/uuid/index.d.ts +10 -11
  954. package/dist/utils/uuid/index.d.ts.map +1 -1
  955. package/dist/utils/uuid/parse.cjs.map +1 -1
  956. package/dist/utils/uuid/parse.d.cts +1 -3
  957. package/dist/utils/uuid/parse.d.cts.map +1 -1
  958. package/dist/utils/uuid/parse.d.ts +1 -2
  959. package/dist/utils/uuid/parse.d.ts.map +1 -1
  960. package/dist/utils/uuid/parse.js.map +1 -1
  961. package/dist/utils/uuid/rng.cjs +1 -1
  962. package/dist/utils/uuid/rng.cjs.map +1 -1
  963. package/dist/utils/uuid/rng.js +1 -1
  964. package/dist/utils/uuid/rng.js.map +1 -1
  965. package/dist/utils/uuid/sha1.cjs +2 -2
  966. package/dist/utils/uuid/sha1.cjs.map +1 -1
  967. package/dist/utils/uuid/sha1.js +2 -2
  968. package/dist/utils/uuid/sha1.js.map +1 -1
  969. package/dist/utils/uuid/stringify.cjs.map +1 -1
  970. package/dist/utils/uuid/stringify.d.cts +1 -2
  971. package/dist/utils/uuid/stringify.d.cts.map +1 -1
  972. package/dist/utils/uuid/stringify.d.ts +1 -1
  973. package/dist/utils/uuid/stringify.d.ts.map +1 -1
  974. package/dist/utils/uuid/stringify.js.map +1 -1
  975. package/dist/utils/uuid/types.d.cts.map +1 -1
  976. package/dist/utils/uuid/types.d.ts.map +1 -1
  977. package/dist/utils/uuid/v1.cjs +2 -1
  978. package/dist/utils/uuid/v1.cjs.map +1 -1
  979. package/dist/utils/uuid/v1.d.cts +1 -3
  980. package/dist/utils/uuid/v1.d.cts.map +1 -1
  981. package/dist/utils/uuid/v1.d.ts +1 -2
  982. package/dist/utils/uuid/v1.d.ts.map +1 -1
  983. package/dist/utils/uuid/v1.js +2 -2
  984. package/dist/utils/uuid/v1.js.map +1 -1
  985. package/dist/utils/uuid/v1ToV6.cjs.map +1 -1
  986. package/dist/utils/uuid/v1ToV6.js.map +1 -1
  987. package/dist/utils/uuid/v35.cjs +1 -0
  988. package/dist/utils/uuid/v35.cjs.map +1 -1
  989. package/dist/utils/uuid/v35.d.cts +6 -0
  990. package/dist/utils/uuid/v35.d.cts.map +1 -0
  991. package/dist/utils/uuid/v35.d.ts +6 -0
  992. package/dist/utils/uuid/v35.d.ts.map +1 -0
  993. package/dist/utils/uuid/v35.js +1 -1
  994. package/dist/utils/uuid/v35.js.map +1 -1
  995. package/dist/utils/uuid/v4.cjs.map +1 -1
  996. package/dist/utils/uuid/v4.d.cts +1 -3
  997. package/dist/utils/uuid/v4.d.cts.map +1 -1
  998. package/dist/utils/uuid/v4.d.ts +1 -2
  999. package/dist/utils/uuid/v4.d.ts.map +1 -1
  1000. package/dist/utils/uuid/v4.js.map +1 -1
  1001. package/dist/utils/uuid/v5.cjs.map +1 -1
  1002. package/dist/utils/uuid/v5.d.cts +5 -8
  1003. package/dist/utils/uuid/v5.d.cts.map +1 -1
  1004. package/dist/utils/uuid/v5.d.ts +5 -7
  1005. package/dist/utils/uuid/v5.d.ts.map +1 -1
  1006. package/dist/utils/uuid/v5.js.map +1 -1
  1007. package/dist/utils/uuid/v6.cjs +1 -1
  1008. package/dist/utils/uuid/v6.cjs.map +1 -1
  1009. package/dist/utils/uuid/v6.d.cts +1 -3
  1010. package/dist/utils/uuid/v6.d.cts.map +1 -1
  1011. package/dist/utils/uuid/v6.d.ts +1 -2
  1012. package/dist/utils/uuid/v6.d.ts.map +1 -1
  1013. package/dist/utils/uuid/v6.js +1 -1
  1014. package/dist/utils/uuid/v6.js.map +1 -1
  1015. package/dist/utils/uuid/v7.cjs +2 -1
  1016. package/dist/utils/uuid/v7.cjs.map +1 -1
  1017. package/dist/utils/uuid/v7.d.cts +1 -3
  1018. package/dist/utils/uuid/v7.d.cts.map +1 -1
  1019. package/dist/utils/uuid/v7.d.ts +1 -2
  1020. package/dist/utils/uuid/v7.d.ts.map +1 -1
  1021. package/dist/utils/uuid/v7.js +2 -2
  1022. package/dist/utils/uuid/v7.js.map +1 -1
  1023. package/dist/utils/uuid/validate.cjs.map +1 -1
  1024. package/dist/utils/uuid/validate.d.cts +1 -2
  1025. package/dist/utils/uuid/validate.d.cts.map +1 -1
  1026. package/dist/utils/uuid/validate.d.ts +1 -1
  1027. package/dist/utils/uuid/validate.d.ts.map +1 -1
  1028. package/dist/utils/uuid/validate.js.map +1 -1
  1029. package/dist/utils/uuid/version.cjs.map +1 -1
  1030. package/dist/utils/uuid/version.d.cts +1 -2
  1031. package/dist/utils/uuid/version.d.cts.map +1 -1
  1032. package/dist/utils/uuid/version.d.ts +1 -1
  1033. package/dist/utils/uuid/version.d.ts.map +1 -1
  1034. package/dist/utils/uuid/version.js.map +1 -1
  1035. package/dist/utils/zod-to-json-schema/Options.cjs.map +1 -1
  1036. package/dist/utils/zod-to-json-schema/Options.d.cts +3 -1
  1037. package/dist/utils/zod-to-json-schema/Options.d.ts +3 -1
  1038. package/dist/utils/zod-to-json-schema/Options.js.map +1 -1
  1039. package/dist/utils/zod-to-json-schema/Refs.cjs.map +1 -1
  1040. package/dist/utils/zod-to-json-schema/Refs.d.cts +3 -1
  1041. package/dist/utils/zod-to-json-schema/Refs.d.ts +3 -1
  1042. package/dist/utils/zod-to-json-schema/Refs.js.map +1 -1
  1043. package/dist/utils/zod-to-json-schema/errorMessages.cjs.map +1 -1
  1044. package/dist/utils/zod-to-json-schema/errorMessages.d.cts +2 -1
  1045. package/dist/utils/zod-to-json-schema/errorMessages.d.cts.map +1 -1
  1046. package/dist/utils/zod-to-json-schema/errorMessages.d.ts +2 -1
  1047. package/dist/utils/zod-to-json-schema/errorMessages.d.ts.map +1 -1
  1048. package/dist/utils/zod-to-json-schema/errorMessages.js.map +1 -1
  1049. package/dist/utils/zod-to-json-schema/getRelativePath.cjs.map +1 -1
  1050. package/dist/utils/zod-to-json-schema/getRelativePath.js.map +1 -1
  1051. package/dist/utils/zod-to-json-schema/index.cjs +79 -37
  1052. package/dist/utils/zod-to-json-schema/index.d.cts +15 -1
  1053. package/dist/utils/zod-to-json-schema/index.d.ts +15 -1
  1054. package/dist/utils/zod-to-json-schema/index.js +38 -38
  1055. package/dist/utils/zod-to-json-schema/parseDef.cjs.map +1 -1
  1056. package/dist/utils/zod-to-json-schema/parseDef.d.cts +3 -1
  1057. package/dist/utils/zod-to-json-schema/parseDef.d.ts +3 -1
  1058. package/dist/utils/zod-to-json-schema/parseDef.js.map +1 -1
  1059. package/dist/utils/zod-to-json-schema/parseTypes.d.cts +0 -1
  1060. package/dist/utils/zod-to-json-schema/parseTypes.d.cts.map +1 -1
  1061. package/dist/utils/zod-to-json-schema/parseTypes.d.ts +0 -1
  1062. package/dist/utils/zod-to-json-schema/parseTypes.d.ts.map +1 -1
  1063. package/dist/utils/zod-to-json-schema/parsers/any.cjs.map +1 -1
  1064. package/dist/utils/zod-to-json-schema/parsers/any.d.cts +1 -0
  1065. package/dist/utils/zod-to-json-schema/parsers/any.d.cts.map +1 -1
  1066. package/dist/utils/zod-to-json-schema/parsers/any.d.ts +1 -0
  1067. package/dist/utils/zod-to-json-schema/parsers/any.d.ts.map +1 -1
  1068. package/dist/utils/zod-to-json-schema/parsers/any.js.map +1 -1
  1069. package/dist/utils/zod-to-json-schema/parsers/array.cjs +0 -1
  1070. package/dist/utils/zod-to-json-schema/parsers/array.cjs.map +1 -1
  1071. package/dist/utils/zod-to-json-schema/parsers/array.d.cts +2 -0
  1072. package/dist/utils/zod-to-json-schema/parsers/array.d.cts.map +1 -1
  1073. package/dist/utils/zod-to-json-schema/parsers/array.d.ts +2 -0
  1074. package/dist/utils/zod-to-json-schema/parsers/array.d.ts.map +1 -1
  1075. package/dist/utils/zod-to-json-schema/parsers/array.js.map +1 -1
  1076. package/dist/utils/zod-to-json-schema/parsers/bigint.cjs.map +1 -1
  1077. package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts +2 -0
  1078. package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts.map +1 -1
  1079. package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +2 -0
  1080. package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts.map +1 -1
  1081. package/dist/utils/zod-to-json-schema/parsers/bigint.js.map +1 -1
  1082. package/dist/utils/zod-to-json-schema/parsers/boolean.cjs.map +1 -1
  1083. package/dist/utils/zod-to-json-schema/parsers/boolean.d.cts.map +1 -1
  1084. package/dist/utils/zod-to-json-schema/parsers/boolean.d.ts.map +1 -1
  1085. package/dist/utils/zod-to-json-schema/parsers/boolean.js.map +1 -1
  1086. package/dist/utils/zod-to-json-schema/parsers/branded.cjs.map +1 -1
  1087. package/dist/utils/zod-to-json-schema/parsers/branded.d.cts +3 -1
  1088. package/dist/utils/zod-to-json-schema/parsers/branded.d.ts +3 -1
  1089. package/dist/utils/zod-to-json-schema/parsers/branded.js.map +1 -1
  1090. package/dist/utils/zod-to-json-schema/parsers/catch.cjs.map +1 -1
  1091. package/dist/utils/zod-to-json-schema/parsers/catch.d.cts +3 -1
  1092. package/dist/utils/zod-to-json-schema/parsers/catch.d.ts +3 -1
  1093. package/dist/utils/zod-to-json-schema/parsers/catch.js.map +1 -1
  1094. package/dist/utils/zod-to-json-schema/parsers/date.cjs.map +1 -1
  1095. package/dist/utils/zod-to-json-schema/parsers/date.d.cts +3 -0
  1096. package/dist/utils/zod-to-json-schema/parsers/date.d.cts.map +1 -1
  1097. package/dist/utils/zod-to-json-schema/parsers/date.d.ts +3 -0
  1098. package/dist/utils/zod-to-json-schema/parsers/date.d.ts.map +1 -1
  1099. package/dist/utils/zod-to-json-schema/parsers/date.js.map +1 -1
  1100. package/dist/utils/zod-to-json-schema/parsers/default.cjs.map +1 -1
  1101. package/dist/utils/zod-to-json-schema/parsers/default.d.cts +3 -1
  1102. package/dist/utils/zod-to-json-schema/parsers/default.d.ts +3 -1
  1103. package/dist/utils/zod-to-json-schema/parsers/default.js.map +1 -1
  1104. package/dist/utils/zod-to-json-schema/parsers/effects.cjs.map +1 -1
  1105. package/dist/utils/zod-to-json-schema/parsers/effects.d.cts +3 -1
  1106. package/dist/utils/zod-to-json-schema/parsers/effects.d.ts +3 -1
  1107. package/dist/utils/zod-to-json-schema/parsers/effects.js.map +1 -1
  1108. package/dist/utils/zod-to-json-schema/parsers/enum.cjs.map +1 -1
  1109. package/dist/utils/zod-to-json-schema/parsers/enum.d.cts +1 -0
  1110. package/dist/utils/zod-to-json-schema/parsers/enum.d.cts.map +1 -1
  1111. package/dist/utils/zod-to-json-schema/parsers/enum.d.ts +1 -0
  1112. package/dist/utils/zod-to-json-schema/parsers/enum.d.ts.map +1 -1
  1113. package/dist/utils/zod-to-json-schema/parsers/enum.js.map +1 -1
  1114. package/dist/utils/zod-to-json-schema/parsers/intersection.cjs.map +1 -1
  1115. package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts +2 -0
  1116. package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts.map +1 -1
  1117. package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +2 -0
  1118. package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts.map +1 -1
  1119. package/dist/utils/zod-to-json-schema/parsers/intersection.js.map +1 -1
  1120. package/dist/utils/zod-to-json-schema/parsers/literal.cjs.map +1 -1
  1121. package/dist/utils/zod-to-json-schema/parsers/literal.d.cts +2 -0
  1122. package/dist/utils/zod-to-json-schema/parsers/literal.d.cts.map +1 -1
  1123. package/dist/utils/zod-to-json-schema/parsers/literal.d.ts +2 -0
  1124. package/dist/utils/zod-to-json-schema/parsers/literal.d.ts.map +1 -1
  1125. package/dist/utils/zod-to-json-schema/parsers/literal.js.map +1 -1
  1126. package/dist/utils/zod-to-json-schema/parsers/map.cjs.map +1 -1
  1127. package/dist/utils/zod-to-json-schema/parsers/map.d.cts +3 -0
  1128. package/dist/utils/zod-to-json-schema/parsers/map.d.cts.map +1 -1
  1129. package/dist/utils/zod-to-json-schema/parsers/map.d.ts +3 -0
  1130. package/dist/utils/zod-to-json-schema/parsers/map.d.ts.map +1 -1
  1131. package/dist/utils/zod-to-json-schema/parsers/map.js.map +1 -1
  1132. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.cjs.map +1 -1
  1133. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts +1 -0
  1134. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts.map +1 -1
  1135. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -0
  1136. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -1
  1137. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.js.map +1 -1
  1138. package/dist/utils/zod-to-json-schema/parsers/never.cjs.map +1 -1
  1139. package/dist/utils/zod-to-json-schema/parsers/never.d.cts +1 -0
  1140. package/dist/utils/zod-to-json-schema/parsers/never.d.cts.map +1 -1
  1141. package/dist/utils/zod-to-json-schema/parsers/never.d.ts +1 -0
  1142. package/dist/utils/zod-to-json-schema/parsers/never.d.ts.map +1 -1
  1143. package/dist/utils/zod-to-json-schema/parsers/never.js.map +1 -1
  1144. package/dist/utils/zod-to-json-schema/parsers/null.cjs.map +1 -1
  1145. package/dist/utils/zod-to-json-schema/parsers/null.d.cts +1 -0
  1146. package/dist/utils/zod-to-json-schema/parsers/null.d.cts.map +1 -1
  1147. package/dist/utils/zod-to-json-schema/parsers/null.d.ts +1 -0
  1148. package/dist/utils/zod-to-json-schema/parsers/null.d.ts.map +1 -1
  1149. package/dist/utils/zod-to-json-schema/parsers/null.js.map +1 -1
  1150. package/dist/utils/zod-to-json-schema/parsers/nullable.cjs.map +1 -1
  1151. package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts +2 -0
  1152. package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts.map +1 -1
  1153. package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +2 -0
  1154. package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
  1155. package/dist/utils/zod-to-json-schema/parsers/nullable.js.map +1 -1
  1156. package/dist/utils/zod-to-json-schema/parsers/number.cjs.map +1 -1
  1157. package/dist/utils/zod-to-json-schema/parsers/number.d.cts +2 -0
  1158. package/dist/utils/zod-to-json-schema/parsers/number.d.cts.map +1 -1
  1159. package/dist/utils/zod-to-json-schema/parsers/number.d.ts +2 -0
  1160. package/dist/utils/zod-to-json-schema/parsers/number.d.ts.map +1 -1
  1161. package/dist/utils/zod-to-json-schema/parsers/number.js.map +1 -1
  1162. package/dist/utils/zod-to-json-schema/parsers/object.cjs.map +1 -1
  1163. package/dist/utils/zod-to-json-schema/parsers/object.d.cts +2 -0
  1164. package/dist/utils/zod-to-json-schema/parsers/object.d.cts.map +1 -1
  1165. package/dist/utils/zod-to-json-schema/parsers/object.d.ts +2 -0
  1166. package/dist/utils/zod-to-json-schema/parsers/object.d.ts.map +1 -1
  1167. package/dist/utils/zod-to-json-schema/parsers/object.js.map +1 -1
  1168. package/dist/utils/zod-to-json-schema/parsers/optional.cjs.map +1 -1
  1169. package/dist/utils/zod-to-json-schema/parsers/optional.d.cts +3 -1
  1170. package/dist/utils/zod-to-json-schema/parsers/optional.d.ts +3 -1
  1171. package/dist/utils/zod-to-json-schema/parsers/optional.js.map +1 -1
  1172. package/dist/utils/zod-to-json-schema/parsers/pipeline.cjs.map +1 -1
  1173. package/dist/utils/zod-to-json-schema/parsers/pipeline.d.cts +4 -1
  1174. package/dist/utils/zod-to-json-schema/parsers/pipeline.d.ts +4 -1
  1175. package/dist/utils/zod-to-json-schema/parsers/pipeline.js.map +1 -1
  1176. package/dist/utils/zod-to-json-schema/parsers/promise.cjs.map +1 -1
  1177. package/dist/utils/zod-to-json-schema/parsers/promise.d.cts +3 -1
  1178. package/dist/utils/zod-to-json-schema/parsers/promise.d.ts +3 -1
  1179. package/dist/utils/zod-to-json-schema/parsers/promise.js.map +1 -1
  1180. package/dist/utils/zod-to-json-schema/parsers/readonly.cjs.map +1 -1
  1181. package/dist/utils/zod-to-json-schema/parsers/readonly.d.cts +3 -1
  1182. package/dist/utils/zod-to-json-schema/parsers/readonly.d.ts +3 -1
  1183. package/dist/utils/zod-to-json-schema/parsers/readonly.js.map +1 -1
  1184. package/dist/utils/zod-to-json-schema/parsers/record.cjs +0 -1
  1185. package/dist/utils/zod-to-json-schema/parsers/record.cjs.map +1 -1
  1186. package/dist/utils/zod-to-json-schema/parsers/record.d.cts +2 -0
  1187. package/dist/utils/zod-to-json-schema/parsers/record.d.cts.map +1 -1
  1188. package/dist/utils/zod-to-json-schema/parsers/record.d.ts +2 -0
  1189. package/dist/utils/zod-to-json-schema/parsers/record.d.ts.map +1 -1
  1190. package/dist/utils/zod-to-json-schema/parsers/record.js.map +1 -1
  1191. package/dist/utils/zod-to-json-schema/parsers/set.cjs.map +1 -1
  1192. package/dist/utils/zod-to-json-schema/parsers/set.d.cts +2 -0
  1193. package/dist/utils/zod-to-json-schema/parsers/set.d.cts.map +1 -1
  1194. package/dist/utils/zod-to-json-schema/parsers/set.d.ts +2 -0
  1195. package/dist/utils/zod-to-json-schema/parsers/set.d.ts.map +1 -1
  1196. package/dist/utils/zod-to-json-schema/parsers/set.js.map +1 -1
  1197. package/dist/utils/zod-to-json-schema/parsers/string.cjs +0 -2
  1198. package/dist/utils/zod-to-json-schema/parsers/string.cjs.map +1 -1
  1199. package/dist/utils/zod-to-json-schema/parsers/string.d.cts +2 -0
  1200. package/dist/utils/zod-to-json-schema/parsers/string.d.cts.map +1 -1
  1201. package/dist/utils/zod-to-json-schema/parsers/string.d.ts +2 -0
  1202. package/dist/utils/zod-to-json-schema/parsers/string.d.ts.map +1 -1
  1203. package/dist/utils/zod-to-json-schema/parsers/string.js +0 -2
  1204. package/dist/utils/zod-to-json-schema/parsers/string.js.map +1 -1
  1205. package/dist/utils/zod-to-json-schema/parsers/tuple.cjs.map +1 -1
  1206. package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts +2 -0
  1207. package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts.map +1 -1
  1208. package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +2 -0
  1209. package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
  1210. package/dist/utils/zod-to-json-schema/parsers/tuple.js.map +1 -1
  1211. package/dist/utils/zod-to-json-schema/parsers/undefined.cjs.map +1 -1
  1212. package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts +1 -0
  1213. package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts.map +1 -1
  1214. package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +1 -0
  1215. package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts.map +1 -1
  1216. package/dist/utils/zod-to-json-schema/parsers/undefined.js.map +1 -1
  1217. package/dist/utils/zod-to-json-schema/parsers/union.cjs.map +1 -1
  1218. package/dist/utils/zod-to-json-schema/parsers/union.d.cts +2 -0
  1219. package/dist/utils/zod-to-json-schema/parsers/union.d.cts.map +1 -1
  1220. package/dist/utils/zod-to-json-schema/parsers/union.d.ts +2 -0
  1221. package/dist/utils/zod-to-json-schema/parsers/union.d.ts.map +1 -1
  1222. package/dist/utils/zod-to-json-schema/parsers/union.js.map +1 -1
  1223. package/dist/utils/zod-to-json-schema/parsers/unknown.cjs.map +1 -1
  1224. package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts +1 -0
  1225. package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts.map +1 -1
  1226. package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +1 -0
  1227. package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts.map +1 -1
  1228. package/dist/utils/zod-to-json-schema/parsers/unknown.js.map +1 -1
  1229. package/dist/utils/zod-to-json-schema/selectParser.cjs +0 -1
  1230. package/dist/utils/zod-to-json-schema/selectParser.cjs.map +1 -1
  1231. package/dist/utils/zod-to-json-schema/selectParser.d.cts +3 -1
  1232. package/dist/utils/zod-to-json-schema/selectParser.d.ts +2 -0
  1233. package/dist/utils/zod-to-json-schema/selectParser.js.map +1 -1
  1234. package/dist/utils/zod-to-json-schema/zodToJsonSchema.cjs.map +1 -1
  1235. package/dist/utils/zod-to-json-schema/zodToJsonSchema.d.cts +3 -1
  1236. package/dist/utils/zod-to-json-schema/zodToJsonSchema.d.ts +3 -1
  1237. package/dist/utils/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
  1238. package/dist/vectorstores.cjs.map +1 -1
  1239. package/dist/vectorstores.d.cts +0 -1
  1240. package/dist/vectorstores.d.cts.map +1 -1
  1241. package/dist/vectorstores.d.ts +0 -1
  1242. package/dist/vectorstores.d.ts.map +1 -1
  1243. package/dist/vectorstores.js.map +1 -1
  1244. package/package.json +15 -4
  1245. package/utils/gateway.cjs +1 -0
  1246. package/utils/gateway.d.cts +1 -0
  1247. package/utils/gateway.d.ts +1 -0
  1248. package/utils/gateway.js +1 -0
@@ -62,6 +62,7 @@ const require_utils_context = require("../utils/context.cjs");
62
62
  const require_utils_event_source_parse = require("../utils/event_source_parse.cjs");
63
63
  const require_utils_format = require("../utils/format.cjs");
64
64
  const require_utils_function_calling = require("../utils/function_calling.cjs");
65
+ const require_utils_gateway = require("../utils/gateway.cjs");
65
66
  const require_utils_math = require("../utils/math.cjs");
66
67
  const require_utils_ssrf = require("../utils/ssrf.cjs");
67
68
  const require_vectorstores = require("../vectorstores.cjs");
@@ -123,6 +124,7 @@ var import_map_exports = /* @__PURE__ */ require_runtime.__exportAll({
123
124
  utils__event_source_parse: () => require_utils_event_source_parse.event_source_parse_exports,
124
125
  utils__format: () => require_utils_format.format_exports,
125
126
  utils__function_calling: () => require_utils_function_calling.function_calling_exports,
127
+ utils__gateway: () => require_utils_gateway.gateway_exports,
126
128
  utils__hash: () => require_utils_hash.hash_exports,
127
129
  utils__json_patch: () => require_utils_json_patch.json_patch_exports,
128
130
  utils__json_schema: () => require_utils_json_schema.json_schema_exports,
@@ -137,11 +139,419 @@ var import_map_exports = /* @__PURE__ */ require_runtime.__exportAll({
137
139
  vectorstores: () => require_vectorstores.vectorstores_exports
138
140
  });
139
141
  //#endregion
142
+ Object.defineProperty(exports, "agents", {
143
+ enumerable: true,
144
+ get: function() {
145
+ return require_agents.agents_exports;
146
+ }
147
+ });
148
+ Object.defineProperty(exports, "caches", {
149
+ enumerable: true,
150
+ get: function() {
151
+ return require_caches_index.caches_exports;
152
+ }
153
+ });
154
+ Object.defineProperty(exports, "callbacks__base", {
155
+ enumerable: true,
156
+ get: function() {
157
+ return require_callbacks_base.base_exports;
158
+ }
159
+ });
160
+ Object.defineProperty(exports, "callbacks__manager", {
161
+ enumerable: true,
162
+ get: function() {
163
+ return require_callbacks_manager.manager_exports;
164
+ }
165
+ });
166
+ Object.defineProperty(exports, "callbacks__promises", {
167
+ enumerable: true,
168
+ get: function() {
169
+ return require_callbacks_promises.promises_exports;
170
+ }
171
+ });
172
+ Object.defineProperty(exports, "chat_history", {
173
+ enumerable: true,
174
+ get: function() {
175
+ return require_chat_history.chat_history_exports;
176
+ }
177
+ });
178
+ Object.defineProperty(exports, "document_loaders__base", {
179
+ enumerable: true,
180
+ get: function() {
181
+ return require_document_loaders_base.base_exports;
182
+ }
183
+ });
184
+ Object.defineProperty(exports, "document_loaders__langsmith", {
185
+ enumerable: true,
186
+ get: function() {
187
+ return require_document_loaders_langsmith.langsmith_exports;
188
+ }
189
+ });
190
+ Object.defineProperty(exports, "documents", {
191
+ enumerable: true,
192
+ get: function() {
193
+ return require_documents_index.documents_exports;
194
+ }
195
+ });
196
+ Object.defineProperty(exports, "embeddings", {
197
+ enumerable: true,
198
+ get: function() {
199
+ return require_embeddings.embeddings_exports;
200
+ }
201
+ });
202
+ Object.defineProperty(exports, "errors", {
203
+ enumerable: true,
204
+ get: function() {
205
+ return require_errors_index.errors_exports;
206
+ }
207
+ });
208
+ Object.defineProperty(exports, "example_selectors", {
209
+ enumerable: true,
210
+ get: function() {
211
+ return require_example_selectors_index.example_selectors_exports;
212
+ }
213
+ });
140
214
  Object.defineProperty(exports, "import_map_exports", {
141
215
  enumerable: true,
142
216
  get: function() {
143
217
  return import_map_exports;
144
218
  }
145
219
  });
220
+ Object.defineProperty(exports, "index", {
221
+ enumerable: true,
222
+ get: function() {
223
+ return require_index.src_exports;
224
+ }
225
+ });
226
+ Object.defineProperty(exports, "indexing", {
227
+ enumerable: true,
228
+ get: function() {
229
+ return require_indexing_index.indexing_exports;
230
+ }
231
+ });
232
+ Object.defineProperty(exports, "language_models__base", {
233
+ enumerable: true,
234
+ get: function() {
235
+ return require_language_models_base.base_exports;
236
+ }
237
+ });
238
+ Object.defineProperty(exports, "language_models__chat_models", {
239
+ enumerable: true,
240
+ get: function() {
241
+ return require_language_models_chat_models.chat_models_exports;
242
+ }
243
+ });
244
+ Object.defineProperty(exports, "language_models__compat", {
245
+ enumerable: true,
246
+ get: function() {
247
+ return require_language_models_compat.compat_exports;
248
+ }
249
+ });
250
+ Object.defineProperty(exports, "language_models__event", {
251
+ enumerable: true,
252
+ get: function() {
253
+ return require_language_models_event.event_exports;
254
+ }
255
+ });
256
+ Object.defineProperty(exports, "language_models__llms", {
257
+ enumerable: true,
258
+ get: function() {
259
+ return require_language_models_llms.llms_exports;
260
+ }
261
+ });
262
+ Object.defineProperty(exports, "language_models__openai_completions_stream", {
263
+ enumerable: true,
264
+ get: function() {
265
+ return require_language_models_openai_completions_stream.openai_completions_stream_exports;
266
+ }
267
+ });
268
+ Object.defineProperty(exports, "language_models__profile", {
269
+ enumerable: true,
270
+ get: function() {
271
+ return require_language_models_profile.profile_exports;
272
+ }
273
+ });
274
+ Object.defineProperty(exports, "language_models__stream", {
275
+ enumerable: true,
276
+ get: function() {
277
+ return require_language_models_stream.stream_exports;
278
+ }
279
+ });
280
+ Object.defineProperty(exports, "language_models__structured_output", {
281
+ enumerable: true,
282
+ get: function() {
283
+ return require_language_models_structured_output.structured_output_exports;
284
+ }
285
+ });
286
+ Object.defineProperty(exports, "load__serializable", {
287
+ enumerable: true,
288
+ get: function() {
289
+ return require_load_serializable.serializable_exports;
290
+ }
291
+ });
292
+ Object.defineProperty(exports, "memory", {
293
+ enumerable: true,
294
+ get: function() {
295
+ return require_memory.memory_exports;
296
+ }
297
+ });
298
+ Object.defineProperty(exports, "messages", {
299
+ enumerable: true,
300
+ get: function() {
301
+ return require_messages_index.messages_exports;
302
+ }
303
+ });
304
+ Object.defineProperty(exports, "messages__tool", {
305
+ enumerable: true,
306
+ get: function() {
307
+ return require_messages_tool.tool_exports;
308
+ }
309
+ });
310
+ Object.defineProperty(exports, "output_parsers", {
311
+ enumerable: true,
312
+ get: function() {
313
+ return require_output_parsers_index.output_parsers_exports;
314
+ }
315
+ });
316
+ Object.defineProperty(exports, "output_parsers__openai_functions", {
317
+ enumerable: true,
318
+ get: function() {
319
+ return require_output_parsers_openai_functions_index.openai_functions_exports;
320
+ }
321
+ });
322
+ Object.defineProperty(exports, "output_parsers__openai_tools", {
323
+ enumerable: true,
324
+ get: function() {
325
+ return require_output_parsers_openai_tools_index.openai_tools_exports;
326
+ }
327
+ });
328
+ Object.defineProperty(exports, "outputs", {
329
+ enumerable: true,
330
+ get: function() {
331
+ return require_outputs.outputs_exports;
332
+ }
333
+ });
334
+ Object.defineProperty(exports, "prompt_values", {
335
+ enumerable: true,
336
+ get: function() {
337
+ return require_prompt_values.prompt_values_exports;
338
+ }
339
+ });
340
+ Object.defineProperty(exports, "prompts", {
341
+ enumerable: true,
342
+ get: function() {
343
+ return require_prompts_index.prompts_exports;
344
+ }
345
+ });
346
+ Object.defineProperty(exports, "retrievers", {
347
+ enumerable: true,
348
+ get: function() {
349
+ return require_retrievers_index.retrievers_exports;
350
+ }
351
+ });
352
+ Object.defineProperty(exports, "retrievers__document_compressors", {
353
+ enumerable: true,
354
+ get: function() {
355
+ return require_retrievers_document_compressors_index.document_compressors_exports;
356
+ }
357
+ });
358
+ Object.defineProperty(exports, "runnables", {
359
+ enumerable: true,
360
+ get: function() {
361
+ return require_runnables_index.runnables_exports;
362
+ }
363
+ });
364
+ Object.defineProperty(exports, "runnables__graph", {
365
+ enumerable: true,
366
+ get: function() {
367
+ return require_runnables_graph.graph_exports;
368
+ }
369
+ });
370
+ Object.defineProperty(exports, "singletons", {
371
+ enumerable: true,
372
+ get: function() {
373
+ return require_singletons_index.singletons_exports;
374
+ }
375
+ });
376
+ Object.defineProperty(exports, "stores", {
377
+ enumerable: true,
378
+ get: function() {
379
+ return require_stores.stores_exports;
380
+ }
381
+ });
382
+ Object.defineProperty(exports, "structured_query", {
383
+ enumerable: true,
384
+ get: function() {
385
+ return require_structured_query_index.structured_query_exports;
386
+ }
387
+ });
388
+ Object.defineProperty(exports, "testing", {
389
+ enumerable: true,
390
+ get: function() {
391
+ return require_testing_index.testing_exports;
392
+ }
393
+ });
394
+ Object.defineProperty(exports, "tools", {
395
+ enumerable: true,
396
+ get: function() {
397
+ return require_tools_index.tools_exports;
398
+ }
399
+ });
400
+ Object.defineProperty(exports, "tracers__base", {
401
+ enumerable: true,
402
+ get: function() {
403
+ return require_tracers_base.base_exports;
404
+ }
405
+ });
406
+ Object.defineProperty(exports, "tracers__console", {
407
+ enumerable: true,
408
+ get: function() {
409
+ return require_tracers_console.console_exports;
410
+ }
411
+ });
412
+ Object.defineProperty(exports, "tracers__log_stream", {
413
+ enumerable: true,
414
+ get: function() {
415
+ return require_tracers_log_stream.log_stream_exports;
416
+ }
417
+ });
418
+ Object.defineProperty(exports, "tracers__run_collector", {
419
+ enumerable: true,
420
+ get: function() {
421
+ return require_tracers_run_collector.run_collector_exports;
422
+ }
423
+ });
424
+ Object.defineProperty(exports, "tracers__tracer_langchain", {
425
+ enumerable: true,
426
+ get: function() {
427
+ return require_tracers_tracer_langchain.tracer_langchain_exports;
428
+ }
429
+ });
430
+ Object.defineProperty(exports, "types__stream", {
431
+ enumerable: true,
432
+ get: function() {
433
+ return require_types_stream.stream_exports;
434
+ }
435
+ });
436
+ Object.defineProperty(exports, "utils__async_caller", {
437
+ enumerable: true,
438
+ get: function() {
439
+ return require_utils_async_caller.async_caller_exports;
440
+ }
441
+ });
442
+ Object.defineProperty(exports, "utils__chunk_array", {
443
+ enumerable: true,
444
+ get: function() {
445
+ return require_utils_chunk_array.chunk_array_exports;
446
+ }
447
+ });
448
+ Object.defineProperty(exports, "utils__context", {
449
+ enumerable: true,
450
+ get: function() {
451
+ return require_utils_context.context_exports;
452
+ }
453
+ });
454
+ Object.defineProperty(exports, "utils__env", {
455
+ enumerable: true,
456
+ get: function() {
457
+ return require_utils_env.env_exports;
458
+ }
459
+ });
460
+ Object.defineProperty(exports, "utils__event_source_parse", {
461
+ enumerable: true,
462
+ get: function() {
463
+ return require_utils_event_source_parse.event_source_parse_exports;
464
+ }
465
+ });
466
+ Object.defineProperty(exports, "utils__format", {
467
+ enumerable: true,
468
+ get: function() {
469
+ return require_utils_format.format_exports;
470
+ }
471
+ });
472
+ Object.defineProperty(exports, "utils__function_calling", {
473
+ enumerable: true,
474
+ get: function() {
475
+ return require_utils_function_calling.function_calling_exports;
476
+ }
477
+ });
478
+ Object.defineProperty(exports, "utils__gateway", {
479
+ enumerable: true,
480
+ get: function() {
481
+ return require_utils_gateway.gateway_exports;
482
+ }
483
+ });
484
+ Object.defineProperty(exports, "utils__hash", {
485
+ enumerable: true,
486
+ get: function() {
487
+ return require_utils_hash.hash_exports;
488
+ }
489
+ });
490
+ Object.defineProperty(exports, "utils__json_patch", {
491
+ enumerable: true,
492
+ get: function() {
493
+ return require_utils_json_patch.json_patch_exports;
494
+ }
495
+ });
496
+ Object.defineProperty(exports, "utils__json_schema", {
497
+ enumerable: true,
498
+ get: function() {
499
+ return require_utils_json_schema.json_schema_exports;
500
+ }
501
+ });
502
+ Object.defineProperty(exports, "utils__math", {
503
+ enumerable: true,
504
+ get: function() {
505
+ return require_utils_math.math_exports;
506
+ }
507
+ });
508
+ Object.defineProperty(exports, "utils__ssrf", {
509
+ enumerable: true,
510
+ get: function() {
511
+ return require_utils_ssrf.ssrf_exports;
512
+ }
513
+ });
514
+ Object.defineProperty(exports, "utils__standard_schema", {
515
+ enumerable: true,
516
+ get: function() {
517
+ return require_utils_standard_schema.standard_schema_exports;
518
+ }
519
+ });
520
+ Object.defineProperty(exports, "utils__stream", {
521
+ enumerable: true,
522
+ get: function() {
523
+ return require_utils_stream.stream_exports;
524
+ }
525
+ });
526
+ Object.defineProperty(exports, "utils__testing", {
527
+ enumerable: true,
528
+ get: function() {
529
+ return require_utils_testing_index.testing_exports;
530
+ }
531
+ });
532
+ Object.defineProperty(exports, "utils__tiktoken", {
533
+ enumerable: true,
534
+ get: function() {
535
+ return require_utils_tiktoken.tiktoken_exports;
536
+ }
537
+ });
538
+ Object.defineProperty(exports, "utils__types", {
539
+ enumerable: true,
540
+ get: function() {
541
+ return require_utils_types_index.types_exports;
542
+ }
543
+ });
544
+ Object.defineProperty(exports, "utils__uuid", {
545
+ enumerable: true,
546
+ get: function() {
547
+ return require_utils_uuid_index.uuid_exports;
548
+ }
549
+ });
550
+ Object.defineProperty(exports, "vectorstores", {
551
+ enumerable: true,
552
+ get: function() {
553
+ return require_vectorstores.vectorstores_exports;
554
+ }
555
+ });
146
556
 
147
557
  //# sourceMappingURL=import_map.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"import_map.cjs","names":[],"sources":["../../src/load/import_map.ts"],"sourcesContent":["/** Auto-generated by import-map plugin. Do not edit manually */\n\nexport * as agents from \"../agents.js\";\nexport * as caches from \"../caches/index.js\";\nexport * as callbacks__base from \"../callbacks/base.js\";\nexport * as callbacks__manager from \"../callbacks/manager.js\";\nexport * as callbacks__promises from \"../callbacks/promises.js\";\nexport * as chat_history from \"../chat_history.js\";\nexport * as document_loaders__base from \"../document_loaders/base.js\";\nexport * as document_loaders__langsmith from \"../document_loaders/langsmith.js\";\nexport * as documents from \"../documents/index.js\";\nexport * as embeddings from \"../embeddings.js\";\nexport * as errors from \"../errors/index.js\";\nexport * as example_selectors from \"../example_selectors/index.js\";\nexport * as index from \"../index.js\";\nexport * as indexing from \"../indexing/index.js\";\nexport * as language_models__base from \"../language_models/base.js\";\nexport * as language_models__chat_models from \"../language_models/chat_models.js\";\nexport * as language_models__compat from \"../language_models/compat.js\";\nexport * as language_models__event from \"../language_models/event.js\";\nexport * as language_models__llms from \"../language_models/llms.js\";\nexport * as language_models__openai_completions_stream from \"../language_models/openai_completions_stream.js\";\nexport * as language_models__profile from \"../language_models/profile.js\";\nexport * as language_models__stream from \"../language_models/stream.js\";\nexport * as language_models__structured_output from \"../language_models/structured_output.js\";\nexport * as load__serializable from \"../load/serializable.js\";\nexport * as memory from \"../memory.js\";\nexport * as messages from \"../messages/index.js\";\nexport * as messages__tool from \"../messages/tool.js\";\nexport * as output_parsers from \"../output_parsers/index.js\";\nexport * as output_parsers__openai_functions from \"../output_parsers/openai_functions/index.js\";\nexport * as output_parsers__openai_tools from \"../output_parsers/openai_tools/index.js\";\nexport * as outputs from \"../outputs.js\";\nexport * as prompt_values from \"../prompt_values.js\";\nexport * as prompts from \"../prompts/index.js\";\nexport * as retrievers__document_compressors from \"../retrievers/document_compressors/index.js\";\nexport * as retrievers from \"../retrievers/index.js\";\nexport * as runnables__graph from \"../runnables/graph.js\";\nexport * as runnables from \"../runnables/index.js\";\nexport * as singletons from \"../singletons/index.js\";\nexport * as stores from \"../stores.js\";\nexport * as structured_query from \"../structured_query/index.js\";\nexport * as testing from \"../testing/index.js\";\nexport * as tools from \"../tools/index.js\";\nexport * as tracers__base from \"../tracers/base.js\";\nexport * as tracers__console from \"../tracers/console.js\";\nexport * as tracers__log_stream from \"../tracers/log_stream.js\";\nexport * as tracers__run_collector from \"../tracers/run_collector.js\";\nexport * as tracers__tracer_langchain from \"../tracers/tracer_langchain.js\";\nexport * as types__stream from \"../types/stream.js\";\nexport * as utils__async_caller from \"../utils/async_caller.js\";\nexport * as utils__chunk_array from \"../utils/chunk_array.js\";\nexport * as utils__context from \"../utils/context.js\";\nexport * as utils__env from \"../utils/env.js\";\nexport * as utils__event_source_parse from \"../utils/event_source_parse.js\";\nexport * as utils__format from \"../utils/format.js\";\nexport * as utils__function_calling from \"../utils/function_calling.js\";\nexport * as utils__hash from \"../utils/hash.js\";\nexport * as utils__json_patch from \"../utils/json_patch.js\";\nexport * as utils__json_schema from \"../utils/json_schema.js\";\nexport * as utils__math from \"../utils/math.js\";\nexport * as utils__ssrf from \"../utils/ssrf.js\";\nexport * as utils__standard_schema from \"../utils/standard_schema.js\";\nexport * as utils__stream from \"../utils/stream.js\";\nexport * as utils__testing from \"../utils/testing/index.js\";\nexport * as utils__tiktoken from \"../utils/tiktoken.js\";\nexport * as utils__types from \"../utils/types/index.js\";\nexport * as utils__uuid from \"../utils/uuid/index.js\";\nexport * as vectorstores from \"../vectorstores.js\";\n"],"mappings":""}
1
+ {"version":3,"file":"import_map.cjs","names":[],"sources":["../../src/load/import_map.ts"],"sourcesContent":["/** Auto-generated by import-map plugin. Do not edit manually */\n\nexport * as agents from \"../agents.js\";\nexport * as caches from \"../caches/index.js\";\nexport * as callbacks__base from \"../callbacks/base.js\";\nexport * as callbacks__manager from \"../callbacks/manager.js\";\nexport * as callbacks__promises from \"../callbacks/promises.js\";\nexport * as chat_history from \"../chat_history.js\";\nexport * as document_loaders__base from \"../document_loaders/base.js\";\nexport * as document_loaders__langsmith from \"../document_loaders/langsmith.js\";\nexport * as documents from \"../documents/index.js\";\nexport * as embeddings from \"../embeddings.js\";\nexport * as errors from \"../errors/index.js\";\nexport * as example_selectors from \"../example_selectors/index.js\";\nexport * as index from \"../index.js\";\nexport * as indexing from \"../indexing/index.js\";\nexport * as language_models__base from \"../language_models/base.js\";\nexport * as language_models__chat_models from \"../language_models/chat_models.js\";\nexport * as language_models__compat from \"../language_models/compat.js\";\nexport * as language_models__event from \"../language_models/event.js\";\nexport * as language_models__llms from \"../language_models/llms.js\";\nexport * as language_models__openai_completions_stream from \"../language_models/openai_completions_stream.js\";\nexport * as language_models__profile from \"../language_models/profile.js\";\nexport * as language_models__stream from \"../language_models/stream.js\";\nexport * as language_models__structured_output from \"../language_models/structured_output.js\";\nexport * as load__serializable from \"../load/serializable.js\";\nexport * as memory from \"../memory.js\";\nexport * as messages from \"../messages/index.js\";\nexport * as messages__tool from \"../messages/tool.js\";\nexport * as output_parsers from \"../output_parsers/index.js\";\nexport * as output_parsers__openai_functions from \"../output_parsers/openai_functions/index.js\";\nexport * as output_parsers__openai_tools from \"../output_parsers/openai_tools/index.js\";\nexport * as outputs from \"../outputs.js\";\nexport * as prompt_values from \"../prompt_values.js\";\nexport * as prompts from \"../prompts/index.js\";\nexport * as retrievers__document_compressors from \"../retrievers/document_compressors/index.js\";\nexport * as retrievers from \"../retrievers/index.js\";\nexport * as runnables__graph from \"../runnables/graph.js\";\nexport * as runnables from \"../runnables/index.js\";\nexport * as singletons from \"../singletons/index.js\";\nexport * as stores from \"../stores.js\";\nexport * as structured_query from \"../structured_query/index.js\";\nexport * as testing from \"../testing/index.js\";\nexport * as tools from \"../tools/index.js\";\nexport * as tracers__base from \"../tracers/base.js\";\nexport * as tracers__console from \"../tracers/console.js\";\nexport * as tracers__log_stream from \"../tracers/log_stream.js\";\nexport * as tracers__run_collector from \"../tracers/run_collector.js\";\nexport * as tracers__tracer_langchain from \"../tracers/tracer_langchain.js\";\nexport * as types__stream from \"../types/stream.js\";\nexport * as utils__async_caller from \"../utils/async_caller.js\";\nexport * as utils__chunk_array from \"../utils/chunk_array.js\";\nexport * as utils__context from \"../utils/context.js\";\nexport * as utils__env from \"../utils/env.js\";\nexport * as utils__event_source_parse from \"../utils/event_source_parse.js\";\nexport * as utils__format from \"../utils/format.js\";\nexport * as utils__function_calling from \"../utils/function_calling.js\";\nexport * as utils__gateway from \"../utils/gateway.js\";\nexport * as utils__hash from \"../utils/hash.js\";\nexport * as utils__json_patch from \"../utils/json_patch.js\";\nexport * as utils__json_schema from \"../utils/json_schema.js\";\nexport * as utils__math from \"../utils/math.js\";\nexport * as utils__ssrf from \"../utils/ssrf.js\";\nexport * as utils__standard_schema from \"../utils/standard_schema.js\";\nexport * as utils__stream from \"../utils/stream.js\";\nexport * as utils__testing from \"../utils/testing/index.js\";\nexport * as utils__tiktoken from \"../utils/tiktoken.js\";\nexport * as utils__types from \"../utils/types/index.js\";\nexport * as utils__uuid from \"../utils/uuid/index.js\";\nexport * as vectorstores from \"../vectorstores.js\";\n"],"mappings":""}
@@ -62,6 +62,7 @@ import { context_exports } from "../utils/context.js";
62
62
  import { event_source_parse_exports } from "../utils/event_source_parse.js";
63
63
  import { format_exports } from "../utils/format.js";
64
64
  import { function_calling_exports } from "../utils/function_calling.js";
65
+ import { gateway_exports } from "../utils/gateway.js";
65
66
  import { math_exports } from "../utils/math.js";
66
67
  import { ssrf_exports } from "../utils/ssrf.js";
67
68
  import { vectorstores_exports } from "../vectorstores.js";
@@ -123,6 +124,7 @@ var import_map_exports = /* @__PURE__ */ __exportAll({
123
124
  utils__event_source_parse: () => event_source_parse_exports,
124
125
  utils__format: () => format_exports,
125
126
  utils__function_calling: () => function_calling_exports,
127
+ utils__gateway: () => gateway_exports,
126
128
  utils__hash: () => hash_exports,
127
129
  utils__json_patch: () => json_patch_exports,
128
130
  utils__json_schema: () => json_schema_exports,
@@ -137,6 +139,6 @@ var import_map_exports = /* @__PURE__ */ __exportAll({
137
139
  vectorstores: () => vectorstores_exports
138
140
  });
139
141
  //#endregion
140
- export { import_map_exports };
142
+ export { agents_exports as agents, caches_exports as caches, base_exports as callbacks__base, manager_exports as callbacks__manager, promises_exports as callbacks__promises, chat_history_exports as chat_history, base_exports$2 as document_loaders__base, langsmith_exports as document_loaders__langsmith, documents_exports as documents, embeddings_exports as embeddings, errors_exports as errors, example_selectors_exports as example_selectors, import_map_exports, src_exports as index, indexing_exports as indexing, base_exports$3 as language_models__base, chat_models_exports as language_models__chat_models, compat_exports as language_models__compat, event_exports as language_models__event, llms_exports as language_models__llms, openai_completions_stream_exports as language_models__openai_completions_stream, profile_exports as language_models__profile, stream_exports$1 as language_models__stream, structured_output_exports as language_models__structured_output, serializable_exports as load__serializable, memory_exports as memory, messages_exports as messages, tool_exports as messages__tool, output_parsers_exports as output_parsers, openai_functions_exports as output_parsers__openai_functions, openai_tools_exports as output_parsers__openai_tools, outputs_exports as outputs, prompt_values_exports as prompt_values, prompts_exports as prompts, retrievers_exports as retrievers, document_compressors_exports as retrievers__document_compressors, runnables_exports as runnables, graph_exports as runnables__graph, singletons_exports as singletons, stores_exports as stores, structured_query_exports as structured_query, testing_exports as testing, tools_exports as tools, base_exports$1 as tracers__base, console_exports as tracers__console, log_stream_exports as tracers__log_stream, run_collector_exports as tracers__run_collector, tracer_langchain_exports as tracers__tracer_langchain, stream_exports$2 as types__stream, async_caller_exports as utils__async_caller, chunk_array_exports as utils__chunk_array, context_exports as utils__context, env_exports as utils__env, event_source_parse_exports as utils__event_source_parse, format_exports as utils__format, function_calling_exports as utils__function_calling, gateway_exports as utils__gateway, hash_exports as utils__hash, json_patch_exports as utils__json_patch, json_schema_exports as utils__json_schema, math_exports as utils__math, ssrf_exports as utils__ssrf, standard_schema_exports as utils__standard_schema, stream_exports as utils__stream, testing_exports$1 as utils__testing, tiktoken_exports as utils__tiktoken, types_exports as utils__types, uuid_exports as utils__uuid, vectorstores_exports as vectorstores };
141
143
 
142
144
  //# sourceMappingURL=import_map.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"import_map.js","names":[],"sources":["../../src/load/import_map.ts"],"sourcesContent":["/** Auto-generated by import-map plugin. Do not edit manually */\n\nexport * as agents from \"../agents.js\";\nexport * as caches from \"../caches/index.js\";\nexport * as callbacks__base from \"../callbacks/base.js\";\nexport * as callbacks__manager from \"../callbacks/manager.js\";\nexport * as callbacks__promises from \"../callbacks/promises.js\";\nexport * as chat_history from \"../chat_history.js\";\nexport * as document_loaders__base from \"../document_loaders/base.js\";\nexport * as document_loaders__langsmith from \"../document_loaders/langsmith.js\";\nexport * as documents from \"../documents/index.js\";\nexport * as embeddings from \"../embeddings.js\";\nexport * as errors from \"../errors/index.js\";\nexport * as example_selectors from \"../example_selectors/index.js\";\nexport * as index from \"../index.js\";\nexport * as indexing from \"../indexing/index.js\";\nexport * as language_models__base from \"../language_models/base.js\";\nexport * as language_models__chat_models from \"../language_models/chat_models.js\";\nexport * as language_models__compat from \"../language_models/compat.js\";\nexport * as language_models__event from \"../language_models/event.js\";\nexport * as language_models__llms from \"../language_models/llms.js\";\nexport * as language_models__openai_completions_stream from \"../language_models/openai_completions_stream.js\";\nexport * as language_models__profile from \"../language_models/profile.js\";\nexport * as language_models__stream from \"../language_models/stream.js\";\nexport * as language_models__structured_output from \"../language_models/structured_output.js\";\nexport * as load__serializable from \"../load/serializable.js\";\nexport * as memory from \"../memory.js\";\nexport * as messages from \"../messages/index.js\";\nexport * as messages__tool from \"../messages/tool.js\";\nexport * as output_parsers from \"../output_parsers/index.js\";\nexport * as output_parsers__openai_functions from \"../output_parsers/openai_functions/index.js\";\nexport * as output_parsers__openai_tools from \"../output_parsers/openai_tools/index.js\";\nexport * as outputs from \"../outputs.js\";\nexport * as prompt_values from \"../prompt_values.js\";\nexport * as prompts from \"../prompts/index.js\";\nexport * as retrievers__document_compressors from \"../retrievers/document_compressors/index.js\";\nexport * as retrievers from \"../retrievers/index.js\";\nexport * as runnables__graph from \"../runnables/graph.js\";\nexport * as runnables from \"../runnables/index.js\";\nexport * as singletons from \"../singletons/index.js\";\nexport * as stores from \"../stores.js\";\nexport * as structured_query from \"../structured_query/index.js\";\nexport * as testing from \"../testing/index.js\";\nexport * as tools from \"../tools/index.js\";\nexport * as tracers__base from \"../tracers/base.js\";\nexport * as tracers__console from \"../tracers/console.js\";\nexport * as tracers__log_stream from \"../tracers/log_stream.js\";\nexport * as tracers__run_collector from \"../tracers/run_collector.js\";\nexport * as tracers__tracer_langchain from \"../tracers/tracer_langchain.js\";\nexport * as types__stream from \"../types/stream.js\";\nexport * as utils__async_caller from \"../utils/async_caller.js\";\nexport * as utils__chunk_array from \"../utils/chunk_array.js\";\nexport * as utils__context from \"../utils/context.js\";\nexport * as utils__env from \"../utils/env.js\";\nexport * as utils__event_source_parse from \"../utils/event_source_parse.js\";\nexport * as utils__format from \"../utils/format.js\";\nexport * as utils__function_calling from \"../utils/function_calling.js\";\nexport * as utils__hash from \"../utils/hash.js\";\nexport * as utils__json_patch from \"../utils/json_patch.js\";\nexport * as utils__json_schema from \"../utils/json_schema.js\";\nexport * as utils__math from \"../utils/math.js\";\nexport * as utils__ssrf from \"../utils/ssrf.js\";\nexport * as utils__standard_schema from \"../utils/standard_schema.js\";\nexport * as utils__stream from \"../utils/stream.js\";\nexport * as utils__testing from \"../utils/testing/index.js\";\nexport * as utils__tiktoken from \"../utils/tiktoken.js\";\nexport * as utils__types from \"../utils/types/index.js\";\nexport * as utils__uuid from \"../utils/uuid/index.js\";\nexport * as vectorstores from \"../vectorstores.js\";\n"],"mappings":""}
1
+ {"version":3,"file":"import_map.js","names":[],"sources":["../../src/load/import_map.ts"],"sourcesContent":["/** Auto-generated by import-map plugin. Do not edit manually */\n\nexport * as agents from \"../agents.js\";\nexport * as caches from \"../caches/index.js\";\nexport * as callbacks__base from \"../callbacks/base.js\";\nexport * as callbacks__manager from \"../callbacks/manager.js\";\nexport * as callbacks__promises from \"../callbacks/promises.js\";\nexport * as chat_history from \"../chat_history.js\";\nexport * as document_loaders__base from \"../document_loaders/base.js\";\nexport * as document_loaders__langsmith from \"../document_loaders/langsmith.js\";\nexport * as documents from \"../documents/index.js\";\nexport * as embeddings from \"../embeddings.js\";\nexport * as errors from \"../errors/index.js\";\nexport * as example_selectors from \"../example_selectors/index.js\";\nexport * as index from \"../index.js\";\nexport * as indexing from \"../indexing/index.js\";\nexport * as language_models__base from \"../language_models/base.js\";\nexport * as language_models__chat_models from \"../language_models/chat_models.js\";\nexport * as language_models__compat from \"../language_models/compat.js\";\nexport * as language_models__event from \"../language_models/event.js\";\nexport * as language_models__llms from \"../language_models/llms.js\";\nexport * as language_models__openai_completions_stream from \"../language_models/openai_completions_stream.js\";\nexport * as language_models__profile from \"../language_models/profile.js\";\nexport * as language_models__stream from \"../language_models/stream.js\";\nexport * as language_models__structured_output from \"../language_models/structured_output.js\";\nexport * as load__serializable from \"../load/serializable.js\";\nexport * as memory from \"../memory.js\";\nexport * as messages from \"../messages/index.js\";\nexport * as messages__tool from \"../messages/tool.js\";\nexport * as output_parsers from \"../output_parsers/index.js\";\nexport * as output_parsers__openai_functions from \"../output_parsers/openai_functions/index.js\";\nexport * as output_parsers__openai_tools from \"../output_parsers/openai_tools/index.js\";\nexport * as outputs from \"../outputs.js\";\nexport * as prompt_values from \"../prompt_values.js\";\nexport * as prompts from \"../prompts/index.js\";\nexport * as retrievers__document_compressors from \"../retrievers/document_compressors/index.js\";\nexport * as retrievers from \"../retrievers/index.js\";\nexport * as runnables__graph from \"../runnables/graph.js\";\nexport * as runnables from \"../runnables/index.js\";\nexport * as singletons from \"../singletons/index.js\";\nexport * as stores from \"../stores.js\";\nexport * as structured_query from \"../structured_query/index.js\";\nexport * as testing from \"../testing/index.js\";\nexport * as tools from \"../tools/index.js\";\nexport * as tracers__base from \"../tracers/base.js\";\nexport * as tracers__console from \"../tracers/console.js\";\nexport * as tracers__log_stream from \"../tracers/log_stream.js\";\nexport * as tracers__run_collector from \"../tracers/run_collector.js\";\nexport * as tracers__tracer_langchain from \"../tracers/tracer_langchain.js\";\nexport * as types__stream from \"../types/stream.js\";\nexport * as utils__async_caller from \"../utils/async_caller.js\";\nexport * as utils__chunk_array from \"../utils/chunk_array.js\";\nexport * as utils__context from \"../utils/context.js\";\nexport * as utils__env from \"../utils/env.js\";\nexport * as utils__event_source_parse from \"../utils/event_source_parse.js\";\nexport * as utils__format from \"../utils/format.js\";\nexport * as utils__function_calling from \"../utils/function_calling.js\";\nexport * as utils__gateway from \"../utils/gateway.js\";\nexport * as utils__hash from \"../utils/hash.js\";\nexport * as utils__json_patch from \"../utils/json_patch.js\";\nexport * as utils__json_schema from \"../utils/json_schema.js\";\nexport * as utils__math from \"../utils/math.js\";\nexport * as utils__ssrf from \"../utils/ssrf.js\";\nexport * as utils__standard_schema from \"../utils/standard_schema.js\";\nexport * as utils__stream from \"../utils/stream.js\";\nexport * as utils__testing from \"../utils/testing/index.js\";\nexport * as utils__tiktoken from \"../utils/tiktoken.js\";\nexport * as utils__types from \"../utils/types/index.js\";\nexport * as utils__uuid from \"../utils/uuid/index.js\";\nexport * as vectorstores from \"../vectorstores.js\";\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"import_type.d.cts","names":[],"sources":["../../src/load/import_type.ts"],"mappings":";UAEiB,iBAAA;AAAA,UAEA,SAAA"}
1
+ {"version":3,"file":"import_type.d.cts","names":[],"sources":["../../src/load/import_type.ts"],"mappings":";UAEiB;UAEA"}
@@ -1 +1 @@
1
- {"version":3,"file":"import_type.d.ts","names":[],"sources":["../../src/load/import_type.ts"],"mappings":";UAEiB,iBAAA;AAAA,UAEA,SAAA"}
1
+ {"version":3,"file":"import_type.d.ts","names":[],"sources":["../../src/load/import_type.ts"],"mappings":";UAEiB;UAEA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["isEscapedObject","unescapeValue","serialized","getEnvironmentVariable","coreImportMap","defaultOptionalImportEntrypoints","optionalImportEntrypoints","get_lc_unique_name","mapKeys","keyFromJson"],"sources":["../../src/load/index.ts"],"sourcesContent":["/**\n * Load LangChain objects from JSON strings or objects.\n *\n * **WARNING: `load()` deserializes data by instantiating classes and invoking\n * constructors. Never call `load()` on untrusted or user-supplied input.**\n * Doing so can lead to insecure deserialization — including arbitrary class\n * instantiation, secret exfiltration, and server-side request forgery (SSRF).\n * Only deserialize data that originates from a trusted source you control.\n *\n * ## How it works\n *\n * Each `Serializable` LangChain object has a unique identifier (its \"class path\"),\n * which is a list of strings representing the module path and class name. For example:\n *\n * - `AIMessage` -> `[\"langchain_core\", \"messages\", \"ai\", \"AIMessage\"]`\n * - `ChatPromptTemplate` -> `[\"langchain_core\", \"prompts\", \"chat\", \"ChatPromptTemplate\"]`\n *\n * When deserializing, the class path is validated against supported namespaces.\n *\n * ## Threat model\n *\n * A serialized LangChain payload crosses a trust boundary because the manifest\n * may contain serialized objects and configuration that affect runtime behavior.\n * For example, a payload can configure a chat model with a custom `base_url`,\n * custom headers, a different model name, or other constructor arguments. These\n * are supported features, but they also mean the payload contents should be\n * treated as executable configuration rather than plain text.\n *\n * Concretely, deserialization instantiates classes, so any constructor on an\n * allowed class will run during `load()`. A crafted payload that is allowed to\n * reach an unintended class — or an intended class with attacker-controlled\n * kwargs — could cause network calls, file operations, or environment-variable\n * access while the object is being built.\n *\n * ## Security model\n *\n * The `secretsFromEnv` parameter controls whether secrets can be loaded from environment\n * variables:\n *\n * - `false` (default): Secrets must be provided in `secretsMap`. If a secret is not\n * found, `null` is returned instead of loading from environment variables.\n * - `true`: If a secret is not found in `secretsMap`, it will be loaded from\n * environment variables. Use this only in trusted environments.\n *\n * ### Hardening recommendations\n *\n * - **Never enable `secretsFromEnv`** unless the serialized data is fully trusted.\n * A crafted payload can reference arbitrary environment variable names, leaking\n * secrets to an attacker-controlled class constructor.\n * - **Keep `secretsMap` minimal.** Only include the specific secrets the serialized\n * object actually needs.\n * - **Keep `importMap` / `optionalImportsMap` as small and static as possible.**\n * Each entry widens the set of classes an attacker can instantiate. Never\n * populate these maps from user input.\n *\n * ### Injection protection (escape-based)\n *\n * During serialization, plain objects that contain an `'lc'` key are escaped by wrapping\n * them: `{\"__lc_escaped__\": {...}}`. During deserialization, escaped objects are unwrapped\n * and returned as plain objects, NOT instantiated as LC objects.\n *\n * This is an allowlist approach: only objects explicitly produced by\n * `Serializable.toJSON()` (which are NOT escaped) are treated as LC objects;\n * everything else is user data.\n *\n * @module\n */\n\nimport {\n Serializable,\n SerializedConstructor,\n SerializedNotImplemented,\n SerializedSecret,\n get_lc_unique_name,\n} from \"./serializable.js\";\nimport { optionalImportEntrypoints as defaultOptionalImportEntrypoints } from \"./import_constants.js\";\nimport * as coreImportMap from \"./import_map.js\";\nimport type { OptionalImportMap, SecretMap } from \"./import_type.js\";\nimport { type SerializedFields, keyFromJson, mapKeys } from \"./map_keys.js\";\nimport { getEnvironmentVariable } from \"../utils/env.js\";\nimport { isEscapedObject, unescapeValue } from \"./validation.js\";\n\n/**\n * Options for loading serialized LangChain objects.\n *\n * @remarks\n * **Security considerations:**\n *\n * Deserialization can instantiate arbitrary classes from the allowed namespaces.\n * When loading untrusted data, be aware that:\n *\n * 1. **`secretsFromEnv`**: Defaults to `false`. Setting to `true` allows the\n * deserializer to read environment variables, which could leak secrets if\n * the serialized data contains malicious secret references.\n *\n * 2. **`importMap` / `optionalImportsMap`**: These allow extending which classes\n * can be instantiated. Never populate these from user input. Only include\n * modules you explicitly trust.\n *\n * 3. **Class instantiation**: Allowed classes will have their constructors called\n * with the deserialized kwargs. If a class performs side effects in its\n * constructor (network calls, file I/O, etc.), those will execute.\n */\nexport interface LoadOptions {\n /**\n * A map of secrets to load. Keys are secret identifiers, values are the secret values.\n *\n * If a secret is not found in this map and `secretsFromEnv` is `false`, an error is\n * thrown. If `secretsFromEnv` is `true`, the secret will be loaded from environment\n * variables (if not found there either, an error is thrown).\n */\n secretsMap?: SecretMap;\n\n /**\n * Whether to load secrets from environment variables when not found in `secretsMap`.\n *\n * @default false\n *\n * @remarks\n * **Security warning:** Setting this to `true` allows the deserializer to read\n * environment variables, which could be a security risk if the serialized data\n * is not trusted. Only set this to `true` when deserializing data from trusted\n * sources (e.g., your own database, not user input).\n */\n secretsFromEnv?: boolean;\n\n /**\n * A map of optional imports. Keys are namespace paths (e.g., \"langchain_community/llms\"),\n * values are the imported modules.\n *\n * @remarks\n * **Security warning:** This extends which classes can be instantiated during\n * deserialization. Never populate this map with values derived from user input.\n * Only include modules that you explicitly trust and have reviewed.\n *\n * Classes in these modules can be instantiated with attacker-controlled kwargs\n * if the serialized data is untrusted.\n */\n optionalImportsMap?: OptionalImportMap;\n\n /**\n * Additional optional import entrypoints to allow beyond the defaults.\n *\n * @remarks\n * **Security warning:** This extends which namespace paths are considered valid\n * for deserialization. Never populate this array with values derived from user\n * input. Each entrypoint you add expands the attack surface for deserialization.\n */\n optionalImportEntrypoints?: string[];\n\n /**\n * Additional import map for the \"langchain\" namespace.\n *\n * @remarks\n * **Security warning:** This extends which classes can be instantiated during\n * deserialization. Never populate this map with values derived from user input.\n * Only include modules that you explicitly trust and have reviewed.\n *\n * Any class exposed through this map can be instantiated with attacker-controlled\n * kwargs if the serialized data is untrusted.\n */\n importMap?: Record<string, unknown>;\n\n /**\n * Maximum recursion depth allowed during deserialization.\n *\n * @default 50\n *\n * @remarks\n * This limit protects against denial-of-service attacks using deeply nested\n * JSON structures that could cause stack overflow. If your legitimate data\n * requires deeper nesting, you can increase this limit.\n */\n maxDepth?: number;\n}\n\n/**\n * Default maximum recursion depth for deserialization.\n * This provides protection against DoS attacks via deeply nested structures.\n */\nconst DEFAULT_MAX_DEPTH = 50;\n\nfunction combineAliasesAndInvert(constructor: typeof Serializable) {\n const aliases: { [key: string]: string } = {};\n for (\n let current = constructor;\n current && current.prototype;\n current = Object.getPrototypeOf(current)\n ) {\n Object.assign(aliases, Reflect.get(current.prototype, \"lc_aliases\"));\n }\n return Object.entries(aliases).reduce(\n (acc, [key, value]) => {\n acc[value] = key;\n return acc;\n },\n {} as Record<string, string>\n );\n}\n\ninterface ReviverContext {\n optionalImportsMap: OptionalImportMap;\n optionalImportEntrypoints: string[];\n secretsMap: SecretMap;\n secretsFromEnv: boolean;\n importMap: Record<string, unknown>;\n path: string[];\n depth: number;\n maxDepth: number;\n}\n\n/**\n * Recursively revive a value, handling escape markers and LC objects.\n *\n * This function handles:\n * 1. Escaped dicts - unwrapped and returned as plain objects\n * 2. LC secret objects - resolved from secretsMap or env\n * 3. LC constructor objects - instantiated\n * 4. Regular objects/arrays - recursed into\n */\nasync function reviver(this: ReviverContext, value: unknown): Promise<unknown> {\n const {\n optionalImportsMap,\n optionalImportEntrypoints,\n importMap,\n secretsMap,\n secretsFromEnv,\n path,\n depth,\n maxDepth,\n } = this;\n const pathStr = path.join(\".\");\n\n // Check recursion depth to prevent DoS via deeply nested structures\n if (depth > maxDepth) {\n throw new Error(\n `Maximum recursion depth (${maxDepth}) exceeded during deserialization. ` +\n `This may indicate a malicious payload or you may need to increase maxDepth.`\n );\n }\n\n // If not an object, return as-is\n if (typeof value !== \"object\" || value == null) {\n return value;\n }\n\n // Handle arrays - recurse into elements\n if (Array.isArray(value)) {\n return Promise.all(\n value.map((v, i) =>\n reviver.call({ ...this, path: [...path, `${i}`], depth: depth + 1 }, v)\n )\n );\n }\n\n // It's an object - check for escape marker FIRST\n const record = value as Record<string, unknown>;\n if (isEscapedObject(record)) {\n // This is an escaped user object - unwrap and return as-is (no LC processing)\n return unescapeValue(record);\n }\n\n // Check for LC secret object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n record.lc === 1 &&\n record.type === \"secret\"\n ) {\n const serialized = record as unknown as SerializedSecret;\n const [key] = serialized.id;\n if (key in secretsMap) {\n return secretsMap[key as keyof SecretMap];\n } else if (secretsFromEnv) {\n const secretValueInEnv = getEnvironmentVariable(key);\n if (secretValueInEnv) {\n return secretValueInEnv;\n }\n }\n throw new Error(`Missing secret \"${key}\" at ${pathStr}`);\n }\n\n // Check for LC not_implemented object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n record.lc === 1 &&\n record.type === \"not_implemented\"\n ) {\n const serialized = record as unknown as SerializedNotImplemented;\n const str = JSON.stringify(serialized);\n throw new Error(\n `Trying to load an object that doesn't implement serialization: ${pathStr} -> ${str}`\n );\n }\n\n // Check for LC constructor object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n \"kwargs\" in record &&\n record.lc === 1 &&\n record.type === \"constructor\"\n ) {\n const serialized = record as unknown as SerializedConstructor;\n const str = JSON.stringify(serialized);\n const [name, ...namespaceReverse] = serialized.id.slice().reverse();\n const namespace = namespaceReverse.reverse();\n const importMaps = { langchain_core: coreImportMap, langchain: importMap };\n\n let module:\n | (typeof importMaps)[\"langchain_core\"][keyof (typeof importMaps)[\"langchain_core\"]]\n | (typeof importMaps)[\"langchain\"][keyof (typeof importMaps)[\"langchain\"]]\n | OptionalImportMap[keyof OptionalImportMap]\n | null = null;\n\n const optionalImportNamespaceAliases = [namespace.join(\"/\")];\n if (namespace[0] === \"langchain_community\") {\n optionalImportNamespaceAliases.push(\n [\"langchain\", ...namespace.slice(1)].join(\"/\")\n );\n }\n const matchingNamespaceAlias = optionalImportNamespaceAliases.find(\n (alias) => alias in optionalImportsMap\n );\n if (\n defaultOptionalImportEntrypoints\n .concat(optionalImportEntrypoints)\n .includes(namespace.join(\"/\")) ||\n matchingNamespaceAlias\n ) {\n if (matchingNamespaceAlias !== undefined) {\n module =\n await optionalImportsMap[\n matchingNamespaceAlias as keyof typeof optionalImportsMap\n ];\n } else {\n throw new Error(\n `Missing key \"${namespace.join(\n \"/\"\n )}\" for ${pathStr} in load(optionalImportsMap={})`\n );\n }\n } else {\n let finalImportMap:\n | (typeof importMaps)[\"langchain\"]\n | (typeof importMaps)[\"langchain_core\"];\n // Currently, we only support langchain and langchain_core imports.\n if (namespace[0] === \"langchain\" || namespace[0] === \"langchain_core\") {\n finalImportMap = importMaps[namespace[0]];\n namespace.shift();\n } else {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // The root namespace \"langchain\" is not a valid import.\n if (namespace.length === 0) {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // Find the longest matching namespace.\n let importMapKey: string;\n do {\n importMapKey = namespace.join(\"__\");\n if (importMapKey in finalImportMap) {\n break;\n } else {\n namespace.pop();\n }\n } while (namespace.length > 0);\n\n // If no matching namespace is found, throw an error.\n if (importMapKey in finalImportMap) {\n module = finalImportMap[importMapKey as keyof typeof finalImportMap];\n }\n }\n\n if (typeof module !== \"object\" || module === null) {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // Extract the builder from the import map.\n const builder =\n // look for a named export with the same name as the class\n module[name as keyof typeof module] ??\n // look for an export with a lc_name property matching the class name\n // this is necessary for classes that are minified\n Object.values(module).find(\n (v) =>\n typeof v === \"function\" &&\n get_lc_unique_name(v as typeof Serializable) === name\n );\n if (typeof builder !== \"function\") {\n throw new Error(`Invalid identifer: ${pathStr} -> ${str}`);\n }\n\n // Recurse on the arguments, which may be serialized objects themselves\n const kwargs = await reviver.call(\n { ...this, path: [...path, \"kwargs\"], depth: depth + 1 },\n serialized.kwargs\n );\n\n // Construct the object\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const instance = new (builder as any)(\n mapKeys(\n kwargs as SerializedFields,\n keyFromJson,\n combineAliasesAndInvert(builder)\n )\n );\n\n // Minification in severless/edge runtimes will mange the\n // name of classes presented in traces. As the names in import map\n // are present as-is even with minification, use these names instead\n Object.defineProperty(instance.constructor, \"name\", { value: name });\n\n return instance;\n }\n\n // Regular object - recurse into values\n const result: Record<string, unknown> = {};\n for (const [key, val] of Object.entries(record)) {\n result[key] = await reviver.call(\n { ...this, path: [...path, key], depth: depth + 1 },\n val\n );\n }\n return result;\n}\n\n/**\n * Load a LangChain object from a JSON string.\n *\n * **WARNING — insecure deserialization risk.** This function instantiates\n * classes and invokes constructors based on the contents of `text`. If `text`\n * originates from an untrusted source, an attacker can craft a payload that\n * instantiates arbitrary allowed classes with attacker-controlled arguments,\n * potentially causing secret exfiltration, SSRF, or other side effects.\n *\n * A serialized payload should be treated as executable configuration — it can\n * configure models with custom endpoints, headers, or other constructor kwargs\n * that execute during instantiation.\n *\n * Only call `load()` on data you have produced yourself or received from a\n * fully trusted origin (e.g., your own database). **Never deserialize\n * user-supplied or network-received JSON without independent validation.**\n *\n * @param text - The JSON string to parse and load.\n * @param options - Options for loading. See {@link LoadOptions} for security guidance.\n * @returns The loaded LangChain object.\n *\n * @example\n * ```typescript\n * import { load } from \"@langchain/core/load\";\n * import { AIMessage } from \"@langchain/core/messages\";\n *\n * // Basic usage - secrets must be provided explicitly\n * const msg = await load<AIMessage>(jsonString);\n *\n * // With secrets from a map (preferred over secretsFromEnv)\n * const msg = await load<AIMessage>(jsonString, {\n * secretsMap: { OPENAI_API_KEY: \"sk-...\" }\n * });\n *\n * // Allow loading secrets from environment — ONLY for fully trusted data\n * const msg = await load<AIMessage>(jsonString, {\n * secretsFromEnv: true\n * });\n * ```\n */\nexport async function load<T>(text: string, options?: LoadOptions): Promise<T> {\n const json = JSON.parse(text);\n\n const context: ReviverContext = {\n optionalImportsMap: options?.optionalImportsMap ?? {},\n optionalImportEntrypoints: options?.optionalImportEntrypoints ?? [],\n secretsMap: options?.secretsMap ?? {},\n secretsFromEnv: options?.secretsFromEnv ?? false,\n importMap: options?.importMap ?? {},\n path: [\"$\"],\n depth: 0,\n maxDepth: options?.maxDepth ?? DEFAULT_MAX_DEPTH,\n };\n\n return reviver.call(context, json) as Promise<T>;\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"index.cjs","names":["isEscapedObject","unescapeValue","serialized","getEnvironmentVariable","coreImportMap","defaultOptionalImportEntrypoints","optionalImportEntrypoints","get_lc_unique_name","mapKeys","keyFromJson"],"sources":["../../src/load/index.ts"],"sourcesContent":["/**\n * Load LangChain objects from JSON strings or objects.\n *\n * **WARNING: `load()` deserializes data by instantiating classes and invoking\n * constructors. Never call `load()` on untrusted or user-supplied input.**\n * Doing so can lead to insecure deserialization — including arbitrary class\n * instantiation, secret exfiltration, and server-side request forgery (SSRF).\n * Only deserialize data that originates from a trusted source you control.\n *\n * ## How it works\n *\n * Each `Serializable` LangChain object has a unique identifier (its \"class path\"),\n * which is a list of strings representing the module path and class name. For example:\n *\n * - `AIMessage` -> `[\"langchain_core\", \"messages\", \"ai\", \"AIMessage\"]`\n * - `ChatPromptTemplate` -> `[\"langchain_core\", \"prompts\", \"chat\", \"ChatPromptTemplate\"]`\n *\n * When deserializing, the class path is validated against supported namespaces.\n *\n * ## Threat model\n *\n * A serialized LangChain payload crosses a trust boundary because the manifest\n * may contain serialized objects and configuration that affect runtime behavior.\n * For example, a payload can configure a chat model with a custom `base_url`,\n * custom headers, a different model name, or other constructor arguments. These\n * are supported features, but they also mean the payload contents should be\n * treated as executable configuration rather than plain text.\n *\n * Concretely, deserialization instantiates classes, so any constructor on an\n * allowed class will run during `load()`. A crafted payload that is allowed to\n * reach an unintended class — or an intended class with attacker-controlled\n * kwargs — could cause network calls, file operations, or environment-variable\n * access while the object is being built.\n *\n * ## Security model\n *\n * The `secretsFromEnv` parameter controls whether secrets can be loaded from environment\n * variables:\n *\n * - `false` (default): Secrets must be provided in `secretsMap`. If a secret is not\n * found, `null` is returned instead of loading from environment variables.\n * - `true`: If a secret is not found in `secretsMap`, it will be loaded from\n * environment variables. Use this only in trusted environments.\n *\n * ### Hardening recommendations\n *\n * - **Never enable `secretsFromEnv`** unless the serialized data is fully trusted.\n * A crafted payload can reference arbitrary environment variable names, leaking\n * secrets to an attacker-controlled class constructor.\n * - **Keep `secretsMap` minimal.** Only include the specific secrets the serialized\n * object actually needs.\n * - **Keep `importMap` / `optionalImportsMap` as small and static as possible.**\n * Each entry widens the set of classes an attacker can instantiate. Never\n * populate these maps from user input.\n *\n * ### Injection protection (escape-based)\n *\n * During serialization, plain objects that contain an `'lc'` key are escaped by wrapping\n * them: `{\"__lc_escaped__\": {...}}`. During deserialization, escaped objects are unwrapped\n * and returned as plain objects, NOT instantiated as LC objects.\n *\n * This is an allowlist approach: only objects explicitly produced by\n * `Serializable.toJSON()` (which are NOT escaped) are treated as LC objects;\n * everything else is user data.\n *\n * @module\n */\n\nimport {\n Serializable,\n SerializedConstructor,\n SerializedNotImplemented,\n SerializedSecret,\n get_lc_unique_name,\n} from \"./serializable.js\";\nimport { optionalImportEntrypoints as defaultOptionalImportEntrypoints } from \"./import_constants.js\";\nimport * as coreImportMap from \"./import_map.js\";\nimport type { OptionalImportMap, SecretMap } from \"./import_type.js\";\nimport { type SerializedFields, keyFromJson, mapKeys } from \"./map_keys.js\";\nimport { getEnvironmentVariable } from \"../utils/env.js\";\nimport { isEscapedObject, unescapeValue } from \"./validation.js\";\n\n/**\n * Options for loading serialized LangChain objects.\n *\n * @remarks\n * **Security considerations:**\n *\n * Deserialization can instantiate arbitrary classes from the allowed namespaces.\n * When loading untrusted data, be aware that:\n *\n * 1. **`secretsFromEnv`**: Defaults to `false`. Setting to `true` allows the\n * deserializer to read environment variables, which could leak secrets if\n * the serialized data contains malicious secret references.\n *\n * 2. **`importMap` / `optionalImportsMap`**: These allow extending which classes\n * can be instantiated. Never populate these from user input. Only include\n * modules you explicitly trust.\n *\n * 3. **Class instantiation**: Allowed classes will have their constructors called\n * with the deserialized kwargs. If a class performs side effects in its\n * constructor (network calls, file I/O, etc.), those will execute.\n */\nexport interface LoadOptions {\n /**\n * A map of secrets to load. Keys are secret identifiers, values are the secret values.\n *\n * If a secret is not found in this map and `secretsFromEnv` is `false`, an error is\n * thrown. If `secretsFromEnv` is `true`, the secret will be loaded from environment\n * variables (if not found there either, an error is thrown).\n */\n secretsMap?: SecretMap;\n\n /**\n * Whether to load secrets from environment variables when not found in `secretsMap`.\n *\n * @default false\n *\n * @remarks\n * **Security warning:** Setting this to `true` allows the deserializer to read\n * environment variables, which could be a security risk if the serialized data\n * is not trusted. Only set this to `true` when deserializing data from trusted\n * sources (e.g., your own database, not user input).\n */\n secretsFromEnv?: boolean;\n\n /**\n * A map of optional imports. Keys are namespace paths (e.g., \"langchain_community/llms\"),\n * values are the imported modules.\n *\n * @remarks\n * **Security warning:** This extends which classes can be instantiated during\n * deserialization. Never populate this map with values derived from user input.\n * Only include modules that you explicitly trust and have reviewed.\n *\n * Classes in these modules can be instantiated with attacker-controlled kwargs\n * if the serialized data is untrusted.\n */\n optionalImportsMap?: OptionalImportMap;\n\n /**\n * Additional optional import entrypoints to allow beyond the defaults.\n *\n * @remarks\n * **Security warning:** This extends which namespace paths are considered valid\n * for deserialization. Never populate this array with values derived from user\n * input. Each entrypoint you add expands the attack surface for deserialization.\n */\n optionalImportEntrypoints?: string[];\n\n /**\n * Additional import map for the \"langchain\" namespace.\n *\n * @remarks\n * **Security warning:** This extends which classes can be instantiated during\n * deserialization. Never populate this map with values derived from user input.\n * Only include modules that you explicitly trust and have reviewed.\n *\n * Any class exposed through this map can be instantiated with attacker-controlled\n * kwargs if the serialized data is untrusted.\n */\n importMap?: Record<string, unknown>;\n\n /**\n * Maximum recursion depth allowed during deserialization.\n *\n * @default 50\n *\n * @remarks\n * This limit protects against denial-of-service attacks using deeply nested\n * JSON structures that could cause stack overflow. If your legitimate data\n * requires deeper nesting, you can increase this limit.\n */\n maxDepth?: number;\n}\n\n/**\n * Default maximum recursion depth for deserialization.\n * This provides protection against DoS attacks via deeply nested structures.\n */\nconst DEFAULT_MAX_DEPTH = 50;\n\nfunction combineAliasesAndInvert(constructor: typeof Serializable) {\n const aliases: { [key: string]: string } = {};\n for (\n let current = constructor;\n current && current.prototype;\n current = Object.getPrototypeOf(current)\n ) {\n Object.assign(aliases, Reflect.get(current.prototype, \"lc_aliases\"));\n }\n return Object.entries(aliases).reduce(\n (acc, [key, value]) => {\n acc[value] = key;\n return acc;\n },\n {} as Record<string, string>\n );\n}\n\ninterface ReviverContext {\n optionalImportsMap: OptionalImportMap;\n optionalImportEntrypoints: string[];\n secretsMap: SecretMap;\n secretsFromEnv: boolean;\n importMap: Record<string, unknown>;\n path: string[];\n depth: number;\n maxDepth: number;\n}\n\n/**\n * Recursively revive a value, handling escape markers and LC objects.\n *\n * This function handles:\n * 1. Escaped dicts - unwrapped and returned as plain objects\n * 2. LC secret objects - resolved from secretsMap or env\n * 3. LC constructor objects - instantiated\n * 4. Regular objects/arrays - recursed into\n */\nasync function reviver(this: ReviverContext, value: unknown): Promise<unknown> {\n const {\n optionalImportsMap,\n optionalImportEntrypoints,\n importMap,\n secretsMap,\n secretsFromEnv,\n path,\n depth,\n maxDepth,\n } = this;\n const pathStr = path.join(\".\");\n\n // Check recursion depth to prevent DoS via deeply nested structures\n if (depth > maxDepth) {\n throw new Error(\n `Maximum recursion depth (${maxDepth}) exceeded during deserialization. ` +\n `This may indicate a malicious payload or you may need to increase maxDepth.`\n );\n }\n\n // If not an object, return as-is\n if (typeof value !== \"object\" || value == null) {\n return value;\n }\n\n // Handle arrays - recurse into elements\n if (Array.isArray(value)) {\n return Promise.all(\n value.map((v, i) =>\n reviver.call({ ...this, path: [...path, `${i}`], depth: depth + 1 }, v)\n )\n );\n }\n\n // It's an object - check for escape marker FIRST\n const record = value as Record<string, unknown>;\n if (isEscapedObject(record)) {\n // This is an escaped user object - unwrap and return as-is (no LC processing)\n return unescapeValue(record);\n }\n\n // Check for LC secret object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n record.lc === 1 &&\n record.type === \"secret\"\n ) {\n const serialized = record as unknown as SerializedSecret;\n const [key] = serialized.id;\n if (key in secretsMap) {\n return secretsMap[key as keyof SecretMap];\n } else if (secretsFromEnv) {\n const secretValueInEnv = getEnvironmentVariable(key);\n if (secretValueInEnv) {\n return secretValueInEnv;\n }\n }\n throw new Error(`Missing secret \"${key}\" at ${pathStr}`);\n }\n\n // Check for LC not_implemented object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n record.lc === 1 &&\n record.type === \"not_implemented\"\n ) {\n const serialized = record as unknown as SerializedNotImplemented;\n const str = JSON.stringify(serialized);\n throw new Error(\n `Trying to load an object that doesn't implement serialization: ${pathStr} -> ${str}`\n );\n }\n\n // Check for LC constructor object\n if (\n \"lc\" in record &&\n \"type\" in record &&\n \"id\" in record &&\n \"kwargs\" in record &&\n record.lc === 1 &&\n record.type === \"constructor\"\n ) {\n const serialized = record as unknown as SerializedConstructor;\n const str = JSON.stringify(serialized);\n const [name, ...namespaceReverse] = serialized.id.slice().reverse();\n const namespace = namespaceReverse.reverse();\n const importMaps = { langchain_core: coreImportMap, langchain: importMap };\n\n let module:\n | (typeof importMaps)[\"langchain_core\"][keyof (typeof importMaps)[\"langchain_core\"]]\n | (typeof importMaps)[\"langchain\"][keyof (typeof importMaps)[\"langchain\"]]\n | OptionalImportMap[keyof OptionalImportMap]\n | null = null;\n\n const optionalImportNamespaceAliases = [namespace.join(\"/\")];\n if (namespace[0] === \"langchain_community\") {\n optionalImportNamespaceAliases.push(\n [\"langchain\", ...namespace.slice(1)].join(\"/\")\n );\n }\n const matchingNamespaceAlias = optionalImportNamespaceAliases.find(\n (alias) => alias in optionalImportsMap\n );\n if (\n defaultOptionalImportEntrypoints\n .concat(optionalImportEntrypoints)\n .includes(namespace.join(\"/\")) ||\n matchingNamespaceAlias\n ) {\n if (matchingNamespaceAlias !== undefined) {\n module =\n await optionalImportsMap[\n matchingNamespaceAlias as keyof typeof optionalImportsMap\n ];\n } else {\n throw new Error(\n `Missing key \"${namespace.join(\n \"/\"\n )}\" for ${pathStr} in load(optionalImportsMap={})`\n );\n }\n } else {\n let finalImportMap:\n | (typeof importMaps)[\"langchain\"]\n | (typeof importMaps)[\"langchain_core\"];\n // Currently, we only support langchain and langchain_core imports.\n if (namespace[0] === \"langchain\" || namespace[0] === \"langchain_core\") {\n finalImportMap = importMaps[namespace[0]];\n namespace.shift();\n } else {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // The root namespace \"langchain\" is not a valid import.\n if (namespace.length === 0) {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // Find the longest matching namespace.\n let importMapKey: string;\n do {\n importMapKey = namespace.join(\"__\");\n if (importMapKey in finalImportMap) {\n break;\n } else {\n namespace.pop();\n }\n } while (namespace.length > 0);\n\n // If no matching namespace is found, throw an error.\n if (importMapKey in finalImportMap) {\n module = finalImportMap[importMapKey as keyof typeof finalImportMap];\n }\n }\n\n if (typeof module !== \"object\" || module === null) {\n throw new Error(`Invalid namespace: ${pathStr} -> ${str}`);\n }\n\n // Extract the builder from the import map.\n const builder =\n // look for a named export with the same name as the class\n module[name as keyof typeof module] ??\n // look for an export with a lc_name property matching the class name\n // this is necessary for classes that are minified\n Object.values(module).find(\n (v) =>\n typeof v === \"function\" &&\n get_lc_unique_name(v as typeof Serializable) === name\n );\n if (typeof builder !== \"function\") {\n throw new Error(`Invalid identifer: ${pathStr} -> ${str}`);\n }\n\n // Recurse on the arguments, which may be serialized objects themselves\n const kwargs = await reviver.call(\n { ...this, path: [...path, \"kwargs\"], depth: depth + 1 },\n serialized.kwargs\n );\n\n // Construct the object\n // oxlint-disable-next-line @typescript-eslint/no-explicit-any\n const instance = new (builder as any)(\n mapKeys(\n kwargs as SerializedFields,\n keyFromJson,\n combineAliasesAndInvert(builder)\n )\n );\n\n // Minification in severless/edge runtimes will mange the\n // name of classes presented in traces. As the names in import map\n // are present as-is even with minification, use these names instead\n Object.defineProperty(instance.constructor, \"name\", { value: name });\n\n return instance;\n }\n\n // Regular object - recurse into values\n const result: Record<string, unknown> = {};\n for (const [key, val] of Object.entries(record)) {\n result[key] = await reviver.call(\n { ...this, path: [...path, key], depth: depth + 1 },\n val\n );\n }\n return result;\n}\n\n/**\n * Load a LangChain object from a JSON string.\n *\n * **WARNING — insecure deserialization risk.** This function instantiates\n * classes and invokes constructors based on the contents of `text`. If `text`\n * originates from an untrusted source, an attacker can craft a payload that\n * instantiates arbitrary allowed classes with attacker-controlled arguments,\n * potentially causing secret exfiltration, SSRF, or other side effects.\n *\n * A serialized payload should be treated as executable configuration — it can\n * configure models with custom endpoints, headers, or other constructor kwargs\n * that execute during instantiation.\n *\n * Only call `load()` on data you have produced yourself or received from a\n * fully trusted origin (e.g., your own database). **Never deserialize\n * user-supplied or network-received JSON without independent validation.**\n *\n * @param text - The JSON string to parse and load.\n * @param options - Options for loading. See {@link LoadOptions} for security guidance.\n * @returns The loaded LangChain object.\n *\n * @example\n * ```typescript\n * import { load } from \"@langchain/core/load\";\n * import { AIMessage } from \"@langchain/core/messages\";\n *\n * // Basic usage - secrets must be provided explicitly\n * const msg = await load<AIMessage>(jsonString);\n *\n * // With secrets from a map (preferred over secretsFromEnv)\n * const msg = await load<AIMessage>(jsonString, {\n * secretsMap: { OPENAI_API_KEY: \"sk-...\" }\n * });\n *\n * // Allow loading secrets from environment — ONLY for fully trusted data\n * const msg = await load<AIMessage>(jsonString, {\n * secretsFromEnv: true\n * });\n * ```\n */\nexport async function load<T>(text: string, options?: LoadOptions): Promise<T> {\n const json = JSON.parse(text);\n\n const context: ReviverContext = {\n optionalImportsMap: options?.optionalImportsMap ?? {},\n optionalImportEntrypoints: options?.optionalImportEntrypoints ?? [],\n secretsMap: options?.secretsMap ?? {},\n secretsFromEnv: options?.secretsFromEnv ?? false,\n importMap: options?.importMap ?? {},\n path: [\"$\"],\n depth: 0,\n maxDepth: options?.maxDepth ?? DEFAULT_MAX_DEPTH,\n };\n\n return reviver.call(context, json) as Promise<T>;\n}\n"],"mappings":"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"}
@@ -1,5 +1,4 @@
1
1
  import { OptionalImportMap, SecretMap } from "./import_type.cjs";
2
-
3
2
  //#region src/load/index.d.ts
4
3
  /**
5
4
  * Options for loading serialized LangChain objects.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/load/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;UAuGiB,WAAA;;;;;;;;EAQf,UAAA,GAAa,SAAA;;;;;;;;;;;;EAab,cAAA;;;;;;;;;;;;;EAcA,kBAAA,GAAqB,iBAAA;;;;;;;;;EAUrB,yBAAA;;;;;;;;;;;;EAaA,SAAA,GAAY,MAAA;;;;;;;;;;;EAYZ,QAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6SoB,IAAA,GAAA,CAAQ,IAAA,UAAc,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/load/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UAuGiB;;;;;;;;EAQf,aAAa;;;;;;;;;;;;EAab;;;;;;;;;;;;;EAcA,qBAAqB;;;;;;;;;EAUrB;;;;;;;;;;;;EAaA,YAAY;;;;;;;;;;;EAYZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6SoB,KAAK,GAAG,cAAc,UAAU,cAAc,QAAQ"}
@@ -1,5 +1,4 @@
1
1
  import { OptionalImportMap, SecretMap } from "./import_type.js";
2
-
3
2
  //#region src/load/index.d.ts
4
3
  /**
5
4
  * Options for loading serialized LangChain objects.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/load/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;UAuGiB,WAAA;;;;;;;;EAQf,UAAA,GAAa,SAAA;;;;;;;;;;;;EAab,cAAA;;;;;;;;;;;;;EAcA,kBAAA,GAAqB,iBAAA;;;;;;;;;EAUrB,yBAAA;;;;;;;;;;;;EAaA,SAAA,GAAY,MAAA;;;;;;;;;;;EAYZ,QAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6SoB,IAAA,GAAA,CAAQ,IAAA,UAAc,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/load/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;UAuGiB;;;;;;;;EAQf,aAAa;;;;;;;;;;;;EAab;;;;;;;;;;;;;EAcA,qBAAqB;;;;;;;;;EAUrB;;;;;;;;;;;;EAaA,YAAY;;;;;;;;;;;EAYZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6SoB,KAAK,GAAG,cAAc,UAAU,cAAc,QAAQ"}