@nocobase/plugin-ai 2.0.10 → 2.0.12
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/build.config.ts +7 -169
- package/dist/client/ai-employees/types.d.ts +4 -0
- package/dist/client/debug-logger.d.ts +1 -1
- package/dist/client/ec49f77e01b20f2f.js +10 -0
- package/dist/client/index.js +2 -2
- package/dist/externalVersion.js +24 -14
- package/dist/locale/en-US.json +3 -1
- package/dist/locale/zh-CN.json +3 -1
- package/dist/node_modules/fast-glob/out/index.d.ts +40 -0
- package/dist/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/dist/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/dist/node_modules/fast-glob/out/providers/filters/entry.d.ts +16 -0
- package/dist/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/dist/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/dist/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/dist/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/dist/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/dist/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/dist/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/dist/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/dist/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/dist/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/dist/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/dist/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/dist/node_modules/fast-glob/out/utils/pattern.d.ts +47 -0
- package/dist/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/dist/node_modules/fast-glob/package.json +1 -1
- package/dist/node_modules/flexsearch/index.d.ts +1140 -0
- package/dist/node_modules/flexsearch/package.json +1 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/nodejs-snowflake/nodejs_snowflake.d.ts +62 -0
- package/dist/node_modules/nodejs-snowflake/package.json +1 -1
- package/dist/node_modules/openai/LICENSE +201 -0
- package/dist/node_modules/openai/_vendor/partial-json-parser/parser.d.mts +7 -0
- package/dist/node_modules/openai/_vendor/partial-json-parser/parser.d.ts +7 -0
- package/dist/node_modules/openai/_vendor/partial-json-parser/parser.js +246 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.d.mts +32 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.d.ts +32 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Options.js +42 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.mts +21 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.d.ts +21 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/Refs.js +28 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.mts +12 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.d.ts +12 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.js +19 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.d.mts +38 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.d.ts +38 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/index.js +41 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.mts +38 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.d.ts +38 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js +186 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.mts +3 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.d.ts +3 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/any.js +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.mts +13 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.d.ts +13 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js +29 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.mts +15 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.d.ts +15 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js +53 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/boolean.js +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.mts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.d.ts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js +8 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.mts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.d.ts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.mts +16 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.d.ts +16 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js +50 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.mts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.d.ts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/effects.js +8 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.mts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.d.ts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/enum.js +10 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.mts +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.d.ts +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js +53 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.mts +10 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.d.ts +10 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js +25 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.mts +16 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.d.ts +16 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/map.js +29 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js +20 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/never.js +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.mts +6 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.d.ts +6 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.mts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.d.ts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js +34 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.mts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.d.ts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.js +56 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.mts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.d.ts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.js +57 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js +26 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +6 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +6 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js +25 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js +8 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.mts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.d.ts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.mts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.d.ts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.js +49 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.mts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.d.ts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/set.js +24 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.mts +70 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.d.ts +70 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.js +316 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.mts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.d.ts +14 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.js +36 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.mts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.d.ts +5 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/undefined.js +9 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.mts +24 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.d.ts +24 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.js +77 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.mts +3 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.d.ts +3 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/parsers/unknown.js +7 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.d.mts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.d.ts +4 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/util.js +16 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +11 -0
- package/dist/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.js +82 -0
- package/dist/node_modules/openai/api-promise.d.mts +2 -0
- package/dist/node_modules/openai/api-promise.d.ts +2 -0
- package/dist/node_modules/openai/api-promise.js +6 -0
- package/dist/node_modules/openai/azure.d.mts +63 -0
- package/dist/node_modules/openai/azure.d.ts +63 -0
- package/dist/node_modules/openai/azure.js +97 -0
- package/dist/node_modules/openai/beta/realtime/index.d.mts +2 -0
- package/dist/node_modules/openai/beta/realtime/index.d.ts +2 -0
- package/dist/node_modules/openai/beta/realtime/index.js +6 -0
- package/dist/node_modules/openai/beta/realtime/internal-base.d.mts +45 -0
- package/dist/node_modules/openai/beta/realtime/internal-base.d.ts +45 -0
- package/dist/node_modules/openai/beta/realtime/internal-base.js +55 -0
- package/dist/node_modules/openai/beta/realtime/websocket.d.mts +36 -0
- package/dist/node_modules/openai/beta/realtime/websocket.d.ts +36 -0
- package/dist/node_modules/openai/beta/realtime/websocket.js +110 -0
- package/dist/node_modules/openai/beta/realtime/ws.d.mts +27 -0
- package/dist/node_modules/openai/beta/realtime/ws.d.ts +27 -0
- package/dist/node_modules/openai/beta/realtime/ws.js +93 -0
- package/dist/node_modules/openai/bin/cli +52 -0
- package/dist/node_modules/openai/bin/migration-config.json +1038 -0
- package/dist/node_modules/openai/client.d.mts +304 -0
- package/dist/node_modules/openai/client.d.ts +304 -0
- package/dist/node_modules/openai/client.js +574 -0
- package/dist/node_modules/openai/core/api-promise.d.mts +49 -0
- package/dist/node_modules/openai/core/api-promise.d.ts +49 -0
- package/dist/node_modules/openai/core/api-promise.js +76 -0
- package/dist/node_modules/openai/core/error.d.mts +59 -0
- package/dist/node_modules/openai/core/error.d.ts +59 -0
- package/dist/node_modules/openai/core/error.js +136 -0
- package/dist/node_modules/openai/core/pagination.d.mts +89 -0
- package/dist/node_modules/openai/core/pagination.d.ts +89 -0
- package/dist/node_modules/openai/core/pagination.js +156 -0
- package/dist/node_modules/openai/core/resource.d.mts +6 -0
- package/dist/node_modules/openai/core/resource.d.ts +6 -0
- package/dist/node_modules/openai/core/resource.js +11 -0
- package/dist/node_modules/openai/core/streaming.d.mts +33 -0
- package/dist/node_modules/openai/core/streaming.d.ts +33 -0
- package/dist/node_modules/openai/core/streaming.js +293 -0
- package/dist/node_modules/openai/core/uploads.d.mts +3 -0
- package/dist/node_modules/openai/core/uploads.d.ts +3 -0
- package/dist/node_modules/openai/core/uploads.js +6 -0
- package/dist/node_modules/openai/error.d.mts +2 -0
- package/dist/node_modules/openai/error.d.ts +2 -0
- package/dist/node_modules/openai/error.js +6 -0
- package/dist/node_modules/openai/helpers/audio.d.mts +9 -0
- package/dist/node_modules/openai/helpers/audio.d.ts +9 -0
- package/dist/node_modules/openai/helpers/audio.js +122 -0
- package/dist/node_modules/openai/helpers/zod.d.mts +73 -0
- package/dist/node_modules/openai/helpers/zod.d.ts +73 -0
- package/dist/node_modules/openai/helpers/zod.js +123 -0
- package/dist/node_modules/openai/index.d.mts +8 -0
- package/dist/node_modules/openai/index.d.ts +8 -0
- package/dist/node_modules/openai/index.js +1 -0
- package/dist/node_modules/openai/internal/builtin-types.d.mts +73 -0
- package/dist/node_modules/openai/internal/builtin-types.d.ts +73 -0
- package/dist/node_modules/openai/internal/builtin-types.js +4 -0
- package/dist/node_modules/openai/internal/decoders/line.d.mts +17 -0
- package/dist/node_modules/openai/internal/decoders/line.d.ts +17 -0
- package/dist/node_modules/openai/internal/decoders/line.js +113 -0
- package/dist/node_modules/openai/internal/detect-platform.d.mts +15 -0
- package/dist/node_modules/openai/internal/detect-platform.d.ts +15 -0
- package/dist/node_modules/openai/internal/detect-platform.js +162 -0
- package/dist/node_modules/openai/internal/errors.d.mts +3 -0
- package/dist/node_modules/openai/internal/errors.d.ts +3 -0
- package/dist/node_modules/openai/internal/errors.js +41 -0
- package/dist/node_modules/openai/internal/headers.d.mts +20 -0
- package/dist/node_modules/openai/internal/headers.d.ts +20 -0
- package/dist/node_modules/openai/internal/headers.js +79 -0
- package/dist/node_modules/openai/internal/parse.d.mts +17 -0
- package/dist/node_modules/openai/internal/parse.d.ts +17 -0
- package/dist/node_modules/openai/internal/parse.js +60 -0
- package/dist/node_modules/openai/internal/qs/formats.d.mts +7 -0
- package/dist/node_modules/openai/internal/qs/formats.d.ts +7 -0
- package/dist/node_modules/openai/internal/qs/formats.js +13 -0
- package/dist/node_modules/openai/internal/qs/index.d.mts +10 -0
- package/dist/node_modules/openai/internal/qs/index.d.ts +10 -0
- package/dist/node_modules/openai/internal/qs/index.js +14 -0
- package/dist/node_modules/openai/internal/qs/stringify.d.mts +3 -0
- package/dist/node_modules/openai/internal/qs/stringify.d.ts +3 -0
- package/dist/node_modules/openai/internal/qs/stringify.js +277 -0
- package/dist/node_modules/openai/internal/qs/types.d.mts +57 -0
- package/dist/node_modules/openai/internal/qs/types.d.ts +57 -0
- package/dist/node_modules/openai/internal/qs/types.js +3 -0
- package/dist/node_modules/openai/internal/qs/utils.d.mts +15 -0
- package/dist/node_modules/openai/internal/qs/utils.d.ts +15 -0
- package/dist/node_modules/openai/internal/qs/utils.js +230 -0
- package/dist/node_modules/openai/internal/request-options.d.mts +78 -0
- package/dist/node_modules/openai/internal/request-options.d.ts +78 -0
- package/dist/node_modules/openai/internal/request-options.js +14 -0
- package/dist/node_modules/openai/internal/shim-types.d.mts +17 -0
- package/dist/node_modules/openai/internal/shim-types.d.ts +17 -0
- package/dist/node_modules/openai/internal/shim-types.js +4 -0
- package/dist/node_modules/openai/internal/shims.d.mts +20 -0
- package/dist/node_modules/openai/internal/shims.d.ts +20 -0
- package/dist/node_modules/openai/internal/shims.js +92 -0
- package/dist/node_modules/openai/internal/stream-utils.d.mts +8 -0
- package/dist/node_modules/openai/internal/stream-utils.d.ts +8 -0
- package/dist/node_modules/openai/internal/stream-utils.js +38 -0
- package/dist/node_modules/openai/internal/to-file.d.mts +45 -0
- package/dist/node_modules/openai/internal/to-file.d.ts +45 -0
- package/dist/node_modules/openai/internal/to-file.js +91 -0
- package/dist/node_modules/openai/internal/tslib.js +81 -0
- package/dist/node_modules/openai/internal/types.d.mts +69 -0
- package/dist/node_modules/openai/internal/types.d.ts +69 -0
- package/dist/node_modules/openai/internal/types.js +4 -0
- package/dist/node_modules/openai/internal/uploads.d.mts +42 -0
- package/dist/node_modules/openai/internal/uploads.d.ts +42 -0
- package/dist/node_modules/openai/internal/uploads.js +141 -0
- package/dist/node_modules/openai/internal/utils/base64.d.mts +9 -0
- package/dist/node_modules/openai/internal/utils/base64.d.ts +9 -0
- package/dist/node_modules/openai/internal/utils/base64.js +61 -0
- package/dist/node_modules/openai/internal/utils/bytes.d.mts +4 -0
- package/dist/node_modules/openai/internal/utils/bytes.d.ts +4 -0
- package/dist/node_modules/openai/internal/utils/bytes.js +31 -0
- package/dist/node_modules/openai/internal/utils/env.d.mts +9 -0
- package/dist/node_modules/openai/internal/utils/env.d.ts +9 -0
- package/dist/node_modules/openai/internal/utils/env.js +22 -0
- package/dist/node_modules/openai/internal/utils/log.d.mts +37 -0
- package/dist/node_modules/openai/internal/utils/log.d.ts +37 -0
- package/dist/node_modules/openai/internal/utils/log.js +85 -0
- package/dist/node_modules/openai/internal/utils/path.d.mts +15 -0
- package/dist/node_modules/openai/internal/utils/path.d.ts +15 -0
- package/dist/node_modules/openai/internal/utils/path.js +79 -0
- package/dist/node_modules/openai/internal/utils/sleep.d.mts +2 -0
- package/dist/node_modules/openai/internal/utils/sleep.d.ts +2 -0
- package/dist/node_modules/openai/internal/utils/sleep.js +7 -0
- package/dist/node_modules/openai/internal/utils/uuid.d.mts +5 -0
- package/dist/node_modules/openai/internal/utils/uuid.d.ts +5 -0
- package/dist/node_modules/openai/internal/utils/uuid.js +19 -0
- package/dist/node_modules/openai/internal/utils/values.d.mts +18 -0
- package/dist/node_modules/openai/internal/utils/values.d.ts +18 -0
- package/dist/node_modules/openai/internal/utils/values.js +112 -0
- package/dist/node_modules/openai/internal/utils.d.mts +7 -0
- package/dist/node_modules/openai/internal/utils.d.ts +7 -0
- package/dist/node_modules/openai/internal/utils.js +11 -0
- package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +59 -0
- package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +59 -0
- package/dist/node_modules/openai/lib/AbstractChatCompletionRunner.js +291 -0
- package/dist/node_modules/openai/lib/AssistantStream.d.mts +60 -0
- package/dist/node_modules/openai/lib/AssistantStream.d.ts +60 -0
- package/dist/node_modules/openai/lib/AssistantStream.js +553 -0
- package/dist/node_modules/openai/lib/ChatCompletionRunner.d.mts +16 -0
- package/dist/node_modules/openai/lib/ChatCompletionRunner.d.ts +16 -0
- package/dist/node_modules/openai/lib/ChatCompletionRunner.js +24 -0
- package/dist/node_modules/openai/lib/ChatCompletionStream.d.mts +208 -0
- package/dist/node_modules/openai/lib/ChatCompletionStream.d.ts +208 -0
- package/dist/node_modules/openai/lib/ChatCompletionStream.js +493 -0
- package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +19 -0
- package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +19 -0
- package/dist/node_modules/openai/lib/ChatCompletionStreamingRunner.js +24 -0
- package/dist/node_modules/openai/lib/EventEmitter.d.mts +45 -0
- package/dist/node_modules/openai/lib/EventEmitter.d.ts +45 -0
- package/dist/node_modules/openai/lib/EventEmitter.js +79 -0
- package/dist/node_modules/openai/lib/EventStream.d.mts +62 -0
- package/dist/node_modules/openai/lib/EventStream.d.ts +62 -0
- package/dist/node_modules/openai/lib/EventStream.js +190 -0
- package/dist/node_modules/openai/lib/ResponsesParser.d.mts +36 -0
- package/dist/node_modules/openai/lib/ResponsesParser.d.ts +36 -0
- package/dist/node_modules/openai/lib/ResponsesParser.js +170 -0
- package/dist/node_modules/openai/lib/RunnableFunction.d.mts +83 -0
- package/dist/node_modules/openai/lib/RunnableFunction.d.ts +83 -0
- package/dist/node_modules/openai/lib/RunnableFunction.js +19 -0
- package/dist/node_modules/openai/lib/Util.d.mts +5 -0
- package/dist/node_modules/openai/lib/Util.d.ts +5 -0
- package/dist/node_modules/openai/lib/Util.js +26 -0
- package/dist/node_modules/openai/lib/chatCompletionUtils.d.mts +5 -0
- package/dist/node_modules/openai/lib/chatCompletionUtils.d.ts +5 -0
- package/dist/node_modules/openai/lib/chatCompletionUtils.js +16 -0
- package/dist/node_modules/openai/lib/jsonschema.d.mts +123 -0
- package/dist/node_modules/openai/lib/jsonschema.d.ts +123 -0
- package/dist/node_modules/openai/lib/jsonschema.js +11 -0
- package/dist/node_modules/openai/lib/parser.d.mts +47 -0
- package/dist/node_modules/openai/lib/parser.d.ts +47 -0
- package/dist/node_modules/openai/lib/parser.js +176 -0
- package/dist/node_modules/openai/lib/responses/EventTypes.d.mts +9 -0
- package/dist/node_modules/openai/lib/responses/EventTypes.d.ts +9 -0
- package/dist/node_modules/openai/lib/responses/EventTypes.js +3 -0
- package/dist/node_modules/openai/lib/responses/ResponseStream.d.mts +59 -0
- package/dist/node_modules/openai/lib/responses/ResponseStream.d.ts +59 -0
- package/dist/node_modules/openai/lib/responses/ResponseStream.js +265 -0
- package/dist/node_modules/openai/lib/transform.d.mts +3 -0
- package/dist/node_modules/openai/lib/transform.d.ts +3 -0
- package/dist/node_modules/openai/lib/transform.js +154 -0
- package/dist/node_modules/openai/package.json +1 -0
- package/dist/node_modules/openai/pagination.d.mts +2 -0
- package/dist/node_modules/openai/pagination.d.ts +2 -0
- package/dist/node_modules/openai/pagination.js +6 -0
- package/dist/node_modules/openai/realtime/index.d.mts +2 -0
- package/dist/node_modules/openai/realtime/index.d.ts +2 -0
- package/dist/node_modules/openai/realtime/index.js +6 -0
- package/dist/node_modules/openai/realtime/internal-base.d.mts +45 -0
- package/dist/node_modules/openai/realtime/internal-base.d.ts +45 -0
- package/dist/node_modules/openai/realtime/internal-base.js +55 -0
- package/dist/node_modules/openai/realtime/websocket.d.mts +36 -0
- package/dist/node_modules/openai/realtime/websocket.d.ts +36 -0
- package/dist/node_modules/openai/realtime/websocket.js +109 -0
- package/dist/node_modules/openai/realtime/ws.d.mts +27 -0
- package/dist/node_modules/openai/realtime/ws.d.ts +27 -0
- package/dist/node_modules/openai/realtime/ws.js +92 -0
- package/dist/node_modules/openai/resource.d.mts +2 -0
- package/dist/node_modules/openai/resource.d.ts +2 -0
- package/dist/node_modules/openai/resource.js +6 -0
- package/dist/node_modules/openai/resources/audio/audio.d.mts +28 -0
- package/dist/node_modules/openai/resources/audio/audio.d.ts +28 -0
- package/dist/node_modules/openai/resources/audio/audio.js +25 -0
- package/dist/node_modules/openai/resources/audio/index.d.mts +5 -0
- package/dist/node_modules/openai/resources/audio/index.d.ts +5 -0
- package/dist/node_modules/openai/resources/audio/index.js +13 -0
- package/dist/node_modules/openai/resources/audio/speech.d.mts +65 -0
- package/dist/node_modules/openai/resources/audio/speech.d.ts +65 -0
- package/dist/node_modules/openai/resources/audio/speech.js +33 -0
- package/dist/node_modules/openai/resources/audio/transcriptions.d.mts +656 -0
- package/dist/node_modules/openai/resources/audio/transcriptions.d.ts +656 -0
- package/dist/node_modules/openai/resources/audio/transcriptions.js +18 -0
- package/dist/node_modules/openai/resources/audio/translations.d.mts +81 -0
- package/dist/node_modules/openai/resources/audio/translations.d.ts +81 -0
- package/dist/node_modules/openai/resources/audio/translations.js +13 -0
- package/dist/node_modules/openai/resources/audio.d.mts +2 -0
- package/dist/node_modules/openai/resources/audio.d.ts +2 -0
- package/dist/node_modules/openai/resources/audio.js +6 -0
- package/dist/node_modules/openai/resources/batches.d.mts +280 -0
- package/dist/node_modules/openai/resources/batches.d.ts +280 -0
- package/dist/node_modules/openai/resources/batches.js +37 -0
- package/dist/node_modules/openai/resources/beta/assistants.d.mts +1223 -0
- package/dist/node_modules/openai/resources/beta/assistants.d.ts +1223 -0
- package/dist/node_modules/openai/resources/beta/assistants.js +70 -0
- package/dist/node_modules/openai/resources/beta/beta.d.mts +21 -0
- package/dist/node_modules/openai/resources/beta/beta.d.ts +21 -0
- package/dist/node_modules/openai/resources/beta/beta.js +29 -0
- package/dist/node_modules/openai/resources/beta/chatkit/chatkit.d.mts +51 -0
- package/dist/node_modules/openai/resources/beta/chatkit/chatkit.d.ts +51 -0
- package/dist/node_modules/openai/resources/beta/chatkit/chatkit.js +21 -0
- package/dist/node_modules/openai/resources/beta/chatkit/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/beta/chatkit/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/beta/chatkit/index.js +11 -0
- package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.mts +57 -0
- package/dist/node_modules/openai/resources/beta/chatkit/sessions.d.ts +57 -0
- package/dist/node_modules/openai/resources/beta/chatkit/sessions.js +45 -0
- package/dist/node_modules/openai/resources/beta/chatkit/threads.d.mts +811 -0
- package/dist/node_modules/openai/resources/beta/chatkit/threads.d.ts +811 -0
- package/dist/node_modules/openai/resources/beta/chatkit/threads.js +77 -0
- package/dist/node_modules/openai/resources/beta/chatkit.d.mts +2 -0
- package/dist/node_modules/openai/resources/beta/chatkit.d.ts +2 -0
- package/dist/node_modules/openai/resources/beta/chatkit.js +6 -0
- package/dist/node_modules/openai/resources/beta/index.d.mts +6 -0
- package/dist/node_modules/openai/resources/beta/index.d.ts +6 -0
- package/dist/node_modules/openai/resources/beta/index.js +15 -0
- package/dist/node_modules/openai/resources/beta/realtime/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/beta/realtime/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/beta/realtime/index.js +11 -0
- package/dist/node_modules/openai/resources/beta/realtime/realtime.d.mts +2332 -0
- package/dist/node_modules/openai/resources/beta/realtime/realtime.d.ts +2332 -0
- package/dist/node_modules/openai/resources/beta/realtime/realtime.js +24 -0
- package/dist/node_modules/openai/resources/beta/realtime/sessions.d.mts +744 -0
- package/dist/node_modules/openai/resources/beta/realtime/sessions.d.ts +744 -0
- package/dist/node_modules/openai/resources/beta/realtime/sessions.js +32 -0
- package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.d.mts +299 -0
- package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.d.ts +299 -0
- package/dist/node_modules/openai/resources/beta/realtime/transcription-sessions.js +32 -0
- package/dist/node_modules/openai/resources/beta/realtime.d.mts +2 -0
- package/dist/node_modules/openai/resources/beta/realtime.d.ts +2 -0
- package/dist/node_modules/openai/resources/beta/realtime.js +6 -0
- package/dist/node_modules/openai/resources/beta/threads/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/beta/threads/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/beta/threads/index.js +11 -0
- package/dist/node_modules/openai/resources/beta/threads/messages.d.mts +594 -0
- package/dist/node_modules/openai/resources/beta/threads/messages.d.ts +594 -0
- package/dist/node_modules/openai/resources/beta/threads/messages.js +76 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/index.js +9 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.mts +741 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/runs.d.ts +741 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/runs.js +182 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.mts +615 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/steps.d.ts +615 -0
- package/dist/node_modules/openai/resources/beta/threads/runs/steps.js +41 -0
- package/dist/node_modules/openai/resources/beta/threads/runs.d.mts +2 -0
- package/dist/node_modules/openai/resources/beta/threads/runs.d.ts +2 -0
- package/dist/node_modules/openai/resources/beta/threads/runs.js +6 -0
- package/dist/node_modules/openai/resources/beta/threads/threads.d.mts +1044 -0
- package/dist/node_modules/openai/resources/beta/threads/threads.d.ts +1044 -0
- package/dist/node_modules/openai/resources/beta/threads/threads.js +96 -0
- package/dist/node_modules/openai/resources/beta/threads.d.mts +2 -0
- package/dist/node_modules/openai/resources/beta/threads.d.ts +2 -0
- package/dist/node_modules/openai/resources/beta/threads.js +6 -0
- package/dist/node_modules/openai/resources/beta.d.mts +2 -0
- package/dist/node_modules/openai/resources/beta.d.ts +2 -0
- package/dist/node_modules/openai/resources/beta.js +6 -0
- package/dist/node_modules/openai/resources/chat/chat.d.mts +13 -0
- package/dist/node_modules/openai/resources/chat/chat.d.ts +13 -0
- package/dist/node_modules/openai/resources/chat/chat.js +17 -0
- package/dist/node_modules/openai/resources/chat/completions/completions.d.mts +1640 -0
- package/dist/node_modules/openai/resources/chat/completions/completions.d.ts +1640 -0
- package/dist/node_modules/openai/resources/chat/completions/completions.js +115 -0
- package/dist/node_modules/openai/resources/chat/completions/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/chat/completions/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/chat/completions/index.js +11 -0
- package/dist/node_modules/openai/resources/chat/completions/messages.d.mts +34 -0
- package/dist/node_modules/openai/resources/chat/completions/messages.d.ts +34 -0
- package/dist/node_modules/openai/resources/chat/completions/messages.js +28 -0
- package/dist/node_modules/openai/resources/chat/completions.d.mts +2 -0
- package/dist/node_modules/openai/resources/chat/completions.d.ts +2 -0
- package/dist/node_modules/openai/resources/chat/completions.js +6 -0
- package/dist/node_modules/openai/resources/chat/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/chat/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/chat/index.js +9 -0
- package/dist/node_modules/openai/resources/chat.d.mts +2 -0
- package/dist/node_modules/openai/resources/chat.d.ts +2 -0
- package/dist/node_modules/openai/resources/chat.js +6 -0
- package/dist/node_modules/openai/resources/completions.d.mts +329 -0
- package/dist/node_modules/openai/resources/completions.d.ts +329 -0
- package/dist/node_modules/openai/resources/completions.js +12 -0
- package/dist/node_modules/openai/resources/containers/containers.d.mts +292 -0
- package/dist/node_modules/openai/resources/containers/containers.d.ts +292 -0
- package/dist/node_modules/openai/resources/containers/containers.js +47 -0
- package/dist/node_modules/openai/resources/containers/files/content.d.mts +16 -0
- package/dist/node_modules/openai/resources/containers/files/content.d.ts +16 -0
- package/dist/node_modules/openai/resources/containers/files/content.js +22 -0
- package/dist/node_modules/openai/resources/containers/files/files.d.mts +148 -0
- package/dist/node_modules/openai/resources/containers/files/files.d.ts +148 -0
- package/dist/node_modules/openai/resources/containers/files/files.js +56 -0
- package/dist/node_modules/openai/resources/containers/files/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/containers/files/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/containers/files/index.js +9 -0
- package/dist/node_modules/openai/resources/containers/files.d.mts +2 -0
- package/dist/node_modules/openai/resources/containers/files.d.ts +2 -0
- package/dist/node_modules/openai/resources/containers/files.js +6 -0
- package/dist/node_modules/openai/resources/containers/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/containers/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/containers/index.js +9 -0
- package/dist/node_modules/openai/resources/containers.d.mts +2 -0
- package/dist/node_modules/openai/resources/containers.d.ts +2 -0
- package/dist/node_modules/openai/resources/containers.js +6 -0
- package/dist/node_modules/openai/resources/conversations/conversations.d.mts +176 -0
- package/dist/node_modules/openai/resources/conversations/conversations.d.ts +176 -0
- package/dist/node_modules/openai/resources/conversations/conversations.js +42 -0
- package/dist/node_modules/openai/resources/conversations/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/conversations/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/conversations/index.js +9 -0
- package/dist/node_modules/openai/resources/conversations/items.d.mts +367 -0
- package/dist/node_modules/openai/resources/conversations/items.d.ts +367 -0
- package/dist/node_modules/openai/resources/conversations/items.js +42 -0
- package/dist/node_modules/openai/resources/conversations.d.mts +2 -0
- package/dist/node_modules/openai/resources/conversations.d.ts +2 -0
- package/dist/node_modules/openai/resources/conversations.js +6 -0
- package/dist/node_modules/openai/resources/embeddings.d.mts +113 -0
- package/dist/node_modules/openai/resources/embeddings.d.ts +113 -0
- package/dist/node_modules/openai/resources/embeddings.js +56 -0
- package/dist/node_modules/openai/resources/evals/evals.d.mts +736 -0
- package/dist/node_modules/openai/resources/evals/evals.d.ts +736 -0
- package/dist/node_modules/openai/resources/evals/evals.js +54 -0
- package/dist/node_modules/openai/resources/evals/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/evals/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/evals/index.js +9 -0
- package/dist/node_modules/openai/resources/evals/runs/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/evals/runs/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/evals/runs/index.js +9 -0
- package/dist/node_modules/openai/resources/evals/runs/output-items.d.mts +382 -0
- package/dist/node_modules/openai/resources/evals/runs/output-items.d.ts +382 -0
- package/dist/node_modules/openai/resources/evals/runs/output-items.js +25 -0
- package/dist/node_modules/openai/resources/evals/runs/runs.d.mts +2385 -0
- package/dist/node_modules/openai/resources/evals/runs/runs.d.ts +2385 -0
- package/dist/node_modules/openai/resources/evals/runs/runs.js +57 -0
- package/dist/node_modules/openai/resources/evals/runs.d.mts +2 -0
- package/dist/node_modules/openai/resources/evals/runs.d.ts +2 -0
- package/dist/node_modules/openai/resources/evals/runs.js +6 -0
- package/dist/node_modules/openai/resources/evals.d.mts +2 -0
- package/dist/node_modules/openai/resources/evals.d.ts +2 -0
- package/dist/node_modules/openai/resources/evals.js +6 -0
- package/dist/node_modules/openai/resources/files.d.mts +171 -0
- package/dist/node_modules/openai/resources/files.d.ts +171 -0
- package/dist/node_modules/openai/resources/files.js +86 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.d.mts +10 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.d.ts +10 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/alpha.js +17 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.mts +119 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.d.ts +119 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/graders.js +49 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha/index.js +9 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha.d.mts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha.d.ts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/alpha.js +6 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.mts +10 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.d.ts +10 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +17 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/index.js +9 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.mts +160 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.d.ts +160 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +73 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints.d.mts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints.d.ts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/checkpoints.js +6 -0
- package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.d.mts +22 -0
- package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.d.ts +22 -0
- package/dist/node_modules/openai/resources/fine-tuning/fine-tuning.js +29 -0
- package/dist/node_modules/openai/resources/fine-tuning/index.d.mts +6 -0
- package/dist/node_modules/openai/resources/fine-tuning/index.d.ts +6 -0
- package/dist/node_modules/openai/resources/fine-tuning/index.js +15 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.mts +74 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.d.ts +74 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +27 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/index.js +9 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.mts +528 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.d.ts +528 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs/jobs.js +123 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs.d.mts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs.d.ts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning/jobs.js +6 -0
- package/dist/node_modules/openai/resources/fine-tuning/methods.d.mts +120 -0
- package/dist/node_modules/openai/resources/fine-tuning/methods.d.ts +120 -0
- package/dist/node_modules/openai/resources/fine-tuning/methods.js +9 -0
- package/dist/node_modules/openai/resources/fine-tuning.d.mts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning.d.ts +2 -0
- package/dist/node_modules/openai/resources/fine-tuning.js +6 -0
- package/dist/node_modules/openai/resources/graders/grader-models.d.mts +354 -0
- package/dist/node_modules/openai/resources/graders/grader-models.d.ts +354 -0
- package/dist/node_modules/openai/resources/graders/grader-models.js +9 -0
- package/dist/node_modules/openai/resources/graders/graders.d.mts +10 -0
- package/dist/node_modules/openai/resources/graders/graders.d.ts +10 -0
- package/dist/node_modules/openai/resources/graders/graders.js +17 -0
- package/dist/node_modules/openai/resources/graders/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/graders/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/graders/index.js +9 -0
- package/dist/node_modules/openai/resources/graders.d.mts +2 -0
- package/dist/node_modules/openai/resources/graders.d.ts +2 -0
- package/dist/node_modules/openai/resources/graders.js +6 -0
- package/dist/node_modules/openai/resources/images.d.mts +676 -0
- package/dist/node_modules/openai/resources/images.d.ts +676 -0
- package/dist/node_modules/openai/resources/images.js +29 -0
- package/dist/node_modules/openai/resources/index.d.mts +24 -0
- package/dist/node_modules/openai/resources/index.d.ts +24 -0
- package/dist/node_modules/openai/resources/index.js +50 -0
- package/dist/node_modules/openai/resources/models.d.mts +52 -0
- package/dist/node_modules/openai/resources/models.d.ts +52 -0
- package/dist/node_modules/openai/resources/models.js +32 -0
- package/dist/node_modules/openai/resources/moderations.d.mts +295 -0
- package/dist/node_modules/openai/resources/moderations.d.ts +295 -0
- package/dist/node_modules/openai/resources/moderations.js +16 -0
- package/dist/node_modules/openai/resources/realtime/calls.d.mts +158 -0
- package/dist/node_modules/openai/resources/realtime/calls.d.ts +158 -0
- package/dist/node_modules/openai/resources/realtime/calls.js +75 -0
- package/dist/node_modules/openai/resources/realtime/client-secrets.d.mts +624 -0
- package/dist/node_modules/openai/resources/realtime/client-secrets.d.ts +624 -0
- package/dist/node_modules/openai/resources/realtime/client-secrets.js +21 -0
- package/dist/node_modules/openai/resources/realtime/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/realtime/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/realtime/index.js +11 -0
- package/dist/node_modules/openai/resources/realtime/realtime.d.mts +3941 -0
- package/dist/node_modules/openai/resources/realtime/realtime.d.ts +3941 -0
- package/dist/node_modules/openai/resources/realtime/realtime.js +21 -0
- package/dist/node_modules/openai/resources/realtime.d.mts +2 -0
- package/dist/node_modules/openai/resources/realtime.d.ts +2 -0
- package/dist/node_modules/openai/resources/realtime.js +6 -0
- package/dist/node_modules/openai/resources/responses/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/responses/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/responses/index.js +11 -0
- package/dist/node_modules/openai/resources/responses/input-items.d.mts +65 -0
- package/dist/node_modules/openai/resources/responses/input-items.d.ts +65 -0
- package/dist/node_modules/openai/resources/responses/input-items.js +27 -0
- package/dist/node_modules/openai/resources/responses/input-tokens.d.mts +126 -0
- package/dist/node_modules/openai/resources/responses/input-tokens.d.ts +126 -0
- package/dist/node_modules/openai/resources/responses/input-tokens.js +20 -0
- package/dist/node_modules/openai/resources/responses/responses.d.mts +5559 -0
- package/dist/node_modules/openai/resources/responses/responses.d.ts +5559 -0
- package/dist/node_modules/openai/resources/responses/responses.js +100 -0
- package/dist/node_modules/openai/resources/responses.d.mts +2 -0
- package/dist/node_modules/openai/resources/responses.d.ts +2 -0
- package/dist/node_modules/openai/resources/responses.js +6 -0
- package/dist/node_modules/openai/resources/shared.d.mts +287 -0
- package/dist/node_modules/openai/resources/shared.d.ts +287 -0
- package/dist/node_modules/openai/resources/shared.js +4 -0
- package/dist/node_modules/openai/resources/skills/content.d.mts +10 -0
- package/dist/node_modules/openai/resources/skills/content.d.ts +10 -0
- package/dist/node_modules/openai/resources/skills/content.js +21 -0
- package/dist/node_modules/openai/resources/skills/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/skills/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/skills/index.js +11 -0
- package/dist/node_modules/openai/resources/skills/skills.d.mts +116 -0
- package/dist/node_modules/openai/resources/skills/skills.d.ts +116 -0
- package/dist/node_modules/openai/resources/skills/skills.js +54 -0
- package/dist/node_modules/openai/resources/skills/versions/content.d.mts +19 -0
- package/dist/node_modules/openai/resources/skills/versions/content.d.ts +19 -0
- package/dist/node_modules/openai/resources/skills/versions/content.js +22 -0
- package/dist/node_modules/openai/resources/skills/versions/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/skills/versions/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/skills/versions/index.js +9 -0
- package/dist/node_modules/openai/resources/skills/versions/versions.d.mts +121 -0
- package/dist/node_modules/openai/resources/skills/versions/versions.d.ts +121 -0
- package/dist/node_modules/openai/resources/skills/versions/versions.js +49 -0
- package/dist/node_modules/openai/resources/skills/versions.d.mts +2 -0
- package/dist/node_modules/openai/resources/skills/versions.d.ts +2 -0
- package/dist/node_modules/openai/resources/skills/versions.js +6 -0
- package/dist/node_modules/openai/resources/skills.d.mts +2 -0
- package/dist/node_modules/openai/resources/skills.d.ts +2 -0
- package/dist/node_modules/openai/resources/skills.js +6 -0
- package/dist/node_modules/openai/resources/uploads/index.d.mts +3 -0
- package/dist/node_modules/openai/resources/uploads/index.d.ts +3 -0
- package/dist/node_modules/openai/resources/uploads/index.js +9 -0
- package/dist/node_modules/openai/resources/uploads/parts.d.mts +51 -0
- package/dist/node_modules/openai/resources/uploads/parts.d.ts +51 -0
- package/dist/node_modules/openai/resources/uploads/parts.js +27 -0
- package/dist/node_modules/openai/resources/uploads/uploads.d.mts +157 -0
- package/dist/node_modules/openai/resources/uploads/uploads.d.ts +157 -0
- package/dist/node_modules/openai/resources/uploads/uploads.js +66 -0
- package/dist/node_modules/openai/resources/uploads.d.mts +2 -0
- package/dist/node_modules/openai/resources/uploads.d.ts +2 -0
- package/dist/node_modules/openai/resources/uploads.js +6 -0
- package/dist/node_modules/openai/resources/vector-stores/file-batches.d.mts +205 -0
- package/dist/node_modules/openai/resources/vector-stores/file-batches.d.ts +205 -0
- package/dist/node_modules/openai/resources/vector-stores/file-batches.js +133 -0
- package/dist/node_modules/openai/resources/vector-stores/files.d.mts +231 -0
- package/dist/node_modules/openai/resources/vector-stores/files.d.ts +231 -0
- package/dist/node_modules/openai/resources/vector-stores/files.js +142 -0
- package/dist/node_modules/openai/resources/vector-stores/index.d.mts +4 -0
- package/dist/node_modules/openai/resources/vector-stores/index.d.ts +4 -0
- package/dist/node_modules/openai/resources/vector-stores/index.js +11 -0
- package/dist/node_modules/openai/resources/vector-stores/vector-stores.d.mts +378 -0
- package/dist/node_modules/openai/resources/vector-stores/vector-stores.d.ts +378 -0
- package/dist/node_modules/openai/resources/vector-stores/vector-stores.js +84 -0
- package/dist/node_modules/openai/resources/vector-stores.d.mts +2 -0
- package/dist/node_modules/openai/resources/vector-stores.d.ts +2 -0
- package/dist/node_modules/openai/resources/vector-stores.js +6 -0
- package/dist/node_modules/openai/resources/videos.d.mts +169 -0
- package/dist/node_modules/openai/resources/videos.d.ts +169 -0
- package/dist/node_modules/openai/resources/videos.js +54 -0
- package/dist/node_modules/openai/resources/webhooks/index.d.mts +2 -0
- package/dist/node_modules/openai/resources/webhooks/index.d.ts +2 -0
- package/dist/node_modules/openai/resources/webhooks/index.js +6 -0
- package/dist/node_modules/openai/resources/webhooks/webhooks.d.mts +587 -0
- package/dist/node_modules/openai/resources/webhooks/webhooks.d.ts +587 -0
- package/dist/node_modules/openai/resources/webhooks/webhooks.js +101 -0
- package/dist/node_modules/openai/resources/webhooks.d.mts +2 -0
- package/dist/node_modules/openai/resources/webhooks.d.ts +2 -0
- package/dist/node_modules/openai/resources/webhooks.js +6 -0
- package/dist/node_modules/openai/resources.d.mts +2 -0
- package/dist/node_modules/openai/resources.d.ts +2 -0
- package/dist/node_modules/openai/resources.js +5 -0
- package/dist/node_modules/openai/src/_vendor/partial-json-parser/parser.ts +247 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/Options.ts +80 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/Refs.ts +47 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/errorMessages.ts +31 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/index.ts +37 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parseDef.ts +258 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/any.ts +5 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/array.ts +36 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/bigint.ts +60 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/boolean.ts +9 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/branded.ts +7 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/catch.ts +7 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/date.ts +83 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/effects.ts +11 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/enum.ts +13 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/intersection.ts +64 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/literal.ts +37 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/map.ts +42 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +27 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/never.ts +9 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/null.ts +16 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nullable.ts +49 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/number.ts +62 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/object.ts +76 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/optional.ts +28 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +28 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/promise.ts +7 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/readonly.ts +7 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/record.ts +73 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/set.ts +36 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/string.ts +400 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/tuple.ts +54 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/undefined.ts +9 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/union.ts +119 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/unknown.ts +5 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/util.ts +11 -0
- package/dist/node_modules/openai/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +120 -0
- package/dist/node_modules/openai/src/api-promise.ts +2 -0
- package/dist/node_modules/openai/src/azure.ts +158 -0
- package/dist/node_modules/openai/src/beta/realtime/index.ts +1 -0
- package/dist/node_modules/openai/src/beta/realtime/internal-base.ts +93 -0
- package/dist/node_modules/openai/src/beta/realtime/websocket.ts +158 -0
- package/dist/node_modules/openai/src/beta/realtime/ws.ts +114 -0
- package/dist/node_modules/openai/src/client.ts +1321 -0
- package/dist/node_modules/openai/src/core/api-promise.ts +101 -0
- package/dist/node_modules/openai/src/core/error.ts +160 -0
- package/dist/node_modules/openai/src/core/pagination.ts +269 -0
- package/dist/node_modules/openai/src/core/resource.ts +11 -0
- package/dist/node_modules/openai/src/core/streaming.ts +348 -0
- package/dist/node_modules/openai/src/core/uploads.ts +2 -0
- package/dist/node_modules/openai/src/error.ts +2 -0
- package/dist/node_modules/openai/src/helpers/audio.ts +146 -0
- package/dist/node_modules/openai/src/helpers/zod.ts +180 -0
- package/dist/node_modules/openai/src/index.ts +26 -0
- package/dist/node_modules/openai/src/internal/builtin-types.ts +93 -0
- package/dist/node_modules/openai/src/internal/decoders/line.ts +135 -0
- package/dist/node_modules/openai/src/internal/detect-platform.ts +196 -0
- package/dist/node_modules/openai/src/internal/errors.ts +33 -0
- package/dist/node_modules/openai/src/internal/headers.ts +97 -0
- package/dist/node_modules/openai/src/internal/parse.ts +90 -0
- package/dist/node_modules/openai/src/internal/qs/formats.ts +10 -0
- package/dist/node_modules/openai/src/internal/qs/index.ts +13 -0
- package/dist/node_modules/openai/src/internal/qs/stringify.ts +385 -0
- package/dist/node_modules/openai/src/internal/qs/types.ts +71 -0
- package/dist/node_modules/openai/src/internal/qs/utils.ts +265 -0
- package/dist/node_modules/openai/src/internal/request-options.ts +94 -0
- package/dist/node_modules/openai/src/internal/shim-types.ts +26 -0
- package/dist/node_modules/openai/src/internal/shims.ts +107 -0
- package/dist/node_modules/openai/src/internal/stream-utils.ts +32 -0
- package/dist/node_modules/openai/src/internal/to-file.ts +154 -0
- package/dist/node_modules/openai/src/internal/types.ts +95 -0
- package/dist/node_modules/openai/src/internal/uploads.ts +187 -0
- package/dist/node_modules/openai/src/internal/utils/base64.ts +64 -0
- package/dist/node_modules/openai/src/internal/utils/bytes.ts +32 -0
- package/dist/node_modules/openai/src/internal/utils/env.ts +18 -0
- package/dist/node_modules/openai/src/internal/utils/log.ts +126 -0
- package/dist/node_modules/openai/src/internal/utils/path.ts +88 -0
- package/dist/node_modules/openai/src/internal/utils/sleep.ts +3 -0
- package/dist/node_modules/openai/src/internal/utils/uuid.ts +17 -0
- package/dist/node_modules/openai/src/internal/utils/values.ts +105 -0
- package/dist/node_modules/openai/src/internal/utils.ts +8 -0
- package/dist/node_modules/openai/src/lib/.keep +4 -0
- package/dist/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +404 -0
- package/dist/node_modules/openai/src/lib/AssistantStream.ts +778 -0
- package/dist/node_modules/openai/src/lib/ChatCompletionRunner.ts +54 -0
- package/dist/node_modules/openai/src/lib/ChatCompletionStream.ts +872 -0
- package/dist/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +50 -0
- package/dist/node_modules/openai/src/lib/EventEmitter.ts +98 -0
- package/dist/node_modules/openai/src/lib/EventStream.ts +239 -0
- package/dist/node_modules/openai/src/lib/ResponsesParser.ts +265 -0
- package/dist/node_modules/openai/src/lib/RunnableFunction.ts +114 -0
- package/dist/node_modules/openai/src/lib/Util.ts +23 -0
- package/dist/node_modules/openai/src/lib/chatCompletionUtils.ts +21 -0
- package/dist/node_modules/openai/src/lib/jsonschema.ts +172 -0
- package/dist/node_modules/openai/src/lib/parser.ts +311 -0
- package/dist/node_modules/openai/src/lib/responses/EventTypes.ts +74 -0
- package/dist/node_modules/openai/src/lib/responses/ResponseStream.ts +368 -0
- package/dist/node_modules/openai/src/lib/transform.ts +193 -0
- package/dist/node_modules/openai/src/pagination.ts +2 -0
- package/dist/node_modules/openai/src/realtime/index.ts +1 -0
- package/dist/node_modules/openai/src/realtime/internal-base.ts +98 -0
- package/dist/node_modules/openai/src/realtime/websocket.ts +157 -0
- package/dist/node_modules/openai/src/realtime/ws.ts +113 -0
- package/dist/node_modules/openai/src/resource.ts +2 -0
- package/dist/node_modules/openai/src/resources/audio/audio.ts +91 -0
- package/dist/node_modules/openai/src/resources/audio/index.ts +29 -0
- package/dist/node_modules/openai/src/resources/audio/speech.ts +95 -0
- package/dist/node_modules/openai/src/resources/audio/transcriptions.ts +823 -0
- package/dist/node_modules/openai/src/resources/audio/translations.ts +118 -0
- package/dist/node_modules/openai/src/resources/audio.ts +3 -0
- package/dist/node_modules/openai/src/resources/batches.ts +367 -0
- package/dist/node_modules/openai/src/resources/beta/assistants.ts +1541 -0
- package/dist/node_modules/openai/src/resources/beta/beta.ts +199 -0
- package/dist/node_modules/openai/src/resources/beta/chatkit/chatkit.ts +112 -0
- package/dist/node_modules/openai/src/resources/beta/chatkit/index.ts +30 -0
- package/dist/node_modules/openai/src/resources/beta/chatkit/sessions.ts +79 -0
- package/dist/node_modules/openai/src/resources/beta/chatkit/threads.ts +1037 -0
- package/dist/node_modules/openai/src/resources/beta/chatkit.ts +3 -0
- package/dist/node_modules/openai/src/resources/beta/index.ts +39 -0
- package/dist/node_modules/openai/src/resources/beta/realtime/index.ts +9 -0
- package/dist/node_modules/openai/src/resources/beta/realtime/realtime.ts +2829 -0
- package/dist/node_modules/openai/src/resources/beta/realtime/sessions.ts +869 -0
- package/dist/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +347 -0
- package/dist/node_modules/openai/src/resources/beta/realtime.ts +3 -0
- package/dist/node_modules/openai/src/resources/beta/threads/index.ts +77 -0
- package/dist/node_modules/openai/src/resources/beta/threads/messages.ts +792 -0
- package/dist/node_modules/openai/src/resources/beta/threads/runs/index.ts +48 -0
- package/dist/node_modules/openai/src/resources/beta/threads/runs/runs.ts +1080 -0
- package/dist/node_modules/openai/src/resources/beta/threads/runs/steps.ts +756 -0
- package/dist/node_modules/openai/src/resources/beta/threads/runs.ts +3 -0
- package/dist/node_modules/openai/src/resources/beta/threads/threads.ts +1397 -0
- package/dist/node_modules/openai/src/resources/beta/threads.ts +3 -0
- package/dist/node_modules/openai/src/resources/beta.ts +3 -0
- package/dist/node_modules/openai/src/resources/chat/chat.ts +110 -0
- package/dist/node_modules/openai/src/resources/chat/completions/completions.ts +2034 -0
- package/dist/node_modules/openai/src/resources/chat/completions/index.ts +50 -0
- package/dist/node_modules/openai/src/resources/chat/completions/messages.ts +50 -0
- package/dist/node_modules/openai/src/resources/chat/completions.ts +3 -0
- package/dist/node_modules/openai/src/resources/chat/index.ts +49 -0
- package/dist/node_modules/openai/src/resources/chat.ts +3 -0
- package/dist/node_modules/openai/src/resources/completions.ts +394 -0
- package/dist/node_modules/openai/src/resources/containers/containers.ts +395 -0
- package/dist/node_modules/openai/src/resources/containers/files/content.ts +29 -0
- package/dist/node_modules/openai/src/resources/containers/files/files.ts +228 -0
- package/dist/node_modules/openai/src/resources/containers/files/index.ts +14 -0
- package/dist/node_modules/openai/src/resources/containers/files.ts +3 -0
- package/dist/node_modules/openai/src/resources/containers/index.ts +22 -0
- package/dist/node_modules/openai/src/resources/containers.ts +3 -0
- package/dist/node_modules/openai/src/resources/conversations/conversations.ts +277 -0
- package/dist/node_modules/openai/src/resources/conversations/index.ts +13 -0
- package/dist/node_modules/openai/src/resources/conversations/items.ts +502 -0
- package/dist/node_modules/openai/src/resources/conversations.ts +3 -0
- package/dist/node_modules/openai/src/resources/embeddings.ts +177 -0
- package/dist/node_modules/openai/src/resources/evals/evals.ts +930 -0
- package/dist/node_modules/openai/src/resources/evals/index.ts +33 -0
- package/dist/node_modules/openai/src/resources/evals/runs/index.ts +27 -0
- package/dist/node_modules/openai/src/resources/evals/runs/output-items.ts +477 -0
- package/dist/node_modules/openai/src/resources/evals/runs/runs.ts +2869 -0
- package/dist/node_modules/openai/src/resources/evals/runs.ts +3 -0
- package/dist/node_modules/openai/src/resources/evals.ts +3 -0
- package/dist/node_modules/openai/src/resources/files.ts +257 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/alpha/alpha.ts +27 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +171 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/alpha/index.ts +10 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/alpha.ts +3 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +33 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +13 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +227 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/checkpoints.ts +3 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +73 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/index.ts +27 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +107 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +21 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +654 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/jobs.ts +3 -0
- package/dist/node_modules/openai/src/resources/fine-tuning/methods.ts +152 -0
- package/dist/node_modules/openai/src/resources/fine-tuning.ts +3 -0
- package/dist/node_modules/openai/src/resources/graders/grader-models.ts +450 -0
- package/dist/node_modules/openai/src/resources/graders/graders.ts +33 -0
- package/dist/node_modules/openai/src/resources/graders/index.ts +13 -0
- package/dist/node_modules/openai/src/resources/graders.ts +3 -0
- package/dist/node_modules/openai/src/resources/images.ts +848 -0
- package/dist/node_modules/openai/src/resources/index.ts +145 -0
- package/dist/node_modules/openai/src/resources/models.ts +73 -0
- package/dist/node_modules/openai/src/resources/moderations.ts +367 -0
- package/dist/node_modules/openai/src/resources/realtime/calls.ts +226 -0
- package/dist/node_modules/openai/src/resources/realtime/client-secrets.ts +747 -0
- package/dist/node_modules/openai/src/resources/realtime/index.ts +13 -0
- package/dist/node_modules/openai/src/resources/realtime/realtime.ts +4844 -0
- package/dist/node_modules/openai/src/resources/realtime.ts +3 -0
- package/dist/node_modules/openai/src/resources/responses/index.ts +5 -0
- package/dist/node_modules/openai/src/resources/responses/input-items.ts +87 -0
- package/dist/node_modules/openai/src/resources/responses/input-tokens.ts +161 -0
- package/dist/node_modules/openai/src/resources/responses/responses.ts +7057 -0
- package/dist/node_modules/openai/src/resources/responses.ts +3 -0
- package/dist/node_modules/openai/src/resources/shared.ts +423 -0
- package/dist/node_modules/openai/src/resources/skills/content.ts +20 -0
- package/dist/node_modules/openai/src/resources/skills/index.ts +24 -0
- package/dist/node_modules/openai/src/resources/skills/skills.ts +191 -0
- package/dist/node_modules/openai/src/resources/skills/versions/content.ts +32 -0
- package/dist/node_modules/openai/src/resources/skills/versions/index.ts +14 -0
- package/dist/node_modules/openai/src/resources/skills/versions/versions.ts +196 -0
- package/dist/node_modules/openai/src/resources/skills/versions.ts +3 -0
- package/dist/node_modules/openai/src/resources/skills.ts +3 -0
- package/dist/node_modules/openai/src/resources/uploads/index.ts +4 -0
- package/dist/node_modules/openai/src/resources/uploads/parts.ts +66 -0
- package/dist/node_modules/openai/src/resources/uploads/uploads.ts +195 -0
- package/dist/node_modules/openai/src/resources/uploads.ts +3 -0
- package/dist/node_modules/openai/src/resources/vector-stores/file-batches.ts +367 -0
- package/dist/node_modules/openai/src/resources/vector-stores/files.ts +394 -0
- package/dist/node_modules/openai/src/resources/vector-stores/index.ts +43 -0
- package/dist/node_modules/openai/src/resources/vector-stores/vector-stores.ts +562 -0
- package/dist/node_modules/openai/src/resources/vector-stores.ts +3 -0
- package/dist/node_modules/openai/src/resources/videos.ts +255 -0
- package/dist/node_modules/openai/src/resources/webhooks/index.ts +3 -0
- package/dist/node_modules/openai/src/resources/webhooks/webhooks.ts +833 -0
- package/dist/node_modules/openai/src/resources/webhooks.ts +3 -0
- package/dist/node_modules/openai/src/resources.ts +1 -0
- package/dist/node_modules/openai/src/streaming.ts +2 -0
- package/dist/node_modules/openai/src/uploads.ts +2 -0
- package/dist/node_modules/openai/src/version.ts +1 -0
- package/dist/node_modules/openai/streaming.d.mts +2 -0
- package/dist/node_modules/openai/streaming.d.ts +2 -0
- package/dist/node_modules/openai/streaming.js +6 -0
- package/dist/node_modules/openai/uploads.d.mts +2 -0
- package/dist/node_modules/openai/uploads.d.ts +2 -0
- package/dist/node_modules/openai/uploads.js +6 -0
- package/dist/node_modules/openai/version.d.mts +2 -0
- package/dist/node_modules/openai/version.d.ts +2 -0
- package/dist/node_modules/openai/version.js +5 -0
- package/dist/node_modules/zod/index.d.cts +4 -0
- package/dist/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/zod/mini/index.d.cts +1 -0
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +50 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +50 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +15 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +15 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +31 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +31 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +739 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +739 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +304 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +304 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +70 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +70 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +220 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +220 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +16 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +88 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +88 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +49 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +49 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +79 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +79 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1146 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1146 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +114 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +114 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +199 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +199 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +49 -0
- package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +12 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +12 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +427 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +427 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/dist/server/ai-employees/ai-employee.d.ts +2 -0
- package/dist/server/ai-employees/ai-employee.js +75 -2
- package/dist/server/document-loader/cached.d.ts +34 -0
- package/dist/server/document-loader/cached.js +237 -0
- package/dist/server/document-loader/constants.d.ts +11 -0
- package/dist/server/document-loader/constants.js +46 -0
- package/dist/server/document-loader/index.d.ts +22 -0
- package/dist/server/document-loader/index.js +65 -0
- package/dist/server/document-loader/loader.d.ts +18 -0
- package/dist/server/document-loader/loader.js +112 -0
- package/dist/server/document-loader/loader.worker.d.ts +9 -0
- package/dist/server/document-loader/loader.worker.js +68 -0
- package/dist/server/document-loader/types.d.ts +43 -0
- package/dist/server/document-loader/types.js +24 -0
- package/dist/server/document-loader/utils.d.ts +10 -0
- package/dist/server/document-loader/utils.js +49 -0
- package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.d.ts +20 -0
- package/dist/server/document-loader/vendor/langchain/document_loaders/fs/text.js +96 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +3 -0
- package/dist/server/llm-providers/anthropic.js +14 -8
- package/dist/server/llm-providers/common/reasoning.d.ts +29 -0
- package/dist/server/llm-providers/common/reasoning.js +144 -0
- package/dist/server/llm-providers/dashscope.d.ts +17 -3
- package/dist/server/llm-providers/dashscope.js +70 -1
- package/dist/server/llm-providers/deepseek.d.ts +23 -1
- package/dist/server/llm-providers/deepseek.js +96 -1
- package/dist/server/llm-providers/google-genai.d.ts +13 -7
- package/dist/server/llm-providers/google-genai.js +11 -5
- package/dist/server/llm-providers/kimi/document-loader.d.ts +25 -0
- package/dist/server/llm-providers/kimi/document-loader.js +136 -0
- package/dist/server/llm-providers/kimi/index.d.ts +9 -0
- package/dist/server/llm-providers/kimi/index.js +38 -0
- package/dist/server/llm-providers/kimi/provider.d.ts +33 -0
- package/dist/server/llm-providers/kimi/provider.js +162 -0
- package/dist/server/llm-providers/provider.d.ts +9 -1
- package/dist/server/llm-providers/provider.js +18 -9
- package/dist/server/plugin.d.ts +4 -0
- package/dist/server/plugin.js +5 -0
- package/package.json +3 -2
- package/dist/client/f36cbdd2680ceeba.js +0 -10
- package/dist/node_modules/@langchain/anthropic/LICENSE +0 -21
- package/dist/node_modules/@langchain/anthropic/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/anthropic/dist/chat_models.cjs +0 -1057
- package/dist/node_modules/@langchain/anthropic/dist/chat_models.js +0 -1055
- package/dist/node_modules/@langchain/anthropic/dist/index.cjs +0 -8
- package/dist/node_modules/@langchain/anthropic/dist/index.js +0 -5
- package/dist/node_modules/@langchain/anthropic/dist/output_parsers.cjs +0 -67
- package/dist/node_modules/@langchain/anthropic/dist/output_parsers.js +0 -65
- package/dist/node_modules/@langchain/anthropic/dist/profiles.cjs +0 -332
- package/dist/node_modules/@langchain/anthropic/dist/profiles.js +0 -331
- package/dist/node_modules/@langchain/anthropic/dist/tools/bash.cjs +0 -95
- package/dist/node_modules/@langchain/anthropic/dist/tools/bash.js +0 -94
- package/dist/node_modules/@langchain/anthropic/dist/tools/codeExecution.cjs +0 -70
- package/dist/node_modules/@langchain/anthropic/dist/tools/codeExecution.js +0 -69
- package/dist/node_modules/@langchain/anthropic/dist/tools/computer.cjs +0 -161
- package/dist/node_modules/@langchain/anthropic/dist/tools/computer.js +0 -159
- package/dist/node_modules/@langchain/anthropic/dist/tools/index.cjs +0 -28
- package/dist/node_modules/@langchain/anthropic/dist/tools/index.js +0 -28
- package/dist/node_modules/@langchain/anthropic/dist/tools/mcpToolset.cjs +0 -111
- package/dist/node_modules/@langchain/anthropic/dist/tools/mcpToolset.js +0 -110
- package/dist/node_modules/@langchain/anthropic/dist/tools/memory.cjs +0 -56
- package/dist/node_modules/@langchain/anthropic/dist/tools/memory.js +0 -55
- package/dist/node_modules/@langchain/anthropic/dist/tools/textEditor.cjs +0 -79
- package/dist/node_modules/@langchain/anthropic/dist/tools/textEditor.js +0 -78
- package/dist/node_modules/@langchain/anthropic/dist/tools/toolSearch.cjs +0 -110
- package/dist/node_modules/@langchain/anthropic/dist/tools/toolSearch.js +0 -108
- package/dist/node_modules/@langchain/anthropic/dist/tools/types.cjs +0 -204
- package/dist/node_modules/@langchain/anthropic/dist/tools/types.js +0 -199
- package/dist/node_modules/@langchain/anthropic/dist/tools/webFetch.cjs +0 -70
- package/dist/node_modules/@langchain/anthropic/dist/tools/webFetch.js +0 -69
- package/dist/node_modules/@langchain/anthropic/dist/tools/webSearch.cjs +0 -57
- package/dist/node_modules/@langchain/anthropic/dist/tools/webSearch.js +0 -56
- package/dist/node_modules/@langchain/anthropic/dist/utils/content.cjs +0 -155
- package/dist/node_modules/@langchain/anthropic/dist/utils/content.js +0 -149
- package/dist/node_modules/@langchain/anthropic/dist/utils/errors.cjs +0 -20
- package/dist/node_modules/@langchain/anthropic/dist/utils/errors.js +0 -19
- package/dist/node_modules/@langchain/anthropic/dist/utils/index.cjs +0 -7
- package/dist/node_modules/@langchain/anthropic/dist/utils/index.js +0 -6
- package/dist/node_modules/@langchain/anthropic/dist/utils/message_inputs.cjs +0 -346
- package/dist/node_modules/@langchain/anthropic/dist/utils/message_inputs.js +0 -344
- package/dist/node_modules/@langchain/anthropic/dist/utils/message_outputs.cjs +0 -203
- package/dist/node_modules/@langchain/anthropic/dist/utils/message_outputs.js +0 -201
- package/dist/node_modules/@langchain/anthropic/dist/utils/prompts.cjs +0 -49
- package/dist/node_modules/@langchain/anthropic/dist/utils/prompts.js +0 -49
- package/dist/node_modules/@langchain/anthropic/dist/utils/standard.cjs +0 -285
- package/dist/node_modules/@langchain/anthropic/dist/utils/standard.js +0 -285
- package/dist/node_modules/@langchain/anthropic/dist/utils/tools.cjs +0 -44
- package/dist/node_modules/@langchain/anthropic/dist/utils/tools.js +0 -41
- package/dist/node_modules/@langchain/anthropic/package.json +0 -1
- package/dist/node_modules/@langchain/core/LICENSE +0 -21
- package/dist/node_modules/@langchain/core/agents.cjs +0 -1
- package/dist/node_modules/@langchain/core/agents.js +0 -1
- package/dist/node_modules/@langchain/core/caches.cjs +0 -1
- package/dist/node_modules/@langchain/core/caches.js +0 -1
- package/dist/node_modules/@langchain/core/callbacks/base.cjs +0 -1
- package/dist/node_modules/@langchain/core/callbacks/base.js +0 -1
- package/dist/node_modules/@langchain/core/callbacks/dispatch/web.cjs +0 -1
- package/dist/node_modules/@langchain/core/callbacks/dispatch/web.js +0 -1
- package/dist/node_modules/@langchain/core/callbacks/dispatch.cjs +0 -1
- package/dist/node_modules/@langchain/core/callbacks/dispatch.js +0 -1
- package/dist/node_modules/@langchain/core/callbacks/manager.cjs +0 -1
- package/dist/node_modules/@langchain/core/callbacks/manager.js +0 -1
- package/dist/node_modules/@langchain/core/callbacks/promises.cjs +0 -1
- package/dist/node_modules/@langchain/core/callbacks/promises.js +0 -1
- package/dist/node_modules/@langchain/core/chat_history.cjs +0 -1
- package/dist/node_modules/@langchain/core/chat_history.js +0 -1
- package/dist/node_modules/@langchain/core/context.cjs +0 -1
- package/dist/node_modules/@langchain/core/context.js +0 -1
- package/dist/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.cjs +0 -32
- package/dist/node_modules/@langchain/core/dist/_virtual/rolldown_runtime.js +0 -11
- package/dist/node_modules/@langchain/core/dist/agents.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/agents.js +0 -6
- package/dist/node_modules/@langchain/core/dist/caches/index.cjs +0 -94
- package/dist/node_modules/@langchain/core/dist/caches/index.js +0 -84
- package/dist/node_modules/@langchain/core/dist/callbacks/base.cjs +0 -120
- package/dist/node_modules/@langchain/core/dist/callbacks/base.js +0 -112
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/index.cjs +0 -50
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/index.js +0 -49
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/web.cjs +0 -53
- package/dist/node_modules/@langchain/core/dist/callbacks/dispatch/web.js +0 -53
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.cjs +0 -538
- package/dist/node_modules/@langchain/core/dist/callbacks/manager.js +0 -524
- package/dist/node_modules/@langchain/core/dist/callbacks/promises.cjs +0 -20
- package/dist/node_modules/@langchain/core/dist/callbacks/promises.js +0 -13
- package/dist/node_modules/@langchain/core/dist/chat_history.cjs +0 -126
- package/dist/node_modules/@langchain/core/dist/chat_history.js +0 -118
- package/dist/node_modules/@langchain/core/dist/context.cjs +0 -16
- package/dist/node_modules/@langchain/core/dist/context.js +0 -12
- package/dist/node_modules/@langchain/core/dist/document_loaders/base.cjs +0 -21
- package/dist/node_modules/@langchain/core/dist/document_loaders/base.js +0 -15
- package/dist/node_modules/@langchain/core/dist/document_loaders/langsmith.cjs +0 -131
- package/dist/node_modules/@langchain/core/dist/document_loaders/langsmith.js +0 -125
- package/dist/node_modules/@langchain/core/dist/documents/document.cjs +0 -25
- package/dist/node_modules/@langchain/core/dist/documents/document.js +0 -24
- package/dist/node_modules/@langchain/core/dist/documents/index.cjs +0 -23
- package/dist/node_modules/@langchain/core/dist/documents/index.js +0 -15
- package/dist/node_modules/@langchain/core/dist/documents/transformers.cjs +0 -49
- package/dist/node_modules/@langchain/core/dist/documents/transformers.js +0 -48
- package/dist/node_modules/@langchain/core/dist/embeddings.cjs +0 -30
- package/dist/node_modules/@langchain/core/dist/embeddings.js +0 -24
- package/dist/node_modules/@langchain/core/dist/errors/index.cjs +0 -49
- package/dist/node_modules/@langchain/core/dist/errors/index.js +0 -42
- package/dist/node_modules/@langchain/core/dist/example_selectors/base.cjs +0 -17
- package/dist/node_modules/@langchain/core/dist/example_selectors/base.js +0 -17
- package/dist/node_modules/@langchain/core/dist/example_selectors/conditional.cjs +0 -64
- package/dist/node_modules/@langchain/core/dist/example_selectors/conditional.js +0 -60
- package/dist/node_modules/@langchain/core/dist/example_selectors/index.cjs +0 -33
- package/dist/node_modules/@langchain/core/dist/example_selectors/index.js +0 -21
- package/dist/node_modules/@langchain/core/dist/example_selectors/length_based.cjs +0 -123
- package/dist/node_modules/@langchain/core/dist/example_selectors/length_based.js +0 -123
- package/dist/node_modules/@langchain/core/dist/example_selectors/semantic_similarity.cjs +0 -122
- package/dist/node_modules/@langchain/core/dist/example_selectors/semantic_similarity.js +0 -122
- package/dist/node_modules/@langchain/core/dist/index.cjs +0 -1
- package/dist/node_modules/@langchain/core/dist/index.js +0 -6
- package/dist/node_modules/@langchain/core/dist/indexing/base.cjs +0 -219
- package/dist/node_modules/@langchain/core/dist/indexing/base.js +0 -213
- package/dist/node_modules/@langchain/core/dist/indexing/index.cjs +0 -33
- package/dist/node_modules/@langchain/core/dist/indexing/index.js +0 -20
- package/dist/node_modules/@langchain/core/dist/indexing/record_manager.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/indexing/record_manager.js +0 -11
- package/dist/node_modules/@langchain/core/dist/language_models/base.cjs +0 -285
- package/dist/node_modules/@langchain/core/dist/language_models/base.js +0 -273
- package/dist/node_modules/@langchain/core/dist/language_models/chat_models.cjs +0 -447
- package/dist/node_modules/@langchain/core/dist/language_models/chat_models.js +0 -440
- package/dist/node_modules/@langchain/core/dist/language_models/llms.cjs +0 -275
- package/dist/node_modules/@langchain/core/dist/language_models/llms.js +0 -268
- package/dist/node_modules/@langchain/core/dist/language_models/profile.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/language_models/profile.js +0 -6
- package/dist/node_modules/@langchain/core/dist/language_models/utils.cjs +0 -19
- package/dist/node_modules/@langchain/core/dist/language_models/utils.js +0 -17
- package/dist/node_modules/@langchain/core/dist/load/import_constants.cjs +0 -8
- package/dist/node_modules/@langchain/core/dist/load/import_constants.js +0 -7
- package/dist/node_modules/@langchain/core/dist/load/import_map.cjs +0 -133
- package/dist/node_modules/@langchain/core/dist/load/import_map.js +0 -128
- package/dist/node_modules/@langchain/core/dist/load/index.cjs +0 -151
- package/dist/node_modules/@langchain/core/dist/load/index.js +0 -151
- package/dist/node_modules/@langchain/core/dist/load/map_keys.cjs +0 -22
- package/dist/node_modules/@langchain/core/dist/load/map_keys.js +0 -19
- package/dist/node_modules/@langchain/core/dist/load/serializable.cjs +0 -157
- package/dist/node_modules/@langchain/core/dist/load/serializable.js +0 -150
- package/dist/node_modules/@langchain/core/dist/load/validation.cjs +0 -121
- package/dist/node_modules/@langchain/core/dist/load/validation.js +0 -118
- package/dist/node_modules/@langchain/core/dist/memory.cjs +0 -72
- package/dist/node_modules/@langchain/core/dist/memory.js +0 -63
- package/dist/node_modules/@langchain/core/dist/messages/ai.cjs +0 -231
- package/dist/node_modules/@langchain/core/dist/messages/ai.js +0 -228
- package/dist/node_modules/@langchain/core/dist/messages/base.cjs +0 -307
- package/dist/node_modules/@langchain/core/dist/messages/base.js +0 -296
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/anthropic.cjs +0 -367
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/anthropic.js +0 -366
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.cjs +0 -213
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/bedrock_converse.js +0 -213
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/data.cjs +0 -71
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/data.js +0 -69
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/deepseek.cjs +0 -59
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/deepseek.js +0 -59
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google.cjs +0 -86
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google.js +0 -86
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_genai.cjs +0 -80
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_genai.js +0 -80
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.cjs +0 -81
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/google_vertexai.js +0 -81
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/groq.cjs +0 -97
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/groq.js +0 -97
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/index.cjs +0 -31
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/index.js +0 -31
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/ollama.cjs +0 -59
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/ollama.js +0 -59
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/openai.cjs +0 -413
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/openai.js +0 -412
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/utils.cjs +0 -39
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/utils.js +0 -31
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/xai.cjs +0 -95
- package/dist/node_modules/@langchain/core/dist/messages/block_translators/xai.js +0 -95
- package/dist/node_modules/@langchain/core/dist/messages/chat.cjs +0 -90
- package/dist/node_modules/@langchain/core/dist/messages/chat.js +0 -87
- package/dist/node_modules/@langchain/core/dist/messages/content/data.cjs +0 -146
- package/dist/node_modules/@langchain/core/dist/messages/content/data.js +0 -137
- package/dist/node_modules/@langchain/core/dist/messages/content/index.cjs +0 -14
- package/dist/node_modules/@langchain/core/dist/messages/content/index.js +0 -14
- package/dist/node_modules/@langchain/core/dist/messages/content/multimodal.cjs +0 -13
- package/dist/node_modules/@langchain/core/dist/messages/content/multimodal.js +0 -12
- package/dist/node_modules/@langchain/core/dist/messages/content/tools.cjs +0 -14
- package/dist/node_modules/@langchain/core/dist/messages/content/tools.js +0 -13
- package/dist/node_modules/@langchain/core/dist/messages/format.cjs +0 -39
- package/dist/node_modules/@langchain/core/dist/messages/format.js +0 -38
- package/dist/node_modules/@langchain/core/dist/messages/function.cjs +0 -50
- package/dist/node_modules/@langchain/core/dist/messages/function.js +0 -47
- package/dist/node_modules/@langchain/core/dist/messages/human.cjs +0 -62
- package/dist/node_modules/@langchain/core/dist/messages/human.js +0 -59
- package/dist/node_modules/@langchain/core/dist/messages/index.cjs +0 -157
- package/dist/node_modules/@langchain/core/dist/messages/index.js +0 -88
- package/dist/node_modules/@langchain/core/dist/messages/message.cjs +0 -15
- package/dist/node_modules/@langchain/core/dist/messages/message.js +0 -14
- package/dist/node_modules/@langchain/core/dist/messages/metadata.cjs +0 -41
- package/dist/node_modules/@langchain/core/dist/messages/metadata.js +0 -40
- package/dist/node_modules/@langchain/core/dist/messages/modifier.cjs +0 -33
- package/dist/node_modules/@langchain/core/dist/messages/modifier.js +0 -33
- package/dist/node_modules/@langchain/core/dist/messages/system.cjs +0 -86
- package/dist/node_modules/@langchain/core/dist/messages/system.js +0 -83
- package/dist/node_modules/@langchain/core/dist/messages/tool.cjs +0 -166
- package/dist/node_modules/@langchain/core/dist/messages/tool.js +0 -155
- package/dist/node_modules/@langchain/core/dist/messages/transformers.cjs +0 -314
- package/dist/node_modules/@langchain/core/dist/messages/transformers.js +0 -311
- package/dist/node_modules/@langchain/core/dist/messages/utils.cjs +0 -296
- package/dist/node_modules/@langchain/core/dist/messages/utils.js +0 -289
- package/dist/node_modules/@langchain/core/dist/output_parsers/base.cjs +0 -108
- package/dist/node_modules/@langchain/core/dist/output_parsers/base.js +0 -106
- package/dist/node_modules/@langchain/core/dist/output_parsers/bytes.cjs +0 -29
- package/dist/node_modules/@langchain/core/dist/output_parsers/bytes.js +0 -29
- package/dist/node_modules/@langchain/core/dist/output_parsers/index.cjs +0 -66
- package/dist/node_modules/@langchain/core/dist/output_parsers/index.js +0 -40
- package/dist/node_modules/@langchain/core/dist/output_parsers/json.cjs +0 -53
- package/dist/node_modules/@langchain/core/dist/output_parsers/json.js +0 -53
- package/dist/node_modules/@langchain/core/dist/output_parsers/list.cjs +0 -160
- package/dist/node_modules/@langchain/core/dist/output_parsers/list.js +0 -156
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/index.cjs +0 -22
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/index.js +0 -14
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/json_output_functions_parsers.cjs +0 -144
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_functions/json_output_functions_parsers.js +0 -142
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/index.cjs +0 -26
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/index.js +0 -16
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.cjs +0 -183
- package/dist/node_modules/@langchain/core/dist/output_parsers/openai_tools/json_output_tools_parsers.js +0 -179
- package/dist/node_modules/@langchain/core/dist/output_parsers/string.cjs +0 -72
- package/dist/node_modules/@langchain/core/dist/output_parsers/string.js +0 -72
- package/dist/node_modules/@langchain/core/dist/output_parsers/structured.cjs +0 -165
- package/dist/node_modules/@langchain/core/dist/output_parsers/structured.js +0 -162
- package/dist/node_modules/@langchain/core/dist/output_parsers/transform.cjs +0 -82
- package/dist/node_modules/@langchain/core/dist/output_parsers/transform.js +0 -80
- package/dist/node_modules/@langchain/core/dist/output_parsers/xml.cjs +0 -112
- package/dist/node_modules/@langchain/core/dist/output_parsers/xml.js +0 -110
- package/dist/node_modules/@langchain/core/dist/outputs.cjs +0 -59
- package/dist/node_modules/@langchain/core/dist/outputs.js +0 -51
- package/dist/node_modules/@langchain/core/dist/prompt_values.cjs +0 -106
- package/dist/node_modules/@langchain/core/dist/prompt_values.js +0 -97
- package/dist/node_modules/@langchain/core/dist/prompts/base.cjs +0 -72
- package/dist/node_modules/@langchain/core/dist/prompts/base.js +0 -72
- package/dist/node_modules/@langchain/core/dist/prompts/chat.cjs +0 -551
- package/dist/node_modules/@langchain/core/dist/prompts/chat.js +0 -543
- package/dist/node_modules/@langchain/core/dist/prompts/dict.cjs +0 -64
- package/dist/node_modules/@langchain/core/dist/prompts/dict.js +0 -64
- package/dist/node_modules/@langchain/core/dist/prompts/few_shot.cjs +0 -242
- package/dist/node_modules/@langchain/core/dist/prompts/few_shot.js +0 -241
- package/dist/node_modules/@langchain/core/dist/prompts/image.cjs +0 -94
- package/dist/node_modules/@langchain/core/dist/prompts/image.js +0 -94
- package/dist/node_modules/@langchain/core/dist/prompts/index.cjs +0 -79
- package/dist/node_modules/@langchain/core/dist/prompts/index.js +0 -47
- package/dist/node_modules/@langchain/core/dist/prompts/pipeline.cjs +0 -130
- package/dist/node_modules/@langchain/core/dist/prompts/pipeline.js +0 -130
- package/dist/node_modules/@langchain/core/dist/prompts/prompt.cjs +0 -133
- package/dist/node_modules/@langchain/core/dist/prompts/prompt.js +0 -133
- package/dist/node_modules/@langchain/core/dist/prompts/string.cjs +0 -25
- package/dist/node_modules/@langchain/core/dist/prompts/string.js +0 -25
- package/dist/node_modules/@langchain/core/dist/prompts/structured.cjs +0 -50
- package/dist/node_modules/@langchain/core/dist/prompts/structured.js +0 -50
- package/dist/node_modules/@langchain/core/dist/prompts/template.cjs +0 -158
- package/dist/node_modules/@langchain/core/dist/prompts/template.js +0 -149
- package/dist/node_modules/@langchain/core/dist/retrievers/document_compressors/index.cjs +0 -23
- package/dist/node_modules/@langchain/core/dist/retrievers/document_compressors/index.js +0 -17
- package/dist/node_modules/@langchain/core/dist/retrievers/index.cjs +0 -106
- package/dist/node_modules/@langchain/core/dist/retrievers/index.js +0 -100
- package/dist/node_modules/@langchain/core/dist/runnables/base.cjs +0 -1790
- package/dist/node_modules/@langchain/core/dist/runnables/base.js +0 -1776
- package/dist/node_modules/@langchain/core/dist/runnables/branch.cjs +0 -153
- package/dist/node_modules/@langchain/core/dist/runnables/branch.js +0 -153
- package/dist/node_modules/@langchain/core/dist/runnables/config.cjs +0 -163
- package/dist/node_modules/@langchain/core/dist/runnables/config.js +0 -158
- package/dist/node_modules/@langchain/core/dist/runnables/graph.cjs +0 -225
- package/dist/node_modules/@langchain/core/dist/runnables/graph.js +0 -219
- package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.cjs +0 -117
- package/dist/node_modules/@langchain/core/dist/runnables/graph_mermaid.js +0 -116
- package/dist/node_modules/@langchain/core/dist/runnables/history.cjs +0 -162
- package/dist/node_modules/@langchain/core/dist/runnables/history.js +0 -162
- package/dist/node_modules/@langchain/core/dist/runnables/index.cjs +0 -68
- package/dist/node_modules/@langchain/core/dist/runnables/index.js +0 -40
- package/dist/node_modules/@langchain/core/dist/runnables/iter.cjs +0 -35
- package/dist/node_modules/@langchain/core/dist/runnables/iter.js +0 -31
- package/dist/node_modules/@langchain/core/dist/runnables/passthrough.cjs +0 -99
- package/dist/node_modules/@langchain/core/dist/runnables/passthrough.js +0 -99
- package/dist/node_modules/@langchain/core/dist/runnables/router.cjs +0 -76
- package/dist/node_modules/@langchain/core/dist/runnables/router.js +0 -76
- package/dist/node_modules/@langchain/core/dist/runnables/utils.cjs +0 -49
- package/dist/node_modules/@langchain/core/dist/runnables/utils.js +0 -46
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.cjs +0 -16
- package/dist/node_modules/@langchain/core/dist/runnables/wrappers.js +0 -16
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/context.cjs +0 -179
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/context.js +0 -175
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.cjs +0 -16
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/globals.js +0 -13
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.cjs +0 -59
- package/dist/node_modules/@langchain/core/dist/singletons/async_local_storage/index.js +0 -57
- package/dist/node_modules/@langchain/core/dist/singletons/callbacks.cjs +0 -55
- package/dist/node_modules/@langchain/core/dist/singletons/callbacks.js +0 -53
- package/dist/node_modules/@langchain/core/dist/singletons/index.cjs +0 -23
- package/dist/node_modules/@langchain/core/dist/singletons/index.js +0 -15
- package/dist/node_modules/@langchain/core/dist/singletons/tracer.cjs +0 -17
- package/dist/node_modules/@langchain/core/dist/singletons/tracer.js +0 -16
- package/dist/node_modules/@langchain/core/dist/stores.cjs +0 -81
- package/dist/node_modules/@langchain/core/dist/stores.js +0 -74
- package/dist/node_modules/@langchain/core/dist/structured_query/base.cjs +0 -89
- package/dist/node_modules/@langchain/core/dist/structured_query/base.js +0 -88
- package/dist/node_modules/@langchain/core/dist/structured_query/functional.cjs +0 -165
- package/dist/node_modules/@langchain/core/dist/structured_query/functional.js +0 -165
- package/dist/node_modules/@langchain/core/dist/structured_query/index.cjs +0 -55
- package/dist/node_modules/@langchain/core/dist/structured_query/index.js +0 -32
- package/dist/node_modules/@langchain/core/dist/structured_query/ir.cjs +0 -85
- package/dist/node_modules/@langchain/core/dist/structured_query/ir.js +0 -77
- package/dist/node_modules/@langchain/core/dist/structured_query/utils.cjs +0 -78
- package/dist/node_modules/@langchain/core/dist/structured_query/utils.js +0 -71
- package/dist/node_modules/@langchain/core/dist/tools/index.cjs +0 -366
- package/dist/node_modules/@langchain/core/dist/tools/index.js +0 -350
- package/dist/node_modules/@langchain/core/dist/tools/types.cjs +0 -56
- package/dist/node_modules/@langchain/core/dist/tools/types.js +0 -53
- package/dist/node_modules/@langchain/core/dist/tools/utils.cjs +0 -26
- package/dist/node_modules/@langchain/core/dist/tools/utils.js +0 -23
- package/dist/node_modules/@langchain/core/dist/tracers/base.cjs +0 -452
- package/dist/node_modules/@langchain/core/dist/tracers/base.js +0 -445
- package/dist/node_modules/@langchain/core/dist/tracers/console.cjs +0 -216
- package/dist/node_modules/@langchain/core/dist/tracers/console.js +0 -210
- package/dist/node_modules/@langchain/core/dist/tracers/event_stream.cjs +0 -382
- package/dist/node_modules/@langchain/core/dist/tracers/event_stream.js +0 -381
- package/dist/node_modules/@langchain/core/dist/tracers/log_stream.cjs +0 -275
- package/dist/node_modules/@langchain/core/dist/tracers/log_stream.js +0 -266
- package/dist/node_modules/@langchain/core/dist/tracers/root_listener.cjs +0 -42
- package/dist/node_modules/@langchain/core/dist/tracers/root_listener.js +0 -42
- package/dist/node_modules/@langchain/core/dist/tracers/run_collector.cjs +0 -46
- package/dist/node_modules/@langchain/core/dist/tracers/run_collector.js +0 -40
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.cjs +0 -121
- package/dist/node_modules/@langchain/core/dist/tracers/tracer_langchain.js +0 -115
- package/dist/node_modules/@langchain/core/dist/types/stream.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/types/stream.js +0 -6
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.cjs +0 -102
- package/dist/node_modules/@langchain/core/dist/utils/async_caller.js +0 -96
- package/dist/node_modules/@langchain/core/dist/utils/callbacks.cjs +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/callbacks.js +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/chunk_array.cjs +0 -21
- package/dist/node_modules/@langchain/core/dist/utils/chunk_array.js +0 -15
- package/dist/node_modules/@langchain/core/dist/utils/context.cjs +0 -107
- package/dist/node_modules/@langchain/core/dist/utils/context.js +0 -101
- package/dist/node_modules/@langchain/core/dist/utils/env.cjs +0 -66
- package/dist/node_modules/@langchain/core/dist/utils/env.js +0 -53
- package/dist/node_modules/@langchain/core/dist/utils/event_source_parse.cjs +0 -188
- package/dist/node_modules/@langchain/core/dist/utils/event_source_parse.js +0 -178
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.cjs +0 -15
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/index.js +0 -15
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.cjs +0 -346
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/core.js +0 -334
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.cjs +0 -77
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/duplex.js +0 -77
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.cjs +0 -122
- package/dist/node_modules/@langchain/core/dist/utils/fast-json-patch/src/helpers.js +0 -114
- package/dist/node_modules/@langchain/core/dist/utils/format.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/utils/format.js +0 -6
- package/dist/node_modules/@langchain/core/dist/utils/function_calling.cjs +0 -67
- package/dist/node_modules/@langchain/core/dist/utils/function_calling.js +0 -56
- package/dist/node_modules/@langchain/core/dist/utils/hash.cjs +0 -16
- package/dist/node_modules/@langchain/core/dist/utils/hash.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/is-network-error/index.cjs +0 -27
- package/dist/node_modules/@langchain/core/dist/utils/is-network-error/index.js +0 -26
- package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.cjs +0 -341
- package/dist/node_modules/@langchain/core/dist/utils/js-sha256/hash.js +0 -339
- package/dist/node_modules/@langchain/core/dist/utils/json.cjs +0 -211
- package/dist/node_modules/@langchain/core/dist/utils/json.js +0 -209
- package/dist/node_modules/@langchain/core/dist/utils/json_patch.cjs +0 -22
- package/dist/node_modules/@langchain/core/dist/utils/json_patch.js +0 -15
- package/dist/node_modules/@langchain/core/dist/utils/json_schema.cjs +0 -85
- package/dist/node_modules/@langchain/core/dist/utils/json_schema.js +0 -66
- package/dist/node_modules/@langchain/core/dist/utils/math.cjs +0 -130
- package/dist/node_modules/@langchain/core/dist/utils/math.js +0 -119
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/distances.cjs +0 -18
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/distances.js +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/similarities.cjs +0 -23
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance/similarities.js +0 -22
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.cjs +0 -14
- package/dist/node_modules/@langchain/core/dist/utils/ml-distance-euclidean/euclidean.js +0 -13
- package/dist/node_modules/@langchain/core/dist/utils/p-retry/index.cjs +0 -141
- package/dist/node_modules/@langchain/core/dist/utils/p-retry/index.js +0 -141
- package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.cjs +0 -1208
- package/dist/node_modules/@langchain/core/dist/utils/sax-js/sax.js +0 -1207
- package/dist/node_modules/@langchain/core/dist/utils/signal.cjs +0 -41
- package/dist/node_modules/@langchain/core/dist/utils/signal.js +0 -39
- package/dist/node_modules/@langchain/core/dist/utils/ssrf.cjs +0 -271
- package/dist/node_modules/@langchain/core/dist/utils/ssrf.js +0 -260
- package/dist/node_modules/@langchain/core/dist/utils/stream.cjs +0 -192
- package/dist/node_modules/@langchain/core/dist/utils/stream.js +0 -182
- package/dist/node_modules/@langchain/core/dist/utils/testing/chat_models.cjs +0 -298
- package/dist/node_modules/@langchain/core/dist/utils/testing/chat_models.js +0 -296
- package/dist/node_modules/@langchain/core/dist/utils/testing/embeddings.cjs +0 -90
- package/dist/node_modules/@langchain/core/dist/utils/testing/embeddings.js +0 -89
- package/dist/node_modules/@langchain/core/dist/utils/testing/index.cjs +0 -57
- package/dist/node_modules/@langchain/core/dist/utils/testing/index.js +0 -36
- package/dist/node_modules/@langchain/core/dist/utils/testing/llms.cjs +0 -59
- package/dist/node_modules/@langchain/core/dist/utils/testing/llms.js +0 -58
- package/dist/node_modules/@langchain/core/dist/utils/testing/message_history.cjs +0 -67
- package/dist/node_modules/@langchain/core/dist/utils/testing/message_history.js +0 -65
- package/dist/node_modules/@langchain/core/dist/utils/testing/output_parsers.cjs +0 -20
- package/dist/node_modules/@langchain/core/dist/utils/testing/output_parsers.js +0 -20
- package/dist/node_modules/@langchain/core/dist/utils/testing/retrievers.cjs +0 -19
- package/dist/node_modules/@langchain/core/dist/utils/testing/retrievers.js +0 -19
- package/dist/node_modules/@langchain/core/dist/utils/testing/runnables.cjs +0 -19
- package/dist/node_modules/@langchain/core/dist/utils/testing/runnables.js +0 -19
- package/dist/node_modules/@langchain/core/dist/utils/testing/tools.cjs +0 -21
- package/dist/node_modules/@langchain/core/dist/utils/testing/tools.js +0 -21
- package/dist/node_modules/@langchain/core/dist/utils/testing/tracers.cjs +0 -25
- package/dist/node_modules/@langchain/core/dist/utils/testing/tracers.js +0 -25
- package/dist/node_modules/@langchain/core/dist/utils/testing/vectorstores.cjs +0 -129
- package/dist/node_modules/@langchain/core/dist/utils/testing/vectorstores.js +0 -129
- package/dist/node_modules/@langchain/core/dist/utils/tiktoken.cjs +0 -33
- package/dist/node_modules/@langchain/core/dist/utils/tiktoken.js +0 -26
- package/dist/node_modules/@langchain/core/dist/utils/types/index.cjs +0 -74
- package/dist/node_modules/@langchain/core/dist/utils/types/index.js +0 -40
- package/dist/node_modules/@langchain/core/dist/utils/types/zod.cjs +0 -535
- package/dist/node_modules/@langchain/core/dist/utils/types/zod.js +0 -506
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.cjs +0 -40
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Options.js +0 -37
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.cjs +0 -30
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/Refs.js +0 -30
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.cjs +0 -18
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/errorMessages.js +0 -16
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.cjs +0 -11
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/getRelativePath.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/index.cjs +0 -37
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/index.js +0 -37
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.cjs +0 -57
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parseDef.js +0 -57
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.cjs +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/any.js +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.cjs +0 -24
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/array.js +0 -23
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.cjs +0 -36
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/bigint.js +0 -36
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.cjs +0 -9
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/boolean.js +0 -8
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/branded.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/catch.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.cjs +0 -39
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/date.js +0 -39
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.cjs +0 -13
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/default.js +0 -13
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.cjs +0 -11
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/effects.js +0 -11
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/enum.js +0 -11
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.cjs +0 -47
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/intersection.js +0 -47
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.cjs +0 -18
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/literal.js +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.cjs +0 -40
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/map.js +0 -40
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.cjs +0 -18
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nativeEnum.js +0 -17
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.cjs +0 -13
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/never.js +0 -13
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.cjs +0 -12
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/null.js +0 -11
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.cjs +0 -46
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/nullable.js +0 -46
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.cjs +0 -37
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/number.js +0 -37
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.cjs +0 -64
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/object.js +0 -64
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.cjs +0 -20
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/optional.js +0 -20
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.cjs +0 -28
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/pipeline.js +0 -28
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/promise.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/readonly.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.cjs +0 -57
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/record.js +0 -56
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.cjs +0 -22
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/set.js +0 -22
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.cjs +0 -255
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/string.js +0 -254
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.cjs +0 -38
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/tuple.js +0 -38
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/undefined.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.cjs +0 -67
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/union.js +0 -66
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.cjs +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/parsers/unknown.js +0 -10
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.cjs +0 -81
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/selectParser.js +0 -80
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.cjs +0 -70
- package/dist/node_modules/@langchain/core/dist/utils/zod-to-json-schema/zodToJsonSchema.js +0 -70
- package/dist/node_modules/@langchain/core/dist/vectorstores.cjs +0 -395
- package/dist/node_modules/@langchain/core/dist/vectorstores.js +0 -387
- package/dist/node_modules/@langchain/core/document_loaders/base.cjs +0 -1
- package/dist/node_modules/@langchain/core/document_loaders/base.js +0 -1
- package/dist/node_modules/@langchain/core/document_loaders/langsmith.cjs +0 -1
- package/dist/node_modules/@langchain/core/document_loaders/langsmith.js +0 -1
- package/dist/node_modules/@langchain/core/documents.cjs +0 -1
- package/dist/node_modules/@langchain/core/documents.js +0 -1
- package/dist/node_modules/@langchain/core/embeddings.cjs +0 -1
- package/dist/node_modules/@langchain/core/embeddings.js +0 -1
- package/dist/node_modules/@langchain/core/example_selectors.cjs +0 -1
- package/dist/node_modules/@langchain/core/example_selectors.js +0 -1
- package/dist/node_modules/@langchain/core/indexing.cjs +0 -1
- package/dist/node_modules/@langchain/core/indexing.js +0 -1
- package/dist/node_modules/@langchain/core/language_models/base.cjs +0 -1
- package/dist/node_modules/@langchain/core/language_models/base.js +0 -1
- package/dist/node_modules/@langchain/core/language_models/chat_models.cjs +0 -1
- package/dist/node_modules/@langchain/core/language_models/chat_models.js +0 -1
- package/dist/node_modules/@langchain/core/language_models/llms.cjs +0 -1
- package/dist/node_modules/@langchain/core/language_models/llms.js +0 -1
- package/dist/node_modules/@langchain/core/language_models/profile.cjs +0 -1
- package/dist/node_modules/@langchain/core/language_models/profile.js +0 -1
- package/dist/node_modules/@langchain/core/load/serializable.cjs +0 -1
- package/dist/node_modules/@langchain/core/load/serializable.js +0 -1
- package/dist/node_modules/@langchain/core/load.cjs +0 -1
- package/dist/node_modules/@langchain/core/load.js +0 -1
- package/dist/node_modules/@langchain/core/memory.cjs +0 -1
- package/dist/node_modules/@langchain/core/memory.js +0 -1
- package/dist/node_modules/@langchain/core/messages/tool.cjs +0 -1
- package/dist/node_modules/@langchain/core/messages/tool.js +0 -1
- package/dist/node_modules/@langchain/core/messages.cjs +0 -1
- package/dist/node_modules/@langchain/core/messages.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/README.md +0 -75
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/deep-compare-strict.js +0 -42
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/dereference.js +0 -147
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/format.js +0 -111
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/index.js +0 -24
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/package.json +0 -3
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/pointer.js +0 -10
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/types.js +0 -9
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/ucs2-length.js +0 -20
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/validate.js +0 -805
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/commonjs/validator.js +0 -27
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js +0 -39
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/dereference.js +0 -143
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/format.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/index.js +0 -8
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/package.json +0 -3
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/pointer.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/types.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js +0 -17
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/validate.js +0 -802
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/dist/esm/validator.js +0 -23
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/package.json +0 -68
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/deep-compare-strict.ts +0 -39
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/dereference.ts +0 -188
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/format.ts +0 -164
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/index.ts +0 -8
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/pointer.ts +0 -7
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/types.ts +0 -92
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/ucs2-length.ts +0 -24
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/validate.ts +0 -1168
- package/dist/node_modules/@langchain/core/node_modules/@cfworker/json-schema/src/validator.ts +0 -32
- package/dist/node_modules/@langchain/core/node_modules/ansi-styles/index.js +0 -164
- package/dist/node_modules/@langchain/core/node_modules/ansi-styles/license +0 -9
- package/dist/node_modules/@langchain/core/node_modules/ansi-styles/package.json +0 -52
- package/dist/node_modules/@langchain/core/node_modules/camelcase/index.js +0 -113
- package/dist/node_modules/@langchain/core/node_modules/camelcase/license +0 -9
- package/dist/node_modules/@langchain/core/node_modules/camelcase/package.json +0 -44
- package/dist/node_modules/@langchain/core/node_modules/decamelize/index.js +0 -13
- package/dist/node_modules/@langchain/core/node_modules/decamelize/license +0 -21
- package/dist/node_modules/@langchain/core/node_modules/decamelize/package.json +0 -38
- package/dist/node_modules/@langchain/core/node_modules/decamelize/readme.md +0 -48
- package/dist/node_modules/@langchain/core/node_modules/js-tiktoken/lite.cjs +0 -256
- package/dist/node_modules/@langchain/core/node_modules/js-tiktoken/lite.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/README.md +0 -475
- package/dist/node_modules/@langchain/core/node_modules/langsmith/anonymizer.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/anonymizer.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/client.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/client.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/anonymizer/index.cjs +0 -101
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/anonymizer/index.js +0 -95
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.cjs +0 -4181
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/client.js +0 -4142
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/env.cjs +0 -12
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/env.js +0 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_random_name.cjs +0 -729
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_random_name.js +0 -726
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.cjs +0 -985
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/_runner.js +0 -978
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.cjs +0 -228
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluate_comparative.js +0 -222
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.cjs +0 -116
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/evaluator.js +0 -111
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/index.cjs +0 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/index.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/string_evaluator.cjs +0 -66
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/evaluation/string_evaluator.js +0 -62
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/context.cjs +0 -187
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/context.js +0 -183
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/index.cjs +0 -188
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/index.js +0 -185
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/messages.cjs +0 -102
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/messages.js +0 -96
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/types.cjs +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/types.js +0 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/usage.cjs +0 -180
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/usage.js +0 -175
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/utils.cjs +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/anthropic/utils.js +0 -20
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.cjs +0 -60
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/constants.js +0 -57
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.cjs +0 -222
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/exporter.js +0 -185
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.cjs +0 -90
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/processor.js +0 -85
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.cjs +0 -95
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/setup.js +0 -91
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.cjs +0 -447
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/translator.js +0 -410
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.cjs +0 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/types.js +0 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.cjs +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/otel/utils.js +0 -19
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/client.cjs +0 -639
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/client.js +0 -635
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/errors.cjs +0 -306
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/errors.js +0 -288
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/helpers.cjs +0 -315
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/helpers.js +0 -303
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/index.cjs +0 -56
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/index.js +0 -40
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/sandbox.cjs +0 -233
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/sandbox.js +0 -229
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/types.cjs +0 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/sandbox/types.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.cjs +0 -627
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/index.js +0 -623
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.cjs +0 -286
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/middleware.js +0 -283
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.cjs +0 -173
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/experimental/vercel/utils.js +0 -168
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.cjs +0 -21
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/index.js +0 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.cjs +0 -111
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/index.js +0 -388
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/reporter.cjs +0 -37
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/jest/reporter.js +0 -35
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.cjs +0 -143
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/langchain.js +0 -138
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.cjs +0 -1045
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/run_trees.js +0 -1038
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/schemas.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/schemas.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/constants.cjs +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/constants.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.cjs +0 -53
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/fetch.js +0 -46
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.cjs +0 -155
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/otel.js +0 -147
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.cjs +0 -50
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/traceable.js +0 -44
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.cjs +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/singletons/types.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.cjs +0 -853
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/traceable.js +0 -845
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_git.cjs +0 -72
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_git.js +0 -67
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.cjs +0 -179
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/_uuid.js +0 -172
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.cjs +0 -47
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/asserts.js +0 -37
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.cjs +0 -160
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/async_caller.js +0 -153
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/atee.cjs +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/atee.js +0 -20
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/context_vars.cjs +0 -31
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/context_vars.js +0 -27
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.cjs +0 -220
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/env.js +0 -203
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.cjs +0 -179
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/error.js +0 -169
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.cjs +0 -283
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/fast-safe-stringify/index.js +0 -280
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/is-network-error/index.cjs +0 -42
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/is-network-error/index.js +0 -39
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/constants.cjs +0 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/constants.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.cjs +0 -40
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/globals.js +0 -35
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.cjs +0 -694
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/index.js +0 -646
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/matchers.cjs +0 -103
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/matchers.js +0 -98
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/reporter.cjs +0 -295
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/reporter.js +0 -256
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/types.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/types.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.cjs +0 -92
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/chain.js +0 -89
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.cjs +0 -96
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/jestlike/vendor/evaluatedBy.js +0 -92
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/assignValue.cjs +0 -29
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/assignValue.js +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseAssignValue.cjs +0 -25
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseAssignValue.js +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseSet.cjs +0 -50
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/baseSet.js +0 -45
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/castPath.cjs +0 -22
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/castPath.js +0 -17
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/eq.cjs +0 -36
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/eq.js +0 -34
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/getTag.cjs +0 -18
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/getTag.js +0 -16
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isIndex.cjs +0 -25
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isIndex.js +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isKey.cjs +0 -34
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isKey.js +0 -29
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isObject.cjs +0 -31
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isObject.js +0 -29
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isSymbol.cjs +0 -28
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/isSymbol.js +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/memoizeCapped.cjs +0 -65
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/memoizeCapped.js +0 -63
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/set.cjs +0 -41
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/set.js +0 -36
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/stringToPath.cjs +0 -49
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/stringToPath.js +0 -44
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/toKey.cjs +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/lodash/toKey.js +0 -19
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.cjs +0 -21
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/messages.js +0 -17
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-queue.cjs +0 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-queue.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-retry/index.cjs +0 -200
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/p-retry/index.js +0 -191
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.cjs +0 -10
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/project.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.browser.cjs +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.browser.js +0 -20
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.cjs +0 -86
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/fs.js +0 -49
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/index.cjs +0 -335
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompt_cache/index.js +0 -329
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.cjs +0 -37
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/prompts.js +0 -33
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/shuffle.cjs +0 -14
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/shuffle.js +0 -11
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/usage.cjs +0 -28
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/usage.js +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.cjs +0 -225
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/vercel.js +0 -220
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.cjs +0 -10
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/warn.js +0 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/xxhash/xxhash.cjs +0 -331
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/utils/xxhash/xxhash.js +0 -327
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/uuid.cjs +0 -13
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/uuid.js +0 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.cjs +0 -46
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.d.mts +0 -392
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.js +0 -323
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/index.mjs +0 -324
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.cjs +0 -20
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.d.mts +0 -11
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.js +0 -18
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/reporter.mjs +0 -31
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.d.mts +0 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/esm.mjs +0 -38
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.cjs +0 -38
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/reporter.js +0 -33
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.cjs +0 -63
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/vitest/utils/wrapper.js +0 -59
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/anthropic.cjs +0 -340
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/anthropic.js +0 -336
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/gemini.cjs +0 -445
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/gemini.js +0 -442
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/generic.cjs +0 -49
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/generic.js +0 -44
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/index.cjs +0 -20
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/index.js +0 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.cjs +0 -470
- package/dist/node_modules/@langchain/core/node_modules/langsmith/dist/wrappers/openai.js +0 -466
- package/dist/node_modules/@langchain/core/node_modules/langsmith/evaluation.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/evaluation.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/anthropic.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/anthropic.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/exporter.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/processor.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/otel/setup.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/sandbox.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/sandbox.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/experimental/vercel.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/index.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/index.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/jest/reporter.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/jest/reporter.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/jest.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/jest.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/langchain.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/langchain.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/LICENSE +0 -15
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/README.md +0 -654
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/bin/semver.js +0 -188
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/comparator.js +0 -141
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/index.js +0 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/range.js +0 -554
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/classes/semver.js +0 -302
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/clean.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/cmp.js +0 -52
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/coerce.js +0 -60
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare-build.js +0 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare-loose.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/compare.js +0 -5
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/diff.js +0 -65
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/eq.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/gt.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/gte.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/inc.js +0 -19
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/lt.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/lte.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/major.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/minor.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/neq.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/parse.js +0 -16
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/patch.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/prerelease.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/rcompare.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/rsort.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/satisfies.js +0 -10
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/sort.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/functions/valid.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/index.js +0 -89
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/constants.js +0 -35
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/debug.js +0 -9
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/identifiers.js +0 -23
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/lrucache.js +0 -40
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/parse-options.js +0 -15
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/internal/re.js +0 -217
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/package.json +0 -77
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/preload.js +0 -2
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/range.bnf +0 -16
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/gtr.js +0 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/intersects.js +0 -7
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/ltr.js +0 -4
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/min-version.js +0 -61
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/outside.js +0 -80
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/simplify.js +0 -47
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/subset.js +0 -247
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/to-comparators.js +0 -8
- package/dist/node_modules/@langchain/core/node_modules/langsmith/node_modules/semver/ranges/valid.js +0 -11
- package/dist/node_modules/@langchain/core/node_modules/langsmith/package.json +0 -454
- package/dist/node_modules/@langchain/core/node_modules/langsmith/run_trees.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/run_trees.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/schemas.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/schemas.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/singletons/traceable.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/singletons/traceable.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/traceable.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/traceable.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/utils/jestlike.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/utils/jestlike.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest/reporter.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/vitest.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/anthropic.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/anthropic.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/gemini.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/gemini.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/openai.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers/openai.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers.cjs +0 -1
- package/dist/node_modules/@langchain/core/node_modules/langsmith/wrappers.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/mustache/CHANGELOG.md +0 -618
- package/dist/node_modules/@langchain/core/node_modules/mustache/LICENSE +0 -11
- package/dist/node_modules/@langchain/core/node_modules/mustache/README.md +0 -621
- package/dist/node_modules/@langchain/core/node_modules/mustache/bin/mustache +0 -150
- package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.js +0 -772
- package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.min.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/mustache/mustache.mjs +0 -764
- package/dist/node_modules/@langchain/core/node_modules/mustache/package.json +0 -67
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/dojo/mustache.js.post +0 -4
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/dojo/mustache.js.pre +0 -9
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/jquery/mustache.js.post +0 -13
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/jquery/mustache.js.pre +0 -9
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/mootools/mustache.js.post +0 -5
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/mootools/mustache.js.pre +0 -2
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/qooxdoo/mustache.js.post +0 -9
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/qooxdoo/mustache.js.pre +0 -172
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/yui3/mustache.js.post +0 -4
- package/dist/node_modules/@langchain/core/node_modules/mustache/wrappers/yui3/mustache.js.pre +0 -1
- package/dist/node_modules/@langchain/core/node_modules/p-finally/index.js +0 -15
- package/dist/node_modules/@langchain/core/node_modules/p-finally/license +0 -21
- package/dist/node_modules/@langchain/core/node_modules/p-finally/package.json +0 -42
- package/dist/node_modules/@langchain/core/node_modules/p-finally/readme.md +0 -47
- package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/index.js +0 -279
- package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/lower-bound.js +0 -21
- package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/options.js +0 -2
- package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/priority-queue.js +0 -32
- package/dist/node_modules/@langchain/core/node_modules/p-queue/dist/queue.js +0 -2
- package/dist/node_modules/@langchain/core/node_modules/p-queue/license +0 -9
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/LICENSE +0 -21
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/README.md +0 -94
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/index.js +0 -336
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/package.json +0 -56
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.js +0 -340
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/p-queue/node_modules/eventemitter3/umd/eventemitter3.min.js.map +0 -1
- package/dist/node_modules/@langchain/core/node_modules/p-queue/package.json +0 -92
- package/dist/node_modules/@langchain/core/node_modules/p-queue/readme.md +0 -400
- package/dist/node_modules/@langchain/core/node_modules/p-retry/index.js +0 -223
- package/dist/node_modules/@langchain/core/node_modules/p-retry/license +0 -9
- package/dist/node_modules/@langchain/core/node_modules/p-retry/package.json +0 -62
- package/dist/node_modules/@langchain/core/node_modules/p-retry/readme.md +0 -310
- package/dist/node_modules/@langchain/core/node_modules/p-timeout/index.js +0 -57
- package/dist/node_modules/@langchain/core/node_modules/p-timeout/license +0 -9
- package/dist/node_modules/@langchain/core/node_modules/p-timeout/package.json +0 -45
- package/dist/node_modules/@langchain/core/node_modules/p-timeout/readme.md +0 -87
- package/dist/node_modules/@langchain/core/node_modules/zod/LICENSE +0 -21
- package/dist/node_modules/@langchain/core/node_modules/zod/README.md +0 -208
- package/dist/node_modules/@langchain/core/node_modules/zod/index.cjs +0 -33
- package/dist/node_modules/@langchain/core/node_modules/zod/locales/index.cjs +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/locales/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/mini/index.cjs +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/mini/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/package.json +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/src/index.ts +0 -4
- package/dist/node_modules/@langchain/core/node_modules/zod/src/locales/index.ts +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/errors.ts +0 -13
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v3/types.ts +0 -5138
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/external.ts +0 -51
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/api.ts +0 -1798
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/config.ts +0 -15
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/core.ts +0 -138
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/errors.ts +0 -448
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/regexes.ts +0 -183
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/schemas.ts +0 -4543
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/util.ts +0 -966
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/index.ts +0 -4
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/en.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/fr.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/uz.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
- package/dist/node_modules/@langchain/core/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/ZodError.cjs +0 -138
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/ZodError.js +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/errors.cjs +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/errors.js +0 -9
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/external.cjs +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/external.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/helpers/util.js +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.cjs +0 -33
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/index.js +0 -4
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/locales/en.cjs +0 -112
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/locales/en.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/standard-schema.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/types.cjs +0 -3777
- package/dist/node_modules/@langchain/core/node_modules/zod/v3/types.js +0 -3695
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/checks.cjs +0 -33
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/checks.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/coerce.js +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/compat.cjs +0 -61
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/compat.js +0 -31
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/errors.cjs +0 -74
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/errors.js +0 -48
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/external.cjs +0 -73
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/external.js +0 -20
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/from-json-schema.cjs +0 -610
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/from-json-schema.js +0 -584
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/index.cjs +0 -33
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/iso.js +0 -30
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/parse.cjs +0 -41
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/parse.js +0 -15
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/schemas.cjs +0 -1272
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/classic/schemas.js +0 -1157
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/api.cjs +0 -1222
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/api.js +0 -1082
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/checks.cjs +0 -601
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/checks.js +0 -575
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/core.cjs +0 -83
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/core.js +0 -76
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/doc.cjs +0 -39
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/doc.js +0 -35
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/errors.cjs +0 -213
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/errors.js +0 -182
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.cjs +0 -47
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/index.js +0 -16
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-generator.cjs +0 -99
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-generator.js +0 -95
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-processors.cjs +0 -648
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema-processors.js +0 -605
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/json-schema.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/parse.cjs +0 -131
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/parse.js +0 -93
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/regexes.cjs +0 -166
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/regexes.js +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/registries.cjs +0 -56
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/registries.js +0 -51
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/schemas.cjs +0 -2126
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/schemas.js +0 -2095
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/to-json-schema.cjs +0 -446
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/to-json-schema.js +0 -437
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/util.cjs +0 -710
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/util.js +0 -651
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/versions.cjs +0 -8
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/core/versions.js +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/index.cjs +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ar.cjs +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ar.js +0 -106
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/az.cjs +0 -132
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/az.js +0 -105
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/be.cjs +0 -183
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/be.js +0 -156
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/bg.cjs +0 -147
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/bg.js +0 -120
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ca.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ca.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/cs.cjs +0 -138
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/cs.js +0 -111
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/da.cjs +0 -142
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/da.js +0 -115
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/de.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/de.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/en.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/eo.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/eo.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/es.cjs +0 -159
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/es.js +0 -132
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fa.cjs +0 -141
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fa.js +0 -114
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fi.cjs +0 -139
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fi.js +0 -112
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr-CA.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr-CA.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/fr.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/he.cjs +0 -241
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/he.js +0 -214
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hu.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hu.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hy.cjs +0 -174
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/hy.js +0 -147
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/id.cjs +0 -133
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/id.js +0 -106
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.cjs +0 -104
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/index.js +0 -49
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/is.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/is.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/it.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/it.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ja.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ja.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ka.cjs +0 -139
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ka.js +0 -112
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/kh.cjs +0 -12
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/kh.js +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/km.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/km.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ko.cjs +0 -138
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ko.js +0 -111
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/lt.cjs +0 -230
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/lt.js +0 -203
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/mk.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/mk.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ms.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ms.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/nl.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/nl.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/no.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/no.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ota.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ota.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pl.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pl.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ps.cjs +0 -141
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ps.js +0 -114
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pt.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/pt.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ru.cjs +0 -183
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ru.js +0 -156
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sl.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sl.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sv.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/sv.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ta.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ta.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/th.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/th.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/tr.cjs +0 -132
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/tr.js +0 -105
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ua.cjs +0 -12
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ua.js +0 -5
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uk.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uk.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ur.cjs +0 -137
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/ur.js +0 -110
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uz.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/uz.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/vi.cjs +0 -135
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/vi.js +0 -108
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/yo.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/yo.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-CN.cjs +0 -136
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-CN.js +0 -109
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-TW.cjs +0 -134
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/locales/zh-TW.js +0 -107
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/coerce.cjs +0 -52
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/coerce.js +0 -22
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/external.cjs +0 -63
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/external.js +0 -14
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/index.cjs +0 -32
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/index.js +0 -3
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/iso.cjs +0 -64
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/iso.js +0 -34
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/parse.cjs +0 -16
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/schemas.cjs +0 -1046
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/mini/schemas.js +0 -925
- package/dist/node_modules/@langchain/core/node_modules/zod/v4/package.json +0 -6
- package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.cjs +0 -17
- package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/index.js +0 -1
- package/dist/node_modules/@langchain/core/node_modules/zod/v4-mini/package.json +0 -6
- package/dist/node_modules/@langchain/core/output_parsers/openai_functions.cjs +0 -1
- package/dist/node_modules/@langchain/core/output_parsers/openai_functions.js +0 -1
- package/dist/node_modules/@langchain/core/output_parsers/openai_tools.cjs +0 -1
- package/dist/node_modules/@langchain/core/output_parsers/openai_tools.js +0 -1
- package/dist/node_modules/@langchain/core/output_parsers.cjs +0 -1
- package/dist/node_modules/@langchain/core/output_parsers.js +0 -1
- package/dist/node_modules/@langchain/core/outputs.cjs +0 -1
- package/dist/node_modules/@langchain/core/outputs.js +0 -1
- package/dist/node_modules/@langchain/core/package.json +0 -1
- package/dist/node_modules/@langchain/core/prompt_values.cjs +0 -1
- package/dist/node_modules/@langchain/core/prompt_values.js +0 -1
- package/dist/node_modules/@langchain/core/prompts.cjs +0 -1
- package/dist/node_modules/@langchain/core/prompts.js +0 -1
- package/dist/node_modules/@langchain/core/retrievers/document_compressors.cjs +0 -1
- package/dist/node_modules/@langchain/core/retrievers/document_compressors.js +0 -1
- package/dist/node_modules/@langchain/core/retrievers.cjs +0 -1
- package/dist/node_modules/@langchain/core/retrievers.js +0 -1
- package/dist/node_modules/@langchain/core/runnables/graph.cjs +0 -1
- package/dist/node_modules/@langchain/core/runnables/graph.js +0 -1
- package/dist/node_modules/@langchain/core/runnables.cjs +0 -1
- package/dist/node_modules/@langchain/core/runnables.js +0 -1
- package/dist/node_modules/@langchain/core/singletons.cjs +0 -1
- package/dist/node_modules/@langchain/core/singletons.js +0 -1
- package/dist/node_modules/@langchain/core/stores.cjs +0 -1
- package/dist/node_modules/@langchain/core/stores.js +0 -1
- package/dist/node_modules/@langchain/core/structured_query.cjs +0 -1
- package/dist/node_modules/@langchain/core/structured_query.js +0 -1
- package/dist/node_modules/@langchain/core/tools.cjs +0 -1
- package/dist/node_modules/@langchain/core/tools.js +0 -1
- package/dist/node_modules/@langchain/core/tracers/base.cjs +0 -1
- package/dist/node_modules/@langchain/core/tracers/base.js +0 -1
- package/dist/node_modules/@langchain/core/tracers/console.cjs +0 -1
- package/dist/node_modules/@langchain/core/tracers/console.js +0 -1
- package/dist/node_modules/@langchain/core/tracers/log_stream.cjs +0 -1
- package/dist/node_modules/@langchain/core/tracers/log_stream.js +0 -1
- package/dist/node_modules/@langchain/core/tracers/run_collector.cjs +0 -1
- package/dist/node_modules/@langchain/core/tracers/run_collector.js +0 -1
- package/dist/node_modules/@langchain/core/tracers/tracer_langchain.cjs +0 -1
- package/dist/node_modules/@langchain/core/tracers/tracer_langchain.js +0 -1
- package/dist/node_modules/@langchain/core/types/stream.cjs +0 -1
- package/dist/node_modules/@langchain/core/types/stream.js +0 -1
- package/dist/node_modules/@langchain/core/utils/async_caller.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/async_caller.js +0 -1
- package/dist/node_modules/@langchain/core/utils/chunk_array.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/chunk_array.js +0 -1
- package/dist/node_modules/@langchain/core/utils/context.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/context.js +0 -1
- package/dist/node_modules/@langchain/core/utils/env.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/env.js +0 -1
- package/dist/node_modules/@langchain/core/utils/event_source_parse.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/event_source_parse.js +0 -1
- package/dist/node_modules/@langchain/core/utils/format.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/format.js +0 -1
- package/dist/node_modules/@langchain/core/utils/function_calling.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/function_calling.js +0 -1
- package/dist/node_modules/@langchain/core/utils/hash.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/hash.js +0 -1
- package/dist/node_modules/@langchain/core/utils/json_patch.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/json_patch.js +0 -1
- package/dist/node_modules/@langchain/core/utils/json_schema.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/json_schema.js +0 -1
- package/dist/node_modules/@langchain/core/utils/math.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/math.js +0 -1
- package/dist/node_modules/@langchain/core/utils/ssrf.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/ssrf.js +0 -1
- package/dist/node_modules/@langchain/core/utils/stream.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/stream.js +0 -1
- package/dist/node_modules/@langchain/core/utils/testing.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/testing.js +0 -1
- package/dist/node_modules/@langchain/core/utils/tiktoken.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/tiktoken.js +0 -1
- package/dist/node_modules/@langchain/core/utils/types.cjs +0 -1
- package/dist/node_modules/@langchain/core/utils/types.js +0 -1
- package/dist/node_modules/@langchain/core/vectorstores.cjs +0 -1
- package/dist/node_modules/@langchain/core/vectorstores.js +0 -1
- package/dist/node_modules/@langchain/deepseek/LICENSE +0 -21
- package/dist/node_modules/@langchain/deepseek/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/deepseek/dist/chat_models.cjs +0 -617
- package/dist/node_modules/@langchain/deepseek/dist/chat_models.js +0 -616
- package/dist/node_modules/@langchain/deepseek/dist/index.cjs +0 -8
- package/dist/node_modules/@langchain/deepseek/dist/index.js +0 -3
- package/dist/node_modules/@langchain/deepseek/dist/profiles.cjs +0 -37
- package/dist/node_modules/@langchain/deepseek/dist/profiles.js +0 -36
- package/dist/node_modules/@langchain/deepseek/package.json +0 -1
- package/dist/node_modules/@langchain/google-genai/LICENSE +0 -21
- package/dist/node_modules/@langchain/google-genai/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.cjs +0 -685
- package/dist/node_modules/@langchain/google-genai/dist/chat_models.js +0 -684
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.cjs +0 -99
- package/dist/node_modules/@langchain/google-genai/dist/embeddings.js +0 -98
- package/dist/node_modules/@langchain/google-genai/dist/index.cjs +0 -232
- package/dist/node_modules/@langchain/google-genai/dist/index.js +0 -4
- package/dist/node_modules/@langchain/google-genai/dist/output_parsers.cjs +0 -48
- package/dist/node_modules/@langchain/google-genai/dist/output_parsers.js +0 -47
- package/dist/node_modules/@langchain/google-genai/dist/profiles.cjs +0 -345
- package/dist/node_modules/@langchain/google-genai/dist/profiles.js +0 -344
- package/dist/node_modules/@langchain/google-genai/dist/utils/common.cjs +0 -460
- package/dist/node_modules/@langchain/google-genai/dist/utils/common.js +0 -455
- package/dist/node_modules/@langchain/google-genai/dist/utils/tools.cjs +0 -73
- package/dist/node_modules/@langchain/google-genai/dist/utils/tools.js +0 -72
- package/dist/node_modules/@langchain/google-genai/dist/utils/validate_schema.cjs +0 -28
- package/dist/node_modules/@langchain/google-genai/dist/utils/validate_schema.js +0 -27
- package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.cjs +0 -35
- package/dist/node_modules/@langchain/google-genai/dist/utils/zod_to_genai_parameters.js +0 -32
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/index.js +0 -31
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/max.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/native.js +0 -4
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/package.json +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/types.js +0 -2
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs/version.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/index.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/max.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/md5.js +0 -11
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/native.js +0 -2
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/nil.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/parse.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/regex.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/rng.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/types.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v1.js +0 -83
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v3.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v35.js +0 -36
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v4.js +0 -27
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v5.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v6.js +0 -17
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/v7.js +0 -65
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/validate.js +0 -5
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm/version.js +0 -8
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/types.js +0 -1
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v35.js +0 -36
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v6.js +0 -17
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/dist/node_modules/@langchain/google-genai/node_modules/uuid/package.json +0 -132
- package/dist/node_modules/@langchain/google-genai/package.json +0 -1
- package/dist/node_modules/@langchain/langgraph/LICENSE +0 -21
- package/dist/node_modules/@langchain/langgraph/dist/channels/any_value.cjs +0 -46
- package/dist/node_modules/@langchain/langgraph/dist/channels/any_value.js +0 -46
- package/dist/node_modules/@langchain/langgraph/dist/channels/base.cjs +0 -112
- package/dist/node_modules/@langchain/langgraph/dist/channels/base.js +0 -108
- package/dist/node_modules/@langchain/langgraph/dist/channels/binop.cjs +0 -62
- package/dist/node_modules/@langchain/langgraph/dist/channels/binop.js +0 -62
- package/dist/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.cjs +0 -75
- package/dist/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.js +0 -75
- package/dist/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.cjs +0 -46
- package/dist/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js +0 -46
- package/dist/node_modules/@langchain/langgraph/dist/channels/index.cjs +0 -24
- package/dist/node_modules/@langchain/langgraph/dist/channels/index.js +0 -11
- package/dist/node_modules/@langchain/langgraph/dist/channels/last_value.cjs +0 -98
- package/dist/node_modules/@langchain/langgraph/dist/channels/last_value.js +0 -97
- package/dist/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.cjs +0 -116
- package/dist/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.js +0 -114
- package/dist/node_modules/@langchain/langgraph/dist/channels/topic.cjs +0 -65
- package/dist/node_modules/@langchain/langgraph/dist/channels/topic.js +0 -65
- package/dist/node_modules/@langchain/langgraph/dist/channels/untracked_value.cjs +0 -83
- package/dist/node_modules/@langchain/langgraph/dist/channels/untracked_value.js +0 -83
- package/dist/node_modules/@langchain/langgraph/dist/constants.cjs +0 -406
- package/dist/node_modules/@langchain/langgraph/dist/constants.js +0 -362
- package/dist/node_modules/@langchain/langgraph/dist/errors.cjs +0 -199
- package/dist/node_modules/@langchain/langgraph/dist/errors.js +0 -181
- package/dist/node_modules/@langchain/langgraph/dist/func/index.cjs +0 -299
- package/dist/node_modules/@langchain/langgraph/dist/func/index.js +0 -297
- package/dist/node_modules/@langchain/langgraph/dist/graph/annotation.cjs +0 -104
- package/dist/node_modules/@langchain/langgraph/dist/graph/annotation.js +0 -102
- package/dist/node_modules/@langchain/langgraph/dist/graph/graph.cjs +0 -420
- package/dist/node_modules/@langchain/langgraph/dist/graph/graph.js +0 -418
- package/dist/node_modules/@langchain/langgraph/dist/graph/index.cjs +0 -6
- package/dist/node_modules/@langchain/langgraph/dist/graph/index.js +0 -8
- package/dist/node_modules/@langchain/langgraph/dist/graph/message.cjs +0 -52
- package/dist/node_modules/@langchain/langgraph/dist/graph/message.js +0 -51
- package/dist/node_modules/@langchain/langgraph/dist/graph/messages_annotation.cjs +0 -109
- package/dist/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js +0 -107
- package/dist/node_modules/@langchain/langgraph/dist/graph/messages_reducer.cjs +0 -85
- package/dist/node_modules/@langchain/langgraph/dist/graph/messages_reducer.js +0 -84
- package/dist/node_modules/@langchain/langgraph/dist/graph/state.cjs +0 -593
- package/dist/node_modules/@langchain/langgraph/dist/graph/state.js +0 -592
- package/dist/node_modules/@langchain/langgraph/dist/graph/types.cjs +0 -41
- package/dist/node_modules/@langchain/langgraph/dist/graph/types.js +0 -40
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/index.cjs +0 -11
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/index.js +0 -5
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/meta.cjs +0 -144
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/meta.js +0 -141
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/plugin.cjs +0 -39
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/plugin.js +0 -40
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/schema.cjs +0 -99
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/schema.js +0 -94
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.cjs +0 -42
- package/dist/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.js +0 -41
- package/dist/node_modules/@langchain/langgraph/dist/hash.cjs +0 -265
- package/dist/node_modules/@langchain/langgraph/dist/hash.js +0 -263
- package/dist/node_modules/@langchain/langgraph/dist/index.cjs +0 -12
- package/dist/node_modules/@langchain/langgraph/dist/index.js +0 -30
- package/dist/node_modules/@langchain/langgraph/dist/interrupt.cjs +0 -79
- package/dist/node_modules/@langchain/langgraph/dist/interrupt.js +0 -79
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agentName.cjs +0 -148
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agentName.js +0 -148
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.cjs +0 -41
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.js +0 -41
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.cjs +0 -62
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.js +0 -62
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/index.cjs +0 -16
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/index.js +0 -8
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.cjs +0 -340
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.js +0 -339
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.cjs +0 -43
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.js +0 -43
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.cjs +0 -247
- package/dist/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.js +0 -246
- package/dist/node_modules/@langchain/langgraph/dist/pregel/algo.cjs +0 -584
- package/dist/node_modules/@langchain/langgraph/dist/pregel/algo.js +0 -578
- package/dist/node_modules/@langchain/langgraph/dist/pregel/call.cjs +0 -50
- package/dist/node_modules/@langchain/langgraph/dist/pregel/call.js +0 -48
- package/dist/node_modules/@langchain/langgraph/dist/pregel/debug.cjs +0 -172
- package/dist/node_modules/@langchain/langgraph/dist/pregel/debug.js +0 -166
- package/dist/node_modules/@langchain/langgraph/dist/pregel/index.cjs +0 -1164
- package/dist/node_modules/@langchain/langgraph/dist/pregel/index.js +0 -1162
- package/dist/node_modules/@langchain/langgraph/dist/pregel/io.cjs +0 -140
- package/dist/node_modules/@langchain/langgraph/dist/pregel/io.js +0 -135
- package/dist/node_modules/@langchain/langgraph/dist/pregel/loop.cjs +0 -560
- package/dist/node_modules/@langchain/langgraph/dist/pregel/loop.js +0 -560
- package/dist/node_modules/@langchain/langgraph/dist/pregel/messages.cjs +0 -107
- package/dist/node_modules/@langchain/langgraph/dist/pregel/messages.js +0 -107
- package/dist/node_modules/@langchain/langgraph/dist/pregel/read.cjs +0 -151
- package/dist/node_modules/@langchain/langgraph/dist/pregel/read.js +0 -150
- package/dist/node_modules/@langchain/langgraph/dist/pregel/remote.cjs +0 -341
- package/dist/node_modules/@langchain/langgraph/dist/pregel/remote.js +0 -341
- package/dist/node_modules/@langchain/langgraph/dist/pregel/retry.cjs +0 -91
- package/dist/node_modules/@langchain/langgraph/dist/pregel/retry.js +0 -91
- package/dist/node_modules/@langchain/langgraph/dist/pregel/runner.cjs +0 -228
- package/dist/node_modules/@langchain/langgraph/dist/pregel/runner.js +0 -228
- package/dist/node_modules/@langchain/langgraph/dist/pregel/stream.cjs +0 -197
- package/dist/node_modules/@langchain/langgraph/dist/pregel/stream.js +0 -195
- package/dist/node_modules/@langchain/langgraph/dist/pregel/types.cjs +0 -27
- package/dist/node_modules/@langchain/langgraph/dist/pregel/types.js +0 -25
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/config.cjs +0 -121
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/config.js +0 -115
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/index.cjs +0 -102
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/index.js +0 -96
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.cjs +0 -18
- package/dist/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js +0 -16
- package/dist/node_modules/@langchain/langgraph/dist/pregel/validate.cjs +0 -45
- package/dist/node_modules/@langchain/langgraph/dist/pregel/validate.js +0 -44
- package/dist/node_modules/@langchain/langgraph/dist/pregel/write.cjs +0 -96
- package/dist/node_modules/@langchain/langgraph/dist/pregel/write.js +0 -95
- package/dist/node_modules/@langchain/langgraph/dist/remote.cjs +0 -4
- package/dist/node_modules/@langchain/langgraph/dist/remote.js +0 -3
- package/dist/node_modules/@langchain/langgraph/dist/setup/async_local_storage.cjs +0 -11
- package/dist/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js +0 -11
- package/dist/node_modules/@langchain/langgraph/dist/state/adapter.cjs +0 -53
- package/dist/node_modules/@langchain/langgraph/dist/state/adapter.js +0 -52
- package/dist/node_modules/@langchain/langgraph/dist/state/index.cjs +0 -8
- package/dist/node_modules/@langchain/langgraph/dist/state/index.js +0 -10
- package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/index.cjs +0 -1
- package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/index.js +0 -3
- package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.cjs +0 -19
- package/dist/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.js +0 -19
- package/dist/node_modules/@langchain/langgraph/dist/state/schema.cjs +0 -170
- package/dist/node_modules/@langchain/langgraph/dist/state/schema.js +0 -170
- package/dist/node_modules/@langchain/langgraph/dist/state/types.cjs +0 -17
- package/dist/node_modules/@langchain/langgraph/dist/state/types.js +0 -14
- package/dist/node_modules/@langchain/langgraph/dist/state/values/index.cjs +0 -2
- package/dist/node_modules/@langchain/langgraph/dist/state/values/index.js +0 -4
- package/dist/node_modules/@langchain/langgraph/dist/state/values/reduced.cjs +0 -72
- package/dist/node_modules/@langchain/langgraph/dist/state/values/reduced.js +0 -71
- package/dist/node_modules/@langchain/langgraph/dist/state/values/untracked.cjs +0 -64
- package/dist/node_modules/@langchain/langgraph/dist/state/values/untracked.js +0 -63
- package/dist/node_modules/@langchain/langgraph/dist/utils.cjs +0 -86
- package/dist/node_modules/@langchain/langgraph/dist/utils.js +0 -80
- package/dist/node_modules/@langchain/langgraph/dist/web.cjs +0 -115
- package/dist/node_modules/@langchain/langgraph/dist/web.js +0 -24
- package/dist/node_modules/@langchain/langgraph/dist/writer.cjs +0 -14
- package/dist/node_modules/@langchain/langgraph/dist/writer.js +0 -14
- package/dist/node_modules/@langchain/langgraph/package.json +0 -1
- package/dist/node_modules/@langchain/langgraph-checkpoint/LICENSE +0 -21
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/base.cjs +0 -90
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/base.js +0 -83
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/base.cjs +0 -18
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/base.js +0 -18
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/index.cjs +0 -2
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/index.js +0 -4
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/memory.cjs +0 -54
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/cache/memory.js +0 -54
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/id.cjs +0 -16
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/id.js +0 -14
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/index.cjs +0 -12
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/index.js +0 -12
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/memory.cjs +0 -199
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/memory.js +0 -199
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.cjs +0 -101
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/jsonplus.js +0 -100
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.cjs +0 -15
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/types.js +0 -10
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/utils/fast-safe-stringify/index.cjs +0 -102
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/serde/utils/fast-safe-stringify/index.js +0 -101
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/base.cjs +0 -212
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/base.js +0 -208
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/batch.cjs +0 -120
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/batch.js +0 -120
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/memory.cjs +0 -265
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/memory.js +0 -264
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/utils.cjs +0 -153
- package/dist/node_modules/@langchain/langgraph-checkpoint/dist/store/utils.js +0 -150
- package/dist/node_modules/@langchain/langgraph-checkpoint/package.json +0 -1
- package/dist/node_modules/@langchain/ollama/LICENSE +0 -21
- package/dist/node_modules/@langchain/ollama/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/ollama/dist/chat_models.cjs +0 -645
- package/dist/node_modules/@langchain/ollama/dist/chat_models.js +0 -644
- package/dist/node_modules/@langchain/ollama/dist/embeddings.cjs +0 -99
- package/dist/node_modules/@langchain/ollama/dist/embeddings.js +0 -98
- package/dist/node_modules/@langchain/ollama/dist/index.cjs +0 -8
- package/dist/node_modules/@langchain/ollama/dist/index.js +0 -5
- package/dist/node_modules/@langchain/ollama/dist/llms.cjs +0 -195
- package/dist/node_modules/@langchain/ollama/dist/llms.js +0 -194
- package/dist/node_modules/@langchain/ollama/dist/utils.cjs +0 -112
- package/dist/node_modules/@langchain/ollama/dist/utils.js +0 -110
- package/dist/node_modules/@langchain/ollama/package.json +0 -1
- package/dist/node_modules/@langchain/openai/LICENSE +0 -21
- package/dist/node_modules/@langchain/openai/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/common.cjs +0 -125
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/common.js +0 -119
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/completions.cjs +0 -50
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/completions.js +0 -50
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/index.cjs +0 -473
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/index.js +0 -473
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/responses.cjs +0 -50
- package/dist/node_modules/@langchain/openai/dist/azure/chat_models/responses.js +0 -50
- package/dist/node_modules/@langchain/openai/dist/azure/embeddings.cjs +0 -79
- package/dist/node_modules/@langchain/openai/dist/azure/embeddings.js +0 -78
- package/dist/node_modules/@langchain/openai/dist/azure/llms.cjs +0 -107
- package/dist/node_modules/@langchain/openai/dist/azure/llms.js +0 -106
- package/dist/node_modules/@langchain/openai/dist/chat_models/base.cjs +0 -625
- package/dist/node_modules/@langchain/openai/dist/chat_models/base.js +0 -624
- package/dist/node_modules/@langchain/openai/dist/chat_models/completions.cjs +0 -261
- package/dist/node_modules/@langchain/openai/dist/chat_models/completions.js +0 -260
- package/dist/node_modules/@langchain/openai/dist/chat_models/index.cjs +0 -609
- package/dist/node_modules/@langchain/openai/dist/chat_models/index.js +0 -609
- package/dist/node_modules/@langchain/openai/dist/chat_models/profiles.cjs +0 -567
- package/dist/node_modules/@langchain/openai/dist/chat_models/profiles.js +0 -566
- package/dist/node_modules/@langchain/openai/dist/chat_models/responses.cjs +0 -193
- package/dist/node_modules/@langchain/openai/dist/chat_models/responses.js +0 -192
- package/dist/node_modules/@langchain/openai/dist/converters/completions.cjs +0 -611
- package/dist/node_modules/@langchain/openai/dist/converters/completions.js +0 -605
- package/dist/node_modules/@langchain/openai/dist/converters/index.cjs +0 -2
- package/dist/node_modules/@langchain/openai/dist/converters/index.js +0 -2
- package/dist/node_modules/@langchain/openai/dist/converters/responses.cjs +0 -1086
- package/dist/node_modules/@langchain/openai/dist/converters/responses.js +0 -1080
- package/dist/node_modules/@langchain/openai/dist/embeddings.cjs +0 -144
- package/dist/node_modules/@langchain/openai/dist/embeddings.js +0 -143
- package/dist/node_modules/@langchain/openai/dist/index.cjs +0 -8
- package/dist/node_modules/@langchain/openai/dist/index.js +0 -24
- package/dist/node_modules/@langchain/openai/dist/llms.cjs +0 -315
- package/dist/node_modules/@langchain/openai/dist/llms.js +0 -314
- package/dist/node_modules/@langchain/openai/dist/tools/applyPatch.cjs +0 -116
- package/dist/node_modules/@langchain/openai/dist/tools/applyPatch.js +0 -115
- package/dist/node_modules/@langchain/openai/dist/tools/codeInterpreter.cjs +0 -95
- package/dist/node_modules/@langchain/openai/dist/tools/codeInterpreter.js +0 -94
- package/dist/node_modules/@langchain/openai/dist/tools/computerUse.cjs +0 -240
- package/dist/node_modules/@langchain/openai/dist/tools/computerUse.js +0 -239
- package/dist/node_modules/@langchain/openai/dist/tools/custom.cjs +0 -27
- package/dist/node_modules/@langchain/openai/dist/tools/custom.js +0 -26
- package/dist/node_modules/@langchain/openai/dist/tools/dalle.cjs +0 -106
- package/dist/node_modules/@langchain/openai/dist/tools/dalle.js +0 -105
- package/dist/node_modules/@langchain/openai/dist/tools/fileSearch.cjs +0 -137
- package/dist/node_modules/@langchain/openai/dist/tools/fileSearch.js +0 -136
- package/dist/node_modules/@langchain/openai/dist/tools/imageGeneration.cjs +0 -129
- package/dist/node_modules/@langchain/openai/dist/tools/imageGeneration.js +0 -128
- package/dist/node_modules/@langchain/openai/dist/tools/index.cjs +0 -27
- package/dist/node_modules/@langchain/openai/dist/tools/index.js +0 -27
- package/dist/node_modules/@langchain/openai/dist/tools/localShell.cjs +0 -145
- package/dist/node_modules/@langchain/openai/dist/tools/localShell.js +0 -144
- package/dist/node_modules/@langchain/openai/dist/tools/mcp.cjs +0 -53
- package/dist/node_modules/@langchain/openai/dist/tools/mcp.js +0 -52
- package/dist/node_modules/@langchain/openai/dist/tools/shell.cjs +0 -163
- package/dist/node_modules/@langchain/openai/dist/tools/shell.js +0 -162
- package/dist/node_modules/@langchain/openai/dist/tools/webSearch.cjs +0 -73
- package/dist/node_modules/@langchain/openai/dist/tools/webSearch.js +0 -72
- package/dist/node_modules/@langchain/openai/dist/utils/azure.cjs +0 -107
- package/dist/node_modules/@langchain/openai/dist/utils/azure.js +0 -102
- package/dist/node_modules/@langchain/openai/dist/utils/client.cjs +0 -25
- package/dist/node_modules/@langchain/openai/dist/utils/client.js +0 -24
- package/dist/node_modules/@langchain/openai/dist/utils/errors.cjs +0 -11
- package/dist/node_modules/@langchain/openai/dist/utils/errors.js +0 -10
- package/dist/node_modules/@langchain/openai/dist/utils/misc.cjs +0 -51
- package/dist/node_modules/@langchain/openai/dist/utils/misc.js +0 -45
- package/dist/node_modules/@langchain/openai/dist/utils/output.cjs +0 -100
- package/dist/node_modules/@langchain/openai/dist/utils/output.js +0 -97
- package/dist/node_modules/@langchain/openai/dist/utils/prompts.cjs +0 -42
- package/dist/node_modules/@langchain/openai/dist/utils/prompts.js +0 -42
- package/dist/node_modules/@langchain/openai/dist/utils/tools.cjs +0 -205
- package/dist/node_modules/@langchain/openai/dist/utils/tools.js +0 -191
- package/dist/node_modules/@langchain/openai/package.json +0 -1
- package/dist/node_modules/langchain/LICENSE +0 -21
- package/dist/node_modules/langchain/chat_models/universal.cjs +0 -1
- package/dist/node_modules/langchain/chat_models/universal.js +0 -1
- package/dist/node_modules/langchain/dist/_virtual/rolldown_runtime.cjs +0 -34
- package/dist/node_modules/langchain/dist/_virtual/rolldown_runtime.js +0 -25
- package/dist/node_modules/langchain/dist/agents/ReactAgent.cjs +0 -721
- package/dist/node_modules/langchain/dist/agents/ReactAgent.js +0 -720
- package/dist/node_modules/langchain/dist/agents/RunnableCallable.cjs +0 -45
- package/dist/node_modules/langchain/dist/agents/RunnableCallable.js +0 -44
- package/dist/node_modules/langchain/dist/agents/annotation.cjs +0 -92
- package/dist/node_modules/langchain/dist/agents/annotation.js +0 -91
- package/dist/node_modules/langchain/dist/agents/errors.cjs +0 -88
- package/dist/node_modules/langchain/dist/agents/errors.js +0 -83
- package/dist/node_modules/langchain/dist/agents/index.cjs +0 -15
- package/dist/node_modules/langchain/dist/agents/index.js +0 -15
- package/dist/node_modules/langchain/dist/agents/middleware/constants.cjs +0 -16
- package/dist/node_modules/langchain/dist/agents/middleware/constants.js +0 -15
- package/dist/node_modules/langchain/dist/agents/middleware/contextEditing.cjs +0 -547
- package/dist/node_modules/langchain/dist/agents/middleware/contextEditing.js +0 -545
- package/dist/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.cjs +0 -61
- package/dist/node_modules/langchain/dist/agents/middleware/dynamicSystemPrompt.js +0 -60
- package/dist/node_modules/langchain/dist/agents/middleware/error.cjs +0 -20
- package/dist/node_modules/langchain/dist/agents/middleware/error.js +0 -19
- package/dist/node_modules/langchain/dist/agents/middleware/hitl.cjs +0 -411
- package/dist/node_modules/langchain/dist/agents/middleware/hitl.js +0 -410
- package/dist/node_modules/langchain/dist/agents/middleware/index.cjs +0 -17
- package/dist/node_modules/langchain/dist/agents/middleware/index.js +0 -17
- package/dist/node_modules/langchain/dist/agents/middleware/llmToolSelector.cjs +0 -193
- package/dist/node_modules/langchain/dist/agents/middleware/llmToolSelector.js +0 -192
- package/dist/node_modules/langchain/dist/agents/middleware/modelCallLimit.cjs +0 -149
- package/dist/node_modules/langchain/dist/agents/middleware/modelCallLimit.js +0 -148
- package/dist/node_modules/langchain/dist/agents/middleware/modelFallback.cjs +0 -74
- package/dist/node_modules/langchain/dist/agents/middleware/modelFallback.js +0 -74
- package/dist/node_modules/langchain/dist/agents/middleware/modelRetry.cjs +0 -162
- package/dist/node_modules/langchain/dist/agents/middleware/modelRetry.js +0 -161
- package/dist/node_modules/langchain/dist/agents/middleware/pii.cjs +0 -445
- package/dist/node_modules/langchain/dist/agents/middleware/pii.js +0 -436
- package/dist/node_modules/langchain/dist/agents/middleware/piiRedaction.cjs +0 -334
- package/dist/node_modules/langchain/dist/agents/middleware/piiRedaction.js +0 -333
- package/dist/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.cjs +0 -191
- package/dist/node_modules/langchain/dist/agents/middleware/provider/anthropic/promptCaching.js +0 -190
- package/dist/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.cjs +0 -299
- package/dist/node_modules/langchain/dist/agents/middleware/provider/openai/moderation.js +0 -298
- package/dist/node_modules/langchain/dist/agents/middleware/summarization.cjs +0 -543
- package/dist/node_modules/langchain/dist/agents/middleware/summarization.js +0 -539
- package/dist/node_modules/langchain/dist/agents/middleware/todoListMiddleware.cjs +0 -354
- package/dist/node_modules/langchain/dist/agents/middleware/todoListMiddleware.js +0 -352
- package/dist/node_modules/langchain/dist/agents/middleware/toolCallLimit.cjs +0 -366
- package/dist/node_modules/langchain/dist/agents/middleware/toolCallLimit.js +0 -364
- package/dist/node_modules/langchain/dist/agents/middleware/toolEmulator.cjs +0 -118
- package/dist/node_modules/langchain/dist/agents/middleware/toolEmulator.js +0 -117
- package/dist/node_modules/langchain/dist/agents/middleware/toolRetry.cjs +0 -212
- package/dist/node_modules/langchain/dist/agents/middleware/toolRetry.js +0 -211
- package/dist/node_modules/langchain/dist/agents/middleware/types.cjs +0 -12
- package/dist/node_modules/langchain/dist/agents/middleware/types.js +0 -11
- package/dist/node_modules/langchain/dist/agents/middleware/utils.cjs +0 -87
- package/dist/node_modules/langchain/dist/agents/middleware/utils.js +0 -82
- package/dist/node_modules/langchain/dist/agents/middleware.cjs +0 -75
- package/dist/node_modules/langchain/dist/agents/middleware.js +0 -75
- package/dist/node_modules/langchain/dist/agents/model.cjs +0 -13
- package/dist/node_modules/langchain/dist/agents/model.js +0 -11
- package/dist/node_modules/langchain/dist/agents/nodes/AfterAgentNode.cjs +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/AfterAgentNode.js +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/AfterModelNode.cjs +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/AfterModelNode.js +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/AgentNode.cjs +0 -489
- package/dist/node_modules/langchain/dist/agents/nodes/AgentNode.js +0 -487
- package/dist/node_modules/langchain/dist/agents/nodes/BeforeAgentNode.cjs +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/BeforeAgentNode.js +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/BeforeModelNode.cjs +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/BeforeModelNode.js +0 -29
- package/dist/node_modules/langchain/dist/agents/nodes/ToolNode.cjs +0 -328
- package/dist/node_modules/langchain/dist/agents/nodes/ToolNode.js +0 -326
- package/dist/node_modules/langchain/dist/agents/nodes/middleware.cjs +0 -126
- package/dist/node_modules/langchain/dist/agents/nodes/middleware.js +0 -125
- package/dist/node_modules/langchain/dist/agents/nodes/utils.cjs +0 -120
- package/dist/node_modules/langchain/dist/agents/nodes/utils.js +0 -115
- package/dist/node_modules/langchain/dist/agents/responses.cjs +0 -297
- package/dist/node_modules/langchain/dist/agents/responses.js +0 -292
- package/dist/node_modules/langchain/dist/agents/state.cjs +0 -45
- package/dist/node_modules/langchain/dist/agents/state.js +0 -44
- package/dist/node_modules/langchain/dist/agents/tests/utils.cjs +0 -94
- package/dist/node_modules/langchain/dist/agents/tests/utils.js +0 -93
- package/dist/node_modules/langchain/dist/agents/utils.cjs +0 -394
- package/dist/node_modules/langchain/dist/agents/utils.js +0 -386
- package/dist/node_modules/langchain/dist/agents/withAgentName.cjs +0 -39
- package/dist/node_modules/langchain/dist/agents/withAgentName.js +0 -38
- package/dist/node_modules/langchain/dist/chat_models/universal.cjs +0 -611
- package/dist/node_modules/langchain/dist/chat_models/universal.js +0 -601
- package/dist/node_modules/langchain/dist/hub/base.cjs +0 -103
- package/dist/node_modules/langchain/dist/hub/base.js +0 -98
- package/dist/node_modules/langchain/dist/hub/index.cjs +0 -58
- package/dist/node_modules/langchain/dist/hub/index.js +0 -57
- package/dist/node_modules/langchain/dist/hub/node.cjs +0 -90
- package/dist/node_modules/langchain/dist/hub/node.js +0 -88
- package/dist/node_modules/langchain/dist/index.cjs +0 -12
- package/dist/node_modules/langchain/dist/index.js +0 -102
- package/dist/node_modules/langchain/dist/load/import_constants.cjs +0 -14
- package/dist/node_modules/langchain/dist/load/import_constants.js +0 -13
- package/dist/node_modules/langchain/dist/load/import_map.cjs +0 -87
- package/dist/node_modules/langchain/dist/load/import_map.js +0 -82
- package/dist/node_modules/langchain/dist/load/index.cjs +0 -33
- package/dist/node_modules/langchain/dist/load/index.js +0 -32
- package/dist/node_modules/langchain/dist/load/serializable.cjs +0 -22
- package/dist/node_modules/langchain/dist/load/serializable.js +0 -12
- package/dist/node_modules/langchain/dist/storage/encoder_backed.cjs +0 -94
- package/dist/node_modules/langchain/dist/storage/encoder_backed.js +0 -87
- package/dist/node_modules/langchain/dist/storage/file_system.cjs +0 -157
- package/dist/node_modules/langchain/dist/storage/file_system.js +0 -151
- package/dist/node_modules/langchain/dist/storage/in_memory.cjs +0 -21
- package/dist/node_modules/langchain/dist/storage/in_memory.js +0 -10
- package/dist/node_modules/langchain/hub/node.cjs +0 -1
- package/dist/node_modules/langchain/hub/node.js +0 -1
- package/dist/node_modules/langchain/hub.cjs +0 -1
- package/dist/node_modules/langchain/hub.js +0 -1
- package/dist/node_modules/langchain/load/serializable.cjs +0 -1
- package/dist/node_modules/langchain/load/serializable.js +0 -1
- package/dist/node_modules/langchain/load.cjs +0 -1
- package/dist/node_modules/langchain/load.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/any_value.cjs +0 -46
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/any_value.js +0 -46
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/base.cjs +0 -112
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/base.js +0 -108
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/binop.cjs +0 -62
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/binop.js +0 -62
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.cjs +0 -75
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/dynamic_barrier_value.js +0 -75
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.cjs +0 -46
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/ephemeral_value.js +0 -46
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/index.cjs +0 -23
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/index.js +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/last_value.cjs +0 -98
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/last_value.js +0 -97
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.cjs +0 -116
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/named_barrier_value.js +0 -114
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/topic.cjs +0 -65
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/topic.js +0 -65
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/untracked_value.cjs +0 -83
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/channels/untracked_value.js +0 -83
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/constants.cjs +0 -406
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/constants.js +0 -362
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/errors.cjs +0 -199
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/errors.js +0 -181
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/func/index.cjs +0 -299
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/func/index.js +0 -297
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/annotation.cjs +0 -104
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/annotation.js +0 -102
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/graph.cjs +0 -420
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/graph.js +0 -418
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/index.cjs +0 -6
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/index.js +0 -8
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/message.cjs +0 -52
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/message.js +0 -51
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_annotation.cjs +0 -109
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_annotation.js +0 -107
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_reducer.cjs +0 -85
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/messages_reducer.js +0 -84
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/state.cjs +0 -534
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/state.js +0 -533
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/types.cjs +0 -41
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/types.js +0 -40
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/index.cjs +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/index.js +0 -5
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/meta.cjs +0 -144
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/meta.js +0 -141
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/plugin.cjs +0 -39
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/plugin.js +0 -40
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/schema.cjs +0 -98
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/schema.js +0 -94
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.cjs +0 -42
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/graph/zod/zod-registry.js +0 -41
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/hash.cjs +0 -265
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/hash.js +0 -263
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/index.cjs +0 -129
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/index.js +0 -30
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/interrupt.cjs +0 -79
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/interrupt.js +0 -79
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agentName.cjs +0 -148
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agentName.js +0 -148
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.cjs +0 -41
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/agent_executor.js +0 -41
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.cjs +0 -62
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/chat_agent_executor.js +0 -62
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/index.cjs +0 -15
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/index.js +0 -8
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.cjs +0 -340
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/react_agent_executor.js +0 -339
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.cjs +0 -43
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_executor.js +0 -43
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.cjs +0 -247
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/prebuilt/tool_node.js +0 -246
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/algo.cjs +0 -584
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/algo.js +0 -578
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/call.cjs +0 -50
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/call.js +0 -48
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/debug.cjs +0 -172
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/debug.js +0 -166
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/index.cjs +0 -1163
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/index.js +0 -1162
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/io.cjs +0 -140
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/io.js +0 -135
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/loop.cjs +0 -560
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/loop.js +0 -560
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/messages.cjs +0 -107
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/messages.js +0 -107
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/read.cjs +0 -151
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/read.js +0 -150
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/remote.cjs +0 -341
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/remote.js +0 -341
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/retry.cjs +0 -91
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/retry.js +0 -91
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/runner.cjs +0 -228
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/runner.js +0 -228
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/stream.cjs +0 -197
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/stream.js +0 -195
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/types.cjs +0 -27
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/types.js +0 -25
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/config.cjs +0 -121
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/config.js +0 -115
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/index.cjs +0 -102
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/index.js +0 -96
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.cjs +0 -18
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/utils/subgraph.js +0 -16
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/validate.cjs +0 -45
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/validate.js +0 -44
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/write.cjs +0 -96
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/pregel/write.js +0 -95
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/remote.cjs +0 -3
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/remote.js +0 -3
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/setup/async_local_storage.cjs +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/setup/async_local_storage.js +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/adapter.cjs +0 -53
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/adapter.js +0 -52
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/index.cjs +0 -8
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/index.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/index.cjs +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/index.js +0 -3
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.cjs +0 -19
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/prebuilt/messages.js +0 -19
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/schema.cjs +0 -170
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/schema.js +0 -170
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/types.cjs +0 -17
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/types.js +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/index.cjs +0 -2
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/index.js +0 -4
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/reduced.cjs +0 -72
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/reduced.js +0 -71
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/untracked.cjs +0 -64
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/state/values/untracked.js +0 -63
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/utils.cjs +0 -86
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/utils.js +0 -80
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/web.cjs +0 -114
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/web.js +0 -24
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/writer.cjs +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/dist/writer.js +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph/package.json +0 -194
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/error.cjs +0 -79
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/error.js +0 -78
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/index.cjs +0 -39
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/auth/index.js +0 -37
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/client.cjs +0 -1212
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/client.js +0 -1205
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/index.cjs +0 -6
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/index.js +0 -4
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/logging/index.cjs +0 -35
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/logging/index.js +0 -34
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/index.cjs +0 -5
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/index.js +0 -4
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.cjs +0 -18
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.custom.cjs +0 -135
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.custom.js +0 -133
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.js +0 -17
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.lgp.cjs +0 -449
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/stream.lgp.js +0 -448
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/thread.cjs +0 -21
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react/thread.js +0 -20
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/client.cjs +0 -138
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/client.js +0 -132
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/index.cjs +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/index.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/index.cjs +0 -5
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/index.js +0 -4
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/server.cjs +0 -57
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/server/server.js +0 -56
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/types.cjs +0 -38
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/react-ui/types.js +0 -35
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/singletons/fetch.cjs +0 -24
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/singletons/fetch.js +0 -22
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/branching.cjs +0 -153
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/branching.js +0 -152
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/errors.cjs +0 -15
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/errors.js +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/manager.cjs +0 -189
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/manager.js +0 -189
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/messages.cjs +0 -70
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/messages.js +0 -68
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/utils.cjs +0 -21
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/ui/utils.js +0 -18
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/async_caller.cjs +0 -119
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/async_caller.js +0 -116
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/env.cjs +0 -13
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/env.js +0 -12
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/error.cjs +0 -24
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/error.js +0 -23
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/signals.cjs +0 -20
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/signals.js +0 -19
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/sse.cjs +0 -124
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/sse.js +0 -122
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/stream.cjs +0 -174
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/stream.js +0 -173
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/tools.cjs +0 -52
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/dist/utils/tools.js +0 -51
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/index.js +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/max.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/md5.js +0 -135
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/native.js +0 -2
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/nil.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/parse.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/regex.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/rng.js +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/sha1.js +0 -70
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/stringify.js +0 -35
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/types.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/uuid-bin.js +0 -70
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v1.js +0 -83
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v1ToV6.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v3.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v35.js +0 -36
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v4.js +0 -30
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v5.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v6.js +0 -17
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v6ToV1.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/v7.js +0 -65
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/validate.js +0 -5
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist/version.js +0 -8
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/bin/uuid +0 -2
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/index.js +0 -14
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/max.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/md5.js +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/native.js +0 -2
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/nil.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/parse.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/regex.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/rng.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/sha1.js +0 -11
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/stringify.js +0 -35
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/types.js +0 -1
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/uuid-bin.js +0 -70
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v1.js +0 -83
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v1ToV6.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v3.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v35.js +0 -36
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v4.js +0 -30
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v5.js +0 -9
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v6.js +0 -17
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v6ToV1.js +0 -10
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/v7.js +0 -65
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/validate.js +0 -5
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/dist-node/version.js +0 -8
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/node_modules/uuid/package.json +0 -119
- package/dist/node_modules/langchain/node_modules/@langchain/langgraph-sdk/package.json +0 -161
- package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.esm.js +0 -347
- package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.esm.min.js +0 -1
- package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.umd.js +0 -355
- package/dist/node_modules/langchain/node_modules/eventemitter3/dist/eventemitter3.umd.min.js +0 -1
- package/dist/node_modules/langchain/node_modules/eventemitter3/index.js +0 -336
- package/dist/node_modules/langchain/node_modules/eventemitter3/package.json +0 -67
- package/dist/node_modules/langchain/node_modules/p-queue/dist/index.js +0 -754
- package/dist/node_modules/langchain/node_modules/p-queue/dist/lower-bound.js +0 -18
- package/dist/node_modules/langchain/node_modules/p-queue/dist/options.js +0 -1
- package/dist/node_modules/langchain/node_modules/p-queue/dist/priority-queue.js +0 -36
- package/dist/node_modules/langchain/node_modules/p-queue/dist/queue.js +0 -1
- package/dist/node_modules/langchain/node_modules/p-queue/license +0 -9
- package/dist/node_modules/langchain/node_modules/p-queue/package.json +0 -81
- package/dist/node_modules/langchain/node_modules/p-timeout/index.js +0 -95
- package/dist/node_modules/langchain/node_modules/p-timeout/license +0 -9
- package/dist/node_modules/langchain/node_modules/p-timeout/package.json +0 -52
- package/dist/node_modules/langchain/package.json +0 -1
- package/dist/node_modules/langchain/storage/encoder_backed.cjs +0 -1
- package/dist/node_modules/langchain/storage/encoder_backed.js +0 -1
- package/dist/node_modules/langchain/storage/file_system.cjs +0 -1
- package/dist/node_modules/langchain/storage/file_system.js +0 -1
- package/dist/node_modules/langchain/storage/in_memory.cjs +0 -1
- package/dist/node_modules/langchain/storage/in_memory.js +0 -1
- package/dist/node_modules/zod/src/index.ts +0 -4
- package/dist/node_modules/zod/src/locales/index.ts +0 -1
- package/dist/node_modules/zod/src/mini/index.ts +0 -1
- package/dist/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/dist/node_modules/zod/src/v3/errors.ts +0 -13
- package/dist/node_modules/zod/src/v3/external.ts +0 -6
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/dist/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/dist/node_modules/zod/src/v3/index.ts +0 -4
- package/dist/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/dist/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +0 -70
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +0 -261
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +0 -24
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/dist/node_modules/zod/src/v3/types.ts +0 -5138
- package/dist/node_modules/zod/src/v4/classic/checks.ts +0 -32
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/dist/node_modules/zod/src/v4/classic/compat.ts +0 -70
- package/dist/node_modules/zod/src/v4/classic/errors.ts +0 -82
- package/dist/node_modules/zod/src/v4/classic/external.ts +0 -51
- package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +0 -643
- package/dist/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/dist/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/dist/node_modules/zod/src/v4/classic/parse.ts +0 -82
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +0 -2409
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +0 -59
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -106
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -276
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +0 -573
- package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +0 -562
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -374
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -62
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -302
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -365
- package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +0 -27
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -661
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -595
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -96
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -179
- package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +0 -26
- package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +0 -734
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -360
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +0 -68
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -939
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -60
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -198
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -109
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -117
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -330
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -101
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -270
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -640
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -223
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -427
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -211
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -101
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -74
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -282
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -600
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -582
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -570
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -243
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -181
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -134
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -125
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -1175
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -106
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -771
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +0 -438
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2975
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -361
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -183
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -219
- package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +0 -13
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/dist/node_modules/zod/src/v4/core/api.ts +0 -1798
- package/dist/node_modules/zod/src/v4/core/checks.ts +0 -1293
- package/dist/node_modules/zod/src/v4/core/config.ts +0 -15
- package/dist/node_modules/zod/src/v4/core/core.ts +0 -138
- package/dist/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/dist/node_modules/zod/src/v4/core/errors.ts +0 -448
- package/dist/node_modules/zod/src/v4/core/index.ts +0 -16
- package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +0 -126
- package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +0 -667
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +0 -147
- package/dist/node_modules/zod/src/v4/core/parse.ts +0 -195
- package/dist/node_modules/zod/src/v4/core/regexes.ts +0 -183
- package/dist/node_modules/zod/src/v4/core/registries.ts +0 -105
- package/dist/node_modules/zod/src/v4/core/schemas.ts +0 -4543
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +0 -159
- package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +0 -59
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +0 -181
- package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +0 -379
- package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +0 -46
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +0 -83
- package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +0 -67
- package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +0 -45
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +0 -613
- package/dist/node_modules/zod/src/v4/core/util.ts +0 -966
- package/dist/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/dist/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/dist/node_modules/zod/src/v4/index.ts +0 -4
- package/dist/node_modules/zod/src/v4/locales/ar.ts +0 -115
- package/dist/node_modules/zod/src/v4/locales/az.ts +0 -111
- package/dist/node_modules/zod/src/v4/locales/be.ts +0 -176
- package/dist/node_modules/zod/src/v4/locales/bg.ts +0 -128
- package/dist/node_modules/zod/src/v4/locales/ca.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/cs.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/da.ts +0 -123
- package/dist/node_modules/zod/src/v4/locales/de.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/en.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/eo.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/es.ts +0 -141
- package/dist/node_modules/zod/src/v4/locales/fa.ts +0 -126
- package/dist/node_modules/zod/src/v4/locales/fi.ts +0 -121
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/fr.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/he.ts +0 -246
- package/dist/node_modules/zod/src/v4/locales/hu.ts +0 -117
- package/dist/node_modules/zod/src/v4/locales/hy.ts +0 -164
- package/dist/node_modules/zod/src/v4/locales/id.ts +0 -115
- package/dist/node_modules/zod/src/v4/locales/index.ts +0 -49
- package/dist/node_modules/zod/src/v4/locales/is.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/it.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/ja.ts +0 -114
- package/dist/node_modules/zod/src/v4/locales/ka.ts +0 -123
- package/dist/node_modules/zod/src/v4/locales/kh.ts +0 -7
- package/dist/node_modules/zod/src/v4/locales/km.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/ko.ts +0 -121
- package/dist/node_modules/zod/src/v4/locales/lt.ts +0 -239
- package/dist/node_modules/zod/src/v4/locales/mk.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/ms.ts +0 -115
- package/dist/node_modules/zod/src/v4/locales/nl.ts +0 -121
- package/dist/node_modules/zod/src/v4/locales/no.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/ota.ts +0 -117
- package/dist/node_modules/zod/src/v4/locales/pl.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/ps.ts +0 -126
- package/dist/node_modules/zod/src/v4/locales/pt.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/ru.ts +0 -176
- package/dist/node_modules/zod/src/v4/locales/sl.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/sv.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/ta.ts +0 -118
- package/dist/node_modules/zod/src/v4/locales/th.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/tr.ts +0 -111
- package/dist/node_modules/zod/src/v4/locales/ua.ts +0 -7
- package/dist/node_modules/zod/src/v4/locales/uk.ts +0 -117
- package/dist/node_modules/zod/src/v4/locales/ur.ts +0 -119
- package/dist/node_modules/zod/src/v4/locales/uz.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/vi.ts +0 -117
- package/dist/node_modules/zod/src/v4/locales/yo.ts +0 -124
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +0 -116
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +0 -115
- package/dist/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +0 -27
- package/dist/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/dist/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/dist/node_modules/zod/src/v4/mini/iso.ts +0 -66
- package/dist/node_modules/zod/src/v4/mini/parse.ts +0 -14
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +0 -1916
- package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +0 -24
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -94
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +0 -529
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -5
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -963
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -227
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +0 -50
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -347
- package/dist/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/dist/server/llm-providers/kimi.d.ts +0 -17
- package/dist/server/llm-providers/kimi.js +0 -75
- /package/dist/node_modules/{@langchain/core/node_modules/zod/index.js → zod/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/locales/index.js → zod/locales/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/mini/index.js → zod/mini/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/external.ts → zod/v3/external.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/helpers/typeAliases.ts → zod/v3/helpers/typeAliases.d.cts} +0 -0
- /package/dist/node_modules/zod/{src/v3/helpers/typeAliases.ts → v3/helpers/typeAliases.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v3/index.ts → zod/v3/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/classic/index.js → zod/v4/classic/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/core/index.ts → zod/v4/core/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/index.js → zod/v4/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/locales/index.ts → zod/v4/locales/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/mini/checks.js → zod/v4/mini/checks.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/v4/mini/index.ts → zod/v4/mini/index.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/v4/mini/parse.js → zod/v4/mini/parse.d.ts} +0 -0
- /package/dist/node_modules/{@langchain/core/node_modules/zod/src/mini/index.ts → zod/v4-mini/index.d.ts} +0 -0
|
@@ -1,4142 +0,0 @@
|
|
|
1
|
-
import * as uuid from "uuid";
|
|
2
|
-
import { LangSmithToOTELTranslator, } from "./experimental/otel/translator.js";
|
|
3
|
-
import { getDefaultOTLPTracerComponents, getOTELTrace, getOTELContext, } from "./singletons/otel.js";
|
|
4
|
-
import { AsyncCaller } from "./utils/async_caller.js";
|
|
5
|
-
import { convertLangChainMessageToExample, isLangChainMessage, } from "./utils/messages.js";
|
|
6
|
-
import { getEnvironmentVariable, getLangSmithEnvVarsMetadata, getLangSmithEnvironmentVariable, getRuntimeEnvironment, getOtelEnabled, getEnv, } from "./utils/env.js";
|
|
7
|
-
import { __version__ } from "./index.js";
|
|
8
|
-
import { assertUuid } from "./utils/_uuid.js";
|
|
9
|
-
import { warnOnce } from "./utils/warn.js";
|
|
10
|
-
import { parsePromptIdentifier } from "./utils/prompts.js";
|
|
11
|
-
import { raiseForStatus, isLangSmithNotFoundError } from "./utils/error.js";
|
|
12
|
-
import { promptCacheSingleton, } from "./utils/prompt_cache/index.js";
|
|
13
|
-
import { _shouldStreamForGlobalFetchImplementation, _getFetchImplementation, } from "./singletons/fetch.js";
|
|
14
|
-
import { serialize as serializePayloadForTracing } from "./utils/fast-safe-stringify/index.js";
|
|
15
|
-
export function mergeRuntimeEnvIntoRun(run, cachedEnvVars, omitTracedRuntimeInfo) {
|
|
16
|
-
if (omitTracedRuntimeInfo) {
|
|
17
|
-
return run;
|
|
18
|
-
}
|
|
19
|
-
const runtimeEnv = getRuntimeEnvironment();
|
|
20
|
-
const envVars = cachedEnvVars ?? getLangSmithEnvVarsMetadata();
|
|
21
|
-
const extra = run.extra ?? {};
|
|
22
|
-
const metadata = extra.metadata;
|
|
23
|
-
run.extra = {
|
|
24
|
-
...extra,
|
|
25
|
-
runtime: {
|
|
26
|
-
...runtimeEnv,
|
|
27
|
-
...extra?.runtime,
|
|
28
|
-
},
|
|
29
|
-
metadata: {
|
|
30
|
-
...envVars,
|
|
31
|
-
...(envVars.revision_id || ("revision_id" in run && run.revision_id)
|
|
32
|
-
? {
|
|
33
|
-
revision_id: ("revision_id" in run ? run.revision_id : undefined) ??
|
|
34
|
-
envVars.revision_id,
|
|
35
|
-
}
|
|
36
|
-
: {}),
|
|
37
|
-
...metadata,
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
return run;
|
|
41
|
-
}
|
|
42
|
-
const getTracingSamplingRate = (configRate) => {
|
|
43
|
-
const samplingRateStr = configRate?.toString() ??
|
|
44
|
-
getLangSmithEnvironmentVariable("TRACING_SAMPLING_RATE");
|
|
45
|
-
if (samplingRateStr === undefined) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
const samplingRate = parseFloat(samplingRateStr);
|
|
49
|
-
if (samplingRate < 0 || samplingRate > 1) {
|
|
50
|
-
throw new Error(`LANGSMITH_TRACING_SAMPLING_RATE must be between 0 and 1 if set. Got: ${samplingRate}`);
|
|
51
|
-
}
|
|
52
|
-
return samplingRate;
|
|
53
|
-
};
|
|
54
|
-
// utility functions
|
|
55
|
-
const isLocalhost = (url) => {
|
|
56
|
-
const strippedUrl = url.replace("http://", "").replace("https://", "");
|
|
57
|
-
const hostname = strippedUrl.split("/")[0].split(":")[0];
|
|
58
|
-
return (hostname === "localhost" || hostname === "127.0.0.1" || hostname === "::1");
|
|
59
|
-
};
|
|
60
|
-
async function toArray(iterable) {
|
|
61
|
-
const result = [];
|
|
62
|
-
for await (const item of iterable) {
|
|
63
|
-
result.push(item);
|
|
64
|
-
}
|
|
65
|
-
return result;
|
|
66
|
-
}
|
|
67
|
-
function trimQuotes(str) {
|
|
68
|
-
if (str === undefined) {
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
return str
|
|
72
|
-
.trim()
|
|
73
|
-
.replace(/^"(.*)"$/, "$1")
|
|
74
|
-
.replace(/^'(.*)'$/, "$1");
|
|
75
|
-
}
|
|
76
|
-
const handle429 = async (response) => {
|
|
77
|
-
if (response?.status === 429) {
|
|
78
|
-
const retryAfter = parseInt(response.headers.get("retry-after") ?? "10", 10) * 1000;
|
|
79
|
-
if (retryAfter > 0) {
|
|
80
|
-
await new Promise((resolve) => setTimeout(resolve, retryAfter));
|
|
81
|
-
// Return directly after calling this check
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
// Fall back to existing status checks
|
|
86
|
-
return false;
|
|
87
|
-
};
|
|
88
|
-
function _formatFeedbackScore(score) {
|
|
89
|
-
if (typeof score === "number") {
|
|
90
|
-
// Truncate at 4 decimal places
|
|
91
|
-
return Number(score.toFixed(4));
|
|
92
|
-
}
|
|
93
|
-
return score;
|
|
94
|
-
}
|
|
95
|
-
export const DEFAULT_UNCOMPRESSED_BATCH_SIZE_LIMIT_BYTES = 24 * 1024 * 1024;
|
|
96
|
-
/** Default maximum memory (1GB) for queue size limits. */
|
|
97
|
-
export const DEFAULT_MAX_SIZE_BYTES = 1024 * 1024 * 1024; // 1GB
|
|
98
|
-
const SERVER_INFO_REQUEST_TIMEOUT_MS = 10000;
|
|
99
|
-
/** Maximum number of operations to batch in a single request. */
|
|
100
|
-
const DEFAULT_BATCH_SIZE_LIMIT = 100;
|
|
101
|
-
const DEFAULT_API_URL = "https://api.smith.langchain.com";
|
|
102
|
-
export class AutoBatchQueue {
|
|
103
|
-
constructor(maxSizeBytes) {
|
|
104
|
-
Object.defineProperty(this, "items", {
|
|
105
|
-
enumerable: true,
|
|
106
|
-
configurable: true,
|
|
107
|
-
writable: true,
|
|
108
|
-
value: []
|
|
109
|
-
});
|
|
110
|
-
Object.defineProperty(this, "sizeBytes", {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
configurable: true,
|
|
113
|
-
writable: true,
|
|
114
|
-
value: 0
|
|
115
|
-
});
|
|
116
|
-
Object.defineProperty(this, "maxSizeBytes", {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
configurable: true,
|
|
119
|
-
writable: true,
|
|
120
|
-
value: void 0
|
|
121
|
-
});
|
|
122
|
-
this.maxSizeBytes = maxSizeBytes ?? DEFAULT_MAX_SIZE_BYTES;
|
|
123
|
-
}
|
|
124
|
-
peek() {
|
|
125
|
-
return this.items[0];
|
|
126
|
-
}
|
|
127
|
-
push(item) {
|
|
128
|
-
let itemPromiseResolve;
|
|
129
|
-
const itemPromise = new Promise((resolve) => {
|
|
130
|
-
// Setting itemPromiseResolve is synchronous with promise creation:
|
|
131
|
-
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Promise
|
|
132
|
-
itemPromiseResolve = resolve;
|
|
133
|
-
});
|
|
134
|
-
const size = serializePayloadForTracing(item.item, `Serializing run with id: ${item.item.id}`).length;
|
|
135
|
-
// Check if adding this item would exceed the size limit
|
|
136
|
-
// Allow the run if the queue is empty (to support large single traces)
|
|
137
|
-
if (this.sizeBytes + size > this.maxSizeBytes && this.items.length > 0) {
|
|
138
|
-
console.warn(`AutoBatchQueue size limit (${this.maxSizeBytes} bytes) exceeded. Dropping run with id: ${item.item.id}. ` +
|
|
139
|
-
`Current queue size: ${this.sizeBytes} bytes, attempted addition: ${size} bytes.`);
|
|
140
|
-
// Resolve immediately to avoid blocking caller
|
|
141
|
-
itemPromiseResolve();
|
|
142
|
-
return itemPromise;
|
|
143
|
-
}
|
|
144
|
-
this.items.push({
|
|
145
|
-
action: item.action,
|
|
146
|
-
payload: item.item,
|
|
147
|
-
otelContext: item.otelContext,
|
|
148
|
-
apiKey: item.apiKey,
|
|
149
|
-
apiUrl: item.apiUrl,
|
|
150
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
151
|
-
itemPromiseResolve: itemPromiseResolve,
|
|
152
|
-
itemPromise,
|
|
153
|
-
size,
|
|
154
|
-
});
|
|
155
|
-
this.sizeBytes += size;
|
|
156
|
-
return itemPromise;
|
|
157
|
-
}
|
|
158
|
-
pop({ upToSizeBytes, upToSize, }) {
|
|
159
|
-
if (upToSizeBytes < 1) {
|
|
160
|
-
throw new Error("Number of bytes to pop off may not be less than 1.");
|
|
161
|
-
}
|
|
162
|
-
const popped = [];
|
|
163
|
-
let poppedSizeBytes = 0;
|
|
164
|
-
// Pop items until we reach or exceed the size limit
|
|
165
|
-
while (poppedSizeBytes + (this.peek()?.size ?? 0) < upToSizeBytes &&
|
|
166
|
-
this.items.length > 0 &&
|
|
167
|
-
popped.length < upToSize) {
|
|
168
|
-
const item = this.items.shift();
|
|
169
|
-
if (item) {
|
|
170
|
-
popped.push(item);
|
|
171
|
-
poppedSizeBytes += item.size;
|
|
172
|
-
this.sizeBytes -= item.size;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
// If there is an item on the queue we were unable to pop,
|
|
176
|
-
// just return it as a single batch.
|
|
177
|
-
if (popped.length === 0 && this.items.length > 0) {
|
|
178
|
-
const item = this.items.shift();
|
|
179
|
-
popped.push(item);
|
|
180
|
-
poppedSizeBytes += item.size;
|
|
181
|
-
this.sizeBytes -= item.size;
|
|
182
|
-
}
|
|
183
|
-
return [
|
|
184
|
-
popped.map((it) => ({
|
|
185
|
-
action: it.action,
|
|
186
|
-
item: it.payload,
|
|
187
|
-
otelContext: it.otelContext,
|
|
188
|
-
apiKey: it.apiKey,
|
|
189
|
-
apiUrl: it.apiUrl,
|
|
190
|
-
size: it.size,
|
|
191
|
-
})),
|
|
192
|
-
() => popped.forEach((it) => it.itemPromiseResolve()),
|
|
193
|
-
];
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
export class Client {
|
|
197
|
-
get _fetch() {
|
|
198
|
-
return this.fetchImplementation || _getFetchImplementation(this.debug);
|
|
199
|
-
}
|
|
200
|
-
constructor(config = {}) {
|
|
201
|
-
Object.defineProperty(this, "apiKey", {
|
|
202
|
-
enumerable: true,
|
|
203
|
-
configurable: true,
|
|
204
|
-
writable: true,
|
|
205
|
-
value: void 0
|
|
206
|
-
});
|
|
207
|
-
Object.defineProperty(this, "apiUrl", {
|
|
208
|
-
enumerable: true,
|
|
209
|
-
configurable: true,
|
|
210
|
-
writable: true,
|
|
211
|
-
value: void 0
|
|
212
|
-
});
|
|
213
|
-
Object.defineProperty(this, "webUrl", {
|
|
214
|
-
enumerable: true,
|
|
215
|
-
configurable: true,
|
|
216
|
-
writable: true,
|
|
217
|
-
value: void 0
|
|
218
|
-
});
|
|
219
|
-
Object.defineProperty(this, "workspaceId", {
|
|
220
|
-
enumerable: true,
|
|
221
|
-
configurable: true,
|
|
222
|
-
writable: true,
|
|
223
|
-
value: void 0
|
|
224
|
-
});
|
|
225
|
-
Object.defineProperty(this, "caller", {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
configurable: true,
|
|
228
|
-
writable: true,
|
|
229
|
-
value: void 0
|
|
230
|
-
});
|
|
231
|
-
Object.defineProperty(this, "batchIngestCaller", {
|
|
232
|
-
enumerable: true,
|
|
233
|
-
configurable: true,
|
|
234
|
-
writable: true,
|
|
235
|
-
value: void 0
|
|
236
|
-
});
|
|
237
|
-
Object.defineProperty(this, "timeout_ms", {
|
|
238
|
-
enumerable: true,
|
|
239
|
-
configurable: true,
|
|
240
|
-
writable: true,
|
|
241
|
-
value: void 0
|
|
242
|
-
});
|
|
243
|
-
Object.defineProperty(this, "_tenantId", {
|
|
244
|
-
enumerable: true,
|
|
245
|
-
configurable: true,
|
|
246
|
-
writable: true,
|
|
247
|
-
value: null
|
|
248
|
-
});
|
|
249
|
-
Object.defineProperty(this, "hideInputs", {
|
|
250
|
-
enumerable: true,
|
|
251
|
-
configurable: true,
|
|
252
|
-
writable: true,
|
|
253
|
-
value: void 0
|
|
254
|
-
});
|
|
255
|
-
Object.defineProperty(this, "hideOutputs", {
|
|
256
|
-
enumerable: true,
|
|
257
|
-
configurable: true,
|
|
258
|
-
writable: true,
|
|
259
|
-
value: void 0
|
|
260
|
-
});
|
|
261
|
-
Object.defineProperty(this, "omitTracedRuntimeInfo", {
|
|
262
|
-
enumerable: true,
|
|
263
|
-
configurable: true,
|
|
264
|
-
writable: true,
|
|
265
|
-
value: void 0
|
|
266
|
-
});
|
|
267
|
-
Object.defineProperty(this, "tracingSampleRate", {
|
|
268
|
-
enumerable: true,
|
|
269
|
-
configurable: true,
|
|
270
|
-
writable: true,
|
|
271
|
-
value: void 0
|
|
272
|
-
});
|
|
273
|
-
Object.defineProperty(this, "filteredPostUuids", {
|
|
274
|
-
enumerable: true,
|
|
275
|
-
configurable: true,
|
|
276
|
-
writable: true,
|
|
277
|
-
value: new Set()
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperty(this, "autoBatchTracing", {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
configurable: true,
|
|
282
|
-
writable: true,
|
|
283
|
-
value: true
|
|
284
|
-
});
|
|
285
|
-
Object.defineProperty(this, "autoBatchQueue", {
|
|
286
|
-
enumerable: true,
|
|
287
|
-
configurable: true,
|
|
288
|
-
writable: true,
|
|
289
|
-
value: void 0
|
|
290
|
-
});
|
|
291
|
-
Object.defineProperty(this, "autoBatchTimeout", {
|
|
292
|
-
enumerable: true,
|
|
293
|
-
configurable: true,
|
|
294
|
-
writable: true,
|
|
295
|
-
value: void 0
|
|
296
|
-
});
|
|
297
|
-
Object.defineProperty(this, "autoBatchAggregationDelayMs", {
|
|
298
|
-
enumerable: true,
|
|
299
|
-
configurable: true,
|
|
300
|
-
writable: true,
|
|
301
|
-
value: 250
|
|
302
|
-
});
|
|
303
|
-
Object.defineProperty(this, "batchSizeBytesLimit", {
|
|
304
|
-
enumerable: true,
|
|
305
|
-
configurable: true,
|
|
306
|
-
writable: true,
|
|
307
|
-
value: void 0
|
|
308
|
-
});
|
|
309
|
-
Object.defineProperty(this, "batchSizeLimit", {
|
|
310
|
-
enumerable: true,
|
|
311
|
-
configurable: true,
|
|
312
|
-
writable: true,
|
|
313
|
-
value: void 0
|
|
314
|
-
});
|
|
315
|
-
Object.defineProperty(this, "fetchOptions", {
|
|
316
|
-
enumerable: true,
|
|
317
|
-
configurable: true,
|
|
318
|
-
writable: true,
|
|
319
|
-
value: void 0
|
|
320
|
-
});
|
|
321
|
-
Object.defineProperty(this, "settings", {
|
|
322
|
-
enumerable: true,
|
|
323
|
-
configurable: true,
|
|
324
|
-
writable: true,
|
|
325
|
-
value: void 0
|
|
326
|
-
});
|
|
327
|
-
Object.defineProperty(this, "blockOnRootRunFinalization", {
|
|
328
|
-
enumerable: true,
|
|
329
|
-
configurable: true,
|
|
330
|
-
writable: true,
|
|
331
|
-
value: getEnvironmentVariable("LANGSMITH_TRACING_BACKGROUND") === "false"
|
|
332
|
-
});
|
|
333
|
-
Object.defineProperty(this, "traceBatchConcurrency", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
configurable: true,
|
|
336
|
-
writable: true,
|
|
337
|
-
value: 5
|
|
338
|
-
});
|
|
339
|
-
Object.defineProperty(this, "_serverInfo", {
|
|
340
|
-
enumerable: true,
|
|
341
|
-
configurable: true,
|
|
342
|
-
writable: true,
|
|
343
|
-
value: void 0
|
|
344
|
-
});
|
|
345
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
346
|
-
Object.defineProperty(this, "_getServerInfoPromise", {
|
|
347
|
-
enumerable: true,
|
|
348
|
-
configurable: true,
|
|
349
|
-
writable: true,
|
|
350
|
-
value: void 0
|
|
351
|
-
});
|
|
352
|
-
Object.defineProperty(this, "manualFlushMode", {
|
|
353
|
-
enumerable: true,
|
|
354
|
-
configurable: true,
|
|
355
|
-
writable: true,
|
|
356
|
-
value: false
|
|
357
|
-
});
|
|
358
|
-
Object.defineProperty(this, "langSmithToOTELTranslator", {
|
|
359
|
-
enumerable: true,
|
|
360
|
-
configurable: true,
|
|
361
|
-
writable: true,
|
|
362
|
-
value: void 0
|
|
363
|
-
});
|
|
364
|
-
Object.defineProperty(this, "fetchImplementation", {
|
|
365
|
-
enumerable: true,
|
|
366
|
-
configurable: true,
|
|
367
|
-
writable: true,
|
|
368
|
-
value: void 0
|
|
369
|
-
});
|
|
370
|
-
Object.defineProperty(this, "cachedLSEnvVarsForMetadata", {
|
|
371
|
-
enumerable: true,
|
|
372
|
-
configurable: true,
|
|
373
|
-
writable: true,
|
|
374
|
-
value: void 0
|
|
375
|
-
});
|
|
376
|
-
Object.defineProperty(this, "_promptCache", {
|
|
377
|
-
enumerable: true,
|
|
378
|
-
configurable: true,
|
|
379
|
-
writable: true,
|
|
380
|
-
value: void 0
|
|
381
|
-
});
|
|
382
|
-
Object.defineProperty(this, "multipartStreamingDisabled", {
|
|
383
|
-
enumerable: true,
|
|
384
|
-
configurable: true,
|
|
385
|
-
writable: true,
|
|
386
|
-
value: false
|
|
387
|
-
});
|
|
388
|
-
Object.defineProperty(this, "_multipartDisabled", {
|
|
389
|
-
enumerable: true,
|
|
390
|
-
configurable: true,
|
|
391
|
-
writable: true,
|
|
392
|
-
value: false
|
|
393
|
-
});
|
|
394
|
-
Object.defineProperty(this, "_runCompressionDisabled", {
|
|
395
|
-
enumerable: true,
|
|
396
|
-
configurable: true,
|
|
397
|
-
writable: true,
|
|
398
|
-
value: getLangSmithEnvironmentVariable("DISABLE_RUN_COMPRESSION") === "true"
|
|
399
|
-
});
|
|
400
|
-
Object.defineProperty(this, "debug", {
|
|
401
|
-
enumerable: true,
|
|
402
|
-
configurable: true,
|
|
403
|
-
writable: true,
|
|
404
|
-
value: getEnvironmentVariable("LANGSMITH_DEBUG") === "true"
|
|
405
|
-
});
|
|
406
|
-
const defaultConfig = Client.getDefaultClientConfig();
|
|
407
|
-
this.tracingSampleRate = getTracingSamplingRate(config.tracingSamplingRate);
|
|
408
|
-
this.apiUrl = trimQuotes(config.apiUrl ?? defaultConfig.apiUrl) ?? "";
|
|
409
|
-
if (this.apiUrl.endsWith("/")) {
|
|
410
|
-
this.apiUrl = this.apiUrl.slice(0, -1);
|
|
411
|
-
}
|
|
412
|
-
this.apiKey = trimQuotes(config.apiKey ?? defaultConfig.apiKey);
|
|
413
|
-
this.webUrl = trimQuotes(config.webUrl ?? defaultConfig.webUrl);
|
|
414
|
-
if (this.webUrl?.endsWith("/")) {
|
|
415
|
-
this.webUrl = this.webUrl.slice(0, -1);
|
|
416
|
-
}
|
|
417
|
-
this.workspaceId = trimQuotes(config.workspaceId ?? getLangSmithEnvironmentVariable("WORKSPACE_ID"));
|
|
418
|
-
this.timeout_ms = config.timeout_ms ?? 90_000;
|
|
419
|
-
this.caller = new AsyncCaller({
|
|
420
|
-
...(config.callerOptions ?? {}),
|
|
421
|
-
maxRetries: 4,
|
|
422
|
-
debug: config.debug ?? this.debug,
|
|
423
|
-
});
|
|
424
|
-
this.traceBatchConcurrency =
|
|
425
|
-
config.traceBatchConcurrency ?? this.traceBatchConcurrency;
|
|
426
|
-
if (this.traceBatchConcurrency < 1) {
|
|
427
|
-
throw new Error("Trace batch concurrency must be positive.");
|
|
428
|
-
}
|
|
429
|
-
this.debug = config.debug ?? this.debug;
|
|
430
|
-
this.fetchImplementation = config.fetchImplementation;
|
|
431
|
-
// Use maxIngestMemoryBytes for both queues
|
|
432
|
-
const maxMemory = config.maxIngestMemoryBytes ?? DEFAULT_MAX_SIZE_BYTES;
|
|
433
|
-
this.batchIngestCaller = new AsyncCaller({
|
|
434
|
-
maxRetries: 4,
|
|
435
|
-
maxConcurrency: this.traceBatchConcurrency,
|
|
436
|
-
maxQueueSizeBytes: maxMemory,
|
|
437
|
-
...(config.callerOptions ?? {}),
|
|
438
|
-
onFailedResponseHook: handle429,
|
|
439
|
-
debug: config.debug ?? this.debug,
|
|
440
|
-
});
|
|
441
|
-
this.hideInputs =
|
|
442
|
-
config.hideInputs ?? config.anonymizer ?? defaultConfig.hideInputs;
|
|
443
|
-
this.hideOutputs =
|
|
444
|
-
config.hideOutputs ?? config.anonymizer ?? defaultConfig.hideOutputs;
|
|
445
|
-
this.omitTracedRuntimeInfo = config.omitTracedRuntimeInfo ?? false;
|
|
446
|
-
this.autoBatchTracing = config.autoBatchTracing ?? this.autoBatchTracing;
|
|
447
|
-
this.autoBatchQueue = new AutoBatchQueue(maxMemory);
|
|
448
|
-
this.blockOnRootRunFinalization =
|
|
449
|
-
config.blockOnRootRunFinalization ?? this.blockOnRootRunFinalization;
|
|
450
|
-
this.batchSizeBytesLimit = config.batchSizeBytesLimit;
|
|
451
|
-
this.batchSizeLimit = config.batchSizeLimit;
|
|
452
|
-
this.fetchOptions = config.fetchOptions || {};
|
|
453
|
-
this.manualFlushMode = config.manualFlushMode ?? this.manualFlushMode;
|
|
454
|
-
if (getOtelEnabled()) {
|
|
455
|
-
this.langSmithToOTELTranslator = new LangSmithToOTELTranslator();
|
|
456
|
-
}
|
|
457
|
-
// Cache metadata env vars once during construction to avoid repeatedly scanning process.env
|
|
458
|
-
this.cachedLSEnvVarsForMetadata = getLangSmithEnvVarsMetadata();
|
|
459
|
-
// Initialize prompt cache
|
|
460
|
-
// Handle backwards compatibility for deprecated `cache` parameter
|
|
461
|
-
if (config.cache !== undefined && config.disablePromptCache) {
|
|
462
|
-
warnOnce("Both 'cache' and 'disablePromptCache' were provided. " +
|
|
463
|
-
"The 'cache' parameter is deprecated and will be removed in a future version. " +
|
|
464
|
-
"Using 'cache' parameter value.");
|
|
465
|
-
}
|
|
466
|
-
if (config.cache !== undefined) {
|
|
467
|
-
warnOnce("The 'cache' parameter is deprecated and will be removed in a future version. " +
|
|
468
|
-
"Use 'configureGlobalPromptCache()' to configure the global cache, or " +
|
|
469
|
-
"'disablePromptCache: true' to disable caching for this client.");
|
|
470
|
-
// Handle old cache parameter
|
|
471
|
-
if (config.cache === false) {
|
|
472
|
-
this._promptCache = undefined;
|
|
473
|
-
}
|
|
474
|
-
else if (config.cache === true) {
|
|
475
|
-
this._promptCache = promptCacheSingleton;
|
|
476
|
-
}
|
|
477
|
-
else {
|
|
478
|
-
// Custom PromptCache instance provided
|
|
479
|
-
this._promptCache = config.cache;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
else if (!config.disablePromptCache) {
|
|
483
|
-
// Use the global singleton instance
|
|
484
|
-
this._promptCache = promptCacheSingleton;
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
static getDefaultClientConfig() {
|
|
488
|
-
const apiKey = getLangSmithEnvironmentVariable("API_KEY");
|
|
489
|
-
const apiUrl = getLangSmithEnvironmentVariable("ENDPOINT") ?? DEFAULT_API_URL;
|
|
490
|
-
const hideInputs = getLangSmithEnvironmentVariable("HIDE_INPUTS") === "true";
|
|
491
|
-
const hideOutputs = getLangSmithEnvironmentVariable("HIDE_OUTPUTS") === "true";
|
|
492
|
-
return {
|
|
493
|
-
apiUrl: apiUrl,
|
|
494
|
-
apiKey: apiKey,
|
|
495
|
-
webUrl: undefined,
|
|
496
|
-
hideInputs: hideInputs,
|
|
497
|
-
hideOutputs: hideOutputs,
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
getHostUrl() {
|
|
501
|
-
if (this.webUrl) {
|
|
502
|
-
return this.webUrl;
|
|
503
|
-
}
|
|
504
|
-
else if (isLocalhost(this.apiUrl)) {
|
|
505
|
-
this.webUrl = "http://localhost:3000";
|
|
506
|
-
return this.webUrl;
|
|
507
|
-
}
|
|
508
|
-
else if (this.apiUrl.endsWith("/api/v1")) {
|
|
509
|
-
this.webUrl = this.apiUrl.replace("/api/v1", "");
|
|
510
|
-
return this.webUrl;
|
|
511
|
-
}
|
|
512
|
-
else if (this.apiUrl.includes("/api") &&
|
|
513
|
-
!this.apiUrl.split(".", 1)[0].endsWith("api")) {
|
|
514
|
-
this.webUrl = this.apiUrl.replace("/api", "");
|
|
515
|
-
return this.webUrl;
|
|
516
|
-
}
|
|
517
|
-
else if (this.apiUrl.split(".", 1)[0].includes("dev")) {
|
|
518
|
-
this.webUrl = "https://dev.smith.langchain.com";
|
|
519
|
-
return this.webUrl;
|
|
520
|
-
}
|
|
521
|
-
else if (this.apiUrl.split(".", 1)[0].includes("eu")) {
|
|
522
|
-
this.webUrl = "https://eu.smith.langchain.com";
|
|
523
|
-
return this.webUrl;
|
|
524
|
-
}
|
|
525
|
-
else if (this.apiUrl.split(".", 1)[0].includes("beta")) {
|
|
526
|
-
this.webUrl = "https://beta.smith.langchain.com";
|
|
527
|
-
return this.webUrl;
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
this.webUrl = "https://smith.langchain.com";
|
|
531
|
-
return this.webUrl;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
get headers() {
|
|
535
|
-
const headers = {
|
|
536
|
-
"User-Agent": `langsmith-js/${__version__}`,
|
|
537
|
-
};
|
|
538
|
-
if (this.apiKey) {
|
|
539
|
-
headers["x-api-key"] = `${this.apiKey}`;
|
|
540
|
-
}
|
|
541
|
-
if (this.workspaceId) {
|
|
542
|
-
headers["x-tenant-id"] = this.workspaceId;
|
|
543
|
-
}
|
|
544
|
-
return headers;
|
|
545
|
-
}
|
|
546
|
-
_getPlatformEndpointPath(path) {
|
|
547
|
-
// Check if apiUrl already ends with /v1 or /v1/ to avoid double /v1/v1/ paths
|
|
548
|
-
const needsV1Prefix = this.apiUrl.slice(-3) !== "/v1" && this.apiUrl.slice(-4) !== "/v1/";
|
|
549
|
-
return needsV1Prefix ? `/v1/platform/${path}` : `/platform/${path}`;
|
|
550
|
-
}
|
|
551
|
-
async processInputs(inputs) {
|
|
552
|
-
if (this.hideInputs === false) {
|
|
553
|
-
return inputs;
|
|
554
|
-
}
|
|
555
|
-
if (this.hideInputs === true) {
|
|
556
|
-
return {};
|
|
557
|
-
}
|
|
558
|
-
if (typeof this.hideInputs === "function") {
|
|
559
|
-
return this.hideInputs(inputs);
|
|
560
|
-
}
|
|
561
|
-
return inputs;
|
|
562
|
-
}
|
|
563
|
-
async processOutputs(outputs) {
|
|
564
|
-
if (this.hideOutputs === false) {
|
|
565
|
-
return outputs;
|
|
566
|
-
}
|
|
567
|
-
if (this.hideOutputs === true) {
|
|
568
|
-
return {};
|
|
569
|
-
}
|
|
570
|
-
if (typeof this.hideOutputs === "function") {
|
|
571
|
-
return this.hideOutputs(outputs);
|
|
572
|
-
}
|
|
573
|
-
return outputs;
|
|
574
|
-
}
|
|
575
|
-
async prepareRunCreateOrUpdateInputs(run) {
|
|
576
|
-
const runParams = { ...run };
|
|
577
|
-
if (runParams.inputs !== undefined) {
|
|
578
|
-
runParams.inputs = await this.processInputs(runParams.inputs);
|
|
579
|
-
}
|
|
580
|
-
if (runParams.outputs !== undefined) {
|
|
581
|
-
runParams.outputs = await this.processOutputs(runParams.outputs);
|
|
582
|
-
}
|
|
583
|
-
return runParams;
|
|
584
|
-
}
|
|
585
|
-
async _getResponse(path, queryParams) {
|
|
586
|
-
const paramsString = queryParams?.toString() ?? "";
|
|
587
|
-
const url = `${this.apiUrl}${path}?${paramsString}`;
|
|
588
|
-
const response = await this.caller.call(async () => {
|
|
589
|
-
const res = await this._fetch(url, {
|
|
590
|
-
method: "GET",
|
|
591
|
-
headers: this.headers,
|
|
592
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
593
|
-
...this.fetchOptions,
|
|
594
|
-
});
|
|
595
|
-
await raiseForStatus(res, `fetch ${path}`);
|
|
596
|
-
return res;
|
|
597
|
-
});
|
|
598
|
-
return response;
|
|
599
|
-
}
|
|
600
|
-
async _get(path, queryParams) {
|
|
601
|
-
const response = await this._getResponse(path, queryParams);
|
|
602
|
-
return response.json();
|
|
603
|
-
}
|
|
604
|
-
async *_getPaginated(path, queryParams = new URLSearchParams(), transform) {
|
|
605
|
-
let offset = Number(queryParams.get("offset")) || 0;
|
|
606
|
-
const limit = Number(queryParams.get("limit")) || 100;
|
|
607
|
-
while (true) {
|
|
608
|
-
queryParams.set("offset", String(offset));
|
|
609
|
-
queryParams.set("limit", String(limit));
|
|
610
|
-
const url = `${this.apiUrl}${path}?${queryParams}`;
|
|
611
|
-
const response = await this.caller.call(async () => {
|
|
612
|
-
const res = await this._fetch(url, {
|
|
613
|
-
method: "GET",
|
|
614
|
-
headers: this.headers,
|
|
615
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
616
|
-
...this.fetchOptions,
|
|
617
|
-
});
|
|
618
|
-
await raiseForStatus(res, `fetch ${path}`);
|
|
619
|
-
return res;
|
|
620
|
-
});
|
|
621
|
-
const items = transform
|
|
622
|
-
? transform(await response.json())
|
|
623
|
-
: await response.json();
|
|
624
|
-
if (items.length === 0) {
|
|
625
|
-
break;
|
|
626
|
-
}
|
|
627
|
-
yield items;
|
|
628
|
-
if (items.length < limit) {
|
|
629
|
-
break;
|
|
630
|
-
}
|
|
631
|
-
offset += items.length;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
async *_getCursorPaginatedList(path, body = null, requestMethod = "POST", dataKey = "runs") {
|
|
635
|
-
const bodyParams = body ? { ...body } : {};
|
|
636
|
-
while (true) {
|
|
637
|
-
const body = JSON.stringify(bodyParams);
|
|
638
|
-
const response = await this.caller.call(async () => {
|
|
639
|
-
const res = await this._fetch(`${this.apiUrl}${path}`, {
|
|
640
|
-
method: requestMethod,
|
|
641
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
642
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
643
|
-
...this.fetchOptions,
|
|
644
|
-
body,
|
|
645
|
-
});
|
|
646
|
-
await raiseForStatus(res, `fetch ${path}`);
|
|
647
|
-
return res;
|
|
648
|
-
});
|
|
649
|
-
const responseBody = await response.json();
|
|
650
|
-
if (!responseBody) {
|
|
651
|
-
break;
|
|
652
|
-
}
|
|
653
|
-
if (!responseBody[dataKey]) {
|
|
654
|
-
break;
|
|
655
|
-
}
|
|
656
|
-
yield responseBody[dataKey];
|
|
657
|
-
const cursors = responseBody.cursors;
|
|
658
|
-
if (!cursors) {
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
if (!cursors.next) {
|
|
662
|
-
break;
|
|
663
|
-
}
|
|
664
|
-
bodyParams.cursor = cursors.next;
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
// Allows mocking for tests
|
|
668
|
-
_shouldSample() {
|
|
669
|
-
if (this.tracingSampleRate === undefined) {
|
|
670
|
-
return true;
|
|
671
|
-
}
|
|
672
|
-
return Math.random() < this.tracingSampleRate;
|
|
673
|
-
}
|
|
674
|
-
_filterForSampling(runs, patch = false) {
|
|
675
|
-
if (this.tracingSampleRate === undefined) {
|
|
676
|
-
return runs;
|
|
677
|
-
}
|
|
678
|
-
if (patch) {
|
|
679
|
-
const sampled = [];
|
|
680
|
-
for (const run of runs) {
|
|
681
|
-
if (!this.filteredPostUuids.has(run.trace_id)) {
|
|
682
|
-
sampled.push(run);
|
|
683
|
-
}
|
|
684
|
-
else if (run.id === run.trace_id) {
|
|
685
|
-
this.filteredPostUuids.delete(run.trace_id);
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
return sampled;
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
// For new runs, sample at trace level to maintain consistency
|
|
692
|
-
const sampled = [];
|
|
693
|
-
for (const run of runs) {
|
|
694
|
-
const traceId = run.trace_id ?? run.id;
|
|
695
|
-
// If we've already made a decision about this trace, follow it
|
|
696
|
-
if (this.filteredPostUuids.has(traceId)) {
|
|
697
|
-
continue;
|
|
698
|
-
}
|
|
699
|
-
// For new traces, apply sampling
|
|
700
|
-
if (run.id === traceId) {
|
|
701
|
-
if (this._shouldSample()) {
|
|
702
|
-
sampled.push(run);
|
|
703
|
-
}
|
|
704
|
-
else {
|
|
705
|
-
this.filteredPostUuids.add(traceId);
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
else {
|
|
709
|
-
// Child runs follow their trace's sampling decision
|
|
710
|
-
sampled.push(run);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
return sampled;
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
async _getBatchSizeLimitBytes() {
|
|
717
|
-
const serverInfo = await this._ensureServerInfo();
|
|
718
|
-
return (this.batchSizeBytesLimit ??
|
|
719
|
-
serverInfo?.batch_ingest_config?.size_limit_bytes ??
|
|
720
|
-
DEFAULT_UNCOMPRESSED_BATCH_SIZE_LIMIT_BYTES);
|
|
721
|
-
}
|
|
722
|
-
/**
|
|
723
|
-
* Get the maximum number of operations to batch in a single request.
|
|
724
|
-
*/
|
|
725
|
-
async _getBatchSizeLimit() {
|
|
726
|
-
const serverInfo = await this._ensureServerInfo();
|
|
727
|
-
return (this.batchSizeLimit ??
|
|
728
|
-
serverInfo?.batch_ingest_config?.size_limit ??
|
|
729
|
-
DEFAULT_BATCH_SIZE_LIMIT);
|
|
730
|
-
}
|
|
731
|
-
async _getDatasetExamplesMultiPartSupport() {
|
|
732
|
-
const serverInfo = await this._ensureServerInfo();
|
|
733
|
-
return (serverInfo.instance_flags?.dataset_examples_multipart_enabled ?? false);
|
|
734
|
-
}
|
|
735
|
-
drainAutoBatchQueue({ batchSizeLimitBytes, batchSizeLimit, }) {
|
|
736
|
-
const promises = [];
|
|
737
|
-
while (this.autoBatchQueue.items.length > 0) {
|
|
738
|
-
const [batch, done] = this.autoBatchQueue.pop({
|
|
739
|
-
upToSizeBytes: batchSizeLimitBytes,
|
|
740
|
-
upToSize: batchSizeLimit,
|
|
741
|
-
});
|
|
742
|
-
if (!batch.length) {
|
|
743
|
-
done();
|
|
744
|
-
break;
|
|
745
|
-
}
|
|
746
|
-
const batchesByDestination = batch.reduce((acc, item) => {
|
|
747
|
-
const apiUrl = item.apiUrl ?? this.apiUrl;
|
|
748
|
-
const apiKey = item.apiKey ?? this.apiKey;
|
|
749
|
-
const isDefault = item.apiKey === this.apiKey && item.apiUrl === this.apiUrl;
|
|
750
|
-
const batchKey = isDefault ? "default" : `${apiUrl}|${apiKey}`;
|
|
751
|
-
if (!acc[batchKey]) {
|
|
752
|
-
acc[batchKey] = [];
|
|
753
|
-
}
|
|
754
|
-
acc[batchKey].push(item);
|
|
755
|
-
return acc;
|
|
756
|
-
}, {});
|
|
757
|
-
const batchPromises = [];
|
|
758
|
-
for (const [batchKey, batch] of Object.entries(batchesByDestination)) {
|
|
759
|
-
const batchPromise = this._processBatch(batch, {
|
|
760
|
-
apiUrl: batchKey === "default" ? undefined : batchKey.split("|")[0],
|
|
761
|
-
apiKey: batchKey === "default" ? undefined : batchKey.split("|")[1],
|
|
762
|
-
});
|
|
763
|
-
batchPromises.push(batchPromise);
|
|
764
|
-
}
|
|
765
|
-
// Wait for all batches to complete, then call the overall done callback
|
|
766
|
-
const allBatchesPromise = Promise.all(batchPromises).finally(done);
|
|
767
|
-
promises.push(allBatchesPromise);
|
|
768
|
-
}
|
|
769
|
-
return Promise.all(promises);
|
|
770
|
-
}
|
|
771
|
-
async _processBatch(batch, options) {
|
|
772
|
-
if (!batch.length) {
|
|
773
|
-
return;
|
|
774
|
-
}
|
|
775
|
-
// Calculate total batch size for queue tracking
|
|
776
|
-
const batchSizeBytes = batch.reduce((sum, item) => sum + (item.size ?? 0), 0);
|
|
777
|
-
try {
|
|
778
|
-
if (this.langSmithToOTELTranslator !== undefined) {
|
|
779
|
-
this._sendBatchToOTELTranslator(batch);
|
|
780
|
-
}
|
|
781
|
-
else {
|
|
782
|
-
const ingestParams = {
|
|
783
|
-
runCreates: batch
|
|
784
|
-
.filter((item) => item.action === "create")
|
|
785
|
-
.map((item) => item.item),
|
|
786
|
-
runUpdates: batch
|
|
787
|
-
.filter((item) => item.action === "update")
|
|
788
|
-
.map((item) => item.item),
|
|
789
|
-
};
|
|
790
|
-
const serverInfo = await this._ensureServerInfo();
|
|
791
|
-
const useMultipart = !this._multipartDisabled &&
|
|
792
|
-
(serverInfo?.batch_ingest_config?.use_multipart_endpoint ?? true);
|
|
793
|
-
if (useMultipart) {
|
|
794
|
-
const useGzip = !this._runCompressionDisabled &&
|
|
795
|
-
serverInfo?.instance_flags?.gzip_body_enabled;
|
|
796
|
-
try {
|
|
797
|
-
await this.multipartIngestRuns(ingestParams, {
|
|
798
|
-
...options,
|
|
799
|
-
useGzip,
|
|
800
|
-
sizeBytes: batchSizeBytes,
|
|
801
|
-
});
|
|
802
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
803
|
-
}
|
|
804
|
-
catch (e) {
|
|
805
|
-
if (isLangSmithNotFoundError(e)) {
|
|
806
|
-
// Fallback to batch ingest if multipart endpoint returns 404
|
|
807
|
-
// Disable multipart for future requests
|
|
808
|
-
this._multipartDisabled = true;
|
|
809
|
-
await this.batchIngestRuns(ingestParams, {
|
|
810
|
-
...options,
|
|
811
|
-
sizeBytes: batchSizeBytes,
|
|
812
|
-
});
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
throw e;
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
else {
|
|
820
|
-
await this.batchIngestRuns(ingestParams, {
|
|
821
|
-
...options,
|
|
822
|
-
sizeBytes: batchSizeBytes,
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
catch (e) {
|
|
828
|
-
console.error("Error exporting batch:", e);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
_sendBatchToOTELTranslator(batch) {
|
|
832
|
-
if (this.langSmithToOTELTranslator !== undefined) {
|
|
833
|
-
const otelContextMap = new Map();
|
|
834
|
-
const operations = [];
|
|
835
|
-
for (const item of batch) {
|
|
836
|
-
if (item.item.id && item.otelContext) {
|
|
837
|
-
otelContextMap.set(item.item.id, item.otelContext);
|
|
838
|
-
if (item.action === "create") {
|
|
839
|
-
operations.push({
|
|
840
|
-
operation: "post",
|
|
841
|
-
id: item.item.id,
|
|
842
|
-
trace_id: item.item.trace_id ?? item.item.id,
|
|
843
|
-
run: item.item,
|
|
844
|
-
});
|
|
845
|
-
}
|
|
846
|
-
else {
|
|
847
|
-
operations.push({
|
|
848
|
-
operation: "patch",
|
|
849
|
-
id: item.item.id,
|
|
850
|
-
trace_id: item.item.trace_id ?? item.item.id,
|
|
851
|
-
run: item.item,
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
this.langSmithToOTELTranslator.exportBatch(operations, otelContextMap);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
async processRunOperation(item) {
|
|
860
|
-
clearTimeout(this.autoBatchTimeout);
|
|
861
|
-
this.autoBatchTimeout = undefined;
|
|
862
|
-
item.item = mergeRuntimeEnvIntoRun(item.item, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
863
|
-
const itemPromise = this.autoBatchQueue.push(item);
|
|
864
|
-
if (this.manualFlushMode) {
|
|
865
|
-
// Rely on manual flushing in serverless environments
|
|
866
|
-
return itemPromise;
|
|
867
|
-
}
|
|
868
|
-
const sizeLimitBytes = await this._getBatchSizeLimitBytes();
|
|
869
|
-
const sizeLimit = await this._getBatchSizeLimit();
|
|
870
|
-
if (this.autoBatchQueue.sizeBytes > sizeLimitBytes ||
|
|
871
|
-
this.autoBatchQueue.items.length > sizeLimit) {
|
|
872
|
-
void this.drainAutoBatchQueue({
|
|
873
|
-
batchSizeLimitBytes: sizeLimitBytes,
|
|
874
|
-
batchSizeLimit: sizeLimit,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
if (this.autoBatchQueue.items.length > 0) {
|
|
878
|
-
this.autoBatchTimeout = setTimeout(() => {
|
|
879
|
-
this.autoBatchTimeout = undefined;
|
|
880
|
-
void this.drainAutoBatchQueue({
|
|
881
|
-
batchSizeLimitBytes: sizeLimitBytes,
|
|
882
|
-
batchSizeLimit: sizeLimit,
|
|
883
|
-
});
|
|
884
|
-
}, this.autoBatchAggregationDelayMs);
|
|
885
|
-
}
|
|
886
|
-
return itemPromise;
|
|
887
|
-
}
|
|
888
|
-
async _getServerInfo() {
|
|
889
|
-
const response = await this.caller.call(async () => {
|
|
890
|
-
const res = await this._fetch(`${this.apiUrl}/info`, {
|
|
891
|
-
method: "GET",
|
|
892
|
-
headers: { Accept: "application/json" },
|
|
893
|
-
signal: AbortSignal.timeout(SERVER_INFO_REQUEST_TIMEOUT_MS),
|
|
894
|
-
...this.fetchOptions,
|
|
895
|
-
});
|
|
896
|
-
await raiseForStatus(res, "get server info");
|
|
897
|
-
return res;
|
|
898
|
-
});
|
|
899
|
-
const json = await response.json();
|
|
900
|
-
if (this.debug) {
|
|
901
|
-
console.log("\n=== LangSmith Server Configuration ===\n" +
|
|
902
|
-
JSON.stringify(json, null, 2) +
|
|
903
|
-
"\n");
|
|
904
|
-
}
|
|
905
|
-
return json;
|
|
906
|
-
}
|
|
907
|
-
async _ensureServerInfo() {
|
|
908
|
-
if (this._getServerInfoPromise === undefined) {
|
|
909
|
-
this._getServerInfoPromise = (async () => {
|
|
910
|
-
if (this._serverInfo === undefined) {
|
|
911
|
-
try {
|
|
912
|
-
this._serverInfo = await this._getServerInfo();
|
|
913
|
-
}
|
|
914
|
-
catch (e) {
|
|
915
|
-
console.warn(`[LANGSMITH]: Failed to fetch info on supported operations. Falling back to batch operations and default limits. Info: ${e.status ?? "Unspecified status code"} ${e.message}`);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
return this._serverInfo ?? {};
|
|
919
|
-
})();
|
|
920
|
-
}
|
|
921
|
-
return this._getServerInfoPromise.then((serverInfo) => {
|
|
922
|
-
if (this._serverInfo === undefined) {
|
|
923
|
-
this._getServerInfoPromise = undefined;
|
|
924
|
-
}
|
|
925
|
-
return serverInfo;
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
async _getSettings() {
|
|
929
|
-
if (!this.settings) {
|
|
930
|
-
this.settings = this._get("/settings");
|
|
931
|
-
}
|
|
932
|
-
return await this.settings;
|
|
933
|
-
}
|
|
934
|
-
/**
|
|
935
|
-
* Flushes current queued traces.
|
|
936
|
-
*/
|
|
937
|
-
async flush() {
|
|
938
|
-
const sizeLimitBytes = await this._getBatchSizeLimitBytes();
|
|
939
|
-
const sizeLimit = await this._getBatchSizeLimit();
|
|
940
|
-
await this.drainAutoBatchQueue({
|
|
941
|
-
batchSizeLimitBytes: sizeLimitBytes,
|
|
942
|
-
batchSizeLimit: sizeLimit,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
_cloneCurrentOTELContext() {
|
|
946
|
-
const otel_trace = getOTELTrace();
|
|
947
|
-
const otel_context = getOTELContext();
|
|
948
|
-
if (this.langSmithToOTELTranslator !== undefined) {
|
|
949
|
-
const currentSpan = otel_trace.getActiveSpan();
|
|
950
|
-
if (currentSpan) {
|
|
951
|
-
return otel_trace.setSpan(otel_context.active(), currentSpan);
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
return undefined;
|
|
955
|
-
}
|
|
956
|
-
async createRun(run, options) {
|
|
957
|
-
if (!this._filterForSampling([run]).length) {
|
|
958
|
-
return;
|
|
959
|
-
}
|
|
960
|
-
const headers = {
|
|
961
|
-
...this.headers,
|
|
962
|
-
"Content-Type": "application/json",
|
|
963
|
-
};
|
|
964
|
-
const session_name = run.project_name;
|
|
965
|
-
delete run.project_name;
|
|
966
|
-
const runCreate = await this.prepareRunCreateOrUpdateInputs({
|
|
967
|
-
session_name,
|
|
968
|
-
...run,
|
|
969
|
-
start_time: run.start_time ?? Date.now(),
|
|
970
|
-
});
|
|
971
|
-
if (this.autoBatchTracing &&
|
|
972
|
-
runCreate.trace_id !== undefined &&
|
|
973
|
-
runCreate.dotted_order !== undefined) {
|
|
974
|
-
const otelContext = this._cloneCurrentOTELContext();
|
|
975
|
-
void this.processRunOperation({
|
|
976
|
-
action: "create",
|
|
977
|
-
item: runCreate,
|
|
978
|
-
otelContext,
|
|
979
|
-
apiKey: options?.apiKey,
|
|
980
|
-
apiUrl: options?.apiUrl,
|
|
981
|
-
}).catch(console.error);
|
|
982
|
-
return;
|
|
983
|
-
}
|
|
984
|
-
const mergedRunCreateParam = mergeRuntimeEnvIntoRun(runCreate, this.cachedLSEnvVarsForMetadata, this.omitTracedRuntimeInfo);
|
|
985
|
-
if (options?.apiKey !== undefined) {
|
|
986
|
-
headers["x-api-key"] = options.apiKey;
|
|
987
|
-
}
|
|
988
|
-
if (options?.workspaceId !== undefined) {
|
|
989
|
-
headers["x-tenant-id"] = options.workspaceId;
|
|
990
|
-
}
|
|
991
|
-
const body = serializePayloadForTracing(mergedRunCreateParam, `Creating run with id: ${mergedRunCreateParam.id}`);
|
|
992
|
-
await this.caller.call(async () => {
|
|
993
|
-
const res = await this._fetch(`${options?.apiUrl ?? this.apiUrl}/runs`, {
|
|
994
|
-
method: "POST",
|
|
995
|
-
headers,
|
|
996
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
997
|
-
...this.fetchOptions,
|
|
998
|
-
body,
|
|
999
|
-
});
|
|
1000
|
-
await raiseForStatus(res, "create run", true);
|
|
1001
|
-
return res;
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
/**
|
|
1005
|
-
* Batch ingest/upsert multiple runs in the Langsmith system.
|
|
1006
|
-
* @param runs
|
|
1007
|
-
*/
|
|
1008
|
-
async batchIngestRuns({ runCreates, runUpdates, }, options) {
|
|
1009
|
-
if (runCreates === undefined && runUpdates === undefined) {
|
|
1010
|
-
return;
|
|
1011
|
-
}
|
|
1012
|
-
let preparedCreateParams = await Promise.all(runCreates?.map((create) => this.prepareRunCreateOrUpdateInputs(create)) ?? []);
|
|
1013
|
-
let preparedUpdateParams = await Promise.all(runUpdates?.map((update) => this.prepareRunCreateOrUpdateInputs(update)) ?? []);
|
|
1014
|
-
if (preparedCreateParams.length > 0 && preparedUpdateParams.length > 0) {
|
|
1015
|
-
const createById = preparedCreateParams.reduce((params, run) => {
|
|
1016
|
-
if (!run.id) {
|
|
1017
|
-
return params;
|
|
1018
|
-
}
|
|
1019
|
-
params[run.id] = run;
|
|
1020
|
-
return params;
|
|
1021
|
-
}, {});
|
|
1022
|
-
const standaloneUpdates = [];
|
|
1023
|
-
for (const updateParam of preparedUpdateParams) {
|
|
1024
|
-
if (updateParam.id !== undefined && createById[updateParam.id]) {
|
|
1025
|
-
createById[updateParam.id] = {
|
|
1026
|
-
...createById[updateParam.id],
|
|
1027
|
-
...updateParam,
|
|
1028
|
-
};
|
|
1029
|
-
}
|
|
1030
|
-
else {
|
|
1031
|
-
standaloneUpdates.push(updateParam);
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
preparedCreateParams = Object.values(createById);
|
|
1035
|
-
preparedUpdateParams = standaloneUpdates;
|
|
1036
|
-
}
|
|
1037
|
-
const rawBatch = {
|
|
1038
|
-
post: preparedCreateParams,
|
|
1039
|
-
patch: preparedUpdateParams,
|
|
1040
|
-
};
|
|
1041
|
-
if (!rawBatch.post.length && !rawBatch.patch.length) {
|
|
1042
|
-
return;
|
|
1043
|
-
}
|
|
1044
|
-
const batchChunks = {
|
|
1045
|
-
post: [],
|
|
1046
|
-
patch: [],
|
|
1047
|
-
};
|
|
1048
|
-
for (const k of ["post", "patch"]) {
|
|
1049
|
-
const key = k;
|
|
1050
|
-
const batchItems = rawBatch[key].reverse();
|
|
1051
|
-
let batchItem = batchItems.pop();
|
|
1052
|
-
while (batchItem !== undefined) {
|
|
1053
|
-
// Type is wrong but this is a deprecated code path anyway
|
|
1054
|
-
batchChunks[key].push(batchItem);
|
|
1055
|
-
batchItem = batchItems.pop();
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
if (batchChunks.post.length > 0 || batchChunks.patch.length > 0) {
|
|
1059
|
-
const runIds = batchChunks.post
|
|
1060
|
-
.map((item) => item.id)
|
|
1061
|
-
.concat(batchChunks.patch.map((item) => item.id))
|
|
1062
|
-
.join(",");
|
|
1063
|
-
await this._postBatchIngestRuns(serializePayloadForTracing(batchChunks, `Ingesting runs with ids: ${runIds}`), options);
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
async _postBatchIngestRuns(body, options) {
|
|
1067
|
-
const headers = {
|
|
1068
|
-
...this.headers,
|
|
1069
|
-
"Content-Type": "application/json",
|
|
1070
|
-
Accept: "application/json",
|
|
1071
|
-
};
|
|
1072
|
-
if (options?.apiKey !== undefined) {
|
|
1073
|
-
headers["x-api-key"] = options.apiKey;
|
|
1074
|
-
}
|
|
1075
|
-
await this.batchIngestCaller.callWithOptions({ sizeBytes: options?.sizeBytes }, async () => {
|
|
1076
|
-
const res = await this._fetch(`${options?.apiUrl ?? this.apiUrl}/runs/batch`, {
|
|
1077
|
-
method: "POST",
|
|
1078
|
-
headers,
|
|
1079
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1080
|
-
...this.fetchOptions,
|
|
1081
|
-
body,
|
|
1082
|
-
});
|
|
1083
|
-
await raiseForStatus(res, "batch create run", true);
|
|
1084
|
-
return res;
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Batch ingest/upsert multiple runs in the Langsmith system.
|
|
1089
|
-
* @param runs
|
|
1090
|
-
*/
|
|
1091
|
-
async multipartIngestRuns({ runCreates, runUpdates, }, options) {
|
|
1092
|
-
if (runCreates === undefined && runUpdates === undefined) {
|
|
1093
|
-
return;
|
|
1094
|
-
}
|
|
1095
|
-
// transform and convert to dicts
|
|
1096
|
-
const allAttachments = {};
|
|
1097
|
-
let preparedCreateParams = [];
|
|
1098
|
-
for (const create of runCreates ?? []) {
|
|
1099
|
-
const preparedCreate = await this.prepareRunCreateOrUpdateInputs(create);
|
|
1100
|
-
if (preparedCreate.id !== undefined &&
|
|
1101
|
-
preparedCreate.attachments !== undefined) {
|
|
1102
|
-
allAttachments[preparedCreate.id] = preparedCreate.attachments;
|
|
1103
|
-
}
|
|
1104
|
-
delete preparedCreate.attachments;
|
|
1105
|
-
preparedCreateParams.push(preparedCreate);
|
|
1106
|
-
}
|
|
1107
|
-
let preparedUpdateParams = [];
|
|
1108
|
-
for (const update of runUpdates ?? []) {
|
|
1109
|
-
preparedUpdateParams.push(await this.prepareRunCreateOrUpdateInputs(update));
|
|
1110
|
-
}
|
|
1111
|
-
// require trace_id and dotted_order
|
|
1112
|
-
const invalidRunCreate = preparedCreateParams.find((runCreate) => {
|
|
1113
|
-
return (runCreate.trace_id === undefined || runCreate.dotted_order === undefined);
|
|
1114
|
-
});
|
|
1115
|
-
if (invalidRunCreate !== undefined) {
|
|
1116
|
-
throw new Error(`Multipart ingest requires "trace_id" and "dotted_order" to be set when creating a run`);
|
|
1117
|
-
}
|
|
1118
|
-
const invalidRunUpdate = preparedUpdateParams.find((runUpdate) => {
|
|
1119
|
-
return (runUpdate.trace_id === undefined || runUpdate.dotted_order === undefined);
|
|
1120
|
-
});
|
|
1121
|
-
if (invalidRunUpdate !== undefined) {
|
|
1122
|
-
throw new Error(`Multipart ingest requires "trace_id" and "dotted_order" to be set when updating a run`);
|
|
1123
|
-
}
|
|
1124
|
-
// combine post and patch dicts where possible
|
|
1125
|
-
if (preparedCreateParams.length > 0 && preparedUpdateParams.length > 0) {
|
|
1126
|
-
const createById = preparedCreateParams.reduce((params, run) => {
|
|
1127
|
-
if (!run.id) {
|
|
1128
|
-
return params;
|
|
1129
|
-
}
|
|
1130
|
-
params[run.id] = run;
|
|
1131
|
-
return params;
|
|
1132
|
-
}, {});
|
|
1133
|
-
const standaloneUpdates = [];
|
|
1134
|
-
for (const updateParam of preparedUpdateParams) {
|
|
1135
|
-
if (updateParam.id !== undefined && createById[updateParam.id]) {
|
|
1136
|
-
createById[updateParam.id] = {
|
|
1137
|
-
...createById[updateParam.id],
|
|
1138
|
-
...updateParam,
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
else {
|
|
1142
|
-
standaloneUpdates.push(updateParam);
|
|
1143
|
-
}
|
|
1144
|
-
}
|
|
1145
|
-
preparedCreateParams = Object.values(createById);
|
|
1146
|
-
preparedUpdateParams = standaloneUpdates;
|
|
1147
|
-
}
|
|
1148
|
-
if (preparedCreateParams.length === 0 &&
|
|
1149
|
-
preparedUpdateParams.length === 0) {
|
|
1150
|
-
return;
|
|
1151
|
-
}
|
|
1152
|
-
// send the runs in multipart requests
|
|
1153
|
-
const accumulatedContext = [];
|
|
1154
|
-
const accumulatedParts = [];
|
|
1155
|
-
for (const [method, payloads] of [
|
|
1156
|
-
["post", preparedCreateParams],
|
|
1157
|
-
["patch", preparedUpdateParams],
|
|
1158
|
-
]) {
|
|
1159
|
-
for (const originalPayload of payloads) {
|
|
1160
|
-
// collect fields to be sent as separate parts
|
|
1161
|
-
const { inputs, outputs, events, extra, error, serialized, attachments, ...payload } = originalPayload;
|
|
1162
|
-
const fields = { inputs, outputs, events, extra, error, serialized };
|
|
1163
|
-
// encode the main run payload
|
|
1164
|
-
const stringifiedPayload = serializePayloadForTracing(payload, `Serializing for multipart ingestion of run with id: ${payload.id}`);
|
|
1165
|
-
accumulatedParts.push({
|
|
1166
|
-
name: `${method}.${payload.id}`,
|
|
1167
|
-
payload: new Blob([stringifiedPayload], {
|
|
1168
|
-
type: `application/json; length=${stringifiedPayload.length}`, // encoding=gzip
|
|
1169
|
-
}),
|
|
1170
|
-
});
|
|
1171
|
-
// encode the fields we collected
|
|
1172
|
-
for (const [key, value] of Object.entries(fields)) {
|
|
1173
|
-
if (value === undefined) {
|
|
1174
|
-
continue;
|
|
1175
|
-
}
|
|
1176
|
-
const stringifiedValue = serializePayloadForTracing(value, `Serializing ${key} for multipart ingestion of run with id: ${payload.id}`);
|
|
1177
|
-
accumulatedParts.push({
|
|
1178
|
-
name: `${method}.${payload.id}.${key}`,
|
|
1179
|
-
payload: new Blob([stringifiedValue], {
|
|
1180
|
-
type: `application/json; length=${stringifiedValue.length}`,
|
|
1181
|
-
}),
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
// encode the attachments
|
|
1185
|
-
if (payload.id !== undefined) {
|
|
1186
|
-
const attachments = allAttachments[payload.id];
|
|
1187
|
-
if (attachments) {
|
|
1188
|
-
delete allAttachments[payload.id];
|
|
1189
|
-
for (const [name, attachment] of Object.entries(attachments)) {
|
|
1190
|
-
let contentType;
|
|
1191
|
-
let content;
|
|
1192
|
-
if (Array.isArray(attachment)) {
|
|
1193
|
-
[contentType, content] = attachment;
|
|
1194
|
-
}
|
|
1195
|
-
else {
|
|
1196
|
-
contentType = attachment.mimeType;
|
|
1197
|
-
content = attachment.data;
|
|
1198
|
-
}
|
|
1199
|
-
// Validate that the attachment name doesn't contain a '.'
|
|
1200
|
-
if (name.includes(".")) {
|
|
1201
|
-
console.warn(`Skipping attachment '${name}' for run ${payload.id}: Invalid attachment name. ` +
|
|
1202
|
-
`Attachment names must not contain periods ('.'). Please rename the attachment and try again.`);
|
|
1203
|
-
continue;
|
|
1204
|
-
}
|
|
1205
|
-
accumulatedParts.push({
|
|
1206
|
-
name: `attachment.${payload.id}.${name}`,
|
|
1207
|
-
payload: new Blob([content], {
|
|
1208
|
-
type: `${contentType}; length=${content.byteLength}`,
|
|
1209
|
-
}),
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
// compute context
|
|
1215
|
-
accumulatedContext.push(`trace=${payload.trace_id},id=${payload.id}`);
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
await this._sendMultipartRequest(accumulatedParts, accumulatedContext.join("; "), options);
|
|
1219
|
-
}
|
|
1220
|
-
async _createNodeFetchBody(parts, boundary) {
|
|
1221
|
-
// Create multipart form data manually using Blobs
|
|
1222
|
-
const chunks = [];
|
|
1223
|
-
for (const part of parts) {
|
|
1224
|
-
// Add field boundary
|
|
1225
|
-
chunks.push(new Blob([`--${boundary}\r\n`]));
|
|
1226
|
-
chunks.push(new Blob([
|
|
1227
|
-
`Content-Disposition: form-data; name="${part.name}"\r\n`,
|
|
1228
|
-
`Content-Type: ${part.payload.type}\r\n\r\n`,
|
|
1229
|
-
]));
|
|
1230
|
-
chunks.push(part.payload);
|
|
1231
|
-
chunks.push(new Blob(["\r\n"]));
|
|
1232
|
-
}
|
|
1233
|
-
// Add final boundary
|
|
1234
|
-
chunks.push(new Blob([`--${boundary}--\r\n`]));
|
|
1235
|
-
// Combine all chunks into a single Blob
|
|
1236
|
-
const body = new Blob(chunks);
|
|
1237
|
-
// Convert Blob to ArrayBuffer for compatibility
|
|
1238
|
-
const arrayBuffer = await body.arrayBuffer();
|
|
1239
|
-
return arrayBuffer;
|
|
1240
|
-
}
|
|
1241
|
-
async _createMultipartStream(parts, boundary) {
|
|
1242
|
-
const encoder = new TextEncoder();
|
|
1243
|
-
// Create a ReadableStream for streaming the multipart data
|
|
1244
|
-
// Only do special handling if we're using node-fetch
|
|
1245
|
-
const stream = new ReadableStream({
|
|
1246
|
-
async start(controller) {
|
|
1247
|
-
// Helper function to write a chunk to the stream
|
|
1248
|
-
const writeChunk = async (chunk) => {
|
|
1249
|
-
if (typeof chunk === "string") {
|
|
1250
|
-
controller.enqueue(encoder.encode(chunk));
|
|
1251
|
-
}
|
|
1252
|
-
else {
|
|
1253
|
-
controller.enqueue(chunk);
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
// Write each part to the stream
|
|
1257
|
-
for (const part of parts) {
|
|
1258
|
-
// Write boundary and headers
|
|
1259
|
-
await writeChunk(`--${boundary}\r\n`);
|
|
1260
|
-
await writeChunk(`Content-Disposition: form-data; name="${part.name}"\r\n`);
|
|
1261
|
-
await writeChunk(`Content-Type: ${part.payload.type}\r\n\r\n`);
|
|
1262
|
-
// Write the payload
|
|
1263
|
-
const payloadStream = part.payload.stream();
|
|
1264
|
-
const reader = payloadStream.getReader();
|
|
1265
|
-
try {
|
|
1266
|
-
let result;
|
|
1267
|
-
while (!(result = await reader.read()).done) {
|
|
1268
|
-
controller.enqueue(result.value);
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
finally {
|
|
1272
|
-
reader.releaseLock();
|
|
1273
|
-
}
|
|
1274
|
-
await writeChunk("\r\n");
|
|
1275
|
-
}
|
|
1276
|
-
// Write final boundary
|
|
1277
|
-
await writeChunk(`--${boundary}--\r\n`);
|
|
1278
|
-
controller.close();
|
|
1279
|
-
},
|
|
1280
|
-
});
|
|
1281
|
-
return stream;
|
|
1282
|
-
}
|
|
1283
|
-
async _sendMultipartRequest(parts, context, options) {
|
|
1284
|
-
// Create multipart form data boundary
|
|
1285
|
-
const boundary = "----LangSmithFormBoundary" + Math.random().toString(36).slice(2);
|
|
1286
|
-
const buildBuffered = () => this._createNodeFetchBody(parts, boundary);
|
|
1287
|
-
const buildStream = () => this._createMultipartStream(parts, boundary);
|
|
1288
|
-
const sendWithRetry = async (bodyFactory) => {
|
|
1289
|
-
return this.batchIngestCaller.callWithOptions({ sizeBytes: options?.sizeBytes }, async () => {
|
|
1290
|
-
const body = await bodyFactory();
|
|
1291
|
-
const headers = {
|
|
1292
|
-
...this.headers,
|
|
1293
|
-
"Content-Type": `multipart/form-data; boundary=${boundary}`,
|
|
1294
|
-
};
|
|
1295
|
-
if (options?.apiKey !== undefined) {
|
|
1296
|
-
headers["x-api-key"] = options.apiKey;
|
|
1297
|
-
}
|
|
1298
|
-
let transformedBody = body;
|
|
1299
|
-
if (options?.useGzip &&
|
|
1300
|
-
typeof body === "object" &&
|
|
1301
|
-
"pipeThrough" in body) {
|
|
1302
|
-
transformedBody = body.pipeThrough(new CompressionStream("gzip"));
|
|
1303
|
-
headers["Content-Encoding"] = "gzip";
|
|
1304
|
-
}
|
|
1305
|
-
const response = await this._fetch(`${options?.apiUrl ?? this.apiUrl}/runs/multipart`, {
|
|
1306
|
-
method: "POST",
|
|
1307
|
-
headers,
|
|
1308
|
-
body: transformedBody,
|
|
1309
|
-
duplex: "half",
|
|
1310
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1311
|
-
...this.fetchOptions,
|
|
1312
|
-
});
|
|
1313
|
-
await raiseForStatus(response, `Failed to send multipart request`, true);
|
|
1314
|
-
return response;
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
|
-
try {
|
|
1318
|
-
let res;
|
|
1319
|
-
let streamedAttempt = false;
|
|
1320
|
-
const shouldStream = _shouldStreamForGlobalFetchImplementation();
|
|
1321
|
-
// attempt stream only if not disabled and not using node-fetch or Bun;
|
|
1322
|
-
if (shouldStream &&
|
|
1323
|
-
!this.multipartStreamingDisabled &&
|
|
1324
|
-
getEnv() !== "bun") {
|
|
1325
|
-
streamedAttempt = true;
|
|
1326
|
-
res = await sendWithRetry(buildStream);
|
|
1327
|
-
}
|
|
1328
|
-
else {
|
|
1329
|
-
res = await sendWithRetry(buildBuffered);
|
|
1330
|
-
}
|
|
1331
|
-
// if stream fails, fallback to buffered body
|
|
1332
|
-
if ((!this.multipartStreamingDisabled || streamedAttempt) &&
|
|
1333
|
-
res.status === 422 &&
|
|
1334
|
-
(options?.apiUrl ?? this.apiUrl) !== DEFAULT_API_URL) {
|
|
1335
|
-
console.warn(`Streaming multipart upload to ${options?.apiUrl ?? this.apiUrl}/runs/multipart failed. ` +
|
|
1336
|
-
`This usually means the host does not support chunked uploads. ` +
|
|
1337
|
-
`Retrying with a buffered upload for operation "${context}".`);
|
|
1338
|
-
// Disable streaming for future requests
|
|
1339
|
-
this.multipartStreamingDisabled = true;
|
|
1340
|
-
// retry with fully-buffered body
|
|
1341
|
-
res = await sendWithRetry(buildBuffered);
|
|
1342
|
-
}
|
|
1343
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1344
|
-
}
|
|
1345
|
-
catch (e) {
|
|
1346
|
-
// Re-throw 404 errors so caller can fall back to batch ingest
|
|
1347
|
-
if (isLangSmithNotFoundError(e)) {
|
|
1348
|
-
throw e;
|
|
1349
|
-
}
|
|
1350
|
-
console.warn(`${e.message.trim()}\n\nContext: ${context}`);
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
async updateRun(runId, run, options) {
|
|
1354
|
-
assertUuid(runId);
|
|
1355
|
-
if (run.inputs) {
|
|
1356
|
-
run.inputs = await this.processInputs(run.inputs);
|
|
1357
|
-
}
|
|
1358
|
-
if (run.outputs) {
|
|
1359
|
-
run.outputs = await this.processOutputs(run.outputs);
|
|
1360
|
-
}
|
|
1361
|
-
// TODO: Untangle types
|
|
1362
|
-
const data = { ...run, id: runId };
|
|
1363
|
-
if (!this._filterForSampling([data], true).length) {
|
|
1364
|
-
return;
|
|
1365
|
-
}
|
|
1366
|
-
if (this.autoBatchTracing &&
|
|
1367
|
-
data.trace_id !== undefined &&
|
|
1368
|
-
data.dotted_order !== undefined) {
|
|
1369
|
-
const otelContext = this._cloneCurrentOTELContext();
|
|
1370
|
-
if (run.end_time !== undefined &&
|
|
1371
|
-
data.parent_run_id === undefined &&
|
|
1372
|
-
this.blockOnRootRunFinalization &&
|
|
1373
|
-
!this.manualFlushMode) {
|
|
1374
|
-
// Trigger batches as soon as a root trace ends and wait to ensure trace finishes
|
|
1375
|
-
// in serverless environments.
|
|
1376
|
-
await this.processRunOperation({
|
|
1377
|
-
action: "update",
|
|
1378
|
-
item: data,
|
|
1379
|
-
otelContext,
|
|
1380
|
-
apiKey: options?.apiKey,
|
|
1381
|
-
apiUrl: options?.apiUrl,
|
|
1382
|
-
}).catch(console.error);
|
|
1383
|
-
return;
|
|
1384
|
-
}
|
|
1385
|
-
else {
|
|
1386
|
-
void this.processRunOperation({
|
|
1387
|
-
action: "update",
|
|
1388
|
-
item: data,
|
|
1389
|
-
otelContext,
|
|
1390
|
-
apiKey: options?.apiKey,
|
|
1391
|
-
apiUrl: options?.apiUrl,
|
|
1392
|
-
}).catch(console.error);
|
|
1393
|
-
}
|
|
1394
|
-
return;
|
|
1395
|
-
}
|
|
1396
|
-
const headers = {
|
|
1397
|
-
...this.headers,
|
|
1398
|
-
"Content-Type": "application/json",
|
|
1399
|
-
};
|
|
1400
|
-
if (options?.apiKey !== undefined) {
|
|
1401
|
-
headers["x-api-key"] = options.apiKey;
|
|
1402
|
-
}
|
|
1403
|
-
if (options?.workspaceId !== undefined) {
|
|
1404
|
-
headers["x-tenant-id"] = options.workspaceId;
|
|
1405
|
-
}
|
|
1406
|
-
const body = serializePayloadForTracing(run, `Serializing payload to update run with id: ${runId}`);
|
|
1407
|
-
await this.caller.call(async () => {
|
|
1408
|
-
const res = await this._fetch(`${options?.apiUrl ?? this.apiUrl}/runs/${runId}`, {
|
|
1409
|
-
method: "PATCH",
|
|
1410
|
-
headers,
|
|
1411
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1412
|
-
...this.fetchOptions,
|
|
1413
|
-
body,
|
|
1414
|
-
});
|
|
1415
|
-
await raiseForStatus(res, "update run", true);
|
|
1416
|
-
return res;
|
|
1417
|
-
});
|
|
1418
|
-
}
|
|
1419
|
-
async readRun(runId, { loadChildRuns } = { loadChildRuns: false }) {
|
|
1420
|
-
assertUuid(runId);
|
|
1421
|
-
let run = await this._get(`/runs/${runId}`);
|
|
1422
|
-
if (loadChildRuns) {
|
|
1423
|
-
run = await this._loadChildRuns(run);
|
|
1424
|
-
}
|
|
1425
|
-
return run;
|
|
1426
|
-
}
|
|
1427
|
-
async getRunUrl({ runId, run, projectOpts, }) {
|
|
1428
|
-
if (run !== undefined) {
|
|
1429
|
-
let sessionId;
|
|
1430
|
-
if (run.session_id) {
|
|
1431
|
-
sessionId = run.session_id;
|
|
1432
|
-
}
|
|
1433
|
-
else if (projectOpts?.projectName) {
|
|
1434
|
-
sessionId = (await this.readProject({ projectName: projectOpts?.projectName })).id;
|
|
1435
|
-
}
|
|
1436
|
-
else if (projectOpts?.projectId) {
|
|
1437
|
-
sessionId = projectOpts?.projectId;
|
|
1438
|
-
}
|
|
1439
|
-
else {
|
|
1440
|
-
const project = await this.readProject({
|
|
1441
|
-
projectName: getLangSmithEnvironmentVariable("PROJECT") || "default",
|
|
1442
|
-
});
|
|
1443
|
-
sessionId = project.id;
|
|
1444
|
-
}
|
|
1445
|
-
const tenantId = await this._getTenantId();
|
|
1446
|
-
return `${this.getHostUrl()}/o/${tenantId}/projects/p/${sessionId}/r/${run.id}?poll=true`;
|
|
1447
|
-
}
|
|
1448
|
-
else if (runId !== undefined) {
|
|
1449
|
-
const run_ = await this.readRun(runId);
|
|
1450
|
-
if (!run_.app_path) {
|
|
1451
|
-
throw new Error(`Run ${runId} has no app_path`);
|
|
1452
|
-
}
|
|
1453
|
-
const baseUrl = this.getHostUrl();
|
|
1454
|
-
return `${baseUrl}${run_.app_path}`;
|
|
1455
|
-
}
|
|
1456
|
-
else {
|
|
1457
|
-
throw new Error("Must provide either runId or run");
|
|
1458
|
-
}
|
|
1459
|
-
}
|
|
1460
|
-
async _loadChildRuns(run) {
|
|
1461
|
-
const childRuns = await toArray(this.listRuns({
|
|
1462
|
-
isRoot: false,
|
|
1463
|
-
projectId: run.session_id,
|
|
1464
|
-
traceId: run.trace_id,
|
|
1465
|
-
}));
|
|
1466
|
-
const treemap = {};
|
|
1467
|
-
const runs = {};
|
|
1468
|
-
// TODO: make dotted order required when the migration finishes
|
|
1469
|
-
childRuns.sort((a, b) => (a?.dotted_order ?? "").localeCompare(b?.dotted_order ?? ""));
|
|
1470
|
-
for (const childRun of childRuns) {
|
|
1471
|
-
if (childRun.parent_run_id === null ||
|
|
1472
|
-
childRun.parent_run_id === undefined) {
|
|
1473
|
-
throw new Error(`Child run ${childRun.id} has no parent`);
|
|
1474
|
-
}
|
|
1475
|
-
if (childRun.dotted_order?.startsWith(run.dotted_order ?? "") &&
|
|
1476
|
-
childRun.id !== run.id) {
|
|
1477
|
-
if (!(childRun.parent_run_id in treemap)) {
|
|
1478
|
-
treemap[childRun.parent_run_id] = [];
|
|
1479
|
-
}
|
|
1480
|
-
treemap[childRun.parent_run_id].push(childRun);
|
|
1481
|
-
runs[childRun.id] = childRun;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
run.child_runs = treemap[run.id] || [];
|
|
1485
|
-
for (const runId in treemap) {
|
|
1486
|
-
if (runId !== run.id) {
|
|
1487
|
-
runs[runId].child_runs = treemap[runId];
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1490
|
-
return run;
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* List runs from the LangSmith server.
|
|
1494
|
-
* @param projectId - The ID of the project to filter by.
|
|
1495
|
-
* @param projectName - The name of the project to filter by.
|
|
1496
|
-
* @param parentRunId - The ID of the parent run to filter by.
|
|
1497
|
-
* @param traceId - The ID of the trace to filter by.
|
|
1498
|
-
* @param referenceExampleId - The ID of the reference example to filter by.
|
|
1499
|
-
* @param startTime - The start time to filter by.
|
|
1500
|
-
* @param isRoot - Indicates whether to only return root runs.
|
|
1501
|
-
* @param runType - The run type to filter by.
|
|
1502
|
-
* @param error - Indicates whether to filter by error runs.
|
|
1503
|
-
* @param id - The ID of the run to filter by.
|
|
1504
|
-
* @param query - The query string to filter by.
|
|
1505
|
-
* @param filter - The filter string to apply to the run spans.
|
|
1506
|
-
* @param traceFilter - The filter string to apply on the root run of the trace.
|
|
1507
|
-
* @param treeFilter - The filter string to apply on other runs in the trace.
|
|
1508
|
-
* @param limit - The maximum number of runs to retrieve.
|
|
1509
|
-
* @returns {AsyncIterable<Run>} - The runs.
|
|
1510
|
-
*
|
|
1511
|
-
* @example
|
|
1512
|
-
* // List all runs in a project
|
|
1513
|
-
* const projectRuns = client.listRuns({ projectName: "<your_project>" });
|
|
1514
|
-
*
|
|
1515
|
-
* @example
|
|
1516
|
-
* // List LLM and Chat runs in the last 24 hours
|
|
1517
|
-
* const todaysLLMRuns = client.listRuns({
|
|
1518
|
-
* projectName: "<your_project>",
|
|
1519
|
-
* start_time: new Date(Date.now() - 24 * 60 * 60 * 1000),
|
|
1520
|
-
* run_type: "llm",
|
|
1521
|
-
* });
|
|
1522
|
-
*
|
|
1523
|
-
* @example
|
|
1524
|
-
* // List traces in a project
|
|
1525
|
-
* const rootRuns = client.listRuns({
|
|
1526
|
-
* projectName: "<your_project>",
|
|
1527
|
-
* execution_order: 1,
|
|
1528
|
-
* });
|
|
1529
|
-
*
|
|
1530
|
-
* @example
|
|
1531
|
-
* // List runs without errors
|
|
1532
|
-
* const correctRuns = client.listRuns({
|
|
1533
|
-
* projectName: "<your_project>",
|
|
1534
|
-
* error: false,
|
|
1535
|
-
* });
|
|
1536
|
-
*
|
|
1537
|
-
* @example
|
|
1538
|
-
* // List runs by run ID
|
|
1539
|
-
* const runIds = [
|
|
1540
|
-
* "a36092d2-4ad5-4fb4-9c0d-0dba9a2ed836",
|
|
1541
|
-
* "9398e6be-964f-4aa4-8ae9-ad78cd4b7074",
|
|
1542
|
-
* ];
|
|
1543
|
-
* const selectedRuns = client.listRuns({ run_ids: runIds });
|
|
1544
|
-
*
|
|
1545
|
-
* @example
|
|
1546
|
-
* // List all "chain" type runs that took more than 10 seconds and had `total_tokens` greater than 5000
|
|
1547
|
-
* const chainRuns = client.listRuns({
|
|
1548
|
-
* projectName: "<your_project>",
|
|
1549
|
-
* filter: 'and(eq(run_type, "chain"), gt(latency, 10), gt(total_tokens, 5000))',
|
|
1550
|
-
* });
|
|
1551
|
-
*
|
|
1552
|
-
* @example
|
|
1553
|
-
* // List all runs called "extractor" whose root of the trace was assigned feedback "user_score" score of 1
|
|
1554
|
-
* const goodExtractorRuns = client.listRuns({
|
|
1555
|
-
* projectName: "<your_project>",
|
|
1556
|
-
* filter: 'eq(name, "extractor")',
|
|
1557
|
-
* traceFilter: 'and(eq(feedback_key, "user_score"), eq(feedback_score, 1))',
|
|
1558
|
-
* });
|
|
1559
|
-
*
|
|
1560
|
-
* @example
|
|
1561
|
-
* // List all runs that started after a specific timestamp and either have "error" not equal to null or a "Correctness" feedback score equal to 0
|
|
1562
|
-
* const complexRuns = client.listRuns({
|
|
1563
|
-
* projectName: "<your_project>",
|
|
1564
|
-
* filter: 'and(gt(start_time, "2023-07-15T12:34:56Z"), or(neq(error, null), and(eq(feedback_key, "Correctness"), eq(feedback_score, 0.0))))',
|
|
1565
|
-
* });
|
|
1566
|
-
*
|
|
1567
|
-
* @example
|
|
1568
|
-
* // List all runs where `tags` include "experimental" or "beta" and `latency` is greater than 2 seconds
|
|
1569
|
-
* const taggedRuns = client.listRuns({
|
|
1570
|
-
* projectName: "<your_project>",
|
|
1571
|
-
* filter: 'and(or(has(tags, "experimental"), has(tags, "beta")), gt(latency, 2))',
|
|
1572
|
-
* });
|
|
1573
|
-
*/
|
|
1574
|
-
async *listRuns(props) {
|
|
1575
|
-
const { projectId, projectName, parentRunId, traceId, referenceExampleId, startTime, executionOrder, isRoot, runType, error, id, query, filter, traceFilter, treeFilter, limit, select, order, } = props;
|
|
1576
|
-
let projectIds = [];
|
|
1577
|
-
if (projectId) {
|
|
1578
|
-
projectIds = Array.isArray(projectId) ? projectId : [projectId];
|
|
1579
|
-
}
|
|
1580
|
-
if (projectName) {
|
|
1581
|
-
const projectNames = Array.isArray(projectName)
|
|
1582
|
-
? projectName
|
|
1583
|
-
: [projectName];
|
|
1584
|
-
const projectIds_ = await Promise.all(projectNames.map((name) => this.readProject({ projectName: name }).then((project) => project.id)));
|
|
1585
|
-
projectIds.push(...projectIds_);
|
|
1586
|
-
}
|
|
1587
|
-
const default_select = [
|
|
1588
|
-
"app_path",
|
|
1589
|
-
"completion_cost",
|
|
1590
|
-
"completion_tokens",
|
|
1591
|
-
"dotted_order",
|
|
1592
|
-
"end_time",
|
|
1593
|
-
"error",
|
|
1594
|
-
"events",
|
|
1595
|
-
"extra",
|
|
1596
|
-
"feedback_stats",
|
|
1597
|
-
"first_token_time",
|
|
1598
|
-
"id",
|
|
1599
|
-
"inputs",
|
|
1600
|
-
"name",
|
|
1601
|
-
"outputs",
|
|
1602
|
-
"parent_run_id",
|
|
1603
|
-
"parent_run_ids",
|
|
1604
|
-
"prompt_cost",
|
|
1605
|
-
"prompt_tokens",
|
|
1606
|
-
"reference_example_id",
|
|
1607
|
-
"run_type",
|
|
1608
|
-
"session_id",
|
|
1609
|
-
"start_time",
|
|
1610
|
-
"status",
|
|
1611
|
-
"tags",
|
|
1612
|
-
"total_cost",
|
|
1613
|
-
"total_tokens",
|
|
1614
|
-
"trace_id",
|
|
1615
|
-
];
|
|
1616
|
-
const body = {
|
|
1617
|
-
session: projectIds.length ? projectIds : null,
|
|
1618
|
-
run_type: runType,
|
|
1619
|
-
reference_example: referenceExampleId,
|
|
1620
|
-
query,
|
|
1621
|
-
filter,
|
|
1622
|
-
trace_filter: traceFilter,
|
|
1623
|
-
tree_filter: treeFilter,
|
|
1624
|
-
execution_order: executionOrder,
|
|
1625
|
-
parent_run: parentRunId,
|
|
1626
|
-
start_time: startTime ? startTime.toISOString() : null,
|
|
1627
|
-
error,
|
|
1628
|
-
id,
|
|
1629
|
-
limit,
|
|
1630
|
-
trace: traceId,
|
|
1631
|
-
select: select ? select : default_select,
|
|
1632
|
-
is_root: isRoot,
|
|
1633
|
-
order,
|
|
1634
|
-
};
|
|
1635
|
-
if (body.select.includes("child_run_ids")) {
|
|
1636
|
-
warnOnce("Deprecated: 'child_run_ids' in the listRuns select parameter is deprecated and will be removed in a future version.");
|
|
1637
|
-
}
|
|
1638
|
-
let runsYielded = 0;
|
|
1639
|
-
for await (const runs of this._getCursorPaginatedList("/runs/query", body)) {
|
|
1640
|
-
if (limit) {
|
|
1641
|
-
if (runsYielded >= limit) {
|
|
1642
|
-
break;
|
|
1643
|
-
}
|
|
1644
|
-
if (runs.length + runsYielded > limit) {
|
|
1645
|
-
const newRuns = runs.slice(0, limit - runsYielded);
|
|
1646
|
-
yield* newRuns;
|
|
1647
|
-
break;
|
|
1648
|
-
}
|
|
1649
|
-
runsYielded += runs.length;
|
|
1650
|
-
yield* runs;
|
|
1651
|
-
}
|
|
1652
|
-
else {
|
|
1653
|
-
yield* runs;
|
|
1654
|
-
}
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
async *listGroupRuns(props) {
|
|
1658
|
-
const { projectId, projectName, groupBy, filter, startTime, endTime, limit, offset, } = props;
|
|
1659
|
-
const sessionId = projectId || (await this.readProject({ projectName })).id;
|
|
1660
|
-
const baseBody = {
|
|
1661
|
-
session_id: sessionId,
|
|
1662
|
-
group_by: groupBy,
|
|
1663
|
-
filter,
|
|
1664
|
-
start_time: startTime ? startTime.toISOString() : null,
|
|
1665
|
-
end_time: endTime ? endTime.toISOString() : null,
|
|
1666
|
-
limit: Number(limit) || 100,
|
|
1667
|
-
};
|
|
1668
|
-
let currentOffset = Number(offset) || 0;
|
|
1669
|
-
const path = "/runs/group";
|
|
1670
|
-
const url = `${this.apiUrl}${path}`;
|
|
1671
|
-
while (true) {
|
|
1672
|
-
const currentBody = {
|
|
1673
|
-
...baseBody,
|
|
1674
|
-
offset: currentOffset,
|
|
1675
|
-
};
|
|
1676
|
-
// Remove undefined values from the payload
|
|
1677
|
-
const filteredPayload = Object.fromEntries(Object.entries(currentBody).filter(([_, value]) => value !== undefined));
|
|
1678
|
-
const body = JSON.stringify(filteredPayload);
|
|
1679
|
-
const response = await this.caller.call(async () => {
|
|
1680
|
-
const res = await this._fetch(url, {
|
|
1681
|
-
method: "POST",
|
|
1682
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
1683
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1684
|
-
...this.fetchOptions,
|
|
1685
|
-
body,
|
|
1686
|
-
});
|
|
1687
|
-
await raiseForStatus(res, `Failed to fetch ${path}`);
|
|
1688
|
-
return res;
|
|
1689
|
-
});
|
|
1690
|
-
const items = await response.json();
|
|
1691
|
-
const { groups, total } = items;
|
|
1692
|
-
if (groups.length === 0) {
|
|
1693
|
-
break;
|
|
1694
|
-
}
|
|
1695
|
-
for (const thread of groups) {
|
|
1696
|
-
yield thread;
|
|
1697
|
-
}
|
|
1698
|
-
currentOffset += groups.length;
|
|
1699
|
-
if (currentOffset >= total) {
|
|
1700
|
-
break;
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
}
|
|
1704
|
-
async getRunStats({ id, trace, parentRun, runType, projectNames, projectIds, referenceExampleIds, startTime, endTime, error, query, filter, traceFilter, treeFilter, isRoot, dataSourceType, }) {
|
|
1705
|
-
let projectIds_ = projectIds || [];
|
|
1706
|
-
if (projectNames) {
|
|
1707
|
-
projectIds_ = [
|
|
1708
|
-
...(projectIds || []),
|
|
1709
|
-
...(await Promise.all(projectNames.map((name) => this.readProject({ projectName: name }).then((project) => project.id)))),
|
|
1710
|
-
];
|
|
1711
|
-
}
|
|
1712
|
-
const payload = {
|
|
1713
|
-
id,
|
|
1714
|
-
trace,
|
|
1715
|
-
parent_run: parentRun,
|
|
1716
|
-
run_type: runType,
|
|
1717
|
-
session: projectIds_,
|
|
1718
|
-
reference_example: referenceExampleIds,
|
|
1719
|
-
start_time: startTime,
|
|
1720
|
-
end_time: endTime,
|
|
1721
|
-
error,
|
|
1722
|
-
query,
|
|
1723
|
-
filter,
|
|
1724
|
-
trace_filter: traceFilter,
|
|
1725
|
-
tree_filter: treeFilter,
|
|
1726
|
-
is_root: isRoot,
|
|
1727
|
-
data_source_type: dataSourceType,
|
|
1728
|
-
};
|
|
1729
|
-
// Remove undefined values from the payload
|
|
1730
|
-
const filteredPayload = Object.fromEntries(Object.entries(payload).filter(([_, value]) => value !== undefined));
|
|
1731
|
-
const body = JSON.stringify(filteredPayload);
|
|
1732
|
-
const response = await this.caller.call(async () => {
|
|
1733
|
-
const res = await this._fetch(`${this.apiUrl}/runs/stats`, {
|
|
1734
|
-
method: "POST",
|
|
1735
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
1736
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1737
|
-
...this.fetchOptions,
|
|
1738
|
-
body,
|
|
1739
|
-
});
|
|
1740
|
-
await raiseForStatus(res, "get run stats");
|
|
1741
|
-
return res;
|
|
1742
|
-
});
|
|
1743
|
-
const result = await response.json();
|
|
1744
|
-
return result;
|
|
1745
|
-
}
|
|
1746
|
-
async shareRun(runId, { shareId } = {}) {
|
|
1747
|
-
const data = {
|
|
1748
|
-
run_id: runId,
|
|
1749
|
-
share_token: shareId || uuid.v4(),
|
|
1750
|
-
};
|
|
1751
|
-
assertUuid(runId);
|
|
1752
|
-
const body = JSON.stringify(data);
|
|
1753
|
-
const response = await this.caller.call(async () => {
|
|
1754
|
-
const res = await this._fetch(`${this.apiUrl}/runs/${runId}/share`, {
|
|
1755
|
-
method: "PUT",
|
|
1756
|
-
headers: this.headers,
|
|
1757
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1758
|
-
...this.fetchOptions,
|
|
1759
|
-
body,
|
|
1760
|
-
});
|
|
1761
|
-
await raiseForStatus(res, "share run");
|
|
1762
|
-
return res;
|
|
1763
|
-
});
|
|
1764
|
-
const result = await response.json();
|
|
1765
|
-
if (result === null || !("share_token" in result)) {
|
|
1766
|
-
throw new Error("Invalid response from server");
|
|
1767
|
-
}
|
|
1768
|
-
return `${this.getHostUrl()}/public/${result["share_token"]}/r`;
|
|
1769
|
-
}
|
|
1770
|
-
async unshareRun(runId) {
|
|
1771
|
-
assertUuid(runId);
|
|
1772
|
-
await this.caller.call(async () => {
|
|
1773
|
-
const res = await this._fetch(`${this.apiUrl}/runs/${runId}/share`, {
|
|
1774
|
-
method: "DELETE",
|
|
1775
|
-
headers: this.headers,
|
|
1776
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1777
|
-
...this.fetchOptions,
|
|
1778
|
-
});
|
|
1779
|
-
await raiseForStatus(res, "unshare run", true);
|
|
1780
|
-
return res;
|
|
1781
|
-
});
|
|
1782
|
-
}
|
|
1783
|
-
async readRunSharedLink(runId) {
|
|
1784
|
-
assertUuid(runId);
|
|
1785
|
-
const response = await this.caller.call(async () => {
|
|
1786
|
-
const res = await this._fetch(`${this.apiUrl}/runs/${runId}/share`, {
|
|
1787
|
-
method: "GET",
|
|
1788
|
-
headers: this.headers,
|
|
1789
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1790
|
-
...this.fetchOptions,
|
|
1791
|
-
});
|
|
1792
|
-
await raiseForStatus(res, "read run shared link");
|
|
1793
|
-
return res;
|
|
1794
|
-
});
|
|
1795
|
-
const result = await response.json();
|
|
1796
|
-
if (result === null || !("share_token" in result)) {
|
|
1797
|
-
return undefined;
|
|
1798
|
-
}
|
|
1799
|
-
return `${this.getHostUrl()}/public/${result["share_token"]}/r`;
|
|
1800
|
-
}
|
|
1801
|
-
async listSharedRuns(shareToken, { runIds, } = {}) {
|
|
1802
|
-
const queryParams = new URLSearchParams({
|
|
1803
|
-
share_token: shareToken,
|
|
1804
|
-
});
|
|
1805
|
-
if (runIds !== undefined) {
|
|
1806
|
-
for (const runId of runIds) {
|
|
1807
|
-
queryParams.append("id", runId);
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
assertUuid(shareToken);
|
|
1811
|
-
const response = await this.caller.call(async () => {
|
|
1812
|
-
const res = await this._fetch(`${this.apiUrl}/public/${shareToken}/runs${queryParams}`, {
|
|
1813
|
-
method: "GET",
|
|
1814
|
-
headers: this.headers,
|
|
1815
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1816
|
-
...this.fetchOptions,
|
|
1817
|
-
});
|
|
1818
|
-
await raiseForStatus(res, "list shared runs");
|
|
1819
|
-
return res;
|
|
1820
|
-
});
|
|
1821
|
-
const runs = await response.json();
|
|
1822
|
-
return runs;
|
|
1823
|
-
}
|
|
1824
|
-
async readDatasetSharedSchema(datasetId, datasetName) {
|
|
1825
|
-
if (!datasetId && !datasetName) {
|
|
1826
|
-
throw new Error("Either datasetId or datasetName must be given");
|
|
1827
|
-
}
|
|
1828
|
-
if (!datasetId) {
|
|
1829
|
-
const dataset = await this.readDataset({ datasetName });
|
|
1830
|
-
datasetId = dataset.id;
|
|
1831
|
-
}
|
|
1832
|
-
assertUuid(datasetId);
|
|
1833
|
-
const response = await this.caller.call(async () => {
|
|
1834
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId}/share`, {
|
|
1835
|
-
method: "GET",
|
|
1836
|
-
headers: this.headers,
|
|
1837
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1838
|
-
...this.fetchOptions,
|
|
1839
|
-
});
|
|
1840
|
-
await raiseForStatus(res, "read dataset shared schema");
|
|
1841
|
-
return res;
|
|
1842
|
-
});
|
|
1843
|
-
const shareSchema = await response.json();
|
|
1844
|
-
shareSchema.url = `${this.getHostUrl()}/public/${shareSchema.share_token}/d`;
|
|
1845
|
-
return shareSchema;
|
|
1846
|
-
}
|
|
1847
|
-
async shareDataset(datasetId, datasetName) {
|
|
1848
|
-
if (!datasetId && !datasetName) {
|
|
1849
|
-
throw new Error("Either datasetId or datasetName must be given");
|
|
1850
|
-
}
|
|
1851
|
-
if (!datasetId) {
|
|
1852
|
-
const dataset = await this.readDataset({ datasetName });
|
|
1853
|
-
datasetId = dataset.id;
|
|
1854
|
-
}
|
|
1855
|
-
const data = {
|
|
1856
|
-
dataset_id: datasetId,
|
|
1857
|
-
};
|
|
1858
|
-
assertUuid(datasetId);
|
|
1859
|
-
const body = JSON.stringify(data);
|
|
1860
|
-
const response = await this.caller.call(async () => {
|
|
1861
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId}/share`, {
|
|
1862
|
-
method: "PUT",
|
|
1863
|
-
headers: this.headers,
|
|
1864
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1865
|
-
...this.fetchOptions,
|
|
1866
|
-
body,
|
|
1867
|
-
});
|
|
1868
|
-
await raiseForStatus(res, "share dataset");
|
|
1869
|
-
return res;
|
|
1870
|
-
});
|
|
1871
|
-
const shareSchema = await response.json();
|
|
1872
|
-
shareSchema.url = `${this.getHostUrl()}/public/${shareSchema.share_token}/d`;
|
|
1873
|
-
return shareSchema;
|
|
1874
|
-
}
|
|
1875
|
-
async unshareDataset(datasetId) {
|
|
1876
|
-
assertUuid(datasetId);
|
|
1877
|
-
await this.caller.call(async () => {
|
|
1878
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId}/share`, {
|
|
1879
|
-
method: "DELETE",
|
|
1880
|
-
headers: this.headers,
|
|
1881
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1882
|
-
...this.fetchOptions,
|
|
1883
|
-
});
|
|
1884
|
-
await raiseForStatus(res, "unshare dataset", true);
|
|
1885
|
-
return res;
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
|
-
async readSharedDataset(shareToken) {
|
|
1889
|
-
assertUuid(shareToken);
|
|
1890
|
-
const response = await this.caller.call(async () => {
|
|
1891
|
-
const res = await this._fetch(`${this.apiUrl}/public/${shareToken}/datasets`, {
|
|
1892
|
-
method: "GET",
|
|
1893
|
-
headers: this.headers,
|
|
1894
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1895
|
-
...this.fetchOptions,
|
|
1896
|
-
});
|
|
1897
|
-
await raiseForStatus(res, "read shared dataset");
|
|
1898
|
-
return res;
|
|
1899
|
-
});
|
|
1900
|
-
const dataset = await response.json();
|
|
1901
|
-
return dataset;
|
|
1902
|
-
}
|
|
1903
|
-
/**
|
|
1904
|
-
* Get shared examples.
|
|
1905
|
-
*
|
|
1906
|
-
* @param {string} shareToken The share token to get examples for. A share token is the UUID (or LangSmith URL, including UUID) generated when explicitly marking an example as public.
|
|
1907
|
-
* @param {Object} [options] Additional options for listing the examples.
|
|
1908
|
-
* @param {string[] | undefined} [options.exampleIds] A list of example IDs to filter by.
|
|
1909
|
-
* @returns {Promise<Example[]>} The shared examples.
|
|
1910
|
-
*/
|
|
1911
|
-
async listSharedExamples(shareToken, options) {
|
|
1912
|
-
const params = {};
|
|
1913
|
-
if (options?.exampleIds) {
|
|
1914
|
-
params.id = options.exampleIds;
|
|
1915
|
-
}
|
|
1916
|
-
const urlParams = new URLSearchParams();
|
|
1917
|
-
Object.entries(params).forEach(([key, value]) => {
|
|
1918
|
-
if (Array.isArray(value)) {
|
|
1919
|
-
value.forEach((v) => urlParams.append(key, v));
|
|
1920
|
-
}
|
|
1921
|
-
else {
|
|
1922
|
-
urlParams.append(key, value);
|
|
1923
|
-
}
|
|
1924
|
-
});
|
|
1925
|
-
const response = await this.caller.call(async () => {
|
|
1926
|
-
const res = await this._fetch(`${this.apiUrl}/public/${shareToken}/examples?${urlParams.toString()}`, {
|
|
1927
|
-
method: "GET",
|
|
1928
|
-
headers: this.headers,
|
|
1929
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1930
|
-
...this.fetchOptions,
|
|
1931
|
-
});
|
|
1932
|
-
await raiseForStatus(res, "list shared examples");
|
|
1933
|
-
return res;
|
|
1934
|
-
});
|
|
1935
|
-
const result = await response.json();
|
|
1936
|
-
if (!response.ok) {
|
|
1937
|
-
if ("detail" in result) {
|
|
1938
|
-
throw new Error(`Failed to list shared examples.\nStatus: ${response.status}\nMessage: ${Array.isArray(result.detail)
|
|
1939
|
-
? result.detail.join("\n")
|
|
1940
|
-
: "Unspecified error"}`);
|
|
1941
|
-
}
|
|
1942
|
-
throw new Error(`Failed to list shared examples: ${response.status} ${response.statusText}`);
|
|
1943
|
-
}
|
|
1944
|
-
return result.map((example) => ({
|
|
1945
|
-
...example,
|
|
1946
|
-
_hostUrl: this.getHostUrl(),
|
|
1947
|
-
}));
|
|
1948
|
-
}
|
|
1949
|
-
async createProject({ projectName, description = null, metadata = null, upsert = false, projectExtra = null, referenceDatasetId = null, }) {
|
|
1950
|
-
const upsert_ = upsert ? `?upsert=true` : "";
|
|
1951
|
-
const endpoint = `${this.apiUrl}/sessions${upsert_}`;
|
|
1952
|
-
const extra = projectExtra || {};
|
|
1953
|
-
if (metadata) {
|
|
1954
|
-
extra["metadata"] = metadata;
|
|
1955
|
-
}
|
|
1956
|
-
const body = {
|
|
1957
|
-
name: projectName,
|
|
1958
|
-
extra,
|
|
1959
|
-
description,
|
|
1960
|
-
};
|
|
1961
|
-
if (referenceDatasetId !== null) {
|
|
1962
|
-
body["reference_dataset_id"] = referenceDatasetId;
|
|
1963
|
-
}
|
|
1964
|
-
const serializedBody = JSON.stringify(body);
|
|
1965
|
-
const response = await this.caller.call(async () => {
|
|
1966
|
-
const res = await this._fetch(endpoint, {
|
|
1967
|
-
method: "POST",
|
|
1968
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
1969
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1970
|
-
...this.fetchOptions,
|
|
1971
|
-
body: serializedBody,
|
|
1972
|
-
});
|
|
1973
|
-
await raiseForStatus(res, "create project");
|
|
1974
|
-
return res;
|
|
1975
|
-
});
|
|
1976
|
-
const result = await response.json();
|
|
1977
|
-
return result;
|
|
1978
|
-
}
|
|
1979
|
-
async updateProject(projectId, { name = null, description = null, metadata = null, projectExtra = null, endTime = null, }) {
|
|
1980
|
-
const endpoint = `${this.apiUrl}/sessions/${projectId}`;
|
|
1981
|
-
let extra = projectExtra;
|
|
1982
|
-
if (metadata) {
|
|
1983
|
-
extra = { ...(extra || {}), metadata };
|
|
1984
|
-
}
|
|
1985
|
-
const body = JSON.stringify({
|
|
1986
|
-
name,
|
|
1987
|
-
extra,
|
|
1988
|
-
description,
|
|
1989
|
-
end_time: endTime ? new Date(endTime).toISOString() : null,
|
|
1990
|
-
});
|
|
1991
|
-
const response = await this.caller.call(async () => {
|
|
1992
|
-
const res = await this._fetch(endpoint, {
|
|
1993
|
-
method: "PATCH",
|
|
1994
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
1995
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
1996
|
-
...this.fetchOptions,
|
|
1997
|
-
body,
|
|
1998
|
-
});
|
|
1999
|
-
await raiseForStatus(res, "update project");
|
|
2000
|
-
return res;
|
|
2001
|
-
});
|
|
2002
|
-
const result = await response.json();
|
|
2003
|
-
return result;
|
|
2004
|
-
}
|
|
2005
|
-
async hasProject({ projectId, projectName, }) {
|
|
2006
|
-
// TODO: Add a head request
|
|
2007
|
-
let path = "/sessions";
|
|
2008
|
-
const params = new URLSearchParams();
|
|
2009
|
-
if (projectId !== undefined && projectName !== undefined) {
|
|
2010
|
-
throw new Error("Must provide either projectName or projectId, not both");
|
|
2011
|
-
}
|
|
2012
|
-
else if (projectId !== undefined) {
|
|
2013
|
-
assertUuid(projectId);
|
|
2014
|
-
path += `/${projectId}`;
|
|
2015
|
-
}
|
|
2016
|
-
else if (projectName !== undefined) {
|
|
2017
|
-
params.append("name", projectName);
|
|
2018
|
-
}
|
|
2019
|
-
else {
|
|
2020
|
-
throw new Error("Must provide projectName or projectId");
|
|
2021
|
-
}
|
|
2022
|
-
const response = await this.caller.call(async () => {
|
|
2023
|
-
const res = await this._fetch(`${this.apiUrl}${path}?${params}`, {
|
|
2024
|
-
method: "GET",
|
|
2025
|
-
headers: this.headers,
|
|
2026
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2027
|
-
...this.fetchOptions,
|
|
2028
|
-
});
|
|
2029
|
-
await raiseForStatus(res, "has project");
|
|
2030
|
-
return res;
|
|
2031
|
-
});
|
|
2032
|
-
// consume the response body to release the connection
|
|
2033
|
-
// https://undici.nodejs.org/#/?id=garbage-collection
|
|
2034
|
-
try {
|
|
2035
|
-
const result = await response.json();
|
|
2036
|
-
if (!response.ok) {
|
|
2037
|
-
return false;
|
|
2038
|
-
}
|
|
2039
|
-
// If it's OK and we're querying by name, need to check the list is not empty
|
|
2040
|
-
if (Array.isArray(result)) {
|
|
2041
|
-
return result.length > 0;
|
|
2042
|
-
}
|
|
2043
|
-
// projectId querying
|
|
2044
|
-
return true;
|
|
2045
|
-
}
|
|
2046
|
-
catch (e) {
|
|
2047
|
-
return false;
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
async readProject({ projectId, projectName, includeStats, }) {
|
|
2051
|
-
let path = "/sessions";
|
|
2052
|
-
const params = new URLSearchParams();
|
|
2053
|
-
if (projectId !== undefined && projectName !== undefined) {
|
|
2054
|
-
throw new Error("Must provide either projectName or projectId, not both");
|
|
2055
|
-
}
|
|
2056
|
-
else if (projectId !== undefined) {
|
|
2057
|
-
assertUuid(projectId);
|
|
2058
|
-
path += `/${projectId}`;
|
|
2059
|
-
}
|
|
2060
|
-
else if (projectName !== undefined) {
|
|
2061
|
-
params.append("name", projectName);
|
|
2062
|
-
}
|
|
2063
|
-
else {
|
|
2064
|
-
throw new Error("Must provide projectName or projectId");
|
|
2065
|
-
}
|
|
2066
|
-
if (includeStats !== undefined) {
|
|
2067
|
-
params.append("include_stats", includeStats.toString());
|
|
2068
|
-
}
|
|
2069
|
-
const response = await this._get(path, params);
|
|
2070
|
-
let result;
|
|
2071
|
-
if (Array.isArray(response)) {
|
|
2072
|
-
if (response.length === 0) {
|
|
2073
|
-
throw new Error(`Project[id=${projectId}, name=${projectName}] not found`);
|
|
2074
|
-
}
|
|
2075
|
-
result = response[0];
|
|
2076
|
-
}
|
|
2077
|
-
else {
|
|
2078
|
-
result = response;
|
|
2079
|
-
}
|
|
2080
|
-
return result;
|
|
2081
|
-
}
|
|
2082
|
-
async getProjectUrl({ projectId, projectName, }) {
|
|
2083
|
-
if (projectId === undefined && projectName === undefined) {
|
|
2084
|
-
throw new Error("Must provide either projectName or projectId");
|
|
2085
|
-
}
|
|
2086
|
-
const project = await this.readProject({ projectId, projectName });
|
|
2087
|
-
const tenantId = await this._getTenantId();
|
|
2088
|
-
return `${this.getHostUrl()}/o/${tenantId}/projects/p/${project.id}`;
|
|
2089
|
-
}
|
|
2090
|
-
async getDatasetUrl({ datasetId, datasetName, }) {
|
|
2091
|
-
if (datasetId === undefined && datasetName === undefined) {
|
|
2092
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2093
|
-
}
|
|
2094
|
-
const dataset = await this.readDataset({ datasetId, datasetName });
|
|
2095
|
-
const tenantId = await this._getTenantId();
|
|
2096
|
-
return `${this.getHostUrl()}/o/${tenantId}/datasets/${dataset.id}`;
|
|
2097
|
-
}
|
|
2098
|
-
async _getTenantId() {
|
|
2099
|
-
if (this._tenantId !== null) {
|
|
2100
|
-
return this._tenantId;
|
|
2101
|
-
}
|
|
2102
|
-
const queryParams = new URLSearchParams({ limit: "1" });
|
|
2103
|
-
for await (const projects of this._getPaginated("/sessions", queryParams)) {
|
|
2104
|
-
this._tenantId = projects[0].tenant_id;
|
|
2105
|
-
return projects[0].tenant_id;
|
|
2106
|
-
}
|
|
2107
|
-
throw new Error("No projects found to resolve tenant.");
|
|
2108
|
-
}
|
|
2109
|
-
async *listProjects({ projectIds, name, nameContains, referenceDatasetId, referenceDatasetName, includeStats, datasetVersion, referenceFree, metadata, } = {}) {
|
|
2110
|
-
const params = new URLSearchParams();
|
|
2111
|
-
if (projectIds !== undefined) {
|
|
2112
|
-
for (const projectId of projectIds) {
|
|
2113
|
-
params.append("id", projectId);
|
|
2114
|
-
}
|
|
2115
|
-
}
|
|
2116
|
-
if (name !== undefined) {
|
|
2117
|
-
params.append("name", name);
|
|
2118
|
-
}
|
|
2119
|
-
if (nameContains !== undefined) {
|
|
2120
|
-
params.append("name_contains", nameContains);
|
|
2121
|
-
}
|
|
2122
|
-
if (referenceDatasetId !== undefined) {
|
|
2123
|
-
params.append("reference_dataset", referenceDatasetId);
|
|
2124
|
-
}
|
|
2125
|
-
else if (referenceDatasetName !== undefined) {
|
|
2126
|
-
const dataset = await this.readDataset({
|
|
2127
|
-
datasetName: referenceDatasetName,
|
|
2128
|
-
});
|
|
2129
|
-
params.append("reference_dataset", dataset.id);
|
|
2130
|
-
}
|
|
2131
|
-
if (includeStats !== undefined) {
|
|
2132
|
-
params.append("include_stats", includeStats.toString());
|
|
2133
|
-
}
|
|
2134
|
-
if (datasetVersion !== undefined) {
|
|
2135
|
-
params.append("dataset_version", datasetVersion);
|
|
2136
|
-
}
|
|
2137
|
-
if (referenceFree !== undefined) {
|
|
2138
|
-
params.append("reference_free", referenceFree.toString());
|
|
2139
|
-
}
|
|
2140
|
-
if (metadata !== undefined) {
|
|
2141
|
-
params.append("metadata", JSON.stringify(metadata));
|
|
2142
|
-
}
|
|
2143
|
-
for await (const projects of this._getPaginated("/sessions", params)) {
|
|
2144
|
-
yield* projects;
|
|
2145
|
-
}
|
|
2146
|
-
}
|
|
2147
|
-
async deleteProject({ projectId, projectName, }) {
|
|
2148
|
-
let projectId_;
|
|
2149
|
-
if (projectId === undefined && projectName === undefined) {
|
|
2150
|
-
throw new Error("Must provide projectName or projectId");
|
|
2151
|
-
}
|
|
2152
|
-
else if (projectId !== undefined && projectName !== undefined) {
|
|
2153
|
-
throw new Error("Must provide either projectName or projectId, not both");
|
|
2154
|
-
}
|
|
2155
|
-
else if (projectId === undefined) {
|
|
2156
|
-
projectId_ = (await this.readProject({ projectName })).id;
|
|
2157
|
-
}
|
|
2158
|
-
else {
|
|
2159
|
-
projectId_ = projectId;
|
|
2160
|
-
}
|
|
2161
|
-
assertUuid(projectId_);
|
|
2162
|
-
await this.caller.call(async () => {
|
|
2163
|
-
const res = await this._fetch(`${this.apiUrl}/sessions/${projectId_}`, {
|
|
2164
|
-
method: "DELETE",
|
|
2165
|
-
headers: this.headers,
|
|
2166
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2167
|
-
...this.fetchOptions,
|
|
2168
|
-
});
|
|
2169
|
-
await raiseForStatus(res, `delete session ${projectId_} (${projectName})`, true);
|
|
2170
|
-
return res;
|
|
2171
|
-
});
|
|
2172
|
-
}
|
|
2173
|
-
async uploadCsv({ csvFile, fileName, inputKeys, outputKeys, description, dataType, name, }) {
|
|
2174
|
-
const url = `${this.apiUrl}/datasets/upload`;
|
|
2175
|
-
const formData = new FormData();
|
|
2176
|
-
const csvBlob = new Blob([csvFile], { type: "text/csv" });
|
|
2177
|
-
formData.append("file", csvBlob, fileName);
|
|
2178
|
-
inputKeys.forEach((key) => {
|
|
2179
|
-
formData.append("input_keys", key);
|
|
2180
|
-
});
|
|
2181
|
-
outputKeys.forEach((key) => {
|
|
2182
|
-
formData.append("output_keys", key);
|
|
2183
|
-
});
|
|
2184
|
-
if (description) {
|
|
2185
|
-
formData.append("description", description);
|
|
2186
|
-
}
|
|
2187
|
-
if (dataType) {
|
|
2188
|
-
formData.append("data_type", dataType);
|
|
2189
|
-
}
|
|
2190
|
-
if (name) {
|
|
2191
|
-
formData.append("name", name);
|
|
2192
|
-
}
|
|
2193
|
-
const response = await this.caller.call(async () => {
|
|
2194
|
-
const res = await this._fetch(url, {
|
|
2195
|
-
method: "POST",
|
|
2196
|
-
headers: this.headers,
|
|
2197
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2198
|
-
...this.fetchOptions,
|
|
2199
|
-
body: formData,
|
|
2200
|
-
});
|
|
2201
|
-
await raiseForStatus(res, "upload CSV");
|
|
2202
|
-
return res;
|
|
2203
|
-
});
|
|
2204
|
-
const result = await response.json();
|
|
2205
|
-
return result;
|
|
2206
|
-
}
|
|
2207
|
-
async createDataset(name, { description, dataType, inputsSchema, outputsSchema, metadata, } = {}) {
|
|
2208
|
-
const body = {
|
|
2209
|
-
name,
|
|
2210
|
-
description,
|
|
2211
|
-
extra: metadata ? { metadata } : undefined,
|
|
2212
|
-
};
|
|
2213
|
-
if (dataType) {
|
|
2214
|
-
body.data_type = dataType;
|
|
2215
|
-
}
|
|
2216
|
-
if (inputsSchema) {
|
|
2217
|
-
body.inputs_schema_definition = inputsSchema;
|
|
2218
|
-
}
|
|
2219
|
-
if (outputsSchema) {
|
|
2220
|
-
body.outputs_schema_definition = outputsSchema;
|
|
2221
|
-
}
|
|
2222
|
-
const serializedBody = JSON.stringify(body);
|
|
2223
|
-
const response = await this.caller.call(async () => {
|
|
2224
|
-
const res = await this._fetch(`${this.apiUrl}/datasets`, {
|
|
2225
|
-
method: "POST",
|
|
2226
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2227
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2228
|
-
...this.fetchOptions,
|
|
2229
|
-
body: serializedBody,
|
|
2230
|
-
});
|
|
2231
|
-
await raiseForStatus(res, "create dataset");
|
|
2232
|
-
return res;
|
|
2233
|
-
});
|
|
2234
|
-
const result = await response.json();
|
|
2235
|
-
return result;
|
|
2236
|
-
}
|
|
2237
|
-
async readDataset({ datasetId, datasetName, }) {
|
|
2238
|
-
let path = "/datasets";
|
|
2239
|
-
// limit to 1 result
|
|
2240
|
-
const params = new URLSearchParams({ limit: "1" });
|
|
2241
|
-
if (datasetId && datasetName) {
|
|
2242
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2243
|
-
}
|
|
2244
|
-
else if (datasetId) {
|
|
2245
|
-
assertUuid(datasetId);
|
|
2246
|
-
path += `/${datasetId}`;
|
|
2247
|
-
}
|
|
2248
|
-
else if (datasetName) {
|
|
2249
|
-
params.append("name", datasetName);
|
|
2250
|
-
}
|
|
2251
|
-
else {
|
|
2252
|
-
throw new Error("Must provide datasetName or datasetId");
|
|
2253
|
-
}
|
|
2254
|
-
const response = await this._get(path, params);
|
|
2255
|
-
let result;
|
|
2256
|
-
if (Array.isArray(response)) {
|
|
2257
|
-
if (response.length === 0) {
|
|
2258
|
-
throw new Error(`Dataset[id=${datasetId}, name=${datasetName}] not found`);
|
|
2259
|
-
}
|
|
2260
|
-
result = response[0];
|
|
2261
|
-
}
|
|
2262
|
-
else {
|
|
2263
|
-
result = response;
|
|
2264
|
-
}
|
|
2265
|
-
return result;
|
|
2266
|
-
}
|
|
2267
|
-
async hasDataset({ datasetId, datasetName, }) {
|
|
2268
|
-
try {
|
|
2269
|
-
await this.readDataset({ datasetId, datasetName });
|
|
2270
|
-
return true;
|
|
2271
|
-
}
|
|
2272
|
-
catch (e) {
|
|
2273
|
-
if (
|
|
2274
|
-
// eslint-disable-next-line no-instanceof/no-instanceof
|
|
2275
|
-
e instanceof Error &&
|
|
2276
|
-
e.message.toLocaleLowerCase().includes("not found")) {
|
|
2277
|
-
return false;
|
|
2278
|
-
}
|
|
2279
|
-
throw e;
|
|
2280
|
-
}
|
|
2281
|
-
}
|
|
2282
|
-
async diffDatasetVersions({ datasetId, datasetName, fromVersion, toVersion, }) {
|
|
2283
|
-
let datasetId_ = datasetId;
|
|
2284
|
-
if (datasetId_ === undefined && datasetName === undefined) {
|
|
2285
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2286
|
-
}
|
|
2287
|
-
else if (datasetId_ !== undefined && datasetName !== undefined) {
|
|
2288
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2289
|
-
}
|
|
2290
|
-
else if (datasetId_ === undefined) {
|
|
2291
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2292
|
-
datasetId_ = dataset.id;
|
|
2293
|
-
}
|
|
2294
|
-
const urlParams = new URLSearchParams({
|
|
2295
|
-
from_version: typeof fromVersion === "string"
|
|
2296
|
-
? fromVersion
|
|
2297
|
-
: fromVersion.toISOString(),
|
|
2298
|
-
to_version: typeof toVersion === "string" ? toVersion : toVersion.toISOString(),
|
|
2299
|
-
});
|
|
2300
|
-
const response = await this._get(`/datasets/${datasetId_}/versions/diff`, urlParams);
|
|
2301
|
-
return response;
|
|
2302
|
-
}
|
|
2303
|
-
async readDatasetOpenaiFinetuning({ datasetId, datasetName, }) {
|
|
2304
|
-
const path = "/datasets";
|
|
2305
|
-
if (datasetId !== undefined) {
|
|
2306
|
-
// do nothing
|
|
2307
|
-
}
|
|
2308
|
-
else if (datasetName !== undefined) {
|
|
2309
|
-
datasetId = (await this.readDataset({ datasetName })).id;
|
|
2310
|
-
}
|
|
2311
|
-
else {
|
|
2312
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2313
|
-
}
|
|
2314
|
-
const response = await this._getResponse(`${path}/${datasetId}/openai_ft`);
|
|
2315
|
-
const datasetText = await response.text();
|
|
2316
|
-
const dataset = datasetText
|
|
2317
|
-
.trim()
|
|
2318
|
-
.split("\n")
|
|
2319
|
-
.map((line) => JSON.parse(line));
|
|
2320
|
-
return dataset;
|
|
2321
|
-
}
|
|
2322
|
-
async *listDatasets({ limit = 100, offset = 0, datasetIds, datasetName, datasetNameContains, metadata, } = {}) {
|
|
2323
|
-
const path = "/datasets";
|
|
2324
|
-
const params = new URLSearchParams({
|
|
2325
|
-
limit: limit.toString(),
|
|
2326
|
-
offset: offset.toString(),
|
|
2327
|
-
});
|
|
2328
|
-
if (datasetIds !== undefined) {
|
|
2329
|
-
for (const id_ of datasetIds) {
|
|
2330
|
-
params.append("id", id_);
|
|
2331
|
-
}
|
|
2332
|
-
}
|
|
2333
|
-
if (datasetName !== undefined) {
|
|
2334
|
-
params.append("name", datasetName);
|
|
2335
|
-
}
|
|
2336
|
-
if (datasetNameContains !== undefined) {
|
|
2337
|
-
params.append("name_contains", datasetNameContains);
|
|
2338
|
-
}
|
|
2339
|
-
if (metadata !== undefined) {
|
|
2340
|
-
params.append("metadata", JSON.stringify(metadata));
|
|
2341
|
-
}
|
|
2342
|
-
for await (const datasets of this._getPaginated(path, params)) {
|
|
2343
|
-
yield* datasets;
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
/**
|
|
2347
|
-
* Update a dataset
|
|
2348
|
-
* @param props The dataset details to update
|
|
2349
|
-
* @returns The updated dataset
|
|
2350
|
-
*/
|
|
2351
|
-
async updateDataset(props) {
|
|
2352
|
-
const { datasetId, datasetName, ...update } = props;
|
|
2353
|
-
if (!datasetId && !datasetName) {
|
|
2354
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2355
|
-
}
|
|
2356
|
-
const _datasetId = datasetId ?? (await this.readDataset({ datasetName })).id;
|
|
2357
|
-
assertUuid(_datasetId);
|
|
2358
|
-
const body = JSON.stringify(update);
|
|
2359
|
-
const response = await this.caller.call(async () => {
|
|
2360
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${_datasetId}`, {
|
|
2361
|
-
method: "PATCH",
|
|
2362
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2363
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2364
|
-
...this.fetchOptions,
|
|
2365
|
-
body,
|
|
2366
|
-
});
|
|
2367
|
-
await raiseForStatus(res, "update dataset");
|
|
2368
|
-
return res;
|
|
2369
|
-
});
|
|
2370
|
-
return (await response.json());
|
|
2371
|
-
}
|
|
2372
|
-
/**
|
|
2373
|
-
* Updates a tag on a dataset.
|
|
2374
|
-
*
|
|
2375
|
-
* If the tag is already assigned to a different version of this dataset,
|
|
2376
|
-
* the tag will be moved to the new version. The as_of parameter is used to
|
|
2377
|
-
* determine which version of the dataset to apply the new tags to.
|
|
2378
|
-
*
|
|
2379
|
-
* It must be an exact version of the dataset to succeed. You can
|
|
2380
|
-
* use the "readDatasetVersion" method to find the exact version
|
|
2381
|
-
* to apply the tags to.
|
|
2382
|
-
* @param params.datasetId The ID of the dataset to update. Must be provided if "datasetName" is not provided.
|
|
2383
|
-
* @param params.datasetName The name of the dataset to update. Must be provided if "datasetId" is not provided.
|
|
2384
|
-
* @param params.asOf The timestamp of the dataset to apply the new tags to.
|
|
2385
|
-
* @param params.tag The new tag to apply to the dataset.
|
|
2386
|
-
*/
|
|
2387
|
-
async updateDatasetTag(props) {
|
|
2388
|
-
const { datasetId, datasetName, asOf, tag } = props;
|
|
2389
|
-
if (!datasetId && !datasetName) {
|
|
2390
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2391
|
-
}
|
|
2392
|
-
const _datasetId = datasetId ?? (await this.readDataset({ datasetName })).id;
|
|
2393
|
-
assertUuid(_datasetId);
|
|
2394
|
-
const body = JSON.stringify({
|
|
2395
|
-
as_of: typeof asOf === "string" ? asOf : asOf.toISOString(),
|
|
2396
|
-
tag,
|
|
2397
|
-
});
|
|
2398
|
-
await this.caller.call(async () => {
|
|
2399
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${_datasetId}/tags`, {
|
|
2400
|
-
method: "PUT",
|
|
2401
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2402
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2403
|
-
...this.fetchOptions,
|
|
2404
|
-
body,
|
|
2405
|
-
});
|
|
2406
|
-
await raiseForStatus(res, "update dataset tags", true);
|
|
2407
|
-
return res;
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
async deleteDataset({ datasetId, datasetName, }) {
|
|
2411
|
-
let path = "/datasets";
|
|
2412
|
-
let datasetId_ = datasetId;
|
|
2413
|
-
if (datasetId !== undefined && datasetName !== undefined) {
|
|
2414
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2415
|
-
}
|
|
2416
|
-
else if (datasetName !== undefined) {
|
|
2417
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2418
|
-
datasetId_ = dataset.id;
|
|
2419
|
-
}
|
|
2420
|
-
if (datasetId_ !== undefined) {
|
|
2421
|
-
assertUuid(datasetId_);
|
|
2422
|
-
path += `/${datasetId_}`;
|
|
2423
|
-
}
|
|
2424
|
-
else {
|
|
2425
|
-
throw new Error("Must provide datasetName or datasetId");
|
|
2426
|
-
}
|
|
2427
|
-
await this.caller.call(async () => {
|
|
2428
|
-
const res = await this._fetch(this.apiUrl + path, {
|
|
2429
|
-
method: "DELETE",
|
|
2430
|
-
headers: this.headers,
|
|
2431
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2432
|
-
...this.fetchOptions,
|
|
2433
|
-
});
|
|
2434
|
-
await raiseForStatus(res, `delete ${path}`, true);
|
|
2435
|
-
return res;
|
|
2436
|
-
});
|
|
2437
|
-
}
|
|
2438
|
-
async indexDataset({ datasetId, datasetName, tag, }) {
|
|
2439
|
-
let datasetId_ = datasetId;
|
|
2440
|
-
if (!datasetId_ && !datasetName) {
|
|
2441
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2442
|
-
}
|
|
2443
|
-
else if (datasetId_ && datasetName) {
|
|
2444
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2445
|
-
}
|
|
2446
|
-
else if (!datasetId_) {
|
|
2447
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2448
|
-
datasetId_ = dataset.id;
|
|
2449
|
-
}
|
|
2450
|
-
assertUuid(datasetId_);
|
|
2451
|
-
const data = {
|
|
2452
|
-
tag: tag,
|
|
2453
|
-
};
|
|
2454
|
-
const body = JSON.stringify(data);
|
|
2455
|
-
const response = await this.caller.call(async () => {
|
|
2456
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId_}/index`, {
|
|
2457
|
-
method: "POST",
|
|
2458
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2459
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2460
|
-
...this.fetchOptions,
|
|
2461
|
-
body,
|
|
2462
|
-
});
|
|
2463
|
-
await raiseForStatus(res, "index dataset");
|
|
2464
|
-
return res;
|
|
2465
|
-
});
|
|
2466
|
-
await response.json();
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2469
|
-
* Lets you run a similarity search query on a dataset.
|
|
2470
|
-
*
|
|
2471
|
-
* Requires the dataset to be indexed. Please see the `indexDataset` method to set up indexing.
|
|
2472
|
-
*
|
|
2473
|
-
* @param inputs The input on which to run the similarity search. Must have the
|
|
2474
|
-
* same schema as the dataset.
|
|
2475
|
-
*
|
|
2476
|
-
* @param datasetId The dataset to search for similar examples.
|
|
2477
|
-
*
|
|
2478
|
-
* @param limit The maximum number of examples to return. Will return the top `limit` most
|
|
2479
|
-
* similar examples in order of most similar to least similar. If no similar
|
|
2480
|
-
* examples are found, random examples will be returned.
|
|
2481
|
-
*
|
|
2482
|
-
* @param filter A filter string to apply to the search. Only examples will be returned that
|
|
2483
|
-
* match the filter string. Some examples of filters
|
|
2484
|
-
*
|
|
2485
|
-
* - eq(metadata.mykey, "value")
|
|
2486
|
-
* - and(neq(metadata.my.nested.key, "value"), neq(metadata.mykey, "value"))
|
|
2487
|
-
* - or(eq(metadata.mykey, "value"), eq(metadata.mykey, "othervalue"))
|
|
2488
|
-
*
|
|
2489
|
-
* @returns A list of similar examples.
|
|
2490
|
-
*
|
|
2491
|
-
*
|
|
2492
|
-
* @example
|
|
2493
|
-
* dataset_id = "123e4567-e89b-12d3-a456-426614174000"
|
|
2494
|
-
* inputs = {"text": "How many people live in Berlin?"}
|
|
2495
|
-
* limit = 5
|
|
2496
|
-
* examples = await client.similarExamples(inputs, dataset_id, limit)
|
|
2497
|
-
*/
|
|
2498
|
-
async similarExamples(inputs, datasetId, limit, { filter, } = {}) {
|
|
2499
|
-
const data = {
|
|
2500
|
-
limit: limit,
|
|
2501
|
-
inputs: inputs,
|
|
2502
|
-
};
|
|
2503
|
-
if (filter !== undefined) {
|
|
2504
|
-
data["filter"] = filter;
|
|
2505
|
-
}
|
|
2506
|
-
assertUuid(datasetId);
|
|
2507
|
-
const body = JSON.stringify(data);
|
|
2508
|
-
const response = await this.caller.call(async () => {
|
|
2509
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId}/search`, {
|
|
2510
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2511
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2512
|
-
...this.fetchOptions,
|
|
2513
|
-
method: "POST",
|
|
2514
|
-
body,
|
|
2515
|
-
});
|
|
2516
|
-
await raiseForStatus(res, "fetch similar examples");
|
|
2517
|
-
return res;
|
|
2518
|
-
});
|
|
2519
|
-
const result = await response.json();
|
|
2520
|
-
return result["examples"];
|
|
2521
|
-
}
|
|
2522
|
-
async createExample(inputsOrUpdate, outputs, options) {
|
|
2523
|
-
if (isExampleCreate(inputsOrUpdate)) {
|
|
2524
|
-
if (outputs !== undefined || options !== undefined) {
|
|
2525
|
-
throw new Error("Cannot provide outputs or options when using ExampleCreate object");
|
|
2526
|
-
}
|
|
2527
|
-
}
|
|
2528
|
-
let datasetId_ = outputs ? options?.datasetId : inputsOrUpdate.dataset_id;
|
|
2529
|
-
const datasetName_ = outputs
|
|
2530
|
-
? options?.datasetName
|
|
2531
|
-
: inputsOrUpdate.dataset_name;
|
|
2532
|
-
if (datasetId_ === undefined && datasetName_ === undefined) {
|
|
2533
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2534
|
-
}
|
|
2535
|
-
else if (datasetId_ !== undefined && datasetName_ !== undefined) {
|
|
2536
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2537
|
-
}
|
|
2538
|
-
else if (datasetId_ === undefined) {
|
|
2539
|
-
const dataset = await this.readDataset({ datasetName: datasetName_ });
|
|
2540
|
-
datasetId_ = dataset.id;
|
|
2541
|
-
}
|
|
2542
|
-
const createdAt_ = (outputs ? options?.createdAt : inputsOrUpdate.created_at) || new Date();
|
|
2543
|
-
let data;
|
|
2544
|
-
if (!isExampleCreate(inputsOrUpdate)) {
|
|
2545
|
-
data = {
|
|
2546
|
-
inputs: inputsOrUpdate,
|
|
2547
|
-
outputs,
|
|
2548
|
-
created_at: createdAt_?.toISOString(),
|
|
2549
|
-
id: options?.exampleId,
|
|
2550
|
-
metadata: options?.metadata,
|
|
2551
|
-
split: options?.split,
|
|
2552
|
-
source_run_id: options?.sourceRunId,
|
|
2553
|
-
use_source_run_io: options?.useSourceRunIO,
|
|
2554
|
-
use_source_run_attachments: options?.useSourceRunAttachments,
|
|
2555
|
-
attachments: options?.attachments,
|
|
2556
|
-
};
|
|
2557
|
-
}
|
|
2558
|
-
else {
|
|
2559
|
-
data = inputsOrUpdate;
|
|
2560
|
-
}
|
|
2561
|
-
const response = await this._uploadExamplesMultipart(datasetId_, [data]);
|
|
2562
|
-
const example = await this.readExample(response.example_ids?.[0] ?? uuid.v4());
|
|
2563
|
-
return example;
|
|
2564
|
-
}
|
|
2565
|
-
async createExamples(propsOrUploads) {
|
|
2566
|
-
if (Array.isArray(propsOrUploads)) {
|
|
2567
|
-
if (propsOrUploads.length === 0) {
|
|
2568
|
-
return [];
|
|
2569
|
-
}
|
|
2570
|
-
const uploads = propsOrUploads;
|
|
2571
|
-
let datasetId_ = uploads[0].dataset_id;
|
|
2572
|
-
const datasetName_ = uploads[0].dataset_name;
|
|
2573
|
-
if (datasetId_ === undefined && datasetName_ === undefined) {
|
|
2574
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2575
|
-
}
|
|
2576
|
-
else if (datasetId_ !== undefined && datasetName_ !== undefined) {
|
|
2577
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2578
|
-
}
|
|
2579
|
-
else if (datasetId_ === undefined) {
|
|
2580
|
-
const dataset = await this.readDataset({ datasetName: datasetName_ });
|
|
2581
|
-
datasetId_ = dataset.id;
|
|
2582
|
-
}
|
|
2583
|
-
const response = await this._uploadExamplesMultipart(datasetId_, uploads);
|
|
2584
|
-
const examples = await Promise.all(response.example_ids.map((id) => this.readExample(id)));
|
|
2585
|
-
return examples;
|
|
2586
|
-
}
|
|
2587
|
-
const { inputs, outputs, metadata, splits, sourceRunIds, useSourceRunIOs, useSourceRunAttachments, attachments, exampleIds, datasetId, datasetName, } = propsOrUploads;
|
|
2588
|
-
if (inputs === undefined) {
|
|
2589
|
-
throw new Error("Must provide inputs when using legacy parameters");
|
|
2590
|
-
}
|
|
2591
|
-
let datasetId_ = datasetId;
|
|
2592
|
-
const datasetName_ = datasetName;
|
|
2593
|
-
if (datasetId_ === undefined && datasetName_ === undefined) {
|
|
2594
|
-
throw new Error("Must provide either datasetName or datasetId");
|
|
2595
|
-
}
|
|
2596
|
-
else if (datasetId_ !== undefined && datasetName_ !== undefined) {
|
|
2597
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2598
|
-
}
|
|
2599
|
-
else if (datasetId_ === undefined) {
|
|
2600
|
-
const dataset = await this.readDataset({ datasetName: datasetName_ });
|
|
2601
|
-
datasetId_ = dataset.id;
|
|
2602
|
-
}
|
|
2603
|
-
const formattedExamples = inputs.map((input, idx) => {
|
|
2604
|
-
return {
|
|
2605
|
-
dataset_id: datasetId_,
|
|
2606
|
-
inputs: input,
|
|
2607
|
-
outputs: outputs?.[idx],
|
|
2608
|
-
metadata: metadata?.[idx],
|
|
2609
|
-
split: splits?.[idx],
|
|
2610
|
-
id: exampleIds?.[idx],
|
|
2611
|
-
attachments: attachments?.[idx],
|
|
2612
|
-
source_run_id: sourceRunIds?.[idx],
|
|
2613
|
-
use_source_run_io: useSourceRunIOs?.[idx],
|
|
2614
|
-
use_source_run_attachments: useSourceRunAttachments?.[idx],
|
|
2615
|
-
};
|
|
2616
|
-
});
|
|
2617
|
-
const response = await this._uploadExamplesMultipart(datasetId_, formattedExamples);
|
|
2618
|
-
const examples = await Promise.all(response.example_ids.map((id) => this.readExample(id)));
|
|
2619
|
-
return examples;
|
|
2620
|
-
}
|
|
2621
|
-
async createLLMExample(input, generation, options) {
|
|
2622
|
-
return this.createExample({ input }, { output: generation }, options);
|
|
2623
|
-
}
|
|
2624
|
-
async createChatExample(input, generations, options) {
|
|
2625
|
-
const finalInput = input.map((message) => {
|
|
2626
|
-
if (isLangChainMessage(message)) {
|
|
2627
|
-
return convertLangChainMessageToExample(message);
|
|
2628
|
-
}
|
|
2629
|
-
return message;
|
|
2630
|
-
});
|
|
2631
|
-
const finalOutput = isLangChainMessage(generations)
|
|
2632
|
-
? convertLangChainMessageToExample(generations)
|
|
2633
|
-
: generations;
|
|
2634
|
-
return this.createExample({ input: finalInput }, { output: finalOutput }, options);
|
|
2635
|
-
}
|
|
2636
|
-
async readExample(exampleId) {
|
|
2637
|
-
assertUuid(exampleId);
|
|
2638
|
-
const path = `/examples/${exampleId}`;
|
|
2639
|
-
const rawExample = await this._get(path);
|
|
2640
|
-
const { attachment_urls, ...rest } = rawExample;
|
|
2641
|
-
const example = rest;
|
|
2642
|
-
if (attachment_urls) {
|
|
2643
|
-
example.attachments = Object.entries(attachment_urls).reduce((acc, [key, value]) => {
|
|
2644
|
-
acc[key.slice("attachment.".length)] = {
|
|
2645
|
-
presigned_url: value.presigned_url,
|
|
2646
|
-
mime_type: value.mime_type,
|
|
2647
|
-
};
|
|
2648
|
-
return acc;
|
|
2649
|
-
}, {});
|
|
2650
|
-
}
|
|
2651
|
-
return example;
|
|
2652
|
-
}
|
|
2653
|
-
async *listExamples({ datasetId, datasetName, exampleIds, asOf, splits, inlineS3Urls, metadata, limit, offset, filter, includeAttachments, } = {}) {
|
|
2654
|
-
let datasetId_;
|
|
2655
|
-
if (datasetId !== undefined && datasetName !== undefined) {
|
|
2656
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2657
|
-
}
|
|
2658
|
-
else if (datasetId !== undefined) {
|
|
2659
|
-
datasetId_ = datasetId;
|
|
2660
|
-
}
|
|
2661
|
-
else if (datasetName !== undefined) {
|
|
2662
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2663
|
-
datasetId_ = dataset.id;
|
|
2664
|
-
}
|
|
2665
|
-
else {
|
|
2666
|
-
throw new Error("Must provide a datasetName or datasetId");
|
|
2667
|
-
}
|
|
2668
|
-
const params = new URLSearchParams({ dataset: datasetId_ });
|
|
2669
|
-
const dataset_version = asOf
|
|
2670
|
-
? typeof asOf === "string"
|
|
2671
|
-
? asOf
|
|
2672
|
-
: asOf?.toISOString()
|
|
2673
|
-
: undefined;
|
|
2674
|
-
if (dataset_version) {
|
|
2675
|
-
params.append("as_of", dataset_version);
|
|
2676
|
-
}
|
|
2677
|
-
const inlineS3Urls_ = inlineS3Urls ?? true;
|
|
2678
|
-
params.append("inline_s3_urls", inlineS3Urls_.toString());
|
|
2679
|
-
if (exampleIds !== undefined) {
|
|
2680
|
-
for (const id_ of exampleIds) {
|
|
2681
|
-
params.append("id", id_);
|
|
2682
|
-
}
|
|
2683
|
-
}
|
|
2684
|
-
if (splits !== undefined) {
|
|
2685
|
-
for (const split of splits) {
|
|
2686
|
-
params.append("splits", split);
|
|
2687
|
-
}
|
|
2688
|
-
}
|
|
2689
|
-
if (metadata !== undefined) {
|
|
2690
|
-
const serializedMetadata = JSON.stringify(metadata);
|
|
2691
|
-
params.append("metadata", serializedMetadata);
|
|
2692
|
-
}
|
|
2693
|
-
if (limit !== undefined) {
|
|
2694
|
-
params.append("limit", limit.toString());
|
|
2695
|
-
}
|
|
2696
|
-
if (offset !== undefined) {
|
|
2697
|
-
params.append("offset", offset.toString());
|
|
2698
|
-
}
|
|
2699
|
-
if (filter !== undefined) {
|
|
2700
|
-
params.append("filter", filter);
|
|
2701
|
-
}
|
|
2702
|
-
if (includeAttachments === true) {
|
|
2703
|
-
["attachment_urls", "outputs", "metadata"].forEach((field) => params.append("select", field));
|
|
2704
|
-
}
|
|
2705
|
-
let i = 0;
|
|
2706
|
-
for await (const rawExamples of this._getPaginated("/examples", params)) {
|
|
2707
|
-
for (const rawExample of rawExamples) {
|
|
2708
|
-
const { attachment_urls, ...rest } = rawExample;
|
|
2709
|
-
const example = rest;
|
|
2710
|
-
if (attachment_urls) {
|
|
2711
|
-
example.attachments = Object.entries(attachment_urls).reduce((acc, [key, value]) => {
|
|
2712
|
-
acc[key.slice("attachment.".length)] = {
|
|
2713
|
-
presigned_url: value.presigned_url,
|
|
2714
|
-
mime_type: value.mime_type || undefined,
|
|
2715
|
-
};
|
|
2716
|
-
return acc;
|
|
2717
|
-
}, {});
|
|
2718
|
-
}
|
|
2719
|
-
yield example;
|
|
2720
|
-
i++;
|
|
2721
|
-
}
|
|
2722
|
-
if (limit !== undefined && i >= limit) {
|
|
2723
|
-
break;
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
}
|
|
2727
|
-
async deleteExample(exampleId) {
|
|
2728
|
-
assertUuid(exampleId);
|
|
2729
|
-
const path = `/examples/${exampleId}`;
|
|
2730
|
-
await this.caller.call(async () => {
|
|
2731
|
-
const res = await this._fetch(this.apiUrl + path, {
|
|
2732
|
-
method: "DELETE",
|
|
2733
|
-
headers: this.headers,
|
|
2734
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2735
|
-
...this.fetchOptions,
|
|
2736
|
-
});
|
|
2737
|
-
await raiseForStatus(res, `delete ${path}`, true);
|
|
2738
|
-
return res;
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
/**
|
|
2742
|
-
* Delete multiple examples by ID.
|
|
2743
|
-
* @param exampleIds - The IDs of the examples to delete
|
|
2744
|
-
* @param options - Optional settings for deletion
|
|
2745
|
-
* @param options.hardDelete - If true, permanently delete examples. If false (default), soft delete them.
|
|
2746
|
-
*/
|
|
2747
|
-
async deleteExamples(exampleIds, options) {
|
|
2748
|
-
// Validate all UUIDs
|
|
2749
|
-
exampleIds.forEach((id) => assertUuid(id));
|
|
2750
|
-
if (options?.hardDelete) {
|
|
2751
|
-
// Hard delete uses POST to a different platform endpoint
|
|
2752
|
-
const path = this._getPlatformEndpointPath("datasets/examples/delete");
|
|
2753
|
-
await this.caller.call(async () => {
|
|
2754
|
-
const res = await this._fetch(`${this.apiUrl}${path}`, {
|
|
2755
|
-
method: "POST",
|
|
2756
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2757
|
-
body: JSON.stringify({
|
|
2758
|
-
example_ids: exampleIds,
|
|
2759
|
-
hard_delete: true,
|
|
2760
|
-
}),
|
|
2761
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2762
|
-
...this.fetchOptions,
|
|
2763
|
-
});
|
|
2764
|
-
await raiseForStatus(res, "hard delete examples", true);
|
|
2765
|
-
return res;
|
|
2766
|
-
});
|
|
2767
|
-
}
|
|
2768
|
-
else {
|
|
2769
|
-
// Soft delete uses DELETE with query params
|
|
2770
|
-
const params = new URLSearchParams();
|
|
2771
|
-
exampleIds.forEach((id) => params.append("example_ids", id));
|
|
2772
|
-
await this.caller.call(async () => {
|
|
2773
|
-
const res = await this._fetch(`${this.apiUrl}/examples?${params.toString()}`, {
|
|
2774
|
-
method: "DELETE",
|
|
2775
|
-
headers: this.headers,
|
|
2776
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2777
|
-
...this.fetchOptions,
|
|
2778
|
-
});
|
|
2779
|
-
await raiseForStatus(res, "delete examples", true);
|
|
2780
|
-
return res;
|
|
2781
|
-
});
|
|
2782
|
-
}
|
|
2783
|
-
}
|
|
2784
|
-
async updateExample(exampleIdOrUpdate, update) {
|
|
2785
|
-
let exampleId;
|
|
2786
|
-
if (update) {
|
|
2787
|
-
exampleId = exampleIdOrUpdate;
|
|
2788
|
-
}
|
|
2789
|
-
else {
|
|
2790
|
-
exampleId = exampleIdOrUpdate.id;
|
|
2791
|
-
}
|
|
2792
|
-
assertUuid(exampleId);
|
|
2793
|
-
let updateToUse;
|
|
2794
|
-
if (update) {
|
|
2795
|
-
updateToUse = { id: exampleId, ...update };
|
|
2796
|
-
}
|
|
2797
|
-
else {
|
|
2798
|
-
updateToUse = exampleIdOrUpdate;
|
|
2799
|
-
}
|
|
2800
|
-
let datasetId;
|
|
2801
|
-
if (updateToUse.dataset_id !== undefined) {
|
|
2802
|
-
datasetId = updateToUse.dataset_id;
|
|
2803
|
-
}
|
|
2804
|
-
else {
|
|
2805
|
-
const example = await this.readExample(exampleId);
|
|
2806
|
-
datasetId = example.dataset_id;
|
|
2807
|
-
}
|
|
2808
|
-
return this._updateExamplesMultipart(datasetId, [updateToUse]);
|
|
2809
|
-
}
|
|
2810
|
-
async updateExamples(update) {
|
|
2811
|
-
// We will naively get dataset id from first example and assume it works for all
|
|
2812
|
-
let datasetId;
|
|
2813
|
-
if (update[0].dataset_id === undefined) {
|
|
2814
|
-
const example = await this.readExample(update[0].id);
|
|
2815
|
-
datasetId = example.dataset_id;
|
|
2816
|
-
}
|
|
2817
|
-
else {
|
|
2818
|
-
datasetId = update[0].dataset_id;
|
|
2819
|
-
}
|
|
2820
|
-
return this._updateExamplesMultipart(datasetId, update);
|
|
2821
|
-
}
|
|
2822
|
-
/**
|
|
2823
|
-
* Get dataset version by closest date or exact tag.
|
|
2824
|
-
*
|
|
2825
|
-
* Use this to resolve the nearest version to a given timestamp or for a given tag.
|
|
2826
|
-
*
|
|
2827
|
-
* @param options The options for getting the dataset version
|
|
2828
|
-
* @param options.datasetId The ID of the dataset
|
|
2829
|
-
* @param options.datasetName The name of the dataset
|
|
2830
|
-
* @param options.asOf The timestamp of the dataset to retrieve
|
|
2831
|
-
* @param options.tag The tag of the dataset to retrieve
|
|
2832
|
-
* @returns The dataset version
|
|
2833
|
-
*/
|
|
2834
|
-
async readDatasetVersion({ datasetId, datasetName, asOf, tag, }) {
|
|
2835
|
-
let resolvedDatasetId;
|
|
2836
|
-
if (!datasetId) {
|
|
2837
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2838
|
-
resolvedDatasetId = dataset.id;
|
|
2839
|
-
}
|
|
2840
|
-
else {
|
|
2841
|
-
resolvedDatasetId = datasetId;
|
|
2842
|
-
}
|
|
2843
|
-
assertUuid(resolvedDatasetId);
|
|
2844
|
-
if ((asOf && tag) || (!asOf && !tag)) {
|
|
2845
|
-
throw new Error("Exactly one of asOf and tag must be specified.");
|
|
2846
|
-
}
|
|
2847
|
-
const params = new URLSearchParams();
|
|
2848
|
-
if (asOf !== undefined) {
|
|
2849
|
-
params.append("as_of", typeof asOf === "string" ? asOf : asOf.toISOString());
|
|
2850
|
-
}
|
|
2851
|
-
if (tag !== undefined) {
|
|
2852
|
-
params.append("tag", tag);
|
|
2853
|
-
}
|
|
2854
|
-
const response = await this.caller.call(async () => {
|
|
2855
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${resolvedDatasetId}/version?${params.toString()}`, {
|
|
2856
|
-
method: "GET",
|
|
2857
|
-
headers: { ...this.headers },
|
|
2858
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2859
|
-
...this.fetchOptions,
|
|
2860
|
-
});
|
|
2861
|
-
await raiseForStatus(res, "read dataset version");
|
|
2862
|
-
return res;
|
|
2863
|
-
});
|
|
2864
|
-
return await response.json();
|
|
2865
|
-
}
|
|
2866
|
-
async listDatasetSplits({ datasetId, datasetName, asOf, }) {
|
|
2867
|
-
let datasetId_;
|
|
2868
|
-
if (datasetId === undefined && datasetName === undefined) {
|
|
2869
|
-
throw new Error("Must provide dataset name or ID");
|
|
2870
|
-
}
|
|
2871
|
-
else if (datasetId !== undefined && datasetName !== undefined) {
|
|
2872
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2873
|
-
}
|
|
2874
|
-
else if (datasetId === undefined) {
|
|
2875
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2876
|
-
datasetId_ = dataset.id;
|
|
2877
|
-
}
|
|
2878
|
-
else {
|
|
2879
|
-
datasetId_ = datasetId;
|
|
2880
|
-
}
|
|
2881
|
-
assertUuid(datasetId_);
|
|
2882
|
-
const params = new URLSearchParams();
|
|
2883
|
-
const dataset_version = asOf
|
|
2884
|
-
? typeof asOf === "string"
|
|
2885
|
-
? asOf
|
|
2886
|
-
: asOf?.toISOString()
|
|
2887
|
-
: undefined;
|
|
2888
|
-
if (dataset_version) {
|
|
2889
|
-
params.append("as_of", dataset_version);
|
|
2890
|
-
}
|
|
2891
|
-
const response = await this._get(`/datasets/${datasetId_}/splits`, params);
|
|
2892
|
-
return response;
|
|
2893
|
-
}
|
|
2894
|
-
async updateDatasetSplits({ datasetId, datasetName, splitName, exampleIds, remove = false, }) {
|
|
2895
|
-
let datasetId_;
|
|
2896
|
-
if (datasetId === undefined && datasetName === undefined) {
|
|
2897
|
-
throw new Error("Must provide dataset name or ID");
|
|
2898
|
-
}
|
|
2899
|
-
else if (datasetId !== undefined && datasetName !== undefined) {
|
|
2900
|
-
throw new Error("Must provide either datasetName or datasetId, not both");
|
|
2901
|
-
}
|
|
2902
|
-
else if (datasetId === undefined) {
|
|
2903
|
-
const dataset = await this.readDataset({ datasetName });
|
|
2904
|
-
datasetId_ = dataset.id;
|
|
2905
|
-
}
|
|
2906
|
-
else {
|
|
2907
|
-
datasetId_ = datasetId;
|
|
2908
|
-
}
|
|
2909
|
-
assertUuid(datasetId_);
|
|
2910
|
-
const data = {
|
|
2911
|
-
split_name: splitName,
|
|
2912
|
-
examples: exampleIds.map((id) => {
|
|
2913
|
-
assertUuid(id);
|
|
2914
|
-
return id;
|
|
2915
|
-
}),
|
|
2916
|
-
remove,
|
|
2917
|
-
};
|
|
2918
|
-
const body = JSON.stringify(data);
|
|
2919
|
-
await this.caller.call(async () => {
|
|
2920
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/${datasetId_}/splits`, {
|
|
2921
|
-
method: "PUT",
|
|
2922
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2923
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2924
|
-
...this.fetchOptions,
|
|
2925
|
-
body,
|
|
2926
|
-
});
|
|
2927
|
-
await raiseForStatus(res, "update dataset splits", true);
|
|
2928
|
-
return res;
|
|
2929
|
-
});
|
|
2930
|
-
}
|
|
2931
|
-
async createFeedback(runId, key, { score, value, correction, comment, sourceInfo, feedbackSourceType = "api", sourceRunId, feedbackId, feedbackConfig, projectId, comparativeExperimentId, sessionId, startTime, }) {
|
|
2932
|
-
if (!runId && !projectId) {
|
|
2933
|
-
throw new Error("One of runId or projectId must be provided");
|
|
2934
|
-
}
|
|
2935
|
-
if (runId && projectId) {
|
|
2936
|
-
throw new Error("Only one of runId or projectId can be provided");
|
|
2937
|
-
}
|
|
2938
|
-
const feedback_source = {
|
|
2939
|
-
type: feedbackSourceType ?? "api",
|
|
2940
|
-
metadata: sourceInfo ?? {},
|
|
2941
|
-
};
|
|
2942
|
-
if (sourceRunId !== undefined &&
|
|
2943
|
-
feedback_source?.metadata !== undefined &&
|
|
2944
|
-
!feedback_source.metadata["__run"]) {
|
|
2945
|
-
feedback_source.metadata["__run"] = { run_id: sourceRunId };
|
|
2946
|
-
}
|
|
2947
|
-
if (feedback_source?.metadata !== undefined &&
|
|
2948
|
-
feedback_source.metadata["__run"]?.run_id !== undefined) {
|
|
2949
|
-
assertUuid(feedback_source.metadata["__run"].run_id);
|
|
2950
|
-
}
|
|
2951
|
-
const feedback = {
|
|
2952
|
-
id: feedbackId ?? uuid.v4(),
|
|
2953
|
-
run_id: runId,
|
|
2954
|
-
key,
|
|
2955
|
-
score: _formatFeedbackScore(score),
|
|
2956
|
-
value,
|
|
2957
|
-
correction,
|
|
2958
|
-
comment,
|
|
2959
|
-
feedback_source: feedback_source,
|
|
2960
|
-
comparative_experiment_id: comparativeExperimentId,
|
|
2961
|
-
feedbackConfig,
|
|
2962
|
-
session_id: sessionId ?? projectId,
|
|
2963
|
-
start_time: startTime,
|
|
2964
|
-
};
|
|
2965
|
-
const body = JSON.stringify(feedback);
|
|
2966
|
-
const url = `${this.apiUrl}/feedback`;
|
|
2967
|
-
await this.caller.call(async () => {
|
|
2968
|
-
const res = await this._fetch(url, {
|
|
2969
|
-
method: "POST",
|
|
2970
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
2971
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
2972
|
-
...this.fetchOptions,
|
|
2973
|
-
body,
|
|
2974
|
-
});
|
|
2975
|
-
await raiseForStatus(res, "create feedback", true);
|
|
2976
|
-
return res;
|
|
2977
|
-
});
|
|
2978
|
-
return feedback;
|
|
2979
|
-
}
|
|
2980
|
-
async updateFeedback(feedbackId, { score, value, correction, comment, }) {
|
|
2981
|
-
const feedbackUpdate = {};
|
|
2982
|
-
if (score !== undefined && score !== null) {
|
|
2983
|
-
feedbackUpdate["score"] = _formatFeedbackScore(score);
|
|
2984
|
-
}
|
|
2985
|
-
if (value !== undefined && value !== null) {
|
|
2986
|
-
feedbackUpdate["value"] = value;
|
|
2987
|
-
}
|
|
2988
|
-
if (correction !== undefined && correction !== null) {
|
|
2989
|
-
feedbackUpdate["correction"] = correction;
|
|
2990
|
-
}
|
|
2991
|
-
if (comment !== undefined && comment !== null) {
|
|
2992
|
-
feedbackUpdate["comment"] = comment;
|
|
2993
|
-
}
|
|
2994
|
-
assertUuid(feedbackId);
|
|
2995
|
-
const body = JSON.stringify(feedbackUpdate);
|
|
2996
|
-
await this.caller.call(async () => {
|
|
2997
|
-
const res = await this._fetch(`${this.apiUrl}/feedback/${feedbackId}`, {
|
|
2998
|
-
method: "PATCH",
|
|
2999
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3000
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3001
|
-
...this.fetchOptions,
|
|
3002
|
-
body,
|
|
3003
|
-
});
|
|
3004
|
-
await raiseForStatus(res, "update feedback", true);
|
|
3005
|
-
return res;
|
|
3006
|
-
});
|
|
3007
|
-
}
|
|
3008
|
-
async readFeedback(feedbackId) {
|
|
3009
|
-
assertUuid(feedbackId);
|
|
3010
|
-
const path = `/feedback/${feedbackId}`;
|
|
3011
|
-
const response = await this._get(path);
|
|
3012
|
-
return response;
|
|
3013
|
-
}
|
|
3014
|
-
async deleteFeedback(feedbackId) {
|
|
3015
|
-
assertUuid(feedbackId);
|
|
3016
|
-
const path = `/feedback/${feedbackId}`;
|
|
3017
|
-
await this.caller.call(async () => {
|
|
3018
|
-
const res = await this._fetch(this.apiUrl + path, {
|
|
3019
|
-
method: "DELETE",
|
|
3020
|
-
headers: this.headers,
|
|
3021
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3022
|
-
...this.fetchOptions,
|
|
3023
|
-
});
|
|
3024
|
-
await raiseForStatus(res, `delete ${path}`, true);
|
|
3025
|
-
return res;
|
|
3026
|
-
});
|
|
3027
|
-
}
|
|
3028
|
-
async *listFeedback({ runIds, feedbackKeys, feedbackSourceTypes, } = {}) {
|
|
3029
|
-
const queryParams = new URLSearchParams();
|
|
3030
|
-
if (runIds) {
|
|
3031
|
-
for (const runId of runIds) {
|
|
3032
|
-
assertUuid(runId);
|
|
3033
|
-
queryParams.append("run", runId);
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
if (feedbackKeys) {
|
|
3037
|
-
for (const key of feedbackKeys) {
|
|
3038
|
-
queryParams.append("key", key);
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
3041
|
-
if (feedbackSourceTypes) {
|
|
3042
|
-
for (const type of feedbackSourceTypes) {
|
|
3043
|
-
queryParams.append("source", type);
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
for await (const feedbacks of this._getPaginated("/feedback", queryParams)) {
|
|
3047
|
-
yield* feedbacks;
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
/**
|
|
3051
|
-
* Creates a presigned feedback token and URL.
|
|
3052
|
-
*
|
|
3053
|
-
* The token can be used to authorize feedback metrics without
|
|
3054
|
-
* needing an API key. This is useful for giving browser-based
|
|
3055
|
-
* applications the ability to submit feedback without needing
|
|
3056
|
-
* to expose an API key.
|
|
3057
|
-
*
|
|
3058
|
-
* @param runId The ID of the run.
|
|
3059
|
-
* @param feedbackKey The feedback key.
|
|
3060
|
-
* @param options Additional options for the token.
|
|
3061
|
-
* @param options.expiration The expiration time for the token.
|
|
3062
|
-
*
|
|
3063
|
-
* @returns A promise that resolves to a FeedbackIngestToken.
|
|
3064
|
-
*/
|
|
3065
|
-
async createPresignedFeedbackToken(runId, feedbackKey, { expiration, feedbackConfig, } = {}) {
|
|
3066
|
-
const body = {
|
|
3067
|
-
run_id: runId,
|
|
3068
|
-
feedback_key: feedbackKey,
|
|
3069
|
-
feedback_config: feedbackConfig,
|
|
3070
|
-
};
|
|
3071
|
-
if (expiration) {
|
|
3072
|
-
if (typeof expiration === "string") {
|
|
3073
|
-
body["expires_at"] = expiration;
|
|
3074
|
-
}
|
|
3075
|
-
else if (expiration?.hours || expiration?.minutes || expiration?.days) {
|
|
3076
|
-
body["expires_in"] = expiration;
|
|
3077
|
-
}
|
|
3078
|
-
}
|
|
3079
|
-
else {
|
|
3080
|
-
body["expires_in"] = {
|
|
3081
|
-
hours: 3,
|
|
3082
|
-
};
|
|
3083
|
-
}
|
|
3084
|
-
const serializedBody = JSON.stringify(body);
|
|
3085
|
-
const response = await this.caller.call(async () => {
|
|
3086
|
-
const res = await this._fetch(`${this.apiUrl}/feedback/tokens`, {
|
|
3087
|
-
method: "POST",
|
|
3088
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3089
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3090
|
-
...this.fetchOptions,
|
|
3091
|
-
body: serializedBody,
|
|
3092
|
-
});
|
|
3093
|
-
await raiseForStatus(res, "create presigned feedback token");
|
|
3094
|
-
return res;
|
|
3095
|
-
});
|
|
3096
|
-
return await response.json();
|
|
3097
|
-
}
|
|
3098
|
-
async createComparativeExperiment({ name, experimentIds, referenceDatasetId, createdAt, description, metadata, id, }) {
|
|
3099
|
-
if (experimentIds.length === 0) {
|
|
3100
|
-
throw new Error("At least one experiment is required");
|
|
3101
|
-
}
|
|
3102
|
-
if (!referenceDatasetId) {
|
|
3103
|
-
referenceDatasetId = (await this.readProject({
|
|
3104
|
-
projectId: experimentIds[0],
|
|
3105
|
-
})).reference_dataset_id;
|
|
3106
|
-
}
|
|
3107
|
-
if (!referenceDatasetId == null) {
|
|
3108
|
-
throw new Error("A reference dataset is required");
|
|
3109
|
-
}
|
|
3110
|
-
const body = {
|
|
3111
|
-
id,
|
|
3112
|
-
name,
|
|
3113
|
-
experiment_ids: experimentIds,
|
|
3114
|
-
reference_dataset_id: referenceDatasetId,
|
|
3115
|
-
description,
|
|
3116
|
-
created_at: (createdAt ?? new Date())?.toISOString(),
|
|
3117
|
-
extra: {},
|
|
3118
|
-
};
|
|
3119
|
-
if (metadata)
|
|
3120
|
-
body.extra["metadata"] = metadata;
|
|
3121
|
-
const serializedBody = JSON.stringify(body);
|
|
3122
|
-
const response = await this.caller.call(async () => {
|
|
3123
|
-
const res = await this._fetch(`${this.apiUrl}/datasets/comparative`, {
|
|
3124
|
-
method: "POST",
|
|
3125
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3126
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3127
|
-
...this.fetchOptions,
|
|
3128
|
-
body: serializedBody,
|
|
3129
|
-
});
|
|
3130
|
-
await raiseForStatus(res, "create comparative experiment");
|
|
3131
|
-
return res;
|
|
3132
|
-
});
|
|
3133
|
-
return response.json();
|
|
3134
|
-
}
|
|
3135
|
-
/**
|
|
3136
|
-
* Retrieves a list of presigned feedback tokens for a given run ID.
|
|
3137
|
-
* @param runId The ID of the run.
|
|
3138
|
-
* @returns An async iterable of FeedbackIngestToken objects.
|
|
3139
|
-
*/
|
|
3140
|
-
async *listPresignedFeedbackTokens(runId) {
|
|
3141
|
-
assertUuid(runId);
|
|
3142
|
-
const params = new URLSearchParams({ run_id: runId });
|
|
3143
|
-
for await (const tokens of this._getPaginated("/feedback/tokens", params)) {
|
|
3144
|
-
yield* tokens;
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
_selectEvalResults(results) {
|
|
3148
|
-
let results_;
|
|
3149
|
-
if ("results" in results) {
|
|
3150
|
-
results_ = results.results;
|
|
3151
|
-
}
|
|
3152
|
-
else if (Array.isArray(results)) {
|
|
3153
|
-
results_ = results;
|
|
3154
|
-
}
|
|
3155
|
-
else {
|
|
3156
|
-
results_ = [results];
|
|
3157
|
-
}
|
|
3158
|
-
return results_;
|
|
3159
|
-
}
|
|
3160
|
-
async _logEvaluationFeedback(evaluatorResponse, run, sourceInfo) {
|
|
3161
|
-
const evalResults = this._selectEvalResults(evaluatorResponse);
|
|
3162
|
-
const feedbacks = [];
|
|
3163
|
-
for (const res of evalResults) {
|
|
3164
|
-
let sourceInfo_ = sourceInfo || {};
|
|
3165
|
-
if (res.evaluatorInfo) {
|
|
3166
|
-
sourceInfo_ = { ...res.evaluatorInfo, ...sourceInfo_ };
|
|
3167
|
-
}
|
|
3168
|
-
let runId_ = null;
|
|
3169
|
-
if (res.targetRunId) {
|
|
3170
|
-
runId_ = res.targetRunId;
|
|
3171
|
-
}
|
|
3172
|
-
else if (run) {
|
|
3173
|
-
runId_ = run.id;
|
|
3174
|
-
}
|
|
3175
|
-
feedbacks.push(await this.createFeedback(runId_, res.key, {
|
|
3176
|
-
score: res.score,
|
|
3177
|
-
value: res.value,
|
|
3178
|
-
comment: res.comment,
|
|
3179
|
-
correction: res.correction,
|
|
3180
|
-
sourceInfo: sourceInfo_,
|
|
3181
|
-
sourceRunId: res.sourceRunId,
|
|
3182
|
-
feedbackConfig: res.feedbackConfig,
|
|
3183
|
-
feedbackSourceType: "model",
|
|
3184
|
-
sessionId: run?.session_id,
|
|
3185
|
-
startTime: run?.start_time,
|
|
3186
|
-
}));
|
|
3187
|
-
}
|
|
3188
|
-
return [evalResults, feedbacks];
|
|
3189
|
-
}
|
|
3190
|
-
async logEvaluationFeedback(evaluatorResponse, run, sourceInfo) {
|
|
3191
|
-
const [results] = await this._logEvaluationFeedback(evaluatorResponse, run, sourceInfo);
|
|
3192
|
-
return results;
|
|
3193
|
-
}
|
|
3194
|
-
/**
|
|
3195
|
-
* API for managing feedback configs
|
|
3196
|
-
*/
|
|
3197
|
-
/**
|
|
3198
|
-
* Create a feedback configuration on the LangSmith API.
|
|
3199
|
-
*
|
|
3200
|
-
* This upserts: if an identical config already exists, it returns it.
|
|
3201
|
-
* If a conflicting config exists for the same key, a 400 error is raised.
|
|
3202
|
-
*
|
|
3203
|
-
* @param options - The options for creating a feedback config
|
|
3204
|
-
* @param options.feedbackKey - The unique key for this feedback config
|
|
3205
|
-
* @param options.feedbackConfig - The config specifying type, bounds, and categories
|
|
3206
|
-
* @param options.isLowerScoreBetter - Whether a lower score is better
|
|
3207
|
-
* @returns The created FeedbackConfigSchema object
|
|
3208
|
-
*/
|
|
3209
|
-
async createFeedbackConfig(options) {
|
|
3210
|
-
const { feedbackKey, feedbackConfig, isLowerScoreBetter = false } = options;
|
|
3211
|
-
const body = {
|
|
3212
|
-
feedback_key: feedbackKey,
|
|
3213
|
-
feedback_config: feedbackConfig,
|
|
3214
|
-
is_lower_score_better: isLowerScoreBetter,
|
|
3215
|
-
};
|
|
3216
|
-
const response = await this.caller.call(async () => {
|
|
3217
|
-
const res = await this._fetch(`${this.apiUrl}/feedback-configs`, {
|
|
3218
|
-
method: "POST",
|
|
3219
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3220
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3221
|
-
...this.fetchOptions,
|
|
3222
|
-
body: JSON.stringify(body),
|
|
3223
|
-
});
|
|
3224
|
-
await raiseForStatus(res, "create feedback config");
|
|
3225
|
-
return res;
|
|
3226
|
-
});
|
|
3227
|
-
return response.json();
|
|
3228
|
-
}
|
|
3229
|
-
/**
|
|
3230
|
-
* List feedback configurations on the LangSmith API.
|
|
3231
|
-
* @param options - The options for listing feedback configs
|
|
3232
|
-
* @param options.feedbackKeys - Filter by specific feedback keys
|
|
3233
|
-
* @param options.nameContains - Filter by name substring
|
|
3234
|
-
* @param options.limit - The maximum number of configs to return
|
|
3235
|
-
* @returns An async iterator of FeedbackConfigSchema objects
|
|
3236
|
-
*/
|
|
3237
|
-
async *listFeedbackConfigs(options = {}) {
|
|
3238
|
-
const { feedbackKeys, nameContains, limit } = options;
|
|
3239
|
-
const params = new URLSearchParams();
|
|
3240
|
-
if (feedbackKeys) {
|
|
3241
|
-
feedbackKeys.forEach((key) => {
|
|
3242
|
-
params.append("key", key);
|
|
3243
|
-
});
|
|
3244
|
-
}
|
|
3245
|
-
if (nameContains)
|
|
3246
|
-
params.append("name_contains", nameContains);
|
|
3247
|
-
params.append("limit", (limit !== undefined ? Math.min(limit, 100) : 100).toString());
|
|
3248
|
-
let count = 0;
|
|
3249
|
-
for await (const configs of this._getPaginated("/feedback-configs", params)) {
|
|
3250
|
-
yield* configs;
|
|
3251
|
-
count += configs.length;
|
|
3252
|
-
if (limit !== undefined && count >= limit)
|
|
3253
|
-
break;
|
|
3254
|
-
}
|
|
3255
|
-
}
|
|
3256
|
-
/**
|
|
3257
|
-
* Update a feedback configuration on the LangSmith API.
|
|
3258
|
-
* @param feedbackKey - The key of the feedback config to update
|
|
3259
|
-
* @param options - The options for updating the feedback config
|
|
3260
|
-
* @param options.feedbackConfig - The new feedback config
|
|
3261
|
-
* @param options.isLowerScoreBetter - Whether a lower score is better
|
|
3262
|
-
* @returns The updated FeedbackConfigSchema object
|
|
3263
|
-
*/
|
|
3264
|
-
async updateFeedbackConfig(feedbackKey, options = {}) {
|
|
3265
|
-
const { feedbackConfig, isLowerScoreBetter } = options;
|
|
3266
|
-
const body = { feedback_key: feedbackKey };
|
|
3267
|
-
if (feedbackConfig !== undefined) {
|
|
3268
|
-
body.feedback_config = feedbackConfig;
|
|
3269
|
-
}
|
|
3270
|
-
if (isLowerScoreBetter !== undefined) {
|
|
3271
|
-
body.is_lower_score_better = isLowerScoreBetter;
|
|
3272
|
-
}
|
|
3273
|
-
const response = await this.caller.call(async () => {
|
|
3274
|
-
const res = await this._fetch(`${this.apiUrl}/feedback-configs`, {
|
|
3275
|
-
method: "PATCH",
|
|
3276
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3277
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3278
|
-
...this.fetchOptions,
|
|
3279
|
-
body: JSON.stringify(body),
|
|
3280
|
-
});
|
|
3281
|
-
await raiseForStatus(res, "update feedback config");
|
|
3282
|
-
return res;
|
|
3283
|
-
});
|
|
3284
|
-
return response.json();
|
|
3285
|
-
}
|
|
3286
|
-
/**
|
|
3287
|
-
* Delete a feedback configuration on the LangSmith API.
|
|
3288
|
-
* @param feedbackKey - The key of the feedback config to delete
|
|
3289
|
-
*/
|
|
3290
|
-
async deleteFeedbackConfig(feedbackKey) {
|
|
3291
|
-
const params = new URLSearchParams({ feedback_key: feedbackKey });
|
|
3292
|
-
await this.caller.call(async () => {
|
|
3293
|
-
const res = await this._fetch(`${this.apiUrl}/feedback-configs?${params}`, {
|
|
3294
|
-
method: "DELETE",
|
|
3295
|
-
headers: this.headers,
|
|
3296
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3297
|
-
...this.fetchOptions,
|
|
3298
|
-
});
|
|
3299
|
-
await raiseForStatus(res, "delete feedback config", true);
|
|
3300
|
-
return res;
|
|
3301
|
-
});
|
|
3302
|
-
}
|
|
3303
|
-
/**
|
|
3304
|
-
* API for managing annotation queues
|
|
3305
|
-
*/
|
|
3306
|
-
/**
|
|
3307
|
-
* List the annotation queues on the LangSmith API.
|
|
3308
|
-
* @param options - The options for listing annotation queues
|
|
3309
|
-
* @param options.queueIds - The IDs of the queues to filter by
|
|
3310
|
-
* @param options.name - The name of the queue to filter by
|
|
3311
|
-
* @param options.nameContains - The substring that the queue name should contain
|
|
3312
|
-
* @param options.limit - The maximum number of queues to return
|
|
3313
|
-
* @returns An iterator of AnnotationQueue objects
|
|
3314
|
-
*/
|
|
3315
|
-
async *listAnnotationQueues(options = {}) {
|
|
3316
|
-
const { queueIds, name, nameContains, limit } = options;
|
|
3317
|
-
const params = new URLSearchParams();
|
|
3318
|
-
if (queueIds) {
|
|
3319
|
-
queueIds.forEach((id, i) => {
|
|
3320
|
-
assertUuid(id, `queueIds[${i}]`);
|
|
3321
|
-
params.append("ids", id);
|
|
3322
|
-
});
|
|
3323
|
-
}
|
|
3324
|
-
if (name)
|
|
3325
|
-
params.append("name", name);
|
|
3326
|
-
if (nameContains)
|
|
3327
|
-
params.append("name_contains", nameContains);
|
|
3328
|
-
params.append("limit", (limit !== undefined ? Math.min(limit, 100) : 100).toString());
|
|
3329
|
-
let count = 0;
|
|
3330
|
-
for await (const queues of this._getPaginated("/annotation-queues", params)) {
|
|
3331
|
-
yield* queues;
|
|
3332
|
-
count++;
|
|
3333
|
-
if (limit !== undefined && count >= limit)
|
|
3334
|
-
break;
|
|
3335
|
-
}
|
|
3336
|
-
}
|
|
3337
|
-
/**
|
|
3338
|
-
* Create an annotation queue on the LangSmith API.
|
|
3339
|
-
* @param options - The options for creating an annotation queue
|
|
3340
|
-
* @param options.name - The name of the annotation queue
|
|
3341
|
-
* @param options.description - The description of the annotation queue
|
|
3342
|
-
* @param options.queueId - The ID of the annotation queue
|
|
3343
|
-
* @returns The created AnnotationQueue object
|
|
3344
|
-
*/
|
|
3345
|
-
async createAnnotationQueue(options) {
|
|
3346
|
-
const { name, description, queueId, rubricInstructions, rubricItems } = options;
|
|
3347
|
-
const body = {
|
|
3348
|
-
name,
|
|
3349
|
-
description,
|
|
3350
|
-
id: queueId || uuid.v4(),
|
|
3351
|
-
rubric_instructions: rubricInstructions,
|
|
3352
|
-
rubric_items: rubricItems,
|
|
3353
|
-
};
|
|
3354
|
-
const serializedBody = JSON.stringify(Object.fromEntries(Object.entries(body).filter(([_, v]) => v !== undefined)));
|
|
3355
|
-
const response = await this.caller.call(async () => {
|
|
3356
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues`, {
|
|
3357
|
-
method: "POST",
|
|
3358
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3359
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3360
|
-
...this.fetchOptions,
|
|
3361
|
-
body: serializedBody,
|
|
3362
|
-
});
|
|
3363
|
-
await raiseForStatus(res, "create annotation queue");
|
|
3364
|
-
return res;
|
|
3365
|
-
});
|
|
3366
|
-
return response.json();
|
|
3367
|
-
}
|
|
3368
|
-
/**
|
|
3369
|
-
* Read an annotation queue with the specified queue ID.
|
|
3370
|
-
* @param queueId - The ID of the annotation queue to read
|
|
3371
|
-
* @returns The AnnotationQueueWithDetails object
|
|
3372
|
-
*/
|
|
3373
|
-
async readAnnotationQueue(queueId) {
|
|
3374
|
-
const response = await this.caller.call(async () => {
|
|
3375
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}`, {
|
|
3376
|
-
method: "GET",
|
|
3377
|
-
headers: this.headers,
|
|
3378
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3379
|
-
...this.fetchOptions,
|
|
3380
|
-
});
|
|
3381
|
-
await raiseForStatus(res, "read annotation queue");
|
|
3382
|
-
return res;
|
|
3383
|
-
});
|
|
3384
|
-
return response.json();
|
|
3385
|
-
}
|
|
3386
|
-
/**
|
|
3387
|
-
* Update an annotation queue with the specified queue ID.
|
|
3388
|
-
* @param queueId - The ID of the annotation queue to update
|
|
3389
|
-
* @param options - The options for updating the annotation queue
|
|
3390
|
-
* @param options.name - The new name for the annotation queue
|
|
3391
|
-
* @param options.description - The new description for the annotation queue
|
|
3392
|
-
*/
|
|
3393
|
-
async updateAnnotationQueue(queueId, options) {
|
|
3394
|
-
const { name, description, rubricInstructions, rubricItems } = options;
|
|
3395
|
-
const bodyObj = {};
|
|
3396
|
-
if (name !== undefined)
|
|
3397
|
-
bodyObj.name = name;
|
|
3398
|
-
if (description !== undefined)
|
|
3399
|
-
bodyObj.description = description;
|
|
3400
|
-
if (rubricInstructions !== undefined)
|
|
3401
|
-
bodyObj.rubric_instructions = rubricInstructions;
|
|
3402
|
-
if (rubricItems !== undefined)
|
|
3403
|
-
bodyObj.rubric_items = rubricItems;
|
|
3404
|
-
const body = JSON.stringify(bodyObj);
|
|
3405
|
-
await this.caller.call(async () => {
|
|
3406
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}`, {
|
|
3407
|
-
method: "PATCH",
|
|
3408
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3409
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3410
|
-
...this.fetchOptions,
|
|
3411
|
-
body,
|
|
3412
|
-
});
|
|
3413
|
-
await raiseForStatus(res, "update annotation queue", true);
|
|
3414
|
-
return res;
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
/**
|
|
3418
|
-
* Delete an annotation queue with the specified queue ID.
|
|
3419
|
-
* @param queueId - The ID of the annotation queue to delete
|
|
3420
|
-
*/
|
|
3421
|
-
async deleteAnnotationQueue(queueId) {
|
|
3422
|
-
await this.caller.call(async () => {
|
|
3423
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}`, {
|
|
3424
|
-
method: "DELETE",
|
|
3425
|
-
headers: { ...this.headers, Accept: "application/json" },
|
|
3426
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3427
|
-
...this.fetchOptions,
|
|
3428
|
-
});
|
|
3429
|
-
await raiseForStatus(res, "delete annotation queue", true);
|
|
3430
|
-
return res;
|
|
3431
|
-
});
|
|
3432
|
-
}
|
|
3433
|
-
/**
|
|
3434
|
-
* Add runs to an annotation queue with the specified queue ID.
|
|
3435
|
-
* @param queueId - The ID of the annotation queue
|
|
3436
|
-
* @param runIds - The IDs of the runs to be added to the annotation queue
|
|
3437
|
-
*/
|
|
3438
|
-
async addRunsToAnnotationQueue(queueId, runIds) {
|
|
3439
|
-
const body = JSON.stringify(runIds.map((id, i) => assertUuid(id, `runIds[${i}]`).toString()));
|
|
3440
|
-
await this.caller.call(async () => {
|
|
3441
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}/runs`, {
|
|
3442
|
-
method: "POST",
|
|
3443
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3444
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3445
|
-
...this.fetchOptions,
|
|
3446
|
-
body,
|
|
3447
|
-
});
|
|
3448
|
-
await raiseForStatus(res, "add runs to annotation queue", true);
|
|
3449
|
-
return res;
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
/**
|
|
3453
|
-
* Get a run from an annotation queue at the specified index.
|
|
3454
|
-
* @param queueId - The ID of the annotation queue
|
|
3455
|
-
* @param index - The index of the run to retrieve
|
|
3456
|
-
* @returns A Promise that resolves to a RunWithAnnotationQueueInfo object
|
|
3457
|
-
* @throws {Error} If the run is not found at the given index or for other API-related errors
|
|
3458
|
-
*/
|
|
3459
|
-
async getRunFromAnnotationQueue(queueId, index) {
|
|
3460
|
-
const baseUrl = `/annotation-queues/${assertUuid(queueId, "queueId")}/run`;
|
|
3461
|
-
const response = await this.caller.call(async () => {
|
|
3462
|
-
const res = await this._fetch(`${this.apiUrl}${baseUrl}/${index}`, {
|
|
3463
|
-
method: "GET",
|
|
3464
|
-
headers: this.headers,
|
|
3465
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3466
|
-
...this.fetchOptions,
|
|
3467
|
-
});
|
|
3468
|
-
await raiseForStatus(res, "get run from annotation queue");
|
|
3469
|
-
return res;
|
|
3470
|
-
});
|
|
3471
|
-
return response.json();
|
|
3472
|
-
}
|
|
3473
|
-
/**
|
|
3474
|
-
* Delete a run from an an annotation queue.
|
|
3475
|
-
* @param queueId - The ID of the annotation queue to delete the run from
|
|
3476
|
-
* @param queueRunId - The ID of the run to delete from the annotation queue
|
|
3477
|
-
*/
|
|
3478
|
-
async deleteRunFromAnnotationQueue(queueId, queueRunId) {
|
|
3479
|
-
await this.caller.call(async () => {
|
|
3480
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}/runs/${assertUuid(queueRunId, "queueRunId")}`, {
|
|
3481
|
-
method: "DELETE",
|
|
3482
|
-
headers: { ...this.headers, Accept: "application/json" },
|
|
3483
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3484
|
-
...this.fetchOptions,
|
|
3485
|
-
});
|
|
3486
|
-
await raiseForStatus(res, "delete run from annotation queue", true);
|
|
3487
|
-
return res;
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
/**
|
|
3491
|
-
* Get the size of an annotation queue.
|
|
3492
|
-
* @param queueId - The ID of the annotation queue
|
|
3493
|
-
*/
|
|
3494
|
-
async getSizeFromAnnotationQueue(queueId) {
|
|
3495
|
-
const response = await this.caller.call(async () => {
|
|
3496
|
-
const res = await this._fetch(`${this.apiUrl}/annotation-queues/${assertUuid(queueId, "queueId")}/size`, {
|
|
3497
|
-
method: "GET",
|
|
3498
|
-
headers: this.headers,
|
|
3499
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3500
|
-
...this.fetchOptions,
|
|
3501
|
-
});
|
|
3502
|
-
await raiseForStatus(res, "get size from annotation queue");
|
|
3503
|
-
return res;
|
|
3504
|
-
});
|
|
3505
|
-
return response.json();
|
|
3506
|
-
}
|
|
3507
|
-
async _currentTenantIsOwner(owner) {
|
|
3508
|
-
const settings = await this._getSettings();
|
|
3509
|
-
return owner == "-" || settings.tenant_handle === owner;
|
|
3510
|
-
}
|
|
3511
|
-
async _ownerConflictError(action, owner) {
|
|
3512
|
-
const settings = await this._getSettings();
|
|
3513
|
-
return new Error(`Cannot ${action} for another tenant.\n
|
|
3514
|
-
Current tenant: ${settings.tenant_handle}\n
|
|
3515
|
-
Requested tenant: ${owner}`);
|
|
3516
|
-
}
|
|
3517
|
-
async _getLatestCommitHash(promptOwnerAndName) {
|
|
3518
|
-
const response = await this.caller.call(async () => {
|
|
3519
|
-
const res = await this._fetch(`${this.apiUrl}/commits/${promptOwnerAndName}/?limit=${1}&offset=${0}`, {
|
|
3520
|
-
method: "GET",
|
|
3521
|
-
headers: this.headers,
|
|
3522
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3523
|
-
...this.fetchOptions,
|
|
3524
|
-
});
|
|
3525
|
-
await raiseForStatus(res, "get latest commit hash");
|
|
3526
|
-
return res;
|
|
3527
|
-
});
|
|
3528
|
-
const json = await response.json();
|
|
3529
|
-
if (json.commits.length === 0) {
|
|
3530
|
-
return undefined;
|
|
3531
|
-
}
|
|
3532
|
-
return json.commits[0].commit_hash;
|
|
3533
|
-
}
|
|
3534
|
-
async _likeOrUnlikePrompt(promptIdentifier, like) {
|
|
3535
|
-
const [owner, promptName, _] = parsePromptIdentifier(promptIdentifier);
|
|
3536
|
-
const body = JSON.stringify({ like: like });
|
|
3537
|
-
const response = await this.caller.call(async () => {
|
|
3538
|
-
const res = await this._fetch(`${this.apiUrl}/likes/${owner}/${promptName}`, {
|
|
3539
|
-
method: "POST",
|
|
3540
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3541
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3542
|
-
...this.fetchOptions,
|
|
3543
|
-
body,
|
|
3544
|
-
});
|
|
3545
|
-
await raiseForStatus(res, `${like ? "like" : "unlike"} prompt`);
|
|
3546
|
-
return res;
|
|
3547
|
-
});
|
|
3548
|
-
return response.json();
|
|
3549
|
-
}
|
|
3550
|
-
async _getPromptUrl(promptIdentifier) {
|
|
3551
|
-
const [owner, promptName, commitHash] = parsePromptIdentifier(promptIdentifier);
|
|
3552
|
-
if (!(await this._currentTenantIsOwner(owner))) {
|
|
3553
|
-
if (commitHash !== "latest") {
|
|
3554
|
-
return `${this.getHostUrl()}/hub/${owner}/${promptName}/${commitHash.substring(0, 8)}`;
|
|
3555
|
-
}
|
|
3556
|
-
else {
|
|
3557
|
-
return `${this.getHostUrl()}/hub/${owner}/${promptName}`;
|
|
3558
|
-
}
|
|
3559
|
-
}
|
|
3560
|
-
else {
|
|
3561
|
-
const settings = await this._getSettings();
|
|
3562
|
-
if (commitHash !== "latest") {
|
|
3563
|
-
return `${this.getHostUrl()}/prompts/${promptName}/${commitHash.substring(0, 8)}?organizationId=${settings.id}`;
|
|
3564
|
-
}
|
|
3565
|
-
else {
|
|
3566
|
-
return `${this.getHostUrl()}/prompts/${promptName}?organizationId=${settings.id}`;
|
|
3567
|
-
}
|
|
3568
|
-
}
|
|
3569
|
-
}
|
|
3570
|
-
async promptExists(promptIdentifier) {
|
|
3571
|
-
const prompt = await this.getPrompt(promptIdentifier);
|
|
3572
|
-
return !!prompt;
|
|
3573
|
-
}
|
|
3574
|
-
async likePrompt(promptIdentifier) {
|
|
3575
|
-
return this._likeOrUnlikePrompt(promptIdentifier, true);
|
|
3576
|
-
}
|
|
3577
|
-
async unlikePrompt(promptIdentifier) {
|
|
3578
|
-
return this._likeOrUnlikePrompt(promptIdentifier, false);
|
|
3579
|
-
}
|
|
3580
|
-
async *listCommits(promptOwnerAndName) {
|
|
3581
|
-
for await (const commits of this._getPaginated(`/commits/${promptOwnerAndName}/`, new URLSearchParams(), (res) => res.commits)) {
|
|
3582
|
-
yield* commits;
|
|
3583
|
-
}
|
|
3584
|
-
}
|
|
3585
|
-
async *listPrompts(options) {
|
|
3586
|
-
const params = new URLSearchParams();
|
|
3587
|
-
params.append("sort_field", options?.sortField ?? "updated_at");
|
|
3588
|
-
params.append("sort_direction", "desc");
|
|
3589
|
-
params.append("is_archived", (!!options?.isArchived).toString());
|
|
3590
|
-
if (options?.isPublic !== undefined) {
|
|
3591
|
-
params.append("is_public", options.isPublic.toString());
|
|
3592
|
-
}
|
|
3593
|
-
if (options?.query) {
|
|
3594
|
-
params.append("query", options.query);
|
|
3595
|
-
}
|
|
3596
|
-
for await (const prompts of this._getPaginated("/repos", params, (res) => res.repos)) {
|
|
3597
|
-
yield* prompts;
|
|
3598
|
-
}
|
|
3599
|
-
}
|
|
3600
|
-
async getPrompt(promptIdentifier) {
|
|
3601
|
-
const [owner, promptName, _] = parsePromptIdentifier(promptIdentifier);
|
|
3602
|
-
const response = await this.caller.call(async () => {
|
|
3603
|
-
const res = await this._fetch(`${this.apiUrl}/repos/${owner}/${promptName}`, {
|
|
3604
|
-
method: "GET",
|
|
3605
|
-
headers: this.headers,
|
|
3606
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3607
|
-
...this.fetchOptions,
|
|
3608
|
-
});
|
|
3609
|
-
if (res?.status === 404) {
|
|
3610
|
-
return null;
|
|
3611
|
-
}
|
|
3612
|
-
await raiseForStatus(res, "get prompt");
|
|
3613
|
-
return res;
|
|
3614
|
-
});
|
|
3615
|
-
const result = await response?.json();
|
|
3616
|
-
if (result?.repo) {
|
|
3617
|
-
return result.repo;
|
|
3618
|
-
}
|
|
3619
|
-
else {
|
|
3620
|
-
return null;
|
|
3621
|
-
}
|
|
3622
|
-
}
|
|
3623
|
-
async createPrompt(promptIdentifier, options) {
|
|
3624
|
-
const settings = await this._getSettings();
|
|
3625
|
-
if (options?.isPublic && !settings.tenant_handle) {
|
|
3626
|
-
throw new Error(`Cannot create a public prompt without first\n
|
|
3627
|
-
creating a LangChain Hub handle.
|
|
3628
|
-
You can add a handle by creating a public prompt at:\n
|
|
3629
|
-
https://smith.langchain.com/prompts`);
|
|
3630
|
-
}
|
|
3631
|
-
const [owner, promptName, _] = parsePromptIdentifier(promptIdentifier);
|
|
3632
|
-
if (!(await this._currentTenantIsOwner(owner))) {
|
|
3633
|
-
throw await this._ownerConflictError("create a prompt", owner);
|
|
3634
|
-
}
|
|
3635
|
-
const data = {
|
|
3636
|
-
repo_handle: promptName,
|
|
3637
|
-
...(options?.description && { description: options.description }),
|
|
3638
|
-
...(options?.readme && { readme: options.readme }),
|
|
3639
|
-
...(options?.tags && { tags: options.tags }),
|
|
3640
|
-
is_public: !!options?.isPublic,
|
|
3641
|
-
};
|
|
3642
|
-
const body = JSON.stringify(data);
|
|
3643
|
-
const response = await this.caller.call(async () => {
|
|
3644
|
-
const res = await this._fetch(`${this.apiUrl}/repos/`, {
|
|
3645
|
-
method: "POST",
|
|
3646
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3647
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3648
|
-
...this.fetchOptions,
|
|
3649
|
-
body,
|
|
3650
|
-
});
|
|
3651
|
-
await raiseForStatus(res, "create prompt");
|
|
3652
|
-
return res;
|
|
3653
|
-
});
|
|
3654
|
-
const { repo } = await response.json();
|
|
3655
|
-
return repo;
|
|
3656
|
-
}
|
|
3657
|
-
async createCommit(promptIdentifier, object, options) {
|
|
3658
|
-
if (!(await this.promptExists(promptIdentifier))) {
|
|
3659
|
-
throw new Error("Prompt does not exist, you must create it first.");
|
|
3660
|
-
}
|
|
3661
|
-
const [owner, promptName, _] = parsePromptIdentifier(promptIdentifier);
|
|
3662
|
-
const resolvedParentCommitHash = options?.parentCommitHash === "latest" || !options?.parentCommitHash
|
|
3663
|
-
? await this._getLatestCommitHash(`${owner}/${promptName}`)
|
|
3664
|
-
: options?.parentCommitHash;
|
|
3665
|
-
const payload = {
|
|
3666
|
-
manifest: JSON.parse(JSON.stringify(object)),
|
|
3667
|
-
parent_commit: resolvedParentCommitHash,
|
|
3668
|
-
};
|
|
3669
|
-
const body = JSON.stringify(payload);
|
|
3670
|
-
const response = await this.caller.call(async () => {
|
|
3671
|
-
const res = await this._fetch(`${this.apiUrl}/commits/${owner}/${promptName}`, {
|
|
3672
|
-
method: "POST",
|
|
3673
|
-
headers: { ...this.headers, "Content-Type": "application/json" },
|
|
3674
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3675
|
-
...this.fetchOptions,
|
|
3676
|
-
body,
|
|
3677
|
-
});
|
|
3678
|
-
await raiseForStatus(res, "create commit");
|
|
3679
|
-
return res;
|
|
3680
|
-
});
|
|
3681
|
-
const result = await response.json();
|
|
3682
|
-
return this._getPromptUrl(`${owner}/${promptName}${result.commit_hash ? `:${result.commit_hash}` : ""}`);
|
|
3683
|
-
}
|
|
3684
|
-
/**
|
|
3685
|
-
* Update examples with attachments using multipart form data.
|
|
3686
|
-
* @param updates List of ExampleUpdateWithAttachments objects to upsert
|
|
3687
|
-
* @returns Promise with the update response
|
|
3688
|
-
*/
|
|
3689
|
-
async updateExamplesMultipart(datasetId, updates = []) {
|
|
3690
|
-
return this._updateExamplesMultipart(datasetId, updates);
|
|
3691
|
-
}
|
|
3692
|
-
async _updateExamplesMultipart(datasetId, updates = []) {
|
|
3693
|
-
if (!(await this._getDatasetExamplesMultiPartSupport())) {
|
|
3694
|
-
throw new Error("Your LangSmith deployment does not allow using the multipart examples endpoint, please upgrade your deployment to the latest version.");
|
|
3695
|
-
}
|
|
3696
|
-
const formData = new FormData();
|
|
3697
|
-
for (const example of updates) {
|
|
3698
|
-
const exampleId = example.id;
|
|
3699
|
-
// Prepare the main example body
|
|
3700
|
-
const exampleBody = {
|
|
3701
|
-
...(example.metadata && { metadata: example.metadata }),
|
|
3702
|
-
...(example.split && { split: example.split }),
|
|
3703
|
-
};
|
|
3704
|
-
// Add main example data
|
|
3705
|
-
const stringifiedExample = serializePayloadForTracing(exampleBody, `Serializing body for example with id: ${exampleId}`);
|
|
3706
|
-
const exampleBlob = new Blob([stringifiedExample], {
|
|
3707
|
-
type: "application/json",
|
|
3708
|
-
});
|
|
3709
|
-
formData.append(exampleId, exampleBlob);
|
|
3710
|
-
// Add inputs if present
|
|
3711
|
-
if (example.inputs) {
|
|
3712
|
-
const stringifiedInputs = serializePayloadForTracing(example.inputs, `Serializing inputs for example with id: ${exampleId}`);
|
|
3713
|
-
const inputsBlob = new Blob([stringifiedInputs], {
|
|
3714
|
-
type: "application/json",
|
|
3715
|
-
});
|
|
3716
|
-
formData.append(`${exampleId}.inputs`, inputsBlob);
|
|
3717
|
-
}
|
|
3718
|
-
// Add outputs if present
|
|
3719
|
-
if (example.outputs) {
|
|
3720
|
-
const stringifiedOutputs = serializePayloadForTracing(example.outputs, `Serializing outputs whle updating example with id: ${exampleId}`);
|
|
3721
|
-
const outputsBlob = new Blob([stringifiedOutputs], {
|
|
3722
|
-
type: "application/json",
|
|
3723
|
-
});
|
|
3724
|
-
formData.append(`${exampleId}.outputs`, outputsBlob);
|
|
3725
|
-
}
|
|
3726
|
-
// Add attachments if present
|
|
3727
|
-
if (example.attachments) {
|
|
3728
|
-
for (const [name, attachment] of Object.entries(example.attachments)) {
|
|
3729
|
-
let mimeType;
|
|
3730
|
-
let data;
|
|
3731
|
-
if (Array.isArray(attachment)) {
|
|
3732
|
-
[mimeType, data] = attachment;
|
|
3733
|
-
}
|
|
3734
|
-
else {
|
|
3735
|
-
mimeType = attachment.mimeType;
|
|
3736
|
-
data = attachment.data;
|
|
3737
|
-
}
|
|
3738
|
-
const attachmentBlob = new Blob([data], {
|
|
3739
|
-
type: `${mimeType}; length=${data.byteLength}`,
|
|
3740
|
-
});
|
|
3741
|
-
formData.append(`${exampleId}.attachment.${name}`, attachmentBlob);
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
if (example.attachments_operations) {
|
|
3745
|
-
const stringifiedAttachmentsOperations = serializePayloadForTracing(example.attachments_operations, `Serializing attachments while updating example with id: ${exampleId}`);
|
|
3746
|
-
const attachmentsOperationsBlob = new Blob([stringifiedAttachmentsOperations], {
|
|
3747
|
-
type: "application/json",
|
|
3748
|
-
});
|
|
3749
|
-
formData.append(`${exampleId}.attachments_operations`, attachmentsOperationsBlob);
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
const datasetIdToUse = datasetId ?? updates[0]?.dataset_id;
|
|
3753
|
-
const response = await this.caller.call(async () => {
|
|
3754
|
-
const res = await this._fetch(`${this.apiUrl}${this._getPlatformEndpointPath(`datasets/${datasetIdToUse}/examples`)}`, {
|
|
3755
|
-
method: "PATCH",
|
|
3756
|
-
headers: this.headers,
|
|
3757
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3758
|
-
...this.fetchOptions,
|
|
3759
|
-
body: formData,
|
|
3760
|
-
});
|
|
3761
|
-
await raiseForStatus(res, "update examples");
|
|
3762
|
-
return res;
|
|
3763
|
-
});
|
|
3764
|
-
return response.json();
|
|
3765
|
-
}
|
|
3766
|
-
/**
|
|
3767
|
-
* Upload examples with attachments using multipart form data.
|
|
3768
|
-
* @param uploads List of ExampleUploadWithAttachments objects to upload
|
|
3769
|
-
* @returns Promise with the upload response
|
|
3770
|
-
* @deprecated This method is deprecated and will be removed in future LangSmith versions, please use `createExamples` instead
|
|
3771
|
-
*/
|
|
3772
|
-
async uploadExamplesMultipart(datasetId, uploads = []) {
|
|
3773
|
-
return this._uploadExamplesMultipart(datasetId, uploads);
|
|
3774
|
-
}
|
|
3775
|
-
async _uploadExamplesMultipart(datasetId, uploads = []) {
|
|
3776
|
-
if (!(await this._getDatasetExamplesMultiPartSupport())) {
|
|
3777
|
-
throw new Error("Your LangSmith deployment does not allow using the multipart examples endpoint, please upgrade your deployment to the latest version.");
|
|
3778
|
-
}
|
|
3779
|
-
const formData = new FormData();
|
|
3780
|
-
for (const example of uploads) {
|
|
3781
|
-
const exampleId = (example.id ?? uuid.v4()).toString();
|
|
3782
|
-
// Prepare the main example body
|
|
3783
|
-
const exampleBody = {
|
|
3784
|
-
created_at: example.created_at,
|
|
3785
|
-
...(example.metadata && { metadata: example.metadata }),
|
|
3786
|
-
...(example.split && { split: example.split }),
|
|
3787
|
-
...(example.source_run_id && { source_run_id: example.source_run_id }),
|
|
3788
|
-
...(example.use_source_run_io && {
|
|
3789
|
-
use_source_run_io: example.use_source_run_io,
|
|
3790
|
-
}),
|
|
3791
|
-
...(example.use_source_run_attachments && {
|
|
3792
|
-
use_source_run_attachments: example.use_source_run_attachments,
|
|
3793
|
-
}),
|
|
3794
|
-
};
|
|
3795
|
-
// Add main example data
|
|
3796
|
-
const stringifiedExample = serializePayloadForTracing(exampleBody, `Serializing body for uploaded example with id: ${exampleId}`);
|
|
3797
|
-
const exampleBlob = new Blob([stringifiedExample], {
|
|
3798
|
-
type: "application/json",
|
|
3799
|
-
});
|
|
3800
|
-
formData.append(exampleId, exampleBlob);
|
|
3801
|
-
// Add inputs if present
|
|
3802
|
-
if (example.inputs) {
|
|
3803
|
-
const stringifiedInputs = serializePayloadForTracing(example.inputs, `Serializing inputs for uploaded example with id: ${exampleId}`);
|
|
3804
|
-
const inputsBlob = new Blob([stringifiedInputs], {
|
|
3805
|
-
type: "application/json",
|
|
3806
|
-
});
|
|
3807
|
-
formData.append(`${exampleId}.inputs`, inputsBlob);
|
|
3808
|
-
}
|
|
3809
|
-
// Add outputs if present
|
|
3810
|
-
if (example.outputs) {
|
|
3811
|
-
const stringifiedOutputs = serializePayloadForTracing(example.outputs, `Serializing outputs for uploaded example with id: ${exampleId}`);
|
|
3812
|
-
const outputsBlob = new Blob([stringifiedOutputs], {
|
|
3813
|
-
type: "application/json",
|
|
3814
|
-
});
|
|
3815
|
-
formData.append(`${exampleId}.outputs`, outputsBlob);
|
|
3816
|
-
}
|
|
3817
|
-
// Add attachments if present
|
|
3818
|
-
if (example.attachments) {
|
|
3819
|
-
for (const [name, attachment] of Object.entries(example.attachments)) {
|
|
3820
|
-
let mimeType;
|
|
3821
|
-
let data;
|
|
3822
|
-
if (Array.isArray(attachment)) {
|
|
3823
|
-
[mimeType, data] = attachment;
|
|
3824
|
-
}
|
|
3825
|
-
else {
|
|
3826
|
-
mimeType = attachment.mimeType;
|
|
3827
|
-
data = attachment.data;
|
|
3828
|
-
}
|
|
3829
|
-
const attachmentBlob = new Blob([data], {
|
|
3830
|
-
type: `${mimeType}; length=${data.byteLength}`,
|
|
3831
|
-
});
|
|
3832
|
-
formData.append(`${exampleId}.attachment.${name}`, attachmentBlob);
|
|
3833
|
-
}
|
|
3834
|
-
}
|
|
3835
|
-
}
|
|
3836
|
-
const response = await this.caller.call(async () => {
|
|
3837
|
-
const res = await this._fetch(`${this.apiUrl}${this._getPlatformEndpointPath(`datasets/${datasetId}/examples`)}`, {
|
|
3838
|
-
method: "POST",
|
|
3839
|
-
headers: this.headers,
|
|
3840
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3841
|
-
...this.fetchOptions,
|
|
3842
|
-
body: formData,
|
|
3843
|
-
});
|
|
3844
|
-
await raiseForStatus(res, "upload examples");
|
|
3845
|
-
return res;
|
|
3846
|
-
});
|
|
3847
|
-
return response.json();
|
|
3848
|
-
}
|
|
3849
|
-
async updatePrompt(promptIdentifier, options) {
|
|
3850
|
-
if (!(await this.promptExists(promptIdentifier))) {
|
|
3851
|
-
throw new Error("Prompt does not exist, you must create it first.");
|
|
3852
|
-
}
|
|
3853
|
-
const [owner, promptName] = parsePromptIdentifier(promptIdentifier);
|
|
3854
|
-
if (!(await this._currentTenantIsOwner(owner))) {
|
|
3855
|
-
throw await this._ownerConflictError("update a prompt", owner);
|
|
3856
|
-
}
|
|
3857
|
-
const payload = {};
|
|
3858
|
-
if (options?.description !== undefined)
|
|
3859
|
-
payload.description = options.description;
|
|
3860
|
-
if (options?.readme !== undefined)
|
|
3861
|
-
payload.readme = options.readme;
|
|
3862
|
-
if (options?.tags !== undefined)
|
|
3863
|
-
payload.tags = options.tags;
|
|
3864
|
-
if (options?.isPublic !== undefined)
|
|
3865
|
-
payload.is_public = options.isPublic;
|
|
3866
|
-
if (options?.isArchived !== undefined)
|
|
3867
|
-
payload.is_archived = options.isArchived;
|
|
3868
|
-
// Check if payload is empty
|
|
3869
|
-
if (Object.keys(payload).length === 0) {
|
|
3870
|
-
throw new Error("No valid update options provided");
|
|
3871
|
-
}
|
|
3872
|
-
const body = JSON.stringify(payload);
|
|
3873
|
-
const response = await this.caller.call(async () => {
|
|
3874
|
-
const res = await this._fetch(`${this.apiUrl}/repos/${owner}/${promptName}`, {
|
|
3875
|
-
method: "PATCH",
|
|
3876
|
-
headers: {
|
|
3877
|
-
...this.headers,
|
|
3878
|
-
"Content-Type": "application/json",
|
|
3879
|
-
},
|
|
3880
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3881
|
-
...this.fetchOptions,
|
|
3882
|
-
body,
|
|
3883
|
-
});
|
|
3884
|
-
await raiseForStatus(res, "update prompt");
|
|
3885
|
-
return res;
|
|
3886
|
-
});
|
|
3887
|
-
return response.json();
|
|
3888
|
-
}
|
|
3889
|
-
async deletePrompt(promptIdentifier) {
|
|
3890
|
-
if (!(await this.promptExists(promptIdentifier))) {
|
|
3891
|
-
throw new Error("Prompt does not exist, you must create it first.");
|
|
3892
|
-
}
|
|
3893
|
-
const [owner, promptName, _] = parsePromptIdentifier(promptIdentifier);
|
|
3894
|
-
if (!(await this._currentTenantIsOwner(owner))) {
|
|
3895
|
-
throw await this._ownerConflictError("delete a prompt", owner);
|
|
3896
|
-
}
|
|
3897
|
-
const response = await this.caller.call(async () => {
|
|
3898
|
-
const res = await this._fetch(`${this.apiUrl}/repos/${owner}/${promptName}`, {
|
|
3899
|
-
method: "DELETE",
|
|
3900
|
-
headers: this.headers,
|
|
3901
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3902
|
-
...this.fetchOptions,
|
|
3903
|
-
});
|
|
3904
|
-
await raiseForStatus(res, "delete prompt");
|
|
3905
|
-
return res;
|
|
3906
|
-
});
|
|
3907
|
-
return response.json();
|
|
3908
|
-
}
|
|
3909
|
-
/**
|
|
3910
|
-
* Generate a cache key for a prompt.
|
|
3911
|
-
* Format: "{identifier}" or "{identifier}:with_model"
|
|
3912
|
-
*/
|
|
3913
|
-
_getPromptCacheKey(promptIdentifier, includeModel) {
|
|
3914
|
-
const suffix = includeModel ? ":with_model" : "";
|
|
3915
|
-
return `${promptIdentifier}${suffix}`;
|
|
3916
|
-
}
|
|
3917
|
-
/**
|
|
3918
|
-
* Fetch a prompt commit directly from the API (bypassing cache).
|
|
3919
|
-
*/
|
|
3920
|
-
async _fetchPromptFromApi(promptIdentifier, options) {
|
|
3921
|
-
const [owner, promptName, commitHash] = parsePromptIdentifier(promptIdentifier);
|
|
3922
|
-
const response = await this.caller.call(async () => {
|
|
3923
|
-
const res = await this._fetch(`${this.apiUrl}/commits/${owner}/${promptName}/${commitHash}${options?.includeModel ? "?include_model=true" : ""}`, {
|
|
3924
|
-
method: "GET",
|
|
3925
|
-
headers: this.headers,
|
|
3926
|
-
signal: AbortSignal.timeout(this.timeout_ms),
|
|
3927
|
-
...this.fetchOptions,
|
|
3928
|
-
});
|
|
3929
|
-
await raiseForStatus(res, "pull prompt commit");
|
|
3930
|
-
return res;
|
|
3931
|
-
});
|
|
3932
|
-
const result = await response.json();
|
|
3933
|
-
return {
|
|
3934
|
-
owner,
|
|
3935
|
-
repo: promptName,
|
|
3936
|
-
commit_hash: result.commit_hash,
|
|
3937
|
-
manifest: result.manifest,
|
|
3938
|
-
examples: result.examples,
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
async pullPromptCommit(promptIdentifier, options) {
|
|
3942
|
-
// Check cache first if not skipped
|
|
3943
|
-
const refreshFunc = this._fetchPromptFromApi.bind(this, promptIdentifier, options);
|
|
3944
|
-
if (!options?.skipCache && this._promptCache) {
|
|
3945
|
-
const cacheKey = this._getPromptCacheKey(promptIdentifier, options?.includeModel);
|
|
3946
|
-
const cached = this._promptCache.get(cacheKey, refreshFunc);
|
|
3947
|
-
if (cached) {
|
|
3948
|
-
return cached;
|
|
3949
|
-
}
|
|
3950
|
-
// Cache miss - fetch from API and cache it
|
|
3951
|
-
const result = await refreshFunc();
|
|
3952
|
-
this._promptCache.set(cacheKey, result, refreshFunc);
|
|
3953
|
-
return result;
|
|
3954
|
-
}
|
|
3955
|
-
// No cache or skip cache - fetch directly
|
|
3956
|
-
return this._fetchPromptFromApi(promptIdentifier, options);
|
|
3957
|
-
}
|
|
3958
|
-
/**
|
|
3959
|
-
* This method should not be used directly, use `import { pull } from "langchain/hub"` instead.
|
|
3960
|
-
* Using this method directly returns the JSON string of the prompt rather than a LangChain object.
|
|
3961
|
-
* @private
|
|
3962
|
-
*/
|
|
3963
|
-
async _pullPrompt(promptIdentifier, options) {
|
|
3964
|
-
const promptObject = await this.pullPromptCommit(promptIdentifier, {
|
|
3965
|
-
includeModel: options?.includeModel,
|
|
3966
|
-
skipCache: options?.skipCache,
|
|
3967
|
-
});
|
|
3968
|
-
const prompt = JSON.stringify(promptObject.manifest);
|
|
3969
|
-
return prompt;
|
|
3970
|
-
}
|
|
3971
|
-
async pushPrompt(promptIdentifier, options) {
|
|
3972
|
-
// Create or update prompt metadata
|
|
3973
|
-
if (await this.promptExists(promptIdentifier)) {
|
|
3974
|
-
if (options && Object.keys(options).some((key) => key !== "object")) {
|
|
3975
|
-
await this.updatePrompt(promptIdentifier, {
|
|
3976
|
-
description: options?.description,
|
|
3977
|
-
readme: options?.readme,
|
|
3978
|
-
tags: options?.tags,
|
|
3979
|
-
isPublic: options?.isPublic,
|
|
3980
|
-
});
|
|
3981
|
-
}
|
|
3982
|
-
}
|
|
3983
|
-
else {
|
|
3984
|
-
await this.createPrompt(promptIdentifier, {
|
|
3985
|
-
description: options?.description,
|
|
3986
|
-
readme: options?.readme,
|
|
3987
|
-
tags: options?.tags,
|
|
3988
|
-
isPublic: options?.isPublic,
|
|
3989
|
-
});
|
|
3990
|
-
}
|
|
3991
|
-
if (!options?.object) {
|
|
3992
|
-
return await this._getPromptUrl(promptIdentifier);
|
|
3993
|
-
}
|
|
3994
|
-
// Create a commit with the new manifest
|
|
3995
|
-
const url = await this.createCommit(promptIdentifier, options?.object, {
|
|
3996
|
-
parentCommitHash: options?.parentCommitHash,
|
|
3997
|
-
});
|
|
3998
|
-
return url;
|
|
3999
|
-
}
|
|
4000
|
-
/**
|
|
4001
|
-
* Clone a public dataset to your own langsmith tenant.
|
|
4002
|
-
* This operation is idempotent. If you already have a dataset with the given name,
|
|
4003
|
-
* this function will do nothing.
|
|
4004
|
-
|
|
4005
|
-
* @param {string} tokenOrUrl The token of the public dataset to clone.
|
|
4006
|
-
* @param {Object} [options] Additional options for cloning the dataset.
|
|
4007
|
-
* @param {string} [options.sourceApiUrl] The URL of the langsmith server where the data is hosted. Defaults to the API URL of your current client.
|
|
4008
|
-
* @param {string} [options.datasetName] The name of the dataset to create in your tenant. Defaults to the name of the public dataset.
|
|
4009
|
-
* @returns {Promise<void>}
|
|
4010
|
-
*/
|
|
4011
|
-
async clonePublicDataset(tokenOrUrl, options = {}) {
|
|
4012
|
-
const { sourceApiUrl = this.apiUrl, datasetName } = options;
|
|
4013
|
-
const [parsedApiUrl, tokenUuid] = this.parseTokenOrUrl(tokenOrUrl, sourceApiUrl);
|
|
4014
|
-
const sourceClient = new Client({
|
|
4015
|
-
apiUrl: parsedApiUrl,
|
|
4016
|
-
// Placeholder API key not needed anymore in most cases, but
|
|
4017
|
-
// some private deployments may have API key-based rate limiting
|
|
4018
|
-
// that would cause this to fail if we provide no value.
|
|
4019
|
-
apiKey: "placeholder",
|
|
4020
|
-
});
|
|
4021
|
-
const ds = await sourceClient.readSharedDataset(tokenUuid);
|
|
4022
|
-
const finalDatasetName = datasetName || ds.name;
|
|
4023
|
-
try {
|
|
4024
|
-
if (await this.hasDataset({ datasetId: finalDatasetName })) {
|
|
4025
|
-
console.log(`Dataset ${finalDatasetName} already exists in your tenant. Skipping.`);
|
|
4026
|
-
return;
|
|
4027
|
-
}
|
|
4028
|
-
}
|
|
4029
|
-
catch (_) {
|
|
4030
|
-
// `.hasDataset` will throw an error if the dataset does not exist.
|
|
4031
|
-
// no-op in that case
|
|
4032
|
-
}
|
|
4033
|
-
// Fetch examples first, then create the dataset
|
|
4034
|
-
const examples = await sourceClient.listSharedExamples(tokenUuid);
|
|
4035
|
-
const dataset = await this.createDataset(finalDatasetName, {
|
|
4036
|
-
description: ds.description,
|
|
4037
|
-
dataType: ds.data_type || "kv",
|
|
4038
|
-
inputsSchema: ds.inputs_schema_definition ?? undefined,
|
|
4039
|
-
outputsSchema: ds.outputs_schema_definition ?? undefined,
|
|
4040
|
-
});
|
|
4041
|
-
try {
|
|
4042
|
-
await this.createExamples({
|
|
4043
|
-
inputs: examples.map((e) => e.inputs),
|
|
4044
|
-
outputs: examples.flatMap((e) => (e.outputs ? [e.outputs] : [])),
|
|
4045
|
-
datasetId: dataset.id,
|
|
4046
|
-
});
|
|
4047
|
-
}
|
|
4048
|
-
catch (e) {
|
|
4049
|
-
console.error(`An error occurred while creating dataset ${finalDatasetName}. ` +
|
|
4050
|
-
"You should delete it manually.");
|
|
4051
|
-
throw e;
|
|
4052
|
-
}
|
|
4053
|
-
}
|
|
4054
|
-
parseTokenOrUrl(urlOrToken, apiUrl, numParts = 2, kind = "dataset") {
|
|
4055
|
-
// Try parsing as UUID
|
|
4056
|
-
try {
|
|
4057
|
-
assertUuid(urlOrToken); // Will throw if it's not a UUID.
|
|
4058
|
-
return [apiUrl, urlOrToken];
|
|
4059
|
-
}
|
|
4060
|
-
catch (_) {
|
|
4061
|
-
// no-op if it's not a uuid
|
|
4062
|
-
}
|
|
4063
|
-
// Parse as URL
|
|
4064
|
-
try {
|
|
4065
|
-
const parsedUrl = new URL(urlOrToken);
|
|
4066
|
-
const pathParts = parsedUrl.pathname
|
|
4067
|
-
.split("/")
|
|
4068
|
-
.filter((part) => part !== "");
|
|
4069
|
-
if (pathParts.length >= numParts) {
|
|
4070
|
-
const tokenUuid = pathParts[pathParts.length - numParts];
|
|
4071
|
-
return [apiUrl, tokenUuid];
|
|
4072
|
-
}
|
|
4073
|
-
else {
|
|
4074
|
-
throw new Error(`Invalid public ${kind} URL: ${urlOrToken}`);
|
|
4075
|
-
}
|
|
4076
|
-
}
|
|
4077
|
-
catch (error) {
|
|
4078
|
-
throw new Error(`Invalid public ${kind} URL or token: ${urlOrToken}`);
|
|
4079
|
-
}
|
|
4080
|
-
}
|
|
4081
|
-
/**
|
|
4082
|
-
* Cleanup resources held by the client.
|
|
4083
|
-
* Stops the cache's background refresh timer.
|
|
4084
|
-
*/
|
|
4085
|
-
cleanup() {
|
|
4086
|
-
if (this._promptCache) {
|
|
4087
|
-
this._promptCache.stop();
|
|
4088
|
-
}
|
|
4089
|
-
}
|
|
4090
|
-
/**
|
|
4091
|
-
* Awaits all pending trace batches. Useful for environments where
|
|
4092
|
-
* you need to be sure that all tracing requests finish before execution ends,
|
|
4093
|
-
* such as serverless environments.
|
|
4094
|
-
*
|
|
4095
|
-
* @example
|
|
4096
|
-
* ```
|
|
4097
|
-
* import { Client } from "langsmith";
|
|
4098
|
-
*
|
|
4099
|
-
* const client = new Client();
|
|
4100
|
-
*
|
|
4101
|
-
* try {
|
|
4102
|
-
* // Tracing happens here
|
|
4103
|
-
* ...
|
|
4104
|
-
* } finally {
|
|
4105
|
-
* await client.awaitPendingTraceBatches();
|
|
4106
|
-
* }
|
|
4107
|
-
* ```
|
|
4108
|
-
*
|
|
4109
|
-
* @returns A promise that resolves once all currently pending traces have sent.
|
|
4110
|
-
*/
|
|
4111
|
-
async awaitPendingTraceBatches() {
|
|
4112
|
-
if (this.manualFlushMode) {
|
|
4113
|
-
console.warn("[WARNING]: When tracing in manual flush mode, you must call `await client.flush()` manually to submit trace batches.");
|
|
4114
|
-
return Promise.resolve();
|
|
4115
|
-
}
|
|
4116
|
-
/**
|
|
4117
|
-
* traceables use a backgrounded promise before updating runs to avoid blocking
|
|
4118
|
-
* and to allow waiting for child runs to end. Waiting a small amount of time
|
|
4119
|
-
* here ensures that they are able to enqueue their run operation before we await
|
|
4120
|
-
* queued run operations below:
|
|
4121
|
-
*
|
|
4122
|
-
* ```ts
|
|
4123
|
-
* const run = await traceable(async () => {
|
|
4124
|
-
* return "Hello, world!";
|
|
4125
|
-
* }, { client })();
|
|
4126
|
-
*
|
|
4127
|
-
* await client.awaitPendingTraceBatches();
|
|
4128
|
-
* ```
|
|
4129
|
-
*/
|
|
4130
|
-
await new Promise((resolve) => setTimeout(resolve, 1));
|
|
4131
|
-
await Promise.all([
|
|
4132
|
-
...this.autoBatchQueue.items.map(({ itemPromise }) => itemPromise),
|
|
4133
|
-
this.batchIngestCaller.queue.onIdle(),
|
|
4134
|
-
]);
|
|
4135
|
-
if (this.langSmithToOTELTranslator !== undefined) {
|
|
4136
|
-
await getDefaultOTLPTracerComponents()?.DEFAULT_LANGSMITH_SPAN_PROCESSOR?.forceFlush();
|
|
4137
|
-
}
|
|
4138
|
-
}
|
|
4139
|
-
}
|
|
4140
|
-
function isExampleCreate(input) {
|
|
4141
|
-
return "dataset_id" in input || "dataset_name" in input;
|
|
4142
|
-
}
|