langgraph-ui-components 0.0.23 → 0.0.25

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 (942) hide show
  1. package/README.md +71 -25
  2. package/dist/_virtual/index.cjs.js +1 -1
  3. package/dist/_virtual/index.cjs12.js +1 -1
  4. package/dist/_virtual/index.cjs2.js +1 -1
  5. package/dist/_virtual/index.cjs3.js +1 -1
  6. package/dist/_virtual/index.cjs4.js +1 -1
  7. package/dist/_virtual/index.cjs5.js +1 -1
  8. package/dist/_virtual/index.cjs6.js +1 -1
  9. package/dist/_virtual/index.cjs7.js +1 -1
  10. package/dist/_virtual/index.cjs8.js +1 -1
  11. package/dist/_virtual/index.es.js +2 -5
  12. package/dist/_virtual/index.es12.js +5 -2
  13. package/dist/_virtual/index.es12.js.map +1 -1
  14. package/dist/_virtual/index.es2.js +2 -7
  15. package/dist/_virtual/index.es2.js.map +1 -1
  16. package/dist/_virtual/index.es3.js +7 -2
  17. package/dist/_virtual/index.es3.js.map +1 -1
  18. package/dist/_virtual/index.es4.js +3 -5
  19. package/dist/_virtual/index.es4.js.map +1 -1
  20. package/dist/_virtual/index.es5.js +4 -2
  21. package/dist/_virtual/index.es5.js.map +1 -1
  22. package/dist/_virtual/index.es6.js +2 -2
  23. package/dist/_virtual/index.es7.js +2 -2
  24. package/dist/_virtual/index.es8.js +2 -2
  25. package/dist/assets/langgraph-ui-components.css +1 -1
  26. package/dist/components/ChatBody.cjs.js +2 -2
  27. package/dist/components/ChatBody.cjs.js.map +1 -1
  28. package/dist/components/ChatBody.d.ts.map +1 -1
  29. package/dist/components/ChatBody.es.js +130 -116
  30. package/dist/components/ChatBody.es.js.map +1 -1
  31. package/dist/components/Thinking.cjs.js +1 -1
  32. package/dist/components/Thinking.cjs.js.map +1 -1
  33. package/dist/components/Thinking.d.ts.map +1 -1
  34. package/dist/components/Thinking.es.js +10 -13
  35. package/dist/components/Thinking.es.js.map +1 -1
  36. package/dist/components/messages/AgentMessage.cjs.js +1 -1
  37. package/dist/components/messages/AgentMessage.cjs.js.map +1 -1
  38. package/dist/components/messages/AgentMessage.d.ts.map +1 -1
  39. package/dist/components/messages/AgentMessage.es.js +60 -51
  40. package/dist/components/messages/AgentMessage.es.js.map +1 -1
  41. package/dist/components/sidebar/ChatInput.cjs.js +1 -1
  42. package/dist/components/sidebar/ChatInput.cjs.js.map +1 -1
  43. package/dist/components/sidebar/ChatInput.es.js +30 -30
  44. package/dist/components/sidebar/ChatInput.es.js.map +1 -1
  45. package/dist/components/ui/syntax-highlighter.cjs.js +1 -1
  46. package/dist/components/ui/syntax-highlighter.cjs.js.map +1 -1
  47. package/dist/components/ui/syntax-highlighter.es.js +1 -1
  48. package/dist/entries/components.cjs.js +1 -1
  49. package/dist/entries/components.d.ts.map +1 -1
  50. package/dist/entries/components.es.js +5 -4
  51. package/dist/entries/components.es.js.map +1 -1
  52. package/dist/entries/hooks.cjs.js +1 -1
  53. package/dist/entries/hooks.d.ts.map +1 -1
  54. package/dist/entries/hooks.es.js +6 -5
  55. package/dist/entries/hooks.es.js.map +1 -1
  56. package/dist/entries/providers.cjs.js +1 -1
  57. package/dist/entries/providers.d.ts.map +1 -1
  58. package/dist/entries/providers.es.js +19 -18
  59. package/dist/entries/providers.es.js.map +1 -1
  60. package/dist/index.cjs.js +1 -1
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.es.js +29 -28
  63. package/dist/index.es.js.map +1 -1
  64. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js +2 -0
  65. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.cjs.js.map +1 -0
  66. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js +12 -0
  67. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/_rolldown/runtime.es.js.map +1 -0
  68. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js +2 -0
  69. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js.map +1 -0
  70. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js +66 -0
  71. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js.map +1 -0
  72. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js +2 -0
  73. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js.map +1 -0
  74. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js +77 -89
  75. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js.map +1 -0
  76. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js +2 -0
  77. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js.map +1 -0
  78. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js +50 -54
  79. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js.map +1 -0
  80. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js +2 -0
  81. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js.map +1 -0
  82. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js +42 -0
  83. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js.map +1 -0
  84. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js.map +1 -0
  85. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js.map +1 -0
  86. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js +2 -0
  87. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.cjs.js.map +1 -0
  88. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js +77 -0
  89. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google.es.js.map +1 -0
  90. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js.map +1 -0
  91. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js.map +1 -0
  92. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js +2 -0
  93. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js.map +1 -0
  94. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js +11 -11
  95. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js.map +1 -0
  96. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js.map +1 -0
  97. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js.map +1 -0
  98. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js +2 -0
  99. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js.map +1 -0
  100. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js +23 -0
  101. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js.map +1 -0
  102. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js.map +1 -0
  103. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js.map +1 -0
  104. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js +2 -0
  105. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js.map +1 -0
  106. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js +81 -39
  107. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js.map +1 -0
  108. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js.map +1 -0
  109. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js +4 -4
  110. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js.map +1 -0
  111. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js.map +1 -0
  112. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js.map +1 -0
  113. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js +2 -0
  114. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js.map +1 -0
  115. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js +16 -0
  116. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js.map +1 -0
  117. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js +2 -0
  118. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js.map +1 -0
  119. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js +9 -0
  120. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js.map +1 -0
  121. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js.map +1 -0
  122. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js +1 -3
  123. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js.map +1 -0
  124. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js +2 -0
  125. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js.map +1 -0
  126. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js +230 -0
  127. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js.map +1 -0
  128. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js +3 -0
  129. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js.map +1 -0
  130. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js +7 -11
  131. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js.map +1 -0
  132. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js +3 -0
  133. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/json.cjs.js.map +1 -1
  134. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js +133 -0
  135. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/json.es.js.map +1 -1
  136. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js +2 -0
  137. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.cjs.js.map +1 -0
  138. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js +29 -0
  139. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/namespace.es.js.map +1 -0
  140. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js +5 -5
  141. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js.map +1 -0
  142. package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js +81 -90
  143. package/dist/node_modules/.pnpm/@langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js.map +1 -0
  144. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.cjs.js +1 -1
  145. package/dist/node_modules/.pnpm/ansi-styles@5.2.0/node_modules/ansi-styles/index.es.js +1 -1
  146. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js +1 -1
  147. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.cjs.js.map +1 -1
  148. package/dist/node_modules/.pnpm/camelcase@6.3.0/node_modules/camelcase/index.es.js +1 -1
  149. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.cjs.js +1 -1
  150. package/dist/node_modules/.pnpm/eventemitter3@4.0.7/node_modules/eventemitter3/index.es.js +1 -1
  151. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js +2 -0
  152. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js.map +1 -0
  153. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js +3 -0
  154. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js.map +1 -0
  155. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js +2 -0
  156. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js.map +1 -0
  157. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js +6 -0
  158. package/dist/node_modules/.pnpm/{langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js.map → langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js.map} +1 -1
  159. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js +2 -0
  160. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.cjs.js.map +1 -0
  161. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js +14 -0
  162. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fs.browser.es.js.map +1 -0
  163. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js +2 -0
  164. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.cjs.js.map +1 -0
  165. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js +3 -0
  166. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-queue.es.js.map +1 -0
  167. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js +2 -0
  168. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.cjs.js.map +1 -0
  169. package/dist/node_modules/.pnpm/{langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache.es.js → langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js} +53 -57
  170. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompt_cache/index.es.js.map +1 -0
  171. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js +2 -0
  172. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs.js.map +1 -0
  173. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js +22 -0
  174. package/dist/node_modules/.pnpm/langsmith@0.5.10_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/xxhash/xxhash.es.js.map +1 -0
  175. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.cjs.js +1 -1
  176. package/dist/node_modules/.pnpm/p-queue@6.6.2/node_modules/p-queue/dist/index.es.js +1 -1
  177. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.cjs.js +1 -1
  178. package/dist/node_modules/.pnpm/p-timeout@3.2.0/node_modules/p-timeout/index.es.js +1 -1
  179. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.cjs.js +1 -1
  180. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/cjs/styles/prism/index.es.js +1 -1
  181. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.cjs.js +1 -1
  182. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-languages/create-language-async-loader.es.js +1 -1
  183. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.cjs.js +1 -1
  184. package/dist/node_modules/.pnpm/react-syntax-highlighter@16.1.0_react@19.2.3/node_modules/react-syntax-highlighter/dist/esm/async-syntax-highlighter.es.js +1 -1
  185. package/dist/pages/Sidebar/sidebar.cjs.js +1 -1
  186. package/dist/pages/Sidebar/sidebar.cjs.js.map +1 -1
  187. package/dist/pages/Sidebar/sidebar.es.js +32 -32
  188. package/dist/pages/Sidebar/sidebar.es.js.map +1 -1
  189. package/dist/providers/ChatRuntime.es.js +4 -4
  190. package/dist/providers/Stream.cjs.js +1 -1
  191. package/dist/providers/Stream.cjs.js.map +1 -1
  192. package/dist/providers/Stream.d.ts.map +1 -1
  193. package/dist/providers/Stream.es.js +103 -86
  194. package/dist/providers/Stream.es.js.map +1 -1
  195. package/dist/styles.css +1 -1
  196. package/package.json +20 -7
  197. package/src/components/ChatBody.tsx +45 -26
  198. package/src/components/Thinking.tsx +0 -1
  199. package/src/components/messages/AgentMessage.tsx +27 -9
  200. package/src/components/sidebar/ChatInput.tsx +5 -5
  201. package/src/entries/components.ts +2 -0
  202. package/src/entries/hooks.ts +2 -0
  203. package/src/entries/providers.ts +2 -0
  204. package/src/index.css +3 -0
  205. package/src/index.ts +2 -0
  206. package/src/pages/Sidebar/sidebar.tsx +1 -1
  207. package/src/providers/Stream.tsx +41 -0
  208. package/dist/_virtual/index.cjs13.js +0 -2
  209. package/dist/_virtual/index.cjs13.js.map +0 -1
  210. package/dist/_virtual/index.es13.js +0 -8
  211. package/dist/_virtual/index.es13.js.map +0 -1
  212. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.cjs.js +0 -2
  213. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.cjs.js.map +0 -1
  214. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.es.js +0 -32
  215. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.es.js.map +0 -1
  216. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.cjs.js +0 -2
  217. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.cjs.js.map +0 -1
  218. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.es.js +0 -103
  219. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/dereference.es.js.map +0 -1
  220. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.cjs.js +0 -2
  221. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.cjs.js.map +0 -1
  222. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.es.js +0 -68
  223. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/format.es.js.map +0 -1
  224. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.cjs.js +0 -2
  225. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.cjs.js.map +0 -1
  226. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.es.js +0 -11
  227. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/pointer.es.js.map +0 -1
  228. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.cjs.js +0 -2
  229. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.cjs.js.map +0 -1
  230. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.es.js +0 -10
  231. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.es.js.map +0 -1
  232. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.cjs.js +0 -5
  233. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.cjs.js.map +0 -1
  234. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.es.js +0 -526
  235. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validate.es.js.map +0 -1
  236. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.cjs.js +0 -2
  237. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.cjs.js.map +0 -1
  238. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.es.js +0 -21
  239. package/dist/node_modules/.pnpm/@cfworker_json-schema@4.1.1/node_modules/@cfworker/json-schema/dist/esm/validator.es.js.map +0 -1
  240. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.cjs.js +0 -2
  241. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.cjs.js.map +0 -1
  242. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.es.js +0 -10
  243. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.es.js.map +0 -1
  244. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/base.cjs.js +0 -2
  245. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/base.cjs.js.map +0 -1
  246. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/base.es.js +0 -88
  247. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/base.es.js.map +0 -1
  248. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/manager.cjs.js +0 -2
  249. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/manager.cjs.js.map +0 -1
  250. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/manager.es.js +0 -376
  251. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/manager.es.js.map +0 -1
  252. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/promises.cjs.js +0 -2
  253. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/promises.cjs.js.map +0 -1
  254. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/promises.es.js +0 -13
  255. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/callbacks/promises.es.js.map +0 -1
  256. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js +0 -5
  257. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.cjs.js.map +0 -1
  258. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js +0 -10
  259. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/errors/index.es.js.map +0 -1
  260. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/map_keys.cjs.js +0 -2
  261. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/map_keys.cjs.js.map +0 -1
  262. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/map_keys.es.js +0 -15
  263. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/map_keys.es.js.map +0 -1
  264. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/serializable.cjs.js +0 -2
  265. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/serializable.cjs.js.map +0 -1
  266. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/serializable.es.js +0 -122
  267. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/serializable.es.js.map +0 -1
  268. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/validation.cjs.js +0 -2
  269. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/validation.cjs.js.map +0 -1
  270. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/validation.es.js +0 -36
  271. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/load/validation.es.js.map +0 -1
  272. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/ai.cjs.js +0 -4
  273. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/ai.cjs.js.map +0 -1
  274. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/ai.es.js +0 -201
  275. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/ai.es.js.map +0 -1
  276. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/base.cjs.js +0 -6
  277. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/base.cjs.js.map +0 -1
  278. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/base.es.js +0 -232
  279. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/base.es.js.map +0 -1
  280. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js +0 -2
  281. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs.js.map +0 -1
  282. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/anthropic.es.js.map +0 -1
  283. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js +0 -2
  284. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs.js.map +0 -1
  285. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.es.js.map +0 -1
  286. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js +0 -2
  287. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.cjs.js.map +0 -1
  288. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js +0 -64
  289. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/data.es.js.map +0 -1
  290. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js.map +0 -1
  291. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js.map +0 -1
  292. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js.map +0 -1
  293. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js.map +0 -1
  294. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js +0 -2
  295. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs.js.map +0 -1
  296. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.es.js.map +0 -1
  297. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js.map +0 -1
  298. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js.map +0 -1
  299. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js +0 -2
  300. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.cjs.js.map +0 -1
  301. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js +0 -27
  302. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/index.es.js.map +0 -1
  303. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js.map +0 -1
  304. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js.map +0 -1
  305. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js +0 -2
  306. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs.js.map +0 -1
  307. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/openai.es.js.map +0 -1
  308. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js.map +0 -1
  309. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/utils.es.js.map +0 -1
  310. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js.map +0 -1
  311. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js.map +0 -1
  312. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/chat.cjs.js +0 -2
  313. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/chat.cjs.js.map +0 -1
  314. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/chat.es.js +0 -70
  315. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/chat.es.js.map +0 -1
  316. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js +0 -2
  317. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.cjs.js.map +0 -1
  318. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js +0 -93
  319. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/data.es.js.map +0 -1
  320. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/index.cjs.js +0 -2
  321. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/index.cjs.js.map +0 -1
  322. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/index.es.js +0 -12
  323. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/index.es.js.map +0 -1
  324. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/multimodal.cjs.js +0 -2
  325. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/multimodal.cjs.js.map +0 -1
  326. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/multimodal.es.js +0 -11
  327. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/multimodal.es.js.map +0 -1
  328. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/tools.cjs.js +0 -2
  329. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/tools.cjs.js.map +0 -1
  330. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/tools.es.js +0 -12
  331. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/content/tools.es.js.map +0 -1
  332. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/format.cjs.js +0 -3
  333. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/format.cjs.js.map +0 -1
  334. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/format.es.js +0 -26
  335. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/format.es.js.map +0 -1
  336. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/function.cjs.js +0 -2
  337. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/function.cjs.js.map +0 -1
  338. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/function.es.js +0 -39
  339. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/function.es.js.map +0 -1
  340. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/human.cjs.js +0 -2
  341. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/human.cjs.js.map +0 -1
  342. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/human.es.js +0 -46
  343. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/human.es.js.map +0 -1
  344. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/index.cjs.js +0 -2
  345. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/index.cjs.js.map +0 -1
  346. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/index.es.js +0 -148
  347. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/index.es.js.map +0 -1
  348. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/message.cjs.js +0 -2
  349. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/message.cjs.js.map +0 -1
  350. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/message.es.js +0 -7
  351. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/message.es.js.map +0 -1
  352. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/metadata.cjs.js +0 -2
  353. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/metadata.cjs.js.map +0 -1
  354. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/metadata.es.js +0 -30
  355. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/metadata.es.js.map +0 -1
  356. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/modifier.cjs.js +0 -2
  357. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/modifier.cjs.js.map +0 -1
  358. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/modifier.es.js +0 -27
  359. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/modifier.es.js.map +0 -1
  360. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/system.cjs.js +0 -2
  361. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/system.cjs.js.map +0 -1
  362. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/system.es.js +0 -70
  363. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/system.es.js.map +0 -1
  364. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/tool.cjs.js +0 -2
  365. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/tool.cjs.js.map +0 -1
  366. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/tool.es.js +0 -137
  367. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/tool.es.js.map +0 -1
  368. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/transformers.cjs.js +0 -5
  369. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/transformers.cjs.js.map +0 -1
  370. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/transformers.es.js +0 -266
  371. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/transformers.es.js.map +0 -1
  372. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/utils.cjs.js +0 -5
  373. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/utils.cjs.js.map +0 -1
  374. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/utils.es.js +0 -210
  375. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/messages/utils.es.js.map +0 -1
  376. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/base.cjs.js +0 -2
  377. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/base.cjs.js.map +0 -1
  378. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/base.es.js +0 -72
  379. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/base.es.js.map +0 -1
  380. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/bytes.cjs.js +0 -2
  381. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/bytes.cjs.js.map +0 -1
  382. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/bytes.es.js +0 -23
  383. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/bytes.es.js.map +0 -1
  384. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/index.cjs.js +0 -2
  385. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/index.cjs.js.map +0 -1
  386. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/index.es.js +0 -59
  387. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/index.es.js.map +0 -1
  388. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/json.cjs.js +0 -2
  389. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/json.cjs.js.map +0 -1
  390. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/json.es.js +0 -46
  391. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/json.es.js.map +0 -1
  392. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/list.cjs.js +0 -14
  393. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/list.cjs.js.map +0 -1
  394. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/list.es.js +0 -146
  395. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/list.es.js.map +0 -1
  396. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/string.cjs.js +0 -2
  397. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/string.cjs.js.map +0 -1
  398. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/string.es.js +0 -53
  399. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/string.es.js.map +0 -1
  400. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/structured.cjs.js +0 -25
  401. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/structured.cjs.js.map +0 -1
  402. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/structured.es.js +0 -147
  403. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/structured.es.js.map +0 -1
  404. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/transform.cjs.js +0 -2
  405. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/transform.cjs.js.map +0 -1
  406. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/transform.es.js +0 -62
  407. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/transform.es.js.map +0 -1
  408. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/xml.cjs.js +0 -26
  409. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/xml.cjs.js.map +0 -1
  410. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/xml.es.js +0 -100
  411. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/output_parsers/xml.es.js.map +0 -1
  412. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/outputs.cjs.js +0 -2
  413. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/outputs.cjs.js.map +0 -1
  414. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/outputs.es.js +0 -46
  415. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/outputs.es.js.map +0 -1
  416. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/base.cjs.js +0 -3
  417. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/base.cjs.js.map +0 -1
  418. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/base.es.js +0 -1237
  419. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/base.es.js.map +0 -1
  420. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/branch.cjs.js +0 -2
  421. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/branch.cjs.js.map +0 -1
  422. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/branch.es.js +0 -99
  423. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/branch.es.js.map +0 -1
  424. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/config.cjs.js +0 -2
  425. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/config.cjs.js.map +0 -1
  426. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/config.es.js +0 -110
  427. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/config.es.js.map +0 -1
  428. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph.cjs.js +0 -2
  429. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph.cjs.js.map +0 -1
  430. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph.es.js +0 -184
  431. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph.es.js.map +0 -1
  432. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph_mermaid.cjs.js +0 -12
  433. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph_mermaid.cjs.js.map +0 -1
  434. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph_mermaid.es.js +0 -89
  435. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/graph_mermaid.es.js.map +0 -1
  436. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/history.cjs.js +0 -4
  437. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/history.cjs.js.map +0 -1
  438. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/history.es.js +0 -79
  439. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/history.es.js.map +0 -1
  440. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/index.cjs.js +0 -2
  441. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/index.cjs.js.map +0 -1
  442. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/index.es.js +0 -61
  443. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/index.es.js.map +0 -1
  444. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/iter.cjs.js +0 -2
  445. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/iter.cjs.js.map +0 -1
  446. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/iter.es.js +0 -33
  447. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/iter.es.js.map +0 -1
  448. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/passthrough.cjs.js +0 -2
  449. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/passthrough.cjs.js.map +0 -1
  450. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/passthrough.es.js +0 -65
  451. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/passthrough.es.js.map +0 -1
  452. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/router.cjs.js +0 -2
  453. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/router.cjs.js.map +0 -1
  454. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/router.es.js +0 -37
  455. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/router.es.js.map +0 -1
  456. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/utils.cjs.js +0 -2
  457. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/utils.cjs.js.map +0 -1
  458. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/utils.es.js +0 -26
  459. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/utils.es.js.map +0 -1
  460. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/wrappers.cjs.js +0 -7
  461. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/wrappers.cjs.js.map +0 -1
  462. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/wrappers.es.js +0 -17
  463. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/runnables/wrappers.es.js.map +0 -1
  464. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.cjs.js +0 -2
  465. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.cjs.js.map +0 -1
  466. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.es.js +0 -12
  467. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/context.es.js.map +0 -1
  468. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.cjs.js +0 -2
  469. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.cjs.js.map +0 -1
  470. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.es.js +0 -9
  471. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.es.js.map +0 -1
  472. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/index.cjs.js +0 -2
  473. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/index.cjs.js.map +0 -1
  474. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/index.es.js +0 -44
  475. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/async_local_storage/index.es.js.map +0 -1
  476. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/callbacks.cjs.js +0 -2
  477. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/callbacks.cjs.js.map +0 -1
  478. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/callbacks.es.js +0 -33
  479. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/callbacks.es.js.map +0 -1
  480. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/index.cjs.js +0 -2
  481. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/index.cjs.js.map +0 -1
  482. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/index.es.js +0 -16
  483. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/index.es.js.map +0 -1
  484. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/tracer.cjs.js +0 -2
  485. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/tracer.cjs.js.map +0 -1
  486. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/tracer.es.js +0 -15
  487. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/singletons/tracer.es.js.map +0 -1
  488. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tools/utils.cjs.js +0 -2
  489. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tools/utils.cjs.js.map +0 -1
  490. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tools/utils.es.js +0 -14
  491. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tools/utils.es.js.map +0 -1
  492. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/base.cjs.js +0 -4
  493. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/base.cjs.js.map +0 -1
  494. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/base.es.js +0 -347
  495. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/base.es.js.map +0 -1
  496. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js +0 -2
  497. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.cjs.js.map +0 -1
  498. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js +0 -187
  499. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/console.es.js.map +0 -1
  500. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/event_stream.cjs.js +0 -2
  501. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/event_stream.cjs.js.map +0 -1
  502. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/event_stream.es.js +0 -293
  503. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/event_stream.es.js.map +0 -1
  504. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/log_stream.cjs.js +0 -2
  505. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/log_stream.cjs.js.map +0 -1
  506. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/log_stream.es.js +0 -209
  507. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/log_stream.es.js.map +0 -1
  508. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/root_listener.cjs.js +0 -2
  509. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/root_listener.cjs.js.map +0 -1
  510. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/root_listener.es.js +0 -31
  511. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/root_listener.es.js.map +0 -1
  512. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/tracer_langchain.cjs.js +0 -2
  513. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/tracer_langchain.cjs.js.map +0 -1
  514. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/tracer_langchain.es.js +0 -94
  515. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/tracers/tracer_langchain.es.js.map +0 -1
  516. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/async_caller.cjs.js +0 -2
  517. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/async_caller.cjs.js.map +0 -1
  518. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/async_caller.es.js +0 -66
  519. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/async_caller.es.js.map +0 -1
  520. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/callbacks.cjs.js +0 -2
  521. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/callbacks.cjs.js.map +0 -1
  522. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/callbacks.es.js +0 -11
  523. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/callbacks.es.js.map +0 -1
  524. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/env.cjs.js +0 -2
  525. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/env.cjs.js.map +0 -1
  526. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/env.es.js +0 -42
  527. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/env.es.js.map +0 -1
  528. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js.map +0 -1
  529. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/index.es.js.map +0 -1
  530. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js +0 -2
  531. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs.js.map +0 -1
  532. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js +0 -236
  533. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.es.js.map +0 -1
  534. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.cjs.js +0 -2
  535. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.cjs.js.map +0 -1
  536. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.es.js +0 -54
  537. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.es.js.map +0 -1
  538. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js +0 -3
  539. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs.js.map +0 -1
  540. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.es.js.map +0 -1
  541. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/is-network-error/index.cjs.js +0 -2
  542. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/is-network-error/index.cjs.js.map +0 -1
  543. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/is-network-error/index.es.js +0 -20
  544. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/is-network-error/index.es.js.map +0 -1
  545. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.cjs.js +0 -5
  546. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json.es.js +0 -146
  547. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_patch.cjs.js +0 -2
  548. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_patch.cjs.js.map +0 -1
  549. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_patch.es.js +0 -15
  550. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_patch.es.js.map +0 -1
  551. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_schema.cjs.js +0 -2
  552. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_schema.cjs.js.map +0 -1
  553. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_schema.es.js +0 -50
  554. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/json_schema.es.js.map +0 -1
  555. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/p-retry/index.cjs.js +0 -2
  556. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/p-retry/index.cjs.js.map +0 -1
  557. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/p-retry/index.es.js +0 -96
  558. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/p-retry/index.es.js.map +0 -1
  559. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs.js.map +0 -1
  560. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/sax-js/sax.es.js.map +0 -1
  561. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/signal.cjs.js +0 -2
  562. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/signal.cjs.js.map +0 -1
  563. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/signal.es.js +0 -20
  564. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/signal.es.js.map +0 -1
  565. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/stream.cjs.js +0 -2
  566. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/stream.cjs.js.map +0 -1
  567. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/stream.es.js +0 -161
  568. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/stream.es.js.map +0 -1
  569. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/types/zod.cjs.js +0 -2
  570. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/types/zod.cjs.js.map +0 -1
  571. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/types/zod.es.js +0 -137
  572. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/types/zod.es.js.map +0 -1
  573. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.cjs.js +0 -2
  574. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.cjs.js.map +0 -1
  575. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.es.js +0 -33
  576. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.es.js.map +0 -1
  577. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.cjs.js +0 -2
  578. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.cjs.js.map +0 -1
  579. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.es.js +0 -27
  580. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.es.js.map +0 -1
  581. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.cjs.js +0 -2
  582. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.cjs.js.map +0 -1
  583. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.es.js +0 -14
  584. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.es.js.map +0 -1
  585. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.cjs.js +0 -2
  586. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.cjs.js.map +0 -1
  587. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.es.js +0 -9
  588. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.es.js.map +0 -1
  589. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.cjs.js +0 -2
  590. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.cjs.js.map +0 -1
  591. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.es.js +0 -42
  592. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.es.js.map +0 -1
  593. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.cjs.js +0 -2
  594. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.cjs.js.map +0 -1
  595. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.es.js +0 -14
  596. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.es.js.map +0 -1
  597. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.cjs.js +0 -2
  598. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.cjs.js.map +0 -1
  599. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.es.js +0 -14
  600. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.es.js.map +0 -1
  601. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.cjs.js +0 -2
  602. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.cjs.js.map +0 -1
  603. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.es.js +0 -24
  604. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.es.js.map +0 -1
  605. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.cjs.js +0 -2
  606. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.cjs.js.map +0 -1
  607. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.es.js +0 -7
  608. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.es.js.map +0 -1
  609. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.cjs.js +0 -2
  610. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.cjs.js.map +0 -1
  611. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.es.js +0 -8
  612. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.es.js.map +0 -1
  613. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.cjs.js +0 -2
  614. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.cjs.js.map +0 -1
  615. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.es.js +0 -6
  616. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.es.js.map +0 -1
  617. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.cjs.js +0 -2
  618. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.cjs.js.map +0 -1
  619. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.es.js +0 -40
  620. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.es.js.map +0 -1
  621. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.cjs.js +0 -2
  622. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.cjs.js.map +0 -1
  623. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.es.js +0 -11
  624. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.es.js.map +0 -1
  625. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.cjs.js +0 -2
  626. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.cjs.js.map +0 -1
  627. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.es.js +0 -9
  628. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.es.js.map +0 -1
  629. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.cjs.js +0 -2
  630. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.cjs.js.map +0 -1
  631. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.es.js +0 -10
  632. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.es.js.map +0 -1
  633. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.cjs.js +0 -2
  634. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.cjs.js.map +0 -1
  635. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.es.js +0 -40
  636. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.es.js.map +0 -1
  637. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.cjs.js +0 -2
  638. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.cjs.js.map +0 -1
  639. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.es.js +0 -14
  640. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.es.js.map +0 -1
  641. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.cjs.js +0 -2
  642. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.cjs.js.map +0 -1
  643. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.es.js +0 -37
  644. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.es.js.map +0 -1
  645. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.cjs.js +0 -2
  646. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.cjs.js.map +0 -1
  647. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.es.js +0 -11
  648. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.es.js.map +0 -1
  649. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.cjs.js +0 -2
  650. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.cjs.js.map +0 -1
  651. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.es.js +0 -11
  652. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.es.js.map +0 -1
  653. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.cjs.js +0 -2
  654. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.cjs.js.map +0 -1
  655. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.es.js +0 -10
  656. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.es.js.map +0 -1
  657. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.cjs.js +0 -2
  658. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.cjs.js.map +0 -1
  659. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.es.js +0 -41
  660. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.es.js.map +0 -1
  661. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.cjs.js +0 -2
  662. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.cjs.js.map +0 -1
  663. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.es.js +0 -24
  664. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.es.js.map +0 -1
  665. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.cjs.js +0 -2
  666. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.cjs.js.map +0 -1
  667. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.es.js +0 -55
  668. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.es.js.map +0 -1
  669. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.cjs.js +0 -2
  670. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.cjs.js.map +0 -1
  671. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.es.js +0 -18
  672. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.es.js.map +0 -1
  673. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.cjs.js +0 -2
  674. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.cjs.js.map +0 -1
  675. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.es.js +0 -25
  676. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.es.js.map +0 -1
  677. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.cjs.js +0 -2
  678. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.cjs.js.map +0 -1
  679. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.es.js +0 -8
  680. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.es.js.map +0 -1
  681. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.cjs.js +0 -2
  682. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.cjs.js.map +0 -1
  683. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.es.js +0 -6
  684. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.es.js.map +0 -1
  685. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.cjs.js +0 -2
  686. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.cjs.js.map +0 -1
  687. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.es.js +0 -55
  688. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.es.js.map +0 -1
  689. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.cjs.js +0 -2
  690. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.cjs.js.map +0 -1
  691. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.es.js +0 -17
  692. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.es.js.map +0 -1
  693. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.cjs.js +0 -6
  694. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.cjs.js.map +0 -1
  695. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.es.js +0 -199
  696. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.es.js.map +0 -1
  697. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.cjs.js +0 -2
  698. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.cjs.js.map +0 -1
  699. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.es.js +0 -35
  700. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.es.js.map +0 -1
  701. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.cjs.js +0 -2
  702. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.cjs.js.map +0 -1
  703. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.es.js +0 -8
  704. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.es.js.map +0 -1
  705. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.cjs.js +0 -2
  706. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.cjs.js.map +0 -1
  707. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.es.js +0 -62
  708. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.es.js.map +0 -1
  709. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.cjs.js +0 -2
  710. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.cjs.js.map +0 -1
  711. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.es.js +0 -8
  712. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.es.js.map +0 -1
  713. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.cjs.js +0 -2
  714. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.cjs.js.map +0 -1
  715. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.es.js +0 -110
  716. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.es.js.map +0 -1
  717. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.cjs.js +0 -2
  718. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.cjs.js.map +0 -1
  719. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.es.js +0 -32
  720. package/dist/node_modules/.pnpm/@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.es.js.map +0 -1
  721. package/dist/node_modules/.pnpm/decamelize@1.2.0/node_modules/decamelize/index.cjs.js +0 -2
  722. package/dist/node_modules/.pnpm/decamelize@1.2.0/node_modules/decamelize/index.cjs.js.map +0 -1
  723. package/dist/node_modules/.pnpm/decamelize@1.2.0/node_modules/decamelize/index.es.js +0 -12
  724. package/dist/node_modules/.pnpm/decamelize@1.2.0/node_modules/decamelize/index.es.js.map +0 -1
  725. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/client.cjs.js +0 -32
  726. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/client.cjs.js.map +0 -1
  727. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/client.es.js +0 -2737
  728. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/client.es.js.map +0 -1
  729. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/env.cjs.js +0 -2
  730. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/env.cjs.js.map +0 -1
  731. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/env.es.js +0 -6
  732. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/env.es.js.map +0 -1
  733. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/constants.cjs.js +0 -2
  734. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/constants.cjs.js.map +0 -1
  735. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/constants.es.js +0 -37
  736. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/constants.es.js.map +0 -1
  737. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/translator.cjs.js +0 -2
  738. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/translator.cjs.js.map +0 -1
  739. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/translator.es.js +0 -167
  740. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/experimental/otel/translator.es.js.map +0 -1
  741. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/index.cjs.js +0 -2
  742. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/index.cjs.js.map +0 -1
  743. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/index.es.js +0 -10
  744. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/index.es.js.map +0 -1
  745. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/run_trees.cjs.js +0 -2
  746. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/run_trees.cjs.js.map +0 -1
  747. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/run_trees.es.js +0 -683
  748. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/run_trees.es.js.map +0 -1
  749. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/constants.cjs.js +0 -2
  750. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/constants.cjs.js.map +0 -1
  751. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/constants.es.js +0 -6
  752. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/constants.es.js.map +0 -1
  753. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/fetch.cjs.js +0 -2
  754. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/fetch.cjs.js.map +0 -1
  755. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/fetch.es.js +0 -17
  756. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/fetch.es.js.map +0 -1
  757. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/otel.cjs.js +0 -2
  758. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/otel.cjs.js.map +0 -1
  759. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/otel.es.js +0 -88
  760. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/otel.es.js.map +0 -1
  761. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/traceable.cjs.js +0 -4
  762. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/traceable.cjs.js.map +0 -1
  763. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/traceable.es.js +0 -34
  764. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/singletons/traceable.es.js.map +0 -1
  765. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js +0 -2
  766. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.cjs.js.map +0 -1
  767. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js +0 -18
  768. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/_uuid.es.js.map +0 -1
  769. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/async_caller.cjs.js +0 -2
  770. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/async_caller.cjs.js.map +0 -1
  771. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/async_caller.es.js +0 -98
  772. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/async_caller.es.js.map +0 -1
  773. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/context_vars.cjs.js +0 -2
  774. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/context_vars.cjs.js.map +0 -1
  775. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/context_vars.es.js +0 -17
  776. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/context_vars.es.js.map +0 -1
  777. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/env.cjs.js +0 -2
  778. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/env.cjs.js.map +0 -1
  779. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/env.es.js +0 -107
  780. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/env.es.js.map +0 -1
  781. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/error.cjs.js +0 -2
  782. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/error.cjs.js.map +0 -1
  783. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/error.es.js +0 -73
  784. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/error.es.js.map +0 -1
  785. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs.js +0 -4
  786. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js +0 -114
  787. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/fast-safe-stringify/index.es.js.map +0 -1
  788. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/is-network-error/index.cjs.js +0 -2
  789. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/is-network-error/index.cjs.js.map +0 -1
  790. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/is-network-error/index.es.js +0 -31
  791. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/is-network-error/index.es.js.map +0 -1
  792. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/messages.cjs.js +0 -2
  793. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/messages.cjs.js.map +0 -1
  794. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/messages.es.js +0 -15
  795. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/messages.es.js.map +0 -1
  796. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-retry/index.cjs.js +0 -2
  797. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-retry/index.cjs.js.map +0 -1
  798. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-retry/index.es.js +0 -109
  799. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/p-retry/index.es.js.map +0 -1
  800. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/project.cjs.js +0 -2
  801. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/project.cjs.js.map +0 -1
  802. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/project.es.js +0 -7
  803. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/project.es.js.map +0 -1
  804. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts.cjs.js +0 -2
  805. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts.cjs.js.map +0 -1
  806. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts.es.js +0 -20
  807. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts.es.js.map +0 -1
  808. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache.cjs.js +0 -2
  809. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache.cjs.js.map +0 -1
  810. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache.es.js.map +0 -1
  811. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache_fs.browser.cjs.js +0 -2
  812. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache_fs.browser.cjs.js.map +0 -1
  813. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache_fs.browser.es.js +0 -11
  814. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/prompts_cache_fs.browser.es.js.map +0 -1
  815. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/warn.cjs.js +0 -2
  816. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/warn.cjs.js.map +0 -1
  817. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/warn.es.js +0 -8
  818. package/dist/node_modules/.pnpm/langsmith@0.4.6_openai@6.16.0_zod@4.3.5_/node_modules/langsmith/dist/utils/warn.es.js.map +0 -1
  819. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.cjs.js +0 -2
  820. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.cjs.js.map +0 -1
  821. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.es.js +0 -8
  822. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/native.es.js.map +0 -1
  823. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/parse.cjs.js +0 -2
  824. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/parse.cjs.js.map +0 -1
  825. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/parse.es.js +0 -11
  826. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/parse.es.js.map +0 -1
  827. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.cjs.js +0 -2
  828. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.cjs.js.map +0 -1
  829. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.es.js +0 -5
  830. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/regex.es.js.map +0 -1
  831. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.cjs.js +0 -2
  832. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.cjs.js.map +0 -1
  833. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.es.js +0 -10
  834. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/rng.es.js.map +0 -1
  835. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/sha1.cjs.js +0 -2
  836. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/sha1.cjs.js.map +0 -1
  837. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/sha1.es.js +0 -47
  838. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/sha1.es.js.map +0 -1
  839. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.cjs.js +0 -2
  840. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.cjs.js.map +0 -1
  841. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.es.js +0 -10
  842. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/stringify.es.js.map +0 -1
  843. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v35.cjs.js +0 -2
  844. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v35.cjs.js.map +0 -1
  845. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v35.es.js +0 -35
  846. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v35.es.js.map +0 -1
  847. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.cjs.js +0 -2
  848. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.cjs.js.map +0 -1
  849. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.es.js +0 -14
  850. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.es.js.map +0 -1
  851. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v5.cjs.js +0 -2
  852. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v5.cjs.js.map +0 -1
  853. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v5.es.js +0 -7
  854. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v5.es.js.map +0 -1
  855. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v7.cjs.js +0 -2
  856. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v7.cjs.js.map +0 -1
  857. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v7.es.js +0 -12
  858. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/v7.es.js.map +0 -1
  859. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.cjs.js +0 -2
  860. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.cjs.js.map +0 -1
  861. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.es.js +0 -8
  862. package/dist/node_modules/.pnpm/uuid@10.0.0/node_modules/uuid/dist/esm-browser/validate.es.js.map +0 -1
  863. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/ZodError.cjs.js +0 -2
  864. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/ZodError.cjs.js.map +0 -1
  865. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/ZodError.es.js +0 -88
  866. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/ZodError.es.js.map +0 -1
  867. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/errors.cjs.js +0 -2
  868. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/errors.cjs.js.map +0 -1
  869. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/errors.es.js +0 -10
  870. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/errors.es.js.map +0 -1
  871. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/errorUtil.cjs.js +0 -2
  872. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/errorUtil.cjs.js.map +0 -1
  873. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/errorUtil.es.js +0 -8
  874. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/errorUtil.es.js.map +0 -1
  875. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/parseUtil.cjs.js +0 -2
  876. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/parseUtil.cjs.js.map +0 -1
  877. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/parseUtil.es.js +0 -98
  878. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/parseUtil.es.js.map +0 -1
  879. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/util.cjs.js +0 -2
  880. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/util.cjs.js.map +0 -1
  881. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/util.es.js +0 -95
  882. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/helpers/util.es.js.map +0 -1
  883. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/locales/en.cjs.js +0 -2
  884. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/locales/en.cjs.js.map +0 -1
  885. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/locales/en.es.js +0 -62
  886. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/locales/en.es.js.map +0 -1
  887. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/types.cjs.js +0 -2
  888. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/types.cjs.js.map +0 -1
  889. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/types.es.js +0 -2337
  890. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/types.es.js.map +0 -1
  891. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.cjs.js +0 -2
  892. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.cjs.js.map +0 -1
  893. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.es.js +0 -13
  894. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/api.es.js.map +0 -1
  895. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.cjs.js +0 -2
  896. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.cjs.js.map +0 -1
  897. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.es.js +0 -50
  898. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/core.es.js.map +0 -1
  899. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.cjs.js +0 -2
  900. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.cjs.js.map +0 -1
  901. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.es.js +0 -19
  902. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/errors.es.js.map +0 -1
  903. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.cjs.js +0 -2
  904. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.cjs.js.map +0 -1
  905. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.es.js +0 -346
  906. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/json-schema-processors.es.js.map +0 -1
  907. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.cjs.js +0 -2
  908. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.cjs.js.map +0 -1
  909. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.es.js +0 -36
  910. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/parse.es.js.map +0 -1
  911. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.cjs.js +0 -2
  912. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.cjs.js.map +0 -1
  913. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.es.js +0 -41
  914. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/registries.es.js.map +0 -1
  915. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.cjs.js +0 -2
  916. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.cjs.js.map +0 -1
  917. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.es.js +0 -93
  918. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/schemas.es.js.map +0 -1
  919. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.cjs.js +0 -4
  920. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.cjs.js.map +0 -1
  921. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.es.js +0 -240
  922. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/to-json-schema.es.js.map +0 -1
  923. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.cjs.js +0 -2
  924. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.cjs.js.map +0 -1
  925. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.es.js +0 -64
  926. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/util.es.js.map +0 -1
  927. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.cjs.js +0 -2
  928. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.cjs.js.map +0 -1
  929. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.es.js +0 -9
  930. package/dist/node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/core/versions.es.js.map +0 -1
  931. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs.js +0 -0
  932. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/deepseek.es.js +0 -0
  933. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs.js +0 -0
  934. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/google_genai.es.js +0 -0
  935. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs.js +0 -0
  936. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/groq.es.js +0 -0
  937. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs.js +0 -0
  938. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/ollama.es.js +0 -0
  939. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs.js +0 -0
  940. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs.js +0 -0
  941. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/messages/block_translators/xai.es.js +0 -0
  942. /package/dist/node_modules/.pnpm/{@langchain_core@1.1.13_openai@6.16.0_zod@4.3.5_ → @langchain_core@1.1.33_openai@6.16.0_zod@4.3.5_}/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs.js +0 -0
@@ -1,2737 +0,0 @@
1
- import { LangSmithToOTELTranslator as Q } from "./experimental/otel/translator.es.js";
2
- import { getOTELTrace as W, getOTELContext as V, getDefaultOTLPTracerComponents as Y } from "./singletons/otel.es.js";
3
- import { AsyncCaller as k } from "./utils/async_caller.es.js";
4
- import { isLangChainMessage as M, convertLangChainMessageToExample as z } from "./utils/messages.es.js";
5
- import { getEnvironmentVariable as D, getLangSmithEnvironmentVariable as x, getOtelEnabled as Z, getLangSmithEnvVarsMetadata as J, getEnv as X, getRuntimeEnvironment as tt } from "./utils/env.es.js";
6
- import { __version__ as et } from "./index.es.js";
7
- import { assertUuid as m } from "./utils/_uuid.es.js";
8
- import { warnOnce as at } from "./utils/warn.es.js";
9
- import { parsePromptIdentifier as I } from "./utils/prompts.es.js";
10
- import { raiseForStatus as h, isLangSmithNotFoundError as N } from "./utils/error.es.js";
11
- import { Cache as it } from "./utils/prompts_cache.es.js";
12
- import { _getFetchImplementation as st, _globalFetchImplementationIsNodeFetch as nt } from "./singletons/fetch.es.js";
13
- import { serialize as v } from "./utils/fast-safe-stringify/index.es.js";
14
- import C from "../../../../uuid@10.0.0/node_modules/uuid/dist/esm-browser/v4.es.js";
15
- function F(w, t, e) {
16
- if (e)
17
- return w;
18
- const a = tt(), i = t ?? J(), s = w.extra ?? {}, n = s.metadata;
19
- return w.extra = {
20
- ...s,
21
- runtime: {
22
- ...a,
23
- ...s?.runtime
24
- },
25
- metadata: {
26
- ...i,
27
- ...i.revision_id || "revision_id" in w && w.revision_id ? {
28
- revision_id: ("revision_id" in w ? w.revision_id : void 0) ?? i.revision_id
29
- } : {},
30
- ...n
31
- }
32
- }, w;
33
- }
34
- const rt = (w) => {
35
- const t = w?.toString() ?? x("TRACING_SAMPLING_RATE");
36
- if (t === void 0)
37
- return;
38
- const e = parseFloat(t);
39
- if (e < 0 || e > 1)
40
- throw new Error(`LANGSMITH_TRACING_SAMPLING_RATE must be between 0 and 1 if set. Got: ${e}`);
41
- return e;
42
- }, ot = (w) => {
43
- const e = w.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0];
44
- return e === "localhost" || e === "127.0.0.1" || e === "::1";
45
- };
46
- async function ct(w) {
47
- const t = [];
48
- for await (const e of w)
49
- t.push(e);
50
- return t;
51
- }
52
- function B(w) {
53
- if (w !== void 0)
54
- return w.trim().replace(/^"(.*)"$/, "$1").replace(/^'(.*)'$/, "$1");
55
- }
56
- const lt = async (w) => {
57
- if (w?.status === 429) {
58
- const t = parseInt(w.headers.get("retry-after") ?? "10", 10) * 1e3;
59
- if (t > 0)
60
- return await new Promise((e) => setTimeout(e, t)), !0;
61
- }
62
- return !1;
63
- };
64
- function q(w) {
65
- return typeof w == "number" ? Number(w.toFixed(4)) : w;
66
- }
67
- const dt = 24 * 1024 * 1024, G = 1024 * 1024 * 1024, ut = 1e4, ht = 100, H = "https://api.smith.langchain.com";
68
- class pt {
69
- constructor(t) {
70
- Object.defineProperty(this, "items", {
71
- enumerable: !0,
72
- configurable: !0,
73
- writable: !0,
74
- value: []
75
- }), Object.defineProperty(this, "sizeBytes", {
76
- enumerable: !0,
77
- configurable: !0,
78
- writable: !0,
79
- value: 0
80
- }), Object.defineProperty(this, "maxSizeBytes", {
81
- enumerable: !0,
82
- configurable: !0,
83
- writable: !0,
84
- value: void 0
85
- }), this.maxSizeBytes = t ?? G;
86
- }
87
- peek() {
88
- return this.items[0];
89
- }
90
- push(t) {
91
- let e;
92
- const a = new Promise((s) => {
93
- e = s;
94
- }), i = v(t.item, `Serializing run with id: ${t.item.id}`).length;
95
- return this.sizeBytes + i > this.maxSizeBytes && this.items.length > 0 ? (console.warn(`AutoBatchQueue size limit (${this.maxSizeBytes} bytes) exceeded. Dropping run with id: ${t.item.id}. Current queue size: ${this.sizeBytes} bytes, attempted addition: ${i} bytes.`), e(), a) : (this.items.push({
96
- action: t.action,
97
- payload: t.item,
98
- otelContext: t.otelContext,
99
- apiKey: t.apiKey,
100
- apiUrl: t.apiUrl,
101
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
102
- itemPromiseResolve: e,
103
- itemPromise: a,
104
- size: i
105
- }), this.sizeBytes += i, a);
106
- }
107
- pop({ upToSizeBytes: t, upToSize: e }) {
108
- if (t < 1)
109
- throw new Error("Number of bytes to pop off may not be less than 1.");
110
- const a = [];
111
- let i = 0;
112
- for (; i + (this.peek()?.size ?? 0) < t && this.items.length > 0 && a.length < e; ) {
113
- const s = this.items.shift();
114
- s && (a.push(s), i += s.size, this.sizeBytes -= s.size);
115
- }
116
- if (a.length === 0 && this.items.length > 0) {
117
- const s = this.items.shift();
118
- a.push(s), i += s.size, this.sizeBytes -= s.size;
119
- }
120
- return [
121
- a.map((s) => ({
122
- action: s.action,
123
- item: s.payload,
124
- otelContext: s.otelContext,
125
- apiKey: s.apiKey,
126
- apiUrl: s.apiUrl,
127
- size: s.size
128
- })),
129
- () => a.forEach((s) => s.itemPromiseResolve())
130
- ];
131
- }
132
- }
133
- class L {
134
- get _fetch() {
135
- return this.fetchImplementation || st(this.debug);
136
- }
137
- constructor(t = {}) {
138
- Object.defineProperty(this, "apiKey", {
139
- enumerable: !0,
140
- configurable: !0,
141
- writable: !0,
142
- value: void 0
143
- }), Object.defineProperty(this, "apiUrl", {
144
- enumerable: !0,
145
- configurable: !0,
146
- writable: !0,
147
- value: void 0
148
- }), Object.defineProperty(this, "webUrl", {
149
- enumerable: !0,
150
- configurable: !0,
151
- writable: !0,
152
- value: void 0
153
- }), Object.defineProperty(this, "workspaceId", {
154
- enumerable: !0,
155
- configurable: !0,
156
- writable: !0,
157
- value: void 0
158
- }), Object.defineProperty(this, "caller", {
159
- enumerable: !0,
160
- configurable: !0,
161
- writable: !0,
162
- value: void 0
163
- }), Object.defineProperty(this, "batchIngestCaller", {
164
- enumerable: !0,
165
- configurable: !0,
166
- writable: !0,
167
- value: void 0
168
- }), Object.defineProperty(this, "timeout_ms", {
169
- enumerable: !0,
170
- configurable: !0,
171
- writable: !0,
172
- value: void 0
173
- }), Object.defineProperty(this, "_tenantId", {
174
- enumerable: !0,
175
- configurable: !0,
176
- writable: !0,
177
- value: null
178
- }), Object.defineProperty(this, "hideInputs", {
179
- enumerable: !0,
180
- configurable: !0,
181
- writable: !0,
182
- value: void 0
183
- }), Object.defineProperty(this, "hideOutputs", {
184
- enumerable: !0,
185
- configurable: !0,
186
- writable: !0,
187
- value: void 0
188
- }), Object.defineProperty(this, "omitTracedRuntimeInfo", {
189
- enumerable: !0,
190
- configurable: !0,
191
- writable: !0,
192
- value: void 0
193
- }), Object.defineProperty(this, "tracingSampleRate", {
194
- enumerable: !0,
195
- configurable: !0,
196
- writable: !0,
197
- value: void 0
198
- }), Object.defineProperty(this, "filteredPostUuids", {
199
- enumerable: !0,
200
- configurable: !0,
201
- writable: !0,
202
- value: /* @__PURE__ */ new Set()
203
- }), Object.defineProperty(this, "autoBatchTracing", {
204
- enumerable: !0,
205
- configurable: !0,
206
- writable: !0,
207
- value: !0
208
- }), Object.defineProperty(this, "autoBatchQueue", {
209
- enumerable: !0,
210
- configurable: !0,
211
- writable: !0,
212
- value: void 0
213
- }), Object.defineProperty(this, "autoBatchTimeout", {
214
- enumerable: !0,
215
- configurable: !0,
216
- writable: !0,
217
- value: void 0
218
- }), Object.defineProperty(this, "autoBatchAggregationDelayMs", {
219
- enumerable: !0,
220
- configurable: !0,
221
- writable: !0,
222
- value: 250
223
- }), Object.defineProperty(this, "batchSizeBytesLimit", {
224
- enumerable: !0,
225
- configurable: !0,
226
- writable: !0,
227
- value: void 0
228
- }), Object.defineProperty(this, "batchSizeLimit", {
229
- enumerable: !0,
230
- configurable: !0,
231
- writable: !0,
232
- value: void 0
233
- }), Object.defineProperty(this, "fetchOptions", {
234
- enumerable: !0,
235
- configurable: !0,
236
- writable: !0,
237
- value: void 0
238
- }), Object.defineProperty(this, "settings", {
239
- enumerable: !0,
240
- configurable: !0,
241
- writable: !0,
242
- value: void 0
243
- }), Object.defineProperty(this, "blockOnRootRunFinalization", {
244
- enumerable: !0,
245
- configurable: !0,
246
- writable: !0,
247
- value: D("LANGSMITH_TRACING_BACKGROUND") === "false"
248
- }), Object.defineProperty(this, "traceBatchConcurrency", {
249
- enumerable: !0,
250
- configurable: !0,
251
- writable: !0,
252
- value: 5
253
- }), Object.defineProperty(this, "_serverInfo", {
254
- enumerable: !0,
255
- configurable: !0,
256
- writable: !0,
257
- value: void 0
258
- }), Object.defineProperty(this, "_getServerInfoPromise", {
259
- enumerable: !0,
260
- configurable: !0,
261
- writable: !0,
262
- value: void 0
263
- }), Object.defineProperty(this, "manualFlushMode", {
264
- enumerable: !0,
265
- configurable: !0,
266
- writable: !0,
267
- value: !1
268
- }), Object.defineProperty(this, "langSmithToOTELTranslator", {
269
- enumerable: !0,
270
- configurable: !0,
271
- writable: !0,
272
- value: void 0
273
- }), Object.defineProperty(this, "fetchImplementation", {
274
- enumerable: !0,
275
- configurable: !0,
276
- writable: !0,
277
- value: void 0
278
- }), Object.defineProperty(this, "cachedLSEnvVarsForMetadata", {
279
- enumerable: !0,
280
- configurable: !0,
281
- writable: !0,
282
- value: void 0
283
- }), Object.defineProperty(this, "_cache", {
284
- enumerable: !0,
285
- configurable: !0,
286
- writable: !0,
287
- value: void 0
288
- }), Object.defineProperty(this, "multipartStreamingDisabled", {
289
- enumerable: !0,
290
- configurable: !0,
291
- writable: !0,
292
- value: !1
293
- }), Object.defineProperty(this, "_multipartDisabled", {
294
- enumerable: !0,
295
- configurable: !0,
296
- writable: !0,
297
- value: !1
298
- }), Object.defineProperty(this, "debug", {
299
- enumerable: !0,
300
- configurable: !0,
301
- writable: !0,
302
- value: D("LANGSMITH_DEBUG") === "true"
303
- });
304
- const e = L.getDefaultClientConfig();
305
- if (this.tracingSampleRate = rt(t.tracingSamplingRate), this.apiUrl = B(t.apiUrl ?? e.apiUrl) ?? "", this.apiUrl.endsWith("/") && (this.apiUrl = this.apiUrl.slice(0, -1)), this.apiKey = B(t.apiKey ?? e.apiKey), this.webUrl = B(t.webUrl ?? e.webUrl), this.webUrl?.endsWith("/") && (this.webUrl = this.webUrl.slice(0, -1)), this.workspaceId = B(t.workspaceId ?? x("WORKSPACE_ID")), this.timeout_ms = t.timeout_ms ?? 9e4, this.caller = new k({
306
- ...t.callerOptions ?? {},
307
- maxRetries: 4,
308
- debug: t.debug ?? this.debug
309
- }), this.traceBatchConcurrency = t.traceBatchConcurrency ?? this.traceBatchConcurrency, this.traceBatchConcurrency < 1)
310
- throw new Error("Trace batch concurrency must be positive.");
311
- this.debug = t.debug ?? this.debug, this.fetchImplementation = t.fetchImplementation;
312
- const a = t.maxIngestMemoryBytes ?? G;
313
- this.batchIngestCaller = new k({
314
- maxRetries: 4,
315
- maxConcurrency: this.traceBatchConcurrency,
316
- maxQueueSizeBytes: a,
317
- ...t.callerOptions ?? {},
318
- onFailedResponseHook: lt,
319
- debug: t.debug ?? this.debug
320
- }), this.hideInputs = t.hideInputs ?? t.anonymizer ?? e.hideInputs, this.hideOutputs = t.hideOutputs ?? t.anonymizer ?? e.hideOutputs, this.omitTracedRuntimeInfo = t.omitTracedRuntimeInfo ?? !1, this.autoBatchTracing = t.autoBatchTracing ?? this.autoBatchTracing, this.autoBatchQueue = new pt(a), this.blockOnRootRunFinalization = t.blockOnRootRunFinalization ?? this.blockOnRootRunFinalization, this.batchSizeBytesLimit = t.batchSizeBytesLimit, this.batchSizeLimit = t.batchSizeLimit, this.fetchOptions = t.fetchOptions || {}, this.manualFlushMode = t.manualFlushMode ?? this.manualFlushMode, Z() && (this.langSmithToOTELTranslator = new Q()), this.cachedLSEnvVarsForMetadata = J(), t.cache === !0 ? this._cache = new it() : t.cache && typeof t.cache == "object" ? this._cache = t.cache : this._cache = void 0;
321
- }
322
- static getDefaultClientConfig() {
323
- const t = x("API_KEY"), e = x("ENDPOINT") ?? H, a = x("HIDE_INPUTS") === "true", i = x("HIDE_OUTPUTS") === "true";
324
- return {
325
- apiUrl: e,
326
- apiKey: t,
327
- webUrl: void 0,
328
- hideInputs: a,
329
- hideOutputs: i
330
- };
331
- }
332
- getHostUrl() {
333
- return this.webUrl ? this.webUrl : ot(this.apiUrl) ? (this.webUrl = "http://localhost:3000", this.webUrl) : this.apiUrl.endsWith("/api/v1") ? (this.webUrl = this.apiUrl.replace("/api/v1", ""), this.webUrl) : this.apiUrl.includes("/api") && !this.apiUrl.split(".", 1)[0].endsWith("api") ? (this.webUrl = this.apiUrl.replace("/api", ""), this.webUrl) : this.apiUrl.split(".", 1)[0].includes("dev") ? (this.webUrl = "https://dev.smith.langchain.com", this.webUrl) : this.apiUrl.split(".", 1)[0].includes("eu") ? (this.webUrl = "https://eu.smith.langchain.com", this.webUrl) : this.apiUrl.split(".", 1)[0].includes("beta") ? (this.webUrl = "https://beta.smith.langchain.com", this.webUrl) : (this.webUrl = "https://smith.langchain.com", this.webUrl);
334
- }
335
- get headers() {
336
- const t = {
337
- "User-Agent": `langsmith-js/${et}`
338
- };
339
- return this.apiKey && (t["x-api-key"] = `${this.apiKey}`), this.workspaceId && (t["x-tenant-id"] = this.workspaceId), t;
340
- }
341
- _getPlatformEndpointPath(t) {
342
- return this.apiUrl.slice(-3) !== "/v1" && this.apiUrl.slice(-4) !== "/v1/" ? `/v1/platform/${t}` : `/platform/${t}`;
343
- }
344
- async processInputs(t) {
345
- return this.hideInputs === !1 ? t : this.hideInputs === !0 ? {} : typeof this.hideInputs == "function" ? this.hideInputs(t) : t;
346
- }
347
- async processOutputs(t) {
348
- return this.hideOutputs === !1 ? t : this.hideOutputs === !0 ? {} : typeof this.hideOutputs == "function" ? this.hideOutputs(t) : t;
349
- }
350
- async prepareRunCreateOrUpdateInputs(t) {
351
- const e = { ...t };
352
- return e.inputs !== void 0 && (e.inputs = await this.processInputs(e.inputs)), e.outputs !== void 0 && (e.outputs = await this.processOutputs(e.outputs)), e;
353
- }
354
- async _getResponse(t, e) {
355
- const a = e?.toString() ?? "", i = `${this.apiUrl}${t}?${a}`;
356
- return await this.caller.call(async () => {
357
- const n = await this._fetch(i, {
358
- method: "GET",
359
- headers: this.headers,
360
- signal: AbortSignal.timeout(this.timeout_ms),
361
- ...this.fetchOptions
362
- });
363
- return await h(n, `fetch ${t}`), n;
364
- });
365
- }
366
- async _get(t, e) {
367
- return (await this._getResponse(t, e)).json();
368
- }
369
- async *_getPaginated(t, e = new URLSearchParams(), a) {
370
- let i = Number(e.get("offset")) || 0;
371
- const s = Number(e.get("limit")) || 100;
372
- for (; ; ) {
373
- e.set("offset", String(i)), e.set("limit", String(s));
374
- const n = `${this.apiUrl}${t}?${e}`, r = await this.caller.call(async () => {
375
- const c = await this._fetch(n, {
376
- method: "GET",
377
- headers: this.headers,
378
- signal: AbortSignal.timeout(this.timeout_ms),
379
- ...this.fetchOptions
380
- });
381
- return await h(c, `fetch ${t}`), c;
382
- }), o = a ? a(await r.json()) : await r.json();
383
- if (o.length === 0 || (yield o, o.length < s))
384
- break;
385
- i += o.length;
386
- }
387
- }
388
- async *_getCursorPaginatedList(t, e = null, a = "POST", i = "runs") {
389
- const s = e ? { ...e } : {};
390
- for (; ; ) {
391
- const n = JSON.stringify(s), o = await (await this.caller.call(async () => {
392
- const l = await this._fetch(`${this.apiUrl}${t}`, {
393
- method: a,
394
- headers: { ...this.headers, "Content-Type": "application/json" },
395
- signal: AbortSignal.timeout(this.timeout_ms),
396
- ...this.fetchOptions,
397
- body: n
398
- });
399
- return await h(l, `fetch ${t}`), l;
400
- })).json();
401
- if (!o || !o[i])
402
- break;
403
- yield o[i];
404
- const c = o.cursors;
405
- if (!c || !c.next)
406
- break;
407
- s.cursor = c.next;
408
- }
409
- }
410
- // Allows mocking for tests
411
- _shouldSample() {
412
- return this.tracingSampleRate === void 0 ? !0 : Math.random() < this.tracingSampleRate;
413
- }
414
- _filterForSampling(t, e = !1) {
415
- if (this.tracingSampleRate === void 0)
416
- return t;
417
- if (e) {
418
- const a = [];
419
- for (const i of t)
420
- this.filteredPostUuids.has(i.trace_id) ? i.id === i.trace_id && this.filteredPostUuids.delete(i.trace_id) : a.push(i);
421
- return a;
422
- } else {
423
- const a = [];
424
- for (const i of t) {
425
- const s = i.trace_id ?? i.id;
426
- this.filteredPostUuids.has(s) || (i.id === s ? this._shouldSample() ? a.push(i) : this.filteredPostUuids.add(s) : a.push(i));
427
- }
428
- return a;
429
- }
430
- }
431
- async _getBatchSizeLimitBytes() {
432
- const t = await this._ensureServerInfo();
433
- return this.batchSizeBytesLimit ?? t?.batch_ingest_config?.size_limit_bytes ?? dt;
434
- }
435
- /**
436
- * Get the maximum number of operations to batch in a single request.
437
- */
438
- async _getBatchSizeLimit() {
439
- const t = await this._ensureServerInfo();
440
- return this.batchSizeLimit ?? t?.batch_ingest_config?.size_limit ?? ht;
441
- }
442
- async _getDatasetExamplesMultiPartSupport() {
443
- return (await this._ensureServerInfo()).instance_flags?.dataset_examples_multipart_enabled ?? !1;
444
- }
445
- drainAutoBatchQueue({ batchSizeLimitBytes: t, batchSizeLimit: e }) {
446
- const a = [];
447
- for (; this.autoBatchQueue.items.length > 0; ) {
448
- const [i, s] = this.autoBatchQueue.pop({
449
- upToSizeBytes: t,
450
- upToSize: e
451
- });
452
- if (!i.length) {
453
- s();
454
- break;
455
- }
456
- const n = i.reduce((c, l) => {
457
- const d = l.apiUrl ?? this.apiUrl, u = l.apiKey ?? this.apiKey, f = l.apiKey === this.apiKey && l.apiUrl === this.apiUrl ? "default" : `${d}|${u}`;
458
- return c[f] || (c[f] = []), c[f].push(l), c;
459
- }, {}), r = [];
460
- for (const [c, l] of Object.entries(n)) {
461
- const d = this._processBatch(l, {
462
- apiUrl: c === "default" ? void 0 : c.split("|")[0],
463
- apiKey: c === "default" ? void 0 : c.split("|")[1]
464
- });
465
- r.push(d);
466
- }
467
- const o = Promise.all(r).finally(s);
468
- a.push(o);
469
- }
470
- return Promise.all(a);
471
- }
472
- async _processBatch(t, e) {
473
- if (!t.length)
474
- return;
475
- const a = t.reduce((i, s) => i + (s.size ?? 0), 0);
476
- try {
477
- if (this.langSmithToOTELTranslator !== void 0)
478
- this._sendBatchToOTELTranslator(t);
479
- else {
480
- const i = {
481
- runCreates: t.filter((r) => r.action === "create").map((r) => r.item),
482
- runUpdates: t.filter((r) => r.action === "update").map((r) => r.item)
483
- }, s = await this._ensureServerInfo();
484
- if (!this._multipartDisabled && (s?.batch_ingest_config?.use_multipart_endpoint ?? !0)) {
485
- const r = s?.instance_flags?.gzip_body_enabled;
486
- try {
487
- await this.multipartIngestRuns(i, {
488
- ...e,
489
- useGzip: r,
490
- sizeBytes: a
491
- });
492
- } catch (o) {
493
- if (N(o))
494
- this._multipartDisabled = !0, await this.batchIngestRuns(i, {
495
- ...e,
496
- sizeBytes: a
497
- });
498
- else
499
- throw o;
500
- }
501
- } else
502
- await this.batchIngestRuns(i, {
503
- ...e,
504
- sizeBytes: a
505
- });
506
- }
507
- } catch (i) {
508
- console.error("Error exporting batch:", i);
509
- }
510
- }
511
- _sendBatchToOTELTranslator(t) {
512
- if (this.langSmithToOTELTranslator !== void 0) {
513
- const e = /* @__PURE__ */ new Map(), a = [];
514
- for (const i of t)
515
- i.item.id && i.otelContext && (e.set(i.item.id, i.otelContext), i.action === "create" ? a.push({
516
- operation: "post",
517
- id: i.item.id,
518
- trace_id: i.item.trace_id ?? i.item.id,
519
- run: i.item
520
- }) : a.push({
521
- operation: "patch",
522
- id: i.item.id,
523
- trace_id: i.item.trace_id ?? i.item.id,
524
- run: i.item
525
- }));
526
- this.langSmithToOTELTranslator.exportBatch(a, e);
527
- }
528
- }
529
- async processRunOperation(t) {
530
- clearTimeout(this.autoBatchTimeout), this.autoBatchTimeout = void 0, t.item = F(t.item, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
531
- const e = this.autoBatchQueue.push(t);
532
- if (this.manualFlushMode)
533
- return e;
534
- const a = await this._getBatchSizeLimitBytes(), i = await this._getBatchSizeLimit();
535
- return (this.autoBatchQueue.sizeBytes > a || this.autoBatchQueue.items.length > i) && this.drainAutoBatchQueue({
536
- batchSizeLimitBytes: a,
537
- batchSizeLimit: i
538
- }), this.autoBatchQueue.items.length > 0 && (this.autoBatchTimeout = setTimeout(() => {
539
- this.autoBatchTimeout = void 0, this.drainAutoBatchQueue({
540
- batchSizeLimitBytes: a,
541
- batchSizeLimit: i
542
- });
543
- }, this.autoBatchAggregationDelayMs)), e;
544
- }
545
- async _getServerInfo() {
546
- const e = await (await this.caller.call(async () => {
547
- const a = await this._fetch(`${this.apiUrl}/info`, {
548
- method: "GET",
549
- headers: { Accept: "application/json" },
550
- signal: AbortSignal.timeout(ut),
551
- ...this.fetchOptions
552
- });
553
- return await h(a, "get server info"), a;
554
- })).json();
555
- return this.debug && console.log(`
556
- === LangSmith Server Configuration ===
557
- ` + JSON.stringify(e, null, 2) + `
558
- `), e;
559
- }
560
- async _ensureServerInfo() {
561
- return this._getServerInfoPromise === void 0 && (this._getServerInfoPromise = (async () => {
562
- if (this._serverInfo === void 0)
563
- try {
564
- this._serverInfo = await this._getServerInfo();
565
- } catch (t) {
566
- console.warn(`[LANGSMITH]: Failed to fetch info on supported operations. Falling back to batch operations and default limits. Info: ${t.status ?? "Unspecified status code"} ${t.message}`);
567
- }
568
- return this._serverInfo ?? {};
569
- })()), this._getServerInfoPromise.then((t) => (this._serverInfo === void 0 && (this._getServerInfoPromise = void 0), t));
570
- }
571
- async _getSettings() {
572
- return this.settings || (this.settings = this._get("/settings")), await this.settings;
573
- }
574
- /**
575
- * Flushes current queued traces.
576
- */
577
- async flush() {
578
- const t = await this._getBatchSizeLimitBytes(), e = await this._getBatchSizeLimit();
579
- await this.drainAutoBatchQueue({
580
- batchSizeLimitBytes: t,
581
- batchSizeLimit: e
582
- });
583
- }
584
- _cloneCurrentOTELContext() {
585
- const t = W(), e = V();
586
- if (this.langSmithToOTELTranslator !== void 0) {
587
- const a = t.getActiveSpan();
588
- if (a)
589
- return t.setSpan(e.active(), a);
590
- }
591
- }
592
- async createRun(t, e) {
593
- if (!this._filterForSampling([t]).length)
594
- return;
595
- const a = {
596
- ...this.headers,
597
- "Content-Type": "application/json"
598
- }, i = t.project_name;
599
- delete t.project_name;
600
- const s = await this.prepareRunCreateOrUpdateInputs({
601
- session_name: i,
602
- ...t,
603
- start_time: t.start_time ?? Date.now()
604
- });
605
- if (this.autoBatchTracing && s.trace_id !== void 0 && s.dotted_order !== void 0) {
606
- const o = this._cloneCurrentOTELContext();
607
- this.processRunOperation({
608
- action: "create",
609
- item: s,
610
- otelContext: o,
611
- apiKey: e?.apiKey,
612
- apiUrl: e?.apiUrl
613
- }).catch(console.error);
614
- return;
615
- }
616
- const n = F(s, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
617
- e?.apiKey !== void 0 && (a["x-api-key"] = e.apiKey), e?.workspaceId !== void 0 && (a["x-tenant-id"] = e.workspaceId);
618
- const r = v(n, `Creating run with id: ${n.id}`);
619
- await this.caller.call(async () => {
620
- const o = await this._fetch(`${e?.apiUrl ?? this.apiUrl}/runs`, {
621
- method: "POST",
622
- headers: a,
623
- signal: AbortSignal.timeout(this.timeout_ms),
624
- ...this.fetchOptions,
625
- body: r
626
- });
627
- return await h(o, "create run", !0), o;
628
- });
629
- }
630
- /**
631
- * Batch ingest/upsert multiple runs in the Langsmith system.
632
- * @param runs
633
- */
634
- async batchIngestRuns({ runCreates: t, runUpdates: e }, a) {
635
- if (t === void 0 && e === void 0)
636
- return;
637
- let i = await Promise.all(t?.map((o) => this.prepareRunCreateOrUpdateInputs(o)) ?? []), s = await Promise.all(e?.map((o) => this.prepareRunCreateOrUpdateInputs(o)) ?? []);
638
- if (i.length > 0 && s.length > 0) {
639
- const o = i.reduce((l, d) => (d.id && (l[d.id] = d), l), {}), c = [];
640
- for (const l of s)
641
- l.id !== void 0 && o[l.id] ? o[l.id] = {
642
- ...o[l.id],
643
- ...l
644
- } : c.push(l);
645
- i = Object.values(o), s = c;
646
- }
647
- const n = {
648
- post: i,
649
- patch: s
650
- };
651
- if (!n.post.length && !n.patch.length)
652
- return;
653
- const r = {
654
- post: [],
655
- patch: []
656
- };
657
- for (const o of ["post", "patch"]) {
658
- const c = o, l = n[c].reverse();
659
- let d = l.pop();
660
- for (; d !== void 0; )
661
- r[c].push(d), d = l.pop();
662
- }
663
- if (r.post.length > 0 || r.patch.length > 0) {
664
- const o = r.post.map((c) => c.id).concat(r.patch.map((c) => c.id)).join(",");
665
- await this._postBatchIngestRuns(v(r, `Ingesting runs with ids: ${o}`), a);
666
- }
667
- }
668
- async _postBatchIngestRuns(t, e) {
669
- const a = {
670
- ...this.headers,
671
- "Content-Type": "application/json",
672
- Accept: "application/json"
673
- };
674
- e?.apiKey !== void 0 && (a["x-api-key"] = e.apiKey), await this.batchIngestCaller.callWithOptions({ sizeBytes: e?.sizeBytes }, async () => {
675
- const i = await this._fetch(`${e?.apiUrl ?? this.apiUrl}/runs/batch`, {
676
- method: "POST",
677
- headers: a,
678
- signal: AbortSignal.timeout(this.timeout_ms),
679
- ...this.fetchOptions,
680
- body: t
681
- });
682
- return await h(i, "batch create run", !0), i;
683
- });
684
- }
685
- /**
686
- * Batch ingest/upsert multiple runs in the Langsmith system.
687
- * @param runs
688
- */
689
- async multipartIngestRuns({ runCreates: t, runUpdates: e }, a) {
690
- if (t === void 0 && e === void 0)
691
- return;
692
- const i = {};
693
- let s = [];
694
- for (const d of t ?? []) {
695
- const u = await this.prepareRunCreateOrUpdateInputs(d);
696
- u.id !== void 0 && u.attachments !== void 0 && (i[u.id] = u.attachments), delete u.attachments, s.push(u);
697
- }
698
- let n = [];
699
- for (const d of e ?? [])
700
- n.push(await this.prepareRunCreateOrUpdateInputs(d));
701
- if (s.find((d) => d.trace_id === void 0 || d.dotted_order === void 0) !== void 0)
702
- throw new Error('Multipart ingest requires "trace_id" and "dotted_order" to be set when creating a run');
703
- if (n.find((d) => d.trace_id === void 0 || d.dotted_order === void 0) !== void 0)
704
- throw new Error('Multipart ingest requires "trace_id" and "dotted_order" to be set when updating a run');
705
- if (s.length > 0 && n.length > 0) {
706
- const d = s.reduce((p, f) => (f.id && (p[f.id] = f), p), {}), u = [];
707
- for (const p of n)
708
- p.id !== void 0 && d[p.id] ? d[p.id] = {
709
- ...d[p.id],
710
- ...p
711
- } : u.push(p);
712
- s = Object.values(d), n = u;
713
- }
714
- if (s.length === 0 && n.length === 0)
715
- return;
716
- const c = [], l = [];
717
- for (const [d, u] of [
718
- ["post", s],
719
- ["patch", n]
720
- ])
721
- for (const p of u) {
722
- const { inputs: f, outputs: O, events: U, extra: _, error: b, serialized: y, attachments: E, ...g } = p, P = { inputs: f, outputs: O, events: U, extra: _, error: b, serialized: y }, S = v(g, `Serializing for multipart ingestion of run with id: ${g.id}`);
723
- l.push({
724
- name: `${d}.${g.id}`,
725
- payload: new Blob([S], {
726
- type: `application/json; length=${S.length}`
727
- // encoding=gzip
728
- })
729
- });
730
- for (const [$, T] of Object.entries(P)) {
731
- if (T === void 0)
732
- continue;
733
- const j = v(T, `Serializing ${$} for multipart ingestion of run with id: ${g.id}`);
734
- l.push({
735
- name: `${d}.${g.id}.${$}`,
736
- payload: new Blob([j], {
737
- type: `application/json; length=${j.length}`
738
- })
739
- });
740
- }
741
- if (g.id !== void 0) {
742
- const $ = i[g.id];
743
- if ($) {
744
- delete i[g.id];
745
- for (const [T, j] of Object.entries($)) {
746
- let A, R;
747
- if (Array.isArray(j) ? [A, R] = j : (A = j.mimeType, R = j.data), T.includes(".")) {
748
- console.warn(`Skipping attachment '${T}' for run ${g.id}: Invalid attachment name. Attachment names must not contain periods ('.'). Please rename the attachment and try again.`);
749
- continue;
750
- }
751
- l.push({
752
- name: `attachment.${g.id}.${T}`,
753
- payload: new Blob([R], {
754
- type: `${A}; length=${R.byteLength}`
755
- })
756
- });
757
- }
758
- }
759
- }
760
- c.push(`trace=${g.trace_id},id=${g.id}`);
761
- }
762
- await this._sendMultipartRequest(l, c.join("; "), a);
763
- }
764
- async _createNodeFetchBody(t, e) {
765
- const a = [];
766
- for (const n of t)
767
- a.push(new Blob([`--${e}\r
768
- `])), a.push(new Blob([
769
- `Content-Disposition: form-data; name="${n.name}"\r
770
- `,
771
- `Content-Type: ${n.payload.type}\r
772
- \r
773
- `
774
- ])), a.push(n.payload), a.push(new Blob([`\r
775
- `]));
776
- return a.push(new Blob([`--${e}--\r
777
- `])), await new Blob(a).arrayBuffer();
778
- }
779
- async _createMultipartStream(t, e) {
780
- const a = new TextEncoder();
781
- return new ReadableStream({
782
- async start(s) {
783
- const n = async (r) => {
784
- typeof r == "string" ? s.enqueue(a.encode(r)) : s.enqueue(r);
785
- };
786
- for (const r of t) {
787
- await n(`--${e}\r
788
- `), await n(`Content-Disposition: form-data; name="${r.name}"\r
789
- `), await n(`Content-Type: ${r.payload.type}\r
790
- \r
791
- `);
792
- const c = r.payload.stream().getReader();
793
- try {
794
- let l;
795
- for (; !(l = await c.read()).done; )
796
- s.enqueue(l.value);
797
- } finally {
798
- c.releaseLock();
799
- }
800
- await n(`\r
801
- `);
802
- }
803
- await n(`--${e}--\r
804
- `), s.close();
805
- }
806
- });
807
- }
808
- async _sendMultipartRequest(t, e, a) {
809
- const i = "----LangSmithFormBoundary" + Math.random().toString(36).slice(2), s = nt(), n = () => this._createNodeFetchBody(t, i), r = () => this._createMultipartStream(t, i), o = async (c) => this.batchIngestCaller.callWithOptions({ sizeBytes: a?.sizeBytes }, async () => {
810
- const l = await c(), d = {
811
- ...this.headers,
812
- "Content-Type": `multipart/form-data; boundary=${i}`
813
- };
814
- a?.apiKey !== void 0 && (d["x-api-key"] = a.apiKey);
815
- let u = l;
816
- a?.useGzip && typeof l == "object" && "pipeThrough" in l && (u = l.pipeThrough(new CompressionStream("gzip")), d["Content-Encoding"] = "gzip");
817
- const p = await this._fetch(`${a?.apiUrl ?? this.apiUrl}/runs/multipart`, {
818
- method: "POST",
819
- headers: d,
820
- body: u,
821
- duplex: "half",
822
- signal: AbortSignal.timeout(this.timeout_ms),
823
- ...this.fetchOptions
824
- });
825
- return await h(p, "Failed to send multipart request", !0), p;
826
- });
827
- try {
828
- let c, l = !1;
829
- !s && !this.multipartStreamingDisabled && X() !== "bun" ? (l = !0, c = await o(r)) : c = await o(n), (!this.multipartStreamingDisabled || l) && c.status === 422 && (a?.apiUrl ?? this.apiUrl) !== H && (console.warn(`Streaming multipart upload to ${a?.apiUrl ?? this.apiUrl}/runs/multipart failed. This usually means the host does not support chunked uploads. Retrying with a buffered upload for operation "${e}".`), this.multipartStreamingDisabled = !0, c = await o(n));
830
- } catch (c) {
831
- if (N(c))
832
- throw c;
833
- console.warn(`${c.message.trim()}
834
-
835
- Context: ${e}`);
836
- }
837
- }
838
- async updateRun(t, e, a) {
839
- m(t), e.inputs && (e.inputs = await this.processInputs(e.inputs)), e.outputs && (e.outputs = await this.processOutputs(e.outputs));
840
- const i = { ...e, id: t };
841
- if (!this._filterForSampling([i], !0).length)
842
- return;
843
- if (this.autoBatchTracing && i.trace_id !== void 0 && i.dotted_order !== void 0) {
844
- const r = this._cloneCurrentOTELContext();
845
- if (e.end_time !== void 0 && i.parent_run_id === void 0 && this.blockOnRootRunFinalization && !this.manualFlushMode) {
846
- await this.processRunOperation({
847
- action: "update",
848
- item: i,
849
- otelContext: r,
850
- apiKey: a?.apiKey,
851
- apiUrl: a?.apiUrl
852
- }).catch(console.error);
853
- return;
854
- } else
855
- this.processRunOperation({
856
- action: "update",
857
- item: i,
858
- otelContext: r,
859
- apiKey: a?.apiKey,
860
- apiUrl: a?.apiUrl
861
- }).catch(console.error);
862
- return;
863
- }
864
- const s = {
865
- ...this.headers,
866
- "Content-Type": "application/json"
867
- };
868
- a?.apiKey !== void 0 && (s["x-api-key"] = a.apiKey), a?.workspaceId !== void 0 && (s["x-tenant-id"] = a.workspaceId);
869
- const n = v(e, `Serializing payload to update run with id: ${t}`);
870
- await this.caller.call(async () => {
871
- const r = await this._fetch(`${a?.apiUrl ?? this.apiUrl}/runs/${t}`, {
872
- method: "PATCH",
873
- headers: s,
874
- signal: AbortSignal.timeout(this.timeout_ms),
875
- ...this.fetchOptions,
876
- body: n
877
- });
878
- return await h(r, "update run", !0), r;
879
- });
880
- }
881
- async readRun(t, { loadChildRuns: e } = { loadChildRuns: !1 }) {
882
- m(t);
883
- let a = await this._get(`/runs/${t}`);
884
- return e && (a = await this._loadChildRuns(a)), a;
885
- }
886
- async getRunUrl({ runId: t, run: e, projectOpts: a }) {
887
- if (e !== void 0) {
888
- let i;
889
- e.session_id ? i = e.session_id : a?.projectName ? i = (await this.readProject({ projectName: a?.projectName })).id : a?.projectId ? i = a?.projectId : i = (await this.readProject({
890
- projectName: x("PROJECT") || "default"
891
- })).id;
892
- const s = await this._getTenantId();
893
- return `${this.getHostUrl()}/o/${s}/projects/p/${i}/r/${e.id}?poll=true`;
894
- } else if (t !== void 0) {
895
- const i = await this.readRun(t);
896
- if (!i.app_path)
897
- throw new Error(`Run ${t} has no app_path`);
898
- return `${this.getHostUrl()}${i.app_path}`;
899
- } else
900
- throw new Error("Must provide either runId or run");
901
- }
902
- async _loadChildRuns(t) {
903
- const e = await ct(this.listRuns({
904
- isRoot: !1,
905
- projectId: t.session_id,
906
- traceId: t.trace_id
907
- })), a = {}, i = {};
908
- e.sort((s, n) => (s?.dotted_order ?? "").localeCompare(n?.dotted_order ?? ""));
909
- for (const s of e) {
910
- if (s.parent_run_id === null || s.parent_run_id === void 0)
911
- throw new Error(`Child run ${s.id} has no parent`);
912
- s.dotted_order?.startsWith(t.dotted_order ?? "") && s.id !== t.id && (s.parent_run_id in a || (a[s.parent_run_id] = []), a[s.parent_run_id].push(s), i[s.id] = s);
913
- }
914
- t.child_runs = a[t.id] || [];
915
- for (const s in a)
916
- s !== t.id && (i[s].child_runs = a[s]);
917
- return t;
918
- }
919
- /**
920
- * List runs from the LangSmith server.
921
- * @param projectId - The ID of the project to filter by.
922
- * @param projectName - The name of the project to filter by.
923
- * @param parentRunId - The ID of the parent run to filter by.
924
- * @param traceId - The ID of the trace to filter by.
925
- * @param referenceExampleId - The ID of the reference example to filter by.
926
- * @param startTime - The start time to filter by.
927
- * @param isRoot - Indicates whether to only return root runs.
928
- * @param runType - The run type to filter by.
929
- * @param error - Indicates whether to filter by error runs.
930
- * @param id - The ID of the run to filter by.
931
- * @param query - The query string to filter by.
932
- * @param filter - The filter string to apply to the run spans.
933
- * @param traceFilter - The filter string to apply on the root run of the trace.
934
- * @param treeFilter - The filter string to apply on other runs in the trace.
935
- * @param limit - The maximum number of runs to retrieve.
936
- * @returns {AsyncIterable<Run>} - The runs.
937
- *
938
- * @example
939
- * // List all runs in a project
940
- * const projectRuns = client.listRuns({ projectName: "<your_project>" });
941
- *
942
- * @example
943
- * // List LLM and Chat runs in the last 24 hours
944
- * const todaysLLMRuns = client.listRuns({
945
- * projectName: "<your_project>",
946
- * start_time: new Date(Date.now() - 24 * 60 * 60 * 1000),
947
- * run_type: "llm",
948
- * });
949
- *
950
- * @example
951
- * // List traces in a project
952
- * const rootRuns = client.listRuns({
953
- * projectName: "<your_project>",
954
- * execution_order: 1,
955
- * });
956
- *
957
- * @example
958
- * // List runs without errors
959
- * const correctRuns = client.listRuns({
960
- * projectName: "<your_project>",
961
- * error: false,
962
- * });
963
- *
964
- * @example
965
- * // List runs by run ID
966
- * const runIds = [
967
- * "a36092d2-4ad5-4fb4-9c0d-0dba9a2ed836",
968
- * "9398e6be-964f-4aa4-8ae9-ad78cd4b7074",
969
- * ];
970
- * const selectedRuns = client.listRuns({ run_ids: runIds });
971
- *
972
- * @example
973
- * // List all "chain" type runs that took more than 10 seconds and had `total_tokens` greater than 5000
974
- * const chainRuns = client.listRuns({
975
- * projectName: "<your_project>",
976
- * filter: 'and(eq(run_type, "chain"), gt(latency, 10), gt(total_tokens, 5000))',
977
- * });
978
- *
979
- * @example
980
- * // List all runs called "extractor" whose root of the trace was assigned feedback "user_score" score of 1
981
- * const goodExtractorRuns = client.listRuns({
982
- * projectName: "<your_project>",
983
- * filter: 'eq(name, "extractor")',
984
- * traceFilter: 'and(eq(feedback_key, "user_score"), eq(feedback_score, 1))',
985
- * });
986
- *
987
- * @example
988
- * // List all runs that started after a specific timestamp and either have "error" not equal to null or a "Correctness" feedback score equal to 0
989
- * const complexRuns = client.listRuns({
990
- * projectName: "<your_project>",
991
- * filter: 'and(gt(start_time, "2023-07-15T12:34:56Z"), or(neq(error, null), and(eq(feedback_key, "Correctness"), eq(feedback_score, 0.0))))',
992
- * });
993
- *
994
- * @example
995
- * // List all runs where `tags` include "experimental" or "beta" and `latency` is greater than 2 seconds
996
- * const taggedRuns = client.listRuns({
997
- * projectName: "<your_project>",
998
- * filter: 'and(or(has(tags, "experimental"), has(tags, "beta")), gt(latency, 2))',
999
- * });
1000
- */
1001
- async *listRuns(t) {
1002
- const { projectId: e, projectName: a, parentRunId: i, traceId: s, referenceExampleId: n, startTime: r, executionOrder: o, isRoot: c, runType: l, error: d, id: u, query: p, filter: f, traceFilter: O, treeFilter: U, limit: _, select: b, order: y } = t;
1003
- let E = [];
1004
- if (e && (E = Array.isArray(e) ? e : [e]), a) {
1005
- const $ = Array.isArray(a) ? a : [a], T = await Promise.all($.map((j) => this.readProject({ projectName: j }).then((A) => A.id)));
1006
- E.push(...T);
1007
- }
1008
- const g = [
1009
- "app_path",
1010
- "completion_cost",
1011
- "completion_tokens",
1012
- "dotted_order",
1013
- "end_time",
1014
- "error",
1015
- "events",
1016
- "extra",
1017
- "feedback_stats",
1018
- "first_token_time",
1019
- "id",
1020
- "inputs",
1021
- "name",
1022
- "outputs",
1023
- "parent_run_id",
1024
- "parent_run_ids",
1025
- "prompt_cost",
1026
- "prompt_tokens",
1027
- "reference_example_id",
1028
- "run_type",
1029
- "session_id",
1030
- "start_time",
1031
- "status",
1032
- "tags",
1033
- "total_cost",
1034
- "total_tokens",
1035
- "trace_id"
1036
- ], P = {
1037
- session: E.length ? E : null,
1038
- run_type: l,
1039
- reference_example: n,
1040
- query: p,
1041
- filter: f,
1042
- trace_filter: O,
1043
- tree_filter: U,
1044
- execution_order: o,
1045
- parent_run: i,
1046
- start_time: r ? r.toISOString() : null,
1047
- error: d,
1048
- id: u,
1049
- limit: _,
1050
- trace: s,
1051
- select: b || g,
1052
- is_root: c,
1053
- order: y
1054
- };
1055
- P.select.includes("child_run_ids") && at("Deprecated: 'child_run_ids' in the listRuns select parameter is deprecated and will be removed in a future version.");
1056
- let S = 0;
1057
- for await (const $ of this._getCursorPaginatedList("/runs/query", P))
1058
- if (_) {
1059
- if (S >= _)
1060
- break;
1061
- if ($.length + S > _) {
1062
- yield* $.slice(0, _ - S);
1063
- break;
1064
- }
1065
- S += $.length, yield* $;
1066
- } else
1067
- yield* $;
1068
- }
1069
- async *listGroupRuns(t) {
1070
- const { projectId: e, projectName: a, groupBy: i, filter: s, startTime: n, endTime: r, limit: o, offset: c } = t, d = {
1071
- session_id: e || (await this.readProject({ projectName: a })).id,
1072
- group_by: i,
1073
- filter: s,
1074
- start_time: n ? n.toISOString() : null,
1075
- end_time: r ? r.toISOString() : null,
1076
- limit: Number(o) || 100
1077
- };
1078
- let u = Number(c) || 0;
1079
- const p = "/runs/group", f = `${this.apiUrl}${p}`;
1080
- for (; ; ) {
1081
- const O = {
1082
- ...d,
1083
- offset: u
1084
- }, U = Object.fromEntries(Object.entries(O).filter(([P, S]) => S !== void 0)), _ = JSON.stringify(U), y = await (await this.caller.call(async () => {
1085
- const P = await this._fetch(f, {
1086
- method: "POST",
1087
- headers: { ...this.headers, "Content-Type": "application/json" },
1088
- signal: AbortSignal.timeout(this.timeout_ms),
1089
- ...this.fetchOptions,
1090
- body: _
1091
- });
1092
- return await h(P, `Failed to fetch ${p}`), P;
1093
- })).json(), { groups: E, total: g } = y;
1094
- if (E.length === 0)
1095
- break;
1096
- for (const P of E)
1097
- yield P;
1098
- if (u += E.length, u >= g)
1099
- break;
1100
- }
1101
- }
1102
- async getRunStats({ id: t, trace: e, parentRun: a, runType: i, projectNames: s, projectIds: n, referenceExampleIds: r, startTime: o, endTime: c, error: l, query: d, filter: u, traceFilter: p, treeFilter: f, isRoot: O, dataSourceType: U }) {
1103
- let _ = n || [];
1104
- s && (_ = [
1105
- ...n || [],
1106
- ...await Promise.all(s.map((S) => this.readProject({ projectName: S }).then(($) => $.id)))
1107
- ]);
1108
- const y = Object.fromEntries(Object.entries({
1109
- id: t,
1110
- trace: e,
1111
- parent_run: a,
1112
- run_type: i,
1113
- session: _,
1114
- reference_example: r,
1115
- start_time: o,
1116
- end_time: c,
1117
- error: l,
1118
- query: d,
1119
- filter: u,
1120
- trace_filter: p,
1121
- tree_filter: f,
1122
- is_root: O,
1123
- data_source_type: U
1124
- }).filter(([S, $]) => $ !== void 0)), E = JSON.stringify(y);
1125
- return await (await this.caller.call(async () => {
1126
- const S = await this._fetch(`${this.apiUrl}/runs/stats`, {
1127
- method: "POST",
1128
- headers: { ...this.headers, "Content-Type": "application/json" },
1129
- signal: AbortSignal.timeout(this.timeout_ms),
1130
- ...this.fetchOptions,
1131
- body: E
1132
- });
1133
- return await h(S, "get run stats"), S;
1134
- })).json();
1135
- }
1136
- async shareRun(t, { shareId: e } = {}) {
1137
- const a = {
1138
- run_id: t,
1139
- share_token: e || C()
1140
- };
1141
- m(t);
1142
- const i = JSON.stringify(a), n = await (await this.caller.call(async () => {
1143
- const r = await this._fetch(`${this.apiUrl}/runs/${t}/share`, {
1144
- method: "PUT",
1145
- headers: this.headers,
1146
- signal: AbortSignal.timeout(this.timeout_ms),
1147
- ...this.fetchOptions,
1148
- body: i
1149
- });
1150
- return await h(r, "share run"), r;
1151
- })).json();
1152
- if (n === null || !("share_token" in n))
1153
- throw new Error("Invalid response from server");
1154
- return `${this.getHostUrl()}/public/${n.share_token}/r`;
1155
- }
1156
- async unshareRun(t) {
1157
- m(t), await this.caller.call(async () => {
1158
- const e = await this._fetch(`${this.apiUrl}/runs/${t}/share`, {
1159
- method: "DELETE",
1160
- headers: this.headers,
1161
- signal: AbortSignal.timeout(this.timeout_ms),
1162
- ...this.fetchOptions
1163
- });
1164
- return await h(e, "unshare run", !0), e;
1165
- });
1166
- }
1167
- async readRunSharedLink(t) {
1168
- m(t);
1169
- const a = await (await this.caller.call(async () => {
1170
- const i = await this._fetch(`${this.apiUrl}/runs/${t}/share`, {
1171
- method: "GET",
1172
- headers: this.headers,
1173
- signal: AbortSignal.timeout(this.timeout_ms),
1174
- ...this.fetchOptions
1175
- });
1176
- return await h(i, "read run shared link"), i;
1177
- })).json();
1178
- if (!(a === null || !("share_token" in a)))
1179
- return `${this.getHostUrl()}/public/${a.share_token}/r`;
1180
- }
1181
- async listSharedRuns(t, { runIds: e } = {}) {
1182
- const a = new URLSearchParams({
1183
- share_token: t
1184
- });
1185
- if (e !== void 0)
1186
- for (const n of e)
1187
- a.append("id", n);
1188
- return m(t), await (await this.caller.call(async () => {
1189
- const n = await this._fetch(`${this.apiUrl}/public/${t}/runs${a}`, {
1190
- method: "GET",
1191
- headers: this.headers,
1192
- signal: AbortSignal.timeout(this.timeout_ms),
1193
- ...this.fetchOptions
1194
- });
1195
- return await h(n, "list shared runs"), n;
1196
- })).json();
1197
- }
1198
- async readDatasetSharedSchema(t, e) {
1199
- if (!t && !e)
1200
- throw new Error("Either datasetId or datasetName must be given");
1201
- t || (t = (await this.readDataset({ datasetName: e })).id), m(t);
1202
- const i = await (await this.caller.call(async () => {
1203
- const s = await this._fetch(`${this.apiUrl}/datasets/${t}/share`, {
1204
- method: "GET",
1205
- headers: this.headers,
1206
- signal: AbortSignal.timeout(this.timeout_ms),
1207
- ...this.fetchOptions
1208
- });
1209
- return await h(s, "read dataset shared schema"), s;
1210
- })).json();
1211
- return i.url = `${this.getHostUrl()}/public/${i.share_token}/d`, i;
1212
- }
1213
- async shareDataset(t, e) {
1214
- if (!t && !e)
1215
- throw new Error("Either datasetId or datasetName must be given");
1216
- t || (t = (await this.readDataset({ datasetName: e })).id);
1217
- const a = {
1218
- dataset_id: t
1219
- };
1220
- m(t);
1221
- const i = JSON.stringify(a), n = await (await this.caller.call(async () => {
1222
- const r = await this._fetch(`${this.apiUrl}/datasets/${t}/share`, {
1223
- method: "PUT",
1224
- headers: this.headers,
1225
- signal: AbortSignal.timeout(this.timeout_ms),
1226
- ...this.fetchOptions,
1227
- body: i
1228
- });
1229
- return await h(r, "share dataset"), r;
1230
- })).json();
1231
- return n.url = `${this.getHostUrl()}/public/${n.share_token}/d`, n;
1232
- }
1233
- async unshareDataset(t) {
1234
- m(t), await this.caller.call(async () => {
1235
- const e = await this._fetch(`${this.apiUrl}/datasets/${t}/share`, {
1236
- method: "DELETE",
1237
- headers: this.headers,
1238
- signal: AbortSignal.timeout(this.timeout_ms),
1239
- ...this.fetchOptions
1240
- });
1241
- return await h(e, "unshare dataset", !0), e;
1242
- });
1243
- }
1244
- async readSharedDataset(t) {
1245
- return m(t), await (await this.caller.call(async () => {
1246
- const i = await this._fetch(`${this.apiUrl}/public/${t}/datasets`, {
1247
- method: "GET",
1248
- headers: this.headers,
1249
- signal: AbortSignal.timeout(this.timeout_ms),
1250
- ...this.fetchOptions
1251
- });
1252
- return await h(i, "read shared dataset"), i;
1253
- })).json();
1254
- }
1255
- /**
1256
- * Get shared examples.
1257
- *
1258
- * @param {string} shareToken The share token to get examples for. A share token is the UUID (or LangSmith URL, including UUID) generated when explicitly marking an example as public.
1259
- * @param {Object} [options] Additional options for listing the examples.
1260
- * @param {string[] | undefined} [options.exampleIds] A list of example IDs to filter by.
1261
- * @returns {Promise<Example[]>} The shared examples.
1262
- */
1263
- async listSharedExamples(t, e) {
1264
- const a = {};
1265
- e?.exampleIds && (a.id = e.exampleIds);
1266
- const i = new URLSearchParams();
1267
- Object.entries(a).forEach(([r, o]) => {
1268
- Array.isArray(o) ? o.forEach((c) => i.append(r, c)) : i.append(r, o);
1269
- });
1270
- const s = await this.caller.call(async () => {
1271
- const r = await this._fetch(`${this.apiUrl}/public/${t}/examples?${i.toString()}`, {
1272
- method: "GET",
1273
- headers: this.headers,
1274
- signal: AbortSignal.timeout(this.timeout_ms),
1275
- ...this.fetchOptions
1276
- });
1277
- return await h(r, "list shared examples"), r;
1278
- }), n = await s.json();
1279
- if (!s.ok)
1280
- throw "detail" in n ? new Error(`Failed to list shared examples.
1281
- Status: ${s.status}
1282
- Message: ${Array.isArray(n.detail) ? n.detail.join(`
1283
- `) : "Unspecified error"}`) : new Error(`Failed to list shared examples: ${s.status} ${s.statusText}`);
1284
- return n.map((r) => ({
1285
- ...r,
1286
- _hostUrl: this.getHostUrl()
1287
- }));
1288
- }
1289
- async createProject({ projectName: t, description: e = null, metadata: a = null, upsert: i = !1, projectExtra: s = null, referenceDatasetId: n = null }) {
1290
- const r = i ? "?upsert=true" : "", o = `${this.apiUrl}/sessions${r}`, c = s || {};
1291
- a && (c.metadata = a);
1292
- const l = {
1293
- name: t,
1294
- extra: c,
1295
- description: e
1296
- };
1297
- n !== null && (l.reference_dataset_id = n);
1298
- const d = JSON.stringify(l);
1299
- return await (await this.caller.call(async () => {
1300
- const f = await this._fetch(o, {
1301
- method: "POST",
1302
- headers: { ...this.headers, "Content-Type": "application/json" },
1303
- signal: AbortSignal.timeout(this.timeout_ms),
1304
- ...this.fetchOptions,
1305
- body: d
1306
- });
1307
- return await h(f, "create project"), f;
1308
- })).json();
1309
- }
1310
- async updateProject(t, { name: e = null, description: a = null, metadata: i = null, projectExtra: s = null, endTime: n = null }) {
1311
- const r = `${this.apiUrl}/sessions/${t}`;
1312
- let o = s;
1313
- i && (o = { ...o || {}, metadata: i });
1314
- const c = JSON.stringify({
1315
- name: e,
1316
- extra: o,
1317
- description: a,
1318
- end_time: n ? new Date(n).toISOString() : null
1319
- });
1320
- return await (await this.caller.call(async () => {
1321
- const u = await this._fetch(r, {
1322
- method: "PATCH",
1323
- headers: { ...this.headers, "Content-Type": "application/json" },
1324
- signal: AbortSignal.timeout(this.timeout_ms),
1325
- ...this.fetchOptions,
1326
- body: c
1327
- });
1328
- return await h(u, "update project"), u;
1329
- })).json();
1330
- }
1331
- async hasProject({ projectId: t, projectName: e }) {
1332
- let a = "/sessions";
1333
- const i = new URLSearchParams();
1334
- if (t !== void 0 && e !== void 0)
1335
- throw new Error("Must provide either projectName or projectId, not both");
1336
- if (t !== void 0)
1337
- m(t), a += `/${t}`;
1338
- else if (e !== void 0)
1339
- i.append("name", e);
1340
- else
1341
- throw new Error("Must provide projectName or projectId");
1342
- const s = await this.caller.call(async () => {
1343
- const n = await this._fetch(`${this.apiUrl}${a}?${i}`, {
1344
- method: "GET",
1345
- headers: this.headers,
1346
- signal: AbortSignal.timeout(this.timeout_ms),
1347
- ...this.fetchOptions
1348
- });
1349
- return await h(n, "has project"), n;
1350
- });
1351
- try {
1352
- const n = await s.json();
1353
- return s.ok ? Array.isArray(n) ? n.length > 0 : !0 : !1;
1354
- } catch {
1355
- return !1;
1356
- }
1357
- }
1358
- async readProject({ projectId: t, projectName: e, includeStats: a }) {
1359
- let i = "/sessions";
1360
- const s = new URLSearchParams();
1361
- if (t !== void 0 && e !== void 0)
1362
- throw new Error("Must provide either projectName or projectId, not both");
1363
- if (t !== void 0)
1364
- m(t), i += `/${t}`;
1365
- else if (e !== void 0)
1366
- s.append("name", e);
1367
- else
1368
- throw new Error("Must provide projectName or projectId");
1369
- a !== void 0 && s.append("include_stats", a.toString());
1370
- const n = await this._get(i, s);
1371
- let r;
1372
- if (Array.isArray(n)) {
1373
- if (n.length === 0)
1374
- throw new Error(`Project[id=${t}, name=${e}] not found`);
1375
- r = n[0];
1376
- } else
1377
- r = n;
1378
- return r;
1379
- }
1380
- async getProjectUrl({ projectId: t, projectName: e }) {
1381
- if (t === void 0 && e === void 0)
1382
- throw new Error("Must provide either projectName or projectId");
1383
- const a = await this.readProject({ projectId: t, projectName: e }), i = await this._getTenantId();
1384
- return `${this.getHostUrl()}/o/${i}/projects/p/${a.id}`;
1385
- }
1386
- async getDatasetUrl({ datasetId: t, datasetName: e }) {
1387
- if (t === void 0 && e === void 0)
1388
- throw new Error("Must provide either datasetName or datasetId");
1389
- const a = await this.readDataset({ datasetId: t, datasetName: e }), i = await this._getTenantId();
1390
- return `${this.getHostUrl()}/o/${i}/datasets/${a.id}`;
1391
- }
1392
- async _getTenantId() {
1393
- if (this._tenantId !== null)
1394
- return this._tenantId;
1395
- const t = new URLSearchParams({ limit: "1" });
1396
- for await (const e of this._getPaginated("/sessions", t))
1397
- return this._tenantId = e[0].tenant_id, e[0].tenant_id;
1398
- throw new Error("No projects found to resolve tenant.");
1399
- }
1400
- async *listProjects({ projectIds: t, name: e, nameContains: a, referenceDatasetId: i, referenceDatasetName: s, includeStats: n, datasetVersion: r, referenceFree: o, metadata: c } = {}) {
1401
- const l = new URLSearchParams();
1402
- if (t !== void 0)
1403
- for (const d of t)
1404
- l.append("id", d);
1405
- if (e !== void 0 && l.append("name", e), a !== void 0 && l.append("name_contains", a), i !== void 0)
1406
- l.append("reference_dataset", i);
1407
- else if (s !== void 0) {
1408
- const d = await this.readDataset({
1409
- datasetName: s
1410
- });
1411
- l.append("reference_dataset", d.id);
1412
- }
1413
- n !== void 0 && l.append("include_stats", n.toString()), r !== void 0 && l.append("dataset_version", r), o !== void 0 && l.append("reference_free", o.toString()), c !== void 0 && l.append("metadata", JSON.stringify(c));
1414
- for await (const d of this._getPaginated("/sessions", l))
1415
- yield* d;
1416
- }
1417
- async deleteProject({ projectId: t, projectName: e }) {
1418
- let a;
1419
- if (t === void 0 && e === void 0)
1420
- throw new Error("Must provide projectName or projectId");
1421
- if (t !== void 0 && e !== void 0)
1422
- throw new Error("Must provide either projectName or projectId, not both");
1423
- t === void 0 ? a = (await this.readProject({ projectName: e })).id : a = t, m(a), await this.caller.call(async () => {
1424
- const i = await this._fetch(`${this.apiUrl}/sessions/${a}`, {
1425
- method: "DELETE",
1426
- headers: this.headers,
1427
- signal: AbortSignal.timeout(this.timeout_ms),
1428
- ...this.fetchOptions
1429
- });
1430
- return await h(i, `delete session ${a} (${e})`, !0), i;
1431
- });
1432
- }
1433
- async uploadCsv({ csvFile: t, fileName: e, inputKeys: a, outputKeys: i, description: s, dataType: n, name: r }) {
1434
- const o = `${this.apiUrl}/datasets/upload`, c = new FormData();
1435
- return c.append("file", t, e), a.forEach((u) => {
1436
- c.append("input_keys", u);
1437
- }), i.forEach((u) => {
1438
- c.append("output_keys", u);
1439
- }), s && c.append("description", s), n && c.append("data_type", n), r && c.append("name", r), await (await this.caller.call(async () => {
1440
- const u = await this._fetch(o, {
1441
- method: "POST",
1442
- headers: this.headers,
1443
- signal: AbortSignal.timeout(this.timeout_ms),
1444
- ...this.fetchOptions,
1445
- body: c
1446
- });
1447
- return await h(u, "upload CSV"), u;
1448
- })).json();
1449
- }
1450
- async createDataset(t, { description: e, dataType: a, inputsSchema: i, outputsSchema: s, metadata: n } = {}) {
1451
- const r = {
1452
- name: t,
1453
- description: e,
1454
- extra: n ? { metadata: n } : void 0
1455
- };
1456
- a && (r.data_type = a), i && (r.inputs_schema_definition = i), s && (r.outputs_schema_definition = s);
1457
- const o = JSON.stringify(r);
1458
- return await (await this.caller.call(async () => {
1459
- const d = await this._fetch(`${this.apiUrl}/datasets`, {
1460
- method: "POST",
1461
- headers: { ...this.headers, "Content-Type": "application/json" },
1462
- signal: AbortSignal.timeout(this.timeout_ms),
1463
- ...this.fetchOptions,
1464
- body: o
1465
- });
1466
- return await h(d, "create dataset"), d;
1467
- })).json();
1468
- }
1469
- async readDataset({ datasetId: t, datasetName: e }) {
1470
- let a = "/datasets";
1471
- const i = new URLSearchParams({ limit: "1" });
1472
- if (t && e)
1473
- throw new Error("Must provide either datasetName or datasetId, not both");
1474
- if (t)
1475
- m(t), a += `/${t}`;
1476
- else if (e)
1477
- i.append("name", e);
1478
- else
1479
- throw new Error("Must provide datasetName or datasetId");
1480
- const s = await this._get(a, i);
1481
- let n;
1482
- if (Array.isArray(s)) {
1483
- if (s.length === 0)
1484
- throw new Error(`Dataset[id=${t}, name=${e}] not found`);
1485
- n = s[0];
1486
- } else
1487
- n = s;
1488
- return n;
1489
- }
1490
- async hasDataset({ datasetId: t, datasetName: e }) {
1491
- try {
1492
- return await this.readDataset({ datasetId: t, datasetName: e }), !0;
1493
- } catch (a) {
1494
- if (
1495
- // eslint-disable-next-line no-instanceof/no-instanceof
1496
- a instanceof Error && a.message.toLocaleLowerCase().includes("not found")
1497
- )
1498
- return !1;
1499
- throw a;
1500
- }
1501
- }
1502
- async diffDatasetVersions({ datasetId: t, datasetName: e, fromVersion: a, toVersion: i }) {
1503
- let s = t;
1504
- if (s === void 0 && e === void 0)
1505
- throw new Error("Must provide either datasetName or datasetId");
1506
- if (s !== void 0 && e !== void 0)
1507
- throw new Error("Must provide either datasetName or datasetId, not both");
1508
- s === void 0 && (s = (await this.readDataset({ datasetName: e })).id);
1509
- const n = new URLSearchParams({
1510
- from_version: typeof a == "string" ? a : a.toISOString(),
1511
- to_version: typeof i == "string" ? i : i.toISOString()
1512
- });
1513
- return await this._get(`/datasets/${s}/versions/diff`, n);
1514
- }
1515
- async readDatasetOpenaiFinetuning({ datasetId: t, datasetName: e }) {
1516
- const a = "/datasets";
1517
- if (t === void 0) if (e !== void 0)
1518
- t = (await this.readDataset({ datasetName: e })).id;
1519
- else
1520
- throw new Error("Must provide either datasetName or datasetId");
1521
- return (await (await this._getResponse(`${a}/${t}/openai_ft`)).text()).trim().split(`
1522
- `).map((r) => JSON.parse(r));
1523
- }
1524
- async *listDatasets({ limit: t = 100, offset: e = 0, datasetIds: a, datasetName: i, datasetNameContains: s, metadata: n } = {}) {
1525
- const r = "/datasets", o = new URLSearchParams({
1526
- limit: t.toString(),
1527
- offset: e.toString()
1528
- });
1529
- if (a !== void 0)
1530
- for (const c of a)
1531
- o.append("id", c);
1532
- i !== void 0 && o.append("name", i), s !== void 0 && o.append("name_contains", s), n !== void 0 && o.append("metadata", JSON.stringify(n));
1533
- for await (const c of this._getPaginated(r, o))
1534
- yield* c;
1535
- }
1536
- /**
1537
- * Update a dataset
1538
- * @param props The dataset details to update
1539
- * @returns The updated dataset
1540
- */
1541
- async updateDataset(t) {
1542
- const { datasetId: e, datasetName: a, ...i } = t;
1543
- if (!e && !a)
1544
- throw new Error("Must provide either datasetName or datasetId");
1545
- const s = e ?? (await this.readDataset({ datasetName: a })).id;
1546
- m(s);
1547
- const n = JSON.stringify(i);
1548
- return await (await this.caller.call(async () => {
1549
- const o = await this._fetch(`${this.apiUrl}/datasets/${s}`, {
1550
- method: "PATCH",
1551
- headers: { ...this.headers, "Content-Type": "application/json" },
1552
- signal: AbortSignal.timeout(this.timeout_ms),
1553
- ...this.fetchOptions,
1554
- body: n
1555
- });
1556
- return await h(o, "update dataset"), o;
1557
- })).json();
1558
- }
1559
- /**
1560
- * Updates a tag on a dataset.
1561
- *
1562
- * If the tag is already assigned to a different version of this dataset,
1563
- * the tag will be moved to the new version. The as_of parameter is used to
1564
- * determine which version of the dataset to apply the new tags to.
1565
- *
1566
- * It must be an exact version of the dataset to succeed. You can
1567
- * use the "readDatasetVersion" method to find the exact version
1568
- * to apply the tags to.
1569
- * @param params.datasetId The ID of the dataset to update. Must be provided if "datasetName" is not provided.
1570
- * @param params.datasetName The name of the dataset to update. Must be provided if "datasetId" is not provided.
1571
- * @param params.asOf The timestamp of the dataset to apply the new tags to.
1572
- * @param params.tag The new tag to apply to the dataset.
1573
- */
1574
- async updateDatasetTag(t) {
1575
- const { datasetId: e, datasetName: a, asOf: i, tag: s } = t;
1576
- if (!e && !a)
1577
- throw new Error("Must provide either datasetName or datasetId");
1578
- const n = e ?? (await this.readDataset({ datasetName: a })).id;
1579
- m(n);
1580
- const r = JSON.stringify({
1581
- as_of: typeof i == "string" ? i : i.toISOString(),
1582
- tag: s
1583
- });
1584
- await this.caller.call(async () => {
1585
- const o = await this._fetch(`${this.apiUrl}/datasets/${n}/tags`, {
1586
- method: "PUT",
1587
- headers: { ...this.headers, "Content-Type": "application/json" },
1588
- signal: AbortSignal.timeout(this.timeout_ms),
1589
- ...this.fetchOptions,
1590
- body: r
1591
- });
1592
- return await h(o, "update dataset tags", !0), o;
1593
- });
1594
- }
1595
- async deleteDataset({ datasetId: t, datasetName: e }) {
1596
- let a = "/datasets", i = t;
1597
- if (t !== void 0 && e !== void 0)
1598
- throw new Error("Must provide either datasetName or datasetId, not both");
1599
- if (e !== void 0 && (i = (await this.readDataset({ datasetName: e })).id), i !== void 0)
1600
- m(i), a += `/${i}`;
1601
- else
1602
- throw new Error("Must provide datasetName or datasetId");
1603
- await this.caller.call(async () => {
1604
- const s = await this._fetch(this.apiUrl + a, {
1605
- method: "DELETE",
1606
- headers: this.headers,
1607
- signal: AbortSignal.timeout(this.timeout_ms),
1608
- ...this.fetchOptions
1609
- });
1610
- return await h(s, `delete ${a}`, !0), s;
1611
- });
1612
- }
1613
- async indexDataset({ datasetId: t, datasetName: e, tag: a }) {
1614
- let i = t;
1615
- if (!i && !e)
1616
- throw new Error("Must provide either datasetName or datasetId");
1617
- if (i && e)
1618
- throw new Error("Must provide either datasetName or datasetId, not both");
1619
- i || (i = (await this.readDataset({ datasetName: e })).id), m(i);
1620
- const n = JSON.stringify({
1621
- tag: a
1622
- });
1623
- await (await this.caller.call(async () => {
1624
- const o = await this._fetch(`${this.apiUrl}/datasets/${i}/index`, {
1625
- method: "POST",
1626
- headers: { ...this.headers, "Content-Type": "application/json" },
1627
- signal: AbortSignal.timeout(this.timeout_ms),
1628
- ...this.fetchOptions,
1629
- body: n
1630
- });
1631
- return await h(o, "index dataset"), o;
1632
- })).json();
1633
- }
1634
- /**
1635
- * Lets you run a similarity search query on a dataset.
1636
- *
1637
- * Requires the dataset to be indexed. Please see the `indexDataset` method to set up indexing.
1638
- *
1639
- * @param inputs The input on which to run the similarity search. Must have the
1640
- * same schema as the dataset.
1641
- *
1642
- * @param datasetId The dataset to search for similar examples.
1643
- *
1644
- * @param limit The maximum number of examples to return. Will return the top `limit` most
1645
- * similar examples in order of most similar to least similar. If no similar
1646
- * examples are found, random examples will be returned.
1647
- *
1648
- * @param filter A filter string to apply to the search. Only examples will be returned that
1649
- * match the filter string. Some examples of filters
1650
- *
1651
- * - eq(metadata.mykey, "value")
1652
- * - and(neq(metadata.my.nested.key, "value"), neq(metadata.mykey, "value"))
1653
- * - or(eq(metadata.mykey, "value"), eq(metadata.mykey, "othervalue"))
1654
- *
1655
- * @returns A list of similar examples.
1656
- *
1657
- *
1658
- * @example
1659
- * dataset_id = "123e4567-e89b-12d3-a456-426614174000"
1660
- * inputs = {"text": "How many people live in Berlin?"}
1661
- * limit = 5
1662
- * examples = await client.similarExamples(inputs, dataset_id, limit)
1663
- */
1664
- async similarExamples(t, e, a, { filter: i } = {}) {
1665
- const s = {
1666
- limit: a,
1667
- inputs: t
1668
- };
1669
- i !== void 0 && (s.filter = i), m(e);
1670
- const n = JSON.stringify(s);
1671
- return (await (await this.caller.call(async () => {
1672
- const c = await this._fetch(`${this.apiUrl}/datasets/${e}/search`, {
1673
- headers: { ...this.headers, "Content-Type": "application/json" },
1674
- signal: AbortSignal.timeout(this.timeout_ms),
1675
- ...this.fetchOptions,
1676
- method: "POST",
1677
- body: n
1678
- });
1679
- return await h(c, "fetch similar examples"), c;
1680
- })).json()).examples;
1681
- }
1682
- async createExample(t, e, a) {
1683
- if (K(t) && (e !== void 0 || a !== void 0))
1684
- throw new Error("Cannot provide outputs or options when using ExampleCreate object");
1685
- let i = e ? a?.datasetId : t.dataset_id;
1686
- const s = e ? a?.datasetName : t.dataset_name;
1687
- if (i === void 0 && s === void 0)
1688
- throw new Error("Must provide either datasetName or datasetId");
1689
- if (i !== void 0 && s !== void 0)
1690
- throw new Error("Must provide either datasetName or datasetId, not both");
1691
- i === void 0 && (i = (await this.readDataset({ datasetName: s })).id);
1692
- const n = (e ? a?.createdAt : t.created_at) || /* @__PURE__ */ new Date();
1693
- let r;
1694
- K(t) ? r = t : r = {
1695
- inputs: t,
1696
- outputs: e,
1697
- created_at: n?.toISOString(),
1698
- id: a?.exampleId,
1699
- metadata: a?.metadata,
1700
- split: a?.split,
1701
- source_run_id: a?.sourceRunId,
1702
- use_source_run_io: a?.useSourceRunIO,
1703
- use_source_run_attachments: a?.useSourceRunAttachments,
1704
- attachments: a?.attachments
1705
- };
1706
- const o = await this._uploadExamplesMultipart(i, [r]);
1707
- return await this.readExample(o.example_ids?.[0] ?? C());
1708
- }
1709
- async createExamples(t) {
1710
- if (Array.isArray(t)) {
1711
- if (t.length === 0)
1712
- return [];
1713
- const b = t;
1714
- let y = b[0].dataset_id;
1715
- const E = b[0].dataset_name;
1716
- if (y === void 0 && E === void 0)
1717
- throw new Error("Must provide either datasetName or datasetId");
1718
- if (y !== void 0 && E !== void 0)
1719
- throw new Error("Must provide either datasetName or datasetId, not both");
1720
- y === void 0 && (y = (await this.readDataset({ datasetName: E })).id);
1721
- const g = await this._uploadExamplesMultipart(y, b);
1722
- return await Promise.all(g.example_ids.map((S) => this.readExample(S)));
1723
- }
1724
- const { inputs: e, outputs: a, metadata: i, splits: s, sourceRunIds: n, useSourceRunIOs: r, useSourceRunAttachments: o, attachments: c, exampleIds: l, datasetId: d, datasetName: u } = t;
1725
- if (e === void 0)
1726
- throw new Error("Must provide inputs when using legacy parameters");
1727
- let p = d;
1728
- const f = u;
1729
- if (p === void 0 && f === void 0)
1730
- throw new Error("Must provide either datasetName or datasetId");
1731
- if (p !== void 0 && f !== void 0)
1732
- throw new Error("Must provide either datasetName or datasetId, not both");
1733
- p === void 0 && (p = (await this.readDataset({ datasetName: f })).id);
1734
- const O = e.map((b, y) => ({
1735
- dataset_id: p,
1736
- inputs: b,
1737
- outputs: a?.[y],
1738
- metadata: i?.[y],
1739
- split: s?.[y],
1740
- id: l?.[y],
1741
- attachments: c?.[y],
1742
- source_run_id: n?.[y],
1743
- use_source_run_io: r?.[y],
1744
- use_source_run_attachments: o?.[y]
1745
- })), U = await this._uploadExamplesMultipart(p, O);
1746
- return await Promise.all(U.example_ids.map((b) => this.readExample(b)));
1747
- }
1748
- async createLLMExample(t, e, a) {
1749
- return this.createExample({ input: t }, { output: e }, a);
1750
- }
1751
- async createChatExample(t, e, a) {
1752
- const i = t.map((n) => M(n) ? z(n) : n), s = M(e) ? z(e) : e;
1753
- return this.createExample({ input: i }, { output: s }, a);
1754
- }
1755
- async readExample(t) {
1756
- m(t);
1757
- const e = `/examples/${t}`, a = await this._get(e), { attachment_urls: i, ...s } = a, n = s;
1758
- return i && (n.attachments = Object.entries(i).reduce((r, [o, c]) => (r[o.slice(11)] = {
1759
- presigned_url: c.presigned_url,
1760
- mime_type: c.mime_type
1761
- }, r), {})), n;
1762
- }
1763
- async *listExamples({ datasetId: t, datasetName: e, exampleIds: a, asOf: i, splits: s, inlineS3Urls: n, metadata: r, limit: o, offset: c, filter: l, includeAttachments: d } = {}) {
1764
- let u;
1765
- if (t !== void 0 && e !== void 0)
1766
- throw new Error("Must provide either datasetName or datasetId, not both");
1767
- if (t !== void 0)
1768
- u = t;
1769
- else if (e !== void 0)
1770
- u = (await this.readDataset({ datasetName: e })).id;
1771
- else
1772
- throw new Error("Must provide a datasetName or datasetId");
1773
- const p = new URLSearchParams({ dataset: u }), f = i ? typeof i == "string" ? i : i?.toISOString() : void 0;
1774
- f && p.append("as_of", f);
1775
- const O = n ?? !0;
1776
- if (p.append("inline_s3_urls", O.toString()), a !== void 0)
1777
- for (const _ of a)
1778
- p.append("id", _);
1779
- if (s !== void 0)
1780
- for (const _ of s)
1781
- p.append("splits", _);
1782
- if (r !== void 0) {
1783
- const _ = JSON.stringify(r);
1784
- p.append("metadata", _);
1785
- }
1786
- o !== void 0 && p.append("limit", o.toString()), c !== void 0 && p.append("offset", c.toString()), l !== void 0 && p.append("filter", l), d === !0 && ["attachment_urls", "outputs", "metadata"].forEach((_) => p.append("select", _));
1787
- let U = 0;
1788
- for await (const _ of this._getPaginated("/examples", p)) {
1789
- for (const b of _) {
1790
- const { attachment_urls: y, ...E } = b, g = E;
1791
- y && (g.attachments = Object.entries(y).reduce((P, [S, $]) => (P[S.slice(11)] = {
1792
- presigned_url: $.presigned_url,
1793
- mime_type: $.mime_type || void 0
1794
- }, P), {})), yield g, U++;
1795
- }
1796
- if (o !== void 0 && U >= o)
1797
- break;
1798
- }
1799
- }
1800
- async deleteExample(t) {
1801
- m(t);
1802
- const e = `/examples/${t}`;
1803
- await this.caller.call(async () => {
1804
- const a = await this._fetch(this.apiUrl + e, {
1805
- method: "DELETE",
1806
- headers: this.headers,
1807
- signal: AbortSignal.timeout(this.timeout_ms),
1808
- ...this.fetchOptions
1809
- });
1810
- return await h(a, `delete ${e}`, !0), a;
1811
- });
1812
- }
1813
- /**
1814
- * Delete multiple examples by ID.
1815
- * @param exampleIds - The IDs of the examples to delete
1816
- * @param options - Optional settings for deletion
1817
- * @param options.hardDelete - If true, permanently delete examples. If false (default), soft delete them.
1818
- */
1819
- async deleteExamples(t, e) {
1820
- if (t.forEach((a) => m(a)), e?.hardDelete) {
1821
- const a = this._getPlatformEndpointPath("datasets/examples/delete");
1822
- await this.caller.call(async () => {
1823
- const i = await this._fetch(`${this.apiUrl}${a}`, {
1824
- method: "POST",
1825
- headers: { ...this.headers, "Content-Type": "application/json" },
1826
- body: JSON.stringify({
1827
- example_ids: t,
1828
- hard_delete: !0
1829
- }),
1830
- signal: AbortSignal.timeout(this.timeout_ms),
1831
- ...this.fetchOptions
1832
- });
1833
- return await h(i, "hard delete examples", !0), i;
1834
- });
1835
- } else {
1836
- const a = new URLSearchParams();
1837
- t.forEach((i) => a.append("example_ids", i)), await this.caller.call(async () => {
1838
- const i = await this._fetch(`${this.apiUrl}/examples?${a.toString()}`, {
1839
- method: "DELETE",
1840
- headers: this.headers,
1841
- signal: AbortSignal.timeout(this.timeout_ms),
1842
- ...this.fetchOptions
1843
- });
1844
- return await h(i, "delete examples", !0), i;
1845
- });
1846
- }
1847
- }
1848
- async updateExample(t, e) {
1849
- let a;
1850
- e ? a = t : a = t.id, m(a);
1851
- let i;
1852
- e ? i = { id: a, ...e } : i = t;
1853
- let s;
1854
- return i.dataset_id !== void 0 ? s = i.dataset_id : s = (await this.readExample(a)).dataset_id, this._updateExamplesMultipart(s, [i]);
1855
- }
1856
- async updateExamples(t) {
1857
- let e;
1858
- return t[0].dataset_id === void 0 ? e = (await this.readExample(t[0].id)).dataset_id : e = t[0].dataset_id, this._updateExamplesMultipart(e, t);
1859
- }
1860
- /**
1861
- * Get dataset version by closest date or exact tag.
1862
- *
1863
- * Use this to resolve the nearest version to a given timestamp or for a given tag.
1864
- *
1865
- * @param options The options for getting the dataset version
1866
- * @param options.datasetId The ID of the dataset
1867
- * @param options.datasetName The name of the dataset
1868
- * @param options.asOf The timestamp of the dataset to retrieve
1869
- * @param options.tag The tag of the dataset to retrieve
1870
- * @returns The dataset version
1871
- */
1872
- async readDatasetVersion({ datasetId: t, datasetName: e, asOf: a, tag: i }) {
1873
- let s;
1874
- if (t ? s = t : s = (await this.readDataset({ datasetName: e })).id, m(s), a && i || !a && !i)
1875
- throw new Error("Exactly one of asOf and tag must be specified.");
1876
- const n = new URLSearchParams();
1877
- return a !== void 0 && n.append("as_of", typeof a == "string" ? a : a.toISOString()), i !== void 0 && n.append("tag", i), await (await this.caller.call(async () => {
1878
- const o = await this._fetch(`${this.apiUrl}/datasets/${s}/version?${n.toString()}`, {
1879
- method: "GET",
1880
- headers: { ...this.headers },
1881
- signal: AbortSignal.timeout(this.timeout_ms),
1882
- ...this.fetchOptions
1883
- });
1884
- return await h(o, "read dataset version"), o;
1885
- })).json();
1886
- }
1887
- async listDatasetSplits({ datasetId: t, datasetName: e, asOf: a }) {
1888
- let i;
1889
- if (t === void 0 && e === void 0)
1890
- throw new Error("Must provide dataset name or ID");
1891
- if (t !== void 0 && e !== void 0)
1892
- throw new Error("Must provide either datasetName or datasetId, not both");
1893
- t === void 0 ? i = (await this.readDataset({ datasetName: e })).id : i = t, m(i);
1894
- const s = new URLSearchParams(), n = a ? typeof a == "string" ? a : a?.toISOString() : void 0;
1895
- return n && s.append("as_of", n), await this._get(`/datasets/${i}/splits`, s);
1896
- }
1897
- async updateDatasetSplits({ datasetId: t, datasetName: e, splitName: a, exampleIds: i, remove: s = !1 }) {
1898
- let n;
1899
- if (t === void 0 && e === void 0)
1900
- throw new Error("Must provide dataset name or ID");
1901
- if (t !== void 0 && e !== void 0)
1902
- throw new Error("Must provide either datasetName or datasetId, not both");
1903
- t === void 0 ? n = (await this.readDataset({ datasetName: e })).id : n = t, m(n);
1904
- const r = {
1905
- split_name: a,
1906
- examples: i.map((c) => (m(c), c)),
1907
- remove: s
1908
- }, o = JSON.stringify(r);
1909
- await this.caller.call(async () => {
1910
- const c = await this._fetch(`${this.apiUrl}/datasets/${n}/splits`, {
1911
- method: "PUT",
1912
- headers: { ...this.headers, "Content-Type": "application/json" },
1913
- signal: AbortSignal.timeout(this.timeout_ms),
1914
- ...this.fetchOptions,
1915
- body: o
1916
- });
1917
- return await h(c, "update dataset splits", !0), c;
1918
- });
1919
- }
1920
- async createFeedback(t, e, { score: a, value: i, correction: s, comment: n, sourceInfo: r, feedbackSourceType: o = "api", sourceRunId: c, feedbackId: l, feedbackConfig: d, projectId: u, comparativeExperimentId: p }) {
1921
- if (!t && !u)
1922
- throw new Error("One of runId or projectId must be provided");
1923
- if (t && u)
1924
- throw new Error("Only one of runId or projectId can be provided");
1925
- const f = {
1926
- type: o ?? "api",
1927
- metadata: r ?? {}
1928
- };
1929
- c !== void 0 && f?.metadata !== void 0 && !f.metadata.__run && (f.metadata.__run = { run_id: c }), f?.metadata !== void 0 && f.metadata.__run?.run_id !== void 0 && m(f.metadata.__run.run_id);
1930
- const O = {
1931
- id: l ?? C(),
1932
- run_id: t,
1933
- key: e,
1934
- score: q(a),
1935
- value: i,
1936
- correction: s,
1937
- comment: n,
1938
- feedback_source: f,
1939
- comparative_experiment_id: p,
1940
- feedbackConfig: d,
1941
- session_id: u
1942
- }, U = JSON.stringify(O), _ = `${this.apiUrl}/feedback`;
1943
- return await this.caller.call(async () => {
1944
- const b = await this._fetch(_, {
1945
- method: "POST",
1946
- headers: { ...this.headers, "Content-Type": "application/json" },
1947
- signal: AbortSignal.timeout(this.timeout_ms),
1948
- ...this.fetchOptions,
1949
- body: U
1950
- });
1951
- return await h(b, "create feedback", !0), b;
1952
- }), O;
1953
- }
1954
- async updateFeedback(t, { score: e, value: a, correction: i, comment: s }) {
1955
- const n = {};
1956
- e != null && (n.score = q(e)), a != null && (n.value = a), i != null && (n.correction = i), s != null && (n.comment = s), m(t);
1957
- const r = JSON.stringify(n);
1958
- await this.caller.call(async () => {
1959
- const o = await this._fetch(`${this.apiUrl}/feedback/${t}`, {
1960
- method: "PATCH",
1961
- headers: { ...this.headers, "Content-Type": "application/json" },
1962
- signal: AbortSignal.timeout(this.timeout_ms),
1963
- ...this.fetchOptions,
1964
- body: r
1965
- });
1966
- return await h(o, "update feedback", !0), o;
1967
- });
1968
- }
1969
- async readFeedback(t) {
1970
- m(t);
1971
- const e = `/feedback/${t}`;
1972
- return await this._get(e);
1973
- }
1974
- async deleteFeedback(t) {
1975
- m(t);
1976
- const e = `/feedback/${t}`;
1977
- await this.caller.call(async () => {
1978
- const a = await this._fetch(this.apiUrl + e, {
1979
- method: "DELETE",
1980
- headers: this.headers,
1981
- signal: AbortSignal.timeout(this.timeout_ms),
1982
- ...this.fetchOptions
1983
- });
1984
- return await h(a, `delete ${e}`, !0), a;
1985
- });
1986
- }
1987
- async *listFeedback({ runIds: t, feedbackKeys: e, feedbackSourceTypes: a } = {}) {
1988
- const i = new URLSearchParams();
1989
- if (t)
1990
- for (const s of t)
1991
- m(s), i.append("run", s);
1992
- if (e)
1993
- for (const s of e)
1994
- i.append("key", s);
1995
- if (a)
1996
- for (const s of a)
1997
- i.append("source", s);
1998
- for await (const s of this._getPaginated("/feedback", i))
1999
- yield* s;
2000
- }
2001
- /**
2002
- * Creates a presigned feedback token and URL.
2003
- *
2004
- * The token can be used to authorize feedback metrics without
2005
- * needing an API key. This is useful for giving browser-based
2006
- * applications the ability to submit feedback without needing
2007
- * to expose an API key.
2008
- *
2009
- * @param runId The ID of the run.
2010
- * @param feedbackKey The feedback key.
2011
- * @param options Additional options for the token.
2012
- * @param options.expiration The expiration time for the token.
2013
- *
2014
- * @returns A promise that resolves to a FeedbackIngestToken.
2015
- */
2016
- async createPresignedFeedbackToken(t, e, { expiration: a, feedbackConfig: i } = {}) {
2017
- const s = {
2018
- run_id: t,
2019
- feedback_key: e,
2020
- feedback_config: i
2021
- };
2022
- a ? typeof a == "string" ? s.expires_at = a : (a?.hours || a?.minutes || a?.days) && (s.expires_in = a) : s.expires_in = {
2023
- hours: 3
2024
- };
2025
- const n = JSON.stringify(s);
2026
- return await (await this.caller.call(async () => {
2027
- const o = await this._fetch(`${this.apiUrl}/feedback/tokens`, {
2028
- method: "POST",
2029
- headers: { ...this.headers, "Content-Type": "application/json" },
2030
- signal: AbortSignal.timeout(this.timeout_ms),
2031
- ...this.fetchOptions,
2032
- body: n
2033
- });
2034
- return await h(o, "create presigned feedback token"), o;
2035
- })).json();
2036
- }
2037
- async createComparativeExperiment({ name: t, experimentIds: e, referenceDatasetId: a, createdAt: i, description: s, metadata: n, id: r }) {
2038
- if (e.length === 0)
2039
- throw new Error("At least one experiment is required");
2040
- if (a || (a = (await this.readProject({
2041
- projectId: e[0]
2042
- })).reference_dataset_id), !a == null)
2043
- throw new Error("A reference dataset is required");
2044
- const o = {
2045
- id: r,
2046
- name: t,
2047
- experiment_ids: e,
2048
- reference_dataset_id: a,
2049
- description: s,
2050
- created_at: (i ?? /* @__PURE__ */ new Date())?.toISOString(),
2051
- extra: {}
2052
- };
2053
- n && (o.extra.metadata = n);
2054
- const c = JSON.stringify(o);
2055
- return (await this.caller.call(async () => {
2056
- const d = await this._fetch(`${this.apiUrl}/datasets/comparative`, {
2057
- method: "POST",
2058
- headers: { ...this.headers, "Content-Type": "application/json" },
2059
- signal: AbortSignal.timeout(this.timeout_ms),
2060
- ...this.fetchOptions,
2061
- body: c
2062
- });
2063
- return await h(d, "create comparative experiment"), d;
2064
- })).json();
2065
- }
2066
- /**
2067
- * Retrieves a list of presigned feedback tokens for a given run ID.
2068
- * @param runId The ID of the run.
2069
- * @returns An async iterable of FeedbackIngestToken objects.
2070
- */
2071
- async *listPresignedFeedbackTokens(t) {
2072
- m(t);
2073
- const e = new URLSearchParams({ run_id: t });
2074
- for await (const a of this._getPaginated("/feedback/tokens", e))
2075
- yield* a;
2076
- }
2077
- _selectEvalResults(t) {
2078
- let e;
2079
- return "results" in t ? e = t.results : Array.isArray(t) ? e = t : e = [t], e;
2080
- }
2081
- async _logEvaluationFeedback(t, e, a) {
2082
- const i = this._selectEvalResults(t), s = [];
2083
- for (const n of i) {
2084
- let r = a || {};
2085
- n.evaluatorInfo && (r = { ...n.evaluatorInfo, ...r });
2086
- let o = null;
2087
- n.targetRunId ? o = n.targetRunId : e && (o = e.id), s.push(await this.createFeedback(o, n.key, {
2088
- score: n.score,
2089
- value: n.value,
2090
- comment: n.comment,
2091
- correction: n.correction,
2092
- sourceInfo: r,
2093
- sourceRunId: n.sourceRunId,
2094
- feedbackConfig: n.feedbackConfig,
2095
- feedbackSourceType: "model"
2096
- }));
2097
- }
2098
- return [i, s];
2099
- }
2100
- async logEvaluationFeedback(t, e, a) {
2101
- const [i] = await this._logEvaluationFeedback(t, e, a);
2102
- return i;
2103
- }
2104
- /**
2105
- * API for managing annotation queues
2106
- */
2107
- /**
2108
- * List the annotation queues on the LangSmith API.
2109
- * @param options - The options for listing annotation queues
2110
- * @param options.queueIds - The IDs of the queues to filter by
2111
- * @param options.name - The name of the queue to filter by
2112
- * @param options.nameContains - The substring that the queue name should contain
2113
- * @param options.limit - The maximum number of queues to return
2114
- * @returns An iterator of AnnotationQueue objects
2115
- */
2116
- async *listAnnotationQueues(t = {}) {
2117
- const { queueIds: e, name: a, nameContains: i, limit: s } = t, n = new URLSearchParams();
2118
- e && e.forEach((o, c) => {
2119
- m(o, `queueIds[${c}]`), n.append("ids", o);
2120
- }), a && n.append("name", a), i && n.append("name_contains", i), n.append("limit", (s !== void 0 ? Math.min(s, 100) : 100).toString());
2121
- let r = 0;
2122
- for await (const o of this._getPaginated("/annotation-queues", n))
2123
- if (yield* o, r++, s !== void 0 && r >= s)
2124
- break;
2125
- }
2126
- /**
2127
- * Create an annotation queue on the LangSmith API.
2128
- * @param options - The options for creating an annotation queue
2129
- * @param options.name - The name of the annotation queue
2130
- * @param options.description - The description of the annotation queue
2131
- * @param options.queueId - The ID of the annotation queue
2132
- * @returns The created AnnotationQueue object
2133
- */
2134
- async createAnnotationQueue(t) {
2135
- const { name: e, description: a, queueId: i, rubricInstructions: s } = t, n = {
2136
- name: e,
2137
- description: a,
2138
- id: i || C(),
2139
- rubric_instructions: s
2140
- }, r = JSON.stringify(Object.fromEntries(Object.entries(n).filter(([c, l]) => l !== void 0)));
2141
- return (await this.caller.call(async () => {
2142
- const c = await this._fetch(`${this.apiUrl}/annotation-queues`, {
2143
- method: "POST",
2144
- headers: { ...this.headers, "Content-Type": "application/json" },
2145
- signal: AbortSignal.timeout(this.timeout_ms),
2146
- ...this.fetchOptions,
2147
- body: r
2148
- });
2149
- return await h(c, "create annotation queue"), c;
2150
- })).json();
2151
- }
2152
- /**
2153
- * Read an annotation queue with the specified queue ID.
2154
- * @param queueId - The ID of the annotation queue to read
2155
- * @returns The AnnotationQueueWithDetails object
2156
- */
2157
- async readAnnotationQueue(t) {
2158
- return (await this.caller.call(async () => {
2159
- const a = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}`, {
2160
- method: "GET",
2161
- headers: this.headers,
2162
- signal: AbortSignal.timeout(this.timeout_ms),
2163
- ...this.fetchOptions
2164
- });
2165
- return await h(a, "read annotation queue"), a;
2166
- })).json();
2167
- }
2168
- /**
2169
- * Update an annotation queue with the specified queue ID.
2170
- * @param queueId - The ID of the annotation queue to update
2171
- * @param options - The options for updating the annotation queue
2172
- * @param options.name - The new name for the annotation queue
2173
- * @param options.description - The new description for the annotation queue
2174
- */
2175
- async updateAnnotationQueue(t, e) {
2176
- const { name: a, description: i, rubricInstructions: s } = e, n = JSON.stringify({
2177
- name: a,
2178
- description: i,
2179
- rubric_instructions: s
2180
- });
2181
- await this.caller.call(async () => {
2182
- const r = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}`, {
2183
- method: "PATCH",
2184
- headers: { ...this.headers, "Content-Type": "application/json" },
2185
- signal: AbortSignal.timeout(this.timeout_ms),
2186
- ...this.fetchOptions,
2187
- body: n
2188
- });
2189
- return await h(r, "update annotation queue", !0), r;
2190
- });
2191
- }
2192
- /**
2193
- * Delete an annotation queue with the specified queue ID.
2194
- * @param queueId - The ID of the annotation queue to delete
2195
- */
2196
- async deleteAnnotationQueue(t) {
2197
- await this.caller.call(async () => {
2198
- const e = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}`, {
2199
- method: "DELETE",
2200
- headers: { ...this.headers, Accept: "application/json" },
2201
- signal: AbortSignal.timeout(this.timeout_ms),
2202
- ...this.fetchOptions
2203
- });
2204
- return await h(e, "delete annotation queue", !0), e;
2205
- });
2206
- }
2207
- /**
2208
- * Add runs to an annotation queue with the specified queue ID.
2209
- * @param queueId - The ID of the annotation queue
2210
- * @param runIds - The IDs of the runs to be added to the annotation queue
2211
- */
2212
- async addRunsToAnnotationQueue(t, e) {
2213
- const a = JSON.stringify(e.map((i, s) => m(i, `runIds[${s}]`).toString()));
2214
- await this.caller.call(async () => {
2215
- const i = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}/runs`, {
2216
- method: "POST",
2217
- headers: { ...this.headers, "Content-Type": "application/json" },
2218
- signal: AbortSignal.timeout(this.timeout_ms),
2219
- ...this.fetchOptions,
2220
- body: a
2221
- });
2222
- return await h(i, "add runs to annotation queue", !0), i;
2223
- });
2224
- }
2225
- /**
2226
- * Get a run from an annotation queue at the specified index.
2227
- * @param queueId - The ID of the annotation queue
2228
- * @param index - The index of the run to retrieve
2229
- * @returns A Promise that resolves to a RunWithAnnotationQueueInfo object
2230
- * @throws {Error} If the run is not found at the given index or for other API-related errors
2231
- */
2232
- async getRunFromAnnotationQueue(t, e) {
2233
- const a = `/annotation-queues/${m(t, "queueId")}/run`;
2234
- return (await this.caller.call(async () => {
2235
- const s = await this._fetch(`${this.apiUrl}${a}/${e}`, {
2236
- method: "GET",
2237
- headers: this.headers,
2238
- signal: AbortSignal.timeout(this.timeout_ms),
2239
- ...this.fetchOptions
2240
- });
2241
- return await h(s, "get run from annotation queue"), s;
2242
- })).json();
2243
- }
2244
- /**
2245
- * Delete a run from an an annotation queue.
2246
- * @param queueId - The ID of the annotation queue to delete the run from
2247
- * @param queueRunId - The ID of the run to delete from the annotation queue
2248
- */
2249
- async deleteRunFromAnnotationQueue(t, e) {
2250
- await this.caller.call(async () => {
2251
- const a = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}/runs/${m(e, "queueRunId")}`, {
2252
- method: "DELETE",
2253
- headers: { ...this.headers, Accept: "application/json" },
2254
- signal: AbortSignal.timeout(this.timeout_ms),
2255
- ...this.fetchOptions
2256
- });
2257
- return await h(a, "delete run from annotation queue", !0), a;
2258
- });
2259
- }
2260
- /**
2261
- * Get the size of an annotation queue.
2262
- * @param queueId - The ID of the annotation queue
2263
- */
2264
- async getSizeFromAnnotationQueue(t) {
2265
- return (await this.caller.call(async () => {
2266
- const a = await this._fetch(`${this.apiUrl}/annotation-queues/${m(t, "queueId")}/size`, {
2267
- method: "GET",
2268
- headers: this.headers,
2269
- signal: AbortSignal.timeout(this.timeout_ms),
2270
- ...this.fetchOptions
2271
- });
2272
- return await h(a, "get size from annotation queue"), a;
2273
- })).json();
2274
- }
2275
- async _currentTenantIsOwner(t) {
2276
- const e = await this._getSettings();
2277
- return t == "-" || e.tenant_handle === t;
2278
- }
2279
- async _ownerConflictError(t, e) {
2280
- const a = await this._getSettings();
2281
- return new Error(`Cannot ${t} for another tenant.
2282
-
2283
- Current tenant: ${a.tenant_handle}
2284
-
2285
- Requested tenant: ${e}`);
2286
- }
2287
- async _getLatestCommitHash(t) {
2288
- const a = await (await this.caller.call(async () => {
2289
- const i = await this._fetch(`${this.apiUrl}/commits/${t}/?limit=1&offset=0`, {
2290
- method: "GET",
2291
- headers: this.headers,
2292
- signal: AbortSignal.timeout(this.timeout_ms),
2293
- ...this.fetchOptions
2294
- });
2295
- return await h(i, "get latest commit hash"), i;
2296
- })).json();
2297
- if (a.commits.length !== 0)
2298
- return a.commits[0].commit_hash;
2299
- }
2300
- async _likeOrUnlikePrompt(t, e) {
2301
- const [a, i, s] = I(t), n = JSON.stringify({ like: e });
2302
- return (await this.caller.call(async () => {
2303
- const o = await this._fetch(`${this.apiUrl}/likes/${a}/${i}`, {
2304
- method: "POST",
2305
- headers: { ...this.headers, "Content-Type": "application/json" },
2306
- signal: AbortSignal.timeout(this.timeout_ms),
2307
- ...this.fetchOptions,
2308
- body: n
2309
- });
2310
- return await h(o, `${e ? "like" : "unlike"} prompt`), o;
2311
- })).json();
2312
- }
2313
- async _getPromptUrl(t) {
2314
- const [e, a, i] = I(t);
2315
- if (await this._currentTenantIsOwner(e)) {
2316
- const s = await this._getSettings();
2317
- return i !== "latest" ? `${this.getHostUrl()}/prompts/${a}/${i.substring(0, 8)}?organizationId=${s.id}` : `${this.getHostUrl()}/prompts/${a}?organizationId=${s.id}`;
2318
- } else
2319
- return i !== "latest" ? `${this.getHostUrl()}/hub/${e}/${a}/${i.substring(0, 8)}` : `${this.getHostUrl()}/hub/${e}/${a}`;
2320
- }
2321
- async promptExists(t) {
2322
- return !!await this.getPrompt(t);
2323
- }
2324
- async likePrompt(t) {
2325
- return this._likeOrUnlikePrompt(t, !0);
2326
- }
2327
- async unlikePrompt(t) {
2328
- return this._likeOrUnlikePrompt(t, !1);
2329
- }
2330
- async *listCommits(t) {
2331
- for await (const e of this._getPaginated(`/commits/${t}/`, new URLSearchParams(), (a) => a.commits))
2332
- yield* e;
2333
- }
2334
- async *listPrompts(t) {
2335
- const e = new URLSearchParams();
2336
- e.append("sort_field", t?.sortField ?? "updated_at"), e.append("sort_direction", "desc"), e.append("is_archived", (!!t?.isArchived).toString()), t?.isPublic !== void 0 && e.append("is_public", t.isPublic.toString()), t?.query && e.append("query", t.query);
2337
- for await (const a of this._getPaginated("/repos", e, (i) => i.repos))
2338
- yield* a;
2339
- }
2340
- async getPrompt(t) {
2341
- const [e, a, i] = I(t), n = await (await this.caller.call(async () => {
2342
- const r = await this._fetch(`${this.apiUrl}/repos/${e}/${a}`, {
2343
- method: "GET",
2344
- headers: this.headers,
2345
- signal: AbortSignal.timeout(this.timeout_ms),
2346
- ...this.fetchOptions
2347
- });
2348
- return r?.status === 404 ? null : (await h(r, "get prompt"), r);
2349
- }))?.json();
2350
- return n?.repo ? n.repo : null;
2351
- }
2352
- async createPrompt(t, e) {
2353
- const a = await this._getSettings();
2354
- if (e?.isPublic && !a.tenant_handle)
2355
- throw new Error(`Cannot create a public prompt without first
2356
-
2357
- creating a LangChain Hub handle.
2358
- You can add a handle by creating a public prompt at:
2359
-
2360
- https://smith.langchain.com/prompts`);
2361
- const [i, s, n] = I(t);
2362
- if (!await this._currentTenantIsOwner(i))
2363
- throw await this._ownerConflictError("create a prompt", i);
2364
- const r = {
2365
- repo_handle: s,
2366
- ...e?.description && { description: e.description },
2367
- ...e?.readme && { readme: e.readme },
2368
- ...e?.tags && { tags: e.tags },
2369
- is_public: !!e?.isPublic
2370
- }, o = JSON.stringify(r), c = await this.caller.call(async () => {
2371
- const d = await this._fetch(`${this.apiUrl}/repos/`, {
2372
- method: "POST",
2373
- headers: { ...this.headers, "Content-Type": "application/json" },
2374
- signal: AbortSignal.timeout(this.timeout_ms),
2375
- ...this.fetchOptions,
2376
- body: o
2377
- });
2378
- return await h(d, "create prompt"), d;
2379
- }), { repo: l } = await c.json();
2380
- return l;
2381
- }
2382
- async createCommit(t, e, a) {
2383
- if (!await this.promptExists(t))
2384
- throw new Error("Prompt does not exist, you must create it first.");
2385
- const [i, s, n] = I(t), r = a?.parentCommitHash === "latest" || !a?.parentCommitHash ? await this._getLatestCommitHash(`${i}/${s}`) : a?.parentCommitHash, o = {
2386
- manifest: JSON.parse(JSON.stringify(e)),
2387
- parent_commit: r
2388
- }, c = JSON.stringify(o), d = await (await this.caller.call(async () => {
2389
- const u = await this._fetch(`${this.apiUrl}/commits/${i}/${s}`, {
2390
- method: "POST",
2391
- headers: { ...this.headers, "Content-Type": "application/json" },
2392
- signal: AbortSignal.timeout(this.timeout_ms),
2393
- ...this.fetchOptions,
2394
- body: c
2395
- });
2396
- return await h(u, "create commit"), u;
2397
- })).json();
2398
- return this._getPromptUrl(`${i}/${s}${d.commit_hash ? `:${d.commit_hash}` : ""}`);
2399
- }
2400
- /**
2401
- * Update examples with attachments using multipart form data.
2402
- * @param updates List of ExampleUpdateWithAttachments objects to upsert
2403
- * @returns Promise with the update response
2404
- */
2405
- async updateExamplesMultipart(t, e = []) {
2406
- return this._updateExamplesMultipart(t, e);
2407
- }
2408
- async _updateExamplesMultipart(t, e = []) {
2409
- if (!await this._getDatasetExamplesMultiPartSupport())
2410
- throw new Error("Your LangSmith deployment does not allow using the multipart examples endpoint, please upgrade your deployment to the latest version.");
2411
- const a = new FormData();
2412
- for (const n of e) {
2413
- const r = n.id, o = {
2414
- ...n.metadata && { metadata: n.metadata },
2415
- ...n.split && { split: n.split }
2416
- }, c = v(o, `Serializing body for example with id: ${r}`), l = new Blob([c], {
2417
- type: "application/json"
2418
- });
2419
- if (a.append(r, l), n.inputs) {
2420
- const d = v(n.inputs, `Serializing inputs for example with id: ${r}`), u = new Blob([d], {
2421
- type: "application/json"
2422
- });
2423
- a.append(`${r}.inputs`, u);
2424
- }
2425
- if (n.outputs) {
2426
- const d = v(n.outputs, `Serializing outputs whle updating example with id: ${r}`), u = new Blob([d], {
2427
- type: "application/json"
2428
- });
2429
- a.append(`${r}.outputs`, u);
2430
- }
2431
- if (n.attachments)
2432
- for (const [d, u] of Object.entries(n.attachments)) {
2433
- let p, f;
2434
- Array.isArray(u) ? [p, f] = u : (p = u.mimeType, f = u.data);
2435
- const O = new Blob([f], {
2436
- type: `${p}; length=${f.byteLength}`
2437
- });
2438
- a.append(`${r}.attachment.${d}`, O);
2439
- }
2440
- if (n.attachments_operations) {
2441
- const d = v(n.attachments_operations, `Serializing attachments while updating example with id: ${r}`), u = new Blob([d], {
2442
- type: "application/json"
2443
- });
2444
- a.append(`${r}.attachments_operations`, u);
2445
- }
2446
- }
2447
- const i = t ?? e[0]?.dataset_id;
2448
- return (await this.caller.call(async () => {
2449
- const n = await this._fetch(`${this.apiUrl}${this._getPlatformEndpointPath(`datasets/${i}/examples`)}`, {
2450
- method: "PATCH",
2451
- headers: this.headers,
2452
- signal: AbortSignal.timeout(this.timeout_ms),
2453
- ...this.fetchOptions,
2454
- body: a
2455
- });
2456
- return await h(n, "update examples"), n;
2457
- })).json();
2458
- }
2459
- /**
2460
- * Upload examples with attachments using multipart form data.
2461
- * @param uploads List of ExampleUploadWithAttachments objects to upload
2462
- * @returns Promise with the upload response
2463
- * @deprecated This method is deprecated and will be removed in future LangSmith versions, please use `createExamples` instead
2464
- */
2465
- async uploadExamplesMultipart(t, e = []) {
2466
- return this._uploadExamplesMultipart(t, e);
2467
- }
2468
- async _uploadExamplesMultipart(t, e = []) {
2469
- if (!await this._getDatasetExamplesMultiPartSupport())
2470
- throw new Error("Your LangSmith deployment does not allow using the multipart examples endpoint, please upgrade your deployment to the latest version.");
2471
- const a = new FormData();
2472
- for (const s of e) {
2473
- const n = (s.id ?? C()).toString(), r = {
2474
- created_at: s.created_at,
2475
- ...s.metadata && { metadata: s.metadata },
2476
- ...s.split && { split: s.split },
2477
- ...s.source_run_id && { source_run_id: s.source_run_id },
2478
- ...s.use_source_run_io && {
2479
- use_source_run_io: s.use_source_run_io
2480
- },
2481
- ...s.use_source_run_attachments && {
2482
- use_source_run_attachments: s.use_source_run_attachments
2483
- }
2484
- }, o = v(r, `Serializing body for uploaded example with id: ${n}`), c = new Blob([o], {
2485
- type: "application/json"
2486
- });
2487
- if (a.append(n, c), s.inputs) {
2488
- const l = v(s.inputs, `Serializing inputs for uploaded example with id: ${n}`), d = new Blob([l], {
2489
- type: "application/json"
2490
- });
2491
- a.append(`${n}.inputs`, d);
2492
- }
2493
- if (s.outputs) {
2494
- const l = v(s.outputs, `Serializing outputs for uploaded example with id: ${n}`), d = new Blob([l], {
2495
- type: "application/json"
2496
- });
2497
- a.append(`${n}.outputs`, d);
2498
- }
2499
- if (s.attachments)
2500
- for (const [l, d] of Object.entries(s.attachments)) {
2501
- let u, p;
2502
- Array.isArray(d) ? [u, p] = d : (u = d.mimeType, p = d.data);
2503
- const f = new Blob([p], {
2504
- type: `${u}; length=${p.byteLength}`
2505
- });
2506
- a.append(`${n}.attachment.${l}`, f);
2507
- }
2508
- }
2509
- return (await this.caller.call(async () => {
2510
- const s = await this._fetch(`${this.apiUrl}${this._getPlatformEndpointPath(`datasets/${t}/examples`)}`, {
2511
- method: "POST",
2512
- headers: this.headers,
2513
- signal: AbortSignal.timeout(this.timeout_ms),
2514
- ...this.fetchOptions,
2515
- body: a
2516
- });
2517
- return await h(s, "upload examples"), s;
2518
- })).json();
2519
- }
2520
- async updatePrompt(t, e) {
2521
- if (!await this.promptExists(t))
2522
- throw new Error("Prompt does not exist, you must create it first.");
2523
- const [a, i] = I(t);
2524
- if (!await this._currentTenantIsOwner(a))
2525
- throw await this._ownerConflictError("update a prompt", a);
2526
- const s = {};
2527
- if (e?.description !== void 0 && (s.description = e.description), e?.readme !== void 0 && (s.readme = e.readme), e?.tags !== void 0 && (s.tags = e.tags), e?.isPublic !== void 0 && (s.is_public = e.isPublic), e?.isArchived !== void 0 && (s.is_archived = e.isArchived), Object.keys(s).length === 0)
2528
- throw new Error("No valid update options provided");
2529
- const n = JSON.stringify(s);
2530
- return (await this.caller.call(async () => {
2531
- const o = await this._fetch(`${this.apiUrl}/repos/${a}/${i}`, {
2532
- method: "PATCH",
2533
- headers: {
2534
- ...this.headers,
2535
- "Content-Type": "application/json"
2536
- },
2537
- signal: AbortSignal.timeout(this.timeout_ms),
2538
- ...this.fetchOptions,
2539
- body: n
2540
- });
2541
- return await h(o, "update prompt"), o;
2542
- })).json();
2543
- }
2544
- async deletePrompt(t) {
2545
- if (!await this.promptExists(t))
2546
- throw new Error("Prompt does not exist, you must create it first.");
2547
- const [e, a, i] = I(t);
2548
- if (!await this._currentTenantIsOwner(e))
2549
- throw await this._ownerConflictError("delete a prompt", e);
2550
- return (await this.caller.call(async () => {
2551
- const n = await this._fetch(`${this.apiUrl}/repos/${e}/${a}`, {
2552
- method: "DELETE",
2553
- headers: this.headers,
2554
- signal: AbortSignal.timeout(this.timeout_ms),
2555
- ...this.fetchOptions
2556
- });
2557
- return await h(n, "delete prompt"), n;
2558
- })).json();
2559
- }
2560
- /**
2561
- * Generate a cache key for a prompt.
2562
- * Format: "{identifier}" or "{identifier}:with_model"
2563
- */
2564
- _getPromptCacheKey(t, e) {
2565
- return `${t}${e ? ":with_model" : ""}`;
2566
- }
2567
- /**
2568
- * Fetch a prompt commit directly from the API (bypassing cache).
2569
- */
2570
- async _fetchPromptFromApi(t, e) {
2571
- const [a, i, s] = I(t), r = await (await this.caller.call(async () => {
2572
- const o = await this._fetch(`${this.apiUrl}/commits/${a}/${i}/${s}${e?.includeModel ? "?include_model=true" : ""}`, {
2573
- method: "GET",
2574
- headers: this.headers,
2575
- signal: AbortSignal.timeout(this.timeout_ms),
2576
- ...this.fetchOptions
2577
- });
2578
- return await h(o, "pull prompt commit"), o;
2579
- })).json();
2580
- return {
2581
- owner: a,
2582
- repo: i,
2583
- commit_hash: r.commit_hash,
2584
- manifest: r.manifest,
2585
- examples: r.examples
2586
- };
2587
- }
2588
- async pullPromptCommit(t, e) {
2589
- if (!e?.skipCache && this._cache) {
2590
- const a = this._getPromptCacheKey(t, e?.includeModel), i = this._cache.get(a);
2591
- if (i)
2592
- return i;
2593
- const s = await this._fetchPromptFromApi(t, e);
2594
- return this._cache.set(a, s), s;
2595
- }
2596
- return this._fetchPromptFromApi(t, e);
2597
- }
2598
- /**
2599
- * This method should not be used directly, use `import { pull } from "langchain/hub"` instead.
2600
- * Using this method directly returns the JSON string of the prompt rather than a LangChain object.
2601
- * @private
2602
- */
2603
- async _pullPrompt(t, e) {
2604
- const a = await this.pullPromptCommit(t, {
2605
- includeModel: e?.includeModel,
2606
- skipCache: e?.skipCache
2607
- });
2608
- return JSON.stringify(a.manifest);
2609
- }
2610
- async pushPrompt(t, e) {
2611
- return await this.promptExists(t) ? e && Object.keys(e).some((i) => i !== "object") && await this.updatePrompt(t, {
2612
- description: e?.description,
2613
- readme: e?.readme,
2614
- tags: e?.tags,
2615
- isPublic: e?.isPublic
2616
- }) : await this.createPrompt(t, {
2617
- description: e?.description,
2618
- readme: e?.readme,
2619
- tags: e?.tags,
2620
- isPublic: e?.isPublic
2621
- }), e?.object ? await this.createCommit(t, e?.object, {
2622
- parentCommitHash: e?.parentCommitHash
2623
- }) : await this._getPromptUrl(t);
2624
- }
2625
- /**
2626
- * Clone a public dataset to your own langsmith tenant.
2627
- * This operation is idempotent. If you already have a dataset with the given name,
2628
- * this function will do nothing.
2629
-
2630
- * @param {string} tokenOrUrl The token of the public dataset to clone.
2631
- * @param {Object} [options] Additional options for cloning the dataset.
2632
- * @param {string} [options.sourceApiUrl] The URL of the langsmith server where the data is hosted. Defaults to the API URL of your current client.
2633
- * @param {string} [options.datasetName] The name of the dataset to create in your tenant. Defaults to the name of the public dataset.
2634
- * @returns {Promise<void>}
2635
- */
2636
- async clonePublicDataset(t, e = {}) {
2637
- const { sourceApiUrl: a = this.apiUrl, datasetName: i } = e, [s, n] = this.parseTokenOrUrl(t, a), r = new L({
2638
- apiUrl: s,
2639
- // Placeholder API key not needed anymore in most cases, but
2640
- // some private deployments may have API key-based rate limiting
2641
- // that would cause this to fail if we provide no value.
2642
- apiKey: "placeholder"
2643
- }), o = await r.readSharedDataset(n), c = i || o.name;
2644
- try {
2645
- if (await this.hasDataset({ datasetId: c })) {
2646
- console.log(`Dataset ${c} already exists in your tenant. Skipping.`);
2647
- return;
2648
- }
2649
- } catch {
2650
- }
2651
- const l = await r.listSharedExamples(n), d = await this.createDataset(c, {
2652
- description: o.description,
2653
- dataType: o.data_type || "kv",
2654
- inputsSchema: o.inputs_schema_definition ?? void 0,
2655
- outputsSchema: o.outputs_schema_definition ?? void 0
2656
- });
2657
- try {
2658
- await this.createExamples({
2659
- inputs: l.map((u) => u.inputs),
2660
- outputs: l.flatMap((u) => u.outputs ? [u.outputs] : []),
2661
- datasetId: d.id
2662
- });
2663
- } catch (u) {
2664
- throw console.error(`An error occurred while creating dataset ${c}. You should delete it manually.`), u;
2665
- }
2666
- }
2667
- parseTokenOrUrl(t, e, a = 2, i = "dataset") {
2668
- try {
2669
- return m(t), [e, t];
2670
- } catch {
2671
- }
2672
- try {
2673
- const n = new URL(t).pathname.split("/").filter((r) => r !== "");
2674
- if (n.length >= a) {
2675
- const r = n[n.length - a];
2676
- return [e, r];
2677
- } else
2678
- throw new Error(`Invalid public ${i} URL: ${t}`);
2679
- } catch {
2680
- throw new Error(`Invalid public ${i} URL or token: ${t}`);
2681
- }
2682
- }
2683
- /**
2684
- * Get the cache instance, if caching is enabled.
2685
- * Useful for accessing cache metrics or manually managing the cache.
2686
- */
2687
- get cache() {
2688
- return this._cache;
2689
- }
2690
- /**
2691
- * Cleanup resources held by the client.
2692
- * Stops the cache's background refresh timer.
2693
- */
2694
- cleanup() {
2695
- this._cache && this._cache.stop();
2696
- }
2697
- /**
2698
- * Awaits all pending trace batches. Useful for environments where
2699
- * you need to be sure that all tracing requests finish before execution ends,
2700
- * such as serverless environments.
2701
- *
2702
- * @example
2703
- * ```
2704
- * import { Client } from "langsmith";
2705
- *
2706
- * const client = new Client();
2707
- *
2708
- * try {
2709
- * // Tracing happens here
2710
- * ...
2711
- * } finally {
2712
- * await client.awaitPendingTraceBatches();
2713
- * }
2714
- * ```
2715
- *
2716
- * @returns A promise that resolves once all currently pending traces have sent.
2717
- */
2718
- async awaitPendingTraceBatches() {
2719
- if (this.manualFlushMode)
2720
- return console.warn("[WARNING]: When tracing in manual flush mode, you must call `await client.flush()` manually to submit trace batches."), Promise.resolve();
2721
- await new Promise((t) => setTimeout(t, 1)), await Promise.all([
2722
- ...this.autoBatchQueue.items.map(({ itemPromise: t }) => t),
2723
- this.batchIngestCaller.queue.onIdle()
2724
- ]), this.langSmithToOTELTranslator !== void 0 && await Y()?.DEFAULT_LANGSMITH_SPAN_PROCESSOR?.forceFlush();
2725
- }
2726
- }
2727
- function K(w) {
2728
- return "dataset_id" in w || "dataset_name" in w;
2729
- }
2730
- export {
2731
- pt as AutoBatchQueue,
2732
- L as Client,
2733
- G as DEFAULT_MAX_SIZE_BYTES,
2734
- dt as DEFAULT_UNCOMPRESSED_BATCH_SIZE_LIMIT_BYTES,
2735
- F as mergeRuntimeEnvIntoRun
2736
- };
2737
- //# sourceMappingURL=client.es.js.map