@nocobase/plugin-ai 1.9.33 → 1.9.34
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.
- package/dist/externalVersion.js +6 -6
- package/dist/node_modules/@langchain/core/dist/caches/base.cjs +28 -5
- package/dist/node_modules/@langchain/core/dist/caches/base.d.ts +13 -1
- package/dist/node_modules/@langchain/core/dist/caches/base.js +25 -2
- package/dist/node_modules/@langchain/core/dist/callbacks/base.cjs +19 -9
- package/dist/node_modules/@langchain/core/dist/callbacks/base.d.ts +37 -22
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/index.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/web.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.cjs +15 -10
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.d.ts +3 -3
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.js +11 -6
- package/dist/node_modules/@langchain/core/dist/embeddings.d.ts +6 -6
- package/dist/node_modules/@langchain/core/dist/errors/index.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/example_selectors/conditional.cjs +3 -3
- package/dist/node_modules/@langchain/core/dist/index.cjs +3 -0
- package/dist/node_modules/@langchain/core/dist/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/dist/index.js +3 -0
- package/dist/node_modules/@langchain/core/dist/indexing/base.cjs +19 -7
- package/dist/node_modules/@langchain/core/dist/indexing/base.d.ts +3 -0
- package/dist/node_modules/@langchain/core/dist/indexing/base.js +14 -2
- package/dist/node_modules/@langchain/core/dist/language_models/base.cjs +31 -7
- package/dist/node_modules/@langchain/core/dist/language_models/base.d.ts +40 -9
- package/dist/node_modules/@langchain/core/dist/language_models/base.js +29 -5
- package/dist/node_modules/@langchain/core/dist/language_models/chat_models.cjs +37 -10
- package/dist/node_modules/@langchain/core/dist/language_models/chat_models.d.ts +9 -3
- package/dist/node_modules/@langchain/core/dist/language_models/chat_models.js +36 -9
- package/dist/node_modules/@langchain/core/dist/load/import_map.cjs +17 -7
- package/dist/node_modules/@langchain/core/dist/load/index.cjs +18 -9
- package/dist/node_modules/@langchain/core/dist/load/map_keys.cjs +3 -4
- package/dist/node_modules/@langchain/core/dist/load/serializable.cjs +2 -2
- package/dist/node_modules/@langchain/core/dist/memory.cjs +2 -2
- package/dist/node_modules/@langchain/core/dist/messages/ai.cjs +46 -12
- package/dist/node_modules/@langchain/core/dist/messages/ai.d.ts +26 -10
- package/dist/node_modules/@langchain/core/dist/messages/ai.js +43 -9
- package/dist/node_modules/@langchain/core/dist/messages/base.cjs +74 -20
- package/dist/node_modules/@langchain/core/dist/messages/base.d.ts +5 -6
- package/dist/node_modules/@langchain/core/dist/messages/base.js +64 -10
- package/dist/node_modules/@langchain/core/dist/messages/chat.cjs +3 -3
- package/dist/node_modules/@langchain/core/dist/messages/content_blocks.cjs +165 -0
- package/dist/node_modules/@langchain/core/dist/messages/content_blocks.d.ts +151 -0
- package/dist/node_modules/@langchain/core/dist/messages/content_blocks.js +154 -0
- package/dist/node_modules/@langchain/core/dist/messages/function.cjs +3 -3
- package/dist/node_modules/@langchain/core/dist/messages/human.cjs +13 -3
- package/dist/node_modules/@langchain/core/dist/messages/human.d.ts +13 -1
- package/dist/node_modules/@langchain/core/dist/messages/human.js +10 -0
- package/dist/node_modules/@langchain/core/dist/messages/index.cjs +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/index.js +1 -0
- package/dist/node_modules/@langchain/core/dist/messages/system.cjs +13 -3
- package/dist/node_modules/@langchain/core/dist/messages/system.d.ts +13 -1
- package/dist/node_modules/@langchain/core/dist/messages/system.js +10 -0
- package/dist/node_modules/@langchain/core/dist/messages/tool.cjs +12 -5
- package/dist/node_modules/@langchain/core/dist/messages/tool.d.ts +13 -5
- package/dist/node_modules/@langchain/core/dist/messages/tool.js +7 -0
- package/dist/node_modules/@langchain/core/dist/messages/transformers.cjs +5 -6
- package/dist/node_modules/@langchain/core/dist/messages/transformers.js +1 -1
- package/dist/node_modules/@langchain/core/dist/messages/utils.cjs +10 -7
- package/dist/node_modules/@langchain/core/dist/messages/utils.js +4 -0
- package/dist/node_modules/@langchain/core/dist/output_parsers/json.cjs +7 -0
- package/dist/node_modules/@langchain/core/dist/output_parsers/json.d.ts +2 -0
- package/dist/node_modules/@langchain/core/dist/output_parsers/json.js +7 -0
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/json_output_functions_parsers.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.cjs +7 -6
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.d.ts +19 -5
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.js +3 -2
- package/dist/node_modules/@langchain/core/dist/output_parsers/string.cjs +1 -1
- package/dist/node_modules/@langchain/core/dist/output_parsers/string.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/output_parsers/string.js +1 -1
- package/dist/node_modules/@langchain/core/dist/output_parsers/structured.cjs +17 -11
- package/dist/node_modules/@langchain/core/dist/output_parsers/structured.d.ts +10 -9
- package/dist/node_modules/@langchain/core/dist/output_parsers/structured.js +15 -9
- package/dist/node_modules/@langchain/core/dist/output_parsers/xml.cjs +2 -2
- package/dist/node_modules/@langchain/core/dist/prompts/base.cjs +36 -3
- package/dist/node_modules/@langchain/core/dist/prompts/chat.cjs +72 -24
- package/dist/node_modules/@langchain/core/dist/prompts/chat.d.ts +5 -4
- package/dist/node_modules/@langchain/core/dist/prompts/chat.js +72 -24
- package/dist/node_modules/@langchain/core/dist/prompts/dict.cjs +114 -0
- package/dist/node_modules/@langchain/core/dist/prompts/dict.d.ts +18 -0
- package/dist/node_modules/@langchain/core/dist/prompts/dict.js +110 -0
- package/dist/node_modules/@langchain/core/dist/prompts/index.cjs +1 -0
- package/dist/node_modules/@langchain/core/dist/prompts/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/dist/prompts/index.js +1 -0
- package/dist/node_modules/@langchain/core/dist/prompts/structured.cjs +16 -6
- package/dist/node_modules/@langchain/core/dist/prompts/structured.d.ts +3 -1
- package/dist/node_modules/@langchain/core/dist/prompts/structured.js +16 -6
- package/dist/node_modules/@langchain/core/dist/prompts/template.cjs +24 -13
- package/dist/node_modules/@langchain/core/dist/prompts/template.js +24 -13
- package/dist/node_modules/@langchain/core/dist/runnables/base.cjs +81 -38
- package/dist/node_modules/@langchain/core/dist/runnables/base.d.ts +44 -18
- package/dist/node_modules/@langchain/core/dist/runnables/base.js +74 -31
- package/dist/node_modules/@langchain/core/dist/runnables/config.cjs +6 -6
- package/dist/node_modules/@langchain/core/dist/runnables/graph.cjs +2 -2
- package/dist/node_modules/@langchain/core/dist/runnables/graph.js +2 -2
- package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.cjs +29 -6
- package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.d.ts +25 -1
- package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.js +26 -3
- package/dist/node_modules/@langchain/core/dist/runnables/iter.cjs +5 -5
- package/dist/node_modules/@langchain/core/dist/runnables/iter.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/runnables/passthrough.cjs +1 -1
- package/dist/node_modules/@langchain/core/dist/runnables/passthrough.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/runnables/passthrough.js +1 -1
- package/dist/node_modules/@langchain/core/dist/runnables/remote.cjs +2 -0
- package/dist/node_modules/@langchain/core/dist/runnables/remote.d.ts +2 -0
- package/dist/node_modules/@langchain/core/dist/runnables/remote.js +2 -0
- package/dist/node_modules/@langchain/core/dist/runnables/types.d.ts +2 -2
- package/dist/node_modules/@langchain/core/dist/runnables/utils.cjs +2 -2
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/context.cjs +3 -3
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.cjs +1 -1
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.js +1 -1
- package/dist/node_modules/@langchain/core/dist/singletons/callbacks.cjs +10 -6
- package/dist/node_modules/@langchain/core/dist/singletons/callbacks.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/singletons/callbacks.js +7 -2
- package/dist/node_modules/@langchain/core/dist/structured_query/utils.cjs +7 -8
- package/dist/node_modules/@langchain/core/dist/tools/index.cjs +99 -45
- package/dist/node_modules/@langchain/core/dist/tools/index.d.ts +51 -151
- package/dist/node_modules/@langchain/core/dist/tools/index.js +94 -44
- package/dist/node_modules/@langchain/core/dist/tools/types.cjs +64 -0
- package/dist/node_modules/@langchain/core/dist/tools/types.d.ts +272 -0
- package/dist/node_modules/@langchain/core/dist/tools/types.js +58 -0
- package/dist/node_modules/@langchain/core/dist/tools/utils.cjs +12 -2
- package/dist/node_modules/@langchain/core/dist/tools/utils.d.ts +5 -0
- package/dist/node_modules/@langchain/core/dist/tools/utils.js +9 -0
- package/dist/node_modules/@langchain/core/dist/tracers/base.cjs +96 -32
- package/dist/node_modules/@langchain/core/dist/tracers/base.d.ts +104 -84
- package/dist/node_modules/@langchain/core/dist/tracers/base.js +94 -30
- package/dist/node_modules/@langchain/core/dist/tracers/initialize.cjs +2 -3
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.cjs +39 -75
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.d.ts +6 -4
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.js +39 -75
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.cjs +9 -9
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.js +9 -9
- package/dist/node_modules/@langchain/core/dist/utils/env.cjs +11 -6
- package/dist/node_modules/@langchain/core/dist/utils/env.d.ts +4 -0
- package/dist/node_modules/@langchain/core/dist/utils/env.js +7 -3
- package/dist/node_modules/@langchain/core/dist/utils/event_source_parse.cjs +5 -5
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs +17 -7
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.d.ts +4 -4
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs +8 -8
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.cjs +4 -5
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs +10 -10
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.d.ts +3 -3
- package/dist/node_modules/@langchain/core/dist/utils/function_calling.cjs +20 -72
- package/dist/node_modules/@langchain/core/dist/utils/function_calling.d.ts +8 -38
- package/dist/node_modules/@langchain/core/dist/utils/function_calling.js +12 -64
- package/dist/node_modules/@langchain/core/dist/utils/hash.cjs +3 -1
- package/dist/node_modules/@langchain/core/dist/utils/hash.d.ts +7 -0
- package/dist/node_modules/@langchain/core/dist/utils/hash.js +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha1/hash.cjs +17 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha1/hash.d.ts +4 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha1/hash.js +17 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.cjs +448 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.d.ts +1 -0
- package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.js +445 -0
- package/dist/node_modules/@langchain/core/dist/utils/json.cjs +19 -7
- package/dist/node_modules/@langchain/core/dist/utils/json.js +17 -4
- package/dist/node_modules/@langchain/core/dist/utils/json_schema.cjs +95 -3
- package/dist/node_modules/@langchain/core/dist/utils/json_schema.d.ts +18 -0
- package/dist/node_modules/@langchain/core/dist/utils/json_schema.js +90 -0
- package/dist/node_modules/@langchain/core/dist/utils/math.cjs +6 -7
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/distances.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/similarities.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.cjs +2 -3
- package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs +35 -35
- package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.js +35 -35
- package/dist/node_modules/@langchain/core/dist/utils/signal.cjs +1 -2
- package/dist/node_modules/@langchain/core/dist/utils/stream.cjs +4 -4
- package/dist/node_modules/@langchain/core/dist/utils/testing/helpers.cjs +7 -0
- package/dist/node_modules/@langchain/core/dist/utils/testing/helpers.d.ts +3 -0
- package/dist/node_modules/@langchain/core/dist/utils/testing/helpers.js +3 -0
- package/dist/node_modules/@langchain/core/dist/utils/testing/index.cjs +109 -24
- package/dist/node_modules/@langchain/core/dist/utils/testing/index.d.ts +43 -16
- package/dist/node_modules/@langchain/core/dist/utils/testing/index.js +109 -24
- package/dist/node_modules/@langchain/core/dist/utils/tiktoken.cjs +2 -3
- package/dist/node_modules/@langchain/core/dist/utils/types/index.cjs +1 -1
- package/dist/node_modules/@langchain/core/dist/utils/types/index.d.ts +1 -1
- package/dist/node_modules/@langchain/core/dist/utils/types/index.js +1 -1
- package/dist/node_modules/@langchain/core/dist/utils/types/zod.cjs +619 -0
- package/dist/node_modules/@langchain/core/dist/utils/types/zod.d.ts +212 -0
- package/dist/node_modules/@langchain/core/dist/utils/types/zod.js +595 -0
- package/dist/node_modules/@langchain/core/index.cjs +1 -1
- package/dist/node_modules/@langchain/core/index.d.cts +3 -0
- package/dist/node_modules/@langchain/core/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/README.md +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/anonymizer/index.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.cjs +1153 -542
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.d.ts +157 -18
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.js +1136 -535
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_random_name.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.cjs +6 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.js +5 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.cjs +7 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.js +6 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.cjs +8 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.js +6 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/langchain.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.cjs +60 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.d.ts +49 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.cjs +222 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.d.ts +60 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.js +185 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.cjs +90 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.d.ts +13 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.js +85 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.cjs +93 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.d.ts +64 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.js +89 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.cjs +447 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.d.ts +22 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.js +410 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.cjs +5 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.d.ts +29 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.cjs +23 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.d.ts +12 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.js +19 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.cjs +439 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.d.ts +240 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.js +435 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.cjs +235 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.d.ts +27 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.js +232 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.cjs +170 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.js +165 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.cjs +4 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.d.ts +2 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.js +2 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.cjs +70 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.d.ts +182 -60
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.js +70 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.cjs +6 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.cjs +350 -63
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.d.ts +35 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.js +324 -47
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/schemas.d.ts +32 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.cjs +30 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.d.ts +2 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.js +27 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.cjs +155 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.d.ts +63 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.js +147 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.cjs +8 -19
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.d.ts +7 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.js +4 -15
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.js +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.cjs +250 -64
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.d.ts +21 -18
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.js +249 -63
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.cjs +6 -27
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.js +5 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.cjs +3 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.d.ts +3 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.cjs +16 -28
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.d.ts +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.js +16 -28
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/atee.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.cjs +48 -62
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.d.ts +8 -18
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.js +39 -53
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.cjs +68 -10
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.d.ts +7 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.js +63 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +54 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.d.ts +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +53 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.cjs +3 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.d.ts +2 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.cjs +170 -70
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.d.ts +79 -67
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.js +148 -58
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/matchers.cjs +3 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/reporter.cjs +18 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/types.d.ts +19 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.d.ts +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.cjs +13 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.js +12 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.cjs +2 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.cjs +10 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.cjs +2 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/shuffle.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.cjs +155 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.d.ts +10 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.js +150 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.cjs +1 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vercel.cjs +277 -84
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vercel.d.ts +17 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vercel.js +275 -83
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.cjs +11 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.d.mts +392 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.d.ts +73 -116
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.js +8 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.mjs +324 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.cjs +2 -17
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.d.mts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.js +2 -17
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.mjs +12 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.d.mts +8 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.mjs +38 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.cjs +25 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.js +21 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.cjs +63 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.d.ts +167 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.js +59 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.cjs +162 -90
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.d.ts +10 -11
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.js +163 -91
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/vercel.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/vercel.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/vercel.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.d.cts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.d.cts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.d.cts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.cjs +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.d.cts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/langsmith/package.json +84 -14
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.d.ts +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.js +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.d.ts +1 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.js +1 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/index.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/ZodError.js +137 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +79 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/index.js +59 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/object.js +70 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +159 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +56 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/string.js +55 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/benchmarks/union.js +79 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/errors.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/external.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +124 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/helpers/util.js +137 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/index.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/locales/en.js +109 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/standard-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/tests/Mocker.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v3/types.js +3773 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/checks.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/coerce.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/compat.js +63 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/errors.js +67 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/external.js +69 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/index.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/iso.js +60 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/parse.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/classic/schemas.js +1100 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/api.js +1021 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/checks.js +580 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/config.js +10 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/core.js +63 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/doc.js +39 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/errors.js +222 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/function.js +102 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/index.js +44 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/json-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/parse.js +87 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/regexes.js +103 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/registries.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/schemas.js +1719 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/standard-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +833 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/util.js +537 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/versions.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/core/zsf.js +172 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/index.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ar.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/az.js +141 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/be.js +190 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ca.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/cs.js +161 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/de.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/en.js +145 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/es.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/fa.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/fi.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/fr.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/he.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/hu.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/id.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/index.js +82 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/it.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ja.js +141 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/kh.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ko.js +147 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/mk.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ms.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/nl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/no.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ota.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/pl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ps.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/pt.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ru.js +190 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/sl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/sv.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ta.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/th.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/tr.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ua.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/ur.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/vi.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/checks.js +34 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/coerce.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/external.js +61 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/index.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/iso.js +60 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/parse.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/cjs/v4/mini/schemas.js +831 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/ZodError.js +132 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +49 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +74 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/index.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +49 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/object.js +65 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +154 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +51 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/string.js +50 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/benchmarks/union.js +74 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/errors.js +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/external.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/helpers/util.js +133 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/index.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/locales/en.js +107 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/standard-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/tests/Mocker.js +53 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v3/types.js +3691 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/checks.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/coerce.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/compat.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/errors.js +41 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/external.js +18 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/index.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/iso.js +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/parse.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/classic/schemas.js +998 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/api.js +889 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/checks.js +554 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/config.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/core.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/doc.js +35 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/errors.js +191 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/function.js +75 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/index.js +15 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/json-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/parse.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/regexes.js +95 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/registries.js +42 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/schemas.js +1688 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/to-json-schema.js +828 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/util.js +491 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/versions.js +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/core/zsf.js +171 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ar.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/az.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/be.js +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ca.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/cs.js +135 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/de.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/en.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/es.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/fa.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/fi.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/fr-CA.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/fr.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/he.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/hu.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/id.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/index.js +38 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/it.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ja.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/kh.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ko.js +121 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/mk.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ms.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/nl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/no.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ota.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/pl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ps.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/pt.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ru.js +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/sl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/sv.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ta.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/th.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/tr.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ua.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/ur.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/vi.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/zh-CN.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/locales/zh-TW.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/checks.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/coerce.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/external.js +13 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/iso.js +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/parse.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/esm/v4/mini/schemas.js +725 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/errors.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/external.d.ts +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/index.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v3/types.d.ts +1031 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/external.d.ts +13 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/classic/schemas.d.ts +624 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/api.d.ts +281 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/config.d.ts +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/core.d.ts +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/errors.d.ts +204 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/function.d.ts +52 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/index.d.ts +15 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/json-schema.d.ts +87 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/regexes.d.ts +62 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/registries.d.ts +39 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/schemas.d.ts +1005 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/util.d.ts +183 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/en.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/index.d.ts +38 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/kh.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/tr.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ua.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/external.d.ts +11 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/dist/types/v4/mini/schemas.d.ts +351 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.d.ts +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/README.md +208 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/index.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/ZodError.js +137 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/datetime.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/discriminatedUnion.js +79 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/index.js +59 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/ipv4.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/object.js +70 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/primitives.js +159 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/realworld.js +56 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/string.js +55 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/benchmarks/union.js +79 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/errors.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/external.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/enumUtil.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/errorUtil.js +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/parseUtil.js +124 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/partialUtil.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/typeAliases.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/helpers/util.js +137 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/index.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/locales/en.js +109 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/standard-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/tests/Mocker.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v3/types.js +3773 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/checks.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/coerce.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/compat.js +63 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/errors.js +67 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/external.js +69 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/index.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/iso.js +60 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/parse.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/classic/schemas.js +1100 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/api.js +1021 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/checks.js +580 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/config.js +10 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/core.js +63 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/doc.js +39 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/errors.js +222 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/function.js +102 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/index.js +44 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/json-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/parse.js +87 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/regexes.js +103 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/registries.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/schemas.js +1719 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/standard-schema.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/to-json-schema.js +833 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/util.js +537 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/versions.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/core/zsf.js +172 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/index.js +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ar.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/az.js +141 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/be.js +190 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ca.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/cs.js +161 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/de.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/en.js +145 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/es.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/fa.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/fi.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/fr-CA.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/fr.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/he.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/hu.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/id.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/index.js +82 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/it.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ja.js +141 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/kh.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ko.js +147 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/mk.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ms.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/nl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/no.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ota.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/pl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ps.js +148 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/pt.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ru.js +190 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/sl.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/sv.js +144 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ta.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/th.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/tr.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ua.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/ur.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/vi.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/zh-CN.js +142 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/locales/zh-TW.js +143 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/checks.js +34 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/coerce.js +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/external.js +61 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/index.js +32 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/iso.js +60 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/parse.js +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/cjs/v4/mini/schemas.js +831 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/ZodError.js +132 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/datetime.js +49 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/discriminatedUnion.js +74 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/index.js +54 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/ipv4.js +49 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/object.js +65 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/primitives.js +154 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/realworld.js +51 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/string.js +50 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/benchmarks/union.js +74 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/errors.js +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/external.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/helpers/util.js +133 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/index.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/locales/en.js +107 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/standard-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/tests/Mocker.js +53 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v3/types.js +3691 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/checks.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/coerce.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/compat.js +33 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/errors.js +41 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/external.js +18 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/index.js +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/iso.js +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/parse.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/classic/schemas.js +998 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/api.js +889 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/checks.js +554 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/config.js +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/core.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/doc.js +35 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/errors.js +191 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/function.js +75 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/index.js +15 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/json-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/parse.js +57 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/regexes.js +95 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/registries.js +42 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/schemas.js +1688 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/to-json-schema.js +828 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/util.js +491 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/versions.js +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/core/zsf.js +171 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ar.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/az.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/be.js +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ca.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/cs.js +135 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/de.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/en.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/es.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/fa.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/fi.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/fr-CA.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/fr.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/he.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/hu.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/id.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/index.js +38 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/it.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ja.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/kh.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ko.js +121 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/mk.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ms.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/nl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/no.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ota.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/pl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ps.js +122 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/pt.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ru.js +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/sl.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/sv.js +118 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ta.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/th.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/tr.js +115 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ua.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/ur.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/vi.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/zh-CN.js +116 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/locales/zh-TW.js +117 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/checks.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/coerce.js +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/external.js +13 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/index.js +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/iso.js +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/parse.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/esm/v4/mini/schemas.js +725 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/package.json +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/datetime.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/discriminatedUnion.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/ipv4.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/object.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/primitives.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/realworld.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/string.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/benchmarks/union.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/errors.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/external.d.ts +6 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/index.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/tests/Mocker.d.ts +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v3/types.d.ts +1031 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/compat.d.ts +48 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/external.d.ts +13 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/index.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/parse.d.ts +23 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/classic/schemas.d.ts +624 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/api.d.ts +281 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/checks.d.ts +277 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/config.d.ts +9 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/core.d.ts +47 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/errors.d.ts +204 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/function.d.ts +52 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/index.d.ts +15 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/json-schema.d.ts +87 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/parse.d.ts +25 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/regexes.d.ts +62 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/registries.d.ts +39 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/schemas.d.ts +1005 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/standard-schema.d.ts +55 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/to-json-schema.d.ts +84 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/util.d.ts +183 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/core/zsf.d.ts +91 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/en.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/index.d.ts +38 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/kh.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/tr.d.ts +5 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ua.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/external.d.ts +11 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/dist/types/v4/mini/schemas.d.ts +351 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/package.json +120 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v3/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v3/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/core/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/core/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/locales/en.d.ts +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/locales/en.js +2 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4/locales/index.js +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/dist/node_modules/@langchain/core/node_modules/zod-to-json-schema/node_modules/zod/v4-mini/index.js +1 -0
- package/dist/node_modules/@langchain/core/package.json +1 -1
- package/dist/node_modules/@langchain/core/utils/hash/insecure.cjs +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/insecure.d.cts +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/insecure.d.ts +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/insecure.js +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/sha256.cjs +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/sha256.d.cts +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/sha256.d.ts +1 -0
- package/dist/node_modules/@langchain/core/utils/hash/sha256.js +1 -0
- package/dist/node_modules/@langchain/deepseek/index.cjs +18 -10
- package/dist/node_modules/@langchain/deepseek/package.json +1 -1
- package/dist/node_modules/@langchain/openai/dist/chat_models.cjs +527 -11
- package/dist/node_modules/@langchain/openai/dist/chat_models.d.ts +46 -5
- package/dist/node_modules/@langchain/openai/dist/chat_models.js +528 -12
- package/dist/node_modules/@langchain/openai/dist/llms.cjs +1 -1
- package/dist/node_modules/@langchain/openai/dist/llms.js +1 -1
- package/dist/node_modules/@langchain/openai/dist/types.d.ts +1 -1
- package/dist/node_modules/@langchain/openai/index.cjs +18 -10
- package/dist/node_modules/@langchain/openai/package.json +1 -1
- package/package.json +2 -2
- package/dist/node_modules/@langchain/core/dist/utils/types/is_zod_schema.cjs +0 -16
- package/dist/node_modules/@langchain/core/dist/utils/types/is_zod_schema.d.ts +0 -8
- package/dist/node_modules/@langchain/core/dist/utils/types/is_zod_schema.js +0 -12
- /package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/{vercel.types.cjs → utils/vercel.types.cjs} +0 -0
- /package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/{vercel.types.d.ts → utils/vercel.types.d.ts} +0 -0
- /package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/{vercel.types.js → utils/vercel.types.js} +0 -0
|
@@ -1,33 +1,82 @@
|
|
|
1
|
+
import { RunTree, convertToDottedOrderFormat } from "langsmith/run_trees";
|
|
1
2
|
import { BaseCallbackHandler, } from "../callbacks/base.js";
|
|
3
|
+
import { getRuntimeEnvironmentSync } from "../utils/env.js";
|
|
4
|
+
// TODO: Remove and just use base LangSmith Run type
|
|
5
|
+
const convertRunTreeToRun = (runTree) => {
|
|
6
|
+
if (!runTree) {
|
|
7
|
+
return undefined;
|
|
8
|
+
}
|
|
9
|
+
// Important that we return the raw run tree object since the reference
|
|
10
|
+
// is mutated in other places.
|
|
11
|
+
// TODO: Remove places where this is being done.
|
|
12
|
+
// eslint-disable-next-line no-param-reassign
|
|
13
|
+
runTree.events = runTree.events ?? [];
|
|
14
|
+
// eslint-disable-next-line no-param-reassign
|
|
15
|
+
runTree.child_runs = runTree.child_runs ?? [];
|
|
16
|
+
// TODO: Remove this cast and just use the LangSmith RunTree type.
|
|
17
|
+
return runTree;
|
|
18
|
+
};
|
|
19
|
+
function convertRunToRunTree(run, parentRun) {
|
|
20
|
+
if (!run) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
return new RunTree({
|
|
24
|
+
...run,
|
|
25
|
+
start_time: run._serialized_start_time ?? run.start_time,
|
|
26
|
+
parent_run: convertRunToRunTree(parentRun),
|
|
27
|
+
child_runs: run.child_runs
|
|
28
|
+
.map((r) => convertRunToRunTree(r))
|
|
29
|
+
.filter((r) => r !== undefined),
|
|
30
|
+
extra: {
|
|
31
|
+
...run.extra,
|
|
32
|
+
runtime: getRuntimeEnvironmentSync(),
|
|
33
|
+
},
|
|
34
|
+
tracingEnabled: false,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
2
37
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3
38
|
function _coerceToDict(value, defaultKey) {
|
|
4
39
|
return value && !Array.isArray(value) && typeof value === "object"
|
|
5
40
|
? value
|
|
6
41
|
: { [defaultKey]: value };
|
|
7
42
|
}
|
|
8
|
-
function stripNonAlphanumeric(input) {
|
|
9
|
-
return input.replace(/[-:.]/g, "");
|
|
10
|
-
}
|
|
11
|
-
function convertToDottedOrderFormat(epoch, runId, executionOrder) {
|
|
12
|
-
const paddedOrder = executionOrder.toFixed(0).slice(0, 3).padStart(3, "0");
|
|
13
|
-
return (stripNonAlphanumeric(`${new Date(epoch).toISOString().slice(0, -1)}${paddedOrder}Z`) + runId);
|
|
14
|
-
}
|
|
15
43
|
export function isBaseTracer(x) {
|
|
16
44
|
return typeof x._addRunToRunMap === "function";
|
|
17
45
|
}
|
|
18
46
|
export class BaseTracer extends BaseCallbackHandler {
|
|
19
47
|
constructor(_fields) {
|
|
20
48
|
super(...arguments);
|
|
49
|
+
/** @deprecated Use `runTreeMap` instead. */
|
|
21
50
|
Object.defineProperty(this, "runMap", {
|
|
22
51
|
enumerable: true,
|
|
23
52
|
configurable: true,
|
|
24
53
|
writable: true,
|
|
25
54
|
value: new Map()
|
|
26
55
|
});
|
|
56
|
+
Object.defineProperty(this, "runTreeMap", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
configurable: true,
|
|
59
|
+
writable: true,
|
|
60
|
+
value: new Map()
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(this, "usesRunTreeMap", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true,
|
|
66
|
+
value: false
|
|
67
|
+
});
|
|
27
68
|
}
|
|
28
69
|
copy() {
|
|
29
70
|
return this;
|
|
30
71
|
}
|
|
72
|
+
getRunById(runId) {
|
|
73
|
+
if (runId === undefined) {
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
return this.usesRunTreeMap
|
|
77
|
+
? convertRunTreeToRun(this.runTreeMap.get(runId))
|
|
78
|
+
: this.runMap.get(runId);
|
|
79
|
+
}
|
|
31
80
|
stringifyError(error) {
|
|
32
81
|
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
33
82
|
if (error instanceof Error) {
|
|
@@ -42,10 +91,10 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
42
91
|
parentRun.child_runs.push(childRun);
|
|
43
92
|
}
|
|
44
93
|
_addRunToRunMap(run) {
|
|
45
|
-
const currentDottedOrder = convertToDottedOrderFormat(run.start_time, run.id, run.execution_order);
|
|
94
|
+
const { dottedOrder: currentDottedOrder, microsecondPrecisionDatestring } = convertToDottedOrderFormat(new Date(run.start_time).getTime(), run.id, run.execution_order);
|
|
46
95
|
const storedRun = { ...run };
|
|
96
|
+
const parentRun = this.getRunById(storedRun.parent_run_id);
|
|
47
97
|
if (storedRun.parent_run_id !== undefined) {
|
|
48
|
-
const parentRun = this.runMap.get(storedRun.parent_run_id);
|
|
49
98
|
if (parentRun) {
|
|
50
99
|
this._addChildRun(parentRun, storedRun);
|
|
51
100
|
parentRun.child_execution_order = Math.max(parentRun.child_execution_order, storedRun.child_execution_order);
|
|
@@ -55,6 +104,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
55
104
|
parentRun.dotted_order,
|
|
56
105
|
currentDottedOrder,
|
|
57
106
|
].join(".");
|
|
107
|
+
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
58
108
|
}
|
|
59
109
|
else {
|
|
60
110
|
// This can happen naturally for callbacks added within a run
|
|
@@ -71,23 +121,37 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
71
121
|
else {
|
|
72
122
|
storedRun.trace_id = storedRun.id;
|
|
73
123
|
storedRun.dotted_order = currentDottedOrder;
|
|
124
|
+
storedRun._serialized_start_time = microsecondPrecisionDatestring;
|
|
125
|
+
}
|
|
126
|
+
if (this.usesRunTreeMap) {
|
|
127
|
+
const runTree = convertRunToRunTree(storedRun, parentRun);
|
|
128
|
+
if (runTree !== undefined) {
|
|
129
|
+
this.runTreeMap.set(storedRun.id, runTree);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this.runMap.set(storedRun.id, storedRun);
|
|
74
134
|
}
|
|
75
|
-
this.runMap.set(storedRun.id, storedRun);
|
|
76
135
|
return storedRun;
|
|
77
136
|
}
|
|
78
137
|
async _endTrace(run) {
|
|
79
|
-
const parentRun = run.parent_run_id !== undefined && this.
|
|
138
|
+
const parentRun = run.parent_run_id !== undefined && this.getRunById(run.parent_run_id);
|
|
80
139
|
if (parentRun) {
|
|
81
140
|
parentRun.child_execution_order = Math.max(parentRun.child_execution_order, run.child_execution_order);
|
|
82
141
|
}
|
|
83
142
|
else {
|
|
84
143
|
await this.persistRun(run);
|
|
85
144
|
}
|
|
86
|
-
this.runMap.delete(run.id);
|
|
87
145
|
await this.onRunUpdate?.(run);
|
|
146
|
+
if (this.usesRunTreeMap) {
|
|
147
|
+
this.runTreeMap.delete(run.id);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
this.runMap.delete(run.id);
|
|
151
|
+
}
|
|
88
152
|
}
|
|
89
153
|
_getExecutionOrder(parentRunId) {
|
|
90
|
-
const parentRun = parentRunId !== undefined && this.
|
|
154
|
+
const parentRun = parentRunId !== undefined && this.getRunById(parentRunId);
|
|
91
155
|
// If a run has no parent then execution order is 1
|
|
92
156
|
if (!parentRun) {
|
|
93
157
|
return 1;
|
|
@@ -128,7 +192,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
128
192
|
return this._addRunToRunMap(run);
|
|
129
193
|
}
|
|
130
194
|
async handleLLMStart(llm, prompts, runId, parentRunId, extraParams, tags, metadata, name) {
|
|
131
|
-
const run = this.
|
|
195
|
+
const run = this.getRunById(runId) ??
|
|
132
196
|
this._createRunForLLMStart(llm, prompts, runId, parentRunId, extraParams, tags, metadata, name);
|
|
133
197
|
await this.onRunCreate?.(run);
|
|
134
198
|
await this.onLLMStart?.(run);
|
|
@@ -168,14 +232,14 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
168
232
|
return this._addRunToRunMap(run);
|
|
169
233
|
}
|
|
170
234
|
async handleChatModelStart(llm, messages, runId, parentRunId, extraParams, tags, metadata, name) {
|
|
171
|
-
const run = this.
|
|
235
|
+
const run = this.getRunById(runId) ??
|
|
172
236
|
this._createRunForChatModelStart(llm, messages, runId, parentRunId, extraParams, tags, metadata, name);
|
|
173
237
|
await this.onRunCreate?.(run);
|
|
174
238
|
await this.onLLMStart?.(run);
|
|
175
239
|
return run;
|
|
176
240
|
}
|
|
177
241
|
async handleLLMEnd(output, runId, _parentRunId, _tags, extraParams) {
|
|
178
|
-
const run = this.
|
|
242
|
+
const run = this.getRunById(runId);
|
|
179
243
|
if (!run || run?.run_type !== "llm") {
|
|
180
244
|
throw new Error("No LLM run to end.");
|
|
181
245
|
}
|
|
@@ -191,7 +255,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
191
255
|
return run;
|
|
192
256
|
}
|
|
193
257
|
async handleLLMError(error, runId, _parentRunId, _tags, extraParams) {
|
|
194
|
-
const run = this.
|
|
258
|
+
const run = this.getRunById(runId);
|
|
195
259
|
if (!run || run?.run_type !== "llm") {
|
|
196
260
|
throw new Error("No LLM run to end.");
|
|
197
261
|
}
|
|
@@ -237,14 +301,14 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
237
301
|
return this._addRunToRunMap(run);
|
|
238
302
|
}
|
|
239
303
|
async handleChainStart(chain, inputs, runId, parentRunId, tags, metadata, runType, name) {
|
|
240
|
-
const run = this.
|
|
304
|
+
const run = this.getRunById(runId) ??
|
|
241
305
|
this._createRunForChainStart(chain, inputs, runId, parentRunId, tags, metadata, runType, name);
|
|
242
306
|
await this.onRunCreate?.(run);
|
|
243
307
|
await this.onChainStart?.(run);
|
|
244
308
|
return run;
|
|
245
309
|
}
|
|
246
310
|
async handleChainEnd(outputs, runId, _parentRunId, _tags, kwargs) {
|
|
247
|
-
const run = this.
|
|
311
|
+
const run = this.getRunById(runId);
|
|
248
312
|
if (!run) {
|
|
249
313
|
throw new Error("No chain run to end.");
|
|
250
314
|
}
|
|
@@ -262,7 +326,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
262
326
|
return run;
|
|
263
327
|
}
|
|
264
328
|
async handleChainError(error, runId, _parentRunId, _tags, kwargs) {
|
|
265
|
-
const run = this.
|
|
329
|
+
const run = this.getRunById(runId);
|
|
266
330
|
if (!run) {
|
|
267
331
|
throw new Error("No chain run to end.");
|
|
268
332
|
}
|
|
@@ -310,7 +374,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
310
374
|
return this._addRunToRunMap(run);
|
|
311
375
|
}
|
|
312
376
|
async handleToolStart(tool, input, runId, parentRunId, tags, metadata, name) {
|
|
313
|
-
const run = this.
|
|
377
|
+
const run = this.getRunById(runId) ??
|
|
314
378
|
this._createRunForToolStart(tool, input, runId, parentRunId, tags, metadata, name);
|
|
315
379
|
await this.onRunCreate?.(run);
|
|
316
380
|
await this.onToolStart?.(run);
|
|
@@ -318,7 +382,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
318
382
|
}
|
|
319
383
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
320
384
|
async handleToolEnd(output, runId) {
|
|
321
|
-
const run = this.
|
|
385
|
+
const run = this.getRunById(runId);
|
|
322
386
|
if (!run || run?.run_type !== "tool") {
|
|
323
387
|
throw new Error("No tool run to end");
|
|
324
388
|
}
|
|
@@ -333,7 +397,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
333
397
|
return run;
|
|
334
398
|
}
|
|
335
399
|
async handleToolError(error, runId) {
|
|
336
|
-
const run = this.
|
|
400
|
+
const run = this.getRunById(runId);
|
|
337
401
|
if (!run || run?.run_type !== "tool") {
|
|
338
402
|
throw new Error("No tool run to end");
|
|
339
403
|
}
|
|
@@ -348,7 +412,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
348
412
|
return run;
|
|
349
413
|
}
|
|
350
414
|
async handleAgentAction(action, runId) {
|
|
351
|
-
const run = this.
|
|
415
|
+
const run = this.getRunById(runId);
|
|
352
416
|
if (!run || run?.run_type !== "chain") {
|
|
353
417
|
return;
|
|
354
418
|
}
|
|
@@ -363,7 +427,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
363
427
|
await this.onAgentAction?.(run);
|
|
364
428
|
}
|
|
365
429
|
async handleAgentEnd(action, runId) {
|
|
366
|
-
const run = this.
|
|
430
|
+
const run = this.getRunById(runId);
|
|
367
431
|
if (!run || run?.run_type !== "chain") {
|
|
368
432
|
return;
|
|
369
433
|
}
|
|
@@ -405,14 +469,14 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
405
469
|
return this._addRunToRunMap(run);
|
|
406
470
|
}
|
|
407
471
|
async handleRetrieverStart(retriever, query, runId, parentRunId, tags, metadata, name) {
|
|
408
|
-
const run = this.
|
|
472
|
+
const run = this.getRunById(runId) ??
|
|
409
473
|
this._createRunForRetrieverStart(retriever, query, runId, parentRunId, tags, metadata, name);
|
|
410
474
|
await this.onRunCreate?.(run);
|
|
411
475
|
await this.onRetrieverStart?.(run);
|
|
412
476
|
return run;
|
|
413
477
|
}
|
|
414
478
|
async handleRetrieverEnd(documents, runId) {
|
|
415
|
-
const run = this.
|
|
479
|
+
const run = this.getRunById(runId);
|
|
416
480
|
if (!run || run?.run_type !== "retriever") {
|
|
417
481
|
throw new Error("No retriever run to end");
|
|
418
482
|
}
|
|
@@ -427,7 +491,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
427
491
|
return run;
|
|
428
492
|
}
|
|
429
493
|
async handleRetrieverError(error, runId) {
|
|
430
|
-
const run = this.
|
|
494
|
+
const run = this.getRunById(runId);
|
|
431
495
|
if (!run || run?.run_type !== "retriever") {
|
|
432
496
|
throw new Error("No retriever run to end");
|
|
433
497
|
}
|
|
@@ -442,7 +506,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
442
506
|
return run;
|
|
443
507
|
}
|
|
444
508
|
async handleText(text, runId) {
|
|
445
|
-
const run = this.
|
|
509
|
+
const run = this.getRunById(runId);
|
|
446
510
|
if (!run || run?.run_type !== "chain") {
|
|
447
511
|
return;
|
|
448
512
|
}
|
|
@@ -454,7 +518,7 @@ export class BaseTracer extends BaseCallbackHandler {
|
|
|
454
518
|
await this.onText?.(run);
|
|
455
519
|
}
|
|
456
520
|
async handleLLMNewToken(token, idx, runId, _parentRunId, _tags, fields) {
|
|
457
|
-
const run = this.
|
|
521
|
+
const run = this.getRunById(runId);
|
|
458
522
|
if (!run || run?.run_type !== "llm") {
|
|
459
523
|
throw new Error(`Invalid "runId" provided to "handleLLMNewToken" callback.`);
|
|
460
524
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getTracingCallbackHandler = getTracingCallbackHandler;
|
|
4
|
+
exports.getTracingV2CallbackHandler = getTracingV2CallbackHandler;
|
|
4
5
|
const tracer_langchain_js_1 = require("./tracer_langchain.cjs");
|
|
5
6
|
const tracer_langchain_v1_js_1 = require("./tracer_langchain_v1.cjs");
|
|
6
7
|
/**
|
|
@@ -22,7 +23,6 @@ async function getTracingCallbackHandler(session) {
|
|
|
22
23
|
}
|
|
23
24
|
return tracer;
|
|
24
25
|
}
|
|
25
|
-
exports.getTracingCallbackHandler = getTracingCallbackHandler;
|
|
26
26
|
/**
|
|
27
27
|
* @deprecated Instantiate directly using the LangChainTracer constructor.
|
|
28
28
|
*
|
|
@@ -33,4 +33,3 @@ exports.getTracingCallbackHandler = getTracingCallbackHandler;
|
|
|
33
33
|
async function getTracingV2CallbackHandler() {
|
|
34
34
|
return new tracer_langchain_js_1.LangChainTracer();
|
|
35
35
|
}
|
|
36
|
-
exports.getTracingV2CallbackHandler = getTracingV2CallbackHandler;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LangChainTracer = void 0;
|
|
4
|
+
const langsmith_1 = require("langsmith");
|
|
4
5
|
const run_trees_1 = require("langsmith/run_trees");
|
|
5
6
|
const traceable_1 = require("langsmith/singletons/traceable");
|
|
6
|
-
const env_js_1 = require("../utils/env.cjs");
|
|
7
7
|
const base_js_1 = require("./base.cjs");
|
|
8
8
|
const tracer_js_1 = require("../singletons/tracer.cjs");
|
|
9
9
|
class LangChainTracer extends base_js_1.BaseTracer {
|
|
@@ -33,11 +33,21 @@ class LangChainTracer extends base_js_1.BaseTracer {
|
|
|
33
33
|
writable: true,
|
|
34
34
|
value: void 0
|
|
35
35
|
});
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
Object.defineProperty(this, "replicas", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true,
|
|
39
|
+
writable: true,
|
|
40
|
+
value: void 0
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(this, "usesRunTreeMap", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true,
|
|
46
|
+
value: true
|
|
47
|
+
});
|
|
48
|
+
const { exampleId, projectName, client, replicas } = fields;
|
|
49
|
+
this.projectName = projectName ?? (0, langsmith_1.getDefaultProjectName)();
|
|
50
|
+
this.replicas = replicas;
|
|
41
51
|
this.exampleId = exampleId;
|
|
42
52
|
this.client = client ?? (0, tracer_js_1.getDefaultLangChainClientSingleton)();
|
|
43
53
|
const traceableTree = LangChainTracer.getTraceableRunTree();
|
|
@@ -45,41 +55,20 @@ class LangChainTracer extends base_js_1.BaseTracer {
|
|
|
45
55
|
this.updateFromRunTree(traceableTree);
|
|
46
56
|
}
|
|
47
57
|
}
|
|
48
|
-
async _convertToCreate(run, example_id = undefined) {
|
|
49
|
-
return {
|
|
50
|
-
...run,
|
|
51
|
-
extra: {
|
|
52
|
-
...run.extra,
|
|
53
|
-
runtime: await (0, env_js_1.getRuntimeEnvironment)(),
|
|
54
|
-
},
|
|
55
|
-
child_runs: undefined,
|
|
56
|
-
session_name: this.projectName,
|
|
57
|
-
reference_example_id: run.parent_run_id ? undefined : example_id,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
58
|
async persistRun(_run) { }
|
|
61
59
|
async onRunCreate(run) {
|
|
62
|
-
const
|
|
63
|
-
await
|
|
60
|
+
const runTree = this.getRunTreeWithTracingConfig(run.id);
|
|
61
|
+
await runTree?.postRun();
|
|
64
62
|
}
|
|
65
63
|
async onRunUpdate(run) {
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
error: run.error,
|
|
69
|
-
outputs: run.outputs,
|
|
70
|
-
events: run.events,
|
|
71
|
-
inputs: run.inputs,
|
|
72
|
-
trace_id: run.trace_id,
|
|
73
|
-
dotted_order: run.dotted_order,
|
|
74
|
-
parent_run_id: run.parent_run_id,
|
|
75
|
-
extra: run.extra,
|
|
76
|
-
};
|
|
77
|
-
await this.client.updateRun(run.id, runUpdate);
|
|
64
|
+
const runTree = this.getRunTreeWithTracingConfig(run.id);
|
|
65
|
+
await runTree?.patchRun();
|
|
78
66
|
}
|
|
79
67
|
getRun(id) {
|
|
80
|
-
return this.
|
|
68
|
+
return this.runTreeMap.get(id);
|
|
81
69
|
}
|
|
82
70
|
updateFromRunTree(runTree) {
|
|
71
|
+
this.runTreeMap.set(runTree.id, runTree);
|
|
83
72
|
let rootRun = runTree;
|
|
84
73
|
const visited = new Set();
|
|
85
74
|
while (rootRun.parent_run) {
|
|
@@ -97,60 +86,35 @@ class LangChainTracer extends base_js_1.BaseTracer {
|
|
|
97
86
|
if (!current || visited.has(current.id))
|
|
98
87
|
continue;
|
|
99
88
|
visited.add(current.id);
|
|
100
|
-
|
|
101
|
-
this.runMap.set(current.id, current);
|
|
89
|
+
this.runTreeMap.set(current.id, current);
|
|
102
90
|
if (current.child_runs) {
|
|
103
91
|
queue.push(...current.child_runs);
|
|
104
92
|
}
|
|
105
93
|
}
|
|
106
94
|
this.client = runTree.client ?? this.client;
|
|
95
|
+
this.replicas = runTree.replicas ?? this.replicas;
|
|
107
96
|
this.projectName = runTree.project_name ?? this.projectName;
|
|
108
97
|
this.exampleId = runTree.reference_example_id ?? this.exampleId;
|
|
109
98
|
}
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
parent_run: undefined,
|
|
122
|
-
// inherited properties
|
|
123
|
-
client: this.client,
|
|
124
|
-
project_name: this.projectName,
|
|
125
|
-
reference_example_id: this.exampleId,
|
|
126
|
-
tracingEnabled: true,
|
|
127
|
-
});
|
|
128
|
-
runTreeMap[id] = runTree;
|
|
129
|
-
runTreeList.push([id, run.dotted_order]);
|
|
130
|
-
}
|
|
131
|
-
runTreeList.sort((a, b) => {
|
|
132
|
-
if (!a[1] || !b[1])
|
|
133
|
-
return 0;
|
|
134
|
-
return a[1].localeCompare(b[1]);
|
|
99
|
+
getRunTreeWithTracingConfig(id) {
|
|
100
|
+
const runTree = this.runTreeMap.get(id);
|
|
101
|
+
if (!runTree)
|
|
102
|
+
return undefined;
|
|
103
|
+
return new run_trees_1.RunTree({
|
|
104
|
+
...runTree,
|
|
105
|
+
client: this.client,
|
|
106
|
+
project_name: this.projectName,
|
|
107
|
+
replicas: this.replicas,
|
|
108
|
+
reference_example_id: this.exampleId,
|
|
109
|
+
tracingEnabled: true,
|
|
135
110
|
});
|
|
136
|
-
for (const [id] of runTreeList) {
|
|
137
|
-
const run = this.runMap.get(id);
|
|
138
|
-
const runTree = runTreeMap[id];
|
|
139
|
-
if (!run || !runTree)
|
|
140
|
-
continue;
|
|
141
|
-
if (run.parent_run_id) {
|
|
142
|
-
const parentRunTree = runTreeMap[run.parent_run_id];
|
|
143
|
-
if (parentRunTree) {
|
|
144
|
-
parentRunTree.child_runs.push(runTree);
|
|
145
|
-
runTree.parent_run = parentRunTree;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return runTreeMap[id];
|
|
150
111
|
}
|
|
151
112
|
static getTraceableRunTree() {
|
|
152
113
|
try {
|
|
153
|
-
return (
|
|
114
|
+
return (
|
|
115
|
+
// The type cast here provides forward compatibility. Old versions of LangSmith will just
|
|
116
|
+
// ignore the permitAbsentRunTree arg.
|
|
117
|
+
traceable_1.getCurrentRunTree(true));
|
|
154
118
|
}
|
|
155
119
|
catch {
|
|
156
120
|
return undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { RunTree } from "langsmith/run_trees";
|
|
1
|
+
import { type LangSmithTracingClientInterface } from "langsmith";
|
|
2
|
+
import { RunTree, type RunTreeConfig } from "langsmith/run_trees";
|
|
3
3
|
import { BaseRun, RunCreate, RunUpdate as BaseRunUpdate, KVMap } from "langsmith/schemas";
|
|
4
4
|
import { BaseTracer } from "./base.js";
|
|
5
5
|
import { BaseCallbackHandlerInput } from "../callbacks/base.js";
|
|
@@ -24,19 +24,21 @@ export interface LangChainTracerFields extends BaseCallbackHandlerInput {
|
|
|
24
24
|
exampleId?: string;
|
|
25
25
|
projectName?: string;
|
|
26
26
|
client?: LangSmithTracingClientInterface;
|
|
27
|
+
replicas?: RunTreeConfig["replicas"];
|
|
27
28
|
}
|
|
28
29
|
export declare class LangChainTracer extends BaseTracer implements LangChainTracerFields {
|
|
29
30
|
name: string;
|
|
30
31
|
projectName?: string;
|
|
31
32
|
exampleId?: string;
|
|
32
33
|
client: LangSmithTracingClientInterface;
|
|
34
|
+
replicas?: RunTreeConfig["replicas"];
|
|
35
|
+
usesRunTreeMap: boolean;
|
|
33
36
|
constructor(fields?: LangChainTracerFields);
|
|
34
|
-
private _convertToCreate;
|
|
35
37
|
protected persistRun(_run: Run): Promise<void>;
|
|
36
38
|
onRunCreate(run: Run): Promise<void>;
|
|
37
39
|
onRunUpdate(run: Run): Promise<void>;
|
|
38
40
|
getRun(id: string): Run | undefined;
|
|
39
41
|
updateFromRunTree(runTree: RunTree): void;
|
|
40
|
-
|
|
42
|
+
getRunTreeWithTracingConfig(id: string): RunTree | undefined;
|
|
41
43
|
static getTraceableRunTree(): RunTree | undefined;
|
|
42
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getDefaultProjectName, } from "langsmith";
|
|
1
2
|
import { RunTree } from "langsmith/run_trees";
|
|
2
3
|
import { getCurrentRunTree } from "langsmith/singletons/traceable";
|
|
3
|
-
import { getEnvironmentVariable, getRuntimeEnvironment } from "../utils/env.js";
|
|
4
4
|
import { BaseTracer } from "./base.js";
|
|
5
5
|
import { getDefaultLangChainClientSingleton } from "../singletons/tracer.js";
|
|
6
6
|
export class LangChainTracer extends BaseTracer {
|
|
@@ -30,11 +30,21 @@ export class LangChainTracer extends BaseTracer {
|
|
|
30
30
|
writable: true,
|
|
31
31
|
value: void 0
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
Object.defineProperty(this, "replicas", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: void 0
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(this, "usesRunTreeMap", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
configurable: true,
|
|
42
|
+
writable: true,
|
|
43
|
+
value: true
|
|
44
|
+
});
|
|
45
|
+
const { exampleId, projectName, client, replicas } = fields;
|
|
46
|
+
this.projectName = projectName ?? getDefaultProjectName();
|
|
47
|
+
this.replicas = replicas;
|
|
38
48
|
this.exampleId = exampleId;
|
|
39
49
|
this.client = client ?? getDefaultLangChainClientSingleton();
|
|
40
50
|
const traceableTree = LangChainTracer.getTraceableRunTree();
|
|
@@ -42,41 +52,20 @@ export class LangChainTracer extends BaseTracer {
|
|
|
42
52
|
this.updateFromRunTree(traceableTree);
|
|
43
53
|
}
|
|
44
54
|
}
|
|
45
|
-
async _convertToCreate(run, example_id = undefined) {
|
|
46
|
-
return {
|
|
47
|
-
...run,
|
|
48
|
-
extra: {
|
|
49
|
-
...run.extra,
|
|
50
|
-
runtime: await getRuntimeEnvironment(),
|
|
51
|
-
},
|
|
52
|
-
child_runs: undefined,
|
|
53
|
-
session_name: this.projectName,
|
|
54
|
-
reference_example_id: run.parent_run_id ? undefined : example_id,
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
55
|
async persistRun(_run) { }
|
|
58
56
|
async onRunCreate(run) {
|
|
59
|
-
const
|
|
60
|
-
await
|
|
57
|
+
const runTree = this.getRunTreeWithTracingConfig(run.id);
|
|
58
|
+
await runTree?.postRun();
|
|
61
59
|
}
|
|
62
60
|
async onRunUpdate(run) {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
error: run.error,
|
|
66
|
-
outputs: run.outputs,
|
|
67
|
-
events: run.events,
|
|
68
|
-
inputs: run.inputs,
|
|
69
|
-
trace_id: run.trace_id,
|
|
70
|
-
dotted_order: run.dotted_order,
|
|
71
|
-
parent_run_id: run.parent_run_id,
|
|
72
|
-
extra: run.extra,
|
|
73
|
-
};
|
|
74
|
-
await this.client.updateRun(run.id, runUpdate);
|
|
61
|
+
const runTree = this.getRunTreeWithTracingConfig(run.id);
|
|
62
|
+
await runTree?.patchRun();
|
|
75
63
|
}
|
|
76
64
|
getRun(id) {
|
|
77
|
-
return this.
|
|
65
|
+
return this.runTreeMap.get(id);
|
|
78
66
|
}
|
|
79
67
|
updateFromRunTree(runTree) {
|
|
68
|
+
this.runTreeMap.set(runTree.id, runTree);
|
|
80
69
|
let rootRun = runTree;
|
|
81
70
|
const visited = new Set();
|
|
82
71
|
while (rootRun.parent_run) {
|
|
@@ -94,60 +83,35 @@ export class LangChainTracer extends BaseTracer {
|
|
|
94
83
|
if (!current || visited.has(current.id))
|
|
95
84
|
continue;
|
|
96
85
|
visited.add(current.id);
|
|
97
|
-
|
|
98
|
-
this.runMap.set(current.id, current);
|
|
86
|
+
this.runTreeMap.set(current.id, current);
|
|
99
87
|
if (current.child_runs) {
|
|
100
88
|
queue.push(...current.child_runs);
|
|
101
89
|
}
|
|
102
90
|
}
|
|
103
91
|
this.client = runTree.client ?? this.client;
|
|
92
|
+
this.replicas = runTree.replicas ?? this.replicas;
|
|
104
93
|
this.projectName = runTree.project_name ?? this.projectName;
|
|
105
94
|
this.exampleId = runTree.reference_example_id ?? this.exampleId;
|
|
106
95
|
}
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
parent_run: undefined,
|
|
119
|
-
// inherited properties
|
|
120
|
-
client: this.client,
|
|
121
|
-
project_name: this.projectName,
|
|
122
|
-
reference_example_id: this.exampleId,
|
|
123
|
-
tracingEnabled: true,
|
|
124
|
-
});
|
|
125
|
-
runTreeMap[id] = runTree;
|
|
126
|
-
runTreeList.push([id, run.dotted_order]);
|
|
127
|
-
}
|
|
128
|
-
runTreeList.sort((a, b) => {
|
|
129
|
-
if (!a[1] || !b[1])
|
|
130
|
-
return 0;
|
|
131
|
-
return a[1].localeCompare(b[1]);
|
|
96
|
+
getRunTreeWithTracingConfig(id) {
|
|
97
|
+
const runTree = this.runTreeMap.get(id);
|
|
98
|
+
if (!runTree)
|
|
99
|
+
return undefined;
|
|
100
|
+
return new RunTree({
|
|
101
|
+
...runTree,
|
|
102
|
+
client: this.client,
|
|
103
|
+
project_name: this.projectName,
|
|
104
|
+
replicas: this.replicas,
|
|
105
|
+
reference_example_id: this.exampleId,
|
|
106
|
+
tracingEnabled: true,
|
|
132
107
|
});
|
|
133
|
-
for (const [id] of runTreeList) {
|
|
134
|
-
const run = this.runMap.get(id);
|
|
135
|
-
const runTree = runTreeMap[id];
|
|
136
|
-
if (!run || !runTree)
|
|
137
|
-
continue;
|
|
138
|
-
if (run.parent_run_id) {
|
|
139
|
-
const parentRunTree = runTreeMap[run.parent_run_id];
|
|
140
|
-
if (parentRunTree) {
|
|
141
|
-
parentRunTree.child_runs.push(runTree);
|
|
142
|
-
runTree.parent_run = parentRunTree;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return runTreeMap[id];
|
|
147
108
|
}
|
|
148
109
|
static getTraceableRunTree() {
|
|
149
110
|
try {
|
|
150
|
-
return
|
|
111
|
+
return (
|
|
112
|
+
// The type cast here provides forward compatibility. Old versions of LangSmith will just
|
|
113
|
+
// ignore the permitAbsentRunTree arg.
|
|
114
|
+
getCurrentRunTree(true));
|
|
151
115
|
}
|
|
152
116
|
catch {
|
|
153
117
|
return undefined;
|