langsmith 0.10.9 → 0.10.10
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/CHANGELOG.md +30 -0
- package/LICENSE +7 -0
- package/README.md +503 -128
- package/anonymizer.d.mts +2 -0
- package/anonymizer.d.mts.map +1 -0
- package/anonymizer.d.ts +2 -1
- package/anonymizer.d.ts.map +1 -0
- package/anonymizer.js +6 -1
- package/anonymizer.js.map +1 -0
- package/anonymizer.mjs +3 -0
- package/anonymizer.mjs.map +1 -0
- package/api-promise.d.mts +3 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +3 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +3 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +244 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +244 -1
- package/client.d.ts.map +1 -0
- package/client.js +755 -1
- package/client.js.map +1 -0
- package/client.mjs +751 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +90 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +86 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +134 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +118 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +169 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +169 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +392 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +378 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +17 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +13 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +3 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +3 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +3 -0
- package/error.mjs.map +1 -0
- package/evaluation.d.mts +2 -0
- package/evaluation.d.mts.map +1 -0
- package/evaluation.d.ts +2 -1
- package/evaluation.d.ts.map +1 -0
- package/evaluation.js +6 -1
- package/evaluation.js.map +1 -0
- package/evaluation.mjs +3 -0
- package/evaluation.mjs.map +1 -0
- package/experimental/anthropic.d.mts +2 -0
- package/experimental/anthropic.d.mts.map +1 -0
- package/experimental/anthropic.d.ts +2 -1
- package/experimental/anthropic.d.ts.map +1 -0
- package/experimental/anthropic.js +6 -1
- package/experimental/anthropic.js.map +1 -0
- package/experimental/anthropic.mjs +3 -0
- package/experimental/anthropic.mjs.map +1 -0
- package/experimental/otel/exporter.d.mts +2 -0
- package/experimental/otel/exporter.d.mts.map +1 -0
- package/experimental/otel/exporter.d.ts +2 -1
- package/experimental/otel/exporter.d.ts.map +1 -0
- package/experimental/otel/exporter.js +6 -1
- package/experimental/otel/exporter.js.map +1 -0
- package/experimental/otel/exporter.mjs +3 -0
- package/experimental/otel/exporter.mjs.map +1 -0
- package/experimental/otel/processor.d.mts +2 -0
- package/experimental/otel/processor.d.mts.map +1 -0
- package/experimental/otel/processor.d.ts +2 -1
- package/experimental/otel/processor.d.ts.map +1 -0
- package/experimental/otel/processor.js +6 -1
- package/experimental/otel/processor.js.map +1 -0
- package/experimental/otel/processor.mjs +3 -0
- package/experimental/otel/processor.mjs.map +1 -0
- package/experimental/otel/setup.d.mts +2 -0
- package/experimental/otel/setup.d.mts.map +1 -0
- package/experimental/otel/setup.d.ts +2 -1
- package/experimental/otel/setup.d.ts.map +1 -0
- package/experimental/otel/setup.js +6 -1
- package/experimental/otel/setup.js.map +1 -0
- package/experimental/otel/setup.mjs +3 -0
- package/experimental/otel/setup.mjs.map +1 -0
- package/experimental/sandbox.d.mts +2 -0
- package/experimental/sandbox.d.mts.map +1 -0
- package/experimental/sandbox.d.ts +2 -1
- package/experimental/sandbox.d.ts.map +1 -0
- package/experimental/sandbox.js +6 -1
- package/experimental/sandbox.js.map +1 -0
- package/experimental/sandbox.mjs +3 -0
- package/experimental/sandbox.mjs.map +1 -0
- package/experimental/vercel.d.mts +2 -0
- package/experimental/vercel.d.mts.map +1 -0
- package/experimental/vercel.d.ts +2 -1
- package/experimental/vercel.d.ts.map +1 -0
- package/experimental/vercel.js +6 -1
- package/experimental/vercel.js.map +1 -0
- package/experimental/vercel.mjs +3 -0
- package/experimental/vercel.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +8 -1
- package/index.d.ts.map +1 -0
- package/index.js +35 -1
- package/index.js.map +1 -0
- package/index.mjs +10 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +6 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +6 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +26 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +26 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +85 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +88 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +82 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/jest/reporter.d.mts +3 -0
- package/jest/reporter.d.mts.map +1 -0
- package/jest/reporter.d.ts +3 -1
- package/jest/reporter.d.ts.map +1 -0
- package/jest/reporter.js +9 -1
- package/jest/reporter.js.map +1 -0
- package/jest/reporter.mjs +4 -0
- package/jest/reporter.mjs.map +1 -0
- package/jest.d.mts +2 -0
- package/jest.d.mts.map +1 -0
- package/jest.d.ts +2 -1
- package/jest.d.ts.map +1 -0
- package/jest.js +6 -1
- package/jest.js.map +1 -0
- package/jest.mjs +3 -0
- package/jest.mjs.map +1 -0
- package/langchain.d.mts +2 -0
- package/langchain.d.mts.map +1 -0
- package/langchain.d.ts +2 -1
- package/langchain.d.ts.map +1 -0
- package/langchain.js +6 -1
- package/langchain.js.map +1 -0
- package/langchain.mjs +3 -0
- package/langchain.mjs.map +1 -0
- package/lib/address.d.mts +69 -0
- package/lib/address.d.mts.map +1 -0
- package/lib/address.d.ts +69 -0
- package/lib/address.d.ts.map +1 -0
- package/lib/address.js +211 -0
- package/lib/address.js.map +1 -0
- package/lib/address.mjs +201 -0
- package/lib/address.mjs.map +1 -0
- package/lib/anonymizer/index.d.mts +62 -0
- package/lib/anonymizer/index.d.mts.map +1 -0
- package/lib/anonymizer/index.d.ts +62 -0
- package/lib/anonymizer/index.d.ts.map +1 -0
- package/lib/anonymizer/index.js +270 -0
- package/lib/anonymizer/index.js.map +1 -0
- package/lib/anonymizer/index.mjs +265 -0
- package/lib/anonymizer/index.mjs.map +1 -0
- package/lib/client.d.mts +1756 -0
- package/lib/client.d.mts.map +1 -0
- package/lib/client.d.ts +1756 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +5767 -0
- package/lib/client.js.map +1 -0
- package/lib/client.mjs +5759 -0
- package/lib/client.mjs.map +1 -0
- package/lib/env.d.mts +11 -0
- package/lib/env.d.mts.map +1 -0
- package/lib/env.d.ts +11 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +26 -0
- package/lib/env.js.map +1 -0
- package/lib/env.mjs +21 -0
- package/lib/env.mjs.map +1 -0
- package/lib/evaluation/_random_name.d.mts +6 -0
- package/lib/evaluation/_random_name.d.mts.map +1 -0
- package/lib/evaluation/_random_name.d.ts +6 -0
- package/lib/evaluation/_random_name.d.ts.map +1 -0
- package/lib/evaluation/_random_name.js +730 -0
- package/lib/evaluation/_random_name.js.map +1 -0
- package/lib/evaluation/_random_name.mjs +727 -0
- package/lib/evaluation/_random_name.mjs.map +1 -0
- package/lib/evaluation/_runner.d.mts +289 -0
- package/lib/evaluation/_runner.d.mts.map +1 -0
- package/lib/evaluation/_runner.d.ts +289 -0
- package/lib/evaluation/_runner.d.ts.map +1 -0
- package/lib/evaluation/_runner.js +1174 -0
- package/lib/evaluation/_runner.js.map +1 -0
- package/lib/evaluation/_runner.mjs +1132 -0
- package/lib/evaluation/_runner.mjs.map +1 -0
- package/lib/evaluation/evaluate_comparative.d.mts +72 -0
- package/lib/evaluation/evaluate_comparative.d.mts.map +1 -0
- package/lib/evaluation/evaluate_comparative.d.ts +72 -0
- package/lib/evaluation/evaluate_comparative.d.ts.map +1 -0
- package/lib/evaluation/evaluate_comparative.js +242 -0
- package/lib/evaluation/evaluate_comparative.js.map +1 -0
- package/lib/evaluation/evaluate_comparative.mjs +237 -0
- package/lib/evaluation/evaluate_comparative.mjs.map +1 -0
- package/lib/evaluation/evaluator.d.mts +106 -0
- package/lib/evaluation/evaluator.d.mts.map +1 -0
- package/lib/evaluation/evaluator.d.ts +106 -0
- package/lib/evaluation/evaluator.d.ts.map +1 -0
- package/lib/evaluation/evaluator.js +117 -0
- package/lib/evaluation/evaluator.js.map +1 -0
- package/lib/evaluation/evaluator.mjs +112 -0
- package/lib/evaluation/evaluator.mjs.map +1 -0
- package/lib/evaluation/index.d.mts +5 -0
- package/lib/evaluation/index.d.mts.map +1 -0
- package/lib/evaluation/index.d.ts +5 -0
- package/lib/evaluation/index.d.ts.map +1 -0
- package/lib/evaluation/index.js +10 -0
- package/lib/evaluation/index.js.map +1 -0
- package/lib/evaluation/index.mjs +4 -0
- package/lib/evaluation/index.mjs.map +1 -0
- package/lib/evaluation/string_evaluator.d.mts +31 -0
- package/lib/evaluation/string_evaluator.d.mts.map +1 -0
- package/lib/evaluation/string_evaluator.d.ts +31 -0
- package/lib/evaluation/string_evaluator.d.ts.map +1 -0
- package/lib/evaluation/string_evaluator.js +67 -0
- package/lib/evaluation/string_evaluator.js.map +1 -0
- package/lib/evaluation/string_evaluator.mjs +63 -0
- package/lib/evaluation/string_evaluator.mjs.map +1 -0
- package/lib/experimental/anthropic/context.d.mts +6 -0
- package/lib/experimental/anthropic/context.d.mts.map +1 -0
- package/lib/experimental/anthropic/context.d.ts +6 -0
- package/lib/experimental/anthropic/context.d.ts.map +1 -0
- package/lib/experimental/anthropic/context.js +594 -0
- package/lib/experimental/anthropic/context.js.map +1 -0
- package/lib/experimental/anthropic/context.mjs +590 -0
- package/lib/experimental/anthropic/context.mjs.map +1 -0
- package/lib/experimental/anthropic/index.d.mts +31 -0
- package/lib/experimental/anthropic/index.d.mts.map +1 -0
- package/lib/experimental/anthropic/index.d.ts +31 -0
- package/lib/experimental/anthropic/index.d.ts.map +1 -0
- package/lib/experimental/anthropic/index.js +261 -0
- package/lib/experimental/anthropic/index.js.map +1 -0
- package/lib/experimental/anthropic/index.mjs +258 -0
- package/lib/experimental/anthropic/index.mjs.map +1 -0
- package/lib/experimental/anthropic/messages.d.mts +13 -0
- package/lib/experimental/anthropic/messages.d.mts.map +1 -0
- package/lib/experimental/anthropic/messages.d.ts +13 -0
- package/lib/experimental/anthropic/messages.d.ts.map +1 -0
- package/lib/experimental/anthropic/messages.js +156 -0
- package/lib/experimental/anthropic/messages.js.map +1 -0
- package/lib/experimental/anthropic/messages.mjs +149 -0
- package/lib/experimental/anthropic/messages.mjs.map +1 -0
- package/lib/experimental/anthropic/transcripts.d.mts +23 -0
- package/lib/experimental/anthropic/transcripts.d.mts.map +1 -0
- package/lib/experimental/anthropic/transcripts.d.ts +23 -0
- package/lib/experimental/anthropic/transcripts.d.ts.map +1 -0
- package/lib/experimental/anthropic/transcripts.js +145 -0
- package/lib/experimental/anthropic/transcripts.js.map +1 -0
- package/lib/experimental/anthropic/transcripts.mjs +142 -0
- package/lib/experimental/anthropic/transcripts.mjs.map +1 -0
- package/lib/experimental/anthropic/types.d.mts +52 -0
- package/lib/experimental/anthropic/types.d.mts.map +1 -0
- package/lib/experimental/anthropic/types.d.ts +52 -0
- package/lib/experimental/anthropic/types.d.ts.map +1 -0
- package/lib/experimental/anthropic/types.js +4 -0
- package/lib/experimental/anthropic/types.js.map +1 -0
- package/lib/experimental/anthropic/types.mjs +3 -0
- package/lib/experimental/anthropic/types.mjs.map +1 -0
- package/lib/experimental/anthropic/usage.d.mts +3 -0
- package/lib/experimental/anthropic/usage.d.mts.map +1 -0
- package/lib/experimental/anthropic/usage.d.ts +3 -0
- package/lib/experimental/anthropic/usage.d.ts.map +1 -0
- package/lib/experimental/anthropic/usage.js +182 -0
- package/lib/experimental/anthropic/usage.js.map +1 -0
- package/lib/experimental/anthropic/usage.mjs +176 -0
- package/lib/experimental/anthropic/usage.mjs.map +1 -0
- package/lib/experimental/anthropic/utils.d.mts +2 -0
- package/lib/experimental/anthropic/utils.d.mts.map +1 -0
- package/lib/experimental/anthropic/utils.d.ts +2 -0
- package/lib/experimental/anthropic/utils.d.ts.map +1 -0
- package/lib/experimental/anthropic/utils.js +25 -0
- package/lib/experimental/anthropic/utils.js.map +1 -0
- package/lib/experimental/anthropic/utils.mjs +21 -0
- package/lib/experimental/anthropic/utils.mjs.map +1 -0
- package/lib/experimental/otel/constants.d.mts +53 -0
- package/lib/experimental/otel/constants.d.mts.map +1 -0
- package/lib/experimental/otel/constants.d.ts +53 -0
- package/lib/experimental/otel/constants.d.ts.map +1 -0
- package/lib/experimental/otel/constants.js +65 -0
- package/lib/experimental/otel/constants.js.map +1 -0
- package/lib/experimental/otel/constants.mjs +61 -0
- package/lib/experimental/otel/constants.mjs.map +1 -0
- package/lib/experimental/otel/exporter.d.mts +63 -0
- package/lib/experimental/otel/exporter.d.mts.map +1 -0
- package/lib/experimental/otel/exporter.d.ts +63 -0
- package/lib/experimental/otel/exporter.d.ts.map +1 -0
- package/lib/experimental/otel/exporter.js +208 -0
- package/lib/experimental/otel/exporter.js.map +1 -0
- package/lib/experimental/otel/exporter.mjs +203 -0
- package/lib/experimental/otel/exporter.mjs.map +1 -0
- package/lib/experimental/otel/processor.d.mts +14 -0
- package/lib/experimental/otel/processor.d.mts.map +1 -0
- package/lib/experimental/otel/processor.d.ts +14 -0
- package/lib/experimental/otel/processor.d.ts.map +1 -0
- package/lib/experimental/otel/processor.js +91 -0
- package/lib/experimental/otel/processor.js.map +1 -0
- package/lib/experimental/otel/processor.mjs +86 -0
- package/lib/experimental/otel/processor.mjs.map +1 -0
- package/lib/experimental/otel/setup.d.mts +67 -0
- package/lib/experimental/otel/setup.d.mts.map +1 -0
- package/lib/experimental/otel/setup.d.ts +67 -0
- package/lib/experimental/otel/setup.d.ts.map +1 -0
- package/lib/experimental/otel/setup.js +95 -0
- package/lib/experimental/otel/setup.js.map +1 -0
- package/lib/experimental/otel/setup.mjs +91 -0
- package/lib/experimental/otel/setup.mjs.map +1 -0
- package/lib/experimental/otel/translator.d.mts +23 -0
- package/lib/experimental/otel/translator.d.mts.map +1 -0
- package/lib/experimental/otel/translator.d.ts +23 -0
- package/lib/experimental/otel/translator.d.ts.map +1 -0
- package/lib/experimental/otel/translator.js +444 -0
- package/lib/experimental/otel/translator.js.map +1 -0
- package/lib/experimental/otel/translator.mjs +439 -0
- package/lib/experimental/otel/translator.mjs.map +1 -0
- package/lib/experimental/otel/types.d.mts +30 -0
- package/lib/experimental/otel/types.d.mts.map +1 -0
- package/lib/experimental/otel/types.d.ts +30 -0
- package/lib/experimental/otel/types.d.ts.map +1 -0
- package/lib/experimental/otel/types.js +6 -0
- package/lib/experimental/otel/types.js.map +1 -0
- package/lib/experimental/otel/types.mjs +5 -0
- package/lib/experimental/otel/types.mjs.map +1 -0
- package/lib/experimental/otel/utils.d.mts +13 -0
- package/lib/experimental/otel/utils.d.mts.map +1 -0
- package/lib/experimental/otel/utils.d.ts +13 -0
- package/lib/experimental/otel/utils.d.ts.map +1 -0
- package/lib/experimental/otel/utils.js +24 -0
- package/lib/experimental/otel/utils.js.map +1 -0
- package/lib/experimental/otel/utils.mjs +20 -0
- package/lib/experimental/otel/utils.mjs.map +1 -0
- package/lib/experimental/vercel/_agent_type.d.mts +6 -0
- package/lib/experimental/vercel/_agent_type.d.mts.map +1 -0
- package/lib/experimental/vercel/_agent_type.d.ts +6 -0
- package/lib/experimental/vercel/_agent_type.d.ts.map +1 -0
- package/lib/experimental/vercel/_agent_type.js +31 -0
- package/lib/experimental/vercel/_agent_type.js.map +1 -0
- package/lib/experimental/vercel/_agent_type.mjs +27 -0
- package/lib/experimental/vercel/_agent_type.mjs.map +1 -0
- package/lib/experimental/vercel/index.d.mts +4 -0
- package/lib/experimental/vercel/index.d.mts.map +1 -0
- package/lib/experimental/vercel/index.d.ts +4 -0
- package/lib/experimental/vercel/index.d.ts.map +1 -0
- package/lib/experimental/vercel/index.js +8 -0
- package/lib/experimental/vercel/index.js.map +1 -0
- package/lib/experimental/vercel/index.mjs +3 -0
- package/lib/experimental/vercel/index.mjs.map +1 -0
- package/lib/experimental/vercel/middleware.d.mts +39 -0
- package/lib/experimental/vercel/middleware.d.mts.map +1 -0
- package/lib/experimental/vercel/middleware.d.ts +39 -0
- package/lib/experimental/vercel/middleware.d.ts.map +1 -0
- package/lib/experimental/vercel/middleware.js +241 -0
- package/lib/experimental/vercel/middleware.js.map +1 -0
- package/lib/experimental/vercel/middleware.mjs +238 -0
- package/lib/experimental/vercel/middleware.mjs.map +1 -0
- package/lib/experimental/vercel/telemetry.d.mts +90 -0
- package/lib/experimental/vercel/telemetry.d.mts.map +1 -0
- package/lib/experimental/vercel/telemetry.d.ts +90 -0
- package/lib/experimental/vercel/telemetry.d.ts.map +1 -0
- package/lib/experimental/vercel/telemetry.js +600 -0
- package/lib/experimental/vercel/telemetry.js.map +1 -0
- package/lib/experimental/vercel/telemetry.mjs +597 -0
- package/lib/experimental/vercel/telemetry.mjs.map +1 -0
- package/lib/experimental/vercel/utils.d.mts +29 -0
- package/lib/experimental/vercel/utils.d.mts.map +1 -0
- package/lib/experimental/vercel/utils.d.ts +29 -0
- package/lib/experimental/vercel/utils.d.ts.map +1 -0
- package/lib/experimental/vercel/utils.js +287 -0
- package/lib/experimental/vercel/utils.js.map +1 -0
- package/lib/experimental/vercel/utils.mjs +281 -0
- package/lib/experimental/vercel/utils.mjs.map +1 -0
- package/lib/experimental/vercel/wrap.d.mts +258 -0
- package/lib/experimental/vercel/wrap.d.mts.map +1 -0
- package/lib/experimental/vercel/wrap.d.ts +258 -0
- package/lib/experimental/vercel/wrap.d.ts.map +1 -0
- package/lib/experimental/vercel/wrap.js +634 -0
- package/lib/experimental/vercel/wrap.js.map +1 -0
- package/lib/experimental/vercel/wrap.mjs +630 -0
- package/lib/experimental/vercel/wrap.mjs.map +1 -0
- package/lib/index.d.mts +13 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +46 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +13 -0
- package/lib/index.mjs.map +1 -0
- package/lib/jest/index.d.mts +560 -0
- package/lib/jest/index.d.mts.map +1 -0
- package/lib/jest/index.d.ts +560 -0
- package/lib/jest/index.d.ts.map +1 -0
- package/lib/jest/index.js +98 -0
- package/lib/jest/index.js.map +1 -0
- package/lib/jest/index.mjs +388 -0
- package/lib/jest/index.mjs.map +1 -0
- package/lib/jest/reporter.d.mts +6 -0
- package/lib/jest/reporter.d.mts.map +1 -0
- package/lib/jest/reporter.d.ts +6 -0
- package/lib/jest/reporter.d.ts.map +1 -0
- package/lib/jest/reporter.js +37 -0
- package/lib/jest/reporter.js.map +1 -0
- package/lib/jest/reporter.mjs +35 -0
- package/lib/jest/reporter.mjs.map +1 -0
- package/lib/langchain.d.mts +32 -0
- package/lib/langchain.d.mts.map +1 -0
- package/lib/langchain.d.ts +32 -0
- package/lib/langchain.d.ts.map +1 -0
- package/lib/langchain.js +141 -0
- package/lib/langchain.js.map +1 -0
- package/lib/langchain.mjs +136 -0
- package/lib/langchain.mjs.map +1 -0
- package/lib/run_trees.d.mts +181 -0
- package/lib/run_trees.d.mts.map +1 -0
- package/lib/run_trees.d.ts +181 -0
- package/lib/run_trees.d.ts.map +1 -0
- package/lib/run_trees.js +1212 -0
- package/lib/run_trees.js.map +1 -0
- package/lib/run_trees.mjs +1205 -0
- package/lib/run_trees.mjs.map +1 -0
- package/lib/sandbox/access_delegation.d.mts +16 -0
- package/lib/sandbox/access_delegation.d.mts.map +1 -0
- package/lib/sandbox/access_delegation.d.ts +16 -0
- package/lib/sandbox/access_delegation.d.ts.map +1 -0
- package/lib/sandbox/access_delegation.js +25 -0
- package/lib/sandbox/access_delegation.js.map +1 -0
- package/lib/sandbox/access_delegation.mjs +22 -0
- package/lib/sandbox/access_delegation.mjs.map +1 -0
- package/lib/sandbox/client.d.mts +339 -0
- package/lib/sandbox/client.d.mts.map +1 -0
- package/lib/sandbox/client.d.ts +339 -0
- package/lib/sandbox/client.d.ts.map +1 -0
- package/lib/sandbox/client.js +1110 -0
- package/lib/sandbox/client.js.map +1 -0
- package/lib/sandbox/client.mjs +1073 -0
- package/lib/sandbox/client.mjs.map +1 -0
- package/lib/sandbox/command_handle.d.mts +112 -0
- package/lib/sandbox/command_handle.d.mts.map +1 -0
- package/lib/sandbox/command_handle.d.ts +112 -0
- package/lib/sandbox/command_handle.d.ts.map +1 -0
- package/lib/sandbox/command_handle.js +411 -0
- package/lib/sandbox/command_handle.js.map +1 -0
- package/lib/sandbox/command_handle.mjs +407 -0
- package/lib/sandbox/command_handle.mjs.map +1 -0
- package/lib/sandbox/errors.d.mts +202 -0
- package/lib/sandbox/errors.d.mts.map +1 -0
- package/lib/sandbox/errors.d.ts +202 -0
- package/lib/sandbox/errors.d.ts.map +1 -0
- package/lib/sandbox/errors.js +431 -0
- package/lib/sandbox/errors.js.map +1 -0
- package/lib/sandbox/errors.mjs +406 -0
- package/lib/sandbox/errors.mjs.map +1 -0
- package/lib/sandbox/helpers.d.mts +109 -0
- package/lib/sandbox/helpers.d.mts.map +1 -0
- package/lib/sandbox/helpers.d.ts +109 -0
- package/lib/sandbox/helpers.d.ts.map +1 -0
- package/lib/sandbox/helpers.js +400 -0
- package/lib/sandbox/helpers.js.map +1 -0
- package/lib/sandbox/helpers.mjs +384 -0
- package/lib/sandbox/helpers.mjs.map +1 -0
- package/lib/sandbox/index.d.mts +43 -0
- package/lib/sandbox/index.d.mts.map +1 -0
- package/lib/sandbox/index.d.ts +43 -0
- package/lib/sandbox/index.d.ts.map +1 -0
- package/lib/sandbox/index.js +90 -0
- package/lib/sandbox/index.js.map +1 -0
- package/lib/sandbox/index.mjs +51 -0
- package/lib/sandbox/index.mjs.map +1 -0
- package/lib/sandbox/mounts.d.mts +50 -0
- package/lib/sandbox/mounts.d.mts.map +1 -0
- package/lib/sandbox/mounts.d.ts +50 -0
- package/lib/sandbox/mounts.d.ts.map +1 -0
- package/lib/sandbox/mounts.js +295 -0
- package/lib/sandbox/mounts.js.map +1 -0
- package/lib/sandbox/mounts.mjs +287 -0
- package/lib/sandbox/mounts.mjs.map +1 -0
- package/lib/sandbox/proxy_config.d.mts +55 -0
- package/lib/sandbox/proxy_config.d.mts.map +1 -0
- package/lib/sandbox/proxy_config.d.ts +55 -0
- package/lib/sandbox/proxy_config.d.ts.map +1 -0
- package/lib/sandbox/proxy_config.js +163 -0
- package/lib/sandbox/proxy_config.js.map +1 -0
- package/lib/sandbox/proxy_config.mjs +155 -0
- package/lib/sandbox/proxy_config.mjs.map +1 -0
- package/lib/sandbox/sandbox.d.mts +287 -0
- package/lib/sandbox/sandbox.d.mts.map +1 -0
- package/lib/sandbox/sandbox.d.ts +287 -0
- package/lib/sandbox/sandbox.d.ts.map +1 -0
- package/lib/sandbox/sandbox.js +654 -0
- package/lib/sandbox/sandbox.js.map +1 -0
- package/lib/sandbox/sandbox.mjs +650 -0
- package/lib/sandbox/sandbox.mjs.map +1 -0
- package/lib/sandbox/service_url.d.mts +52 -0
- package/lib/sandbox/service_url.d.mts.map +1 -0
- package/lib/sandbox/service_url.d.ts +52 -0
- package/lib/sandbox/service_url.d.ts.map +1 -0
- package/lib/sandbox/service_url.js +134 -0
- package/lib/sandbox/service_url.js.map +1 -0
- package/lib/sandbox/service_url.mjs +129 -0
- package/lib/sandbox/service_url.mjs.map +1 -0
- package/lib/sandbox/tracing.d.mts +2 -0
- package/lib/sandbox/tracing.d.mts.map +1 -0
- package/lib/sandbox/tracing.d.ts +2 -0
- package/lib/sandbox/tracing.d.ts.map +1 -0
- package/lib/sandbox/tracing.js +14 -0
- package/lib/sandbox/tracing.js.map +1 -0
- package/lib/sandbox/tracing.mjs +11 -0
- package/lib/sandbox/tracing.mjs.map +1 -0
- package/lib/sandbox/types.d.mts +934 -0
- package/lib/sandbox/types.d.mts.map +1 -0
- package/lib/sandbox/types.d.ts +934 -0
- package/lib/sandbox/types.d.ts.map +1 -0
- package/lib/sandbox/types.js +8 -0
- package/lib/sandbox/types.js.map +1 -0
- package/lib/sandbox/types.mjs +7 -0
- package/lib/sandbox/types.mjs.map +1 -0
- package/lib/sandbox/verify.d.mts +123 -0
- package/lib/sandbox/verify.d.mts.map +1 -0
- package/lib/sandbox/verify.d.ts +123 -0
- package/lib/sandbox/verify.d.ts.map +1 -0
- package/lib/sandbox/verify.js +301 -0
- package/lib/sandbox/verify.js.map +1 -0
- package/lib/sandbox/verify.mjs +297 -0
- package/lib/sandbox/verify.mjs.map +1 -0
- package/lib/sandbox/ws_execute.d.mts +93 -0
- package/lib/sandbox/ws_execute.d.mts.map +1 -0
- package/lib/sandbox/ws_execute.d.ts +93 -0
- package/lib/sandbox/ws_execute.d.ts.map +1 -0
- package/lib/sandbox/ws_execute.js +510 -0
- package/lib/sandbox/ws_execute.js.map +1 -0
- package/lib/sandbox/ws_execute.mjs +464 -0
- package/lib/sandbox/ws_execute.mjs.map +1 -0
- package/lib/schemas.d.mts +667 -0
- package/lib/schemas.d.mts.map +1 -0
- package/lib/schemas.d.ts +667 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +3 -0
- package/lib/schemas.js.map +1 -0
- package/lib/schemas.mjs +2 -0
- package/lib/schemas.mjs.map +1 -0
- package/lib/singletons/constants.d.mts +7 -0
- package/lib/singletons/constants.d.mts.map +1 -0
- package/lib/singletons/constants.d.ts +7 -0
- package/lib/singletons/constants.d.ts.map +1 -0
- package/lib/singletons/constants.js +13 -0
- package/lib/singletons/constants.js.map +1 -0
- package/lib/singletons/constants.mjs +9 -0
- package/lib/singletons/constants.mjs.map +1 -0
- package/lib/singletons/fetch.d.mts +10 -0
- package/lib/singletons/fetch.d.mts.map +1 -0
- package/lib/singletons/fetch.d.ts +10 -0
- package/lib/singletons/fetch.d.ts.map +1 -0
- package/lib/singletons/fetch.js +54 -0
- package/lib/singletons/fetch.js.map +1 -0
- package/lib/singletons/fetch.mjs +47 -0
- package/lib/singletons/fetch.mjs.map +1 -0
- package/lib/singletons/otel.d.mts +64 -0
- package/lib/singletons/otel.d.mts.map +1 -0
- package/lib/singletons/otel.d.ts +64 -0
- package/lib/singletons/otel.d.ts.map +1 -0
- package/lib/singletons/otel.js +157 -0
- package/lib/singletons/otel.js.map +1 -0
- package/lib/singletons/otel.mjs +149 -0
- package/lib/singletons/otel.mjs.map +1 -0
- package/lib/singletons/traceable.d.mts +25 -0
- package/lib/singletons/traceable.d.mts.map +1 -0
- package/lib/singletons/traceable.d.ts +25 -0
- package/lib/singletons/traceable.d.ts.map +1 -0
- package/lib/singletons/traceable.js +49 -0
- package/lib/singletons/traceable.js.map +1 -0
- package/lib/singletons/traceable.mjs +43 -0
- package/lib/singletons/traceable.mjs.map +1 -0
- package/lib/singletons/types.d.mts +48 -0
- package/lib/singletons/types.d.mts.map +1 -0
- package/lib/singletons/types.d.ts +48 -0
- package/lib/singletons/types.d.ts.map +1 -0
- package/lib/singletons/types.js +4 -0
- package/lib/singletons/types.js.map +1 -0
- package/lib/singletons/types.mjs +2 -0
- package/lib/singletons/types.mjs.map +1 -0
- package/lib/traceable.d.mts +90 -0
- package/lib/traceable.d.mts.map +1 -0
- package/lib/traceable.d.ts +90 -0
- package/lib/traceable.d.ts.map +1 -0
- package/lib/traceable.js +918 -0
- package/lib/traceable.js.map +1 -0
- package/lib/traceable.mjs +910 -0
- package/lib/traceable.mjs.map +1 -0
- package/lib/utils/_git.d.mts +15 -0
- package/lib/utils/_git.d.mts.map +1 -0
- package/lib/utils/_git.d.ts +15 -0
- package/lib/utils/_git.d.ts.map +1 -0
- package/lib/utils/_git.js +133 -0
- package/lib/utils/_git.js.map +1 -0
- package/lib/utils/_git.mjs +95 -0
- package/lib/utils/_git.mjs.map +1 -0
- package/lib/utils/_uuid.d.mts +48 -0
- package/lib/utils/_uuid.d.mts.map +1 -0
- package/lib/utils/_uuid.d.ts +48 -0
- package/lib/utils/_uuid.d.ts.map +1 -0
- package/lib/utils/_uuid.js +172 -0
- package/lib/utils/_uuid.js.map +1 -0
- package/lib/utils/_uuid.mjs +165 -0
- package/lib/utils/_uuid.mjs.map +1 -0
- package/lib/utils/addressing.d.mts +28 -0
- package/lib/utils/addressing.d.mts.map +1 -0
- package/lib/utils/addressing.d.ts +28 -0
- package/lib/utils/addressing.d.ts.map +1 -0
- package/lib/utils/addressing.js +100 -0
- package/lib/utils/addressing.js.map +1 -0
- package/lib/utils/addressing.mjs +92 -0
- package/lib/utils/addressing.mjs.map +1 -0
- package/lib/utils/asserts.d.mts +8 -0
- package/lib/utils/asserts.d.mts.map +1 -0
- package/lib/utils/asserts.d.ts +8 -0
- package/lib/utils/asserts.d.ts.map +1 -0
- package/lib/utils/asserts.js +46 -0
- package/lib/utils/asserts.js.map +1 -0
- package/lib/utils/asserts.mjs +36 -0
- package/lib/utils/asserts.mjs.map +1 -0
- package/lib/utils/async_caller.d.mts +56 -0
- package/lib/utils/async_caller.d.mts.map +1 -0
- package/lib/utils/async_caller.d.ts +56 -0
- package/lib/utils/async_caller.d.ts.map +1 -0
- package/lib/utils/async_caller.js +158 -0
- package/lib/utils/async_caller.js.map +1 -0
- package/lib/utils/async_caller.mjs +153 -0
- package/lib/utils/async_caller.mjs.map +1 -0
- package/lib/utils/atee.d.mts +2 -0
- package/lib/utils/atee.d.mts.map +1 -0
- package/lib/utils/atee.d.ts +2 -0
- package/lib/utils/atee.d.ts.map +1 -0
- package/lib/utils/atee.js +24 -0
- package/lib/utils/atee.js.map +1 -0
- package/lib/utils/atee.mjs +21 -0
- package/lib/utils/atee.mjs.map +1 -0
- package/lib/utils/chalk/source/index.d.mts +20 -0
- package/lib/utils/chalk/source/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/index.d.ts +20 -0
- package/lib/utils/chalk/source/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/index.js +186 -0
- package/lib/utils/chalk/source/index.js.map +1 -0
- package/lib/utils/chalk/source/index.mjs +173 -0
- package/lib/utils/chalk/source/index.mjs.map +1 -0
- package/lib/utils/chalk/source/utilities.d.mts +3 -0
- package/lib/utils/chalk/source/utilities.d.mts.map +1 -0
- package/lib/utils/chalk/source/utilities.d.ts +3 -0
- package/lib/utils/chalk/source/utilities.d.ts.map +1 -0
- package/lib/utils/chalk/source/utilities.js +36 -0
- package/lib/utils/chalk/source/utilities.js.map +1 -0
- package/lib/utils/chalk/source/utilities.mjs +32 -0
- package/lib/utils/chalk/source/utilities.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.mts +59 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.ts +59 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.js +194 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.js.map +1 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.mjs +191 -0
- package/lib/utils/chalk/source/vendor/ansi-styles/index.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.mts +16 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.ts +16 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.js +32 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.js.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.mjs +30 -0
- package/lib/utils/chalk/source/vendor/supports-color/browser.mjs.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.mts +22 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.mts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.ts +22 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.d.ts.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.js +154 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.js.map +1 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.mjs +150 -0
- package/lib/utils/chalk/source/vendor/supports-color/index.mjs.map +1 -0
- package/lib/utils/console-table-printer/index.d.mts +5 -0
- package/lib/utils/console-table-printer/index.d.mts.map +1 -0
- package/lib/utils/console-table-printer/index.d.ts +5 -0
- package/lib/utils/console-table-printer/index.d.ts.map +1 -0
- package/lib/utils/console-table-printer/index.js +10 -0
- package/lib/utils/console-table-printer/index.js.map +1 -0
- package/lib/utils/console-table-printer/index.mjs +4 -0
- package/lib/utils/console-table-printer/index.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.mts +15 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.ts +15 -0
- package/lib/utils/console-table-printer/src/console-table-printer.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.js +41 -0
- package/lib/utils/console-table-printer/src/console-table-printer.js.map +1 -0
- package/lib/utils/console-table-printer/src/console-table-printer.mjs +37 -0
- package/lib/utils/console-table-printer/src/console-table-printer.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.mts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.ts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.js +26 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.mjs +21 -0
- package/lib/utils/console-table-printer/src/internalTable/input-converter.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.mts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts +7 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.js +141 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.mjs +134 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table-printer.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.mts +32 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.ts +32 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.js +187 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.mjs +185 -0
- package/lib/utils/console-table-printer/src/internalTable/internal-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.mts +4 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts +4 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.js +54 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.js.map +1 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.mjs +49 -0
- package/lib/utils/console-table-printer/src/internalTable/table-pre-processors.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.d.mts +15 -0
- package/lib/utils/console-table-printer/src/models/common.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.d.ts +15 -0
- package/lib/utils/console-table-printer/src/models/common.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.js +3 -0
- package/lib/utils/console-table-printer/src/models/common.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/common.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/common.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.mts +100 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.ts +100 -0
- package/lib/utils/console-table-printer/src/models/external-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.js +3 -0
- package/lib/utils/console-table-printer/src/models/external-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/external-table.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/external-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.mts +25 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.ts +25 -0
- package/lib/utils/console-table-printer/src/models/internal-table.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.js +3 -0
- package/lib/utils/console-table-printer/src/models/internal-table.js.map +1 -0
- package/lib/utils/console-table-printer/src/models/internal-table.mjs +2 -0
- package/lib/utils/console-table-printer/src/models/internal-table.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.mts +13 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.ts +13 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.js +44 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.mjs +40 -0
- package/lib/utils/console-table-printer/src/utils/colored-console-line.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.mts +4 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.ts +4 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.js +24 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.mjs +19 -0
- package/lib/utils/console-table-printer/src/utils/console-utils.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.mts +5 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.ts +5 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.js +69 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.mjs +63 -0
- package/lib/utils/console-table-printer/src/utils/string-utils.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.mts +12 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.ts +12 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.js +56 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.mjs +53 -0
- package/lib/utils/console-table-printer/src/utils/table-constants.mjs.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.mts +30 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.mts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.ts +30 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.d.ts.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.js +102 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.js.map +1 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.mjs +89 -0
- package/lib/utils/console-table-printer/src/utils/table-helpers.mjs.map +1 -0
- package/lib/utils/context_vars.d.mts +9 -0
- package/lib/utils/context_vars.d.mts.map +1 -0
- package/lib/utils/context_vars.d.ts +9 -0
- package/lib/utils/context_vars.d.ts.map +1 -0
- package/lib/utils/context_vars.js +32 -0
- package/lib/utils/context_vars.js.map +1 -0
- package/lib/utils/context_vars.mjs +28 -0
- package/lib/utils/context_vars.mjs.map +1 -0
- package/lib/utils/env.d.mts +54 -0
- package/lib/utils/env.d.mts.map +1 -0
- package/lib/utils/env.d.ts +54 -0
- package/lib/utils/env.d.ts.map +1 -0
- package/lib/utils/env.js +270 -0
- package/lib/utils/env.js.map +1 -0
- package/lib/utils/env.mjs +252 -0
- package/lib/utils/env.mjs.map +1 -0
- package/lib/utils/error.d.mts +73 -0
- package/lib/utils/error.d.mts.map +1 -0
- package/lib/utils/error.d.ts +73 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/error.js +198 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/error.mjs +186 -0
- package/lib/utils/error.mjs.map +1 -0
- package/lib/utils/fast-safe-stringify/index.d.mts +48 -0
- package/lib/utils/fast-safe-stringify/index.d.mts.map +1 -0
- package/lib/utils/fast-safe-stringify/index.d.ts +48 -0
- package/lib/utils/fast-safe-stringify/index.d.ts.map +1 -0
- package/lib/utils/fast-safe-stringify/index.js +487 -0
- package/lib/utils/fast-safe-stringify/index.js.map +1 -0
- package/lib/utils/fast-safe-stringify/index.mjs +483 -0
- package/lib/utils/fast-safe-stringify/index.mjs.map +1 -0
- package/lib/utils/fs.browser.d.mts +29 -0
- package/lib/utils/fs.browser.d.mts.map +1 -0
- package/lib/utils/fs.browser.d.ts +29 -0
- package/lib/utils/fs.browser.d.ts.map +1 -0
- package/lib/utils/fs.browser.js +63 -0
- package/lib/utils/fs.browser.js.map +1 -0
- package/lib/utils/fs.browser.mjs +46 -0
- package/lib/utils/fs.browser.mjs.map +1 -0
- package/lib/utils/fs.d.mts +25 -0
- package/lib/utils/fs.d.mts.map +1 -0
- package/lib/utils/fs.d.ts +25 -0
- package/lib/utils/fs.d.ts.map +1 -0
- package/lib/utils/fs.js +92 -0
- package/lib/utils/fs.js.map +1 -0
- package/lib/utils/fs.mjs +74 -0
- package/lib/utils/fs.mjs.map +1 -0
- package/lib/utils/guard.d.mts +7 -0
- package/lib/utils/guard.d.mts.map +1 -0
- package/lib/utils/guard.d.ts +7 -0
- package/lib/utils/guard.d.ts.map +1 -0
- package/lib/utils/guard.js +14 -0
- package/lib/utils/guard.js.map +1 -0
- package/lib/utils/guard.mjs +11 -0
- package/lib/utils/guard.mjs.map +1 -0
- package/lib/utils/is-network-error/index.d.mts +2 -0
- package/lib/utils/is-network-error/index.d.mts.map +1 -0
- package/lib/utils/is-network-error/index.d.ts +2 -0
- package/lib/utils/is-network-error/index.d.ts.map +1 -0
- package/lib/utils/is-network-error/index.js +43 -0
- package/lib/utils/is-network-error/index.js.map +1 -0
- package/lib/utils/is-network-error/index.mjs +40 -0
- package/lib/utils/is-network-error/index.mjs.map +1 -0
- package/lib/utils/jestlike/constants.d.mts +4 -0
- package/lib/utils/jestlike/constants.d.mts.map +1 -0
- package/lib/utils/jestlike/constants.d.ts +4 -0
- package/lib/utils/jestlike/constants.d.ts.map +1 -0
- package/lib/utils/jestlike/constants.js +10 -0
- package/lib/utils/jestlike/constants.js.map +1 -0
- package/lib/utils/jestlike/constants.mjs +7 -0
- package/lib/utils/jestlike/constants.mjs.map +1 -0
- package/lib/utils/jestlike/globals.d.mts +36 -0
- package/lib/utils/jestlike/globals.d.mts.map +1 -0
- package/lib/utils/jestlike/globals.d.ts +36 -0
- package/lib/utils/jestlike/globals.d.ts.map +1 -0
- package/lib/utils/jestlike/globals.js +48 -0
- package/lib/utils/jestlike/globals.js.map +1 -0
- package/lib/utils/jestlike/globals.mjs +43 -0
- package/lib/utils/jestlike/globals.mjs.map +1 -0
- package/lib/utils/jestlike/index.d.mts +108 -0
- package/lib/utils/jestlike/index.d.mts.map +1 -0
- package/lib/utils/jestlike/index.d.ts +108 -0
- package/lib/utils/jestlike/index.d.ts.map +1 -0
- package/lib/utils/jestlike/index.js +665 -0
- package/lib/utils/jestlike/index.js.map +1 -0
- package/lib/utils/jestlike/index.mjs +655 -0
- package/lib/utils/jestlike/index.mjs.map +1 -0
- package/lib/utils/jestlike/matchers.d.mts +28 -0
- package/lib/utils/jestlike/matchers.d.mts.map +1 -0
- package/lib/utils/jestlike/matchers.d.ts +28 -0
- package/lib/utils/jestlike/matchers.d.ts.map +1 -0
- package/lib/utils/jestlike/matchers.js +104 -0
- package/lib/utils/jestlike/matchers.js.map +1 -0
- package/lib/utils/jestlike/matchers.mjs +99 -0
- package/lib/utils/jestlike/matchers.mjs.map +1 -0
- package/lib/utils/jestlike/reporter.d.mts +6 -0
- package/lib/utils/jestlike/reporter.d.mts.map +1 -0
- package/lib/utils/jestlike/reporter.d.ts +6 -0
- package/lib/utils/jestlike/reporter.d.ts.map +1 -0
- package/lib/utils/jestlike/reporter.js +261 -0
- package/lib/utils/jestlike/reporter.js.map +1 -0
- package/lib/utils/jestlike/reporter.mjs +257 -0
- package/lib/utils/jestlike/reporter.mjs.map +1 -0
- package/lib/utils/jestlike/types.d.mts +40 -0
- package/lib/utils/jestlike/types.d.mts.map +1 -0
- package/lib/utils/jestlike/types.d.ts +40 -0
- package/lib/utils/jestlike/types.d.ts.map +1 -0
- package/lib/utils/jestlike/types.js +3 -0
- package/lib/utils/jestlike/types.js.map +1 -0
- package/lib/utils/jestlike/types.mjs +2 -0
- package/lib/utils/jestlike/types.mjs.map +1 -0
- package/lib/utils/jestlike/vendor/chain.d.mts +2 -0
- package/lib/utils/jestlike/vendor/chain.d.mts.map +1 -0
- package/lib/utils/jestlike/vendor/chain.d.ts +2 -0
- package/lib/utils/jestlike/vendor/chain.d.ts.map +1 -0
- package/lib/utils/jestlike/vendor/chain.js +92 -0
- package/lib/utils/jestlike/vendor/chain.js.map +1 -0
- package/lib/utils/jestlike/vendor/chain.mjs +89 -0
- package/lib/utils/jestlike/vendor/chain.mjs.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.mts +13 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.mts.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.ts +13 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.d.ts.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.js +97 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.js.map +1 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.mjs +93 -0
- package/lib/utils/jestlike/vendor/evaluatedBy.mjs.map +1 -0
- package/lib/utils/ls_agent_type.d.mts +10 -0
- package/lib/utils/ls_agent_type.d.mts.map +1 -0
- package/lib/utils/ls_agent_type.d.ts +10 -0
- package/lib/utils/ls_agent_type.d.ts.map +1 -0
- package/lib/utils/ls_agent_type.js +32 -0
- package/lib/utils/ls_agent_type.js.map +1 -0
- package/lib/utils/ls_agent_type.mjs +26 -0
- package/lib/utils/ls_agent_type.mjs.map +1 -0
- package/lib/utils/messages.d.mts +12 -0
- package/lib/utils/messages.d.mts.map +1 -0
- package/lib/utils/messages.d.ts +12 -0
- package/lib/utils/messages.d.ts.map +1 -0
- package/lib/utils/messages.js +22 -0
- package/lib/utils/messages.js.map +1 -0
- package/lib/utils/messages.mjs +18 -0
- package/lib/utils/messages.mjs.map +1 -0
- package/lib/utils/p-queue.d.mts +3 -0
- package/lib/utils/p-queue.d.mts.map +1 -0
- package/lib/utils/p-queue.d.ts +3 -0
- package/lib/utils/p-queue.d.ts.map +1 -0
- package/lib/utils/p-queue.js +8 -0
- package/lib/utils/p-queue.js.map +1 -0
- package/lib/utils/p-queue.mjs +4 -0
- package/lib/utils/p-queue.mjs.map +1 -0
- package/lib/utils/p-retry/index.d.mts +6 -0
- package/lib/utils/p-retry/index.d.mts.map +1 -0
- package/lib/utils/p-retry/index.d.ts +6 -0
- package/lib/utils/p-retry/index.d.ts.map +1 -0
- package/lib/utils/p-retry/index.js +199 -0
- package/lib/utils/p-retry/index.js.map +1 -0
- package/lib/utils/p-retry/index.mjs +192 -0
- package/lib/utils/p-retry/index.mjs.map +1 -0
- package/lib/utils/profile-lock.d.mts +21 -0
- package/lib/utils/profile-lock.d.mts.map +1 -0
- package/lib/utils/profile-lock.d.ts +21 -0
- package/lib/utils/profile-lock.d.ts.map +1 -0
- package/lib/utils/profile-lock.js +109 -0
- package/lib/utils/profile-lock.js.map +1 -0
- package/lib/utils/profile-lock.mjs +104 -0
- package/lib/utils/profile-lock.mjs.map +1 -0
- package/lib/utils/profiles.d.mts +56 -0
- package/lib/utils/profiles.d.mts.map +1 -0
- package/lib/utils/profiles.d.ts +56 -0
- package/lib/utils/profiles.d.ts.map +1 -0
- package/lib/utils/profiles.js +412 -0
- package/lib/utils/profiles.js.map +1 -0
- package/lib/utils/profiles.mjs +404 -0
- package/lib/utils/profiles.mjs.map +1 -0
- package/lib/utils/project.d.mts +2 -0
- package/lib/utils/project.d.mts.map +1 -0
- package/lib/utils/project.d.ts +2 -0
- package/lib/utils/project.d.ts.map +1 -0
- package/lib/utils/project.js +11 -0
- package/lib/utils/project.js.map +1 -0
- package/lib/utils/project.mjs +7 -0
- package/lib/utils/project.mjs.map +1 -0
- package/lib/utils/prompt_cache/index.d.mts +171 -0
- package/lib/utils/prompt_cache/index.d.mts.map +1 -0
- package/lib/utils/prompt_cache/index.d.ts +171 -0
- package/lib/utils/prompt_cache/index.d.ts.map +1 -0
- package/lib/utils/prompt_cache/index.js +362 -0
- package/lib/utils/prompt_cache/index.js.map +1 -0
- package/lib/utils/prompt_cache/index.mjs +356 -0
- package/lib/utils/prompt_cache/index.mjs.map +1 -0
- package/lib/utils/prompts.d.mts +7 -0
- package/lib/utils/prompts.d.mts.map +1 -0
- package/lib/utils/prompts.d.ts +7 -0
- package/lib/utils/prompts.d.ts.map +1 -0
- package/lib/utils/prompts.js +34 -0
- package/lib/utils/prompts.js.map +1 -0
- package/lib/utils/prompts.mjs +31 -0
- package/lib/utils/prompts.mjs.map +1 -0
- package/lib/utils/redaction.d.mts +11 -0
- package/lib/utils/redaction.d.mts.map +1 -0
- package/lib/utils/redaction.d.ts +11 -0
- package/lib/utils/redaction.d.ts.map +1 -0
- package/lib/utils/redaction.js +39 -0
- package/lib/utils/redaction.js.map +1 -0
- package/lib/utils/redaction.mjs +34 -0
- package/lib/utils/redaction.mjs.map +1 -0
- package/lib/utils/sampling.d.mts +11 -0
- package/lib/utils/sampling.d.mts.map +1 -0
- package/lib/utils/sampling.d.ts +11 -0
- package/lib/utils/sampling.d.ts.map +1 -0
- package/lib/utils/sampling.js +35 -0
- package/lib/utils/sampling.js.map +1 -0
- package/lib/utils/sampling.mjs +31 -0
- package/lib/utils/sampling.mjs.map +1 -0
- package/lib/utils/serialize_worker.d.mts +67 -0
- package/lib/utils/serialize_worker.d.mts.map +1 -0
- package/lib/utils/serialize_worker.d.ts +67 -0
- package/lib/utils/serialize_worker.d.ts.map +1 -0
- package/lib/utils/serialize_worker.js +387 -0
- package/lib/utils/serialize_worker.js.map +1 -0
- package/lib/utils/serialize_worker.mjs +381 -0
- package/lib/utils/serialize_worker.mjs.map +1 -0
- package/lib/utils/shuffle.d.mts +2 -0
- package/lib/utils/shuffle.d.mts.map +1 -0
- package/lib/utils/shuffle.d.ts +2 -0
- package/lib/utils/shuffle.d.ts.map +1 -0
- package/lib/utils/shuffle.js +15 -0
- package/lib/utils/shuffle.js.map +1 -0
- package/lib/utils/shuffle.mjs +12 -0
- package/lib/utils/shuffle.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/index.d.mts +4 -0
- package/lib/utils/simple-wcswidth/index.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/index.d.ts +4 -0
- package/lib/utils/simple-wcswidth/index.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/index.js +9 -0
- package/lib/utils/simple-wcswidth/index.js.map +1 -0
- package/lib/utils/simple-wcswidth/index.mjs +4 -0
- package/lib/utils/simple-wcswidth/index.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.mts +4 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.ts +4 -0
- package/lib/utils/simple-wcswidth/src/binary-search.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.js +25 -0
- package/lib/utils/simple-wcswidth/src/binary-search.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/binary-search.mjs +23 -0
- package/lib/utils/simple-wcswidth/src/binary-search.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.d.mts +5 -0
- package/lib/utils/simple-wcswidth/src/models.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.d.ts +5 -0
- package/lib/utils/simple-wcswidth/src/models.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.js +3 -0
- package/lib/utils/simple-wcswidth/src/models.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/models.mjs +2 -0
- package/lib/utils/simple-wcswidth/src/models.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.mts +4 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.ts +4 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.js +150 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.mjs +148 -0
- package/lib/utils/simple-wcswidth/src/non-spacing-chars.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.mts +3 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.ts +3 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.js +19 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.mjs +16 -0
- package/lib/utils/simple-wcswidth/src/wcswidth.mjs.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.mts +3 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.mts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.ts +3 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.d.ts.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.js +66 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.js.map +1 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.mjs +63 -0
- package/lib/utils/simple-wcswidth/src/wcwidth.mjs.map +1 -0
- package/lib/utils/types.d.mts +3 -0
- package/lib/utils/types.d.mts.map +1 -0
- package/lib/utils/types.d.ts +3 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/types.js +14 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/types.mjs +9 -0
- package/lib/utils/types.mjs.map +1 -0
- package/lib/utils/url.d.mts +9 -0
- package/lib/utils/url.d.mts.map +1 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/utils/url.d.ts.map +1 -0
- package/lib/utils/url.js +33 -0
- package/lib/utils/url.js.map +1 -0
- package/lib/utils/url.mjs +30 -0
- package/lib/utils/url.mjs.map +1 -0
- package/lib/utils/usage.d.mts +2 -0
- package/lib/utils/usage.d.mts.map +1 -0
- package/lib/utils/usage.d.ts +2 -0
- package/lib/utils/usage.d.ts.map +1 -0
- package/lib/utils/usage.js +29 -0
- package/lib/utils/usage.js.map +1 -0
- package/lib/utils/usage.mjs +25 -0
- package/lib/utils/usage.mjs.map +1 -0
- package/lib/utils/uuid/src/index.d.mts +11 -0
- package/lib/utils/uuid/src/index.d.mts.map +1 -0
- package/lib/utils/uuid/src/index.d.ts +11 -0
- package/lib/utils/uuid/src/index.d.ts.map +1 -0
- package/lib/utils/uuid/src/index.js +23 -0
- package/lib/utils/uuid/src/index.js.map +1 -0
- package/lib/utils/uuid/src/index.mjs +10 -0
- package/lib/utils/uuid/src/index.mjs.map +1 -0
- package/lib/utils/uuid/src/max.d.mts +3 -0
- package/lib/utils/uuid/src/max.d.mts.map +1 -0
- package/lib/utils/uuid/src/max.d.ts +3 -0
- package/lib/utils/uuid/src/max.d.ts.map +1 -0
- package/lib/utils/uuid/src/max.js +4 -0
- package/lib/utils/uuid/src/max.js.map +1 -0
- package/lib/utils/uuid/src/max.mjs +2 -0
- package/lib/utils/uuid/src/max.mjs.map +1 -0
- package/lib/utils/uuid/src/nil.d.mts +3 -0
- package/lib/utils/uuid/src/nil.d.mts.map +1 -0
- package/lib/utils/uuid/src/nil.d.ts +3 -0
- package/lib/utils/uuid/src/nil.d.ts.map +1 -0
- package/lib/utils/uuid/src/nil.js +4 -0
- package/lib/utils/uuid/src/nil.js.map +1 -0
- package/lib/utils/uuid/src/nil.mjs +2 -0
- package/lib/utils/uuid/src/nil.mjs.map +1 -0
- package/lib/utils/uuid/src/parse.d.mts +4 -0
- package/lib/utils/uuid/src/parse.d.mts.map +1 -0
- package/lib/utils/uuid/src/parse.d.ts +4 -0
- package/lib/utils/uuid/src/parse.d.ts.map +1 -0
- package/lib/utils/uuid/src/parse.js +22 -0
- package/lib/utils/uuid/src/parse.js.map +1 -0
- package/lib/utils/uuid/src/parse.mjs +19 -0
- package/lib/utils/uuid/src/parse.mjs.map +1 -0
- package/lib/utils/uuid/src/regex.d.mts +3 -0
- package/lib/utils/uuid/src/regex.d.mts.map +1 -0
- package/lib/utils/uuid/src/regex.d.ts +3 -0
- package/lib/utils/uuid/src/regex.d.ts.map +1 -0
- package/lib/utils/uuid/src/regex.js +4 -0
- package/lib/utils/uuid/src/regex.js.map +1 -0
- package/lib/utils/uuid/src/regex.mjs +2 -0
- package/lib/utils/uuid/src/regex.mjs.map +1 -0
- package/lib/utils/uuid/src/rng.d.mts +2 -0
- package/lib/utils/uuid/src/rng.d.mts.map +1 -0
- package/lib/utils/uuid/src/rng.d.ts +2 -0
- package/lib/utils/uuid/src/rng.d.ts.map +1 -0
- package/lib/utils/uuid/src/rng.js +11 -0
- package/lib/utils/uuid/src/rng.js.map +1 -0
- package/lib/utils/uuid/src/rng.mjs +8 -0
- package/lib/utils/uuid/src/rng.mjs.map +1 -0
- package/lib/utils/uuid/src/sha1.d.mts +3 -0
- package/lib/utils/uuid/src/sha1.d.mts.map +1 -0
- package/lib/utils/uuid/src/sha1.d.ts +3 -0
- package/lib/utils/uuid/src/sha1.d.ts.map +1 -0
- package/lib/utils/uuid/src/sha1.js +76 -0
- package/lib/utils/uuid/src/sha1.js.map +1 -0
- package/lib/utils/uuid/src/sha1.mjs +74 -0
- package/lib/utils/uuid/src/sha1.mjs.map +1 -0
- package/lib/utils/uuid/src/stringify.d.mts +4 -0
- package/lib/utils/uuid/src/stringify.d.mts.map +1 -0
- package/lib/utils/uuid/src/stringify.d.ts +4 -0
- package/lib/utils/uuid/src/stringify.d.ts.map +1 -0
- package/lib/utils/uuid/src/stringify.js +54 -0
- package/lib/utils/uuid/src/stringify.js.map +1 -0
- package/lib/utils/uuid/src/stringify.mjs +50 -0
- package/lib/utils/uuid/src/stringify.mjs.map +1 -0
- package/lib/utils/uuid/src/types.d.mts +23 -0
- package/lib/utils/uuid/src/types.d.mts.map +1 -0
- package/lib/utils/uuid/src/types.d.ts +23 -0
- package/lib/utils/uuid/src/types.d.ts.map +1 -0
- package/lib/utils/uuid/src/types.js +3 -0
- package/lib/utils/uuid/src/types.js.map +1 -0
- package/lib/utils/uuid/src/types.mjs +2 -0
- package/lib/utils/uuid/src/types.mjs.map +1 -0
- package/lib/utils/uuid/src/v35.d.mts +8 -0
- package/lib/utils/uuid/src/v35.d.mts.map +1 -0
- package/lib/utils/uuid/src/v35.d.ts +8 -0
- package/lib/utils/uuid/src/v35.d.ts.map +1 -0
- package/lib/utils/uuid/src/v35.js +51 -0
- package/lib/utils/uuid/src/v35.js.map +1 -0
- package/lib/utils/uuid/src/v35.mjs +45 -0
- package/lib/utils/uuid/src/v35.mjs.map +1 -0
- package/lib/utils/uuid/src/v4.d.mts +5 -0
- package/lib/utils/uuid/src/v4.d.mts.map +1 -0
- package/lib/utils/uuid/src/v4.d.ts +5 -0
- package/lib/utils/uuid/src/v4.d.ts.map +1 -0
- package/lib/utils/uuid/src/v4.js +39 -0
- package/lib/utils/uuid/src/v4.js.map +1 -0
- package/lib/utils/uuid/src/v4.mjs +36 -0
- package/lib/utils/uuid/src/v4.mjs.map +1 -0
- package/lib/utils/uuid/src/v5.d.mts +10 -0
- package/lib/utils/uuid/src/v5.d.mts.map +1 -0
- package/lib/utils/uuid/src/v5.d.ts +10 -0
- package/lib/utils/uuid/src/v5.d.ts.map +1 -0
- package/lib/utils/uuid/src/v5.js +16 -0
- package/lib/utils/uuid/src/v5.js.map +1 -0
- package/lib/utils/uuid/src/v5.mjs +10 -0
- package/lib/utils/uuid/src/v5.mjs.map +1 -0
- package/lib/utils/uuid/src/v7.d.mts +10 -0
- package/lib/utils/uuid/src/v7.d.mts.map +1 -0
- package/lib/utils/uuid/src/v7.d.ts +10 -0
- package/lib/utils/uuid/src/v7.d.ts.map +1 -0
- package/lib/utils/uuid/src/v7.js +87 -0
- package/lib/utils/uuid/src/v7.js.map +1 -0
- package/lib/utils/uuid/src/v7.mjs +83 -0
- package/lib/utils/uuid/src/v7.mjs.map +1 -0
- package/lib/utils/uuid/src/validate.d.mts +3 -0
- package/lib/utils/uuid/src/validate.d.mts.map +1 -0
- package/lib/utils/uuid/src/validate.d.ts +3 -0
- package/lib/utils/uuid/src/validate.d.ts.map +1 -0
- package/lib/utils/uuid/src/validate.js +9 -0
- package/lib/utils/uuid/src/validate.js.map +1 -0
- package/lib/utils/uuid/src/validate.mjs +6 -0
- package/lib/utils/uuid/src/validate.mjs.map +1 -0
- package/lib/utils/uuid/src/version.d.mts +3 -0
- package/lib/utils/uuid/src/version.d.mts.map +1 -0
- package/lib/utils/uuid/src/version.d.ts +3 -0
- package/lib/utils/uuid/src/version.d.ts.map +1 -0
- package/lib/utils/uuid/src/version.js +12 -0
- package/lib/utils/uuid/src/version.js.map +1 -0
- package/lib/utils/uuid/src/version.mjs +9 -0
- package/lib/utils/uuid/src/version.mjs.map +1 -0
- package/lib/utils/v2_migration.d.mts +16 -0
- package/lib/utils/v2_migration.d.mts.map +1 -0
- package/lib/utils/v2_migration.d.ts +16 -0
- package/lib/utils/v2_migration.d.ts.map +1 -0
- package/lib/utils/v2_migration.js +75 -0
- package/lib/utils/v2_migration.js.map +1 -0
- package/lib/utils/v2_migration.mjs +69 -0
- package/lib/utils/v2_migration.mjs.map +1 -0
- package/lib/utils/vercel.d.mts +26 -0
- package/lib/utils/vercel.d.mts.map +1 -0
- package/lib/utils/vercel.d.ts +26 -0
- package/lib/utils/vercel.d.ts.map +1 -0
- package/lib/utils/vercel.js +284 -0
- package/lib/utils/vercel.js.map +1 -0
- package/lib/utils/vercel.mjs +279 -0
- package/lib/utils/vercel.mjs.map +1 -0
- package/lib/utils/warn.d.mts +5 -0
- package/lib/utils/warn.d.mts.map +1 -0
- package/lib/utils/warn.d.ts +5 -0
- package/lib/utils/warn.d.ts.map +1 -0
- package/lib/utils/warn.js +37 -0
- package/lib/utils/warn.js.map +1 -0
- package/lib/utils/warn.mjs +33 -0
- package/lib/utils/warn.mjs.map +1 -0
- package/lib/utils/worker_threads.browser.d.mts +15 -0
- package/lib/utils/worker_threads.browser.d.mts.map +1 -0
- package/lib/utils/worker_threads.browser.d.ts +15 -0
- package/lib/utils/worker_threads.browser.d.ts.map +1 -0
- package/lib/utils/worker_threads.browser.js +17 -0
- package/lib/utils/worker_threads.browser.js.map +1 -0
- package/lib/utils/worker_threads.browser.mjs +14 -0
- package/lib/utils/worker_threads.browser.mjs.map +1 -0
- package/lib/utils/worker_threads.d.mts +14 -0
- package/lib/utils/worker_threads.d.mts.map +1 -0
- package/lib/utils/worker_threads.d.ts +14 -0
- package/lib/utils/worker_threads.d.ts.map +1 -0
- package/lib/utils/worker_threads.js +16 -0
- package/lib/utils/worker_threads.js.map +1 -0
- package/lib/utils/worker_threads.mjs +13 -0
- package/lib/utils/worker_threads.mjs.map +1 -0
- package/lib/utils/xxhash/xxhash.d.mts +16 -0
- package/lib/utils/xxhash/xxhash.d.mts.map +1 -0
- package/lib/utils/xxhash/xxhash.d.ts +16 -0
- package/lib/utils/xxhash/xxhash.d.ts.map +1 -0
- package/lib/utils/xxhash/xxhash.js +332 -0
- package/lib/utils/xxhash/xxhash.js.map +1 -0
- package/lib/utils/xxhash/xxhash.mjs +328 -0
- package/lib/utils/xxhash/xxhash.mjs.map +1 -0
- package/lib/uuid.d.mts +14 -0
- package/lib/uuid.d.mts.map +1 -0
- package/lib/uuid.d.ts +14 -0
- package/lib/uuid.d.ts.map +1 -0
- package/lib/uuid.js +34 -0
- package/lib/uuid.js.map +1 -0
- package/lib/uuid.mjs +28 -0
- package/lib/uuid.mjs.map +1 -0
- package/lib/vitest/index.d.mts +393 -0
- package/lib/vitest/index.d.mts.map +1 -0
- package/lib/vitest/index.d.ts +393 -0
- package/lib/vitest/index.d.ts.map +1 -0
- package/lib/vitest/index.js +33 -0
- package/lib/vitest/index.js.map +1 -0
- package/lib/vitest/index.mjs +323 -0
- package/lib/vitest/index.mjs.map +1 -0
- package/lib/vitest/reporter.d.mts +9 -0
- package/lib/vitest/reporter.d.mts.map +1 -0
- package/lib/vitest/reporter.d.ts +9 -0
- package/lib/vitest/reporter.d.ts.map +1 -0
- package/lib/vitest/reporter.js +31 -0
- package/lib/vitest/reporter.js.map +1 -0
- package/lib/vitest/reporter.mjs +29 -0
- package/lib/vitest/reporter.mjs.map +1 -0
- package/lib/vitest/utils/esm.d.mts +9 -0
- package/lib/vitest/utils/esm.d.mts.map +1 -0
- package/lib/vitest/utils/esm.mjs +38 -0
- package/lib/vitest/utils/esm.mjs.map +1 -0
- package/lib/vitest/utils/reporter.d.mts +18 -0
- package/lib/vitest/utils/reporter.d.mts.map +1 -0
- package/lib/vitest/utils/reporter.d.ts +18 -0
- package/lib/vitest/utils/reporter.d.ts.map +1 -0
- package/lib/vitest/utils/reporter.js +40 -0
- package/lib/vitest/utils/reporter.js.map +1 -0
- package/lib/vitest/utils/reporter.mjs +35 -0
- package/lib/vitest/utils/reporter.mjs.map +1 -0
- package/lib/vitest/utils/wrapper.d.mts +168 -0
- package/lib/vitest/utils/wrapper.d.mts.map +1 -0
- package/lib/vitest/utils/wrapper.d.ts +168 -0
- package/lib/vitest/utils/wrapper.d.ts.map +1 -0
- package/lib/vitest/utils/wrapper.js +64 -0
- package/lib/vitest/utils/wrapper.js.map +1 -0
- package/lib/vitest/utils/wrapper.mjs +60 -0
- package/lib/vitest/utils/wrapper.mjs.map +1 -0
- package/lib/wrappers/anthropic.d.mts +83 -0
- package/lib/wrappers/anthropic.d.mts.map +1 -0
- package/lib/wrappers/anthropic.d.ts +83 -0
- package/lib/wrappers/anthropic.d.ts.map +1 -0
- package/lib/wrappers/anthropic.js +393 -0
- package/lib/wrappers/anthropic.js.map +1 -0
- package/lib/wrappers/anthropic.mjs +388 -0
- package/lib/wrappers/anthropic.mjs.map +1 -0
- package/lib/wrappers/gemini.d.mts +47 -0
- package/lib/wrappers/gemini.d.mts.map +1 -0
- package/lib/wrappers/gemini.d.ts +47 -0
- package/lib/wrappers/gemini.d.ts.map +1 -0
- package/lib/wrappers/gemini.js +409 -0
- package/lib/wrappers/gemini.js.map +1 -0
- package/lib/wrappers/gemini.mjs +406 -0
- package/lib/wrappers/gemini.mjs.map +1 -0
- package/lib/wrappers/gemini.utils.d.mts +4 -0
- package/lib/wrappers/gemini.utils.d.mts.map +1 -0
- package/lib/wrappers/gemini.utils.d.ts +4 -0
- package/lib/wrappers/gemini.utils.d.ts.map +1 -0
- package/lib/wrappers/gemini.utils.js +42 -0
- package/lib/wrappers/gemini.utils.js.map +1 -0
- package/lib/wrappers/gemini.utils.mjs +38 -0
- package/lib/wrappers/gemini.utils.mjs.map +1 -0
- package/lib/wrappers/generic.d.mts +22 -0
- package/lib/wrappers/generic.d.mts.map +1 -0
- package/lib/wrappers/generic.d.ts +22 -0
- package/lib/wrappers/generic.d.ts.map +1 -0
- package/lib/wrappers/generic.js +49 -0
- package/lib/wrappers/generic.js.map +1 -0
- package/lib/wrappers/generic.mjs +44 -0
- package/lib/wrappers/generic.mjs.map +1 -0
- package/lib/wrappers/index.d.mts +3 -0
- package/lib/wrappers/index.d.mts.map +1 -0
- package/lib/wrappers/index.d.ts +3 -0
- package/lib/wrappers/index.d.ts.map +1 -0
- package/lib/wrappers/index.js +8 -0
- package/lib/wrappers/index.js.map +1 -0
- package/lib/wrappers/index.mjs +3 -0
- package/lib/wrappers/index.mjs.map +1 -0
- package/lib/wrappers/openai.d.mts +81 -0
- package/lib/wrappers/openai.d.mts.map +1 -0
- package/lib/wrappers/openai.d.ts +81 -0
- package/lib/wrappers/openai.d.ts.map +1 -0
- package/lib/wrappers/openai.js +477 -0
- package/lib/wrappers/openai.js.map +1 -0
- package/lib/wrappers/openai.mjs +473 -0
- package/lib/wrappers/openai.mjs.map +1 -0
- package/lib/wrappers/openai_agents.d.mts +92 -0
- package/lib/wrappers/openai_agents.d.mts.map +1 -0
- package/lib/wrappers/openai_agents.d.ts +92 -0
- package/lib/wrappers/openai_agents.d.ts.map +1 -0
- package/lib/wrappers/openai_agents.js +863 -0
- package/lib/wrappers/openai_agents.js.map +1 -0
- package/lib/wrappers/openai_agents.mjs +859 -0
- package/lib/wrappers/openai_agents.mjs.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.d.mts +8 -0
- package/lib/wrappers/utils/anthropic_managed.d.mts.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.d.ts +8 -0
- package/lib/wrappers/utils/anthropic_managed.d.ts.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.js +649 -0
- package/lib/wrappers/utils/anthropic_managed.js.map +1 -0
- package/lib/wrappers/utils/anthropic_managed.mjs +646 -0
- package/lib/wrappers/utils/anthropic_managed.mjs.map +1 -0
- package/package.json +380 -467
- package/pagination.d.mts +3 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +3 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +3 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +3 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +3 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +3 -0
- package/resource.mjs.map +1 -0
- package/resources/annotation-queues/annotation-queues.d.mts +385 -0
- package/resources/annotation-queues/annotation-queues.d.mts.map +1 -0
- package/resources/annotation-queues/annotation-queues.d.ts +385 -0
- package/resources/annotation-queues/annotation-queues.d.ts.map +1 -0
- package/resources/annotation-queues/annotation-queues.js +125 -0
- package/resources/annotation-queues/annotation-queues.js.map +1 -0
- package/resources/annotation-queues/annotation-queues.mjs +120 -0
- package/resources/annotation-queues/annotation-queues.mjs.map +1 -0
- package/resources/annotation-queues/index.d.mts +4 -0
- package/resources/annotation-queues/index.d.mts.map +1 -0
- package/resources/annotation-queues/index.d.ts +4 -0
- package/resources/annotation-queues/index.d.ts.map +1 -0
- package/resources/annotation-queues/index.js +11 -0
- package/resources/annotation-queues/index.js.map +1 -0
- package/resources/annotation-queues/index.mjs +5 -0
- package/resources/annotation-queues/index.mjs.map +1 -0
- package/resources/annotation-queues/items.d.mts +233 -0
- package/resources/annotation-queues/items.d.mts.map +1 -0
- package/resources/annotation-queues/items.d.ts +233 -0
- package/resources/annotation-queues/items.d.ts.map +1 -0
- package/resources/annotation-queues/items.js +91 -0
- package/resources/annotation-queues/items.js.map +1 -0
- package/resources/annotation-queues/items.mjs +87 -0
- package/resources/annotation-queues/items.mjs.map +1 -0
- package/resources/annotation-queues/runs.d.mts +198 -0
- package/resources/annotation-queues/runs.d.mts.map +1 -0
- package/resources/annotation-queues/runs.d.ts +198 -0
- package/resources/annotation-queues/runs.d.ts.map +1 -0
- package/resources/annotation-queues/runs.js +73 -0
- package/resources/annotation-queues/runs.js.map +1 -0
- package/resources/annotation-queues/runs.mjs +69 -0
- package/resources/annotation-queues/runs.mjs.map +1 -0
- package/resources/annotation-queues.d.mts +2 -0
- package/resources/annotation-queues.d.mts.map +1 -0
- package/resources/annotation-queues.d.ts +2 -0
- package/resources/annotation-queues.d.ts.map +1 -0
- package/resources/annotation-queues.js +6 -0
- package/resources/annotation-queues.js.map +1 -0
- package/resources/annotation-queues.mjs +3 -0
- package/resources/annotation-queues.mjs.map +1 -0
- package/resources/datasets/datasets.d.mts +155 -0
- package/resources/datasets/datasets.d.mts.map +1 -0
- package/resources/datasets/datasets.d.ts +155 -0
- package/resources/datasets/datasets.d.ts.map +1 -0
- package/resources/datasets/datasets.js +31 -0
- package/resources/datasets/datasets.js.map +1 -0
- package/resources/datasets/datasets.mjs +26 -0
- package/resources/datasets/datasets.mjs.map +1 -0
- package/resources/datasets/examples.d.mts +24 -0
- package/resources/datasets/examples.d.mts.map +1 -0
- package/resources/datasets/examples.d.ts +24 -0
- package/resources/datasets/examples.d.ts.map +1 -0
- package/resources/datasets/examples.js +26 -0
- package/resources/datasets/examples.js.map +1 -0
- package/resources/datasets/examples.mjs +22 -0
- package/resources/datasets/examples.mjs.map +1 -0
- package/resources/datasets/experiment-runs.d.mts +112 -0
- package/resources/datasets/experiment-runs.d.mts.map +1 -0
- package/resources/datasets/experiment-runs.d.ts +112 -0
- package/resources/datasets/experiment-runs.d.ts.map +1 -0
- package/resources/datasets/experiment-runs.js +20 -0
- package/resources/datasets/experiment-runs.js.map +1 -0
- package/resources/datasets/experiment-runs.mjs +16 -0
- package/resources/datasets/experiment-runs.mjs.map +1 -0
- package/resources/datasets/index.d.mts +4 -0
- package/resources/datasets/index.d.mts.map +1 -0
- package/resources/datasets/index.d.ts +4 -0
- package/resources/datasets/index.d.ts.map +1 -0
- package/resources/datasets/index.js +11 -0
- package/resources/datasets/index.js.map +1 -0
- package/resources/datasets/index.mjs +5 -0
- package/resources/datasets/index.mjs.map +1 -0
- package/resources/datasets.d.mts +2 -0
- package/resources/datasets.d.mts.map +1 -0
- package/resources/datasets.d.ts +2 -0
- package/resources/datasets.d.ts.map +1 -0
- package/resources/datasets.js +6 -0
- package/resources/datasets.js.map +1 -0
- package/resources/datasets.mjs +3 -0
- package/resources/datasets.mjs.map +1 -0
- package/resources/fleet/fleet.d.mts +10 -0
- package/resources/fleet/fleet.d.mts.map +1 -0
- package/resources/fleet/fleet.d.ts +10 -0
- package/resources/fleet/fleet.d.ts.map +1 -0
- package/resources/fleet/fleet.js +22 -0
- package/resources/fleet/fleet.js.map +1 -0
- package/resources/fleet/fleet.mjs +17 -0
- package/resources/fleet/fleet.mjs.map +1 -0
- package/resources/fleet/index.d.mts +3 -0
- package/resources/fleet/index.d.mts.map +1 -0
- package/resources/fleet/index.d.ts +3 -0
- package/resources/fleet/index.d.ts.map +1 -0
- package/resources/fleet/index.js +9 -0
- package/resources/fleet/index.js.map +1 -0
- package/resources/fleet/index.mjs +4 -0
- package/resources/fleet/index.mjs.map +1 -0
- package/resources/fleet/threads.d.mts +20 -0
- package/resources/fleet/threads.d.mts.map +1 -0
- package/resources/fleet/threads.d.ts +20 -0
- package/resources/fleet/threads.d.ts.map +1 -0
- package/resources/fleet/threads.js +18 -0
- package/resources/fleet/threads.js.map +1 -0
- package/resources/fleet/threads.mjs +14 -0
- package/resources/fleet/threads.mjs.map +1 -0
- package/resources/fleet.d.mts +2 -0
- package/resources/fleet.d.mts.map +1 -0
- package/resources/fleet.d.ts +2 -0
- package/resources/fleet.d.ts.map +1 -0
- package/resources/fleet.js +6 -0
- package/resources/fleet.js.map +1 -0
- package/resources/fleet.mjs +3 -0
- package/resources/fleet.mjs.map +1 -0
- package/resources/index.d.mts +14 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +14 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +31 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +15 -0
- package/resources/index.mjs.map +1 -0
- package/resources/info.d.mts +52 -0
- package/resources/info.d.mts.map +1 -0
- package/resources/info.d.ts +52 -0
- package/resources/info.d.ts.map +1 -0
- package/resources/info.js +17 -0
- package/resources/info.js.map +1 -0
- package/resources/info.mjs +13 -0
- package/resources/info.mjs.map +1 -0
- package/resources/issues.d.mts +292 -0
- package/resources/issues.d.mts.map +1 -0
- package/resources/issues.d.ts +292 -0
- package/resources/issues.d.ts.map +1 -0
- package/resources/issues.js +31 -0
- package/resources/issues.js.map +1 -0
- package/resources/issues.mjs +27 -0
- package/resources/issues.mjs.map +1 -0
- package/resources/online-evaluators.d.mts +376 -0
- package/resources/online-evaluators.d.mts.map +1 -0
- package/resources/online-evaluators.d.ts +376 -0
- package/resources/online-evaluators.d.ts.map +1 -0
- package/resources/online-evaluators.js +73 -0
- package/resources/online-evaluators.js.map +1 -0
- package/resources/online-evaluators.mjs +69 -0
- package/resources/online-evaluators.mjs.map +1 -0
- package/resources/product-feedback.d.mts +78 -0
- package/resources/product-feedback.d.mts.map +1 -0
- package/resources/product-feedback.d.ts +78 -0
- package/resources/product-feedback.d.ts.map +1 -0
- package/resources/product-feedback.js +33 -0
- package/resources/product-feedback.js.map +1 -0
- package/resources/product-feedback.mjs +29 -0
- package/resources/product-feedback.mjs.map +1 -0
- package/resources/public/index.d.mts +3 -0
- package/resources/public/index.d.mts.map +1 -0
- package/resources/public/index.d.ts +3 -0
- package/resources/public/index.d.ts.map +1 -0
- package/resources/public/index.js +9 -0
- package/resources/public/index.js.map +1 -0
- package/resources/public/index.mjs +4 -0
- package/resources/public/index.mjs.map +1 -0
- package/resources/public/public.d.mts +10 -0
- package/resources/public/public.d.mts.map +1 -0
- package/resources/public/public.d.ts +10 -0
- package/resources/public/public.d.ts.map +1 -0
- package/resources/public/public.js +22 -0
- package/resources/public/public.js.map +1 -0
- package/resources/public/public.mjs +17 -0
- package/resources/public/public.mjs.map +1 -0
- package/resources/public/runs.d.mts +79 -0
- package/resources/public/runs.d.mts.map +1 -0
- package/resources/public/runs.d.ts +79 -0
- package/resources/public/runs.d.ts.map +1 -0
- package/resources/public/runs.js +58 -0
- package/resources/public/runs.js.map +1 -0
- package/resources/public/runs.mjs +54 -0
- package/resources/public/runs.mjs.map +1 -0
- package/resources/public.d.mts +2 -0
- package/resources/public.d.mts.map +1 -0
- package/resources/public.d.ts +2 -0
- package/resources/public.d.ts.map +1 -0
- package/resources/public.js +6 -0
- package/resources/public.js.map +1 -0
- package/resources/public.mjs +3 -0
- package/resources/public.mjs.map +1 -0
- package/resources/runs/index.d.mts +3 -0
- package/resources/runs/index.d.mts.map +1 -0
- package/resources/runs/index.d.ts +3 -0
- package/resources/runs/index.d.ts.map +1 -0
- package/resources/runs/index.js +9 -0
- package/resources/runs/index.js.map +1 -0
- package/resources/runs/index.mjs +4 -0
- package/resources/runs/index.mjs.map +1 -0
- package/resources/runs/runs.d.mts +763 -0
- package/resources/runs/runs.d.mts.map +1 -0
- package/resources/runs/runs.d.ts +763 -0
- package/resources/runs/runs.d.ts.map +1 -0
- package/resources/runs/runs.js +101 -0
- package/resources/runs/runs.js.map +1 -0
- package/resources/runs/runs.mjs +96 -0
- package/resources/runs/runs.mjs.map +1 -0
- package/resources/runs/share.d.mts +55 -0
- package/resources/runs/share.d.mts.map +1 -0
- package/resources/runs/share.d.ts +55 -0
- package/resources/runs/share.d.ts.map +1 -0
- package/resources/runs/share.js +46 -0
- package/resources/runs/share.js.map +1 -0
- package/resources/runs/share.mjs +42 -0
- package/resources/runs/share.mjs.map +1 -0
- package/resources/runs.d.mts +2 -0
- package/resources/runs.d.mts.map +1 -0
- package/resources/runs.d.ts +2 -0
- package/resources/runs.d.ts.map +1 -0
- package/resources/runs.js +6 -0
- package/resources/runs.js.map +1 -0
- package/resources/runs.mjs +3 -0
- package/resources/runs.mjs.map +1 -0
- package/resources/sandboxes/boxes.d.mts +898 -0
- package/resources/sandboxes/boxes.d.mts.map +1 -0
- package/resources/sandboxes/boxes.d.ts +898 -0
- package/resources/sandboxes/boxes.d.ts.map +1 -0
- package/resources/sandboxes/boxes.js +144 -0
- package/resources/sandboxes/boxes.js.map +1 -0
- package/resources/sandboxes/boxes.mjs +140 -0
- package/resources/sandboxes/boxes.mjs.map +1 -0
- package/resources/sandboxes/index.d.mts +5 -0
- package/resources/sandboxes/index.d.mts.map +1 -0
- package/resources/sandboxes/index.d.ts +5 -0
- package/resources/sandboxes/index.d.ts.map +1 -0
- package/resources/sandboxes/index.js +13 -0
- package/resources/sandboxes/index.js.map +1 -0
- package/resources/sandboxes/index.mjs +6 -0
- package/resources/sandboxes/index.mjs.map +1 -0
- package/resources/sandboxes/registries.d.mts +76 -0
- package/resources/sandboxes/registries.d.mts.map +1 -0
- package/resources/sandboxes/registries.d.ts +76 -0
- package/resources/sandboxes/registries.d.ts.map +1 -0
- package/resources/sandboxes/registries.js +44 -0
- package/resources/sandboxes/registries.js.map +1 -0
- package/resources/sandboxes/registries.mjs +40 -0
- package/resources/sandboxes/registries.mjs.map +1 -0
- package/resources/sandboxes/sandboxes.d.mts +625 -0
- package/resources/sandboxes/sandboxes.d.mts.map +1 -0
- package/resources/sandboxes/sandboxes.d.ts +625 -0
- package/resources/sandboxes/sandboxes.d.ts.map +1 -0
- package/resources/sandboxes/sandboxes.js +53 -0
- package/resources/sandboxes/sandboxes.js.map +1 -0
- package/resources/sandboxes/sandboxes.mjs +48 -0
- package/resources/sandboxes/sandboxes.mjs.map +1 -0
- package/resources/sandboxes/snapshots.d.mts +138 -0
- package/resources/sandboxes/snapshots.d.mts.map +1 -0
- package/resources/sandboxes/snapshots.d.ts +138 -0
- package/resources/sandboxes/snapshots.d.ts.map +1 -0
- package/resources/sandboxes/snapshots.js +57 -0
- package/resources/sandboxes/snapshots.js.map +1 -0
- package/resources/sandboxes/snapshots.mjs +53 -0
- package/resources/sandboxes/snapshots.mjs.map +1 -0
- package/resources/sandboxes.d.mts +2 -0
- package/resources/sandboxes.d.mts.map +1 -0
- package/resources/sandboxes.d.ts +2 -0
- package/resources/sandboxes.d.ts.map +1 -0
- package/resources/sandboxes.js +6 -0
- package/resources/sandboxes.js.map +1 -0
- package/resources/sandboxes.mjs +3 -0
- package/resources/sandboxes.mjs.map +1 -0
- package/resources/sessions.d.mts +733 -0
- package/resources/sessions.d.mts.map +1 -0
- package/resources/sessions.d.ts +733 -0
- package/resources/sessions.d.ts.map +1 -0
- package/resources/sessions.js +23 -0
- package/resources/sessions.js.map +1 -0
- package/resources/sessions.mjs +19 -0
- package/resources/sessions.mjs.map +1 -0
- package/resources/threads/index.d.mts +3 -0
- package/resources/threads/index.d.mts.map +1 -0
- package/resources/threads/index.d.ts +3 -0
- package/resources/threads/index.d.ts.map +1 -0
- package/resources/threads/index.js +9 -0
- package/resources/threads/index.js.map +1 -0
- package/resources/threads/index.mjs +4 -0
- package/resources/threads/index.mjs.map +1 -0
- package/resources/threads/share.d.mts +72 -0
- package/resources/threads/share.d.mts.map +1 -0
- package/resources/threads/share.d.ts +72 -0
- package/resources/threads/share.d.ts.map +1 -0
- package/resources/threads/share.js +61 -0
- package/resources/threads/share.js.map +1 -0
- package/resources/threads/share.mjs +57 -0
- package/resources/threads/share.mjs.map +1 -0
- package/resources/threads/threads.d.mts +974 -0
- package/resources/threads/threads.d.mts.map +1 -0
- package/resources/threads/threads.d.ts +974 -0
- package/resources/threads/threads.d.ts.map +1 -0
- package/resources/threads/threads.js +111 -0
- package/resources/threads/threads.js.map +1 -0
- package/resources/threads/threads.mjs +106 -0
- package/resources/threads/threads.mjs.map +1 -0
- package/resources/threads.d.mts +2 -0
- package/resources/threads.d.mts.map +1 -0
- package/resources/threads.d.ts +2 -0
- package/resources/threads.d.ts.map +1 -0
- package/resources/threads.js +6 -0
- package/resources/threads.js.map +1 -0
- package/resources/threads.mjs +3 -0
- package/resources/threads.mjs.map +1 -0
- package/resources/traces.d.mts +172 -0
- package/resources/traces.d.mts.map +1 -0
- package/resources/traces.d.ts +172 -0
- package/resources/traces.d.ts.map +1 -0
- package/resources/traces.js +64 -0
- package/resources/traces.js.map +1 -0
- package/resources/traces.mjs +60 -0
- package/resources/traces.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/run_trees.d.mts +2 -0
- package/run_trees.d.mts.map +1 -0
- package/run_trees.d.ts +2 -1
- package/run_trees.d.ts.map +1 -0
- package/run_trees.js +6 -1
- package/run_trees.js.map +1 -0
- package/run_trees.mjs +3 -0
- package/run_trees.mjs.map +1 -0
- package/sandbox.d.mts +2 -0
- package/sandbox.d.mts.map +1 -0
- package/sandbox.d.ts +2 -1
- package/sandbox.d.ts.map +1 -0
- package/sandbox.js +6 -1
- package/sandbox.js.map +1 -0
- package/sandbox.mjs +3 -0
- package/sandbox.mjs.map +1 -0
- package/schemas.d.mts +2 -0
- package/schemas.d.mts.map +1 -0
- package/schemas.d.ts +2 -1
- package/schemas.d.ts.map +1 -0
- package/schemas.js +6 -1
- package/schemas.js.map +1 -0
- package/schemas.mjs +3 -0
- package/schemas.mjs.map +1 -0
- package/singletons/traceable.d.mts +2 -0
- package/singletons/traceable.d.mts.map +1 -0
- package/singletons/traceable.d.ts +2 -1
- package/singletons/traceable.d.ts.map +1 -0
- package/singletons/traceable.js +6 -1
- package/singletons/traceable.js.map +1 -0
- package/singletons/traceable.mjs +3 -0
- package/singletons/traceable.mjs.map +1 -0
- package/src/anonymizer.ts +2 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1196 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +548 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/evaluation.ts +2 -0
- package/src/experimental/anthropic.ts +2 -0
- package/src/experimental/otel/exporter.ts +2 -0
- package/src/experimental/otel/processor.ts +2 -0
- package/src/experimental/otel/setup.ts +2 -0
- package/src/experimental/sandbox.ts +2 -0
- package/src/experimental/vercel.ts +2 -0
- package/src/index.ts +26 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +93 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +129 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/jest/reporter.ts +3 -0
- package/src/jest.ts +2 -0
- package/src/langchain.ts +2 -0
- package/src/lib/.keep +4 -0
- package/src/lib/address.ts +252 -0
- package/src/lib/anonymizer/index.ts +326 -0
- package/src/lib/client.ts +8168 -0
- package/src/lib/env.ts +24 -0
- package/src/lib/evaluation/_random_name.ts +728 -0
- package/src/lib/evaluation/_runner.ts +1555 -0
- package/src/lib/evaluation/evaluate_comparative.ts +431 -0
- package/src/lib/evaluation/evaluator.ts +275 -0
- package/src/lib/evaluation/index.ts +17 -0
- package/src/lib/evaluation/string_evaluator.ts +69 -0
- package/src/lib/experimental/anthropic/context.ts +656 -0
- package/src/lib/experimental/anthropic/index.ts +391 -0
- package/src/lib/experimental/anthropic/messages.ts +205 -0
- package/src/lib/experimental/anthropic/transcripts.ts +188 -0
- package/src/lib/experimental/anthropic/types.ts +65 -0
- package/src/lib/experimental/anthropic/usage.ts +253 -0
- package/src/lib/experimental/anthropic/utils.ts +28 -0
- package/src/lib/experimental/otel/constants.ts +71 -0
- package/src/lib/experimental/otel/exporter.ts +271 -0
- package/src/lib/experimental/otel/processor.ts +111 -0
- package/src/lib/experimental/otel/setup.ts +150 -0
- package/src/lib/experimental/otel/translator.ts +622 -0
- package/src/lib/experimental/otel/types.ts +36 -0
- package/src/lib/experimental/otel/utils.ts +29 -0
- package/src/lib/experimental/vercel/_agent_type.ts +34 -0
- package/src/lib/experimental/vercel/middleware.ts +316 -0
- package/src/lib/experimental/vercel/telemetry.ts +848 -0
- package/src/lib/experimental/vercel/utils.ts +384 -0
- package/src/lib/experimental/vercel/wrap.ts +1068 -0
- package/src/lib/index.ts +69 -0
- package/src/lib/jest/index.ts +504 -0
- package/src/lib/jest/reporter.ts +42 -0
- package/src/lib/langchain.ts +173 -0
- package/src/lib/run_trees.ts +1418 -0
- package/src/lib/sandbox/README.md +998 -0
- package/src/lib/sandbox/access_delegation.ts +54 -0
- package/src/lib/sandbox/client.ts +1467 -0
- package/src/lib/sandbox/command_handle.ts +372 -0
- package/src/lib/sandbox/errors.ts +368 -0
- package/src/lib/sandbox/helpers.ts +506 -0
- package/src/lib/sandbox/index.ts +161 -0
- package/src/lib/sandbox/mounts.ts +408 -0
- package/src/lib/sandbox/proxy_config.ts +249 -0
- package/src/lib/sandbox/sandbox.ts +776 -0
- package/src/lib/sandbox/service_url.ts +112 -0
- package/src/lib/sandbox/tracing.ts +10 -0
- package/src/lib/sandbox/types.ts +1005 -0
- package/src/lib/sandbox/verify.ts +407 -0
- package/src/lib/sandbox/ws_execute.ts +585 -0
- package/src/lib/schemas.ts +818 -0
- package/src/lib/singletons/constants.ts +18 -0
- package/src/lib/singletons/fetch.ts +66 -0
- package/src/lib/singletons/otel.ts +201 -0
- package/src/lib/singletons/traceable.ts +93 -0
- package/src/lib/singletons/types.ts +86 -0
- package/src/lib/traceable.ts +1333 -0
- package/src/lib/utils/_git.ts +135 -0
- package/src/lib/utils/_uuid.ts +195 -0
- package/src/lib/utils/addressing.ts +120 -0
- package/src/lib/utils/asserts.ts +50 -0
- package/src/lib/utils/async_caller.ts +206 -0
- package/src/lib/utils/atee.ts +24 -0
- package/src/lib/utils/chalk/license +9 -0
- package/src/lib/utils/chalk/source/index.ts +227 -0
- package/src/lib/utils/chalk/source/utilities.ts +35 -0
- package/src/lib/utils/chalk/source/vendor/ansi-styles/index.ts +225 -0
- package/src/lib/utils/chalk/source/vendor/supports-color/browser.ts +36 -0
- package/src/lib/utils/chalk/source/vendor/supports-color/index.ts +192 -0
- package/src/lib/utils/console-table-printer/LICENSE +21 -0
- package/src/lib/utils/console-table-printer/index.ts +9 -0
- package/src/lib/utils/console-table-printer/src/console-table-printer.ts +47 -0
- package/src/lib/utils/console-table-printer/src/internalTable/input-converter.ts +42 -0
- package/src/lib/utils/console-table-printer/src/internalTable/internal-table-printer.ts +268 -0
- package/src/lib/utils/console-table-printer/src/internalTable/internal-table.ts +180 -0
- package/src/lib/utils/console-table-printer/src/internalTable/table-pre-processors.ts +70 -0
- package/src/lib/utils/console-table-printer/src/models/common.ts +17 -0
- package/src/lib/utils/console-table-printer/src/models/external-table.ts +110 -0
- package/src/lib/utils/console-table-printer/src/models/internal-table.ts +33 -0
- package/src/lib/utils/console-table-printer/src/utils/colored-console-line.ts +40 -0
- package/src/lib/utils/console-table-printer/src/utils/console-utils.ts +25 -0
- package/src/lib/utils/console-table-printer/src/utils/string-utils.ts +84 -0
- package/src/lib/utils/console-table-printer/src/utils/table-constants.ts +61 -0
- package/src/lib/utils/console-table-printer/src/utils/table-helpers.ts +184 -0
- package/src/lib/utils/context_vars.ts +34 -0
- package/src/lib/utils/env.ts +305 -0
- package/src/lib/utils/error.ts +205 -0
- package/src/lib/utils/fast-safe-stringify/LICENSE +23 -0
- package/src/lib/utils/fast-safe-stringify/index.ts +556 -0
- package/src/lib/utils/fs.browser.ts +66 -0
- package/src/lib/utils/fs.ts +94 -0
- package/src/lib/utils/guard.ts +11 -0
- package/src/lib/utils/is-network-error/index.ts +50 -0
- package/src/lib/utils/is-network-error/license +9 -0
- package/src/lib/utils/jestlike/constants.ts +8 -0
- package/src/lib/utils/jestlike/globals.ts +84 -0
- package/src/lib/utils/jestlike/index.ts +867 -0
- package/src/lib/utils/jestlike/matchers.ts +160 -0
- package/src/lib/utils/jestlike/reporter.ts +293 -0
- package/src/lib/utils/jestlike/types.ts +60 -0
- package/src/lib/utils/jestlike/vendor/LICENSE +21 -0
- package/src/lib/utils/jestlike/vendor/chain.ts +124 -0
- package/src/lib/utils/jestlike/vendor/evaluatedBy.ts +129 -0
- package/src/lib/utils/ls_agent_type.ts +38 -0
- package/src/lib/utils/messages.ts +32 -0
- package/src/lib/utils/p-queue.ts +8 -0
- package/src/lib/utils/p-retry/index.ts +267 -0
- package/src/lib/utils/p-retry/license +9 -0
- package/src/lib/utils/profile-lock.ts +125 -0
- package/src/lib/utils/profiles.ts +512 -0
- package/src/lib/utils/project.ts +12 -0
- package/src/lib/utils/prompt_cache/index.ts +407 -0
- package/src/lib/utils/prompts.ts +36 -0
- package/src/lib/utils/redaction.ts +49 -0
- package/src/lib/utils/sampling.ts +38 -0
- package/src/lib/utils/serialize_worker.ts +374 -0
- package/src/lib/utils/shuffle.ts +13 -0
- package/src/lib/utils/simple-wcswidth/LICENSE +21 -0
- package/src/lib/utils/simple-wcswidth/index.ts +4 -0
- package/src/lib/utils/simple-wcswidth/src/binary-search.ts +29 -0
- package/src/lib/utils/simple-wcswidth/src/models.ts +4 -0
- package/src/lib/utils/simple-wcswidth/src/non-spacing-chars.ts +150 -0
- package/src/lib/utils/simple-wcswidth/src/wcswidth.ts +19 -0
- package/src/lib/utils/simple-wcswidth/src/wcwidth.ts +72 -0
- package/src/lib/utils/types.ts +13 -0
- package/src/lib/utils/url.ts +28 -0
- package/src/lib/utils/usage.ts +32 -0
- package/src/lib/utils/uuid/LICENSE.md +9 -0
- package/src/lib/utils/uuid/src/parse.ts +39 -0
- package/src/lib/utils/uuid/src/rng.ts +7 -0
- package/src/lib/utils/uuid/src/sha1.ts +110 -0
- package/src/lib/utils/uuid/src/stringify.ts +58 -0
- package/src/lib/utils/uuid/src/types.ts +28 -0
- package/src/lib/utils/uuid/src/v35.ts +74 -0
- package/src/lib/utils/uuid/src/v4.ts +65 -0
- package/src/lib/utils/uuid/src/v5.ts +31 -0
- package/src/lib/utils/uuid/src/v7.ts +135 -0
- package/src/lib/utils/uuid/src/validate.ts +7 -0
- package/src/lib/utils/uuid/src/version.ts +11 -0
- package/src/lib/utils/v2_migration.ts +85 -0
- package/src/lib/utils/vercel.ts +402 -0
- package/src/lib/utils/warn.ts +37 -0
- package/src/lib/utils/worker_threads.browser.ts +17 -0
- package/src/lib/utils/worker_threads.ts +17 -0
- package/src/lib/utils/xxhash/LICENSE +25 -0
- package/src/lib/utils/xxhash/xxhash.ts +502 -0
- package/src/lib/uuid.ts +38 -0
- package/src/lib/vitest/index.mts +347 -0
- package/src/lib/vitest/index.ts +345 -0
- package/src/lib/vitest/reporter.mts +35 -0
- package/src/lib/vitest/reporter.ts +32 -0
- package/src/lib/vitest/utils/esm.mts +43 -0
- package/src/lib/vitest/utils/reporter.ts +56 -0
- package/src/lib/vitest/utils/wrapper.ts +146 -0
- package/src/lib/wrappers/anthropic.ts +576 -0
- package/src/lib/wrappers/gemini.ts +517 -0
- package/src/lib/wrappers/gemini.utils.ts +73 -0
- package/src/lib/wrappers/generic.ts +71 -0
- package/src/lib/wrappers/openai.ts +691 -0
- package/src/lib/wrappers/openai_agents.ts +976 -0
- package/src/lib/wrappers/utils/anthropic_managed.ts +898 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/annotation-queues/annotation-queues.ts +696 -0
- package/src/resources/annotation-queues/index.ts +60 -0
- package/src/resources/annotation-queues/items.ts +396 -0
- package/src/resources/annotation-queues/runs.ts +313 -0
- package/src/resources/annotation-queues.ts +3 -0
- package/src/resources/datasets/datasets.ts +227 -0
- package/src/resources/datasets/examples.ts +36 -0
- package/src/resources/datasets/experiment-runs.ts +153 -0
- package/src/resources/datasets/index.ts +19 -0
- package/src/resources/datasets.ts +3 -0
- package/src/resources/fleet/fleet.ts +15 -0
- package/src/resources/fleet/index.ts +4 -0
- package/src/resources/fleet/threads.ts +29 -0
- package/src/resources/fleet.ts +3 -0
- package/src/resources/index.ts +148 -0
- package/src/resources/info.ts +76 -0
- package/src/resources/issues.ts +526 -0
- package/src/resources/online-evaluators.ts +604 -0
- package/src/resources/product-feedback.ts +129 -0
- package/src/resources/public/index.ts +4 -0
- package/src/resources/public/public.ts +20 -0
- package/src/resources/public/runs.ts +147 -0
- package/src/resources/public.ts +3 -0
- package/src/resources/runs/index.ts +20 -0
- package/src/resources/runs/runs.ts +1078 -0
- package/src/resources/runs/share.ts +77 -0
- package/src/resources/runs.ts +3 -0
- package/src/resources/sandboxes/boxes.ts +1290 -0
- package/src/resources/sandboxes/index.ts +44 -0
- package/src/resources/sandboxes/registries.ts +135 -0
- package/src/resources/sandboxes/sandboxes.ts +949 -0
- package/src/resources/sandboxes/snapshots.ts +196 -0
- package/src/resources/sandboxes.ts +3 -0
- package/src/resources/sessions.ts +1441 -0
- package/src/resources/threads/index.ts +23 -0
- package/src/resources/threads/share.ts +109 -0
- package/src/resources/threads/threads.ts +1216 -0
- package/src/resources/threads.ts +3 -0
- package/src/resources/traces.ts +277 -0
- package/src/resources.ts +1 -0
- package/src/run_trees.ts +2 -0
- package/src/sandbox.ts +2 -0
- package/src/schemas.ts +2 -0
- package/src/singletons/traceable.ts +2 -0
- package/src/traceable.ts +2 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/utils/jestlike.ts +2 -0
- package/src/version.ts +1 -0
- package/src/vitest/reporter.mts +2 -0
- package/src/vitest.mts +2 -0
- package/src/wrappers/anthropic.ts +2 -0
- package/src/wrappers/gemini.ts +3 -0
- package/src/wrappers/openai.ts +2 -0
- package/src/wrappers/openai_agents.ts +2 -0
- package/src/wrappers.ts +2 -0
- package/traceable.d.mts +2 -0
- package/traceable.d.mts.map +1 -0
- package/traceable.d.ts +2 -1
- package/traceable.d.ts.map +1 -0
- package/traceable.js +6 -1
- package/traceable.js.map +1 -0
- package/traceable.mjs +3 -0
- package/traceable.mjs.map +1 -0
- package/uploads.d.mts +3 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +3 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +3 -0
- package/uploads.mjs.map +1 -0
- package/utils/jestlike.d.mts +2 -0
- package/utils/jestlike.d.mts.map +1 -0
- package/utils/jestlike.d.ts +2 -1
- package/utils/jestlike.d.ts.map +1 -0
- package/utils/jestlike.js +6 -1
- package/utils/jestlike.js.map +1 -0
- package/utils/jestlike.mjs +3 -0
- package/utils/jestlike.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/vitest/reporter.d.mts +2 -0
- package/vitest/reporter.d.mts.map +1 -0
- package/vitest/reporter.mjs +3 -0
- package/vitest/reporter.mjs.map +1 -0
- package/vitest.d.mts +2 -0
- package/vitest.d.mts.map +1 -0
- package/vitest.mjs +3 -0
- package/vitest.mjs.map +1 -0
- package/wrappers/anthropic.d.mts +2 -0
- package/wrappers/anthropic.d.mts.map +1 -0
- package/wrappers/anthropic.d.ts +2 -1
- package/wrappers/anthropic.d.ts.map +1 -0
- package/wrappers/anthropic.js +6 -1
- package/wrappers/anthropic.js.map +1 -0
- package/wrappers/anthropic.mjs +3 -0
- package/wrappers/anthropic.mjs.map +1 -0
- package/wrappers/gemini.d.mts +3 -0
- package/wrappers/gemini.d.mts.map +1 -0
- package/wrappers/gemini.d.ts +3 -1
- package/wrappers/gemini.d.ts.map +1 -0
- package/wrappers/gemini.js +9 -1
- package/wrappers/gemini.js.map +1 -0
- package/wrappers/gemini.mjs +4 -0
- package/wrappers/gemini.mjs.map +1 -0
- package/wrappers/openai.d.mts +2 -0
- package/wrappers/openai.d.mts.map +1 -0
- package/wrappers/openai.d.ts +2 -1
- package/wrappers/openai.d.ts.map +1 -0
- package/wrappers/openai.js +6 -1
- package/wrappers/openai.js.map +1 -0
- package/wrappers/openai.mjs +3 -0
- package/wrappers/openai.mjs.map +1 -0
- package/wrappers/openai_agents.d.mts +2 -0
- package/wrappers/openai_agents.d.mts.map +1 -0
- package/wrappers/openai_agents.d.ts +2 -1
- package/wrappers/openai_agents.d.ts.map +1 -0
- package/wrappers/openai_agents.js +6 -1
- package/wrappers/openai_agents.js.map +1 -0
- package/wrappers/openai_agents.mjs +3 -0
- package/wrappers/openai_agents.mjs.map +1 -0
- package/wrappers.d.mts +2 -0
- package/wrappers.d.mts.map +1 -0
- package/wrappers.d.ts +2 -1
- package/wrappers.d.ts.map +1 -0
- package/wrappers.js +6 -1
- package/wrappers.js.map +1 -0
- package/wrappers.mjs +3 -0
- package/wrappers.mjs.map +1 -0
- package/anonymizer.cjs +0 -1
- package/anonymizer.d.cts +0 -1
- package/client.cjs +0 -1
- package/client.d.cts +0 -1
- package/dist/_openapi_client/client.cjs +0 -798
- package/dist/_openapi_client/client.d.ts +0 -243
- package/dist/_openapi_client/client.js +0 -761
- package/dist/_openapi_client/core/api-promise.cjs +0 -100
- package/dist/_openapi_client/core/api-promise.d.ts +0 -45
- package/dist/_openapi_client/core/api-promise.js +0 -96
- package/dist/_openapi_client/core/error.cjs +0 -134
- package/dist/_openapi_client/core/error.d.ts +0 -45
- package/dist/_openapi_client/core/error.js +0 -118
- package/dist/_openapi_client/core/pagination.cjs +0 -402
- package/dist/_openapi_client/core/pagination.d.ts +0 -168
- package/dist/_openapi_client/core/pagination.js +0 -388
- package/dist/_openapi_client/core/resource.cjs +0 -17
- package/dist/_openapi_client/core/resource.d.ts +0 -5
- package/dist/_openapi_client/core/resource.js +0 -13
- package/dist/_openapi_client/core/uploads.cjs +0 -5
- package/dist/_openapi_client/core/uploads.d.ts +0 -2
- package/dist/_openapi_client/core/uploads.js +0 -1
- package/dist/_openapi_client/index.cjs +0 -29
- package/dist/_openapi_client/index.d.ts +0 -6
- package/dist/_openapi_client/index.js +0 -8
- package/dist/_openapi_client/internal/builtin-types.cjs +0 -4
- package/dist/_openapi_client/internal/builtin-types.d.ts +0 -72
- package/dist/_openapi_client/internal/builtin-types.js +0 -3
- package/dist/_openapi_client/internal/detect-platform.cjs +0 -162
- package/dist/_openapi_client/internal/detect-platform.d.ts +0 -14
- package/dist/_openapi_client/internal/detect-platform.js +0 -157
- package/dist/_openapi_client/internal/errors.cjs +0 -41
- package/dist/_openapi_client/internal/errors.d.ts +0 -2
- package/dist/_openapi_client/internal/errors.js +0 -36
- package/dist/_openapi_client/internal/headers.cjs +0 -79
- package/dist/_openapi_client/internal/headers.d.ts +0 -18
- package/dist/_openapi_client/internal/headers.js +0 -74
- package/dist/_openapi_client/internal/parse.cjs +0 -40
- package/dist/_openapi_client/internal/parse.d.ts +0 -11
- package/dist/_openapi_client/internal/parse.js +0 -37
- package/dist/_openapi_client/internal/qs/formats.cjs +0 -12
- package/dist/_openapi_client/internal/qs/formats.d.ts +0 -6
- package/dist/_openapi_client/internal/qs/formats.js +0 -8
- package/dist/_openapi_client/internal/qs/stringify.cjs +0 -277
- package/dist/_openapi_client/internal/qs/stringify.d.ts +0 -2
- package/dist/_openapi_client/internal/qs/stringify.js +0 -274
- package/dist/_openapi_client/internal/qs/types.cjs +0 -2
- package/dist/_openapi_client/internal/qs/types.d.ts +0 -56
- package/dist/_openapi_client/internal/qs/types.js +0 -1
- package/dist/_openapi_client/internal/qs/utils.cjs +0 -230
- package/dist/_openapi_client/internal/qs/utils.d.ts +0 -14
- package/dist/_openapi_client/internal/qs/utils.js +0 -217
- package/dist/_openapi_client/internal/request-options.cjs +0 -14
- package/dist/_openapi_client/internal/request-options.d.ts +0 -74
- package/dist/_openapi_client/internal/request-options.js +0 -10
- package/dist/_openapi_client/internal/shim-types.cjs +0 -4
- package/dist/_openapi_client/internal/shim-types.d.ts +0 -16
- package/dist/_openapi_client/internal/shim-types.js +0 -3
- package/dist/_openapi_client/internal/shims.cjs +0 -92
- package/dist/_openapi_client/internal/shims.d.ts +0 -25
- package/dist/_openapi_client/internal/shims.js +0 -85
- package/dist/_openapi_client/internal/to-file.cjs +0 -91
- package/dist/_openapi_client/internal/to-file.d.ts +0 -44
- package/dist/_openapi_client/internal/to-file.js +0 -88
- package/dist/_openapi_client/internal/types.cjs +0 -4
- package/dist/_openapi_client/internal/types.d.ts +0 -35
- package/dist/_openapi_client/internal/types.js +0 -3
- package/dist/_openapi_client/internal/uploads.cjs +0 -140
- package/dist/_openapi_client/internal/uploads.d.ts +0 -41
- package/dist/_openapi_client/internal/uploads.js +0 -130
- package/dist/_openapi_client/internal/utils/env.cjs +0 -22
- package/dist/_openapi_client/internal/utils/env.d.ts +0 -8
- package/dist/_openapi_client/internal/utils/env.js +0 -18
- package/dist/_openapi_client/internal/utils/log.cjs +0 -88
- package/dist/_openapi_client/internal/utils/log.d.ts +0 -36
- package/dist/_openapi_client/internal/utils/log.js +0 -82
- package/dist/_openapi_client/internal/utils/path.cjs +0 -79
- package/dist/_openapi_client/internal/utils/path.d.ts +0 -14
- package/dist/_openapi_client/internal/utils/path.js +0 -74
- package/dist/_openapi_client/internal/utils/query.cjs +0 -42
- package/dist/_openapi_client/internal/utils/query.d.ts +0 -1
- package/dist/_openapi_client/internal/utils/query.js +0 -6
- package/dist/_openapi_client/internal/utils/sleep.cjs +0 -7
- package/dist/_openapi_client/internal/utils/sleep.d.ts +0 -1
- package/dist/_openapi_client/internal/utils/sleep.js +0 -3
- package/dist/_openapi_client/internal/utils/uuid.cjs +0 -19
- package/dist/_openapi_client/internal/utils/uuid.d.ts +0 -4
- package/dist/_openapi_client/internal/utils/uuid.js +0 -15
- package/dist/_openapi_client/internal/utils/values.cjs +0 -112
- package/dist/_openapi_client/internal/utils/values.d.ts +0 -17
- package/dist/_openapi_client/internal/utils/values.js +0 -94
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.cjs +0 -157
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.d.ts +0 -383
- package/dist/_openapi_client/resources/annotation-queues/annotation-queues.js +0 -120
- package/dist/_openapi_client/resources/annotation-queues/items.cjs +0 -91
- package/dist/_openapi_client/resources/annotation-queues/items.d.ts +0 -232
- package/dist/_openapi_client/resources/annotation-queues/items.js +0 -87
- package/dist/_openapi_client/resources/annotation-queues/runs.cjs +0 -73
- package/dist/_openapi_client/resources/annotation-queues/runs.d.ts +0 -197
- package/dist/_openapi_client/resources/annotation-queues/runs.js +0 -69
- package/dist/_openapi_client/resources/datasets/datasets.cjs +0 -63
- package/dist/_openapi_client/resources/datasets/datasets.d.ts +0 -154
- package/dist/_openapi_client/resources/datasets/datasets.js +0 -26
- package/dist/_openapi_client/resources/datasets/examples.cjs +0 -26
- package/dist/_openapi_client/resources/datasets/examples.d.ts +0 -23
- package/dist/_openapi_client/resources/datasets/examples.js +0 -22
- package/dist/_openapi_client/resources/datasets/experiment-runs.cjs +0 -20
- package/dist/_openapi_client/resources/datasets/experiment-runs.d.ts +0 -111
- package/dist/_openapi_client/resources/datasets/experiment-runs.js +0 -16
- package/dist/_openapi_client/resources/fleet/fleet.cjs +0 -54
- package/dist/_openapi_client/resources/fleet/fleet.d.ts +0 -9
- package/dist/_openapi_client/resources/fleet/fleet.js +0 -17
- package/dist/_openapi_client/resources/fleet/threads.cjs +0 -18
- package/dist/_openapi_client/resources/fleet/threads.d.ts +0 -19
- package/dist/_openapi_client/resources/fleet/threads.js +0 -14
- package/dist/_openapi_client/resources/index.cjs +0 -31
- package/dist/_openapi_client/resources/index.d.ts +0 -13
- package/dist/_openapi_client/resources/index.js +0 -15
- package/dist/_openapi_client/resources/info.cjs +0 -17
- package/dist/_openapi_client/resources/info.d.ts +0 -51
- package/dist/_openapi_client/resources/info.js +0 -13
- package/dist/_openapi_client/resources/issues.cjs +0 -31
- package/dist/_openapi_client/resources/issues.d.ts +0 -291
- package/dist/_openapi_client/resources/issues.js +0 -27
- package/dist/_openapi_client/resources/online-evaluators.cjs +0 -73
- package/dist/_openapi_client/resources/online-evaluators.d.ts +0 -361
- package/dist/_openapi_client/resources/online-evaluators.js +0 -69
- package/dist/_openapi_client/resources/product-feedback.cjs +0 -33
- package/dist/_openapi_client/resources/product-feedback.d.ts +0 -77
- package/dist/_openapi_client/resources/product-feedback.js +0 -29
- package/dist/_openapi_client/resources/public/public.cjs +0 -54
- package/dist/_openapi_client/resources/public/public.d.ts +0 -9
- package/dist/_openapi_client/resources/public/public.js +0 -17
- package/dist/_openapi_client/resources/public/runs.cjs +0 -58
- package/dist/_openapi_client/resources/public/runs.d.ts +0 -78
- package/dist/_openapi_client/resources/public/runs.js +0 -54
- package/dist/_openapi_client/resources/runs/index.cjs +0 -9
- package/dist/_openapi_client/resources/runs/index.d.ts +0 -2
- package/dist/_openapi_client/resources/runs/index.js +0 -4
- package/dist/_openapi_client/resources/runs/runs.cjs +0 -133
- package/dist/_openapi_client/resources/runs/runs.d.ts +0 -874
- package/dist/_openapi_client/resources/runs/runs.js +0 -96
- package/dist/_openapi_client/resources/runs/share.cjs +0 -46
- package/dist/_openapi_client/resources/runs/share.d.ts +0 -54
- package/dist/_openapi_client/resources/runs/share.js +0 -42
- package/dist/_openapi_client/resources/runs.cjs +0 -19
- package/dist/_openapi_client/resources/runs.d.ts +0 -1
- package/dist/_openapi_client/resources/runs.js +0 -3
- package/dist/_openapi_client/resources/sandboxes/boxes.cjs +0 -144
- package/dist/_openapi_client/resources/sandboxes/boxes.d.ts +0 -897
- package/dist/_openapi_client/resources/sandboxes/boxes.js +0 -140
- package/dist/_openapi_client/resources/sandboxes/registries.cjs +0 -44
- package/dist/_openapi_client/resources/sandboxes/registries.d.ts +0 -75
- package/dist/_openapi_client/resources/sandboxes/registries.js +0 -40
- package/dist/_openapi_client/resources/sandboxes/sandboxes.cjs +0 -85
- package/dist/_openapi_client/resources/sandboxes/sandboxes.d.ts +0 -624
- package/dist/_openapi_client/resources/sandboxes/sandboxes.js +0 -48
- package/dist/_openapi_client/resources/sandboxes/snapshots.cjs +0 -57
- package/dist/_openapi_client/resources/sandboxes/snapshots.d.ts +0 -137
- package/dist/_openapi_client/resources/sandboxes/snapshots.js +0 -53
- package/dist/_openapi_client/resources/sessions.cjs +0 -23
- package/dist/_openapi_client/resources/sessions.d.ts +0 -732
- package/dist/_openapi_client/resources/sessions.js +0 -19
- package/dist/_openapi_client/resources/threads/index.cjs +0 -9
- package/dist/_openapi_client/resources/threads/index.d.ts +0 -2
- package/dist/_openapi_client/resources/threads/index.js +0 -4
- package/dist/_openapi_client/resources/threads/share.cjs +0 -61
- package/dist/_openapi_client/resources/threads/share.d.ts +0 -71
- package/dist/_openapi_client/resources/threads/share.js +0 -57
- package/dist/_openapi_client/resources/threads/threads.cjs +0 -143
- package/dist/_openapi_client/resources/threads/threads.d.ts +0 -973
- package/dist/_openapi_client/resources/threads/threads.js +0 -106
- package/dist/_openapi_client/resources/threads.cjs +0 -19
- package/dist/_openapi_client/resources/threads.d.ts +0 -1
- package/dist/_openapi_client/resources/threads.js +0 -3
- package/dist/_openapi_client/resources/traces.cjs +0 -64
- package/dist/_openapi_client/resources/traces.d.ts +0 -171
- package/dist/_openapi_client/resources/traces.js +0 -60
- package/dist/_openapi_client/version.cjs +0 -5
- package/dist/_openapi_client/version.d.ts +0 -1
- package/dist/_openapi_client/version.js +0 -2
- package/dist/address.cjs +0 -210
- package/dist/address.d.ts +0 -68
- package/dist/address.js +0 -200
- package/dist/anonymizer/index.cjs +0 -269
- package/dist/anonymizer/index.d.ts +0 -61
- package/dist/anonymizer/index.js +0 -264
- package/dist/client.cjs +0 -5800
- package/dist/client.d.ts +0 -1755
- package/dist/client.js +0 -5760
- package/dist/env.cjs +0 -25
- package/dist/env.d.ts +0 -10
- package/dist/env.js +0 -20
- package/dist/evaluation/_random_name.cjs +0 -729
- package/dist/evaluation/_random_name.d.ts +0 -5
- package/dist/evaluation/_random_name.js +0 -726
- package/dist/evaluation/_runner.cjs +0 -1140
- package/dist/evaluation/_runner.d.ts +0 -288
- package/dist/evaluation/_runner.js +0 -1131
- package/dist/evaluation/evaluate_comparative.cjs +0 -241
- package/dist/evaluation/evaluate_comparative.d.ts +0 -71
- package/dist/evaluation/evaluate_comparative.js +0 -234
- package/dist/evaluation/evaluator.cjs +0 -116
- package/dist/evaluation/evaluator.d.ts +0 -105
- package/dist/evaluation/evaluator.js +0 -111
- package/dist/evaluation/index.cjs +0 -9
- package/dist/evaluation/index.d.ts +0 -4
- package/dist/evaluation/index.js +0 -3
- package/dist/evaluation/string_evaluator.cjs +0 -66
- package/dist/evaluation/string_evaluator.d.ts +0 -30
- package/dist/evaluation/string_evaluator.js +0 -62
- package/dist/experimental/anthropic/context.cjs +0 -590
- package/dist/experimental/anthropic/context.d.ts +0 -5
- package/dist/experimental/anthropic/context.js +0 -586
- package/dist/experimental/anthropic/index.cjs +0 -260
- package/dist/experimental/anthropic/index.d.ts +0 -30
- package/dist/experimental/anthropic/index.js +0 -257
- package/dist/experimental/anthropic/messages.cjs +0 -155
- package/dist/experimental/anthropic/messages.d.ts +0 -12
- package/dist/experimental/anthropic/messages.js +0 -148
- package/dist/experimental/anthropic/transcripts.cjs +0 -144
- package/dist/experimental/anthropic/transcripts.d.ts +0 -22
- package/dist/experimental/anthropic/transcripts.js +0 -141
- package/dist/experimental/anthropic/types.cjs +0 -3
- package/dist/experimental/anthropic/types.d.ts +0 -51
- package/dist/experimental/anthropic/types.js +0 -2
- package/dist/experimental/anthropic/usage.cjs +0 -179
- package/dist/experimental/anthropic/usage.d.ts +0 -2
- package/dist/experimental/anthropic/usage.js +0 -173
- package/dist/experimental/anthropic/utils.cjs +0 -24
- package/dist/experimental/anthropic/utils.d.ts +0 -1
- package/dist/experimental/anthropic/utils.js +0 -20
- package/dist/experimental/otel/constants.cjs +0 -64
- package/dist/experimental/otel/constants.d.ts +0 -52
- package/dist/experimental/otel/constants.js +0 -60
- package/dist/experimental/otel/exporter.cjs +0 -239
- package/dist/experimental/otel/exporter.d.ts +0 -62
- package/dist/experimental/otel/exporter.js +0 -202
- package/dist/experimental/otel/processor.cjs +0 -90
- package/dist/experimental/otel/processor.d.ts +0 -13
- package/dist/experimental/otel/processor.js +0 -85
- package/dist/experimental/otel/setup.cjs +0 -95
- package/dist/experimental/otel/setup.d.ts +0 -66
- package/dist/experimental/otel/setup.js +0 -91
- package/dist/experimental/otel/translator.cjs +0 -475
- package/dist/experimental/otel/translator.d.ts +0 -22
- package/dist/experimental/otel/translator.js +0 -438
- package/dist/experimental/otel/types.cjs +0 -5
- package/dist/experimental/otel/types.d.ts +0 -29
- package/dist/experimental/otel/types.js +0 -4
- package/dist/experimental/otel/utils.cjs +0 -23
- package/dist/experimental/otel/utils.d.ts +0 -12
- package/dist/experimental/otel/utils.js +0 -19
- package/dist/experimental/vercel/_agent_type.cjs +0 -30
- package/dist/experimental/vercel/_agent_type.d.ts +0 -5
- package/dist/experimental/vercel/_agent_type.js +0 -26
- package/dist/experimental/vercel/index.cjs +0 -20
- package/dist/experimental/vercel/index.js +0 -2
- package/dist/experimental/vercel/middleware.cjs +0 -240
- package/dist/experimental/vercel/middleware.d.ts +0 -38
- package/dist/experimental/vercel/middleware.js +0 -237
- package/dist/experimental/vercel/telemetry.cjs +0 -599
- package/dist/experimental/vercel/telemetry.d.ts +0 -89
- package/dist/experimental/vercel/telemetry.js +0 -596
- package/dist/experimental/vercel/utils.cjs +0 -288
- package/dist/experimental/vercel/utils.d.ts +0 -28
- package/dist/experimental/vercel/utils.js +0 -282
- package/dist/experimental/vercel/wrap.cjs +0 -633
- package/dist/experimental/vercel/wrap.d.ts +0 -257
- package/dist/experimental/vercel/wrap.js +0 -629
- package/dist/index.cjs +0 -45
- package/dist/index.d.ts +0 -12
- package/dist/index.js +0 -13
- package/dist/jest/index.cjs +0 -111
- package/dist/jest/index.d.ts +0 -559
- package/dist/jest/index.js +0 -388
- package/dist/jest/reporter.cjs +0 -37
- package/dist/jest/reporter.d.ts +0 -5
- package/dist/jest/reporter.js +0 -35
- package/dist/langchain.cjs +0 -143
- package/dist/langchain.d.ts +0 -31
- package/dist/langchain.js +0 -138
- package/dist/run_trees.cjs +0 -1211
- package/dist/run_trees.d.ts +0 -180
- package/dist/run_trees.js +0 -1204
- package/dist/sandbox/access_delegation.cjs +0 -24
- package/dist/sandbox/access_delegation.d.ts +0 -15
- package/dist/sandbox/access_delegation.js +0 -21
- package/dist/sandbox/client.cjs +0 -1074
- package/dist/sandbox/client.d.ts +0 -338
- package/dist/sandbox/client.js +0 -1070
- package/dist/sandbox/command_handle.cjs +0 -410
- package/dist/sandbox/command_handle.d.ts +0 -111
- package/dist/sandbox/command_handle.js +0 -406
- package/dist/sandbox/errors.cjs +0 -430
- package/dist/sandbox/errors.d.ts +0 -201
- package/dist/sandbox/errors.js +0 -405
- package/dist/sandbox/helpers.cjs +0 -399
- package/dist/sandbox/helpers.d.ts +0 -108
- package/dist/sandbox/helpers.js +0 -383
- package/dist/sandbox/index.cjs +0 -89
- package/dist/sandbox/index.d.ts +0 -42
- package/dist/sandbox/index.js +0 -50
- package/dist/sandbox/mounts.cjs +0 -294
- package/dist/sandbox/mounts.d.ts +0 -49
- package/dist/sandbox/mounts.js +0 -286
- package/dist/sandbox/proxy_config.cjs +0 -162
- package/dist/sandbox/proxy_config.d.ts +0 -54
- package/dist/sandbox/proxy_config.js +0 -154
- package/dist/sandbox/sandbox.cjs +0 -653
- package/dist/sandbox/sandbox.d.ts +0 -286
- package/dist/sandbox/sandbox.js +0 -649
- package/dist/sandbox/service_url.cjs +0 -133
- package/dist/sandbox/service_url.d.ts +0 -51
- package/dist/sandbox/service_url.js +0 -128
- package/dist/sandbox/tracing.cjs +0 -13
- package/dist/sandbox/tracing.d.ts +0 -1
- package/dist/sandbox/tracing.js +0 -10
- package/dist/sandbox/types.cjs +0 -7
- package/dist/sandbox/types.d.ts +0 -933
- package/dist/sandbox/types.js +0 -6
- package/dist/sandbox/verify.cjs +0 -300
- package/dist/sandbox/verify.d.ts +0 -122
- package/dist/sandbox/verify.js +0 -296
- package/dist/sandbox/ws_execute.cjs +0 -476
- package/dist/sandbox/ws_execute.d.ts +0 -92
- package/dist/sandbox/ws_execute.js +0 -463
- package/dist/schemas.cjs +0 -2
- package/dist/schemas.d.ts +0 -666
- package/dist/schemas.js +0 -1
- package/dist/singletons/constants.cjs +0 -12
- package/dist/singletons/constants.d.ts +0 -6
- package/dist/singletons/constants.js +0 -8
- package/dist/singletons/fetch.cjs +0 -53
- package/dist/singletons/fetch.d.ts +0 -9
- package/dist/singletons/fetch.js +0 -46
- package/dist/singletons/otel.cjs +0 -156
- package/dist/singletons/otel.d.ts +0 -63
- package/dist/singletons/otel.js +0 -148
- package/dist/singletons/traceable.cjs +0 -48
- package/dist/singletons/traceable.d.ts +0 -24
- package/dist/singletons/traceable.js +0 -42
- package/dist/singletons/types.cjs +0 -3
- package/dist/singletons/types.d.ts +0 -47
- package/dist/singletons/types.js +0 -1
- package/dist/traceable.cjs +0 -918
- package/dist/traceable.d.ts +0 -89
- package/dist/traceable.js +0 -910
- package/dist/utils/_git.cjs +0 -99
- package/dist/utils/_git.d.ts +0 -14
- package/dist/utils/_git.js +0 -94
- package/dist/utils/_uuid.cjs +0 -171
- package/dist/utils/_uuid.d.ts +0 -47
- package/dist/utils/_uuid.js +0 -164
- package/dist/utils/addressing.cjs +0 -99
- package/dist/utils/addressing.d.ts +0 -27
- package/dist/utils/addressing.js +0 -91
- package/dist/utils/asserts.cjs +0 -47
- package/dist/utils/asserts.d.ts +0 -7
- package/dist/utils/asserts.js +0 -37
- package/dist/utils/async_caller.cjs +0 -160
- package/dist/utils/async_caller.d.ts +0 -55
- package/dist/utils/async_caller.js +0 -153
- package/dist/utils/atee.cjs +0 -23
- package/dist/utils/atee.d.ts +0 -1
- package/dist/utils/atee.js +0 -20
- package/dist/utils/chalk/source/index.cjs +0 -187
- package/dist/utils/chalk/source/index.d.ts +0 -19
- package/dist/utils/chalk/source/index.js +0 -173
- package/dist/utils/chalk/source/utilities.cjs +0 -35
- package/dist/utils/chalk/source/utilities.d.ts +0 -2
- package/dist/utils/chalk/source/utilities.js +0 -31
- package/dist/utils/chalk/source/vendor/ansi-styles/index.cjs +0 -193
- package/dist/utils/chalk/source/vendor/ansi-styles/index.d.ts +0 -58
- package/dist/utils/chalk/source/vendor/ansi-styles/index.js +0 -190
- package/dist/utils/chalk/source/vendor/supports-color/browser.cjs +0 -31
- package/dist/utils/chalk/source/vendor/supports-color/browser.d.ts +0 -15
- package/dist/utils/chalk/source/vendor/supports-color/browser.js +0 -29
- package/dist/utils/chalk/source/vendor/supports-color/index.cjs +0 -155
- package/dist/utils/chalk/source/vendor/supports-color/index.d.ts +0 -21
- package/dist/utils/chalk/source/vendor/supports-color/index.js +0 -149
- package/dist/utils/console-table-printer/index.cjs +0 -11
- package/dist/utils/console-table-printer/index.d.ts +0 -4
- package/dist/utils/console-table-printer/index.js +0 -3
- package/dist/utils/console-table-printer/src/console-table-printer.cjs +0 -42
- package/dist/utils/console-table-printer/src/console-table-printer.d.ts +0 -14
- package/dist/utils/console-table-printer/src/console-table-printer.js +0 -36
- package/dist/utils/console-table-printer/src/internalTable/input-converter.cjs +0 -25
- package/dist/utils/console-table-printer/src/internalTable/input-converter.d.ts +0 -6
- package/dist/utils/console-table-printer/src/internalTable/input-converter.js +0 -20
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.cjs +0 -142
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.d.ts +0 -6
- package/dist/utils/console-table-printer/src/internalTable/internal-table-printer.js +0 -133
- package/dist/utils/console-table-printer/src/internalTable/internal-table.cjs +0 -186
- package/dist/utils/console-table-printer/src/internalTable/internal-table.d.ts +0 -31
- package/dist/utils/console-table-printer/src/internalTable/internal-table.js +0 -184
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.cjs +0 -53
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.d.ts +0 -3
- package/dist/utils/console-table-printer/src/internalTable/table-pre-processors.js +0 -48
- package/dist/utils/console-table-printer/src/models/common.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/common.d.ts +0 -14
- package/dist/utils/console-table-printer/src/models/common.js +0 -1
- package/dist/utils/console-table-printer/src/models/external-table.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/external-table.d.ts +0 -99
- package/dist/utils/console-table-printer/src/models/external-table.js +0 -1
- package/dist/utils/console-table-printer/src/models/internal-table.cjs +0 -2
- package/dist/utils/console-table-printer/src/models/internal-table.d.ts +0 -24
- package/dist/utils/console-table-printer/src/models/internal-table.js +0 -1
- package/dist/utils/console-table-printer/src/utils/colored-console-line.cjs +0 -43
- package/dist/utils/console-table-printer/src/utils/colored-console-line.d.ts +0 -12
- package/dist/utils/console-table-printer/src/utils/colored-console-line.js +0 -39
- package/dist/utils/console-table-printer/src/utils/console-utils.cjs +0 -23
- package/dist/utils/console-table-printer/src/utils/console-utils.d.ts +0 -3
- package/dist/utils/console-table-printer/src/utils/console-utils.js +0 -18
- package/dist/utils/console-table-printer/src/utils/string-utils.cjs +0 -68
- package/dist/utils/console-table-printer/src/utils/string-utils.d.ts +0 -4
- package/dist/utils/console-table-printer/src/utils/string-utils.js +0 -62
- package/dist/utils/console-table-printer/src/utils/table-constants.cjs +0 -55
- package/dist/utils/console-table-printer/src/utils/table-constants.d.ts +0 -11
- package/dist/utils/console-table-printer/src/utils/table-constants.js +0 -52
- package/dist/utils/console-table-printer/src/utils/table-helpers.cjs +0 -101
- package/dist/utils/console-table-printer/src/utils/table-helpers.d.ts +0 -29
- package/dist/utils/console-table-printer/src/utils/table-helpers.js +0 -88
- package/dist/utils/context_vars.cjs +0 -31
- package/dist/utils/context_vars.d.ts +0 -8
- package/dist/utils/context_vars.js +0 -27
- package/dist/utils/env.cjs +0 -269
- package/dist/utils/env.d.ts +0 -53
- package/dist/utils/env.js +0 -251
- package/dist/utils/error.cjs +0 -197
- package/dist/utils/error.d.ts +0 -72
- package/dist/utils/error.js +0 -185
- package/dist/utils/fast-safe-stringify/index.cjs +0 -486
- package/dist/utils/fast-safe-stringify/index.d.ts +0 -47
- package/dist/utils/fast-safe-stringify/index.js +0 -482
- package/dist/utils/fs.browser.cjs +0 -62
- package/dist/utils/fs.browser.d.ts +0 -28
- package/dist/utils/fs.browser.js +0 -45
- package/dist/utils/fs.cjs +0 -123
- package/dist/utils/fs.d.ts +0 -24
- package/dist/utils/fs.js +0 -73
- package/dist/utils/guard.cjs +0 -13
- package/dist/utils/guard.d.ts +0 -6
- package/dist/utils/guard.js +0 -10
- package/dist/utils/is-network-error/index.cjs +0 -42
- package/dist/utils/is-network-error/index.d.ts +0 -1
- package/dist/utils/is-network-error/index.js +0 -39
- package/dist/utils/jestlike/constants.cjs +0 -9
- package/dist/utils/jestlike/constants.d.ts +0 -3
- package/dist/utils/jestlike/constants.js +0 -6
- package/dist/utils/jestlike/globals.cjs +0 -47
- package/dist/utils/jestlike/globals.d.ts +0 -35
- package/dist/utils/jestlike/globals.js +0 -42
- package/dist/utils/jestlike/index.cjs +0 -703
- package/dist/utils/jestlike/index.d.ts +0 -107
- package/dist/utils/jestlike/index.js +0 -655
- package/dist/utils/jestlike/matchers.cjs +0 -103
- package/dist/utils/jestlike/matchers.d.ts +0 -27
- package/dist/utils/jestlike/matchers.js +0 -98
- package/dist/utils/jestlike/reporter.cjs +0 -295
- package/dist/utils/jestlike/reporter.d.ts +0 -5
- package/dist/utils/jestlike/reporter.js +0 -256
- package/dist/utils/jestlike/types.cjs +0 -2
- package/dist/utils/jestlike/types.d.ts +0 -39
- package/dist/utils/jestlike/types.js +0 -1
- package/dist/utils/jestlike/vendor/chain.cjs +0 -91
- package/dist/utils/jestlike/vendor/chain.d.ts +0 -1
- package/dist/utils/jestlike/vendor/chain.js +0 -88
- package/dist/utils/jestlike/vendor/evaluatedBy.cjs +0 -96
- package/dist/utils/jestlike/vendor/evaluatedBy.d.ts +0 -12
- package/dist/utils/jestlike/vendor/evaluatedBy.js +0 -92
- package/dist/utils/ls_agent_type.cjs +0 -31
- package/dist/utils/ls_agent_type.d.ts +0 -9
- package/dist/utils/ls_agent_type.js +0 -25
- package/dist/utils/messages.cjs +0 -21
- package/dist/utils/messages.d.ts +0 -11
- package/dist/utils/messages.js +0 -17
- package/dist/utils/p-queue.cjs +0 -9
- package/dist/utils/p-queue.d.ts +0 -2
- package/dist/utils/p-queue.js +0 -3
- package/dist/utils/p-retry/index.cjs +0 -200
- package/dist/utils/p-retry/index.d.ts +0 -5
- package/dist/utils/p-retry/index.js +0 -191
- package/dist/utils/profile-lock.cjs +0 -140
- package/dist/utils/profile-lock.d.ts +0 -20
- package/dist/utils/profile-lock.js +0 -103
- package/dist/utils/profiles.cjs +0 -442
- package/dist/utils/profiles.d.ts +0 -55
- package/dist/utils/profiles.js +0 -402
- package/dist/utils/project.cjs +0 -10
- package/dist/utils/project.d.ts +0 -1
- package/dist/utils/project.js +0 -6
- package/dist/utils/prompt_cache/index.cjs +0 -361
- package/dist/utils/prompt_cache/index.d.ts +0 -170
- package/dist/utils/prompt_cache/index.js +0 -355
- package/dist/utils/prompts.cjs +0 -33
- package/dist/utils/prompts.d.ts +0 -6
- package/dist/utils/prompts.js +0 -30
- package/dist/utils/redaction.cjs +0 -38
- package/dist/utils/redaction.d.ts +0 -10
- package/dist/utils/redaction.js +0 -33
- package/dist/utils/sampling.cjs +0 -34
- package/dist/utils/sampling.d.ts +0 -10
- package/dist/utils/sampling.js +0 -30
- package/dist/utils/serialize_worker.cjs +0 -388
- package/dist/utils/serialize_worker.d.ts +0 -66
- package/dist/utils/serialize_worker.js +0 -382
- package/dist/utils/shuffle.cjs +0 -14
- package/dist/utils/shuffle.d.ts +0 -1
- package/dist/utils/shuffle.js +0 -11
- package/dist/utils/simple-wcswidth/index.cjs +0 -10
- package/dist/utils/simple-wcswidth/index.d.ts +0 -3
- package/dist/utils/simple-wcswidth/index.js +0 -3
- package/dist/utils/simple-wcswidth/src/binary-search.cjs +0 -24
- package/dist/utils/simple-wcswidth/src/binary-search.d.ts +0 -3
- package/dist/utils/simple-wcswidth/src/binary-search.js +0 -22
- package/dist/utils/simple-wcswidth/src/models.cjs +0 -2
- package/dist/utils/simple-wcswidth/src/models.d.ts +0 -4
- package/dist/utils/simple-wcswidth/src/models.js +0 -1
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.cjs +0 -149
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.d.ts +0 -3
- package/dist/utils/simple-wcswidth/src/non-spacing-chars.js +0 -147
- package/dist/utils/simple-wcswidth/src/wcswidth.cjs +0 -20
- package/dist/utils/simple-wcswidth/src/wcswidth.d.ts +0 -2
- package/dist/utils/simple-wcswidth/src/wcswidth.js +0 -15
- package/dist/utils/simple-wcswidth/src/wcwidth.cjs +0 -67
- package/dist/utils/simple-wcswidth/src/wcwidth.d.ts +0 -2
- package/dist/utils/simple-wcswidth/src/wcwidth.js +0 -62
- package/dist/utils/types.cjs +0 -13
- package/dist/utils/types.d.ts +0 -2
- package/dist/utils/types.js +0 -8
- package/dist/utils/usage.cjs +0 -28
- package/dist/utils/usage.d.ts +0 -1
- package/dist/utils/usage.js +0 -24
- package/dist/utils/uuid/src/index.cjs +0 -24
- package/dist/utils/uuid/src/index.js +0 -9
- package/dist/utils/uuid/src/max.cjs +0 -3
- package/dist/utils/uuid/src/max.d.ts +0 -2
- package/dist/utils/uuid/src/nil.cjs +0 -3
- package/dist/utils/uuid/src/nil.d.ts +0 -2
- package/dist/utils/uuid/src/parse.cjs +0 -23
- package/dist/utils/uuid/src/parse.d.ts +0 -3
- package/dist/utils/uuid/src/parse.js +0 -18
- package/dist/utils/uuid/src/regex.cjs +0 -3
- package/dist/utils/uuid/src/regex.d.ts +0 -2
- package/dist/utils/uuid/src/rng.cjs +0 -10
- package/dist/utils/uuid/src/rng.d.ts +0 -1
- package/dist/utils/uuid/src/rng.js +0 -7
- package/dist/utils/uuid/src/sha1.cjs +0 -75
- package/dist/utils/uuid/src/sha1.d.ts +0 -2
- package/dist/utils/uuid/src/sha1.js +0 -73
- package/dist/utils/uuid/src/stringify.cjs +0 -55
- package/dist/utils/uuid/src/stringify.d.ts +0 -3
- package/dist/utils/uuid/src/stringify.js +0 -49
- package/dist/utils/uuid/src/types.cjs +0 -2
- package/dist/utils/uuid/src/types.d.ts +0 -22
- package/dist/utils/uuid/src/types.js +0 -1
- package/dist/utils/uuid/src/v35.cjs +0 -52
- package/dist/utils/uuid/src/v35.d.ts +0 -7
- package/dist/utils/uuid/src/v35.js +0 -44
- package/dist/utils/uuid/src/v4.cjs +0 -40
- package/dist/utils/uuid/src/v4.d.ts +0 -4
- package/dist/utils/uuid/src/v4.js +0 -35
- package/dist/utils/uuid/src/v5.cjs +0 -50
- package/dist/utils/uuid/src/v5.d.ts +0 -9
- package/dist/utils/uuid/src/v5.js +0 -9
- package/dist/utils/uuid/src/v7.cjs +0 -88
- package/dist/utils/uuid/src/v7.d.ts +0 -9
- package/dist/utils/uuid/src/v7.js +0 -82
- package/dist/utils/uuid/src/validate.cjs +0 -10
- package/dist/utils/uuid/src/validate.d.ts +0 -2
- package/dist/utils/uuid/src/validate.js +0 -5
- package/dist/utils/uuid/src/version.cjs +0 -13
- package/dist/utils/uuid/src/version.d.ts +0 -2
- package/dist/utils/uuid/src/version.js +0 -8
- package/dist/utils/v2_migration.cjs +0 -74
- package/dist/utils/v2_migration.d.ts +0 -15
- package/dist/utils/v2_migration.js +0 -68
- package/dist/utils/vercel.cjs +0 -283
- package/dist/utils/vercel.d.ts +0 -25
- package/dist/utils/vercel.js +0 -278
- package/dist/utils/warn.cjs +0 -36
- package/dist/utils/warn.d.ts +0 -4
- package/dist/utils/warn.js +0 -32
- package/dist/utils/worker_threads.browser.cjs +0 -16
- package/dist/utils/worker_threads.browser.d.ts +0 -14
- package/dist/utils/worker_threads.browser.js +0 -13
- package/dist/utils/worker_threads.cjs +0 -16
- package/dist/utils/worker_threads.d.ts +0 -13
- package/dist/utils/worker_threads.js +0 -13
- package/dist/utils/xxhash/xxhash.cjs +0 -331
- package/dist/utils/xxhash/xxhash.d.ts +0 -15
- package/dist/utils/xxhash/xxhash.js +0 -327
- package/dist/uuid.cjs +0 -33
- package/dist/uuid.d.ts +0 -13
- package/dist/uuid.js +0 -27
- package/dist/vitest/index.cjs +0 -46
- package/dist/vitest/index.d.mts +0 -392
- package/dist/vitest/index.d.ts +0 -392
- package/dist/vitest/index.js +0 -323
- package/dist/vitest/index.mjs +0 -324
- package/dist/vitest/reporter.cjs +0 -31
- package/dist/vitest/reporter.d.mts +0 -11
- package/dist/vitest/reporter.d.ts +0 -8
- package/dist/vitest/reporter.js +0 -29
- package/dist/vitest/reporter.mjs +0 -31
- package/dist/vitest/utils/esm.d.mts +0 -8
- package/dist/vitest/utils/esm.mjs +0 -38
- package/dist/vitest/utils/reporter.cjs +0 -39
- package/dist/vitest/utils/reporter.d.ts +0 -17
- package/dist/vitest/utils/reporter.js +0 -34
- package/dist/vitest/utils/wrapper.cjs +0 -63
- package/dist/vitest/utils/wrapper.d.ts +0 -167
- package/dist/vitest/utils/wrapper.js +0 -59
- package/dist/wrappers/anthropic.cjs +0 -392
- package/dist/wrappers/anthropic.d.ts +0 -82
- package/dist/wrappers/anthropic.js +0 -387
- package/dist/wrappers/gemini.cjs +0 -408
- package/dist/wrappers/gemini.d.ts +0 -46
- package/dist/wrappers/gemini.js +0 -405
- package/dist/wrappers/gemini.utils.cjs +0 -41
- package/dist/wrappers/gemini.utils.d.ts +0 -3
- package/dist/wrappers/gemini.utils.js +0 -37
- package/dist/wrappers/generic.cjs +0 -49
- package/dist/wrappers/generic.d.ts +0 -21
- package/dist/wrappers/generic.js +0 -44
- package/dist/wrappers/index.cjs +0 -20
- package/dist/wrappers/index.js +0 -2
- package/dist/wrappers/openai.cjs +0 -476
- package/dist/wrappers/openai.d.ts +0 -80
- package/dist/wrappers/openai.js +0 -472
- package/dist/wrappers/openai_agents.cjs +0 -862
- package/dist/wrappers/openai_agents.d.ts +0 -91
- package/dist/wrappers/openai_agents.js +0 -858
- package/dist/wrappers/utils/anthropic_managed.cjs +0 -648
- package/dist/wrappers/utils/anthropic_managed.d.ts +0 -7
- package/dist/wrappers/utils/anthropic_managed.js +0 -645
- package/evaluation.cjs +0 -1
- package/evaluation.d.cts +0 -1
- package/experimental/anthropic.cjs +0 -1
- package/experimental/anthropic.d.cts +0 -1
- package/experimental/otel/exporter.cjs +0 -1
- package/experimental/otel/exporter.d.cts +0 -1
- package/experimental/otel/processor.cjs +0 -1
- package/experimental/otel/processor.d.cts +0 -1
- package/experimental/otel/setup.cjs +0 -1
- package/experimental/otel/setup.d.cts +0 -1
- package/experimental/sandbox.cjs +0 -1
- package/experimental/sandbox.d.cts +0 -1
- package/experimental/vercel.cjs +0 -1
- package/experimental/vercel.d.cts +0 -1
- package/index.cjs +0 -1
- package/index.d.cts +0 -1
- package/jest/reporter.cjs +0 -1
- package/jest/reporter.d.cts +0 -1
- package/jest.cjs +0 -1
- package/jest.d.cts +0 -1
- package/langchain.cjs +0 -1
- package/langchain.d.cts +0 -1
- package/run_trees.cjs +0 -1
- package/run_trees.d.cts +0 -1
- package/sandbox.cjs +0 -1
- package/sandbox.d.cts +0 -1
- package/schemas.cjs +0 -1
- package/schemas.d.cts +0 -1
- package/singletons/traceable.cjs +0 -1
- package/singletons/traceable.d.cts +0 -1
- package/traceable.cjs +0 -1
- package/traceable.d.cts +0 -1
- package/utils/jestlike.cjs +0 -1
- package/utils/jestlike.d.cts +0 -1
- package/vitest/reporter.cjs +0 -1
- package/vitest/reporter.d.cts +0 -1
- package/vitest/reporter.d.ts +0 -1
- package/vitest/reporter.js +0 -1
- package/vitest.cjs +0 -1
- package/vitest.d.cts +0 -1
- package/vitest.d.ts +0 -1
- package/vitest.js +0 -1
- package/wrappers/anthropic.cjs +0 -1
- package/wrappers/anthropic.d.cts +0 -1
- package/wrappers/gemini.cjs +0 -1
- package/wrappers/gemini.d.cts +0 -1
- package/wrappers/openai.cjs +0 -1
- package/wrappers/openai.d.cts +0 -1
- package/wrappers/openai_agents.cjs +0 -1
- package/wrappers/openai_agents.d.cts +0 -1
- package/wrappers.cjs +0 -1
- package/wrappers.d.cts +0 -1
- /package/{dist/experimental/vercel/index.d.ts → src/lib/experimental/vercel/index.ts} +0 -0
- /package/{dist/utils/uuid/src/index.d.ts → src/lib/utils/uuid/src/index.ts} +0 -0
- /package/{dist/utils/uuid/src/max.js → src/lib/utils/uuid/src/max.ts} +0 -0
- /package/{dist/utils/uuid/src/nil.js → src/lib/utils/uuid/src/nil.ts} +0 -0
- /package/{dist/utils/uuid/src/regex.js → src/lib/utils/uuid/src/regex.ts} +0 -0
- /package/{dist/wrappers/index.d.ts → src/lib/wrappers/index.ts} +0 -0
|
@@ -1,1140 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports._ExperimentManager = void 0;
|
|
4
|
-
exports.evaluate = evaluate;
|
|
5
|
-
exports._reorderResultRowsByExampleIndex = _reorderResultRowsByExampleIndex;
|
|
6
|
-
exports._extractEvaluatorFeedbackKeys = _extractEvaluatorFeedbackKeys;
|
|
7
|
-
exports._collectEvaluatorKeys = _collectEvaluatorKeys;
|
|
8
|
-
exports._mapWithConcurrency = _mapWithConcurrency;
|
|
9
|
-
const index_js_1 = require("../index.cjs");
|
|
10
|
-
const traceable_js_1 = require("../traceable.cjs");
|
|
11
|
-
const _git_js_1 = require("../utils/_git.cjs");
|
|
12
|
-
const _uuid_js_1 = require("../utils/_uuid.cjs");
|
|
13
|
-
const atee_js_1 = require("../utils/atee.cjs");
|
|
14
|
-
const env_js_1 = require("../utils/env.cjs");
|
|
15
|
-
const error_js_1 = require("../utils/error.cjs");
|
|
16
|
-
const _random_name_js_1 = require("./_random_name.cjs");
|
|
17
|
-
const evaluator_js_1 = require("./evaluator.cjs");
|
|
18
|
-
const index_js_2 = require("../utils/uuid/src/index.cjs");
|
|
19
|
-
const evaluate_comparative_js_1 = require("./evaluate_comparative.cjs");
|
|
20
|
-
const p_queue_js_1 = require("../utils/p-queue.cjs");
|
|
21
|
-
// Implementation signature
|
|
22
|
-
function evaluate(target, options) {
|
|
23
|
-
return _evaluate(target, options);
|
|
24
|
-
}
|
|
25
|
-
function _reorderResultRowsByExampleIndex(rows) {
|
|
26
|
-
const sortedRows = [...rows].sort((a, b) => a.exampleIndex - b.exampleIndex);
|
|
27
|
-
return {
|
|
28
|
-
orderedRows: sortedRows.map(({ run, example, evaluationResults }) => ({
|
|
29
|
-
run,
|
|
30
|
-
example,
|
|
31
|
-
evaluationResults,
|
|
32
|
-
})),
|
|
33
|
-
orderedRuns: sortedRows.map((row) => row.run),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Manage the execution of experiments.
|
|
38
|
-
*
|
|
39
|
-
* Supports lazily running predictions and evaluations in parallel to facilitate
|
|
40
|
-
* result streaming and early debugging.
|
|
41
|
-
*/
|
|
42
|
-
class _ExperimentManager {
|
|
43
|
-
get experimentName() {
|
|
44
|
-
if (this._experimentName) {
|
|
45
|
-
return this._experimentName;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
throw new Error("Experiment name not provided, and experiment not yet started.");
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
async getExamples() {
|
|
52
|
-
if (!this._examples) {
|
|
53
|
-
if (!this._data) {
|
|
54
|
-
throw new Error("Data not provided in this experiment.");
|
|
55
|
-
}
|
|
56
|
-
const unresolvedData = _resolveData(this._data, {
|
|
57
|
-
client: this.client,
|
|
58
|
-
includeAttachments: this._includeAttachments,
|
|
59
|
-
});
|
|
60
|
-
if (!this._examples) {
|
|
61
|
-
this._examples = [];
|
|
62
|
-
}
|
|
63
|
-
const exs = [];
|
|
64
|
-
for await (const example of unresolvedData) {
|
|
65
|
-
exs.push(example);
|
|
66
|
-
}
|
|
67
|
-
if (this._numRepetitions && this._numRepetitions > 0) {
|
|
68
|
-
const repeatedExamples = [];
|
|
69
|
-
for (let i = 0; i < this._numRepetitions; i++) {
|
|
70
|
-
repeatedExamples.push(...exs);
|
|
71
|
-
}
|
|
72
|
-
this.setExamples(repeatedExamples);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
this.setExamples(exs);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return this._examples;
|
|
79
|
-
}
|
|
80
|
-
setExamples(examples) {
|
|
81
|
-
this._examples = examples;
|
|
82
|
-
}
|
|
83
|
-
get datasetId() {
|
|
84
|
-
return this.getExamples().then((examples) => {
|
|
85
|
-
if (examples.length === 0) {
|
|
86
|
-
throw new Error("No examples found in the dataset.");
|
|
87
|
-
}
|
|
88
|
-
if (this._experiment && this._experiment.reference_dataset_id) {
|
|
89
|
-
return this._experiment.reference_dataset_id;
|
|
90
|
-
}
|
|
91
|
-
return examples[0].dataset_id;
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
get evaluationResults() {
|
|
95
|
-
if (this._evaluationResults === undefined) {
|
|
96
|
-
return async function* () {
|
|
97
|
-
for (const _ of await this.getExamples()) {
|
|
98
|
-
yield { results: [] };
|
|
99
|
-
}
|
|
100
|
-
}.call(this);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
return this._evaluationResults;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
get runs() {
|
|
107
|
-
if (this._runsArray && this._runsArray.length > 0) {
|
|
108
|
-
throw new Error("Runs already provided as an array.");
|
|
109
|
-
}
|
|
110
|
-
if (this._runs === undefined) {
|
|
111
|
-
throw new Error("Runs not provided in this experiment. Please predict first.");
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return this._runs;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
constructor(args) {
|
|
118
|
-
Object.defineProperty(this, "_data", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
configurable: true,
|
|
121
|
-
writable: true,
|
|
122
|
-
value: void 0
|
|
123
|
-
});
|
|
124
|
-
Object.defineProperty(this, "_runs", {
|
|
125
|
-
enumerable: true,
|
|
126
|
-
configurable: true,
|
|
127
|
-
writable: true,
|
|
128
|
-
value: void 0
|
|
129
|
-
});
|
|
130
|
-
Object.defineProperty(this, "_evaluationResults", {
|
|
131
|
-
enumerable: true,
|
|
132
|
-
configurable: true,
|
|
133
|
-
writable: true,
|
|
134
|
-
value: void 0
|
|
135
|
-
});
|
|
136
|
-
Object.defineProperty(this, "_summaryResults", {
|
|
137
|
-
enumerable: true,
|
|
138
|
-
configurable: true,
|
|
139
|
-
writable: true,
|
|
140
|
-
value: void 0
|
|
141
|
-
});
|
|
142
|
-
Object.defineProperty(this, "_resultRows", {
|
|
143
|
-
enumerable: true,
|
|
144
|
-
configurable: true,
|
|
145
|
-
writable: true,
|
|
146
|
-
value: void 0
|
|
147
|
-
});
|
|
148
|
-
Object.defineProperty(this, "_examples", {
|
|
149
|
-
enumerable: true,
|
|
150
|
-
configurable: true,
|
|
151
|
-
writable: true,
|
|
152
|
-
value: void 0
|
|
153
|
-
});
|
|
154
|
-
Object.defineProperty(this, "_numExamples", {
|
|
155
|
-
enumerable: true,
|
|
156
|
-
configurable: true,
|
|
157
|
-
writable: true,
|
|
158
|
-
value: void 0
|
|
159
|
-
});
|
|
160
|
-
Object.defineProperty(this, "_numRepetitions", {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
configurable: true,
|
|
163
|
-
writable: true,
|
|
164
|
-
value: void 0
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(this, "_evaluatorKeys", {
|
|
167
|
-
enumerable: true,
|
|
168
|
-
configurable: true,
|
|
169
|
-
writable: true,
|
|
170
|
-
value: void 0
|
|
171
|
-
});
|
|
172
|
-
Object.defineProperty(this, "_runsArray", {
|
|
173
|
-
enumerable: true,
|
|
174
|
-
configurable: true,
|
|
175
|
-
writable: true,
|
|
176
|
-
value: void 0
|
|
177
|
-
});
|
|
178
|
-
Object.defineProperty(this, "client", {
|
|
179
|
-
enumerable: true,
|
|
180
|
-
configurable: true,
|
|
181
|
-
writable: true,
|
|
182
|
-
value: void 0
|
|
183
|
-
});
|
|
184
|
-
Object.defineProperty(this, "_experiment", {
|
|
185
|
-
enumerable: true,
|
|
186
|
-
configurable: true,
|
|
187
|
-
writable: true,
|
|
188
|
-
value: void 0
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(this, "_experimentName", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
configurable: true,
|
|
193
|
-
writable: true,
|
|
194
|
-
value: void 0
|
|
195
|
-
});
|
|
196
|
-
Object.defineProperty(this, "_metadata", {
|
|
197
|
-
enumerable: true,
|
|
198
|
-
configurable: true,
|
|
199
|
-
writable: true,
|
|
200
|
-
value: void 0
|
|
201
|
-
});
|
|
202
|
-
Object.defineProperty(this, "_description", {
|
|
203
|
-
enumerable: true,
|
|
204
|
-
configurable: true,
|
|
205
|
-
writable: true,
|
|
206
|
-
value: void 0
|
|
207
|
-
});
|
|
208
|
-
Object.defineProperty(this, "_includeAttachments", {
|
|
209
|
-
enumerable: true,
|
|
210
|
-
configurable: true,
|
|
211
|
-
writable: true,
|
|
212
|
-
value: void 0
|
|
213
|
-
});
|
|
214
|
-
Object.defineProperty(this, "_disableEvaluatorTracing", {
|
|
215
|
-
enumerable: true,
|
|
216
|
-
configurable: true,
|
|
217
|
-
writable: true,
|
|
218
|
-
value: void 0
|
|
219
|
-
});
|
|
220
|
-
this.client = args.client ?? new index_js_1.Client();
|
|
221
|
-
if (!args.experiment) {
|
|
222
|
-
this._experimentName = (0, _random_name_js_1.randomName)();
|
|
223
|
-
}
|
|
224
|
-
else if (typeof args.experiment === "string") {
|
|
225
|
-
this._experimentName = `${args.experiment}-${(0, index_js_2.v4)().slice(0, 8)}`;
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
if (!args.experiment.name) {
|
|
229
|
-
throw new Error("Experiment must have a name");
|
|
230
|
-
}
|
|
231
|
-
this._experimentName = args.experiment.name;
|
|
232
|
-
this._experiment = args.experiment;
|
|
233
|
-
}
|
|
234
|
-
let metadata = args.metadata || {};
|
|
235
|
-
if (!("revision_id" in metadata)) {
|
|
236
|
-
metadata = {
|
|
237
|
-
revision_id: (0, env_js_1.getLangSmithEnvVarsMetadata)().revision_id,
|
|
238
|
-
...metadata,
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
this._metadata = metadata;
|
|
242
|
-
if (args.examples && args.examples.length) {
|
|
243
|
-
this.setExamples(args.examples);
|
|
244
|
-
}
|
|
245
|
-
this._data = args.data;
|
|
246
|
-
if (args._runsArray && args._runsArray.length) {
|
|
247
|
-
this._runsArray = args._runsArray;
|
|
248
|
-
}
|
|
249
|
-
this._runs = args.runs;
|
|
250
|
-
this._evaluationResults = args.evaluationResults;
|
|
251
|
-
this._summaryResults = args.summaryResults;
|
|
252
|
-
this._resultRows = args.resultRows;
|
|
253
|
-
this._numRepetitions = args.numRepetitions;
|
|
254
|
-
this._numExamples = args.numExamples;
|
|
255
|
-
this._evaluatorKeys = args.evaluatorKeys;
|
|
256
|
-
this._includeAttachments = args.includeAttachments;
|
|
257
|
-
this._disableEvaluatorTracing = args.disableEvaluatorTracing;
|
|
258
|
-
}
|
|
259
|
-
_getExperiment() {
|
|
260
|
-
if (!this._experiment) {
|
|
261
|
-
throw new Error("Experiment not yet started.");
|
|
262
|
-
}
|
|
263
|
-
return this._experiment;
|
|
264
|
-
}
|
|
265
|
-
async _getExperimentMetadata() {
|
|
266
|
-
let projectMetadata = this._metadata ?? {};
|
|
267
|
-
const gitInfo = await (0, _git_js_1.getGitInfo)();
|
|
268
|
-
if (gitInfo) {
|
|
269
|
-
projectMetadata = {
|
|
270
|
-
...projectMetadata,
|
|
271
|
-
git: gitInfo,
|
|
272
|
-
};
|
|
273
|
-
}
|
|
274
|
-
if (this._experiment) {
|
|
275
|
-
const experimentMetadata = this._experiment.extra && "metadata" in this._experiment.extra
|
|
276
|
-
? this._experiment.extra.metadata
|
|
277
|
-
: {};
|
|
278
|
-
projectMetadata = {
|
|
279
|
-
...experimentMetadata,
|
|
280
|
-
...projectMetadata,
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
return projectMetadata;
|
|
284
|
-
}
|
|
285
|
-
async _createProject(firstExample, projectMetadata) {
|
|
286
|
-
// Create the project, updating the experimentName until we find a unique one.
|
|
287
|
-
let project;
|
|
288
|
-
const originalExperimentName = this._experimentName;
|
|
289
|
-
if (this._numExamples === undefined) {
|
|
290
|
-
this._numExamples = await _resolveNumExamples(this._data, this.client);
|
|
291
|
-
}
|
|
292
|
-
const numExamples = this._numExamples ?? null;
|
|
293
|
-
const numRepetitions = this._numRepetitions ?? null;
|
|
294
|
-
const evaluatorKeys = this._evaluatorKeys ?? null;
|
|
295
|
-
for (let i = 0; i < 10; i++) {
|
|
296
|
-
try {
|
|
297
|
-
project = await this.client.createProject({
|
|
298
|
-
projectName: this._experimentName,
|
|
299
|
-
referenceDatasetId: firstExample.dataset_id,
|
|
300
|
-
metadata: projectMetadata,
|
|
301
|
-
description: this._description,
|
|
302
|
-
numExamples,
|
|
303
|
-
numRepetitions,
|
|
304
|
-
evaluatorKeys,
|
|
305
|
-
});
|
|
306
|
-
return project;
|
|
307
|
-
}
|
|
308
|
-
catch (e) {
|
|
309
|
-
// Naming collision
|
|
310
|
-
if (e?.name === "LangSmithConflictError") {
|
|
311
|
-
const ent = (0, index_js_2.v4)().slice(0, 6);
|
|
312
|
-
this._experimentName = `${originalExperimentName}-${ent}`;
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
throw e;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
throw new Error("Could not generate a unique experiment name within 10 attempts." +
|
|
320
|
-
" Please try again with a different name.");
|
|
321
|
-
}
|
|
322
|
-
async _getProject(firstExample) {
|
|
323
|
-
let project;
|
|
324
|
-
if (!this._experiment) {
|
|
325
|
-
const projectMetadata = await this._getExperimentMetadata();
|
|
326
|
-
project = await this._createProject(firstExample, projectMetadata);
|
|
327
|
-
this._experiment = project;
|
|
328
|
-
}
|
|
329
|
-
return this._experiment;
|
|
330
|
-
}
|
|
331
|
-
async _printExperimentStart() {
|
|
332
|
-
console.log(`Starting evaluation of experiment: ${this.experimentName}`);
|
|
333
|
-
const firstExample = this._examples?.[0];
|
|
334
|
-
const datasetId = firstExample?.dataset_id;
|
|
335
|
-
if (!datasetId || !this._experiment)
|
|
336
|
-
return;
|
|
337
|
-
const datasetUrl = await this.client.getDatasetUrl({ datasetId });
|
|
338
|
-
const compareUrl = `${datasetUrl}/compare?selectedSessions=${this._experiment.id}`;
|
|
339
|
-
console.log(`View results at ${compareUrl}`);
|
|
340
|
-
}
|
|
341
|
-
async start() {
|
|
342
|
-
const examples = await this.getExamples();
|
|
343
|
-
const firstExample = examples[0];
|
|
344
|
-
const project = await this._getProject(firstExample);
|
|
345
|
-
await this._printExperimentStart();
|
|
346
|
-
this._metadata["num_repetitions"] = this._numRepetitions;
|
|
347
|
-
return new _ExperimentManager({
|
|
348
|
-
examples,
|
|
349
|
-
experiment: project,
|
|
350
|
-
metadata: this._metadata,
|
|
351
|
-
client: this.client,
|
|
352
|
-
runs: this._runs,
|
|
353
|
-
_runsArray: this._runsArray,
|
|
354
|
-
evaluationResults: this._evaluationResults,
|
|
355
|
-
summaryResults: this._summaryResults,
|
|
356
|
-
numRepetitions: this._numRepetitions,
|
|
357
|
-
numExamples: this._numExamples,
|
|
358
|
-
evaluatorKeys: this._evaluatorKeys,
|
|
359
|
-
includeAttachments: this._includeAttachments,
|
|
360
|
-
disableEvaluatorTracing: this._disableEvaluatorTracing,
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
async withPredictions(target, options) {
|
|
364
|
-
const experimentResults = this._predict(target, options);
|
|
365
|
-
const [rowsForResults, rowsForRuns] = (0, atee_js_1.atee)(experimentResults);
|
|
366
|
-
return new _ExperimentManager({
|
|
367
|
-
examples: await this.getExamples(),
|
|
368
|
-
experiment: this._experiment,
|
|
369
|
-
metadata: this._metadata,
|
|
370
|
-
client: this.client,
|
|
371
|
-
resultRows: (async function* () {
|
|
372
|
-
for await (const pred of rowsForResults) {
|
|
373
|
-
yield {
|
|
374
|
-
run: pred.run,
|
|
375
|
-
example: pred.example,
|
|
376
|
-
evaluationResults: { results: [] },
|
|
377
|
-
exampleIndex: pred.exampleIndex,
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
})(),
|
|
381
|
-
runs: (async function* () {
|
|
382
|
-
for await (const pred of rowsForRuns) {
|
|
383
|
-
yield pred.run;
|
|
384
|
-
}
|
|
385
|
-
})(),
|
|
386
|
-
numRepetitions: this._numRepetitions,
|
|
387
|
-
numExamples: this._numExamples,
|
|
388
|
-
evaluatorKeys: this._evaluatorKeys,
|
|
389
|
-
includeAttachments: this._includeAttachments,
|
|
390
|
-
disableEvaluatorTracing: this._disableEvaluatorTracing,
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
async withEvaluators(evaluators, options) {
|
|
394
|
-
const resolvedEvaluators = _resolveEvaluators(evaluators);
|
|
395
|
-
const experimentResults = this._score(resolvedEvaluators, options);
|
|
396
|
-
const [rowsForResults, rowsForRuns, rowsForEvaluations] = (0, atee_js_1.atee)(experimentResults, 3);
|
|
397
|
-
return new _ExperimentManager({
|
|
398
|
-
examples: await this.getExamples(),
|
|
399
|
-
experiment: this._experiment,
|
|
400
|
-
metadata: this._metadata,
|
|
401
|
-
client: this.client,
|
|
402
|
-
resultRows: rowsForResults,
|
|
403
|
-
runs: (async function* () {
|
|
404
|
-
for await (const result of rowsForRuns) {
|
|
405
|
-
yield result.run;
|
|
406
|
-
}
|
|
407
|
-
})(),
|
|
408
|
-
evaluationResults: (async function* () {
|
|
409
|
-
for await (const result of rowsForEvaluations) {
|
|
410
|
-
yield result.evaluationResults;
|
|
411
|
-
}
|
|
412
|
-
})(),
|
|
413
|
-
summaryResults: this._summaryResults,
|
|
414
|
-
numRepetitions: this._numRepetitions,
|
|
415
|
-
numExamples: this._numExamples,
|
|
416
|
-
evaluatorKeys: this._evaluatorKeys,
|
|
417
|
-
includeAttachments: this._includeAttachments,
|
|
418
|
-
disableEvaluatorTracing: this._disableEvaluatorTracing,
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
async withSummaryEvaluators(summaryEvaluators) {
|
|
422
|
-
const aggregateFeedbackGen = this._applySummaryEvaluators(summaryEvaluators);
|
|
423
|
-
return new _ExperimentManager({
|
|
424
|
-
examples: await this.getExamples(),
|
|
425
|
-
experiment: this._experiment,
|
|
426
|
-
metadata: this._metadata,
|
|
427
|
-
client: this.client,
|
|
428
|
-
runs: this._runs,
|
|
429
|
-
_runsArray: this._runsArray,
|
|
430
|
-
evaluationResults: this._evaluationResults,
|
|
431
|
-
resultRows: this._resultRows,
|
|
432
|
-
summaryResults: aggregateFeedbackGen,
|
|
433
|
-
numRepetitions: this._numRepetitions,
|
|
434
|
-
numExamples: this._numExamples,
|
|
435
|
-
evaluatorKeys: this._evaluatorKeys,
|
|
436
|
-
includeAttachments: this._includeAttachments,
|
|
437
|
-
disableEvaluatorTracing: this._disableEvaluatorTracing,
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
async *getResults() {
|
|
441
|
-
if (!this._runsArray) {
|
|
442
|
-
this._runsArray = [];
|
|
443
|
-
}
|
|
444
|
-
if (this._resultRows) {
|
|
445
|
-
for await (const result of this._resultRows) {
|
|
446
|
-
this._runsArray.push(result.run);
|
|
447
|
-
yield result;
|
|
448
|
-
}
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
const examples = await this.getExamples();
|
|
452
|
-
const runsIterator = this.runs[Symbol.asyncIterator]();
|
|
453
|
-
const evaluationIterator = this.evaluationResults[Symbol.asyncIterator]();
|
|
454
|
-
for (let i = 0; i < examples.length; i++) {
|
|
455
|
-
const runResult = await runsIterator.next();
|
|
456
|
-
if (runResult.done) {
|
|
457
|
-
break;
|
|
458
|
-
}
|
|
459
|
-
const evaluationResult = await evaluationIterator.next();
|
|
460
|
-
const evaluationResults = evaluationResult.done
|
|
461
|
-
? { results: [] }
|
|
462
|
-
: evaluationResult.value;
|
|
463
|
-
this._runsArray.push(runResult.value);
|
|
464
|
-
yield {
|
|
465
|
-
run: runResult.value,
|
|
466
|
-
example: examples[i],
|
|
467
|
-
evaluationResults,
|
|
468
|
-
exampleIndex: i,
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
async getSummaryScores() {
|
|
473
|
-
if (!this._summaryResults) {
|
|
474
|
-
return { results: [] };
|
|
475
|
-
}
|
|
476
|
-
const results = [];
|
|
477
|
-
for await (const evaluationResultsGenerator of this._summaryResults) {
|
|
478
|
-
if (typeof evaluationResultsGenerator === "function") {
|
|
479
|
-
// This is because runs array is not available until after this generator
|
|
480
|
-
// is set, so we need to pass it like so.
|
|
481
|
-
for await (const evaluationResults of evaluationResultsGenerator(this._runsArray ?? [])) {
|
|
482
|
-
results.push(...evaluationResults.results);
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
return { results };
|
|
487
|
-
}
|
|
488
|
-
// Private methods
|
|
489
|
-
/**
|
|
490
|
-
* Run the target function or runnable on the examples.
|
|
491
|
-
* @param {StandardTargetT} target The target function or runnable to evaluate.
|
|
492
|
-
* @param options
|
|
493
|
-
* @returns {AsyncGenerator<_ForwardResults>} An async generator of the results.
|
|
494
|
-
*/
|
|
495
|
-
async *_predict(target, options) {
|
|
496
|
-
const maxConcurrency = options?.maxConcurrency ?? 0;
|
|
497
|
-
const examples = await this.getExamples();
|
|
498
|
-
let hadPredictionError = false;
|
|
499
|
-
let shouldThrowEndError = false;
|
|
500
|
-
let endErrorToThrow;
|
|
501
|
-
try {
|
|
502
|
-
// maxConcurrency: 0 means sequential execution (matching Python behavior)
|
|
503
|
-
const queue = options?.queue ??
|
|
504
|
-
new p_queue_js_1.PQueue({
|
|
505
|
-
concurrency: maxConcurrency === 0 ? 1 : maxConcurrency,
|
|
506
|
-
});
|
|
507
|
-
const examplesWithIndex = examples.map((example, i) => ({
|
|
508
|
-
example,
|
|
509
|
-
exampleIndex: i,
|
|
510
|
-
}));
|
|
511
|
-
for await (const result of _mapWithConcurrency(examplesWithIndex, queue, (item) => _forward(target, item.example, this.experimentName, this._metadata, this.client, this._includeAttachments).then((forwardResult) => ({
|
|
512
|
-
...forwardResult,
|
|
513
|
-
exampleIndex: item.exampleIndex,
|
|
514
|
-
})))) {
|
|
515
|
-
yield result;
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
catch (error) {
|
|
519
|
-
hadPredictionError = true;
|
|
520
|
-
throw error;
|
|
521
|
-
}
|
|
522
|
-
finally {
|
|
523
|
-
try {
|
|
524
|
-
// Always attempt to close out the project metadata, even on prediction errors.
|
|
525
|
-
await this._end();
|
|
526
|
-
}
|
|
527
|
-
catch (endError) {
|
|
528
|
-
if (hadPredictionError) {
|
|
529
|
-
console.error(`Error finalizing experiment: ${endError}`);
|
|
530
|
-
(0, error_js_1.printErrorStackTrace)(endError);
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
shouldThrowEndError = true;
|
|
534
|
-
endErrorToThrow = endError;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
if (shouldThrowEndError) {
|
|
539
|
-
throw endErrorToThrow;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
async _runEvaluators(evaluators, currentResults, fields) {
|
|
543
|
-
const { run, example, evaluationResults, exampleIndex } = currentResults;
|
|
544
|
-
for (const evaluator of evaluators) {
|
|
545
|
-
try {
|
|
546
|
-
const options = {
|
|
547
|
-
reference_example_id: example.id,
|
|
548
|
-
project_name: "evaluators",
|
|
549
|
-
metadata: {
|
|
550
|
-
example_version: example.modified_at
|
|
551
|
-
? new Date(example.modified_at).toISOString()
|
|
552
|
-
: new Date(example.created_at).toISOString(),
|
|
553
|
-
},
|
|
554
|
-
client: fields.client,
|
|
555
|
-
tracingEnabled: !this._disableEvaluatorTracing,
|
|
556
|
-
};
|
|
557
|
-
const rawEvaluatorResponse = await evaluator.evaluateRun(run, example, options);
|
|
558
|
-
// With tracing off there is no evaluator run for the feedback to point
|
|
559
|
-
// at, so drop the link rather than leaving it dangling.
|
|
560
|
-
const evaluatorResponse = this._disableEvaluatorTracing
|
|
561
|
-
? _withoutSourceRunIds(rawEvaluatorResponse)
|
|
562
|
-
: rawEvaluatorResponse;
|
|
563
|
-
evaluationResults.results.push(...(await fields.client.logEvaluationFeedback({
|
|
564
|
-
evaluatorResponse,
|
|
565
|
-
run,
|
|
566
|
-
projectId: this._getExperiment().id,
|
|
567
|
-
})));
|
|
568
|
-
}
|
|
569
|
-
catch (e) {
|
|
570
|
-
console.error(`Error running evaluator ${evaluator.evaluateRun.name} on run ${run.id}: ${e}`);
|
|
571
|
-
(0, error_js_1.printErrorStackTrace)(e);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
return {
|
|
575
|
-
run,
|
|
576
|
-
example,
|
|
577
|
-
evaluationResults,
|
|
578
|
-
exampleIndex,
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
/**
|
|
582
|
-
* Run the evaluators on the prediction stream.
|
|
583
|
-
* Expects runs to be available in the manager.
|
|
584
|
-
* (e.g. from a previous prediction step)
|
|
585
|
-
* @param {Array<RunEvaluator>} evaluators
|
|
586
|
-
* @param {number} maxConcurrency
|
|
587
|
-
*/
|
|
588
|
-
async *_score(evaluators, options) {
|
|
589
|
-
const { maxConcurrency = 0, queue: providedQueue } = options || {};
|
|
590
|
-
// maxConcurrency: 0 means sequential execution (matching Python behavior)
|
|
591
|
-
const queue = providedQueue ??
|
|
592
|
-
new p_queue_js_1.PQueue({
|
|
593
|
-
concurrency: maxConcurrency === 0 ? 1 : maxConcurrency,
|
|
594
|
-
});
|
|
595
|
-
for await (const result of _mapWithConcurrency(this.getResults(), queue, (currentResults) => this._runEvaluators(evaluators, currentResults, {
|
|
596
|
-
client: this.client,
|
|
597
|
-
}))) {
|
|
598
|
-
yield result;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
async *_applySummaryEvaluators(summaryEvaluators) {
|
|
602
|
-
const projectId = this._getExperiment().id;
|
|
603
|
-
const examples = await this.getExamples();
|
|
604
|
-
const options = Array.from({ length: summaryEvaluators.length }).map(() => ({
|
|
605
|
-
project_name: "evaluators",
|
|
606
|
-
experiment: this.experimentName,
|
|
607
|
-
projectId: projectId,
|
|
608
|
-
}));
|
|
609
|
-
const wrappedEvaluators = await wrapSummaryEvaluators(summaryEvaluators, options,
|
|
610
|
-
// Only override when disabling. Passing `true` here would force tracing
|
|
611
|
-
// on for callers who have it switched off via the environment.
|
|
612
|
-
this._disableEvaluatorTracing ? false : undefined);
|
|
613
|
-
yield async function* (runsArray) {
|
|
614
|
-
const aggregateFeedback = [];
|
|
615
|
-
for (const evaluator of wrappedEvaluators) {
|
|
616
|
-
try {
|
|
617
|
-
const summaryEvalResult = await evaluator(runsArray, examples);
|
|
618
|
-
const flattenedResults = this.client._selectEvalResults(summaryEvalResult);
|
|
619
|
-
aggregateFeedback.push(...flattenedResults);
|
|
620
|
-
for (const result of flattenedResults) {
|
|
621
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
622
|
-
const { targetRunId, key, ...feedback } = result;
|
|
623
|
-
const evaluatorInfo = feedback.evaluatorInfo;
|
|
624
|
-
delete feedback.evaluatorInfo;
|
|
625
|
-
await this.client.createFeedback(null, key, {
|
|
626
|
-
...feedback,
|
|
627
|
-
projectId: projectId,
|
|
628
|
-
sourceInfo: evaluatorInfo,
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
catch (e) {
|
|
633
|
-
console.error(`Error running summary evaluator ${evaluator.name}: ${JSON.stringify(e, null, 2)}`);
|
|
634
|
-
(0, error_js_1.printErrorStackTrace)(e);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
yield {
|
|
638
|
-
results: aggregateFeedback,
|
|
639
|
-
};
|
|
640
|
-
}.bind(this);
|
|
641
|
-
}
|
|
642
|
-
async _getDatasetVersion() {
|
|
643
|
-
const examples = await this.getExamples();
|
|
644
|
-
const modifiedAt = examples.map((ex) => ex.modified_at);
|
|
645
|
-
// Python might return microseconds, which we need
|
|
646
|
-
// to account for when comparing dates.
|
|
647
|
-
const modifiedAtTime = modifiedAt.map((date) => {
|
|
648
|
-
function getMiliseconds(isoString) {
|
|
649
|
-
const time = isoString.split("T").at(1);
|
|
650
|
-
if (!time)
|
|
651
|
-
return "";
|
|
652
|
-
const regex = /[0-9]{2}:[0-9]{2}:[0-9]{2}.([0-9]+)/;
|
|
653
|
-
const strMiliseconds = time.match(regex)?.[1];
|
|
654
|
-
return strMiliseconds ?? "";
|
|
655
|
-
}
|
|
656
|
-
const jsDate = new Date(date);
|
|
657
|
-
let source = getMiliseconds(date);
|
|
658
|
-
let parsed = getMiliseconds(jsDate.toISOString());
|
|
659
|
-
const length = Math.max(source.length, parsed.length);
|
|
660
|
-
source = source.padEnd(length, "0");
|
|
661
|
-
parsed = parsed.padEnd(length, "0");
|
|
662
|
-
const microseconds = (Number.parseInt(source, 10) - Number.parseInt(parsed, 10)) / 1000;
|
|
663
|
-
const time = jsDate.getTime() + microseconds;
|
|
664
|
-
return { date, time };
|
|
665
|
-
});
|
|
666
|
-
if (modifiedAtTime.length === 0)
|
|
667
|
-
return undefined;
|
|
668
|
-
return modifiedAtTime.reduce((max, current) => (current.time > max.time ? current : max), modifiedAtTime[0]).date;
|
|
669
|
-
}
|
|
670
|
-
async _getDatasetSplits() {
|
|
671
|
-
const examples = await this.getExamples();
|
|
672
|
-
const allSplits = examples.reduce((acc, ex) => {
|
|
673
|
-
if (ex.metadata && ex.metadata.dataset_split) {
|
|
674
|
-
if (Array.isArray(ex.metadata.dataset_split)) {
|
|
675
|
-
ex.metadata.dataset_split.forEach((split) => acc.add(split));
|
|
676
|
-
}
|
|
677
|
-
else if (typeof ex.metadata.dataset_split === "string") {
|
|
678
|
-
acc.add(ex.metadata.dataset_split);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
return acc;
|
|
682
|
-
}, new Set());
|
|
683
|
-
return allSplits.size ? Array.from(allSplits) : undefined;
|
|
684
|
-
}
|
|
685
|
-
async _end() {
|
|
686
|
-
const experiment = this._experiment;
|
|
687
|
-
if (!experiment) {
|
|
688
|
-
throw new Error("Experiment not yet started.");
|
|
689
|
-
}
|
|
690
|
-
const projectMetadata = await this._getExperimentMetadata();
|
|
691
|
-
projectMetadata["dataset_version"] = await this._getDatasetVersion();
|
|
692
|
-
projectMetadata["dataset_splits"] = await this._getDatasetSplits();
|
|
693
|
-
// Update revision_id if not already set
|
|
694
|
-
if (!projectMetadata["revision_id"]) {
|
|
695
|
-
projectMetadata["revision_id"] = await (0, _git_js_1.getDefaultRevisionId)();
|
|
696
|
-
}
|
|
697
|
-
await this.client.updateProject(experiment.id, {
|
|
698
|
-
metadata: projectMetadata,
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
exports._ExperimentManager = _ExperimentManager;
|
|
703
|
-
/**
|
|
704
|
-
* Represents the results of an evaluate() call.
|
|
705
|
-
* This class provides an iterator interface to iterate over the experiment results
|
|
706
|
-
* as they become available. It also provides methods to access the experiment name,
|
|
707
|
-
* the number of results, and to wait for the results to be processed.
|
|
708
|
-
*/
|
|
709
|
-
class ExperimentResults {
|
|
710
|
-
constructor(experimentManager) {
|
|
711
|
-
Object.defineProperty(this, "manager", {
|
|
712
|
-
enumerable: true,
|
|
713
|
-
configurable: true,
|
|
714
|
-
writable: true,
|
|
715
|
-
value: void 0
|
|
716
|
-
});
|
|
717
|
-
Object.defineProperty(this, "results", {
|
|
718
|
-
enumerable: true,
|
|
719
|
-
configurable: true,
|
|
720
|
-
writable: true,
|
|
721
|
-
value: []
|
|
722
|
-
});
|
|
723
|
-
Object.defineProperty(this, "processedCount", {
|
|
724
|
-
enumerable: true,
|
|
725
|
-
configurable: true,
|
|
726
|
-
writable: true,
|
|
727
|
-
value: 0
|
|
728
|
-
});
|
|
729
|
-
Object.defineProperty(this, "summaryResults", {
|
|
730
|
-
enumerable: true,
|
|
731
|
-
configurable: true,
|
|
732
|
-
writable: true,
|
|
733
|
-
value: void 0
|
|
734
|
-
});
|
|
735
|
-
this.manager = experimentManager;
|
|
736
|
-
}
|
|
737
|
-
get experimentName() {
|
|
738
|
-
return this.manager.experimentName;
|
|
739
|
-
}
|
|
740
|
-
[Symbol.asyncIterator]() {
|
|
741
|
-
return this;
|
|
742
|
-
}
|
|
743
|
-
async next() {
|
|
744
|
-
if (this.processedCount < this.results.length) {
|
|
745
|
-
const result = this.results[this.processedCount];
|
|
746
|
-
this.processedCount++;
|
|
747
|
-
return Promise.resolve({ value: result, done: false });
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
return Promise.resolve({ value: undefined, done: true });
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
async processData(manager) {
|
|
754
|
-
const unorderedResults = [];
|
|
755
|
-
for await (const item of manager.getResults()) {
|
|
756
|
-
unorderedResults.push(item);
|
|
757
|
-
}
|
|
758
|
-
const { orderedRows, orderedRuns } = _reorderResultRowsByExampleIndex(unorderedResults);
|
|
759
|
-
manager._runsArray = orderedRuns;
|
|
760
|
-
this.results = orderedRows;
|
|
761
|
-
this.processedCount = this.results.length;
|
|
762
|
-
this.summaryResults = await manager.getSummaryScores();
|
|
763
|
-
}
|
|
764
|
-
get length() {
|
|
765
|
-
return this.results.length;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
async function _evaluate(target, fields) {
|
|
769
|
-
// Add check for comparative evaluation
|
|
770
|
-
if (Array.isArray(target)) {
|
|
771
|
-
const comparativeOptions = fields;
|
|
772
|
-
if (!comparativeOptions.evaluators) {
|
|
773
|
-
throw new Error("Evaluators are required for comparative evaluation");
|
|
774
|
-
}
|
|
775
|
-
return (0, evaluate_comparative_js_1.evaluateComparative)(target, {
|
|
776
|
-
evaluators: comparativeOptions.evaluators,
|
|
777
|
-
client: comparativeOptions.client,
|
|
778
|
-
metadata: comparativeOptions.metadata,
|
|
779
|
-
experimentPrefix: comparativeOptions.experimentPrefix,
|
|
780
|
-
description: comparativeOptions.description,
|
|
781
|
-
maxConcurrency: comparativeOptions.maxConcurrency,
|
|
782
|
-
loadNested: comparativeOptions.loadNested ?? false,
|
|
783
|
-
randomizeOrder: comparativeOptions.randomizeOrder ?? false,
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
const client = fields.client ?? new index_js_1.Client();
|
|
787
|
-
const runs = _isCallable(target) ? null : target;
|
|
788
|
-
const standardFields = fields;
|
|
789
|
-
const [experiment_, newRuns] = await _resolveExperiment(fields.experiment ?? null, runs, client);
|
|
790
|
-
let manager = await new _ExperimentManager({
|
|
791
|
-
data: standardFields.data,
|
|
792
|
-
client,
|
|
793
|
-
metadata: fields.metadata,
|
|
794
|
-
experiment: experiment_ ?? fields.experimentPrefix,
|
|
795
|
-
runs: newRuns ?? undefined,
|
|
796
|
-
numRepetitions: fields.numRepetitions ?? 1,
|
|
797
|
-
evaluatorKeys: _collectEvaluatorKeys(standardFields.evaluators),
|
|
798
|
-
includeAttachments: standardFields.includeAttachments,
|
|
799
|
-
disableEvaluatorTracing: standardFields.disableEvaluatorTracing,
|
|
800
|
-
}).start();
|
|
801
|
-
const targetConcurrency = standardFields.targetConcurrency ?? standardFields.maxConcurrency ?? 0;
|
|
802
|
-
const evaluationConcurrency = standardFields.evaluationConcurrency ?? standardFields.maxConcurrency ?? 0;
|
|
803
|
-
// Determine if we should use separate queues or a shared queue
|
|
804
|
-
const useSeparateQueues = standardFields.targetConcurrency !== undefined &&
|
|
805
|
-
standardFields.evaluationConcurrency !== undefined;
|
|
806
|
-
let sharedQueue;
|
|
807
|
-
let targetQueue;
|
|
808
|
-
let evaluationQueue;
|
|
809
|
-
if (useSeparateQueues) {
|
|
810
|
-
// Create separate queues for target and evaluation
|
|
811
|
-
if (targetConcurrency > 0) {
|
|
812
|
-
targetQueue = new p_queue_js_1.PQueue({ concurrency: targetConcurrency });
|
|
813
|
-
}
|
|
814
|
-
if (evaluationConcurrency > 0) {
|
|
815
|
-
evaluationQueue = new p_queue_js_1.PQueue({ concurrency: evaluationConcurrency });
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
else {
|
|
819
|
-
// Use a shared queue
|
|
820
|
-
const sharedConcurrency = standardFields.maxConcurrency ?? 0;
|
|
821
|
-
if (sharedConcurrency > 0) {
|
|
822
|
-
sharedQueue = new p_queue_js_1.PQueue({ concurrency: sharedConcurrency });
|
|
823
|
-
}
|
|
824
|
-
}
|
|
825
|
-
if (_isCallable(target)) {
|
|
826
|
-
manager = await manager.withPredictions(target, {
|
|
827
|
-
maxConcurrency: targetConcurrency,
|
|
828
|
-
queue: useSeparateQueues ? targetQueue : sharedQueue,
|
|
829
|
-
});
|
|
830
|
-
}
|
|
831
|
-
if (standardFields.evaluators) {
|
|
832
|
-
manager = await manager.withEvaluators(standardFields.evaluators, {
|
|
833
|
-
maxConcurrency: evaluationConcurrency,
|
|
834
|
-
queue: useSeparateQueues ? evaluationQueue : sharedQueue,
|
|
835
|
-
});
|
|
836
|
-
}
|
|
837
|
-
if (standardFields.summaryEvaluators) {
|
|
838
|
-
manager = await manager.withSummaryEvaluators(standardFields.summaryEvaluators);
|
|
839
|
-
}
|
|
840
|
-
// Start consuming the results.
|
|
841
|
-
const results = new ExperimentResults(manager);
|
|
842
|
-
await results.processData(manager);
|
|
843
|
-
await client.awaitPendingTraceBatches();
|
|
844
|
-
return results;
|
|
845
|
-
}
|
|
846
|
-
async function _forward(fn, example, experimentName, metadata, client, includeAttachments) {
|
|
847
|
-
let run = undefined;
|
|
848
|
-
const _getRun = (r) => {
|
|
849
|
-
run = r;
|
|
850
|
-
};
|
|
851
|
-
const defaultOptions = {
|
|
852
|
-
reference_example_id: example.id,
|
|
853
|
-
on_start: _getRun,
|
|
854
|
-
project_name: experimentName,
|
|
855
|
-
metadata: {
|
|
856
|
-
...metadata,
|
|
857
|
-
example_version: example.modified_at
|
|
858
|
-
? new Date(example.modified_at).toISOString()
|
|
859
|
-
: new Date(example.created_at).toISOString(),
|
|
860
|
-
},
|
|
861
|
-
client,
|
|
862
|
-
tracingEnabled: true,
|
|
863
|
-
};
|
|
864
|
-
const wrappedFn = (0, traceable_js_1.isTraceableFunction)(fn)
|
|
865
|
-
? fn
|
|
866
|
-
: "invoke" in fn
|
|
867
|
-
? (0, traceable_js_1.traceable)(async (inputs) => {
|
|
868
|
-
let langChainCallbacks;
|
|
869
|
-
try {
|
|
870
|
-
// TODO: Deprecate this and rely on interop on 0.2 minor bump.
|
|
871
|
-
const { getLangchainCallbacks } = await import("../langchain.js");
|
|
872
|
-
langChainCallbacks = await getLangchainCallbacks();
|
|
873
|
-
}
|
|
874
|
-
catch {
|
|
875
|
-
// no-op
|
|
876
|
-
}
|
|
877
|
-
// Issue with retrieving LangChain callbacks, rely on interop
|
|
878
|
-
if (langChainCallbacks === undefined && !includeAttachments) {
|
|
879
|
-
return await fn.invoke(inputs);
|
|
880
|
-
}
|
|
881
|
-
else if (langChainCallbacks === undefined && includeAttachments) {
|
|
882
|
-
return await fn.invoke(inputs, {
|
|
883
|
-
attachments: example.attachments,
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
else if (!includeAttachments) {
|
|
887
|
-
return await fn.invoke(inputs, { callbacks: langChainCallbacks });
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
return await fn.invoke(inputs, {
|
|
891
|
-
attachments: example.attachments,
|
|
892
|
-
callbacks: langChainCallbacks,
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
}, defaultOptions)
|
|
896
|
-
: (0, traceable_js_1.traceable)(fn, defaultOptions);
|
|
897
|
-
try {
|
|
898
|
-
if (includeAttachments && !("invoke" in fn)) {
|
|
899
|
-
await wrappedFn(example.inputs, { attachments: example.attachments });
|
|
900
|
-
}
|
|
901
|
-
else {
|
|
902
|
-
await wrappedFn(example.inputs);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
catch (e) {
|
|
906
|
-
console.error(`Error running target function: ${e}`);
|
|
907
|
-
(0, error_js_1.printErrorStackTrace)(e);
|
|
908
|
-
}
|
|
909
|
-
if (!run) {
|
|
910
|
-
throw new Error(`Run not created by target function.
|
|
911
|
-
This is most likely due to tracing not being enabled.\n
|
|
912
|
-
Try setting "LANGSMITH_TRACING=true" in your environment.`);
|
|
913
|
-
}
|
|
914
|
-
return {
|
|
915
|
-
run,
|
|
916
|
-
example,
|
|
917
|
-
};
|
|
918
|
-
}
|
|
919
|
-
// best effort feedback key extraction using regex parsing.
|
|
920
|
-
// may be fragile but seems okay as a best effort option and doesn't break anything significant.
|
|
921
|
-
// TODO: find a better way to resolve this.
|
|
922
|
-
function _extractEvaluatorFeedbackKeys(evaluator) {
|
|
923
|
-
const name = evaluator.name;
|
|
924
|
-
const fallback = name && name.length > 0 ? [name] : [];
|
|
925
|
-
try {
|
|
926
|
-
const source = typeof evaluator === "function" ? evaluator.toString() : "";
|
|
927
|
-
if (!source)
|
|
928
|
-
return fallback;
|
|
929
|
-
// Match `key: "literal"`, `"key": "literal"`, or backtick literals without
|
|
930
|
-
// interpolation. Word boundaries avoid matching `keys`, and the required
|
|
931
|
-
// colon + quoted value avoids matching destructuring/`for (const key of)`.
|
|
932
|
-
const regex = /["']?\bkey\b["']?\s*:\s*(?:"([^"]+)"|'([^']+)'|`([^`$]+)`)/g;
|
|
933
|
-
const keys = [];
|
|
934
|
-
let match;
|
|
935
|
-
while ((match = regex.exec(source)) !== null) {
|
|
936
|
-
const value = match[1] ?? match[2] ?? match[3];
|
|
937
|
-
if (value)
|
|
938
|
-
keys.push(value);
|
|
939
|
-
}
|
|
940
|
-
const unique = [...new Set(keys)];
|
|
941
|
-
return unique.length > 0 ? unique : fallback;
|
|
942
|
-
}
|
|
943
|
-
catch {
|
|
944
|
-
return fallback;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
function _collectEvaluatorKeys(evaluators) {
|
|
948
|
-
if (!evaluators)
|
|
949
|
-
return [];
|
|
950
|
-
const keys = [];
|
|
951
|
-
for (const ev of evaluators) {
|
|
952
|
-
keys.push(..._extractEvaluatorFeedbackKeys(ev));
|
|
953
|
-
}
|
|
954
|
-
return keys;
|
|
955
|
-
}
|
|
956
|
-
async function _resolveNumExamples(data, client) {
|
|
957
|
-
// Best-effort dataset size for the experiment progress hint. Returns
|
|
958
|
-
// undefined for lazy async iterators where size cannot be inferred without
|
|
959
|
-
// consuming.
|
|
960
|
-
if (data === undefined)
|
|
961
|
-
return undefined;
|
|
962
|
-
try {
|
|
963
|
-
if (Array.isArray(data)) {
|
|
964
|
-
return data.length;
|
|
965
|
-
}
|
|
966
|
-
if (typeof data === "string") {
|
|
967
|
-
let isUUID = false;
|
|
968
|
-
try {
|
|
969
|
-
(0, _uuid_js_1.assertUuid)(data);
|
|
970
|
-
isUUID = true;
|
|
971
|
-
}
|
|
972
|
-
catch (_) {
|
|
973
|
-
isUUID = false;
|
|
974
|
-
}
|
|
975
|
-
const dataset = isUUID
|
|
976
|
-
? await client.readDataset({ datasetId: data })
|
|
977
|
-
: await client.readDataset({ datasetName: data });
|
|
978
|
-
return dataset.example_count ?? undefined;
|
|
979
|
-
}
|
|
980
|
-
return undefined;
|
|
981
|
-
}
|
|
982
|
-
catch (_) {
|
|
983
|
-
return undefined;
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
function _resolveData(data, options) {
|
|
987
|
-
let isUUID = false;
|
|
988
|
-
try {
|
|
989
|
-
if (typeof data === "string") {
|
|
990
|
-
(0, _uuid_js_1.assertUuid)(data);
|
|
991
|
-
isUUID = true;
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
catch (_) {
|
|
995
|
-
isUUID = false;
|
|
996
|
-
}
|
|
997
|
-
if (typeof data === "string" && isUUID) {
|
|
998
|
-
return options.client.listExamples({
|
|
999
|
-
datasetId: data,
|
|
1000
|
-
includeAttachments: options.includeAttachments,
|
|
1001
|
-
});
|
|
1002
|
-
}
|
|
1003
|
-
if (typeof data === "string") {
|
|
1004
|
-
return options.client.listExamples({
|
|
1005
|
-
datasetName: data,
|
|
1006
|
-
includeAttachments: options.includeAttachments,
|
|
1007
|
-
});
|
|
1008
|
-
}
|
|
1009
|
-
return data;
|
|
1010
|
-
}
|
|
1011
|
-
/**
|
|
1012
|
-
* Strip evaluator-run links from an evaluator response.
|
|
1013
|
-
*
|
|
1014
|
-
* Used when evaluator tracing is disabled: no evaluator run is created, so a
|
|
1015
|
-
* `sourceRunId` on the feedback would point at a run that does not exist.
|
|
1016
|
-
*/
|
|
1017
|
-
function _withoutSourceRunIds(response) {
|
|
1018
|
-
if ("results" in response) {
|
|
1019
|
-
return {
|
|
1020
|
-
...response,
|
|
1021
|
-
results: response.results.map((result) => ({
|
|
1022
|
-
...result,
|
|
1023
|
-
sourceRunId: undefined,
|
|
1024
|
-
})),
|
|
1025
|
-
};
|
|
1026
|
-
}
|
|
1027
|
-
return { ...response, sourceRunId: undefined };
|
|
1028
|
-
}
|
|
1029
|
-
async function wrapSummaryEvaluators(evaluators, optionsArray, tracingEnabled) {
|
|
1030
|
-
async function _wrap(evaluator) {
|
|
1031
|
-
const evalName = evaluator.name || "BatchEvaluator";
|
|
1032
|
-
const wrapperInner = (runs, examples) => {
|
|
1033
|
-
const wrapperSuperInner = (0, traceable_js_1.traceable)((_runs_, _examples_) => {
|
|
1034
|
-
// Check if the evaluator expects an object parameter
|
|
1035
|
-
if (evaluator.length === 1) {
|
|
1036
|
-
const inputs = examples.map((ex) => ex.inputs);
|
|
1037
|
-
const outputs = runs.map((run) => run.outputs || {});
|
|
1038
|
-
const referenceOutputs = examples.map((ex) => ex.outputs || {});
|
|
1039
|
-
return Promise.resolve(evaluator({
|
|
1040
|
-
runs,
|
|
1041
|
-
examples,
|
|
1042
|
-
inputs,
|
|
1043
|
-
outputs,
|
|
1044
|
-
referenceOutputs,
|
|
1045
|
-
}));
|
|
1046
|
-
}
|
|
1047
|
-
// Otherwise use the traditional (runs, examples) signature
|
|
1048
|
-
return Promise.resolve(evaluator(runs, examples));
|
|
1049
|
-
}, {
|
|
1050
|
-
...optionsArray,
|
|
1051
|
-
name: evalName,
|
|
1052
|
-
...(tracingEnabled === undefined ? {} : { tracingEnabled }),
|
|
1053
|
-
});
|
|
1054
|
-
return Promise.resolve(wrapperSuperInner(`Runs[] (Length=${runs.length})`, `Examples[] (Length=${examples.length})`));
|
|
1055
|
-
};
|
|
1056
|
-
return wrapperInner;
|
|
1057
|
-
}
|
|
1058
|
-
const results = [];
|
|
1059
|
-
for (let i = 0; i < evaluators.length; i++) {
|
|
1060
|
-
results.push(await _wrap(evaluators[i]));
|
|
1061
|
-
}
|
|
1062
|
-
return results;
|
|
1063
|
-
}
|
|
1064
|
-
function _resolveEvaluators(evaluators) {
|
|
1065
|
-
const results = [];
|
|
1066
|
-
for (const evaluator of evaluators) {
|
|
1067
|
-
if ("evaluateRun" in evaluator) {
|
|
1068
|
-
results.push(evaluator);
|
|
1069
|
-
// todo fix this by porting LangChainStringEvaluator to langsmith sdk
|
|
1070
|
-
}
|
|
1071
|
-
else if (evaluator.name === "LangChainStringEvaluator") {
|
|
1072
|
-
throw new Error("Not yet implemented");
|
|
1073
|
-
}
|
|
1074
|
-
else {
|
|
1075
|
-
results.push((0, evaluator_js_1.runEvaluator)(evaluator));
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
return results;
|
|
1079
|
-
}
|
|
1080
|
-
async function _resolveExperiment(experiment, runs, client) {
|
|
1081
|
-
// TODO: Remove this, handle outside the manager
|
|
1082
|
-
if (experiment !== null) {
|
|
1083
|
-
if (!experiment.name) {
|
|
1084
|
-
throw new Error("Experiment name must be defined if provided.");
|
|
1085
|
-
}
|
|
1086
|
-
return [experiment, undefined];
|
|
1087
|
-
}
|
|
1088
|
-
// If we have runs, that means the experiment was already started.
|
|
1089
|
-
if (runs !== null) {
|
|
1090
|
-
const results = [];
|
|
1091
|
-
for await (const item of (0, atee_js_1.atee)(runs)) {
|
|
1092
|
-
results.push(item);
|
|
1093
|
-
}
|
|
1094
|
-
const [runsClone, runsOriginal] = results;
|
|
1095
|
-
const runsCloneIterator = runsClone[Symbol.asyncIterator]();
|
|
1096
|
-
// todo: this is `any`. does it work properly?
|
|
1097
|
-
const firstRun = await runsCloneIterator
|
|
1098
|
-
.next()
|
|
1099
|
-
.then((result) => result.value);
|
|
1100
|
-
if (firstRun?.session_id == null) {
|
|
1101
|
-
throw new Error("Experiment ID not found for provided runs.");
|
|
1102
|
-
}
|
|
1103
|
-
const retrievedExperiment = await client.readProject({
|
|
1104
|
-
projectId: firstRun.session_id,
|
|
1105
|
-
});
|
|
1106
|
-
if (!retrievedExperiment.name) {
|
|
1107
|
-
throw new Error("Experiment name not found for provided runs.");
|
|
1108
|
-
}
|
|
1109
|
-
return [retrievedExperiment, runsOriginal];
|
|
1110
|
-
}
|
|
1111
|
-
return [undefined, undefined];
|
|
1112
|
-
}
|
|
1113
|
-
/**
|
|
1114
|
-
* Map over an iterable with bounded concurrency using p-queue.
|
|
1115
|
-
* Results are yielded as soon as they resolve (input order is not preserved).
|
|
1116
|
-
* The queue handles concurrency limits internally.
|
|
1117
|
-
*/
|
|
1118
|
-
async function* _mapWithConcurrency(iterable, queue, mapper) {
|
|
1119
|
-
const pending = new Set();
|
|
1120
|
-
// Add all tasks to p-queue immediately (p-queue handles concurrency)
|
|
1121
|
-
for await (const input of iterable) {
|
|
1122
|
-
const task = queue
|
|
1123
|
-
.add(() => mapper(input))
|
|
1124
|
-
.then((value) => ({
|
|
1125
|
-
value,
|
|
1126
|
-
self: task,
|
|
1127
|
-
}));
|
|
1128
|
-
pending.add(task);
|
|
1129
|
-
}
|
|
1130
|
-
// Yield results as they complete
|
|
1131
|
-
while (pending.size > 0) {
|
|
1132
|
-
const { value, self } = await Promise.race(pending);
|
|
1133
|
-
pending.delete(self);
|
|
1134
|
-
yield value;
|
|
1135
|
-
}
|
|
1136
|
-
}
|
|
1137
|
-
function _isCallable(target) {
|
|
1138
|
-
return Boolean(typeof target === "function" ||
|
|
1139
|
-
("invoke" in target && typeof target.invoke === "function"));
|
|
1140
|
-
}
|