@langchain/core 1.2.13 → 1.2.16

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 (718) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/agents.d.cts +3 -4
  3. package/dist/agents.d.cts.map +1 -1
  4. package/dist/agents.d.ts +3 -4
  5. package/dist/agents.d.ts.map +1 -1
  6. package/dist/caches/index.d.cts +5 -6
  7. package/dist/caches/index.d.cts.map +1 -1
  8. package/dist/caches/index.d.ts +5 -6
  9. package/dist/caches/index.d.ts.map +1 -1
  10. package/dist/callbacks/base.d.cts +10 -11
  11. package/dist/callbacks/base.d.cts.map +1 -1
  12. package/dist/callbacks/base.d.ts +10 -11
  13. package/dist/callbacks/base.d.ts.map +1 -1
  14. package/dist/callbacks/dispatch/index.d.cts +1 -2
  15. package/dist/callbacks/dispatch/index.d.cts.map +1 -1
  16. package/dist/callbacks/dispatch/index.d.ts +1 -2
  17. package/dist/callbacks/dispatch/index.d.ts.map +1 -1
  18. package/dist/callbacks/dispatch/web.d.cts +1 -2
  19. package/dist/callbacks/dispatch/web.d.cts.map +1 -1
  20. package/dist/callbacks/dispatch/web.d.ts +1 -2
  21. package/dist/callbacks/dispatch/web.d.ts.map +1 -1
  22. package/dist/callbacks/manager.cjs +1 -1
  23. package/dist/callbacks/manager.cjs.map +1 -1
  24. package/dist/callbacks/manager.d.cts +12 -13
  25. package/dist/callbacks/manager.d.cts.map +1 -1
  26. package/dist/callbacks/manager.d.ts +12 -13
  27. package/dist/callbacks/manager.d.ts.map +1 -1
  28. package/dist/callbacks/manager.js +1 -1
  29. package/dist/callbacks/manager.js.map +1 -1
  30. package/dist/chat_history.d.cts +3 -4
  31. package/dist/chat_history.d.cts.map +1 -1
  32. package/dist/chat_history.d.ts +3 -4
  33. package/dist/chat_history.d.ts.map +1 -1
  34. package/dist/context.d.cts +2 -2
  35. package/dist/context.d.cts.map +1 -1
  36. package/dist/context.d.ts +2 -2
  37. package/dist/context.d.ts.map +1 -1
  38. package/dist/document_loaders/base.d.cts +2 -3
  39. package/dist/document_loaders/base.d.cts.map +1 -1
  40. package/dist/document_loaders/base.d.ts +2 -3
  41. package/dist/document_loaders/base.d.ts.map +1 -1
  42. package/dist/document_loaders/langsmith.d.cts +2 -3
  43. package/dist/document_loaders/langsmith.d.cts.map +1 -1
  44. package/dist/document_loaders/langsmith.d.ts +2 -3
  45. package/dist/document_loaders/langsmith.d.ts.map +1 -1
  46. package/dist/documents/document.d.cts +3 -4
  47. package/dist/documents/document.d.cts.map +1 -1
  48. package/dist/documents/document.d.ts +3 -4
  49. package/dist/documents/document.d.ts.map +1 -1
  50. package/dist/documents/transformers.d.cts +2 -3
  51. package/dist/documents/transformers.d.cts.map +1 -1
  52. package/dist/documents/transformers.d.ts +2 -3
  53. package/dist/documents/transformers.d.ts.map +1 -1
  54. package/dist/embeddings.d.cts +3 -4
  55. package/dist/embeddings.d.cts.map +1 -1
  56. package/dist/embeddings.d.ts +3 -4
  57. package/dist/embeddings.d.ts.map +1 -1
  58. package/dist/errors/index.cjs.map +1 -1
  59. package/dist/errors/index.d.cts +13 -19
  60. package/dist/errors/index.d.cts.map +1 -1
  61. package/dist/errors/index.d.ts +13 -19
  62. package/dist/errors/index.d.ts.map +1 -1
  63. package/dist/errors/index.js.map +1 -1
  64. package/dist/example_selectors/base.d.cts +1 -2
  65. package/dist/example_selectors/base.d.cts.map +1 -1
  66. package/dist/example_selectors/base.d.ts +1 -2
  67. package/dist/example_selectors/base.d.ts.map +1 -1
  68. package/dist/example_selectors/conditional.d.cts +5 -6
  69. package/dist/example_selectors/conditional.d.cts.map +1 -1
  70. package/dist/example_selectors/conditional.d.ts +5 -6
  71. package/dist/example_selectors/conditional.d.ts.map +1 -1
  72. package/dist/example_selectors/length_based.d.cts +2 -3
  73. package/dist/example_selectors/length_based.d.cts.map +1 -1
  74. package/dist/example_selectors/length_based.d.ts +2 -3
  75. package/dist/example_selectors/length_based.d.ts.map +1 -1
  76. package/dist/example_selectors/semantic_similarity.d.cts +2 -3
  77. package/dist/example_selectors/semantic_similarity.d.cts.map +1 -1
  78. package/dist/example_selectors/semantic_similarity.d.ts +2 -3
  79. package/dist/example_selectors/semantic_similarity.d.ts.map +1 -1
  80. package/dist/indexing/base.d.cts +9 -10
  81. package/dist/indexing/base.d.cts.map +1 -1
  82. package/dist/indexing/base.d.ts +9 -10
  83. package/dist/indexing/base.d.ts.map +1 -1
  84. package/dist/indexing/record_manager.d.cts +5 -6
  85. package/dist/indexing/record_manager.d.cts.map +1 -1
  86. package/dist/indexing/record_manager.d.ts +5 -6
  87. package/dist/indexing/record_manager.d.ts.map +1 -1
  88. package/dist/language_models/base.cjs +1 -1
  89. package/dist/language_models/base.cjs.map +1 -1
  90. package/dist/language_models/base.d.cts +24 -25
  91. package/dist/language_models/base.d.cts.map +1 -1
  92. package/dist/language_models/base.d.ts +24 -25
  93. package/dist/language_models/base.d.ts.map +1 -1
  94. package/dist/language_models/base.js +1 -1
  95. package/dist/language_models/base.js.map +1 -1
  96. package/dist/language_models/chat_models.d.cts +9 -10
  97. package/dist/language_models/chat_models.d.cts.map +1 -1
  98. package/dist/language_models/chat_models.d.ts +9 -10
  99. package/dist/language_models/chat_models.d.ts.map +1 -1
  100. package/dist/language_models/compat.d.cts +2 -3
  101. package/dist/language_models/compat.d.cts.map +1 -1
  102. package/dist/language_models/compat.d.ts +2 -3
  103. package/dist/language_models/compat.d.ts.map +1 -1
  104. package/dist/language_models/event.d.cts +15 -16
  105. package/dist/language_models/event.d.cts.map +1 -1
  106. package/dist/language_models/event.d.ts +15 -16
  107. package/dist/language_models/event.d.ts.map +1 -1
  108. package/dist/language_models/llms.d.cts +5 -6
  109. package/dist/language_models/llms.d.cts.map +1 -1
  110. package/dist/language_models/llms.d.ts +5 -6
  111. package/dist/language_models/llms.d.ts.map +1 -1
  112. package/dist/language_models/openai_completions_stream.d.cts +8 -9
  113. package/dist/language_models/openai_completions_stream.d.cts.map +1 -1
  114. package/dist/language_models/openai_completions_stream.d.ts +8 -9
  115. package/dist/language_models/openai_completions_stream.d.ts.map +1 -1
  116. package/dist/language_models/profile.cjs.map +1 -1
  117. package/dist/language_models/profile.d.cts +16 -2
  118. package/dist/language_models/profile.d.cts.map +1 -1
  119. package/dist/language_models/profile.d.ts +16 -2
  120. package/dist/language_models/profile.d.ts.map +1 -1
  121. package/dist/language_models/profile.js.map +1 -1
  122. package/dist/language_models/stream.d.cts +5 -6
  123. package/dist/language_models/stream.d.cts.map +1 -1
  124. package/dist/language_models/stream.d.ts +5 -6
  125. package/dist/language_models/stream.d.ts.map +1 -1
  126. package/dist/language_models/structured_output.d.cts +3 -4
  127. package/dist/language_models/structured_output.d.cts.map +1 -1
  128. package/dist/language_models/structured_output.d.ts +3 -4
  129. package/dist/language_models/structured_output.d.ts.map +1 -1
  130. package/dist/load/import_type.d.cts +2 -3
  131. package/dist/load/import_type.d.cts.map +1 -1
  132. package/dist/load/import_type.d.ts +2 -3
  133. package/dist/load/import_type.d.ts.map +1 -1
  134. package/dist/load/index.d.cts +2 -3
  135. package/dist/load/index.d.cts.map +1 -1
  136. package/dist/load/index.d.ts +2 -3
  137. package/dist/load/index.d.ts.map +1 -1
  138. package/dist/load/map_keys.d.cts +1 -2
  139. package/dist/load/map_keys.d.cts.map +1 -1
  140. package/dist/load/map_keys.d.ts +1 -2
  141. package/dist/load/map_keys.d.ts.map +1 -1
  142. package/dist/load/serializable.d.cts +9 -10
  143. package/dist/load/serializable.d.cts.map +1 -1
  144. package/dist/load/serializable.d.ts +9 -10
  145. package/dist/load/serializable.d.ts.map +1 -1
  146. package/dist/memory.d.cts +7 -8
  147. package/dist/memory.d.cts.map +1 -1
  148. package/dist/memory.d.ts +7 -8
  149. package/dist/memory.d.ts.map +1 -1
  150. package/dist/messages/ai.d.cts +6 -7
  151. package/dist/messages/ai.d.cts.map +1 -1
  152. package/dist/messages/ai.d.ts +6 -7
  153. package/dist/messages/ai.d.ts.map +1 -1
  154. package/dist/messages/base.d.cts +23 -24
  155. package/dist/messages/base.d.cts.map +1 -1
  156. package/dist/messages/base.d.ts +23 -24
  157. package/dist/messages/base.d.ts.map +1 -1
  158. package/dist/messages/chat.d.cts +5 -6
  159. package/dist/messages/chat.d.cts.map +1 -1
  160. package/dist/messages/chat.d.ts +5 -6
  161. package/dist/messages/chat.d.ts.map +1 -1
  162. package/dist/messages/content/base.d.cts +1 -2
  163. package/dist/messages/content/base.d.cts.map +1 -1
  164. package/dist/messages/content/base.d.ts +1 -2
  165. package/dist/messages/content/base.d.ts.map +1 -1
  166. package/dist/messages/content/data.d.cts +18 -19
  167. package/dist/messages/content/data.d.cts.map +1 -1
  168. package/dist/messages/content/data.d.ts +18 -19
  169. package/dist/messages/content/data.d.ts.map +1 -1
  170. package/dist/messages/content/index.d.cts +4 -5
  171. package/dist/messages/content/index.d.cts.map +1 -1
  172. package/dist/messages/content/index.d.ts +4 -5
  173. package/dist/messages/content/index.d.ts.map +1 -1
  174. package/dist/messages/content/multimodal.d.cts +2 -3
  175. package/dist/messages/content/multimodal.d.cts.map +1 -1
  176. package/dist/messages/content/multimodal.d.ts +2 -3
  177. package/dist/messages/content/multimodal.d.ts.map +1 -1
  178. package/dist/messages/content/tools.d.cts +2 -3
  179. package/dist/messages/content/tools.d.cts.map +1 -1
  180. package/dist/messages/content/tools.d.ts +2 -3
  181. package/dist/messages/content/tools.d.ts.map +1 -1
  182. package/dist/messages/format.d.cts +1 -2
  183. package/dist/messages/format.d.cts.map +1 -1
  184. package/dist/messages/format.d.ts +1 -2
  185. package/dist/messages/format.d.ts.map +1 -1
  186. package/dist/messages/function.d.cts +5 -6
  187. package/dist/messages/function.d.cts.map +1 -1
  188. package/dist/messages/function.d.ts +5 -6
  189. package/dist/messages/function.d.ts.map +1 -1
  190. package/dist/messages/human.d.cts +5 -6
  191. package/dist/messages/human.d.cts.map +1 -1
  192. package/dist/messages/human.d.ts +5 -6
  193. package/dist/messages/human.d.ts.map +1 -1
  194. package/dist/messages/message.d.cts +20 -21
  195. package/dist/messages/message.d.cts.map +1 -1
  196. package/dist/messages/message.d.ts +20 -21
  197. package/dist/messages/message.d.ts.map +1 -1
  198. package/dist/messages/metadata.d.cts +7 -8
  199. package/dist/messages/metadata.d.cts.map +1 -1
  200. package/dist/messages/metadata.d.ts +7 -8
  201. package/dist/messages/metadata.d.ts.map +1 -1
  202. package/dist/messages/modifier.d.cts +2 -3
  203. package/dist/messages/modifier.d.cts.map +1 -1
  204. package/dist/messages/modifier.d.ts +2 -3
  205. package/dist/messages/modifier.d.ts.map +1 -1
  206. package/dist/messages/system.d.cts +5 -6
  207. package/dist/messages/system.d.cts.map +1 -1
  208. package/dist/messages/system.d.ts +5 -6
  209. package/dist/messages/system.d.ts.map +1 -1
  210. package/dist/messages/tool.d.cts +11 -12
  211. package/dist/messages/tool.d.cts.map +1 -1
  212. package/dist/messages/tool.d.ts +11 -12
  213. package/dist/messages/tool.d.ts.map +1 -1
  214. package/dist/messages/transformers.d.cts +12 -13
  215. package/dist/messages/transformers.d.cts.map +1 -1
  216. package/dist/messages/transformers.d.ts +12 -13
  217. package/dist/messages/transformers.d.ts.map +1 -1
  218. package/dist/messages/utils.d.cts +13 -14
  219. package/dist/messages/utils.d.cts.map +1 -1
  220. package/dist/messages/utils.d.ts +13 -14
  221. package/dist/messages/utils.d.ts.map +1 -1
  222. package/dist/output_parsers/base.d.cts +4 -5
  223. package/dist/output_parsers/base.d.cts.map +1 -1
  224. package/dist/output_parsers/base.d.ts +4 -5
  225. package/dist/output_parsers/base.d.ts.map +1 -1
  226. package/dist/output_parsers/bytes.d.cts +1 -2
  227. package/dist/output_parsers/bytes.d.cts.map +1 -1
  228. package/dist/output_parsers/bytes.d.ts +1 -2
  229. package/dist/output_parsers/bytes.d.ts.map +1 -1
  230. package/dist/output_parsers/json.d.cts +2 -2
  231. package/dist/output_parsers/json.d.cts.map +1 -1
  232. package/dist/output_parsers/json.d.ts +2 -2
  233. package/dist/output_parsers/json.d.ts.map +1 -1
  234. package/dist/output_parsers/list.d.cts +5 -6
  235. package/dist/output_parsers/list.d.cts.map +1 -1
  236. package/dist/output_parsers/list.d.ts +5 -6
  237. package/dist/output_parsers/list.d.ts.map +1 -1
  238. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts +4 -5
  239. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.cts.map +1 -1
  240. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +4 -5
  241. package/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts.map +1 -1
  242. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts +12 -13
  243. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.cts.map +1 -1
  244. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +12 -13
  245. package/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts.map +1 -1
  246. package/dist/output_parsers/standard_schema.d.cts +1 -2
  247. package/dist/output_parsers/standard_schema.d.cts.map +1 -1
  248. package/dist/output_parsers/standard_schema.d.ts +1 -2
  249. package/dist/output_parsers/standard_schema.d.ts.map +1 -1
  250. package/dist/output_parsers/string.d.cts +1 -2
  251. package/dist/output_parsers/string.d.cts.map +1 -1
  252. package/dist/output_parsers/string.d.ts +1 -2
  253. package/dist/output_parsers/string.d.ts.map +1 -1
  254. package/dist/output_parsers/structured.d.cts +6 -7
  255. package/dist/output_parsers/structured.d.cts.map +1 -1
  256. package/dist/output_parsers/structured.d.ts +6 -7
  257. package/dist/output_parsers/structured.d.ts.map +1 -1
  258. package/dist/output_parsers/transform.d.cts +3 -4
  259. package/dist/output_parsers/transform.d.cts.map +1 -1
  260. package/dist/output_parsers/transform.d.ts +3 -4
  261. package/dist/output_parsers/transform.d.ts.map +1 -1
  262. package/dist/output_parsers/xml.d.cts +6 -7
  263. package/dist/output_parsers/xml.d.cts.map +1 -1
  264. package/dist/output_parsers/xml.d.ts +6 -7
  265. package/dist/output_parsers/xml.d.ts.map +1 -1
  266. package/dist/outputs.d.cts +9 -10
  267. package/dist/outputs.d.cts.map +1 -1
  268. package/dist/outputs.d.ts +9 -10
  269. package/dist/outputs.d.ts.map +1 -1
  270. package/dist/prompt_values.d.cts +10 -11
  271. package/dist/prompt_values.d.cts.map +1 -1
  272. package/dist/prompt_values.d.ts +10 -11
  273. package/dist/prompt_values.d.ts.map +1 -1
  274. package/dist/prompts/base.d.cts +4 -5
  275. package/dist/prompts/base.d.cts.map +1 -1
  276. package/dist/prompts/base.d.ts +4 -5
  277. package/dist/prompts/base.d.ts.map +1 -1
  278. package/dist/prompts/chat.d.cts +14 -15
  279. package/dist/prompts/chat.d.cts.map +1 -1
  280. package/dist/prompts/chat.d.ts +14 -15
  281. package/dist/prompts/chat.d.ts.map +1 -1
  282. package/dist/prompts/dict.d.cts +1 -2
  283. package/dist/prompts/dict.d.cts.map +1 -1
  284. package/dist/prompts/dict.d.ts +1 -2
  285. package/dist/prompts/dict.d.ts.map +1 -1
  286. package/dist/prompts/few_shot.d.cts +4 -5
  287. package/dist/prompts/few_shot.d.cts.map +1 -1
  288. package/dist/prompts/few_shot.d.ts +4 -5
  289. package/dist/prompts/few_shot.d.ts.map +1 -1
  290. package/dist/prompts/image.d.cts +2 -3
  291. package/dist/prompts/image.d.cts.map +1 -1
  292. package/dist/prompts/image.d.ts +2 -3
  293. package/dist/prompts/image.d.ts.map +1 -1
  294. package/dist/prompts/pipeline.d.cts +3 -4
  295. package/dist/prompts/pipeline.d.cts.map +1 -1
  296. package/dist/prompts/pipeline.d.ts +3 -4
  297. package/dist/prompts/pipeline.d.ts.map +1 -1
  298. package/dist/prompts/prompt.d.cts +4 -5
  299. package/dist/prompts/prompt.d.cts.map +1 -1
  300. package/dist/prompts/prompt.d.ts +4 -5
  301. package/dist/prompts/prompt.d.ts.map +1 -1
  302. package/dist/prompts/serde.d.cts +3 -4
  303. package/dist/prompts/serde.d.cts.map +1 -1
  304. package/dist/prompts/serde.d.ts +3 -4
  305. package/dist/prompts/serde.d.ts.map +1 -1
  306. package/dist/prompts/string.d.cts +1 -2
  307. package/dist/prompts/string.d.cts.map +1 -1
  308. package/dist/prompts/string.d.ts +1 -2
  309. package/dist/prompts/string.d.ts.map +1 -1
  310. package/dist/prompts/structured.d.cts +2 -3
  311. package/dist/prompts/structured.d.cts.map +1 -1
  312. package/dist/prompts/structured.d.ts +2 -3
  313. package/dist/prompts/structured.d.ts.map +1 -1
  314. package/dist/prompts/template.d.cts +12 -13
  315. package/dist/prompts/template.d.cts.map +1 -1
  316. package/dist/prompts/template.d.ts +12 -13
  317. package/dist/prompts/template.d.ts.map +1 -1
  318. package/dist/retrievers/document_compressors/index.d.cts +1 -2
  319. package/dist/retrievers/document_compressors/index.d.cts.map +1 -1
  320. package/dist/retrievers/document_compressors/index.d.ts +1 -2
  321. package/dist/retrievers/document_compressors/index.d.ts.map +1 -1
  322. package/dist/retrievers/index.d.cts +3 -4
  323. package/dist/retrievers/index.d.cts.map +1 -1
  324. package/dist/retrievers/index.d.ts +3 -4
  325. package/dist/retrievers/index.d.ts.map +1 -1
  326. package/dist/runnables/base.d.cts +23 -23
  327. package/dist/runnables/base.d.cts.map +1 -1
  328. package/dist/runnables/base.d.ts +23 -23
  329. package/dist/runnables/base.d.ts.map +1 -1
  330. package/dist/runnables/branch.d.cts +3 -4
  331. package/dist/runnables/branch.d.cts.map +1 -1
  332. package/dist/runnables/branch.d.ts +3 -4
  333. package/dist/runnables/branch.d.ts.map +1 -1
  334. package/dist/runnables/config.d.cts +6 -6
  335. package/dist/runnables/config.d.cts.map +1 -1
  336. package/dist/runnables/config.d.ts +6 -6
  337. package/dist/runnables/config.d.ts.map +1 -1
  338. package/dist/runnables/graph.d.cts +2 -2
  339. package/dist/runnables/graph.d.cts.map +1 -1
  340. package/dist/runnables/graph.d.ts +2 -2
  341. package/dist/runnables/graph.d.ts.map +1 -1
  342. package/dist/runnables/history.d.cts +2 -3
  343. package/dist/runnables/history.d.cts.map +1 -1
  344. package/dist/runnables/history.d.ts +2 -3
  345. package/dist/runnables/history.d.ts.map +1 -1
  346. package/dist/runnables/passthrough.d.cts +1 -2
  347. package/dist/runnables/passthrough.d.cts.map +1 -1
  348. package/dist/runnables/passthrough.d.ts +1 -2
  349. package/dist/runnables/passthrough.d.ts.map +1 -1
  350. package/dist/runnables/router.d.cts +2 -3
  351. package/dist/runnables/router.d.cts.map +1 -1
  352. package/dist/runnables/router.d.ts +2 -3
  353. package/dist/runnables/router.d.ts.map +1 -1
  354. package/dist/runnables/types.d.cts +6 -7
  355. package/dist/runnables/types.d.cts.map +1 -1
  356. package/dist/runnables/types.d.ts +6 -7
  357. package/dist/runnables/types.d.ts.map +1 -1
  358. package/dist/singletons/async_local_storage/context.d.cts +4 -5
  359. package/dist/singletons/async_local_storage/context.d.cts.map +1 -1
  360. package/dist/singletons/async_local_storage/context.d.ts +4 -5
  361. package/dist/singletons/async_local_storage/context.d.ts.map +1 -1
  362. package/dist/singletons/async_local_storage/globals.d.cts +2 -3
  363. package/dist/singletons/async_local_storage/globals.d.cts.map +1 -1
  364. package/dist/singletons/async_local_storage/globals.d.ts +2 -3
  365. package/dist/singletons/async_local_storage/globals.d.ts.map +1 -1
  366. package/dist/singletons/async_local_storage/index.d.cts +2 -2
  367. package/dist/singletons/async_local_storage/index.d.cts.map +1 -1
  368. package/dist/singletons/async_local_storage/index.d.ts +2 -2
  369. package/dist/singletons/async_local_storage/index.d.ts.map +1 -1
  370. package/dist/singletons/callbacks.d.cts +2 -3
  371. package/dist/singletons/callbacks.d.cts.map +1 -1
  372. package/dist/singletons/callbacks.d.ts +2 -3
  373. package/dist/singletons/callbacks.d.ts.map +1 -1
  374. package/dist/stores.d.cts +2 -3
  375. package/dist/stores.d.cts.map +1 -1
  376. package/dist/stores.d.ts +2 -3
  377. package/dist/stores.d.ts.map +1 -1
  378. package/dist/structured_query/base.d.cts +3 -4
  379. package/dist/structured_query/base.d.cts.map +1 -1
  380. package/dist/structured_query/base.d.ts +3 -4
  381. package/dist/structured_query/base.d.ts.map +1 -1
  382. package/dist/structured_query/functional.d.cts +2 -3
  383. package/dist/structured_query/functional.d.cts.map +1 -1
  384. package/dist/structured_query/functional.d.ts +2 -3
  385. package/dist/structured_query/functional.d.ts.map +1 -1
  386. package/dist/structured_query/ir.d.cts +23 -24
  387. package/dist/structured_query/ir.d.cts.map +1 -1
  388. package/dist/structured_query/ir.d.ts +23 -24
  389. package/dist/structured_query/ir.d.ts.map +1 -1
  390. package/dist/structured_query/utils.d.cts +7 -8
  391. package/dist/structured_query/utils.d.cts.map +1 -1
  392. package/dist/structured_query/utils.d.ts +7 -8
  393. package/dist/structured_query/utils.d.ts.map +1 -1
  394. package/dist/testing/fake_model_builder.d.cts +2 -3
  395. package/dist/testing/fake_model_builder.d.cts.map +1 -1
  396. package/dist/testing/fake_model_builder.d.ts +2 -3
  397. package/dist/testing/fake_model_builder.d.ts.map +1 -1
  398. package/dist/testing/index.d.cts +1 -0
  399. package/dist/testing/index.d.ts +1 -0
  400. package/dist/testing/matchers.d.cts +12 -13
  401. package/dist/testing/matchers.d.cts.map +1 -1
  402. package/dist/testing/matchers.d.ts +12 -13
  403. package/dist/testing/matchers.d.ts.map +1 -1
  404. package/dist/testing/vitest-expect.d.cts +8 -0
  405. package/dist/testing/vitest-expect.d.cts.map +1 -0
  406. package/dist/testing/vitest-expect.d.ts +8 -0
  407. package/dist/testing/vitest-expect.d.ts.map +1 -0
  408. package/dist/tools/index.d.cts +21 -21
  409. package/dist/tools/index.d.cts.map +1 -1
  410. package/dist/tools/index.d.ts +21 -21
  411. package/dist/tools/index.d.ts.map +1 -1
  412. package/dist/tools/types.d.cts +25 -26
  413. package/dist/tools/types.d.cts.map +1 -1
  414. package/dist/tools/types.d.ts +25 -26
  415. package/dist/tools/types.d.ts.map +1 -1
  416. package/dist/tools/utils.d.cts +1 -2
  417. package/dist/tools/utils.d.cts.map +1 -1
  418. package/dist/tools/utils.d.ts +1 -2
  419. package/dist/tools/utils.d.ts.map +1 -1
  420. package/dist/tracers/base.cjs +7 -4
  421. package/dist/tracers/base.cjs.map +1 -1
  422. package/dist/tracers/base.d.cts +7 -8
  423. package/dist/tracers/base.d.cts.map +1 -1
  424. package/dist/tracers/base.d.ts +7 -8
  425. package/dist/tracers/base.d.ts.map +1 -1
  426. package/dist/tracers/base.js +7 -4
  427. package/dist/tracers/base.js.map +1 -1
  428. package/dist/tracers/console.d.cts +1 -2
  429. package/dist/tracers/console.d.cts.map +1 -1
  430. package/dist/tracers/console.d.ts +1 -2
  431. package/dist/tracers/console.d.ts.map +1 -1
  432. package/dist/tracers/event_stream.d.cts +3 -4
  433. package/dist/tracers/event_stream.d.cts.map +1 -1
  434. package/dist/tracers/event_stream.d.ts +3 -4
  435. package/dist/tracers/event_stream.d.ts.map +1 -1
  436. package/dist/tracers/log_stream.d.cts +9 -9
  437. package/dist/tracers/log_stream.d.cts.map +1 -1
  438. package/dist/tracers/log_stream.d.ts +9 -9
  439. package/dist/tracers/log_stream.d.ts.map +1 -1
  440. package/dist/tracers/run_collector.d.cts +1 -2
  441. package/dist/tracers/run_collector.d.cts.map +1 -1
  442. package/dist/tracers/run_collector.d.ts +1 -2
  443. package/dist/tracers/run_collector.d.ts.map +1 -1
  444. package/dist/tracers/tracer_langchain.d.cts +6 -7
  445. package/dist/tracers/tracer_langchain.d.cts.map +1 -1
  446. package/dist/tracers/tracer_langchain.d.ts +6 -7
  447. package/dist/tracers/tracer_langchain.d.ts.map +1 -1
  448. package/dist/types/_internal.d.cts +1 -2
  449. package/dist/types/_internal.d.cts.map +1 -1
  450. package/dist/types/_internal.d.ts +1 -2
  451. package/dist/types/_internal.d.ts.map +1 -1
  452. package/dist/types/type-utils.d.cts +2 -3
  453. package/dist/types/type-utils.d.cts.map +1 -1
  454. package/dist/types/type-utils.d.ts +2 -3
  455. package/dist/types/type-utils.d.ts.map +1 -1
  456. package/dist/utils/async_caller.d.cts +6 -7
  457. package/dist/utils/async_caller.d.cts.map +1 -1
  458. package/dist/utils/async_caller.d.ts +6 -7
  459. package/dist/utils/async_caller.d.ts.map +1 -1
  460. package/dist/utils/chunk_array.d.cts +1 -2
  461. package/dist/utils/chunk_array.d.cts.map +1 -1
  462. package/dist/utils/chunk_array.d.ts +1 -2
  463. package/dist/utils/chunk_array.d.ts.map +1 -1
  464. package/dist/utils/context.d.cts +1 -2
  465. package/dist/utils/context.d.cts.map +1 -1
  466. package/dist/utils/context.d.ts +1 -2
  467. package/dist/utils/context.d.ts.map +1 -1
  468. package/dist/utils/env.d.cts +9 -10
  469. package/dist/utils/env.d.cts.map +1 -1
  470. package/dist/utils/env.d.ts +9 -10
  471. package/dist/utils/env.d.ts.map +1 -1
  472. package/dist/utils/event_source_parse.d.cts +6 -7
  473. package/dist/utils/event_source_parse.d.cts.map +1 -1
  474. package/dist/utils/event_source_parse.d.ts +6 -7
  475. package/dist/utils/event_source_parse.d.ts.map +1 -1
  476. package/dist/utils/fast-json-patch/src/core.d.cts +13 -14
  477. package/dist/utils/fast-json-patch/src/core.d.cts.map +1 -1
  478. package/dist/utils/fast-json-patch/src/core.d.ts +13 -14
  479. package/dist/utils/fast-json-patch/src/core.d.ts.map +1 -1
  480. package/dist/utils/fast-json-patch/src/duplex.d.cts +1 -2
  481. package/dist/utils/fast-json-patch/src/duplex.d.cts.map +1 -1
  482. package/dist/utils/fast-json-patch/src/duplex.d.ts +1 -2
  483. package/dist/utils/fast-json-patch/src/duplex.d.ts.map +1 -1
  484. package/dist/utils/format.d.cts +2 -3
  485. package/dist/utils/format.d.cts.map +1 -1
  486. package/dist/utils/format.d.ts +2 -3
  487. package/dist/utils/format.d.ts.map +1 -1
  488. package/dist/utils/function_calling.d.cts +3 -3
  489. package/dist/utils/function_calling.d.cts.map +1 -1
  490. package/dist/utils/function_calling.d.ts +3 -3
  491. package/dist/utils/function_calling.d.ts.map +1 -1
  492. package/dist/utils/gateway.d.cts +4 -5
  493. package/dist/utils/gateway.d.cts.map +1 -1
  494. package/dist/utils/gateway.d.ts +4 -5
  495. package/dist/utils/gateway.d.ts.map +1 -1
  496. package/dist/utils/hash.d.cts +2 -2
  497. package/dist/utils/hash.d.cts.map +1 -1
  498. package/dist/utils/hash.d.ts +2 -2
  499. package/dist/utils/hash.d.ts.map +1 -1
  500. package/dist/utils/js-sha256/hash.cjs +2 -2
  501. package/dist/utils/js-sha256/hash.cjs.map +1 -1
  502. package/dist/utils/js-sha256/hash.d.cts +1 -2
  503. package/dist/utils/js-sha256/hash.d.cts.map +1 -1
  504. package/dist/utils/js-sha256/hash.d.ts +1 -2
  505. package/dist/utils/js-sha256/hash.d.ts.map +1 -1
  506. package/dist/utils/js-sha256/hash.js +2 -2
  507. package/dist/utils/js-sha256/hash.js.map +1 -1
  508. package/dist/utils/json.d.cts +2 -3
  509. package/dist/utils/json.d.cts.map +1 -1
  510. package/dist/utils/json.d.ts +2 -3
  511. package/dist/utils/json.d.ts.map +1 -1
  512. package/dist/utils/json_schema.d.cts +4 -4
  513. package/dist/utils/json_schema.d.cts.map +1 -1
  514. package/dist/utils/json_schema.d.ts +4 -4
  515. package/dist/utils/json_schema.d.ts.map +1 -1
  516. package/dist/utils/math.d.cts +6 -7
  517. package/dist/utils/math.d.cts.map +1 -1
  518. package/dist/utils/math.d.ts +6 -7
  519. package/dist/utils/math.d.ts.map +1 -1
  520. package/dist/utils/ml-distance/similarities.d.cts +1 -2
  521. package/dist/utils/ml-distance/similarities.d.cts.map +1 -1
  522. package/dist/utils/ml-distance/similarities.d.ts +1 -2
  523. package/dist/utils/ml-distance/similarities.d.ts.map +1 -1
  524. package/dist/utils/namespace.cjs.map +1 -1
  525. package/dist/utils/namespace.d.cts +2 -3
  526. package/dist/utils/namespace.d.cts.map +1 -1
  527. package/dist/utils/namespace.d.ts +2 -3
  528. package/dist/utils/namespace.d.ts.map +1 -1
  529. package/dist/utils/namespace.js.map +1 -1
  530. package/dist/utils/signal.d.cts +1 -2
  531. package/dist/utils/signal.d.cts.map +1 -1
  532. package/dist/utils/signal.d.ts +1 -2
  533. package/dist/utils/signal.d.ts.map +1 -1
  534. package/dist/utils/ssrf.d.cts +6 -7
  535. package/dist/utils/ssrf.d.cts.map +1 -1
  536. package/dist/utils/ssrf.d.ts +6 -7
  537. package/dist/utils/ssrf.d.ts.map +1 -1
  538. package/dist/utils/standard_schema.d.cts +4 -5
  539. package/dist/utils/standard_schema.d.cts.map +1 -1
  540. package/dist/utils/standard_schema.d.ts +4 -5
  541. package/dist/utils/standard_schema.d.ts.map +1 -1
  542. package/dist/utils/stream.d.cts +6 -6
  543. package/dist/utils/stream.d.cts.map +1 -1
  544. package/dist/utils/stream.d.ts +6 -6
  545. package/dist/utils/stream.d.ts.map +1 -1
  546. package/dist/utils/testing/chat_models.d.cts +8 -9
  547. package/dist/utils/testing/chat_models.d.cts.map +1 -1
  548. package/dist/utils/testing/chat_models.d.ts +8 -9
  549. package/dist/utils/testing/chat_models.d.ts.map +1 -1
  550. package/dist/utils/testing/embeddings.d.cts +2 -3
  551. package/dist/utils/testing/embeddings.d.cts.map +1 -1
  552. package/dist/utils/testing/embeddings.d.ts +2 -3
  553. package/dist/utils/testing/embeddings.d.ts.map +1 -1
  554. package/dist/utils/testing/llms.d.cts +2 -3
  555. package/dist/utils/testing/llms.d.cts.map +1 -1
  556. package/dist/utils/testing/llms.d.ts +2 -3
  557. package/dist/utils/testing/llms.d.ts.map +1 -1
  558. package/dist/utils/testing/message_history.d.cts +3 -4
  559. package/dist/utils/testing/message_history.d.cts.map +1 -1
  560. package/dist/utils/testing/message_history.d.ts +3 -4
  561. package/dist/utils/testing/message_history.d.ts.map +1 -1
  562. package/dist/utils/testing/openai_stream_fixtures.d.cts +6 -7
  563. package/dist/utils/testing/openai_stream_fixtures.d.cts.map +1 -1
  564. package/dist/utils/testing/openai_stream_fixtures.d.ts +6 -7
  565. package/dist/utils/testing/openai_stream_fixtures.d.ts.map +1 -1
  566. package/dist/utils/testing/output_parsers.d.cts +1 -2
  567. package/dist/utils/testing/output_parsers.d.cts.map +1 -1
  568. package/dist/utils/testing/output_parsers.d.ts +1 -2
  569. package/dist/utils/testing/output_parsers.d.ts.map +1 -1
  570. package/dist/utils/testing/retrievers.d.cts +1 -2
  571. package/dist/utils/testing/retrievers.d.cts.map +1 -1
  572. package/dist/utils/testing/retrievers.d.ts +1 -2
  573. package/dist/utils/testing/retrievers.d.ts.map +1 -1
  574. package/dist/utils/testing/runnables.d.cts +1 -2
  575. package/dist/utils/testing/runnables.d.cts.map +1 -1
  576. package/dist/utils/testing/runnables.d.ts +1 -2
  577. package/dist/utils/testing/runnables.d.ts.map +1 -1
  578. package/dist/utils/testing/stream.d.cts +10 -11
  579. package/dist/utils/testing/stream.d.cts.map +1 -1
  580. package/dist/utils/testing/stream.d.ts +10 -11
  581. package/dist/utils/testing/stream.d.ts.map +1 -1
  582. package/dist/utils/testing/tools.d.cts +2 -3
  583. package/dist/utils/testing/tools.d.cts.map +1 -1
  584. package/dist/utils/testing/tools.d.ts +2 -3
  585. package/dist/utils/testing/tools.d.ts.map +1 -1
  586. package/dist/utils/testing/tracers.d.cts +1 -2
  587. package/dist/utils/testing/tracers.d.cts.map +1 -1
  588. package/dist/utils/testing/tracers.d.ts +1 -2
  589. package/dist/utils/testing/tracers.d.ts.map +1 -1
  590. package/dist/utils/testing/vectorstores.d.cts +2 -3
  591. package/dist/utils/testing/vectorstores.d.cts.map +1 -1
  592. package/dist/utils/testing/vectorstores.d.ts +2 -3
  593. package/dist/utils/testing/vectorstores.d.ts.map +1 -1
  594. package/dist/utils/tiktoken.d.cts +2 -3
  595. package/dist/utils/tiktoken.d.cts.map +1 -1
  596. package/dist/utils/tiktoken.d.ts +2 -3
  597. package/dist/utils/tiktoken.d.ts.map +1 -1
  598. package/dist/utils/types/index.d.cts +5 -5
  599. package/dist/utils/types/index.d.cts.map +1 -1
  600. package/dist/utils/types/index.d.ts +5 -5
  601. package/dist/utils/types/index.d.ts.map +1 -1
  602. package/dist/utils/types/zod.d.cts +62 -63
  603. package/dist/utils/types/zod.d.cts.map +1 -1
  604. package/dist/utils/types/zod.d.ts +62 -63
  605. package/dist/utils/types/zod.d.ts.map +1 -1
  606. package/dist/utils/uuid/index.d.cts +12 -12
  607. package/dist/utils/uuid/index.d.cts.map +1 -1
  608. package/dist/utils/uuid/index.d.ts +12 -12
  609. package/dist/utils/uuid/index.d.ts.map +1 -1
  610. package/dist/utils/uuid/types.d.cts +6 -7
  611. package/dist/utils/uuid/types.d.cts.map +1 -1
  612. package/dist/utils/uuid/types.d.ts +6 -7
  613. package/dist/utils/uuid/types.d.ts.map +1 -1
  614. package/dist/utils/uuid/v35.d.cts +2 -3
  615. package/dist/utils/uuid/v35.d.cts.map +1 -1
  616. package/dist/utils/uuid/v35.d.ts +2 -3
  617. package/dist/utils/uuid/v35.d.ts.map +1 -1
  618. package/dist/utils/zod-to-json-schema/errorMessages.d.cts +1 -2
  619. package/dist/utils/zod-to-json-schema/errorMessages.d.cts.map +1 -1
  620. package/dist/utils/zod-to-json-schema/errorMessages.d.ts +1 -2
  621. package/dist/utils/zod-to-json-schema/errorMessages.d.ts.map +1 -1
  622. package/dist/utils/zod-to-json-schema/parseTypes.d.cts +2 -3
  623. package/dist/utils/zod-to-json-schema/parseTypes.d.cts.map +1 -1
  624. package/dist/utils/zod-to-json-schema/parseTypes.d.ts +2 -3
  625. package/dist/utils/zod-to-json-schema/parseTypes.d.ts.map +1 -1
  626. package/dist/utils/zod-to-json-schema/parsers/any.d.cts +1 -2
  627. package/dist/utils/zod-to-json-schema/parsers/any.d.cts.map +1 -1
  628. package/dist/utils/zod-to-json-schema/parsers/any.d.ts +1 -2
  629. package/dist/utils/zod-to-json-schema/parsers/any.d.ts.map +1 -1
  630. package/dist/utils/zod-to-json-schema/parsers/array.d.cts +1 -2
  631. package/dist/utils/zod-to-json-schema/parsers/array.d.cts.map +1 -1
  632. package/dist/utils/zod-to-json-schema/parsers/array.d.ts +1 -2
  633. package/dist/utils/zod-to-json-schema/parsers/array.d.ts.map +1 -1
  634. package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts +1 -2
  635. package/dist/utils/zod-to-json-schema/parsers/bigint.d.cts.map +1 -1
  636. package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts +1 -2
  637. package/dist/utils/zod-to-json-schema/parsers/bigint.d.ts.map +1 -1
  638. package/dist/utils/zod-to-json-schema/parsers/boolean.d.cts +1 -2
  639. package/dist/utils/zod-to-json-schema/parsers/boolean.d.cts.map +1 -1
  640. package/dist/utils/zod-to-json-schema/parsers/boolean.d.ts +1 -2
  641. package/dist/utils/zod-to-json-schema/parsers/boolean.d.ts.map +1 -1
  642. package/dist/utils/zod-to-json-schema/parsers/date.d.cts +1 -2
  643. package/dist/utils/zod-to-json-schema/parsers/date.d.cts.map +1 -1
  644. package/dist/utils/zod-to-json-schema/parsers/date.d.ts +1 -2
  645. package/dist/utils/zod-to-json-schema/parsers/date.d.ts.map +1 -1
  646. package/dist/utils/zod-to-json-schema/parsers/enum.d.cts +1 -2
  647. package/dist/utils/zod-to-json-schema/parsers/enum.d.cts.map +1 -1
  648. package/dist/utils/zod-to-json-schema/parsers/enum.d.ts +1 -2
  649. package/dist/utils/zod-to-json-schema/parsers/enum.d.ts.map +1 -1
  650. package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts +1 -2
  651. package/dist/utils/zod-to-json-schema/parsers/intersection.d.cts.map +1 -1
  652. package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts +1 -2
  653. package/dist/utils/zod-to-json-schema/parsers/intersection.d.ts.map +1 -1
  654. package/dist/utils/zod-to-json-schema/parsers/literal.d.cts +1 -2
  655. package/dist/utils/zod-to-json-schema/parsers/literal.d.cts.map +1 -1
  656. package/dist/utils/zod-to-json-schema/parsers/literal.d.ts +1 -2
  657. package/dist/utils/zod-to-json-schema/parsers/literal.d.ts.map +1 -1
  658. package/dist/utils/zod-to-json-schema/parsers/map.d.cts +1 -2
  659. package/dist/utils/zod-to-json-schema/parsers/map.d.cts.map +1 -1
  660. package/dist/utils/zod-to-json-schema/parsers/map.d.ts +1 -2
  661. package/dist/utils/zod-to-json-schema/parsers/map.d.ts.map +1 -1
  662. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts +1 -2
  663. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.cts.map +1 -1
  664. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -2
  665. package/dist/utils/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -1
  666. package/dist/utils/zod-to-json-schema/parsers/never.d.cts +1 -2
  667. package/dist/utils/zod-to-json-schema/parsers/never.d.cts.map +1 -1
  668. package/dist/utils/zod-to-json-schema/parsers/never.d.ts +1 -2
  669. package/dist/utils/zod-to-json-schema/parsers/never.d.ts.map +1 -1
  670. package/dist/utils/zod-to-json-schema/parsers/null.d.cts +1 -2
  671. package/dist/utils/zod-to-json-schema/parsers/null.d.cts.map +1 -1
  672. package/dist/utils/zod-to-json-schema/parsers/null.d.ts +1 -2
  673. package/dist/utils/zod-to-json-schema/parsers/null.d.ts.map +1 -1
  674. package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts +1 -2
  675. package/dist/utils/zod-to-json-schema/parsers/nullable.d.cts.map +1 -1
  676. package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts +1 -2
  677. package/dist/utils/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
  678. package/dist/utils/zod-to-json-schema/parsers/number.d.cts +1 -2
  679. package/dist/utils/zod-to-json-schema/parsers/number.d.cts.map +1 -1
  680. package/dist/utils/zod-to-json-schema/parsers/number.d.ts +1 -2
  681. package/dist/utils/zod-to-json-schema/parsers/number.d.ts.map +1 -1
  682. package/dist/utils/zod-to-json-schema/parsers/object.d.cts +1 -2
  683. package/dist/utils/zod-to-json-schema/parsers/object.d.cts.map +1 -1
  684. package/dist/utils/zod-to-json-schema/parsers/object.d.ts +1 -2
  685. package/dist/utils/zod-to-json-schema/parsers/object.d.ts.map +1 -1
  686. package/dist/utils/zod-to-json-schema/parsers/record.d.cts +1 -2
  687. package/dist/utils/zod-to-json-schema/parsers/record.d.cts.map +1 -1
  688. package/dist/utils/zod-to-json-schema/parsers/record.d.ts +1 -2
  689. package/dist/utils/zod-to-json-schema/parsers/record.d.ts.map +1 -1
  690. package/dist/utils/zod-to-json-schema/parsers/set.d.cts +1 -2
  691. package/dist/utils/zod-to-json-schema/parsers/set.d.cts.map +1 -1
  692. package/dist/utils/zod-to-json-schema/parsers/set.d.ts +1 -2
  693. package/dist/utils/zod-to-json-schema/parsers/set.d.ts.map +1 -1
  694. package/dist/utils/zod-to-json-schema/parsers/string.d.cts +1 -2
  695. package/dist/utils/zod-to-json-schema/parsers/string.d.cts.map +1 -1
  696. package/dist/utils/zod-to-json-schema/parsers/string.d.ts +1 -2
  697. package/dist/utils/zod-to-json-schema/parsers/string.d.ts.map +1 -1
  698. package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts +1 -2
  699. package/dist/utils/zod-to-json-schema/parsers/tuple.d.cts.map +1 -1
  700. package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts +1 -2
  701. package/dist/utils/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
  702. package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts +1 -2
  703. package/dist/utils/zod-to-json-schema/parsers/undefined.d.cts.map +1 -1
  704. package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts +1 -2
  705. package/dist/utils/zod-to-json-schema/parsers/undefined.d.ts.map +1 -1
  706. package/dist/utils/zod-to-json-schema/parsers/union.d.cts +2 -3
  707. package/dist/utils/zod-to-json-schema/parsers/union.d.cts.map +1 -1
  708. package/dist/utils/zod-to-json-schema/parsers/union.d.ts +2 -3
  709. package/dist/utils/zod-to-json-schema/parsers/union.d.ts.map +1 -1
  710. package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts +1 -2
  711. package/dist/utils/zod-to-json-schema/parsers/unknown.d.cts.map +1 -1
  712. package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts +1 -2
  713. package/dist/utils/zod-to-json-schema/parsers/unknown.d.ts.map +1 -1
  714. package/dist/vectorstores.d.cts +8 -9
  715. package/dist/vectorstores.d.cts.map +1 -1
  716. package/dist/vectorstores.d.ts +8 -9
  717. package/dist/vectorstores.d.ts.map +1 -1
  718. package/package.json +3 -3
@@ -5,13 +5,13 @@ import "../messages/index.cjs";
5
5
  import { BaseOutputParser, FormatInstructionsOptions } from "./base.cjs";
6
6
  import { z } from "zod/v3";
7
7
  //#region src/output_parsers/structured.d.ts
8
- type JsonMarkdownStructuredOutputParserInput = {
8
+ export type JsonMarkdownStructuredOutputParserInput = {
9
9
  interpolationDepth?: number;
10
10
  };
11
- interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
11
+ export interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
12
12
  interpolationDepth?: number;
13
13
  }
14
- declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
14
+ export declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
15
15
  schema: T;
16
16
  static lc_name(): string;
17
17
  lc_namespace: string[];
@@ -57,7 +57,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
57
57
  * A specific type of `StructuredOutputParser` that parses JSON data
58
58
  * formatted as a markdown code snippet.
59
59
  */
60
- declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
60
+ export declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
61
61
  static lc_name(): string;
62
62
  getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;
63
63
  private _schemaToInstruction;
@@ -72,14 +72,14 @@ declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> exten
72
72
  [x: string]: string;
73
73
  }>>;
74
74
  }
75
- interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
75
+ export interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
76
76
  inputSchema: T;
77
77
  }
78
78
  /**
79
79
  * A type of `StructuredOutputParser` that handles asymmetric input and
80
80
  * output schemas.
81
81
  */
82
- declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
82
+ export declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
83
83
  private structuredInputParser;
84
84
  constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);
85
85
  /**
@@ -93,5 +93,4 @@ declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType
93
93
  getFormatInstructions(): string;
94
94
  }
95
95
  //#endregion
96
- export { AsymmetricStructuredOutputParser, AsymmetricStructuredOutputParserFields, JsonMarkdownFormatInstructionsOptions, JsonMarkdownStructuredOutputParser, JsonMarkdownStructuredOutputParserInput, StructuredOutputParser };
97
96
  //# sourceMappingURL=structured.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"structured.d.cts","names":[],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;KAsBY;EACV;;UAGe,8CAA8C;EAC7D;;cAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2B;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;cAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;UAeG,uCACf,UAAU;EAEV,aAAa;;;;;;uBAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
1
+ {"version":3,"file":"structured.d.cts","names":["_$___load_serializable_js0.SerializedNotImplemented"],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;YAsBY;EACV;;iBAGe,8CAA8C;EAC7D;;qBAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2BA;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;qBAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;iBAeG,uCACf,UAAU;EAEV,aAAa;;;;;;8BAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
@@ -5,13 +5,13 @@ import "../messages/index.js";
5
5
  import { BaseOutputParser, FormatInstructionsOptions } from "./base.js";
6
6
  import { z } from "zod/v3";
7
7
  //#region src/output_parsers/structured.d.ts
8
- type JsonMarkdownStructuredOutputParserInput = {
8
+ export type JsonMarkdownStructuredOutputParserInput = {
9
9
  interpolationDepth?: number;
10
10
  };
11
- interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
11
+ export interface JsonMarkdownFormatInstructionsOptions extends FormatInstructionsOptions {
12
12
  interpolationDepth?: number;
13
13
  }
14
- declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
14
+ export declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutputParser<InferInteropZodOutput<T>> {
15
15
  schema: T;
16
16
  static lc_name(): string;
17
17
  lc_namespace: string[];
@@ -57,7 +57,7 @@ declare class StructuredOutputParser<T extends InteropZodType> extends BaseOutpu
57
57
  * A specific type of `StructuredOutputParser` that parses JSON data
58
58
  * formatted as a markdown code snippet.
59
59
  */
60
- declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
60
+ export declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> extends StructuredOutputParser<T> {
61
61
  static lc_name(): string;
62
62
  getFormatInstructions(options?: JsonMarkdownFormatInstructionsOptions): string;
63
63
  private _schemaToInstruction;
@@ -72,14 +72,14 @@ declare class JsonMarkdownStructuredOutputParser<T extends InteropZodType> exten
72
72
  [x: string]: string;
73
73
  }>>;
74
74
  }
75
- interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
75
+ export interface AsymmetricStructuredOutputParserFields<T extends InteropZodType> {
76
76
  inputSchema: T;
77
77
  }
78
78
  /**
79
79
  * A type of `StructuredOutputParser` that handles asymmetric input and
80
80
  * output schemas.
81
81
  */
82
- declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
82
+ export declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType, Y = unknown> extends BaseOutputParser<Y> {
83
83
  private structuredInputParser;
84
84
  constructor({ inputSchema }: AsymmetricStructuredOutputParserFields<T>);
85
85
  /**
@@ -93,5 +93,4 @@ declare abstract class AsymmetricStructuredOutputParser<T extends InteropZodType
93
93
  getFormatInstructions(): string;
94
94
  }
95
95
  //#endregion
96
- export { AsymmetricStructuredOutputParser, AsymmetricStructuredOutputParserFields, JsonMarkdownFormatInstructionsOptions, JsonMarkdownStructuredOutputParser, JsonMarkdownStructuredOutputParserInput, StructuredOutputParser };
97
96
  //# sourceMappingURL=structured.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"structured.d.ts","names":[],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;KAsBY;EACV;;UAGe,8CAA8C;EAC7D;;cAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2B;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;cAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;UAeG,uCACf,UAAU;EAEV,aAAa;;;;;;uBAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
1
+ {"version":3,"file":"structured.d.ts","names":["_$___load_serializable_js0.SerializedNotImplemented"],"sources":["../../src/output_parsers/structured.ts"],"mappings":";;;;;;;YAsBY;EACV;;iBAGe,8CAA8C;EAC7D;;qBAGW,uBACX,UAAU,wBACF,iBAAiB,sBAAsB;EAW5B,QAAQ;SAVpB;EAIP;EAEA,UAI2BA;EAA3B,YAAmB,QAAQ;;;;;;SASpB,cAAc,UAAU,gBAAgB,QAAQ,IAAC,uBAAA;;;;;;;SAUjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,uBAAA,EAAA;;;;;;;;;;;;;EAoBZ;;;;;;EAuBM,MAAM,eAAe,QAAQ,sBAAsB;YA4BtC,qBAAqB,SAAS;;;;;;qBAStC,mCACX,UAAU,wBACF,uBAAuB;SACxB;EAIP,sBACE,UAAU;UAcJ;SAmED,cAAc,UAAU,gBAAgB,QAAQ,IAAC,mCAAA;SAIjD,yBAAyB;KAAa;KAC3C,SAAS,IAAC,mCAAA,EAAA;;;;;;;;iBAeG,uCACf,UAAU;EAEV,aAAa;;;;;;8BAOO,iCACpB,UAAU,gBACV,qBACQ,iBAAiB;UACjB;EAER,cAAc,eAAe,uCAAuC;;;;;;;WAa3D,gBAAgB,OAAO,sBAAsB,KAAK,QAAQ;EAE7D,MAAM,eAAe,QAAQ;EAcnC"}
@@ -6,7 +6,7 @@ import { BaseOutputParser } from "./base.cjs";
6
6
  /**
7
7
  * Class to parse the output of an LLM call that also allows streaming inputs.
8
8
  */
9
- declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
9
+ export declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
10
10
  _transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<T>;
11
11
  /**
12
12
  * Transforms an asynchronous generator of input into an asynchronous
@@ -17,7 +17,7 @@ declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutput
17
17
  */
18
18
  transform(inputGenerator: AsyncGenerator<string | BaseMessage>, options: BaseCallbackConfig): AsyncGenerator<T>;
19
19
  }
20
- type BaseCumulativeTransformOutputParserInput = {
20
+ export type BaseCumulativeTransformOutputParserInput = {
21
21
  diff?: boolean;
22
22
  };
23
23
  /**
@@ -25,7 +25,7 @@ type BaseCumulativeTransformOutputParserInput = {
25
25
  * extends the `BaseTransformOutputParser` class and provides a method for
26
26
  * converting parsed outputs into a diff format.
27
27
  */
28
- declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
28
+ export declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
29
29
  protected diff: boolean;
30
30
  constructor(fields?: BaseCumulativeTransformOutputParserInput);
31
31
  protected abstract _diff(prev: any | undefined, next: any): any;
@@ -34,5 +34,4 @@ declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends
34
34
  getFormatInstructions(): string;
35
35
  }
36
36
  //#endregion
37
- export { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput, BaseTransformOutputParser };
38
37
  //# sourceMappingURL=transform.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.cts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;uBAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;KAYR;EAA6C;;;;;;;uBAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
1
+ {"version":3,"file":"transform.d.cts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;8BAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;YAYR;EAA6C;;;;;;;8BAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
@@ -6,7 +6,7 @@ import { BaseOutputParser } from "./base.js";
6
6
  /**
7
7
  * Class to parse the output of an LLM call that also allows streaming inputs.
8
8
  */
9
- declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
9
+ export declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutputParser<T> {
10
10
  _transform(inputGenerator: AsyncGenerator<string | BaseMessage>): AsyncGenerator<T>;
11
11
  /**
12
12
  * Transforms an asynchronous generator of input into an asynchronous
@@ -17,7 +17,7 @@ declare abstract class BaseTransformOutputParser<T = unknown> extends BaseOutput
17
17
  */
18
18
  transform(inputGenerator: AsyncGenerator<string | BaseMessage>, options: BaseCallbackConfig): AsyncGenerator<T>;
19
19
  }
20
- type BaseCumulativeTransformOutputParserInput = {
20
+ export type BaseCumulativeTransformOutputParserInput = {
21
21
  diff?: boolean;
22
22
  };
23
23
  /**
@@ -25,7 +25,7 @@ type BaseCumulativeTransformOutputParserInput = {
25
25
  * extends the `BaseTransformOutputParser` class and provides a method for
26
26
  * converting parsed outputs into a diff format.
27
27
  */
28
- declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
28
+ export declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends BaseTransformOutputParser<T> {
29
29
  protected diff: boolean;
30
30
  constructor(fields?: BaseCumulativeTransformOutputParserInput);
31
31
  protected abstract _diff(prev: any | undefined, next: any): any;
@@ -34,5 +34,4 @@ declare abstract class BaseCumulativeTransformOutputParser<T = unknown> extends
34
34
  getFormatInstructions(): string;
35
35
  }
36
36
  //#endregion
37
- export { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput, BaseTransformOutputParser };
38
37
  //# sourceMappingURL=transform.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;uBAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;KAYR;EAA6C;;;;;;;uBAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
1
+ {"version":3,"file":"transform.d.ts","names":[],"sources":["../../src/output_parsers/transform.ts"],"mappings":";;;;;;;;8BAmBsB,0BACpB,qBACQ,iBAAiB;EAClB,WACL,gBAAgB,wBAAwB,eACvC,eAAe;;;;;;;;EAsBX,UACL,gBAAgB,wBAAwB,cACxC,SAAS,qBACR,eAAe;;YAYR;EAA6C;;;;;;;8BAOnC,oCACpB,qBACQ,0BAA0B;YACxB;EAEV,YAAY,SAAS;qBAMF,MAAM,uBAAuB;WAEvC,mBACP,aAAa,eAAe,mBAC3B,QAAQ;EAEJ,WACL,gBAAgB,wBAAwB,eACvC,eAAe;EAkDlB"}
@@ -2,21 +2,21 @@ import { ChatGeneration, Generation } from "../outputs.cjs";
2
2
  import { Operation } from "../utils/fast-json-patch/src/core.cjs";
3
3
  import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "./transform.cjs";
4
4
  //#region src/output_parsers/xml.d.ts
5
- declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
6
- interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
5
+ export declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
6
+ export interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
7
7
  /**
8
8
  * Optional list of tags that the output should conform to.
9
9
  * Only used in formatting of the prompt.
10
10
  */
11
11
  tags?: string[];
12
12
  }
13
- type Content = string | undefined | Array<{
13
+ export type Content = string | undefined | Array<{
14
14
  [key: string]: Content;
15
15
  }>;
16
- type XMLResult = {
16
+ export type XMLResult = {
17
17
  [key: string]: Content;
18
18
  };
19
- declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
19
+ export declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
20
20
  tags?: string[];
21
21
  constructor(fields?: XMLOutputParserFields);
22
22
  static lc_name(): string;
@@ -27,7 +27,6 @@ declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLRes
27
27
  parse(text: string): Promise<XMLResult>;
28
28
  getFormatInstructions(): string;
29
29
  }
30
- declare function parseXMLMarkdown(s: string): XMLResult;
30
+ export declare function parseXMLMarkdown(s: string): XMLResult;
31
31
  //#endregion
32
- export { Content, XMLOutputParser, XMLOutputParserFields, XMLResult, XML_FORMAT_INSTRUCTIONS, parseXMLMarkdown };
33
32
  //# sourceMappingURL=xml.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"xml.d.cts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;cAQa;UAeI,8BAA8B;;;;;EAK7C;;KAGU,+BAA+B;GAAS,cAAc;;KAEtD;GACT,cAAc;;cAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;iBAsCc,iBAAiB,YAAY"}
1
+ {"version":3,"file":"xml.d.cts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;qBAQa;iBAeI,8BAA8B;;;;;EAK7C;;YAGU,+BAA+B;GAAS,cAAc;;YAEtD;GACT,cAAc;;qBAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;wBAsCc,iBAAiB,YAAY"}
@@ -2,21 +2,21 @@ import { ChatGeneration, Generation } from "../outputs.js";
2
2
  import { Operation } from "../utils/fast-json-patch/src/core.js";
3
3
  import { BaseCumulativeTransformOutputParser, BaseCumulativeTransformOutputParserInput } from "./transform.js";
4
4
  //#region src/output_parsers/xml.d.ts
5
- declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
6
- interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
5
+ export declare const XML_FORMAT_INSTRUCTIONS = "The output should be formatted as a XML file.\n1. Output should conform to the tags below.\n2. If tags are not given, make them on your own.\n3. Remember to always open and close all the tags.\n\nAs an example, for the tags [\"foo\", \"bar\", \"baz\"]:\n1. String \"<foo>\n <bar>\n <baz></baz>\n </bar>\n</foo>\" is a well-formatted instance of the schema.\n2. String \"<foo>\n <bar>\n </foo>\" is a badly-formatted instance.\n3. String \"<foo>\n <tag>\n </tag>\n</foo>\" is a badly-formatted instance.\n\nHere are the output tags:\n```\n{tags}\n```";
6
+ export interface XMLOutputParserFields extends BaseCumulativeTransformOutputParserInput {
7
7
  /**
8
8
  * Optional list of tags that the output should conform to.
9
9
  * Only used in formatting of the prompt.
10
10
  */
11
11
  tags?: string[];
12
12
  }
13
- type Content = string | undefined | Array<{
13
+ export type Content = string | undefined | Array<{
14
14
  [key: string]: Content;
15
15
  }>;
16
- type XMLResult = {
16
+ export type XMLResult = {
17
17
  [key: string]: Content;
18
18
  };
19
- declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
19
+ export declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLResult> {
20
20
  tags?: string[];
21
21
  constructor(fields?: XMLOutputParserFields);
22
22
  static lc_name(): string;
@@ -27,7 +27,6 @@ declare class XMLOutputParser extends BaseCumulativeTransformOutputParser<XMLRes
27
27
  parse(text: string): Promise<XMLResult>;
28
28
  getFormatInstructions(): string;
29
29
  }
30
- declare function parseXMLMarkdown(s: string): XMLResult;
30
+ export declare function parseXMLMarkdown(s: string): XMLResult;
31
31
  //#endregion
32
- export { Content, XMLOutputParser, XMLOutputParserFields, XMLResult, XML_FORMAT_INSTRUCTIONS, parseXMLMarkdown };
33
32
  //# sourceMappingURL=xml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"xml.d.ts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;cAQa;UAeI,8BAA8B;;;;;EAK7C;;KAGU,+BAA+B;GAAS,cAAc;;KAEtD;GACT,cAAc;;cAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;iBAsCc,iBAAiB,YAAY"}
1
+ {"version":3,"file":"xml.d.ts","names":[],"sources":["../../src/output_parsers/xml.ts"],"mappings":";;;;qBAQa;iBAeI,8BAA8B;;;;;EAK7C;;YAGU,+BAA+B;GAAS,cAAc;;YAEtD;GACT,cAAc;;qBAGJ,wBAAwB,oCAAoC;EACvE;EAEA,YAAY,SAAS;SAMd;EAIP;EAEA;YAEU,MACR,2BACA,gBACC;EAUG,mBACJ,aAAa,mBAAmB,eAC/B,QAAQ;EAIL,MAAM,eAAe,QAAQ;EAInC;;wBAsCc,iBAAiB,YAAY"}
@@ -1,10 +1,10 @@
1
1
  import { BaseMessage, BaseMessageChunk } from "./messages/base.cjs";
2
2
  //#region src/outputs.d.ts
3
- declare const RUN_KEY = "__run";
3
+ export declare const RUN_KEY = "__run";
4
4
  /**
5
5
  * Output of a single generation.
6
6
  */
7
- interface Generation {
7
+ export interface Generation {
8
8
  /**
9
9
  * Generated text output
10
10
  */
@@ -15,14 +15,14 @@ interface Generation {
15
15
  */
16
16
  generationInfo?: Record<string, any>;
17
17
  }
18
- type GenerationChunkFields = {
18
+ export type GenerationChunkFields = {
19
19
  text: string;
20
20
  generationInfo?: Record<string, any>;
21
21
  };
22
22
  /**
23
23
  * Chunk of a single generation. Used for streaming.
24
24
  */
25
- declare class GenerationChunk implements Generation {
25
+ export declare class GenerationChunk implements Generation {
26
26
  text: string;
27
27
  generationInfo?: Record<string, any>;
28
28
  constructor(fields: GenerationChunkFields);
@@ -31,7 +31,7 @@ declare class GenerationChunk implements Generation {
31
31
  /**
32
32
  * Contains all relevant information returned by an LLM.
33
33
  */
34
- type LLMResult = {
34
+ export type LLMResult = {
35
35
  /**
36
36
  * List of the things generated. Each input could have multiple {@link Generation | generations}, hence this is a list of lists.
37
37
  */
@@ -45,21 +45,20 @@ type LLMResult = {
45
45
  */
46
46
  [RUN_KEY]?: Record<string, any>;
47
47
  };
48
- interface ChatGeneration extends Generation {
48
+ export interface ChatGeneration extends Generation {
49
49
  message: BaseMessage;
50
50
  }
51
- type ChatGenerationChunkFields = GenerationChunkFields & {
51
+ export type ChatGenerationChunkFields = GenerationChunkFields & {
52
52
  message: BaseMessageChunk;
53
53
  };
54
- declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
54
+ export declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
55
55
  message: BaseMessageChunk;
56
56
  constructor(fields: ChatGenerationChunkFields);
57
57
  concat(chunk: ChatGenerationChunk): ChatGenerationChunk;
58
58
  }
59
- interface ChatResult {
59
+ export interface ChatResult {
60
60
  generations: ChatGeneration[];
61
61
  llmOutput?: Record<string, any>;
62
62
  }
63
63
  //#endregion
64
- export { ChatGeneration, ChatGenerationChunk, ChatGenerationChunkFields, ChatResult, Generation, GenerationChunk, GenerationChunkFields, LLMResult, RUN_KEY };
65
64
  //# sourceMappingURL=outputs.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputs.d.cts","names":[],"sources":["../src/outputs.ts"],"mappings":";;cAEa;;;;UAKI;;;;EAIf;;;;;EAMA,iBAAiB;;KAGP;EACV;EAEA,iBAAiB;;;;;cAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;KActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;UAGG,uBAAuB;EACtC,SAAS;;KAGC,4BAA4B;EACtC,SAAS;;cAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;UAYlB;EACf,aAAa;EAGb,YAAY"}
1
+ {"version":3,"file":"outputs.d.cts","names":[],"sources":["../src/outputs.ts"],"mappings":";;qBAEa;;;;iBAKI;;;;EAIf;;;;;EAMA,iBAAiB;;YAGP;EACV;EAEA,iBAAiB;;;;;qBAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;YActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;iBAGG,uBAAuB;EACtC,SAAS;;YAGC,4BAA4B;EACtC,SAAS;;qBAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;iBAYlB;EACf,aAAa;EAGb,YAAY"}
package/dist/outputs.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { BaseMessage, BaseMessageChunk } from "./messages/base.js";
2
2
  //#region src/outputs.d.ts
3
- declare const RUN_KEY = "__run";
3
+ export declare const RUN_KEY = "__run";
4
4
  /**
5
5
  * Output of a single generation.
6
6
  */
7
- interface Generation {
7
+ export interface Generation {
8
8
  /**
9
9
  * Generated text output
10
10
  */
@@ -15,14 +15,14 @@ interface Generation {
15
15
  */
16
16
  generationInfo?: Record<string, any>;
17
17
  }
18
- type GenerationChunkFields = {
18
+ export type GenerationChunkFields = {
19
19
  text: string;
20
20
  generationInfo?: Record<string, any>;
21
21
  };
22
22
  /**
23
23
  * Chunk of a single generation. Used for streaming.
24
24
  */
25
- declare class GenerationChunk implements Generation {
25
+ export declare class GenerationChunk implements Generation {
26
26
  text: string;
27
27
  generationInfo?: Record<string, any>;
28
28
  constructor(fields: GenerationChunkFields);
@@ -31,7 +31,7 @@ declare class GenerationChunk implements Generation {
31
31
  /**
32
32
  * Contains all relevant information returned by an LLM.
33
33
  */
34
- type LLMResult = {
34
+ export type LLMResult = {
35
35
  /**
36
36
  * List of the things generated. Each input could have multiple {@link Generation | generations}, hence this is a list of lists.
37
37
  */
@@ -45,21 +45,20 @@ type LLMResult = {
45
45
  */
46
46
  [RUN_KEY]?: Record<string, any>;
47
47
  };
48
- interface ChatGeneration extends Generation {
48
+ export interface ChatGeneration extends Generation {
49
49
  message: BaseMessage;
50
50
  }
51
- type ChatGenerationChunkFields = GenerationChunkFields & {
51
+ export type ChatGenerationChunkFields = GenerationChunkFields & {
52
52
  message: BaseMessageChunk;
53
53
  };
54
- declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
54
+ export declare class ChatGenerationChunk extends GenerationChunk implements ChatGeneration {
55
55
  message: BaseMessageChunk;
56
56
  constructor(fields: ChatGenerationChunkFields);
57
57
  concat(chunk: ChatGenerationChunk): ChatGenerationChunk;
58
58
  }
59
- interface ChatResult {
59
+ export interface ChatResult {
60
60
  generations: ChatGeneration[];
61
61
  llmOutput?: Record<string, any>;
62
62
  }
63
63
  //#endregion
64
- export { ChatGeneration, ChatGenerationChunk, ChatGenerationChunkFields, ChatResult, Generation, GenerationChunk, GenerationChunkFields, LLMResult, RUN_KEY };
65
64
  //# sourceMappingURL=outputs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"outputs.d.ts","names":[],"sources":["../src/outputs.ts"],"mappings":";;cAEa;;;;UAKI;;;;EAIf;;;;;EAMA,iBAAiB;;KAGP;EACV;EAEA,iBAAiB;;;;;cAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;KActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;UAGG,uBAAuB;EACtC,SAAS;;KAGC,4BAA4B;EACtC,SAAS;;cAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;UAYlB;EACf,aAAa;EAGb,YAAY"}
1
+ {"version":3,"file":"outputs.d.ts","names":[],"sources":["../src/outputs.ts"],"mappings":";;qBAEa;;;;iBAKI;;;;EAIf;;;;;EAMA,iBAAiB;;YAGP;EACV;EAEA,iBAAiB;;;;;qBAMN,2BAA2B;EAC/B;EAGA,iBAAiB;EAExB,YAAY,QAAQ;EAKpB,OAAO,OAAO,kBAAkB;;;;;YActB;;;;EAIV,aAAa;;;;EAKb,YAAY;;;;GAKX,WAAW;;iBAGG,uBAAuB;EACtC,SAAS;;YAGC,4BAA4B;EACtC,SAAS;;qBAGE,4BACH,2BACG;EAEJ,SAAS;EAEhB,YAAY,QAAQ;EAKpB,OAAO,OAAO,sBAAmB;;iBAYlB;EACf,aAAa;EAGb,YAAY"}
@@ -3,20 +3,20 @@ import { BaseMessage } from "./messages/base.cjs";
3
3
  import { HumanMessage } from "./messages/human.cjs";
4
4
  import { MessageStructure, MessageToolSet, MessageType } from "./messages/message.cjs";
5
5
  //#region src/prompt_values.d.ts
6
- interface BasePromptValueInterface extends Serializable {
6
+ export interface BasePromptValueInterface extends Serializable {
7
7
  toString(): string;
8
8
  toChatMessages(): BaseMessage[];
9
9
  }
10
- interface StringPromptValueInterface extends BasePromptValueInterface {
10
+ export interface StringPromptValueInterface extends BasePromptValueInterface {
11
11
  value: string;
12
12
  }
13
- interface ChatPromptValueInterface extends BasePromptValueInterface {
13
+ export interface ChatPromptValueInterface extends BasePromptValueInterface {
14
14
  messages: BaseMessage[];
15
15
  }
16
16
  /**
17
17
  * Base PromptValue class. All prompt values should extend this class.
18
18
  */
19
- declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
19
+ export declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
20
20
  abstract toString(): string;
21
21
  abstract toChatMessages(): BaseMessage[];
22
22
  }
@@ -24,7 +24,7 @@ declare abstract class BasePromptValue extends Serializable implements BasePromp
24
24
  * Represents a prompt value as a string. It extends the BasePromptValue
25
25
  * class and overrides the toString and toChatMessages methods.
26
26
  */
27
- declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
27
+ export declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
28
28
  static lc_name(): string;
29
29
  lc_namespace: string[];
30
30
  lc_serializable: boolean;
@@ -36,14 +36,14 @@ declare class StringPromptValue extends BasePromptValue implements StringPromptV
36
36
  /**
37
37
  * Interface for the fields of a ChatPromptValue.
38
38
  */
39
- interface ChatPromptValueFields {
39
+ export interface ChatPromptValueFields {
40
40
  messages: BaseMessage[];
41
41
  }
42
42
  /**
43
43
  * Class that represents a chat prompt value. It extends the
44
44
  * BasePromptValue and includes an array of BaseMessage instances.
45
45
  */
46
- declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
46
+ export declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
47
47
  lc_namespace: string[];
48
48
  lc_serializable: boolean;
49
49
  static lc_name(): string;
@@ -53,20 +53,20 @@ declare class ChatPromptValue extends BasePromptValue implements ChatPromptValue
53
53
  toString(): string;
54
54
  toChatMessages(): BaseMessage<MessageStructure<MessageToolSet>, MessageType>[];
55
55
  }
56
- type ImageContent = {
56
+ export type ImageContent = {
57
57
  /** Specifies the detail level of the image. */
58
58
  detail?: "auto" | "low" | "high";
59
59
  /** Either a URL of the image or the base64 encoded image data. */
60
60
  url: string;
61
61
  };
62
- interface ImagePromptValueFields {
62
+ export interface ImagePromptValueFields {
63
63
  imageUrl: ImageContent;
64
64
  }
65
65
  /**
66
66
  * Class that represents an image prompt value. It extends the
67
67
  * BasePromptValue and includes an ImageURL instance.
68
68
  */
69
- declare class ImagePromptValue extends BasePromptValue {
69
+ export declare class ImagePromptValue extends BasePromptValue {
70
70
  lc_namespace: string[];
71
71
  lc_serializable: boolean;
72
72
  static lc_name(): string;
@@ -79,5 +79,4 @@ declare class ImagePromptValue extends BasePromptValue {
79
79
  toChatMessages(): HumanMessage<MessageStructure<MessageToolSet>>[];
80
80
  }
81
81
  //#endregion
82
- export { BasePromptValue, BasePromptValueInterface, ChatPromptValue, ChatPromptValueFields, ChatPromptValueInterface, ImageContent, ImagePromptValue, ImagePromptValueFields, StringPromptValue, StringPromptValueInterface };
83
82
  //# sourceMappingURL=prompt_values.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt_values.d.cts","names":[],"sources":["../src/prompt_values.ts"],"mappings":";;;;;UAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;UAGH,mCAAmC;EAClD;;UAGe,iCAAiC;EAChD,UAAU;;;;;uBAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;cAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAA,iBAvBH;;;;;UA+BI;EACf,UAAU;;;;;;cAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAA,iBAhBM,iBAgBN;;KAKJ;;EAEV;;EAGA;;UAGe;EACf,UAAU;;;;;;cAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAA,iBAhBM"}
1
+ {"version":3,"file":"prompt_values.d.cts","names":["_$__messages_message_js0.MessageToolSet","_$__messages_message_js0.MessageStructure","_$__messages_message_js0.MessageType"],"sources":["../src/prompt_values.ts"],"mappings":";;;;;iBAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;iBAGH,mCAAmC;EAClD;;iBAGe,iCAAiC;EAChD,UAAU;;;;;8BAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;qBAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAAC,iBAvBHD;;;;;iBA+BI;EACf,UAAU;;;;;;qBAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAAC,iBAhBMD,iBAgBNE;;YAKJ;;EAEV;;EAGA;;iBAGe;EACf,UAAU;;;;;;qBAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAAD,iBAhBMD"}
@@ -3,20 +3,20 @@ import { BaseMessage } from "./messages/base.js";
3
3
  import { HumanMessage } from "./messages/human.js";
4
4
  import { MessageStructure, MessageToolSet, MessageType } from "./messages/message.js";
5
5
  //#region src/prompt_values.d.ts
6
- interface BasePromptValueInterface extends Serializable {
6
+ export interface BasePromptValueInterface extends Serializable {
7
7
  toString(): string;
8
8
  toChatMessages(): BaseMessage[];
9
9
  }
10
- interface StringPromptValueInterface extends BasePromptValueInterface {
10
+ export interface StringPromptValueInterface extends BasePromptValueInterface {
11
11
  value: string;
12
12
  }
13
- interface ChatPromptValueInterface extends BasePromptValueInterface {
13
+ export interface ChatPromptValueInterface extends BasePromptValueInterface {
14
14
  messages: BaseMessage[];
15
15
  }
16
16
  /**
17
17
  * Base PromptValue class. All prompt values should extend this class.
18
18
  */
19
- declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
19
+ export declare abstract class BasePromptValue extends Serializable implements BasePromptValueInterface {
20
20
  abstract toString(): string;
21
21
  abstract toChatMessages(): BaseMessage[];
22
22
  }
@@ -24,7 +24,7 @@ declare abstract class BasePromptValue extends Serializable implements BasePromp
24
24
  * Represents a prompt value as a string. It extends the BasePromptValue
25
25
  * class and overrides the toString and toChatMessages methods.
26
26
  */
27
- declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
27
+ export declare class StringPromptValue extends BasePromptValue implements StringPromptValueInterface {
28
28
  static lc_name(): string;
29
29
  lc_namespace: string[];
30
30
  lc_serializable: boolean;
@@ -36,14 +36,14 @@ declare class StringPromptValue extends BasePromptValue implements StringPromptV
36
36
  /**
37
37
  * Interface for the fields of a ChatPromptValue.
38
38
  */
39
- interface ChatPromptValueFields {
39
+ export interface ChatPromptValueFields {
40
40
  messages: BaseMessage[];
41
41
  }
42
42
  /**
43
43
  * Class that represents a chat prompt value. It extends the
44
44
  * BasePromptValue and includes an array of BaseMessage instances.
45
45
  */
46
- declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
46
+ export declare class ChatPromptValue extends BasePromptValue implements ChatPromptValueInterface {
47
47
  lc_namespace: string[];
48
48
  lc_serializable: boolean;
49
49
  static lc_name(): string;
@@ -53,20 +53,20 @@ declare class ChatPromptValue extends BasePromptValue implements ChatPromptValue
53
53
  toString(): string;
54
54
  toChatMessages(): BaseMessage<MessageStructure<MessageToolSet>, MessageType>[];
55
55
  }
56
- type ImageContent = {
56
+ export type ImageContent = {
57
57
  /** Specifies the detail level of the image. */
58
58
  detail?: "auto" | "low" | "high";
59
59
  /** Either a URL of the image or the base64 encoded image data. */
60
60
  url: string;
61
61
  };
62
- interface ImagePromptValueFields {
62
+ export interface ImagePromptValueFields {
63
63
  imageUrl: ImageContent;
64
64
  }
65
65
  /**
66
66
  * Class that represents an image prompt value. It extends the
67
67
  * BasePromptValue and includes an ImageURL instance.
68
68
  */
69
- declare class ImagePromptValue extends BasePromptValue {
69
+ export declare class ImagePromptValue extends BasePromptValue {
70
70
  lc_namespace: string[];
71
71
  lc_serializable: boolean;
72
72
  static lc_name(): string;
@@ -79,5 +79,4 @@ declare class ImagePromptValue extends BasePromptValue {
79
79
  toChatMessages(): HumanMessage<MessageStructure<MessageToolSet>>[];
80
80
  }
81
81
  //#endregion
82
- export { BasePromptValue, BasePromptValueInterface, ChatPromptValue, ChatPromptValueFields, ChatPromptValueInterface, ImageContent, ImagePromptValue, ImagePromptValueFields, StringPromptValue, StringPromptValueInterface };
83
82
  //# sourceMappingURL=prompt_values.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompt_values.d.ts","names":[],"sources":["../src/prompt_values.ts"],"mappings":";;;;;UAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;UAGH,mCAAmC;EAClD;;UAGe,iCAAiC;EAChD,UAAU;;;;;uBAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;cAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAA,iBAvBH;;;;;UA+BI;EACf,UAAU;;;;;;cAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAA,iBAhBM,iBAgBN;;KAKJ;;EAEV;;EAGA;;UAGe;EACf,UAAU;;;;;;cAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAA,iBAhBM"}
1
+ {"version":3,"file":"prompt_values.d.ts","names":["_$__messages_message_js0.MessageToolSet","_$__messages_message_js0.MessageStructure","_$__messages_message_js0.MessageType"],"sources":["../src/prompt_values.ts"],"mappings":";;;;;iBAKiB,iCAAiC;EAChD;EAEA,kBAAkB;;iBAGH,mCAAmC;EAClD;;iBAGe,iCAAiC;EAChD,UAAU;;;;;8BAMU,wBACZ,wBACG;WAEF;WAEA,kBAAkB;;;;;;qBAOhB,0BACH,2BACG;SAEJ;EAIP;EAEA;EAEA;EAEA,YAAY;EAKZ;EAIA,kBAAc,aAAAC,iBAvBHD;;;;;iBA+BI;EACf,UAAU;;;;;;qBAOC,wBACH,2BACG;EAEX;EAEA;SAEO;EAIP,UAAU;EAEV,YAAY,UAAU;EAEtB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,YAAAC,iBAhBMD,iBAgBNE;;YAKJ;;EAEV;;EAGA;;iBAGe;EACf,UAAU;;;;;;qBAOC,yBAAyB;EACpC;EAEA;SAEO;EAIP,UAAU;;EAGV;EAEA,YAAY,QAAQ;EAEpB,YAAY,QAAQ;EAYpB;EAIA,kBAAc,aAAAD,iBAhBMD"}
@@ -6,12 +6,12 @@ import { Runnable } from "../runnables/base.cjs";
6
6
  import { BaseOutputParser } from "../output_parsers/base.cjs";
7
7
  import "../output_parsers/index.cjs";
8
8
  //#region src/prompts/base.d.ts
9
- type TypedPromptInputValues<RunInput> = InputValues<StringWithAutocomplete<Extract<keyof RunInput, string>>>;
10
- type Example = Record<string, string>;
9
+ export type TypedPromptInputValues<RunInput> = InputValues<StringWithAutocomplete<Extract<keyof RunInput, string>>>;
10
+ export type Example = Record<string, string>;
11
11
  /**
12
12
  * Input common to all prompt templates.
13
13
  */
14
- interface BasePromptTemplateInput<InputVariables extends InputValues = any, PartialVariableName extends string = any> {
14
+ export interface BasePromptTemplateInput<InputVariables extends InputValues = any, PartialVariableName extends string = any> {
15
15
  /**
16
16
  * A list of variable names the prompt template expects
17
17
  */
@@ -27,7 +27,7 @@ interface BasePromptTemplateInput<InputVariables extends InputValues = any, Part
27
27
  * Base class for prompt templates. Exposes a format method that returns a
28
28
  * string prompt given a set of input values.
29
29
  */
30
- declare abstract class BasePromptTemplate<RunInput extends InputValues = any, RunOutput extends BasePromptValueInterface = BasePromptValueInterface, PartialVariableName extends string = any> extends Runnable<RunInput, RunOutput> implements BasePromptTemplateInput {
30
+ export declare abstract class BasePromptTemplate<RunInput extends InputValues = any, RunOutput extends BasePromptValueInterface = BasePromptValueInterface, PartialVariableName extends string = any> extends Runnable<RunInput, RunOutput> implements BasePromptTemplateInput {
31
31
  PromptValueReturnType: RunOutput;
32
32
  lc_serializable: boolean;
33
33
  lc_namespace: string[];
@@ -80,5 +80,4 @@ declare abstract class BasePromptTemplate<RunInput extends InputValues = any, Ru
80
80
  abstract _getPromptType(): string;
81
81
  }
82
82
  //#endregion
83
- export { BasePromptTemplate, BasePromptTemplateInput, Example, TypedPromptInputValues };
84
83
  //# sourceMappingURL=base.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.cts","names":[],"sources":["../../src/prompts/base.ts"],"mappings":";;;;;;;;KAcY,uBAAuB,YAAY,YAC7C,uBAAuB,cAAc;KAG3B,UAAU;;;;UAKL,wBAEf,uBAAuB,mBAEvB;;;;EAKA,gBAAgB,MAAM,cAAc;;;;EAKpC,eAAe;;EAGf,mBAAmB,cAAc;;;;;;uBAOb,mBAEpB,iBAAiB,mBACjB,kBAAkB,2BAA2B,0BAE7C,kDAEQ,SAAS,UAAU,sBAChB;EAEH,uBAAuB;EAE/B;EAEA;MAEI,iBAAiB;EAMrB,gBAAgB,MAAM,cAAc;EAEpC,eAAe;EAEf,kBAAkB,cAAc;;;;EAKhC,WAAW;;EAGX;EAEA,YAAY,OAAO;WAWV,QACP,QAAQ,gBACP,QAAQ,mBAAmB,UAAU,WAAW;;;;;;EAO7C,6BACJ,eAAe,uBAAuB,YACrC,QACD,YAAY,cAAc,oBAAoB;;;;;;;EA0B1C,OACJ,OAAO,UACP,UAAU,qBACT,QAAQ;;;;;;;;;;;;WAwBF,OAAO,QAAQ,uBAAuB,YAAY;;;;;;WAOlD,kBACP,QAAQ,uBAAuB,YAC9B,QAAQ;;;;WAKF"}
1
+ {"version":3,"file":"base.d.cts","names":[],"sources":["../../src/prompts/base.ts"],"mappings":";;;;;;;;YAcY,uBAAuB,YAAY,YAC7C,uBAAuB,cAAc;YAG3B,UAAU;;;;iBAKL,wBAEf,uBAAuB,mBAEvB;;;;EAKA,gBAAgB,MAAM,cAAc;;;;EAKpC,eAAe;;EAGf,mBAAmB,cAAc;;;;;;8BAOb,mBAEpB,iBAAiB,mBACjB,kBAAkB,2BAA2B,0BAE7C,kDAEQ,SAAS,UAAU,sBAChB;EAEH,uBAAuB;EAE/B;EAEA;MAEI,iBAAiB;EAMrB,gBAAgB,MAAM,cAAc;EAEpC,eAAe;EAEf,kBAAkB,cAAc;;;;EAKhC,WAAW;;EAGX;EAEA,YAAY,OAAO;WAWV,QACP,QAAQ,gBACP,QAAQ,mBAAmB,UAAU,WAAW;;;;;;EAO7C,6BACJ,eAAe,uBAAuB,YACrC,QACD,YAAY,cAAc,oBAAoB;;;;;;;EA0B1C,OACJ,OAAO,UACP,UAAU,qBACT,QAAQ;;;;;;;;;;;;WAwBF,OAAO,QAAQ,uBAAuB,YAAY;;;;;;WAOlD,kBACP,QAAQ,uBAAuB,YAC9B,QAAQ;;;;WAKF"}