@azure/ai-projects 1.0.0-beta.4 → 1.0.0-beta.6
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/README.md +341 -610
- package/dist/browser/aiProjectClient.d.ts +79 -0
- package/dist/browser/aiProjectClient.d.ts.map +1 -0
- package/dist/browser/aiProjectClient.js +86 -0
- package/dist/browser/aiProjectClient.js.map +1 -0
- package/dist/browser/api/aiProjectContext.d.ts +23 -0
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -0
- package/dist/browser/api/aiProjectContext.js +37 -0
- package/dist/browser/api/aiProjectContext.js.map +1 -0
- package/dist/browser/api/connections/index.d.ts +3 -0
- package/dist/browser/api/connections/index.d.ts.map +1 -0
- package/dist/browser/api/connections/index.js +4 -0
- package/dist/browser/api/connections/index.js.map +1 -0
- package/dist/browser/api/connections/operations.d.ts +28 -0
- package/dist/browser/api/connections/operations.d.ts.map +1 -0
- package/dist/browser/api/connections/operations.js +125 -0
- package/dist/browser/api/connections/operations.js.map +1 -0
- package/dist/browser/api/connections/options.d.ts +28 -0
- package/dist/browser/api/connections/options.d.ts.map +1 -0
- package/dist/browser/api/connections/options.js +4 -0
- package/dist/browser/api/connections/options.js.map +1 -0
- package/dist/browser/api/datasets/index.d.ts +3 -0
- package/dist/browser/api/datasets/index.d.ts.map +1 -0
- package/dist/browser/api/datasets/index.js +4 -0
- package/dist/browser/api/datasets/index.js.map +1 -0
- package/dist/browser/api/datasets/operations.d.ts +41 -0
- package/dist/browser/api/datasets/operations.d.ts.map +1 -0
- package/dist/browser/api/datasets/operations.js +286 -0
- package/dist/browser/api/datasets/operations.js.map +1 -0
- package/dist/browser/api/datasets/options.d.ts +27 -0
- package/dist/browser/api/datasets/options.d.ts.map +1 -0
- package/dist/browser/api/datasets/options.js +2 -0
- package/dist/browser/api/datasets/options.js.map +1 -0
- package/dist/browser/api/deployments/index.d.ts +3 -0
- package/dist/browser/api/deployments/index.d.ts.map +1 -0
- package/dist/browser/api/deployments/index.js +4 -0
- package/dist/browser/api/deployments/index.js.map +1 -0
- package/dist/browser/api/deployments/operations.d.ts +14 -0
- package/dist/browser/api/deployments/operations.d.ts.map +1 -0
- package/dist/browser/api/deployments/operations.js +59 -0
- package/dist/browser/api/deployments/operations.js.map +1 -0
- package/dist/browser/api/deployments/options.d.ts +25 -0
- package/dist/browser/api/deployments/options.d.ts.map +1 -0
- package/dist/browser/api/deployments/options.js +4 -0
- package/dist/browser/api/deployments/options.js.map +1 -0
- package/dist/browser/api/evaluations/index.d.ts +3 -0
- package/dist/browser/api/evaluations/index.d.ts.map +1 -0
- package/dist/browser/api/evaluations/index.js +4 -0
- package/dist/browser/api/evaluations/index.js.map +1 -0
- package/dist/browser/api/evaluations/operations.d.ts +22 -0
- package/dist/browser/api/evaluations/operations.d.ts.map +1 -0
- package/dist/browser/api/evaluations/operations.js +102 -0
- package/dist/browser/api/evaluations/operations.js.map +1 -0
- package/dist/browser/api/evaluations/options.d.ts +24 -0
- package/dist/browser/api/evaluations/options.d.ts.map +1 -0
- package/dist/browser/api/evaluations/options.js +4 -0
- package/dist/browser/api/evaluations/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.d.ts.map +1 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/indexes/index.d.ts +3 -0
- package/dist/browser/api/indexes/index.d.ts.map +1 -0
- package/dist/browser/api/indexes/index.js +4 -0
- package/dist/browser/api/indexes/index.js.map +1 -0
- package/dist/browser/api/indexes/operations.d.ts +31 -0
- package/dist/browser/api/indexes/operations.d.ts.map +1 -0
- package/dist/browser/api/indexes/operations.js +125 -0
- package/dist/browser/api/indexes/operations.js.map +1 -0
- package/dist/browser/api/indexes/options.d.ts +21 -0
- package/dist/browser/api/indexes/options.d.ts.map +1 -0
- package/dist/browser/api/indexes/options.js +4 -0
- package/dist/browser/api/indexes/options.js.map +1 -0
- package/dist/browser/api/inference/enableTelemetry.d.ts +21 -0
- package/dist/browser/api/inference/enableTelemetry.d.ts.map +1 -0
- package/dist/browser/api/inference/enableTelemetry.js +185 -0
- package/dist/browser/api/inference/enableTelemetry.js.map +1 -0
- package/dist/browser/api/inference/operations.d.ts +59 -0
- package/dist/browser/api/inference/operations.d.ts.map +1 -0
- package/dist/browser/api/inference/operations.js +177 -0
- package/dist/browser/api/inference/operations.js.map +1 -0
- package/dist/browser/api/inference/options.d.ts +18 -0
- package/dist/browser/api/inference/options.d.ts.map +1 -0
- package/dist/browser/api/inference/options.js +4 -0
- package/dist/browser/api/inference/options.js.map +1 -0
- package/dist/browser/api/redTeams/index.d.ts +3 -0
- package/dist/browser/api/redTeams/index.d.ts.map +1 -0
- package/dist/browser/api/redTeams/index.js +4 -0
- package/dist/browser/api/redTeams/index.js.map +1 -0
- package/dist/browser/api/redTeams/operations.d.ts +18 -0
- package/dist/browser/api/redTeams/operations.d.ts.map +1 -0
- package/dist/browser/api/redTeams/operations.js +77 -0
- package/dist/browser/api/redTeams/operations.js.map +1 -0
- package/dist/browser/api/redTeams/options.d.ts +21 -0
- package/dist/browser/api/redTeams/options.d.ts.map +1 -0
- package/dist/browser/api/redTeams/options.js +4 -0
- package/dist/browser/api/redTeams/options.js.map +1 -0
- package/dist/browser/api/telemetry/index.d.ts +2 -0
- package/dist/browser/api/telemetry/index.d.ts.map +1 -0
- package/dist/browser/api/telemetry/index.js +4 -0
- package/dist/browser/api/telemetry/index.js.map +1 -0
- package/dist/browser/api/telemetry/operations.d.ts +22 -0
- package/dist/browser/api/telemetry/operations.d.ts.map +1 -0
- package/dist/browser/api/telemetry/operations.js +70 -0
- package/dist/browser/api/telemetry/operations.js.map +1 -0
- package/dist/browser/classic/connections/index.d.ts +17 -0
- package/dist/browser/classic/connections/index.d.ts.map +1 -0
- package/dist/browser/classic/connections/index.js +15 -0
- package/dist/browser/classic/connections/index.js.map +1 -0
- package/dist/browser/classic/datasets/index.d.ts +32 -0
- package/dist/browser/classic/datasets/index.d.ts.map +1 -0
- package/dist/browser/classic/datasets/index.js +21 -0
- package/dist/browser/classic/datasets/index.js.map +1 -0
- package/dist/browser/classic/deployments/index.d.ts +13 -0
- package/dist/browser/classic/deployments/index.d.ts.map +1 -0
- package/dist/browser/classic/deployments/index.js +13 -0
- package/dist/browser/classic/deployments/index.js.map +1 -0
- package/dist/browser/classic/evaluations/index.d.ts +17 -0
- package/dist/browser/classic/evaluations/index.d.ts.map +1 -0
- package/dist/browser/classic/evaluations/index.js +15 -0
- package/dist/browser/classic/evaluations/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +8 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/indexes/index.d.ts +24 -0
- package/dist/browser/classic/indexes/index.d.ts.map +1 -0
- package/dist/browser/classic/indexes/index.js +17 -0
- package/dist/browser/classic/indexes/index.js.map +1 -0
- package/dist/browser/classic/inference/index.d.ts +18 -0
- package/dist/browser/classic/inference/index.d.ts.map +1 -0
- package/dist/browser/classic/inference/index.js +15 -0
- package/dist/browser/classic/inference/index.js.map +1 -0
- package/dist/browser/classic/redTeams/index.d.ts +15 -0
- package/dist/browser/classic/redTeams/index.d.ts.map +1 -0
- package/dist/browser/classic/redTeams/index.js +14 -0
- package/dist/browser/classic/redTeams/index.js.map +1 -0
- package/dist/browser/classic/telemetry/index.d.ts +11 -0
- package/dist/browser/classic/telemetry/index.d.ts.map +1 -0
- package/dist/browser/classic/telemetry/index.js +14 -0
- package/dist/browser/classic/telemetry/index.js.map +1 -0
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +13 -8
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/logger.d.ts.map +1 -1
- package/dist/browser/logger.js +1 -2
- package/dist/browser/logger.js.map +1 -1
- package/dist/browser/models/evaluations.d.ts +55 -0
- package/dist/browser/models/evaluations.d.ts.map +1 -0
- package/dist/browser/models/evaluations.js +56 -0
- package/dist/browser/models/evaluations.js.map +1 -0
- package/dist/browser/models/index.d.ts +3 -0
- package/dist/browser/models/index.d.ts.map +1 -0
- package/dist/browser/models/index.js +5 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/models.d.ts +518 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +635 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.js +175 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/aiProjectClient.d.ts +79 -0
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -0
- package/dist/commonjs/aiProjectClient.js +90 -0
- package/dist/commonjs/aiProjectClient.js.map +1 -0
- package/dist/commonjs/api/aiProjectContext.d.ts +23 -0
- package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -0
- package/dist/commonjs/api/aiProjectContext.js +40 -0
- package/dist/commonjs/api/aiProjectContext.js.map +1 -0
- package/dist/commonjs/api/connections/index.d.ts +3 -0
- package/dist/commonjs/api/connections/index.d.ts.map +1 -0
- package/dist/commonjs/api/connections/index.js +11 -0
- package/dist/commonjs/api/connections/index.js.map +1 -0
- package/dist/commonjs/api/connections/operations.d.ts +28 -0
- package/dist/commonjs/api/connections/operations.d.ts.map +1 -0
- package/dist/commonjs/api/connections/operations.js +137 -0
- package/dist/commonjs/api/connections/operations.js.map +1 -0
- package/dist/commonjs/api/connections/options.d.ts +28 -0
- package/dist/commonjs/api/connections/options.d.ts.map +1 -0
- package/dist/commonjs/api/connections/options.js +5 -0
- package/dist/commonjs/api/connections/options.js.map +1 -0
- package/dist/commonjs/api/datasets/index.d.ts +3 -0
- package/dist/commonjs/api/datasets/index.d.ts.map +1 -0
- package/dist/commonjs/api/datasets/index.js +14 -0
- package/dist/commonjs/api/datasets/index.js.map +1 -0
- package/dist/commonjs/api/datasets/operations.d.ts +41 -0
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -0
- package/dist/commonjs/api/datasets/operations.js +312 -0
- package/dist/commonjs/api/datasets/operations.js.map +1 -0
- package/dist/commonjs/api/datasets/options.d.ts +27 -0
- package/dist/commonjs/api/datasets/options.d.ts.map +1 -0
- package/dist/commonjs/api/datasets/options.js +3 -0
- package/dist/commonjs/api/datasets/options.js.map +1 -0
- package/dist/commonjs/api/deployments/index.d.ts +3 -0
- package/dist/commonjs/api/deployments/index.d.ts.map +1 -0
- package/dist/commonjs/api/deployments/index.js +9 -0
- package/dist/commonjs/api/deployments/index.js.map +1 -0
- package/dist/commonjs/api/deployments/operations.d.ts +14 -0
- package/dist/commonjs/api/deployments/operations.d.ts.map +1 -0
- package/dist/commonjs/api/deployments/operations.js +67 -0
- package/dist/commonjs/api/deployments/operations.js.map +1 -0
- package/dist/commonjs/api/deployments/options.d.ts +25 -0
- package/dist/commonjs/api/deployments/options.d.ts.map +1 -0
- package/dist/commonjs/api/deployments/options.js +5 -0
- package/dist/commonjs/api/deployments/options.js.map +1 -0
- package/dist/commonjs/api/evaluations/index.d.ts +3 -0
- package/dist/commonjs/api/evaluations/index.d.ts.map +1 -0
- package/dist/commonjs/api/evaluations/index.js +11 -0
- package/dist/commonjs/api/evaluations/index.js.map +1 -0
- package/dist/commonjs/api/evaluations/operations.d.ts +22 -0
- package/dist/commonjs/api/evaluations/operations.d.ts.map +1 -0
- package/dist/commonjs/api/evaluations/operations.js +116 -0
- package/dist/commonjs/api/evaluations/operations.js.map +1 -0
- package/dist/commonjs/api/evaluations/options.d.ts +24 -0
- package/dist/commonjs/api/evaluations/options.d.ts.map +1 -0
- package/dist/commonjs/api/evaluations/options.js +5 -0
- package/dist/commonjs/api/evaluations/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.d.ts.map +1 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/indexes/index.d.ts +3 -0
- package/dist/commonjs/api/indexes/index.d.ts.map +1 -0
- package/dist/commonjs/api/indexes/index.js +12 -0
- package/dist/commonjs/api/indexes/index.js.map +1 -0
- package/dist/commonjs/api/indexes/operations.d.ts +31 -0
- package/dist/commonjs/api/indexes/operations.d.ts.map +1 -0
- package/dist/commonjs/api/indexes/operations.js +142 -0
- package/dist/commonjs/api/indexes/operations.js.map +1 -0
- package/dist/commonjs/api/indexes/options.d.ts +21 -0
- package/dist/commonjs/api/indexes/options.d.ts.map +1 -0
- package/dist/commonjs/api/indexes/options.js +5 -0
- package/dist/commonjs/api/indexes/options.js.map +1 -0
- package/dist/commonjs/api/inference/enableTelemetry.d.ts +21 -0
- package/dist/commonjs/api/inference/enableTelemetry.d.ts.map +1 -0
- package/dist/commonjs/api/inference/enableTelemetry.js +189 -0
- package/dist/commonjs/api/inference/enableTelemetry.js.map +1 -0
- package/dist/commonjs/api/inference/operations.d.ts +59 -0
- package/dist/commonjs/api/inference/operations.d.ts.map +1 -0
- package/dist/commonjs/api/inference/operations.js +186 -0
- package/dist/commonjs/api/inference/operations.js.map +1 -0
- package/dist/commonjs/api/inference/options.d.ts +18 -0
- package/dist/commonjs/api/inference/options.d.ts.map +1 -0
- package/dist/commonjs/api/inference/options.js +5 -0
- package/dist/commonjs/api/inference/options.js.map +1 -0
- package/dist/commonjs/api/redTeams/index.d.ts +3 -0
- package/dist/commonjs/api/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/index.js +10 -0
- package/dist/commonjs/api/redTeams/index.js.map +1 -0
- package/dist/commonjs/api/redTeams/operations.d.ts +18 -0
- package/dist/commonjs/api/redTeams/operations.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/operations.js +88 -0
- package/dist/commonjs/api/redTeams/operations.js.map +1 -0
- package/dist/commonjs/api/redTeams/options.d.ts +21 -0
- package/dist/commonjs/api/redTeams/options.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/options.js +5 -0
- package/dist/commonjs/api/redTeams/options.js.map +1 -0
- package/dist/commonjs/api/telemetry/index.d.ts +2 -0
- package/dist/commonjs/api/telemetry/index.d.ts.map +1 -0
- package/dist/commonjs/api/telemetry/index.js +8 -0
- package/dist/commonjs/api/telemetry/index.js.map +1 -0
- package/dist/commonjs/api/telemetry/operations.d.ts +22 -0
- package/dist/commonjs/api/telemetry/operations.d.ts.map +1 -0
- package/dist/commonjs/api/telemetry/operations.js +73 -0
- package/dist/commonjs/api/telemetry/operations.js.map +1 -0
- package/dist/commonjs/classic/connections/index.d.ts +17 -0
- package/dist/commonjs/classic/connections/index.d.ts.map +1 -0
- package/dist/commonjs/classic/connections/index.js +18 -0
- package/dist/commonjs/classic/connections/index.js.map +1 -0
- package/dist/commonjs/classic/datasets/index.d.ts +32 -0
- package/dist/commonjs/classic/datasets/index.d.ts.map +1 -0
- package/dist/commonjs/classic/datasets/index.js +24 -0
- package/dist/commonjs/classic/datasets/index.js.map +1 -0
- package/dist/commonjs/classic/deployments/index.d.ts +13 -0
- package/dist/commonjs/classic/deployments/index.d.ts.map +1 -0
- package/dist/commonjs/classic/deployments/index.js +16 -0
- package/dist/commonjs/classic/deployments/index.js.map +1 -0
- package/dist/commonjs/classic/evaluations/index.d.ts +17 -0
- package/dist/commonjs/classic/evaluations/index.d.ts.map +1 -0
- package/dist/commonjs/classic/evaluations/index.js +18 -0
- package/dist/commonjs/classic/evaluations/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +8 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/indexes/index.d.ts +24 -0
- package/dist/commonjs/classic/indexes/index.d.ts.map +1 -0
- package/dist/commonjs/classic/indexes/index.js +20 -0
- package/dist/commonjs/classic/indexes/index.js.map +1 -0
- package/dist/commonjs/classic/inference/index.d.ts +18 -0
- package/dist/commonjs/classic/inference/index.d.ts.map +1 -0
- package/dist/commonjs/classic/inference/index.js +18 -0
- package/dist/commonjs/classic/inference/index.js.map +1 -0
- package/dist/commonjs/classic/redTeams/index.d.ts +15 -0
- package/dist/commonjs/classic/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/classic/redTeams/index.js +17 -0
- package/dist/commonjs/classic/redTeams/index.js.map +1 -0
- package/dist/commonjs/classic/telemetry/index.d.ts +11 -0
- package/dist/commonjs/classic/telemetry/index.d.ts.map +1 -0
- package/dist/commonjs/classic/telemetry/index.js +19 -0
- package/dist/commonjs/classic/telemetry/index.js.map +1 -0
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +13 -8
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +6 -6
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.d.ts.map +1 -1
- package/dist/commonjs/logger.js +1 -2
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/evaluations.d.ts +55 -0
- package/dist/commonjs/models/evaluations.d.ts.map +1 -0
- package/dist/commonjs/models/evaluations.js +59 -0
- package/dist/commonjs/models/evaluations.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +10 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/models.d.ts +518 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +718 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +178 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/aiProjectClient.d.ts +79 -0
- package/dist/esm/aiProjectClient.d.ts.map +1 -0
- package/dist/esm/aiProjectClient.js +86 -0
- package/dist/esm/aiProjectClient.js.map +1 -0
- package/dist/esm/api/aiProjectContext.d.ts +23 -0
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -0
- package/dist/esm/api/aiProjectContext.js +37 -0
- package/dist/esm/api/aiProjectContext.js.map +1 -0
- package/dist/esm/api/connections/index.d.ts +3 -0
- package/dist/esm/api/connections/index.d.ts.map +1 -0
- package/dist/esm/api/connections/index.js +4 -0
- package/dist/esm/api/connections/index.js.map +1 -0
- package/dist/esm/api/connections/operations.d.ts +28 -0
- package/dist/esm/api/connections/operations.d.ts.map +1 -0
- package/dist/esm/api/connections/operations.js +125 -0
- package/dist/esm/api/connections/operations.js.map +1 -0
- package/dist/esm/api/connections/options.d.ts +28 -0
- package/dist/esm/api/connections/options.d.ts.map +1 -0
- package/dist/esm/api/connections/options.js +4 -0
- package/dist/esm/api/connections/options.js.map +1 -0
- package/dist/esm/api/datasets/index.d.ts +3 -0
- package/dist/esm/api/datasets/index.d.ts.map +1 -0
- package/dist/esm/api/datasets/index.js +4 -0
- package/dist/esm/api/datasets/index.js.map +1 -0
- package/dist/esm/api/datasets/operations.d.ts +41 -0
- package/dist/esm/api/datasets/operations.d.ts.map +1 -0
- package/dist/esm/api/datasets/operations.js +286 -0
- package/dist/esm/api/datasets/operations.js.map +1 -0
- package/dist/esm/api/datasets/options.d.ts +27 -0
- package/dist/esm/api/datasets/options.d.ts.map +1 -0
- package/dist/esm/api/datasets/options.js +2 -0
- package/dist/esm/api/datasets/options.js.map +1 -0
- package/dist/esm/api/deployments/index.d.ts +3 -0
- package/dist/esm/api/deployments/index.d.ts.map +1 -0
- package/dist/esm/api/deployments/index.js +4 -0
- package/dist/esm/api/deployments/index.js.map +1 -0
- package/dist/esm/api/deployments/operations.d.ts +14 -0
- package/dist/esm/api/deployments/operations.d.ts.map +1 -0
- package/dist/esm/api/deployments/operations.js +59 -0
- package/dist/esm/api/deployments/operations.js.map +1 -0
- package/dist/esm/api/deployments/options.d.ts +25 -0
- package/dist/esm/api/deployments/options.d.ts.map +1 -0
- package/dist/esm/api/deployments/options.js +4 -0
- package/dist/esm/api/deployments/options.js.map +1 -0
- package/dist/esm/api/evaluations/index.d.ts +3 -0
- package/dist/esm/api/evaluations/index.d.ts.map +1 -0
- package/dist/esm/api/evaluations/index.js +4 -0
- package/dist/esm/api/evaluations/index.js.map +1 -0
- package/dist/esm/api/evaluations/operations.d.ts +22 -0
- package/dist/esm/api/evaluations/operations.d.ts.map +1 -0
- package/dist/esm/api/evaluations/operations.js +102 -0
- package/dist/esm/api/evaluations/operations.js.map +1 -0
- package/dist/esm/api/evaluations/options.d.ts +24 -0
- package/dist/esm/api/evaluations/options.d.ts.map +1 -0
- package/dist/esm/api/evaluations/options.js +4 -0
- package/dist/esm/api/evaluations/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.d.ts.map +1 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/indexes/index.d.ts +3 -0
- package/dist/esm/api/indexes/index.d.ts.map +1 -0
- package/dist/esm/api/indexes/index.js +4 -0
- package/dist/esm/api/indexes/index.js.map +1 -0
- package/dist/esm/api/indexes/operations.d.ts +31 -0
- package/dist/esm/api/indexes/operations.d.ts.map +1 -0
- package/dist/esm/api/indexes/operations.js +125 -0
- package/dist/esm/api/indexes/operations.js.map +1 -0
- package/dist/esm/api/indexes/options.d.ts +21 -0
- package/dist/esm/api/indexes/options.d.ts.map +1 -0
- package/dist/esm/api/indexes/options.js +4 -0
- package/dist/esm/api/indexes/options.js.map +1 -0
- package/dist/esm/api/inference/enableTelemetry.d.ts +21 -0
- package/dist/esm/api/inference/enableTelemetry.d.ts.map +1 -0
- package/dist/esm/api/inference/enableTelemetry.js +185 -0
- package/dist/esm/api/inference/enableTelemetry.js.map +1 -0
- package/dist/esm/api/inference/operations.d.ts +59 -0
- package/dist/esm/api/inference/operations.d.ts.map +1 -0
- package/dist/esm/api/inference/operations.js +177 -0
- package/dist/esm/api/inference/operations.js.map +1 -0
- package/dist/esm/api/inference/options.d.ts +18 -0
- package/dist/esm/api/inference/options.d.ts.map +1 -0
- package/dist/esm/api/inference/options.js +4 -0
- package/dist/esm/api/inference/options.js.map +1 -0
- package/dist/esm/api/redTeams/index.d.ts +3 -0
- package/dist/esm/api/redTeams/index.d.ts.map +1 -0
- package/dist/esm/api/redTeams/index.js +4 -0
- package/dist/esm/api/redTeams/index.js.map +1 -0
- package/dist/esm/api/redTeams/operations.d.ts +18 -0
- package/dist/esm/api/redTeams/operations.d.ts.map +1 -0
- package/dist/esm/api/redTeams/operations.js +77 -0
- package/dist/esm/api/redTeams/operations.js.map +1 -0
- package/dist/esm/api/redTeams/options.d.ts +21 -0
- package/dist/esm/api/redTeams/options.d.ts.map +1 -0
- package/dist/esm/api/redTeams/options.js +4 -0
- package/dist/esm/api/redTeams/options.js.map +1 -0
- package/dist/esm/api/telemetry/index.d.ts +2 -0
- package/dist/esm/api/telemetry/index.d.ts.map +1 -0
- package/dist/esm/api/telemetry/index.js +4 -0
- package/dist/esm/api/telemetry/index.js.map +1 -0
- package/dist/esm/api/telemetry/operations.d.ts +22 -0
- package/dist/esm/api/telemetry/operations.d.ts.map +1 -0
- package/dist/esm/api/telemetry/operations.js +70 -0
- package/dist/esm/api/telemetry/operations.js.map +1 -0
- package/dist/esm/classic/connections/index.d.ts +17 -0
- package/dist/esm/classic/connections/index.d.ts.map +1 -0
- package/dist/esm/classic/connections/index.js +15 -0
- package/dist/esm/classic/connections/index.js.map +1 -0
- package/dist/esm/classic/datasets/index.d.ts +32 -0
- package/dist/esm/classic/datasets/index.d.ts.map +1 -0
- package/dist/esm/classic/datasets/index.js +21 -0
- package/dist/esm/classic/datasets/index.js.map +1 -0
- package/dist/esm/classic/deployments/index.d.ts +13 -0
- package/dist/esm/classic/deployments/index.d.ts.map +1 -0
- package/dist/esm/classic/deployments/index.js +13 -0
- package/dist/esm/classic/deployments/index.js.map +1 -0
- package/dist/esm/classic/evaluations/index.d.ts +17 -0
- package/dist/esm/classic/evaluations/index.d.ts.map +1 -0
- package/dist/esm/classic/evaluations/index.js +15 -0
- package/dist/esm/classic/evaluations/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +8 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/indexes/index.d.ts +24 -0
- package/dist/esm/classic/indexes/index.d.ts.map +1 -0
- package/dist/esm/classic/indexes/index.js +17 -0
- package/dist/esm/classic/indexes/index.js.map +1 -0
- package/dist/esm/classic/inference/index.d.ts +18 -0
- package/dist/esm/classic/inference/index.d.ts.map +1 -0
- package/dist/esm/classic/inference/index.js +15 -0
- package/dist/esm/classic/inference/index.js.map +1 -0
- package/dist/esm/classic/redTeams/index.d.ts +15 -0
- package/dist/esm/classic/redTeams/index.d.ts.map +1 -0
- package/dist/esm/classic/redTeams/index.js +14 -0
- package/dist/esm/classic/redTeams/index.js.map +1 -0
- package/dist/esm/classic/telemetry/index.d.ts +11 -0
- package/dist/esm/classic/telemetry/index.d.ts.map +1 -0
- package/dist/esm/classic/telemetry/index.js +14 -0
- package/dist/esm/classic/telemetry/index.js.map +1 -0
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +13 -8
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logger.d.ts.map +1 -1
- package/dist/esm/logger.js +1 -2
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/models/evaluations.d.ts +55 -0
- package/dist/esm/models/evaluations.d.ts.map +1 -0
- package/dist/esm/models/evaluations.js +56 -0
- package/dist/esm/models/evaluations.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/models.d.ts +518 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +635 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.js +175 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/aiProjectClient.d.ts +79 -0
- package/dist/react-native/aiProjectClient.d.ts.map +1 -0
- package/dist/react-native/aiProjectClient.js +86 -0
- package/dist/react-native/aiProjectClient.js.map +1 -0
- package/dist/react-native/api/aiProjectContext.d.ts +23 -0
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -0
- package/dist/react-native/api/aiProjectContext.js +37 -0
- package/dist/react-native/api/aiProjectContext.js.map +1 -0
- package/dist/react-native/api/connections/index.d.ts +3 -0
- package/dist/react-native/api/connections/index.d.ts.map +1 -0
- package/dist/react-native/api/connections/index.js +4 -0
- package/dist/react-native/api/connections/index.js.map +1 -0
- package/dist/react-native/api/connections/operations.d.ts +28 -0
- package/dist/react-native/api/connections/operations.d.ts.map +1 -0
- package/dist/react-native/api/connections/operations.js +125 -0
- package/dist/react-native/api/connections/operations.js.map +1 -0
- package/dist/react-native/api/connections/options.d.ts +28 -0
- package/dist/react-native/api/connections/options.d.ts.map +1 -0
- package/dist/react-native/api/connections/options.js +4 -0
- package/dist/react-native/api/connections/options.js.map +1 -0
- package/dist/react-native/api/datasets/index.d.ts +3 -0
- package/dist/react-native/api/datasets/index.d.ts.map +1 -0
- package/dist/react-native/api/datasets/index.js +4 -0
- package/dist/react-native/api/datasets/index.js.map +1 -0
- package/dist/react-native/api/datasets/operations.d.ts +41 -0
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -0
- package/dist/react-native/api/datasets/operations.js +286 -0
- package/dist/react-native/api/datasets/operations.js.map +1 -0
- package/dist/react-native/api/datasets/options.d.ts +27 -0
- package/dist/react-native/api/datasets/options.d.ts.map +1 -0
- package/dist/react-native/api/datasets/options.js +2 -0
- package/dist/react-native/api/datasets/options.js.map +1 -0
- package/dist/react-native/api/deployments/index.d.ts +3 -0
- package/dist/react-native/api/deployments/index.d.ts.map +1 -0
- package/dist/react-native/api/deployments/index.js +4 -0
- package/dist/react-native/api/deployments/index.js.map +1 -0
- package/dist/react-native/api/deployments/operations.d.ts +14 -0
- package/dist/react-native/api/deployments/operations.d.ts.map +1 -0
- package/dist/react-native/api/deployments/operations.js +59 -0
- package/dist/react-native/api/deployments/operations.js.map +1 -0
- package/dist/react-native/api/deployments/options.d.ts +25 -0
- package/dist/react-native/api/deployments/options.d.ts.map +1 -0
- package/dist/react-native/api/deployments/options.js +4 -0
- package/dist/react-native/api/deployments/options.js.map +1 -0
- package/dist/react-native/api/evaluations/index.d.ts +3 -0
- package/dist/react-native/api/evaluations/index.d.ts.map +1 -0
- package/dist/react-native/api/evaluations/index.js +4 -0
- package/dist/react-native/api/evaluations/index.js.map +1 -0
- package/dist/react-native/api/evaluations/operations.d.ts +22 -0
- package/dist/react-native/api/evaluations/operations.d.ts.map +1 -0
- package/dist/react-native/api/evaluations/operations.js +102 -0
- package/dist/react-native/api/evaluations/operations.js.map +1 -0
- package/dist/react-native/api/evaluations/options.d.ts +24 -0
- package/dist/react-native/api/evaluations/options.d.ts.map +1 -0
- package/dist/react-native/api/evaluations/options.js +4 -0
- package/dist/react-native/api/evaluations/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.d.ts.map +1 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/indexes/index.d.ts +3 -0
- package/dist/react-native/api/indexes/index.d.ts.map +1 -0
- package/dist/react-native/api/indexes/index.js +4 -0
- package/dist/react-native/api/indexes/index.js.map +1 -0
- package/dist/react-native/api/indexes/operations.d.ts +31 -0
- package/dist/react-native/api/indexes/operations.d.ts.map +1 -0
- package/dist/react-native/api/indexes/operations.js +125 -0
- package/dist/react-native/api/indexes/operations.js.map +1 -0
- package/dist/react-native/api/indexes/options.d.ts +21 -0
- package/dist/react-native/api/indexes/options.d.ts.map +1 -0
- package/dist/react-native/api/indexes/options.js +4 -0
- package/dist/react-native/api/indexes/options.js.map +1 -0
- package/dist/react-native/api/inference/enableTelemetry.d.ts +21 -0
- package/dist/react-native/api/inference/enableTelemetry.d.ts.map +1 -0
- package/dist/react-native/api/inference/enableTelemetry.js +185 -0
- package/dist/react-native/api/inference/enableTelemetry.js.map +1 -0
- package/dist/react-native/api/inference/operations.d.ts +59 -0
- package/dist/react-native/api/inference/operations.d.ts.map +1 -0
- package/dist/react-native/api/inference/operations.js +177 -0
- package/dist/react-native/api/inference/operations.js.map +1 -0
- package/dist/react-native/api/inference/options.d.ts +18 -0
- package/dist/react-native/api/inference/options.d.ts.map +1 -0
- package/dist/react-native/api/inference/options.js +4 -0
- package/dist/react-native/api/inference/options.js.map +1 -0
- package/dist/react-native/api/redTeams/index.d.ts +3 -0
- package/dist/react-native/api/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/index.js +4 -0
- package/dist/react-native/api/redTeams/index.js.map +1 -0
- package/dist/react-native/api/redTeams/operations.d.ts +18 -0
- package/dist/react-native/api/redTeams/operations.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/operations.js +77 -0
- package/dist/react-native/api/redTeams/operations.js.map +1 -0
- package/dist/react-native/api/redTeams/options.d.ts +21 -0
- package/dist/react-native/api/redTeams/options.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/options.js +4 -0
- package/dist/react-native/api/redTeams/options.js.map +1 -0
- package/dist/react-native/api/telemetry/index.d.ts +2 -0
- package/dist/react-native/api/telemetry/index.d.ts.map +1 -0
- package/dist/react-native/api/telemetry/index.js +4 -0
- package/dist/react-native/api/telemetry/index.js.map +1 -0
- package/dist/react-native/api/telemetry/operations.d.ts +22 -0
- package/dist/react-native/api/telemetry/operations.d.ts.map +1 -0
- package/dist/react-native/api/telemetry/operations.js +70 -0
- package/dist/react-native/api/telemetry/operations.js.map +1 -0
- package/dist/react-native/classic/connections/index.d.ts +17 -0
- package/dist/react-native/classic/connections/index.d.ts.map +1 -0
- package/dist/react-native/classic/connections/index.js +15 -0
- package/dist/react-native/classic/connections/index.js.map +1 -0
- package/dist/react-native/classic/datasets/index.d.ts +32 -0
- package/dist/react-native/classic/datasets/index.d.ts.map +1 -0
- package/dist/react-native/classic/datasets/index.js +21 -0
- package/dist/react-native/classic/datasets/index.js.map +1 -0
- package/dist/react-native/classic/deployments/index.d.ts +13 -0
- package/dist/react-native/classic/deployments/index.d.ts.map +1 -0
- package/dist/react-native/classic/deployments/index.js +13 -0
- package/dist/react-native/classic/deployments/index.js.map +1 -0
- package/dist/react-native/classic/evaluations/index.d.ts +17 -0
- package/dist/react-native/classic/evaluations/index.d.ts.map +1 -0
- package/dist/react-native/classic/evaluations/index.js +15 -0
- package/dist/react-native/classic/evaluations/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +8 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/indexes/index.d.ts +24 -0
- package/dist/react-native/classic/indexes/index.d.ts.map +1 -0
- package/dist/react-native/classic/indexes/index.js +17 -0
- package/dist/react-native/classic/indexes/index.js.map +1 -0
- package/dist/react-native/classic/inference/index.d.ts +18 -0
- package/dist/react-native/classic/inference/index.d.ts.map +1 -0
- package/dist/react-native/classic/inference/index.js +15 -0
- package/dist/react-native/classic/inference/index.js.map +1 -0
- package/dist/react-native/classic/redTeams/index.d.ts +15 -0
- package/dist/react-native/classic/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/classic/redTeams/index.js +14 -0
- package/dist/react-native/classic/redTeams/index.js.map +1 -0
- package/dist/react-native/classic/telemetry/index.d.ts +11 -0
- package/dist/react-native/classic/telemetry/index.d.ts.map +1 -0
- package/dist/react-native/classic/telemetry/index.js +14 -0
- package/dist/react-native/classic/telemetry/index.js.map +1 -0
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +13 -8
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -4
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/logger.d.ts.map +1 -1
- package/dist/react-native/logger.js +1 -2
- package/dist/react-native/logger.js.map +1 -1
- package/dist/react-native/models/evaluations.d.ts +55 -0
- package/dist/react-native/models/evaluations.d.ts.map +1 -0
- package/dist/react-native/models/evaluations.js +56 -0
- package/dist/react-native/models/evaluations.js.map +1 -0
- package/dist/react-native/models/index.d.ts +3 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +5 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/models.d.ts +518 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +635 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.js +175 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +30 -27
- package/dist/browser/agents/assistants.d.ts +0 -14
- package/dist/browser/agents/assistants.d.ts.map +0 -1
- package/dist/browser/agents/assistants.js +0 -163
- package/dist/browser/agents/assistants.js.map +0 -1
- package/dist/browser/agents/assistantsTrace.d.ts +0 -17
- package/dist/browser/agents/assistantsTrace.d.ts.map +0 -1
- package/dist/browser/agents/assistantsTrace.js +0 -42
- package/dist/browser/agents/assistantsTrace.js.map +0 -1
- package/dist/browser/agents/customModels.d.ts +0 -263
- package/dist/browser/agents/customModels.d.ts.map +0 -1
- package/dist/browser/agents/customModels.js +0 -4
- package/dist/browser/agents/customModels.js.map +0 -1
- package/dist/browser/agents/files.d.ts +0 -18
- package/dist/browser/agents/files.d.ts.map +0 -1
- package/dist/browser/agents/files.js +0 -130
- package/dist/browser/agents/files.js.map +0 -1
- package/dist/browser/agents/index.d.ts +0 -103
- package/dist/browser/agents/index.d.ts.map +0 -1
- package/dist/browser/agents/index.js +0 -62
- package/dist/browser/agents/index.js.map +0 -1
- package/dist/browser/agents/inputOutputs.d.ts +0 -10
- package/dist/browser/agents/inputOutputs.d.ts.map +0 -1
- package/dist/browser/agents/inputOutputs.js +0 -8
- package/dist/browser/agents/inputOutputs.js.map +0 -1
- package/dist/browser/agents/inputValidations.d.ts +0 -15
- package/dist/browser/agents/inputValidations.d.ts.map +0 -1
- package/dist/browser/agents/inputValidations.js +0 -116
- package/dist/browser/agents/inputValidations.js.map +0 -1
- package/dist/browser/agents/messages.d.ts +0 -11
- package/dist/browser/agents/messages.d.ts.map +0 -1
- package/dist/browser/agents/messages.js +0 -101
- package/dist/browser/agents/messages.js.map +0 -1
- package/dist/browser/agents/messagesTrace.d.ts +0 -9
- package/dist/browser/agents/messagesTrace.d.ts.map +0 -1
- package/dist/browser/agents/messagesTrace.js +0 -29
- package/dist/browser/agents/messagesTrace.js.map +0 -1
- package/dist/browser/agents/openAIError.d.ts +0 -15
- package/dist/browser/agents/openAIError.d.ts.map +0 -1
- package/dist/browser/agents/openAIError.js +0 -30
- package/dist/browser/agents/openAIError.js.map +0 -1
- package/dist/browser/agents/poller.d.ts +0 -9
- package/dist/browser/agents/poller.d.ts.map +0 -1
- package/dist/browser/agents/poller.js +0 -137
- package/dist/browser/agents/poller.js.map +0 -1
- package/dist/browser/agents/runSteps.d.ts +0 -8
- package/dist/browser/agents/runSteps.d.ts.map +0 -1
- package/dist/browser/agents/runSteps.js +0 -55
- package/dist/browser/agents/runSteps.js.map +0 -1
- package/dist/browser/agents/runTrace.d.ts +0 -9
- package/dist/browser/agents/runTrace.d.ts.map +0 -1
- package/dist/browser/agents/runTrace.js +0 -62
- package/dist/browser/agents/runTrace.js.map +0 -1
- package/dist/browser/agents/runs.d.ts +0 -19
- package/dist/browser/agents/runs.d.ts.map +0 -1
- package/dist/browser/agents/runs.js +0 -222
- package/dist/browser/agents/runs.js.map +0 -1
- package/dist/browser/agents/streaming.d.ts +0 -9
- package/dist/browser/agents/streaming.d.ts.map +0 -1
- package/dist/browser/agents/streaming.js +0 -135
- package/dist/browser/agents/streaming.js.map +0 -1
- package/dist/browser/agents/streamingModels.d.ts +0 -103
- package/dist/browser/agents/streamingModels.d.ts.map +0 -1
- package/dist/browser/agents/streamingModels.js +0 -75
- package/dist/browser/agents/streamingModels.js.map +0 -1
- package/dist/browser/agents/threads.d.ts +0 -12
- package/dist/browser/agents/threads.d.ts.map +0 -1
- package/dist/browser/agents/threads.js +0 -85
- package/dist/browser/agents/threads.js.map +0 -1
- package/dist/browser/agents/threadsTrace.d.ts +0 -6
- package/dist/browser/agents/threadsTrace.d.ts.map +0 -1
- package/dist/browser/agents/threadsTrace.js +0 -19
- package/dist/browser/agents/threadsTrace.js.map +0 -1
- package/dist/browser/agents/traceUtility.d.ts +0 -36
- package/dist/browser/agents/traceUtility.d.ts.map +0 -1
- package/dist/browser/agents/traceUtility.js +0 -127
- package/dist/browser/agents/traceUtility.js.map +0 -1
- package/dist/browser/agents/utils.d.ts +0 -209
- package/dist/browser/agents/utils.d.ts.map +0 -1
- package/dist/browser/agents/utils.js +0 -280
- package/dist/browser/agents/utils.js.map +0 -1
- package/dist/browser/agents/vectorStores.d.ts +0 -19
- package/dist/browser/agents/vectorStores.d.ts.map +0 -1
- package/dist/browser/agents/vectorStores.js +0 -134
- package/dist/browser/agents/vectorStores.js.map +0 -1
- package/dist/browser/agents/vectorStoresFileBatches.d.ts +0 -16
- package/dist/browser/agents/vectorStoresFileBatches.d.ts.map +0 -1
- package/dist/browser/agents/vectorStoresFileBatches.js +0 -122
- package/dist/browser/agents/vectorStoresFileBatches.js.map +0 -1
- package/dist/browser/agents/vectorStoresFiles.d.ts +0 -18
- package/dist/browser/agents/vectorStoresFiles.d.ts.map +0 -1
- package/dist/browser/agents/vectorStoresFiles.js +0 -133
- package/dist/browser/agents/vectorStoresFiles.js.map +0 -1
- package/dist/browser/agents/vectorStoresModels.d.ts +0 -27
- package/dist/browser/agents/vectorStoresModels.d.ts.map +0 -1
- package/dist/browser/agents/vectorStoresModels.js +0 -4
- package/dist/browser/agents/vectorStoresModels.js.map +0 -1
- package/dist/browser/aiProjectsClient.d.ts +0 -34
- package/dist/browser/aiProjectsClient.d.ts.map +0 -1
- package/dist/browser/aiProjectsClient.js +0 -47
- package/dist/browser/aiProjectsClient.js.map +0 -1
- package/dist/browser/connections/connections.d.ts +0 -13
- package/dist/browser/connections/connections.d.ts.map +0 -1
- package/dist/browser/connections/connections.js +0 -47
- package/dist/browser/connections/connections.js.map +0 -1
- package/dist/browser/connections/customModels.d.ts +0 -27
- package/dist/browser/connections/customModels.d.ts.map +0 -1
- package/dist/browser/connections/customModels.js +0 -4
- package/dist/browser/connections/customModels.js.map +0 -1
- package/dist/browser/connections/index.d.ts +0 -9
- package/dist/browser/connections/index.d.ts.map +0 -1
- package/dist/browser/connections/index.js +0 -20
- package/dist/browser/connections/index.js.map +0 -1
- package/dist/browser/connections/inputOutput.d.ts +0 -4
- package/dist/browser/connections/inputOutput.d.ts.map +0 -1
- package/dist/browser/connections/inputOutput.js +0 -4
- package/dist/browser/connections/inputOutput.js.map +0 -1
- package/dist/browser/connections/internalModels.d.ts +0 -7
- package/dist/browser/connections/internalModels.d.ts.map +0 -1
- package/dist/browser/connections/internalModels.js +0 -4
- package/dist/browser/connections/internalModels.js.map +0 -1
- package/dist/browser/customization/convertModelsToWrite.d.ts +0 -14
- package/dist/browser/customization/convertModelsToWrite.d.ts.map +0 -1
- package/dist/browser/customization/convertModelsToWrite.js +0 -275
- package/dist/browser/customization/convertModelsToWrite.js.map +0 -1
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts +0 -27
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/browser/customization/convertOutputModelsFromWire.js +0 -933
- package/dist/browser/customization/convertOutputModelsFromWire.js.map +0 -1
- package/dist/browser/customization/convertParametersToWire.d.ts +0 -18
- package/dist/browser/customization/convertParametersToWire.d.ts.map +0 -1
- package/dist/browser/customization/convertParametersToWire.js +0 -31
- package/dist/browser/customization/convertParametersToWire.js.map +0 -1
- package/dist/browser/customization/models.d.ts +0 -800
- package/dist/browser/customization/models.d.ts.map +0 -1
- package/dist/browser/customization/models.js +0 -4
- package/dist/browser/customization/models.js.map +0 -1
- package/dist/browser/customization/outputModels.d.ts +0 -1469
- package/dist/browser/customization/outputModels.d.ts.map +0 -1
- package/dist/browser/customization/outputModels.js +0 -4
- package/dist/browser/customization/outputModels.js.map +0 -1
- package/dist/browser/customization/parameters.d.ts +0 -376
- package/dist/browser/customization/parameters.d.ts.map +0 -1
- package/dist/browser/customization/parameters.js +0 -4
- package/dist/browser/customization/parameters.js.map +0 -1
- package/dist/browser/customization/streamingModels.d.ts +0 -226
- package/dist/browser/customization/streamingModels.d.ts.map +0 -1
- package/dist/browser/customization/streamingModels.js +0 -4
- package/dist/browser/customization/streamingModels.js.map +0 -1
- package/dist/browser/customization/streamingWireModels.d.ts +0 -222
- package/dist/browser/customization/streamingWireModels.d.ts.map +0 -1
- package/dist/browser/customization/streamingWireModels.js +0 -4
- package/dist/browser/customization/streamingWireModels.js.map +0 -1
- package/dist/browser/generated/src/clientDefinitions.d.ts +0 -258
- package/dist/browser/generated/src/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/generated/src/clientDefinitions.js +0 -4
- package/dist/browser/generated/src/clientDefinitions.js.map +0 -1
- package/dist/browser/generated/src/index.d.ts +0 -11
- package/dist/browser/generated/src/index.d.ts.map +0 -1
- package/dist/browser/generated/src/index.js +0 -13
- package/dist/browser/generated/src/index.js.map +0 -1
- package/dist/browser/generated/src/isUnexpected.d.ts +0 -54
- package/dist/browser/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/browser/generated/src/isUnexpected.js +0 -123
- package/dist/browser/generated/src/isUnexpected.js.map +0 -1
- package/dist/browser/generated/src/logger.d.ts +0 -2
- package/dist/browser/generated/src/logger.d.ts.map +0 -1
- package/dist/browser/generated/src/logger.js +0 -5
- package/dist/browser/generated/src/logger.js.map +0 -1
- package/dist/browser/generated/src/models.d.ts +0 -839
- package/dist/browser/generated/src/models.d.ts.map +0 -1
- package/dist/browser/generated/src/models.js +0 -4
- package/dist/browser/generated/src/models.js.map +0 -1
- package/dist/browser/generated/src/outputModels.d.ts +0 -1548
- package/dist/browser/generated/src/outputModels.d.ts.map +0 -1
- package/dist/browser/generated/src/outputModels.js +0 -4
- package/dist/browser/generated/src/outputModels.js.map +0 -1
- package/dist/browser/generated/src/paginateHelper.d.ts +0 -68
- package/dist/browser/generated/src/paginateHelper.d.ts.map +0 -1
- package/dist/browser/generated/src/paginateHelper.js +0 -180
- package/dist/browser/generated/src/paginateHelper.js.map +0 -1
- package/dist/browser/generated/src/parameters.d.ts +0 -433
- package/dist/browser/generated/src/parameters.d.ts.map +0 -1
- package/dist/browser/generated/src/parameters.js +0 -4
- package/dist/browser/generated/src/parameters.js.map +0 -1
- package/dist/browser/generated/src/projectsClient.d.ts +0 -19
- package/dist/browser/generated/src/projectsClient.d.ts.map +0 -1
- package/dist/browser/generated/src/projectsClient.js +0 -48
- package/dist/browser/generated/src/projectsClient.js.map +0 -1
- package/dist/browser/generated/src/responses.d.ts +0 -777
- package/dist/browser/generated/src/responses.d.ts.map +0 -1
- package/dist/browser/generated/src/responses.js +0 -4
- package/dist/browser/generated/src/responses.js.map +0 -1
- package/dist/browser/telemetry/index.d.ts +0 -32
- package/dist/browser/telemetry/index.d.ts.map +0 -1
- package/dist/browser/telemetry/index.js +0 -17
- package/dist/browser/telemetry/index.js.map +0 -1
- package/dist/browser/telemetry/telemetry.d.ts +0 -30
- package/dist/browser/telemetry/telemetry.d.ts.map +0 -1
- package/dist/browser/telemetry/telemetry.js +0 -53
- package/dist/browser/telemetry/telemetry.js.map +0 -1
- package/dist/browser/tracing.d.ts +0 -80
- package/dist/browser/tracing.d.ts.map +0 -1
- package/dist/browser/tracing.js +0 -193
- package/dist/browser/tracing.js.map +0 -1
- package/dist/commonjs/agents/assistants.d.ts +0 -14
- package/dist/commonjs/agents/assistants.d.ts.map +0 -1
- package/dist/commonjs/agents/assistants.js +0 -171
- package/dist/commonjs/agents/assistants.js.map +0 -1
- package/dist/commonjs/agents/assistantsTrace.d.ts +0 -17
- package/dist/commonjs/agents/assistantsTrace.d.ts.map +0 -1
- package/dist/commonjs/agents/assistantsTrace.js +0 -46
- package/dist/commonjs/agents/assistantsTrace.js.map +0 -1
- package/dist/commonjs/agents/customModels.d.ts +0 -263
- package/dist/commonjs/agents/customModels.d.ts.map +0 -1
- package/dist/commonjs/agents/customModels.js +0 -5
- package/dist/commonjs/agents/customModels.js.map +0 -1
- package/dist/commonjs/agents/files.d.ts +0 -18
- package/dist/commonjs/agents/files.d.ts.map +0 -1
- package/dist/commonjs/agents/files.js +0 -140
- package/dist/commonjs/agents/files.js.map +0 -1
- package/dist/commonjs/agents/index.d.ts +0 -103
- package/dist/commonjs/agents/index.d.ts.map +0 -1
- package/dist/commonjs/agents/index.js +0 -65
- package/dist/commonjs/agents/index.js.map +0 -1
- package/dist/commonjs/agents/inputOutputs.d.ts +0 -10
- package/dist/commonjs/agents/inputOutputs.d.ts.map +0 -1
- package/dist/commonjs/agents/inputOutputs.js +0 -11
- package/dist/commonjs/agents/inputOutputs.js.map +0 -1
- package/dist/commonjs/agents/inputValidations.d.ts +0 -15
- package/dist/commonjs/agents/inputValidations.d.ts.map +0 -1
- package/dist/commonjs/agents/inputValidations.js +0 -131
- package/dist/commonjs/agents/inputValidations.js.map +0 -1
- package/dist/commonjs/agents/messages.d.ts +0 -11
- package/dist/commonjs/agents/messages.d.ts.map +0 -1
- package/dist/commonjs/agents/messages.js +0 -107
- package/dist/commonjs/agents/messages.js.map +0 -1
- package/dist/commonjs/agents/messagesTrace.d.ts +0 -9
- package/dist/commonjs/agents/messagesTrace.d.ts.map +0 -1
- package/dist/commonjs/agents/messagesTrace.js +0 -35
- package/dist/commonjs/agents/messagesTrace.js.map +0 -1
- package/dist/commonjs/agents/openAIError.d.ts +0 -15
- package/dist/commonjs/agents/openAIError.d.ts.map +0 -1
- package/dist/commonjs/agents/openAIError.js +0 -35
- package/dist/commonjs/agents/openAIError.js.map +0 -1
- package/dist/commonjs/agents/poller.d.ts +0 -9
- package/dist/commonjs/agents/poller.d.ts.map +0 -1
- package/dist/commonjs/agents/poller.js +0 -140
- package/dist/commonjs/agents/poller.js.map +0 -1
- package/dist/commonjs/agents/runSteps.d.ts +0 -8
- package/dist/commonjs/agents/runSteps.d.ts.map +0 -1
- package/dist/commonjs/agents/runSteps.js +0 -60
- package/dist/commonjs/agents/runSteps.js.map +0 -1
- package/dist/commonjs/agents/runTrace.d.ts +0 -9
- package/dist/commonjs/agents/runTrace.d.ts.map +0 -1
- package/dist/commonjs/agents/runTrace.js +0 -69
- package/dist/commonjs/agents/runTrace.js.map +0 -1
- package/dist/commonjs/agents/runs.d.ts +0 -19
- package/dist/commonjs/agents/runs.d.ts.map +0 -1
- package/dist/commonjs/agents/runs.js +0 -232
- package/dist/commonjs/agents/runs.js.map +0 -1
- package/dist/commonjs/agents/streaming.d.ts +0 -9
- package/dist/commonjs/agents/streaming.d.ts.map +0 -1
- package/dist/commonjs/agents/streaming.js +0 -140
- package/dist/commonjs/agents/streaming.js.map +0 -1
- package/dist/commonjs/agents/streamingModels.d.ts +0 -103
- package/dist/commonjs/agents/streamingModels.d.ts.map +0 -1
- package/dist/commonjs/agents/streamingModels.js +0 -78
- package/dist/commonjs/agents/streamingModels.js.map +0 -1
- package/dist/commonjs/agents/threads.d.ts +0 -12
- package/dist/commonjs/agents/threads.d.ts.map +0 -1
- package/dist/commonjs/agents/threads.js +0 -92
- package/dist/commonjs/agents/threads.js.map +0 -1
- package/dist/commonjs/agents/threadsTrace.d.ts +0 -6
- package/dist/commonjs/agents/threadsTrace.d.ts.map +0 -1
- package/dist/commonjs/agents/threadsTrace.js +0 -23
- package/dist/commonjs/agents/threadsTrace.js.map +0 -1
- package/dist/commonjs/agents/traceUtility.d.ts +0 -36
- package/dist/commonjs/agents/traceUtility.d.ts.map +0 -1
- package/dist/commonjs/agents/traceUtility.js +0 -136
- package/dist/commonjs/agents/traceUtility.js.map +0 -1
- package/dist/commonjs/agents/utils.d.ts +0 -209
- package/dist/commonjs/agents/utils.d.ts.map +0 -1
- package/dist/commonjs/agents/utils.js +0 -286
- package/dist/commonjs/agents/utils.js.map +0 -1
- package/dist/commonjs/agents/vectorStores.d.ts +0 -19
- package/dist/commonjs/agents/vectorStores.d.ts.map +0 -1
- package/dist/commonjs/agents/vectorStores.js +0 -143
- package/dist/commonjs/agents/vectorStores.js.map +0 -1
- package/dist/commonjs/agents/vectorStoresFileBatches.d.ts +0 -16
- package/dist/commonjs/agents/vectorStoresFileBatches.d.ts.map +0 -1
- package/dist/commonjs/agents/vectorStoresFileBatches.js +0 -131
- package/dist/commonjs/agents/vectorStoresFileBatches.js.map +0 -1
- package/dist/commonjs/agents/vectorStoresFiles.d.ts +0 -18
- package/dist/commonjs/agents/vectorStoresFiles.d.ts.map +0 -1
- package/dist/commonjs/agents/vectorStoresFiles.js +0 -141
- package/dist/commonjs/agents/vectorStoresFiles.js.map +0 -1
- package/dist/commonjs/agents/vectorStoresModels.d.ts +0 -27
- package/dist/commonjs/agents/vectorStoresModels.d.ts.map +0 -1
- package/dist/commonjs/agents/vectorStoresModels.js +0 -5
- package/dist/commonjs/agents/vectorStoresModels.js.map +0 -1
- package/dist/commonjs/aiProjectsClient.d.ts +0 -34
- package/dist/commonjs/aiProjectsClient.d.ts.map +0 -1
- package/dist/commonjs/aiProjectsClient.js +0 -52
- package/dist/commonjs/aiProjectsClient.js.map +0 -1
- package/dist/commonjs/connections/connections.d.ts +0 -13
- package/dist/commonjs/connections/connections.d.ts.map +0 -1
- package/dist/commonjs/connections/connections.js +0 -53
- package/dist/commonjs/connections/connections.js.map +0 -1
- package/dist/commonjs/connections/customModels.d.ts +0 -27
- package/dist/commonjs/connections/customModels.d.ts.map +0 -1
- package/dist/commonjs/connections/customModels.js +0 -5
- package/dist/commonjs/connections/customModels.js.map +0 -1
- package/dist/commonjs/connections/index.d.ts +0 -9
- package/dist/commonjs/connections/index.d.ts.map +0 -1
- package/dist/commonjs/connections/index.js +0 -24
- package/dist/commonjs/connections/index.js.map +0 -1
- package/dist/commonjs/connections/inputOutput.d.ts +0 -4
- package/dist/commonjs/connections/inputOutput.d.ts.map +0 -1
- package/dist/commonjs/connections/inputOutput.js +0 -7
- package/dist/commonjs/connections/inputOutput.js.map +0 -1
- package/dist/commonjs/connections/internalModels.d.ts +0 -7
- package/dist/commonjs/connections/internalModels.d.ts.map +0 -1
- package/dist/commonjs/connections/internalModels.js +0 -5
- package/dist/commonjs/connections/internalModels.js.map +0 -1
- package/dist/commonjs/customization/convertModelsToWrite.d.ts +0 -14
- package/dist/commonjs/customization/convertModelsToWrite.d.ts.map +0 -1
- package/dist/commonjs/customization/convertModelsToWrite.js +0 -288
- package/dist/commonjs/customization/convertModelsToWrite.js.map +0 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts +0 -27
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.js +0 -957
- package/dist/commonjs/customization/convertOutputModelsFromWire.js.map +0 -1
- package/dist/commonjs/customization/convertParametersToWire.d.ts +0 -18
- package/dist/commonjs/customization/convertParametersToWire.d.ts.map +0 -1
- package/dist/commonjs/customization/convertParametersToWire.js +0 -38
- package/dist/commonjs/customization/convertParametersToWire.js.map +0 -1
- package/dist/commonjs/customization/models.d.ts +0 -800
- package/dist/commonjs/customization/models.d.ts.map +0 -1
- package/dist/commonjs/customization/models.js +0 -5
- package/dist/commonjs/customization/models.js.map +0 -1
- package/dist/commonjs/customization/outputModels.d.ts +0 -1469
- package/dist/commonjs/customization/outputModels.d.ts.map +0 -1
- package/dist/commonjs/customization/outputModels.js +0 -5
- package/dist/commonjs/customization/outputModels.js.map +0 -1
- package/dist/commonjs/customization/parameters.d.ts +0 -376
- package/dist/commonjs/customization/parameters.d.ts.map +0 -1
- package/dist/commonjs/customization/parameters.js +0 -5
- package/dist/commonjs/customization/parameters.js.map +0 -1
- package/dist/commonjs/customization/streamingModels.d.ts +0 -226
- package/dist/commonjs/customization/streamingModels.d.ts.map +0 -1
- package/dist/commonjs/customization/streamingModels.js +0 -5
- package/dist/commonjs/customization/streamingModels.js.map +0 -1
- package/dist/commonjs/customization/streamingWireModels.d.ts +0 -222
- package/dist/commonjs/customization/streamingWireModels.d.ts.map +0 -1
- package/dist/commonjs/customization/streamingWireModels.js +0 -5
- package/dist/commonjs/customization/streamingWireModels.js.map +0 -1
- package/dist/commonjs/generated/src/clientDefinitions.d.ts +0 -258
- package/dist/commonjs/generated/src/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/generated/src/clientDefinitions.js +0 -5
- package/dist/commonjs/generated/src/clientDefinitions.js.map +0 -1
- package/dist/commonjs/generated/src/index.d.ts +0 -11
- package/dist/commonjs/generated/src/index.d.ts.map +0 -1
- package/dist/commonjs/generated/src/index.js +0 -16
- package/dist/commonjs/generated/src/index.js.map +0 -1
- package/dist/commonjs/generated/src/isUnexpected.d.ts +0 -54
- package/dist/commonjs/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/generated/src/isUnexpected.js +0 -126
- package/dist/commonjs/generated/src/isUnexpected.js.map +0 -1
- package/dist/commonjs/generated/src/logger.d.ts +0 -2
- package/dist/commonjs/generated/src/logger.d.ts.map +0 -1
- package/dist/commonjs/generated/src/logger.js +0 -8
- package/dist/commonjs/generated/src/logger.js.map +0 -1
- package/dist/commonjs/generated/src/models.d.ts +0 -839
- package/dist/commonjs/generated/src/models.d.ts.map +0 -1
- package/dist/commonjs/generated/src/models.js +0 -5
- package/dist/commonjs/generated/src/models.js.map +0 -1
- package/dist/commonjs/generated/src/outputModels.d.ts +0 -1548
- package/dist/commonjs/generated/src/outputModels.d.ts.map +0 -1
- package/dist/commonjs/generated/src/outputModels.js +0 -5
- package/dist/commonjs/generated/src/outputModels.js.map +0 -1
- package/dist/commonjs/generated/src/paginateHelper.d.ts +0 -68
- package/dist/commonjs/generated/src/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/generated/src/paginateHelper.js +0 -183
- package/dist/commonjs/generated/src/paginateHelper.js.map +0 -1
- package/dist/commonjs/generated/src/parameters.d.ts +0 -433
- package/dist/commonjs/generated/src/parameters.d.ts.map +0 -1
- package/dist/commonjs/generated/src/parameters.js +0 -5
- package/dist/commonjs/generated/src/parameters.js.map +0 -1
- package/dist/commonjs/generated/src/projectsClient.d.ts +0 -19
- package/dist/commonjs/generated/src/projectsClient.d.ts.map +0 -1
- package/dist/commonjs/generated/src/projectsClient.js +0 -51
- package/dist/commonjs/generated/src/projectsClient.js.map +0 -1
- package/dist/commonjs/generated/src/responses.d.ts +0 -777
- package/dist/commonjs/generated/src/responses.d.ts.map +0 -1
- package/dist/commonjs/generated/src/responses.js +0 -5
- package/dist/commonjs/generated/src/responses.js.map +0 -1
- package/dist/commonjs/telemetry/index.d.ts +0 -32
- package/dist/commonjs/telemetry/index.d.ts.map +0 -1
- package/dist/commonjs/telemetry/index.js +0 -20
- package/dist/commonjs/telemetry/index.js.map +0 -1
- package/dist/commonjs/telemetry/telemetry.d.ts +0 -30
- package/dist/commonjs/telemetry/telemetry.d.ts.map +0 -1
- package/dist/commonjs/telemetry/telemetry.js +0 -59
- package/dist/commonjs/telemetry/telemetry.js.map +0 -1
- package/dist/commonjs/tracing.d.ts +0 -80
- package/dist/commonjs/tracing.d.ts.map +0 -1
- package/dist/commonjs/tracing.js +0 -197
- package/dist/commonjs/tracing.js.map +0 -1
- package/dist/esm/agents/assistants.d.ts +0 -14
- package/dist/esm/agents/assistants.d.ts.map +0 -1
- package/dist/esm/agents/assistants.js +0 -163
- package/dist/esm/agents/assistants.js.map +0 -1
- package/dist/esm/agents/assistantsTrace.d.ts +0 -17
- package/dist/esm/agents/assistantsTrace.d.ts.map +0 -1
- package/dist/esm/agents/assistantsTrace.js +0 -42
- package/dist/esm/agents/assistantsTrace.js.map +0 -1
- package/dist/esm/agents/customModels.d.ts +0 -263
- package/dist/esm/agents/customModels.d.ts.map +0 -1
- package/dist/esm/agents/customModels.js +0 -4
- package/dist/esm/agents/customModels.js.map +0 -1
- package/dist/esm/agents/files.d.ts +0 -18
- package/dist/esm/agents/files.d.ts.map +0 -1
- package/dist/esm/agents/files.js +0 -130
- package/dist/esm/agents/files.js.map +0 -1
- package/dist/esm/agents/index.d.ts +0 -103
- package/dist/esm/agents/index.d.ts.map +0 -1
- package/dist/esm/agents/index.js +0 -62
- package/dist/esm/agents/index.js.map +0 -1
- package/dist/esm/agents/inputOutputs.d.ts +0 -10
- package/dist/esm/agents/inputOutputs.d.ts.map +0 -1
- package/dist/esm/agents/inputOutputs.js +0 -8
- package/dist/esm/agents/inputOutputs.js.map +0 -1
- package/dist/esm/agents/inputValidations.d.ts +0 -15
- package/dist/esm/agents/inputValidations.d.ts.map +0 -1
- package/dist/esm/agents/inputValidations.js +0 -116
- package/dist/esm/agents/inputValidations.js.map +0 -1
- package/dist/esm/agents/messages.d.ts +0 -11
- package/dist/esm/agents/messages.d.ts.map +0 -1
- package/dist/esm/agents/messages.js +0 -101
- package/dist/esm/agents/messages.js.map +0 -1
- package/dist/esm/agents/messagesTrace.d.ts +0 -9
- package/dist/esm/agents/messagesTrace.d.ts.map +0 -1
- package/dist/esm/agents/messagesTrace.js +0 -29
- package/dist/esm/agents/messagesTrace.js.map +0 -1
- package/dist/esm/agents/openAIError.d.ts +0 -15
- package/dist/esm/agents/openAIError.d.ts.map +0 -1
- package/dist/esm/agents/openAIError.js +0 -30
- package/dist/esm/agents/openAIError.js.map +0 -1
- package/dist/esm/agents/poller.d.ts +0 -9
- package/dist/esm/agents/poller.d.ts.map +0 -1
- package/dist/esm/agents/poller.js +0 -137
- package/dist/esm/agents/poller.js.map +0 -1
- package/dist/esm/agents/runSteps.d.ts +0 -8
- package/dist/esm/agents/runSteps.d.ts.map +0 -1
- package/dist/esm/agents/runSteps.js +0 -55
- package/dist/esm/agents/runSteps.js.map +0 -1
- package/dist/esm/agents/runTrace.d.ts +0 -9
- package/dist/esm/agents/runTrace.d.ts.map +0 -1
- package/dist/esm/agents/runTrace.js +0 -62
- package/dist/esm/agents/runTrace.js.map +0 -1
- package/dist/esm/agents/runs.d.ts +0 -19
- package/dist/esm/agents/runs.d.ts.map +0 -1
- package/dist/esm/agents/runs.js +0 -222
- package/dist/esm/agents/runs.js.map +0 -1
- package/dist/esm/agents/streaming.d.ts +0 -9
- package/dist/esm/agents/streaming.d.ts.map +0 -1
- package/dist/esm/agents/streaming.js +0 -135
- package/dist/esm/agents/streaming.js.map +0 -1
- package/dist/esm/agents/streamingModels.d.ts +0 -103
- package/dist/esm/agents/streamingModels.d.ts.map +0 -1
- package/dist/esm/agents/streamingModels.js +0 -75
- package/dist/esm/agents/streamingModels.js.map +0 -1
- package/dist/esm/agents/threads.d.ts +0 -12
- package/dist/esm/agents/threads.d.ts.map +0 -1
- package/dist/esm/agents/threads.js +0 -85
- package/dist/esm/agents/threads.js.map +0 -1
- package/dist/esm/agents/threadsTrace.d.ts +0 -6
- package/dist/esm/agents/threadsTrace.d.ts.map +0 -1
- package/dist/esm/agents/threadsTrace.js +0 -19
- package/dist/esm/agents/threadsTrace.js.map +0 -1
- package/dist/esm/agents/traceUtility.d.ts +0 -36
- package/dist/esm/agents/traceUtility.d.ts.map +0 -1
- package/dist/esm/agents/traceUtility.js +0 -127
- package/dist/esm/agents/traceUtility.js.map +0 -1
- package/dist/esm/agents/utils.d.ts +0 -209
- package/dist/esm/agents/utils.d.ts.map +0 -1
- package/dist/esm/agents/utils.js +0 -280
- package/dist/esm/agents/utils.js.map +0 -1
- package/dist/esm/agents/vectorStores.d.ts +0 -19
- package/dist/esm/agents/vectorStores.d.ts.map +0 -1
- package/dist/esm/agents/vectorStores.js +0 -134
- package/dist/esm/agents/vectorStores.js.map +0 -1
- package/dist/esm/agents/vectorStoresFileBatches.d.ts +0 -16
- package/dist/esm/agents/vectorStoresFileBatches.d.ts.map +0 -1
- package/dist/esm/agents/vectorStoresFileBatches.js +0 -122
- package/dist/esm/agents/vectorStoresFileBatches.js.map +0 -1
- package/dist/esm/agents/vectorStoresFiles.d.ts +0 -18
- package/dist/esm/agents/vectorStoresFiles.d.ts.map +0 -1
- package/dist/esm/agents/vectorStoresFiles.js +0 -133
- package/dist/esm/agents/vectorStoresFiles.js.map +0 -1
- package/dist/esm/agents/vectorStoresModels.d.ts +0 -27
- package/dist/esm/agents/vectorStoresModels.d.ts.map +0 -1
- package/dist/esm/agents/vectorStoresModels.js +0 -4
- package/dist/esm/agents/vectorStoresModels.js.map +0 -1
- package/dist/esm/aiProjectsClient.d.ts +0 -34
- package/dist/esm/aiProjectsClient.d.ts.map +0 -1
- package/dist/esm/aiProjectsClient.js +0 -47
- package/dist/esm/aiProjectsClient.js.map +0 -1
- package/dist/esm/connections/connections.d.ts +0 -13
- package/dist/esm/connections/connections.d.ts.map +0 -1
- package/dist/esm/connections/connections.js +0 -47
- package/dist/esm/connections/connections.js.map +0 -1
- package/dist/esm/connections/customModels.d.ts +0 -27
- package/dist/esm/connections/customModels.d.ts.map +0 -1
- package/dist/esm/connections/customModels.js +0 -4
- package/dist/esm/connections/customModels.js.map +0 -1
- package/dist/esm/connections/index.d.ts +0 -9
- package/dist/esm/connections/index.d.ts.map +0 -1
- package/dist/esm/connections/index.js +0 -20
- package/dist/esm/connections/index.js.map +0 -1
- package/dist/esm/connections/inputOutput.d.ts +0 -4
- package/dist/esm/connections/inputOutput.d.ts.map +0 -1
- package/dist/esm/connections/inputOutput.js +0 -4
- package/dist/esm/connections/inputOutput.js.map +0 -1
- package/dist/esm/connections/internalModels.d.ts +0 -7
- package/dist/esm/connections/internalModels.d.ts.map +0 -1
- package/dist/esm/connections/internalModels.js +0 -4
- package/dist/esm/connections/internalModels.js.map +0 -1
- package/dist/esm/customization/convertModelsToWrite.d.ts +0 -14
- package/dist/esm/customization/convertModelsToWrite.d.ts.map +0 -1
- package/dist/esm/customization/convertModelsToWrite.js +0 -275
- package/dist/esm/customization/convertModelsToWrite.js.map +0 -1
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts +0 -27
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/esm/customization/convertOutputModelsFromWire.js +0 -933
- package/dist/esm/customization/convertOutputModelsFromWire.js.map +0 -1
- package/dist/esm/customization/convertParametersToWire.d.ts +0 -18
- package/dist/esm/customization/convertParametersToWire.d.ts.map +0 -1
- package/dist/esm/customization/convertParametersToWire.js +0 -31
- package/dist/esm/customization/convertParametersToWire.js.map +0 -1
- package/dist/esm/customization/models.d.ts +0 -800
- package/dist/esm/customization/models.d.ts.map +0 -1
- package/dist/esm/customization/models.js +0 -4
- package/dist/esm/customization/models.js.map +0 -1
- package/dist/esm/customization/outputModels.d.ts +0 -1469
- package/dist/esm/customization/outputModels.d.ts.map +0 -1
- package/dist/esm/customization/outputModels.js +0 -4
- package/dist/esm/customization/outputModels.js.map +0 -1
- package/dist/esm/customization/parameters.d.ts +0 -376
- package/dist/esm/customization/parameters.d.ts.map +0 -1
- package/dist/esm/customization/parameters.js +0 -4
- package/dist/esm/customization/parameters.js.map +0 -1
- package/dist/esm/customization/streamingModels.d.ts +0 -226
- package/dist/esm/customization/streamingModels.d.ts.map +0 -1
- package/dist/esm/customization/streamingModels.js +0 -4
- package/dist/esm/customization/streamingModels.js.map +0 -1
- package/dist/esm/customization/streamingWireModels.d.ts +0 -222
- package/dist/esm/customization/streamingWireModels.d.ts.map +0 -1
- package/dist/esm/customization/streamingWireModels.js +0 -4
- package/dist/esm/customization/streamingWireModels.js.map +0 -1
- package/dist/esm/generated/src/clientDefinitions.d.ts +0 -258
- package/dist/esm/generated/src/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/generated/src/clientDefinitions.js +0 -4
- package/dist/esm/generated/src/clientDefinitions.js.map +0 -1
- package/dist/esm/generated/src/index.d.ts +0 -11
- package/dist/esm/generated/src/index.d.ts.map +0 -1
- package/dist/esm/generated/src/index.js +0 -13
- package/dist/esm/generated/src/index.js.map +0 -1
- package/dist/esm/generated/src/isUnexpected.d.ts +0 -54
- package/dist/esm/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/esm/generated/src/isUnexpected.js +0 -123
- package/dist/esm/generated/src/isUnexpected.js.map +0 -1
- package/dist/esm/generated/src/logger.d.ts +0 -2
- package/dist/esm/generated/src/logger.d.ts.map +0 -1
- package/dist/esm/generated/src/logger.js +0 -5
- package/dist/esm/generated/src/logger.js.map +0 -1
- package/dist/esm/generated/src/models.d.ts +0 -839
- package/dist/esm/generated/src/models.d.ts.map +0 -1
- package/dist/esm/generated/src/models.js +0 -4
- package/dist/esm/generated/src/models.js.map +0 -1
- package/dist/esm/generated/src/outputModels.d.ts +0 -1548
- package/dist/esm/generated/src/outputModels.d.ts.map +0 -1
- package/dist/esm/generated/src/outputModels.js +0 -4
- package/dist/esm/generated/src/outputModels.js.map +0 -1
- package/dist/esm/generated/src/paginateHelper.d.ts +0 -68
- package/dist/esm/generated/src/paginateHelper.d.ts.map +0 -1
- package/dist/esm/generated/src/paginateHelper.js +0 -180
- package/dist/esm/generated/src/paginateHelper.js.map +0 -1
- package/dist/esm/generated/src/parameters.d.ts +0 -433
- package/dist/esm/generated/src/parameters.d.ts.map +0 -1
- package/dist/esm/generated/src/parameters.js +0 -4
- package/dist/esm/generated/src/parameters.js.map +0 -1
- package/dist/esm/generated/src/projectsClient.d.ts +0 -19
- package/dist/esm/generated/src/projectsClient.d.ts.map +0 -1
- package/dist/esm/generated/src/projectsClient.js +0 -48
- package/dist/esm/generated/src/projectsClient.js.map +0 -1
- package/dist/esm/generated/src/responses.d.ts +0 -777
- package/dist/esm/generated/src/responses.d.ts.map +0 -1
- package/dist/esm/generated/src/responses.js +0 -4
- package/dist/esm/generated/src/responses.js.map +0 -1
- package/dist/esm/telemetry/index.d.ts +0 -32
- package/dist/esm/telemetry/index.d.ts.map +0 -1
- package/dist/esm/telemetry/index.js +0 -17
- package/dist/esm/telemetry/index.js.map +0 -1
- package/dist/esm/telemetry/telemetry.d.ts +0 -30
- package/dist/esm/telemetry/telemetry.d.ts.map +0 -1
- package/dist/esm/telemetry/telemetry.js +0 -53
- package/dist/esm/telemetry/telemetry.js.map +0 -1
- package/dist/esm/tracing.d.ts +0 -80
- package/dist/esm/tracing.d.ts.map +0 -1
- package/dist/esm/tracing.js +0 -193
- package/dist/esm/tracing.js.map +0 -1
- package/dist/react-native/agents/assistants.d.ts +0 -14
- package/dist/react-native/agents/assistants.d.ts.map +0 -1
- package/dist/react-native/agents/assistants.js +0 -163
- package/dist/react-native/agents/assistants.js.map +0 -1
- package/dist/react-native/agents/assistantsTrace.d.ts +0 -17
- package/dist/react-native/agents/assistantsTrace.d.ts.map +0 -1
- package/dist/react-native/agents/assistantsTrace.js +0 -42
- package/dist/react-native/agents/assistantsTrace.js.map +0 -1
- package/dist/react-native/agents/customModels.d.ts +0 -263
- package/dist/react-native/agents/customModels.d.ts.map +0 -1
- package/dist/react-native/agents/customModels.js +0 -4
- package/dist/react-native/agents/customModels.js.map +0 -1
- package/dist/react-native/agents/files.d.ts +0 -18
- package/dist/react-native/agents/files.d.ts.map +0 -1
- package/dist/react-native/agents/files.js +0 -130
- package/dist/react-native/agents/files.js.map +0 -1
- package/dist/react-native/agents/index.d.ts +0 -103
- package/dist/react-native/agents/index.d.ts.map +0 -1
- package/dist/react-native/agents/index.js +0 -62
- package/dist/react-native/agents/index.js.map +0 -1
- package/dist/react-native/agents/inputOutputs.d.ts +0 -10
- package/dist/react-native/agents/inputOutputs.d.ts.map +0 -1
- package/dist/react-native/agents/inputOutputs.js +0 -8
- package/dist/react-native/agents/inputOutputs.js.map +0 -1
- package/dist/react-native/agents/inputValidations.d.ts +0 -15
- package/dist/react-native/agents/inputValidations.d.ts.map +0 -1
- package/dist/react-native/agents/inputValidations.js +0 -116
- package/dist/react-native/agents/inputValidations.js.map +0 -1
- package/dist/react-native/agents/messages.d.ts +0 -11
- package/dist/react-native/agents/messages.d.ts.map +0 -1
- package/dist/react-native/agents/messages.js +0 -101
- package/dist/react-native/agents/messages.js.map +0 -1
- package/dist/react-native/agents/messagesTrace.d.ts +0 -9
- package/dist/react-native/agents/messagesTrace.d.ts.map +0 -1
- package/dist/react-native/agents/messagesTrace.js +0 -29
- package/dist/react-native/agents/messagesTrace.js.map +0 -1
- package/dist/react-native/agents/openAIError.d.ts +0 -15
- package/dist/react-native/agents/openAIError.d.ts.map +0 -1
- package/dist/react-native/agents/openAIError.js +0 -30
- package/dist/react-native/agents/openAIError.js.map +0 -1
- package/dist/react-native/agents/poller.d.ts +0 -9
- package/dist/react-native/agents/poller.d.ts.map +0 -1
- package/dist/react-native/agents/poller.js +0 -137
- package/dist/react-native/agents/poller.js.map +0 -1
- package/dist/react-native/agents/runSteps.d.ts +0 -8
- package/dist/react-native/agents/runSteps.d.ts.map +0 -1
- package/dist/react-native/agents/runSteps.js +0 -55
- package/dist/react-native/agents/runSteps.js.map +0 -1
- package/dist/react-native/agents/runTrace.d.ts +0 -9
- package/dist/react-native/agents/runTrace.d.ts.map +0 -1
- package/dist/react-native/agents/runTrace.js +0 -62
- package/dist/react-native/agents/runTrace.js.map +0 -1
- package/dist/react-native/agents/runs.d.ts +0 -19
- package/dist/react-native/agents/runs.d.ts.map +0 -1
- package/dist/react-native/agents/runs.js +0 -222
- package/dist/react-native/agents/runs.js.map +0 -1
- package/dist/react-native/agents/streaming.d.ts +0 -9
- package/dist/react-native/agents/streaming.d.ts.map +0 -1
- package/dist/react-native/agents/streaming.js +0 -135
- package/dist/react-native/agents/streaming.js.map +0 -1
- package/dist/react-native/agents/streamingModels.d.ts +0 -103
- package/dist/react-native/agents/streamingModels.d.ts.map +0 -1
- package/dist/react-native/agents/streamingModels.js +0 -75
- package/dist/react-native/agents/streamingModels.js.map +0 -1
- package/dist/react-native/agents/threads.d.ts +0 -12
- package/dist/react-native/agents/threads.d.ts.map +0 -1
- package/dist/react-native/agents/threads.js +0 -85
- package/dist/react-native/agents/threads.js.map +0 -1
- package/dist/react-native/agents/threadsTrace.d.ts +0 -6
- package/dist/react-native/agents/threadsTrace.d.ts.map +0 -1
- package/dist/react-native/agents/threadsTrace.js +0 -19
- package/dist/react-native/agents/threadsTrace.js.map +0 -1
- package/dist/react-native/agents/traceUtility.d.ts +0 -36
- package/dist/react-native/agents/traceUtility.d.ts.map +0 -1
- package/dist/react-native/agents/traceUtility.js +0 -127
- package/dist/react-native/agents/traceUtility.js.map +0 -1
- package/dist/react-native/agents/utils.d.ts +0 -209
- package/dist/react-native/agents/utils.d.ts.map +0 -1
- package/dist/react-native/agents/utils.js +0 -280
- package/dist/react-native/agents/utils.js.map +0 -1
- package/dist/react-native/agents/vectorStores.d.ts +0 -19
- package/dist/react-native/agents/vectorStores.d.ts.map +0 -1
- package/dist/react-native/agents/vectorStores.js +0 -134
- package/dist/react-native/agents/vectorStores.js.map +0 -1
- package/dist/react-native/agents/vectorStoresFileBatches.d.ts +0 -16
- package/dist/react-native/agents/vectorStoresFileBatches.d.ts.map +0 -1
- package/dist/react-native/agents/vectorStoresFileBatches.js +0 -122
- package/dist/react-native/agents/vectorStoresFileBatches.js.map +0 -1
- package/dist/react-native/agents/vectorStoresFiles.d.ts +0 -18
- package/dist/react-native/agents/vectorStoresFiles.d.ts.map +0 -1
- package/dist/react-native/agents/vectorStoresFiles.js +0 -133
- package/dist/react-native/agents/vectorStoresFiles.js.map +0 -1
- package/dist/react-native/agents/vectorStoresModels.d.ts +0 -27
- package/dist/react-native/agents/vectorStoresModels.d.ts.map +0 -1
- package/dist/react-native/agents/vectorStoresModels.js +0 -4
- package/dist/react-native/agents/vectorStoresModels.js.map +0 -1
- package/dist/react-native/aiProjectsClient.d.ts +0 -34
- package/dist/react-native/aiProjectsClient.d.ts.map +0 -1
- package/dist/react-native/aiProjectsClient.js +0 -47
- package/dist/react-native/aiProjectsClient.js.map +0 -1
- package/dist/react-native/connections/connections.d.ts +0 -13
- package/dist/react-native/connections/connections.d.ts.map +0 -1
- package/dist/react-native/connections/connections.js +0 -47
- package/dist/react-native/connections/connections.js.map +0 -1
- package/dist/react-native/connections/customModels.d.ts +0 -27
- package/dist/react-native/connections/customModels.d.ts.map +0 -1
- package/dist/react-native/connections/customModels.js +0 -4
- package/dist/react-native/connections/customModels.js.map +0 -1
- package/dist/react-native/connections/index.d.ts +0 -9
- package/dist/react-native/connections/index.d.ts.map +0 -1
- package/dist/react-native/connections/index.js +0 -20
- package/dist/react-native/connections/index.js.map +0 -1
- package/dist/react-native/connections/inputOutput.d.ts +0 -4
- package/dist/react-native/connections/inputOutput.d.ts.map +0 -1
- package/dist/react-native/connections/inputOutput.js +0 -4
- package/dist/react-native/connections/inputOutput.js.map +0 -1
- package/dist/react-native/connections/internalModels.d.ts +0 -7
- package/dist/react-native/connections/internalModels.d.ts.map +0 -1
- package/dist/react-native/connections/internalModels.js +0 -4
- package/dist/react-native/connections/internalModels.js.map +0 -1
- package/dist/react-native/customization/convertModelsToWrite.d.ts +0 -14
- package/dist/react-native/customization/convertModelsToWrite.d.ts.map +0 -1
- package/dist/react-native/customization/convertModelsToWrite.js +0 -275
- package/dist/react-native/customization/convertModelsToWrite.js.map +0 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts +0 -27
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.js +0 -933
- package/dist/react-native/customization/convertOutputModelsFromWire.js.map +0 -1
- package/dist/react-native/customization/convertParametersToWire.d.ts +0 -18
- package/dist/react-native/customization/convertParametersToWire.d.ts.map +0 -1
- package/dist/react-native/customization/convertParametersToWire.js +0 -31
- package/dist/react-native/customization/convertParametersToWire.js.map +0 -1
- package/dist/react-native/customization/models.d.ts +0 -800
- package/dist/react-native/customization/models.d.ts.map +0 -1
- package/dist/react-native/customization/models.js +0 -4
- package/dist/react-native/customization/models.js.map +0 -1
- package/dist/react-native/customization/outputModels.d.ts +0 -1469
- package/dist/react-native/customization/outputModels.d.ts.map +0 -1
- package/dist/react-native/customization/outputModels.js +0 -4
- package/dist/react-native/customization/outputModels.js.map +0 -1
- package/dist/react-native/customization/parameters.d.ts +0 -376
- package/dist/react-native/customization/parameters.d.ts.map +0 -1
- package/dist/react-native/customization/parameters.js +0 -4
- package/dist/react-native/customization/parameters.js.map +0 -1
- package/dist/react-native/customization/streamingModels.d.ts +0 -226
- package/dist/react-native/customization/streamingModels.d.ts.map +0 -1
- package/dist/react-native/customization/streamingModels.js +0 -4
- package/dist/react-native/customization/streamingModels.js.map +0 -1
- package/dist/react-native/customization/streamingWireModels.d.ts +0 -222
- package/dist/react-native/customization/streamingWireModels.d.ts.map +0 -1
- package/dist/react-native/customization/streamingWireModels.js +0 -4
- package/dist/react-native/customization/streamingWireModels.js.map +0 -1
- package/dist/react-native/generated/src/clientDefinitions.d.ts +0 -258
- package/dist/react-native/generated/src/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/generated/src/clientDefinitions.js +0 -4
- package/dist/react-native/generated/src/clientDefinitions.js.map +0 -1
- package/dist/react-native/generated/src/index.d.ts +0 -11
- package/dist/react-native/generated/src/index.d.ts.map +0 -1
- package/dist/react-native/generated/src/index.js +0 -13
- package/dist/react-native/generated/src/index.js.map +0 -1
- package/dist/react-native/generated/src/isUnexpected.d.ts +0 -54
- package/dist/react-native/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/generated/src/isUnexpected.js +0 -123
- package/dist/react-native/generated/src/isUnexpected.js.map +0 -1
- package/dist/react-native/generated/src/logger.d.ts +0 -2
- package/dist/react-native/generated/src/logger.d.ts.map +0 -1
- package/dist/react-native/generated/src/logger.js +0 -5
- package/dist/react-native/generated/src/logger.js.map +0 -1
- package/dist/react-native/generated/src/models.d.ts +0 -839
- package/dist/react-native/generated/src/models.d.ts.map +0 -1
- package/dist/react-native/generated/src/models.js +0 -4
- package/dist/react-native/generated/src/models.js.map +0 -1
- package/dist/react-native/generated/src/outputModels.d.ts +0 -1548
- package/dist/react-native/generated/src/outputModels.d.ts.map +0 -1
- package/dist/react-native/generated/src/outputModels.js +0 -4
- package/dist/react-native/generated/src/outputModels.js.map +0 -1
- package/dist/react-native/generated/src/paginateHelper.d.ts +0 -68
- package/dist/react-native/generated/src/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/generated/src/paginateHelper.js +0 -180
- package/dist/react-native/generated/src/paginateHelper.js.map +0 -1
- package/dist/react-native/generated/src/parameters.d.ts +0 -433
- package/dist/react-native/generated/src/parameters.d.ts.map +0 -1
- package/dist/react-native/generated/src/parameters.js +0 -4
- package/dist/react-native/generated/src/parameters.js.map +0 -1
- package/dist/react-native/generated/src/projectsClient.d.ts +0 -19
- package/dist/react-native/generated/src/projectsClient.d.ts.map +0 -1
- package/dist/react-native/generated/src/projectsClient.js +0 -48
- package/dist/react-native/generated/src/projectsClient.js.map +0 -1
- package/dist/react-native/generated/src/responses.d.ts +0 -777
- package/dist/react-native/generated/src/responses.d.ts.map +0 -1
- package/dist/react-native/generated/src/responses.js +0 -4
- package/dist/react-native/generated/src/responses.js.map +0 -1
- package/dist/react-native/telemetry/index.d.ts +0 -32
- package/dist/react-native/telemetry/index.d.ts.map +0 -1
- package/dist/react-native/telemetry/index.js +0 -17
- package/dist/react-native/telemetry/index.js.map +0 -1
- package/dist/react-native/telemetry/telemetry.d.ts +0 -30
- package/dist/react-native/telemetry/telemetry.d.ts.map +0 -1
- package/dist/react-native/telemetry/telemetry.js +0 -53
- package/dist/react-native/telemetry/telemetry.js.map +0 -1
- package/dist/react-native/tracing.d.ts +0 -80
- package/dist/react-native/tracing.d.ts.map +0 -1
- package/dist/react-native/tracing.js +0 -193
- package/dist/react-native/tracing.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/agents/utils.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA+BlC,wCAKC;AAbD;;;;;;;GAOG;AACH,SAAgB,cAAc,CAC5B,MAAkF,EAClF,IAAY;IAEZ,OAAO,MAAM,CAAC,IAAI,KAAK,IAAI,CAAC;AAC9B,CAAC;AAED,2DAA2D;AAC3D,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,iCAAiC;IACjC,sDAAgC,CAAA;IAChC,4BAA4B;IAC5B,0DAAoC,CAAA;IACpC,sBAAs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MIT License.\n\nimport type {\n AzureAISearchToolDefinition,\n AzureFunctionToolDefinition,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FunctionDefinition,\n FunctionToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiToolDefinition,\n RequiredActionOutput,\n RequiredToolCallOutput,\n ToolDefinition,\n ToolDefinitionOutputParent,\n ToolResources,\n VectorStoreConfigurations,\n VectorStoreDataSource,\n AzureFunctionStorageQueue,\n AzureFunctionDefinition,\n} from \"./inputOutputs.js\";\n\n/**\n * Determines if the given output is of the specified type.\n *\n * @typeParam T - The type to check against, which extends one of the possible output parent types.\n * @param output - The action to check, which can be of type `RequiredActionOutput`, `RequiredToolCallOutput`, or `ToolDefinitionOutputParent`.\n * @param type - The type to check the action against.\n * @returns A boolean indicating whether the action is of the specified type.\n */\nexport function isOutputOfType<T extends { type: string }>(\n output: RequiredActionOutput | RequiredToolCallOutput | ToolDefinitionOutputParent,\n type: string,\n): output is T {\n return output.type === type;\n}\n\n/** Types of connection tools used to configure an agent */\nexport enum connectionToolType {\n /** Bing grounding search tool */\n BingGrounding = \"bing_grounding\",\n /** Microsoft Fabric tool */\n MicrosoftFabric = \"fabric_dataagent\",\n /** Sharepoint tool */\n SharepointGrounding = \"sharepoint_grounding\",\n /** Azure Function tool */\n AzureFunction = \"azure_function\",\n}\n\nconst toolMap = {\n bing_grounding: \"bingGrounding\",\n fabric_dataagent: \"fabric_dataagent\",\n sharepoint_grounding: \"sharepointGrounding\",\n azure_function: \"azureFunction\",\n};\n\n/**\n * Utility class for creating various tools.\n */\nexport class ToolUtility {\n /**\n * Creates a connection tool\n *\n * @param toolType - The type of the connection tool.\n * @param connectionIds - A list of the IDs of the connections to use.\n * @returns An object containing the definition for the connection tool\n */\n static createConnectionTool(\n toolType: connectionToolType,\n connectionIds: string[],\n ): { definition: ToolDefinition } {\n return {\n definition: {\n type: toolType,\n [toolMap[toolType]]: {\n connections: connectionIds.map((connectionId) => ({ connectionId: connectionId })),\n },\n },\n };\n }\n\n /**\n * Creates a file search tool\n *\n * @param vectorStoreIds - The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.\n * @param vectorStores - The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.\n * @param definitionDetails - The input definition information for a file search tool as used to configure an agent.\n *\n * @returns An object containing the definition and resources for the file search tool\n */\n static createFileSearchTool(\n vectorStoreIds?: string[],\n vectorStores?: Array<VectorStoreConfigurations>,\n definitionDetails?: FileSearchToolDefinitionDetails,\n ): { definition: FileSearchToolDefinition; resources: ToolResources } {\n return {\n definition: { type: \"file_search\", fileSearch: definitionDetails },\n resources: { fileSearch: { vectorStoreIds: vectorStoreIds, vectorStores: vectorStores } },\n };\n }\n\n /**\n * Creates a code interpreter tool\n *\n * @param fileIds - A list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n * @param dataSources - The data sources to be used. This option is mutually exclusive with fileIds.\n *\n * @returns An object containing the definition and resources for the code interpreter tool.\n */\n static createCodeInterpreterTool(\n fileIds?: string[],\n dataSources?: Array<VectorStoreDataSource>,\n ): { definition: CodeInterpreterToolDefinition; resources: ToolResources } {\n if (fileIds && dataSources) {\n throw new Error(\"Cannot specify both fileIds and dataSources\");\n }\n\n return {\n definition: { type: \"code_interpreter\" },\n resources: { codeInterpreter: { fileIds: fileIds, dataSources: dataSources } },\n };\n }\n\n /**\n * Creates an Azure Function tool\n * @param name - The name of the Azure Function.\n * @param description - The description of the Azure Function.\n * @param parameters - The parameters of the Azure Function.\n * @param inputQueue - The input queue configuration.\n * @param outputQueue - The output queue configuration.\n * @returns An object containing the definition and resources for the Azure Function tool.\n */\n static createAzureFunctionTool(\n name: string,\n description: string,\n parameters: unknown,\n inputQueue: AzureFunctionStorageQueue,\n outputQueue: AzureFunctionStorageQueue,\n definitionDetails: AzureFunctionDefinition,\n ): { definition: AzureFunctionToolDefinition; resources: ToolResources } {\n return {\n definition: { type: \"azure_function\", azureFunction: definitionDetails },\n resources: {\n azureFunction: {\n name: name,\n description: description,\n parameters: parameters,\n inputQueue: inputQueue,\n outputQueue: outputQueue,\n },\n },\n };\n }\n /**\n * Creates an Azure AI search tool\n *\n * @param indexConnectionId - The connection ID of the Azure AI search index.\n * @param indexName - The name of the Azure AI search index.\n *\n * @returns An object containing the definition and resources for the Azure AI search tool.\n */\n static createAzureAISearchTool(\n indexConnectionId: string,\n indexName: string,\n ): { definition: AzureAISearchToolDefinition; resources: ToolResources } {\n return {\n definition: { type: \"azure_ai_search\" },\n resources: {\n azureAISearch: {\n indexes: [{ indexConnectionId: indexConnectionId, indexName: indexName }],\n },\n },\n };\n }\n\n /**\n * Creates a Microsoft Fabric tool\n *\n * @param connectionIds - A list of the IDs of the Fabric connections to use.\n * @returns An object containing the definition for the Microsoft Fabric tool\n */\n static createFabricTool(connectionId: string): { definition: ToolDefinition } {\n return {\n definition: {\n type: \"fabric_dataagent\",\n fabricDataAgent: {\n connections: [{ connectionId: connectionId }],\n },\n },\n };\n }\n\n /**\n * Creates a function tool\n *\n * @param functionDefinition - The function definition to use.\n *\n * @returns An object containing the definition for the function tool.\n */\n static createFunctionTool(functionDefinition: FunctionDefinition): {\n definition: FunctionToolDefinition;\n } {\n return {\n definition: {\n type: \"function\",\n function: functionDefinition,\n },\n };\n }\n\n /**\n * Creates an OpenApi tool\n *\n * @param openApiFunctionDefinition - The OpenApi function definition to use.\n *\n * @returns An object containing the definition for the OpenApi tool.\n */\n static createOpenApiTool(openApiFunctionDefinition: OpenApiFunctionDefinition): {\n definition: OpenApiToolDefinition;\n } {\n return {\n definition: {\n type: \"openapi\",\n openapi: openApiFunctionDefinition,\n },\n };\n }\n}\n\n/**\n * Represents a set of tools with their definitions and resources.\n */\nexport class ToolSet {\n /** A list of tool definitions that have been added to the tool set. */\n toolDefinitions: ToolDefinition[] = [];\n\n /** A collection of resources associated with the tools in the tool set. */\n toolResources: ToolResources = {};\n\n /**\n * Adds a connection tool to the tool set.\n *\n * @param toolType - The type of the connection tool.\n * @param connectionIds - A list of the IDs of the connections to use.\n *\n * @returns An object containing the definition for the connection tool\n */\n addConnectionTool(\n toolType: connectionToolType,\n connectionIds: string[],\n ): { definition: ToolDefinition } {\n const tool = ToolUtility.createConnectionTool(toolType, connectionIds);\n this.toolDefinitions.push(tool.definition);\n return tool;\n }\n\n /**\n * Adds a file search tool to the tool set.\n *\n * @param vectorStoreIds - The ID of the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.\n * @param vectorStores - The list of vector store configuration objects from Azure. This list is limited to one element. The only element of this list contains the list of azure asset IDs used by the search tool.\n * @param definitionDetails - The input definition information for a file search tool as used to configure an agent.\n *\n * @returns An object containing the definition and resources for the file search tool\n */\n addFileSearchTool(\n vectorStoreIds?: string[],\n vectorStores?: Array<VectorStoreConfigurations>,\n definitionDetails?: FileSearchToolDefinitionDetails,\n ): { definition: FileSearchToolDefinition; resources: ToolResources } {\n const tool = ToolUtility.createFileSearchTool(vectorStoreIds, vectorStores, definitionDetails);\n this.toolDefinitions.push(tool.definition);\n this.toolResources = { ...this.toolResources, ...tool.resources };\n return tool;\n }\n\n /**\n * Adds a code interpreter tool to the tool set.\n *\n * @param fileIds - A list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files associated with the tool.\n * @param dataSources - The data sources to be used. This option is mutually exclusive with fileIds.\n *\n * @returns An object containing the definition and resources for the code interpreter tool\n */\n addCodeInterpreterTool(\n fileIds?: string[],\n dataSources?: Array<VectorStoreDataSource>,\n ): { definition: CodeInterpreterToolDefinition; resources: ToolResources } {\n const tool = ToolUtility.createCodeInterpreterTool(fileIds, dataSources);\n this.toolDefinitions.push(tool.definition);\n this.toolResources = { ...this.toolResources, ...tool.resources };\n return tool;\n }\n\n /**\n * Adds an Azure AI search tool to the tool set.\n *\n * @param indexConnectionId - The connection ID of the Azure AI search index.\n * @param indexName - The name of the Azure AI search index.\n *\n * @returns An object containing the definition and resources for the Azure AI search tool\n */\n addAzureAISearchTool(\n indexConnectionId: string,\n indexName: string,\n ): { definition: AzureAISearchToolDefinition; resources: ToolResources } {\n const tool = ToolUtility.createAzureAISearchTool(indexConnectionId, indexName);\n this.toolDefinitions.push(tool.definition);\n this.toolResources = { ...this.toolResources, ...tool.resources };\n return tool;\n }\n\n /**\n * Adds an OpenApi tool to the tool set.\n *\n * @param openApiFunctionDefinition - The OpenApi function definition to use.\n *\n * @returns An object containing the definition for the OpenApi tool\n */\n addOpenApiTool(openApiFunctionDefinition: OpenApiFunctionDefinition): {\n definition: OpenApiToolDefinition;\n } {\n const tool = ToolUtility.createOpenApiTool(openApiFunctionDefinition);\n this.toolDefinitions.push(tool.definition);\n return tool;\n }\n\n /**\n * Adds an Azure Function tool to the tool set.\n *\n * @param name - The name of the Azure Function.\n * @param description - The description of the Azure Function.\n * @param parameters - The parameters of the Azure Function.\n * @param inputQueue - The input queue configuration.\n * @param outputQueue - The output queue configuration.\n *\n * @returns An object containing the definition and resources for the Azure Function tool.\n */\n addAzureFunctionTool(\n name: string,\n description: string,\n parameters: unknown,\n inputQueue: AzureFunctionStorageQueue,\n outputQueue: AzureFunctionStorageQueue,\n definitionDetails: AzureFunctionDefinition,\n ): { definition: AzureFunctionToolDefinition; resources: ToolResources } {\n const tool = ToolUtility.createAzureFunctionTool(\n name,\n description,\n parameters,\n inputQueue,\n outputQueue,\n definitionDetails,\n );\n this.toolDefinitions.push(tool.definition);\n this.toolResources = { ...this.toolResources, ...tool.resources };\n return tool;\n }\n /**\n * Adds a Microsoft Fabric tool to the tool set.\n *\n * @param connectionId - The ID of the Fabric connection to use.\n * @returns An object containing the definition for the Microsoft Fabric tool\n */\n addFabricTool(connectionId: string): { definition: ToolDefinition } {\n const tool = ToolUtility.createFabricTool(connectionId);\n this.toolDefinitions.push(tool.definition);\n return tool;\n }\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@azure-rest/core-client";
|
|
2
|
-
import type { OpenAIPageableListOfVectorStoreOutput, VectorStoreDeletionStatusOutput, VectorStoreOutput } from "../customization/outputModels.js";
|
|
3
|
-
import { type CreateVectorStoreOptionalParams, type DeleteVectorStoreOptionalParams, type GetVectorStoreOptionalParams, type ListVectorStoresOptionalParams, type UpdateVectorStoreOptionalParams } from "./customModels.js";
|
|
4
|
-
import type { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
-
/** Returns a list of vector stores. */
|
|
6
|
-
export declare function listVectorStores(context: Client, options?: ListVectorStoresOptionalParams): Promise<OpenAIPageableListOfVectorStoreOutput>;
|
|
7
|
-
/** Creates a vector store. */
|
|
8
|
-
export declare function createVectorStore(context: Client, options?: CreateVectorStoreOptionalParams): PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;
|
|
9
|
-
/** Returns the vector store object matching the specified ID. */
|
|
10
|
-
export declare function getVectorStore(context: Client, vectorStoreId: string, options?: GetVectorStoreOptionalParams): Promise<VectorStoreOutput>;
|
|
11
|
-
/** The ID of the vector store to modify. */
|
|
12
|
-
export declare function modifyVectorStore(context: Client, vectorStoreId: string, options?: UpdateVectorStoreOptionalParams): Promise<VectorStoreOutput>;
|
|
13
|
-
/** Deletes the vector store object matching the specified ID. */
|
|
14
|
-
export declare function deleteVectorStore(context: Client, vectorStoreId: string, options?: DeleteVectorStoreOptionalParams): Promise<VectorStoreDeletionStatusOutput>;
|
|
15
|
-
/**
|
|
16
|
-
* Creates a vector store and poll.
|
|
17
|
-
*/
|
|
18
|
-
export declare function createVectorStoreAndPoll(context: Client, options?: CreateVectorStoreOptionalParams): PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput>;
|
|
19
|
-
//# sourceMappingURL=vectorStores.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStores.d.ts","sourceRoot":"","sources":["../../../src/agents/vectorStores.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAOtD,OAAO,KAAK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|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT License.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.listVectorStores = listVectorStores;
|
|
6
|
-
exports.createVectorStore = createVectorStore;
|
|
7
|
-
exports.getVectorStore = getVectorStore;
|
|
8
|
-
exports.modifyVectorStore = modifyVectorStore;
|
|
9
|
-
exports.deleteVectorStore = deleteVectorStore;
|
|
10
|
-
exports.createVectorStoreAndPoll = createVectorStoreAndPoll;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const core_client_1 = require("@azure-rest/core-client");
|
|
13
|
-
const poller_js_1 = require("./poller.js");
|
|
14
|
-
const inputValidations_js_1 = require("./inputValidations.js");
|
|
15
|
-
const ConvertFromWire = tslib_1.__importStar(require("../customization/convertOutputModelsFromWire.js"));
|
|
16
|
-
const ConvertToWire = tslib_1.__importStar(require("../customization/convertModelsToWrite.js"));
|
|
17
|
-
const convertParametersToWire_js_1 = require("../customization/convertParametersToWire.js");
|
|
18
|
-
const openAIError_js_1 = require("./openAIError.js");
|
|
19
|
-
const expectedStatuses = ["200"];
|
|
20
|
-
/** Returns a list of vector stores. */
|
|
21
|
-
async function listVectorStores(context, options = {}) {
|
|
22
|
-
const listOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { queryParameters: (0, convertParametersToWire_js_1.convertToListQueryParameters)(options) });
|
|
23
|
-
validateListVectorStoresParameters(listOptions);
|
|
24
|
-
const result = await context.path("/vector_stores").get(listOptions);
|
|
25
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
26
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
27
|
-
}
|
|
28
|
-
return ConvertFromWire.convertOpenAIPageableListOfVectorStoreOutput(result.body);
|
|
29
|
-
}
|
|
30
|
-
/** Creates a vector store. */
|
|
31
|
-
function createVectorStore(context, options = {}) {
|
|
32
|
-
var _a;
|
|
33
|
-
return (0, poller_js_1.createPoller)({
|
|
34
|
-
initOperation: async () => {
|
|
35
|
-
return createVectorStoreInternal(context, options);
|
|
36
|
-
},
|
|
37
|
-
pollOperation: async (currentResult) => {
|
|
38
|
-
return getVectorStore(context, currentResult.id, options);
|
|
39
|
-
},
|
|
40
|
-
getOperationStatus: getLroOperationStatus,
|
|
41
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/** Returns the vector store object matching the specified ID. */
|
|
45
|
-
async function getVectorStore(context, vectorStoreId, options = {}) {
|
|
46
|
-
const getOptions = Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options));
|
|
47
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
48
|
-
const result = await context
|
|
49
|
-
.path("/vector_stores/{vectorStoreId}", vectorStoreId)
|
|
50
|
-
.get(getOptions);
|
|
51
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
52
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
53
|
-
}
|
|
54
|
-
return ConvertFromWire.convertVectorStoreOutput(result.body);
|
|
55
|
-
}
|
|
56
|
-
/** The ID of the vector store to modify. */
|
|
57
|
-
async function modifyVectorStore(context, vectorStoreId, options = {}) {
|
|
58
|
-
const modifyOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: ConvertToWire.convertVectorStoreUpdateOptions(options) });
|
|
59
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
60
|
-
validateModifyVectorStoreParameters(modifyOptions);
|
|
61
|
-
const result = await context
|
|
62
|
-
.path("/vector_stores/{vectorStoreId}", vectorStoreId)
|
|
63
|
-
.post(modifyOptions);
|
|
64
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
65
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
66
|
-
}
|
|
67
|
-
return ConvertFromWire.convertVectorStoreOutput(result.body);
|
|
68
|
-
}
|
|
69
|
-
/** Deletes the vector store object matching the specified ID. */
|
|
70
|
-
async function deleteVectorStore(context, vectorStoreId, options = {}) {
|
|
71
|
-
const deleteOptions = Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options));
|
|
72
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
73
|
-
const result = await context
|
|
74
|
-
.path("/vector_stores/{vectorStoreId}", vectorStoreId)
|
|
75
|
-
.delete(deleteOptions);
|
|
76
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
77
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
78
|
-
}
|
|
79
|
-
return ConvertFromWire.convertVectorStoreDeletionStatusOutput(result.body);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Creates a vector store and poll.
|
|
83
|
-
*/
|
|
84
|
-
function createVectorStoreAndPoll(context, options = {}) {
|
|
85
|
-
var _a;
|
|
86
|
-
return (0, poller_js_1.createPoller)({
|
|
87
|
-
initOperation: async () => {
|
|
88
|
-
return createVectorStoreInternal(context, options);
|
|
89
|
-
},
|
|
90
|
-
pollOperation: async (currentResult) => {
|
|
91
|
-
return getVectorStore(context, currentResult.id, options);
|
|
92
|
-
},
|
|
93
|
-
getOperationStatus: getLroOperationStatus,
|
|
94
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
async function createVectorStoreInternal(context, options = {}) {
|
|
98
|
-
const createOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { body: ConvertToWire.convertVectorStoreOptions(options) });
|
|
99
|
-
validateCreateVectorStoreParameters(createOptions);
|
|
100
|
-
const result = await context.path("/vector_stores").post(createOptions);
|
|
101
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
102
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
103
|
-
}
|
|
104
|
-
return ConvertFromWire.convertVectorStoreOutput(result.body);
|
|
105
|
-
}
|
|
106
|
-
function getLroOperationStatus(result) {
|
|
107
|
-
switch (result.status) {
|
|
108
|
-
case "in_progress":
|
|
109
|
-
return "running";
|
|
110
|
-
case "completed":
|
|
111
|
-
return "succeeded";
|
|
112
|
-
case "expired":
|
|
113
|
-
return "failed";
|
|
114
|
-
default:
|
|
115
|
-
return "failed";
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function validateListVectorStoresParameters(options) {
|
|
119
|
-
var _a, _b;
|
|
120
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _a === void 0 ? void 0 : _a.limit) {
|
|
121
|
-
(0, inputValidations_js_1.validateLimit)(options.queryParameters.limit);
|
|
122
|
-
}
|
|
123
|
-
if ((_b = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _b === void 0 ? void 0 : _b.order) {
|
|
124
|
-
(0, inputValidations_js_1.validateOrder)(options.queryParameters.order);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function validateCreateVectorStoreParameters(options) {
|
|
128
|
-
var _a, _b;
|
|
129
|
-
if (((_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.chunking_strategy) &&
|
|
130
|
-
(!options.body.file_ids || options.body.file_ids.length === 0)) {
|
|
131
|
-
throw new Error("Chunking strategy is only applicable if fileIds is non-empty");
|
|
132
|
-
}
|
|
133
|
-
if ((_b = options === null || options === void 0 ? void 0 : options.body) === null || _b === void 0 ? void 0 : _b.metadata) {
|
|
134
|
-
(0, inputValidations_js_1.validateMetadata)(options.body.metadata);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
function validateModifyVectorStoreParameters(options) {
|
|
138
|
-
var _a;
|
|
139
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.metadata) {
|
|
140
|
-
(0, inputValidations_js_1.validateMetadata)(options.body.metadata);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=vectorStores.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStores.js","sourceRoot":"","sources":["../../../src/agents/vectorStores.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAsClC,4CAgBC;AAGD,8CAcC;AAGD,wCAkBC;AAGD,8CAoBC;AAGD,8CAkBC;AAKD,4DAcC;;AAxJD,yDAA8E;AAW9E,2CAA2C;AAQ3C,+DAK+B;AAE/B,yGAAmF;AACnF,gGAA0E;AAC1E,4FAA2F;AAC3F,qDAAqD;AAGrD,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;AAEjC,uCAAuC;AAChC,KAAK,UAAU,gBAAgB,CACpC,OAAe,EACf,UAA0C,EAAE;IAE5C,MAAM,WAAW,mCACZ,IAAA,iDAAmC,EAAC,OAAO,CAAC,KAC/C,eAAe,EAAE,IAAA,yDAA4B,EAAC,OAAO,CAAC,GACvD,CAAC;IAEF,kCAAkC,CAAC,WAAW,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAErE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,kCAAiB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,eAAe,CAAC,4CAA4C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACnF,CAAC;AAED,8BAA8B;AAC9B,SAAgB,iBAAiB,CAC/B,OAAe,EACf,UAA2C,EAAE;;IAE7C,OAAO,IAAA,wBAAY,EAAoB;QACrC,aAAa,EAAE,KAAK,IAAI,EAAE;YACxB,OAAO,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACrD,CAAC;QACD,aAAa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CAAE,IAAI,0CAAE,iBAAiB;QAChC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;IACD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,QAAQ,EAAE,CAAC;QAC5B,IAAA,sCAAgB,EAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAED,SAAS,mCAAmC,CAAC,OAAqC;;IAChF,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,QAAQ,EAAE,CAAC;QAC5B,IAAA,sCAAgB,EAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client } from \"@azure-rest/core-client\";\nimport { operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type {\n ListVectorStoresParameters,\n CreateVectorStoreParameters,\n ModifyVectorStoreParameters,\n} from \"../generated/src/parameters.js\";\nimport type {\n OpenAIPageableListOfVectorStoreOutput,\n VectorStoreDeletionStatusOutput,\n VectorStoreOutput,\n} from \"../customization/outputModels.js\";\nimport { createPoller } from \"./poller.js\";\nimport {\n type CreateVectorStoreOptionalParams,\n type DeleteVectorStoreOptionalParams,\n type GetVectorStoreOptionalParams,\n type ListVectorStoresOptionalParams,\n type UpdateVectorStoreOptionalParams,\n} from \"./customModels.js\";\nimport {\n validateLimit,\n validateMetadata,\n validateOrder,\n validateVectorStoreId,\n} from \"./inputValidations.js\";\nimport type * as GeneratedParameters from \"../generated/src/parameters.js\";\nimport * as ConvertFromWire from \"../customization/convertOutputModelsFromWire.js\";\nimport * as ConvertToWire from \"../customization/convertModelsToWrite.js\";\nimport { convertToListQueryParameters } from \"../customization/convertParametersToWire.js\";\nimport { createOpenAIError } from \"./openAIError.js\";\nimport type { OperationState, OperationStatus, PollerLike } from \"@azure/core-lro\";\n\nconst expectedStatuses = [\"200\"];\n\n/** Returns a list of vector stores. */\nexport async function listVectorStores(\n context: Client,\n options: ListVectorStoresOptionalParams = {},\n): Promise<OpenAIPageableListOfVectorStoreOutput> {\n const listOptions: GeneratedParameters.ListVectorStoresParameters = {\n ...operationOptionsToRequestParameters(options),\n queryParameters: convertToListQueryParameters(options),\n };\n\n validateListVectorStoresParameters(listOptions);\n const result = await context.path(\"/vector_stores\").get(listOptions);\n\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIPageableListOfVectorStoreOutput(result.body);\n}\n\n/** Creates a vector store. */\nexport function createVectorStore(\n context: Client,\n options: CreateVectorStoreOptionalParams = {},\n): PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput> {\n return createPoller<VectorStoreOutput>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStoreOutput) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\n/** Returns the vector store object matching the specified ID. */\nexport async function getVectorStore(\n context: Client,\n vectorStoreId: string,\n options: GetVectorStoreOptionalParams = {},\n): Promise<VectorStoreOutput> {\n const getOptions: GeneratedParameters.GetVectorStoreParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n\n validateVectorStoreId(vectorStoreId);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}\", vectorStoreId)\n .get(getOptions);\n\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreOutput(result.body);\n}\n\n/** The ID of the vector store to modify. */\nexport async function modifyVectorStore(\n context: Client,\n vectorStoreId: string,\n options: UpdateVectorStoreOptionalParams = {},\n): Promise<VectorStoreOutput> {\n const modifyOptions: GeneratedParameters.ModifyVectorStoreParameters = {\n ...operationOptionsToRequestParameters(options),\n body: ConvertToWire.convertVectorStoreUpdateOptions(options),\n };\n\n validateVectorStoreId(vectorStoreId);\n validateModifyVectorStoreParameters(modifyOptions);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}\", vectorStoreId)\n .post(modifyOptions);\n\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreOutput(result.body);\n}\n\n/** Deletes the vector store object matching the specified ID. */\nexport async function deleteVectorStore(\n context: Client,\n vectorStoreId: string,\n options: DeleteVectorStoreOptionalParams = {},\n): Promise<VectorStoreDeletionStatusOutput> {\n const deleteOptions: GeneratedParameters.DeleteVectorStoreParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n\n validateVectorStoreId(vectorStoreId);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}\", vectorStoreId)\n .delete(deleteOptions);\n\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreDeletionStatusOutput(result.body);\n}\n\n/**\n * Creates a vector store and poll.\n */\nexport function createVectorStoreAndPoll(\n context: Client,\n options: CreateVectorStoreOptionalParams = {},\n): PollerLike<OperationState<VectorStoreOutput>, VectorStoreOutput> {\n return createPoller<VectorStoreOutput>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStoreOutput) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\nasync function createVectorStoreInternal(\n context: Client,\n options: CreateVectorStoreOptionalParams = {},\n): Promise<VectorStoreOutput> {\n const createOptions: GeneratedParameters.CreateVectorStoreParameters = {\n ...operationOptionsToRequestParameters(options),\n body: ConvertToWire.convertVectorStoreOptions(options),\n };\n\n validateCreateVectorStoreParameters(createOptions);\n const result = await context.path(\"/vector_stores\").post(createOptions);\n\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreOutput(result.body);\n}\n\nfunction getLroOperationStatus(result: VectorStoreOutput): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"expired\":\n return \"failed\";\n default:\n return \"failed\";\n }\n}\n\nfunction validateListVectorStoresParameters(options?: ListVectorStoresParameters): void {\n if (options?.queryParameters?.limit) {\n validateLimit(options.queryParameters.limit);\n }\n if (options?.queryParameters?.order) {\n validateOrder(options.queryParameters.order);\n }\n}\n\nfunction validateCreateVectorStoreParameters(options?: CreateVectorStoreParameters): void {\n if (\n options?.body?.chunking_strategy &&\n (!options.body.file_ids || options.body.file_ids.length === 0)\n ) {\n throw new Error(\"Chunking strategy is only applicable if fileIds is non-empty\");\n }\n if (options?.body?.metadata) {\n validateMetadata(options.body.metadata);\n }\n}\n\nfunction validateModifyVectorStoreParameters(options?: ModifyVectorStoreParameters): void {\n if (options?.body?.metadata) {\n validateMetadata(options.body.metadata);\n }\n}\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@azure-rest/core-client";
|
|
2
|
-
import type { OpenAIPageableListOfVectorStoreFileOutput, VectorStoreFileBatchOutput } from "../customization/outputModels.js";
|
|
3
|
-
import type { CancelVectorStoreFileBatchOptionalParams, CreateVectorStoreFileBatchOptionalParams, GetVectorStoreFileBatchOptionalParams, ListVectorStoreFileBatchFilesOptionalParams } from "./customModels.js";
|
|
4
|
-
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
-
/** Create a vector store file batch. */
|
|
6
|
-
export declare function createVectorStoreFileBatch(context: Client, vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams): PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;
|
|
7
|
-
/** Retrieve a vector store file batch. */
|
|
8
|
-
export declare function getVectorStoreFileBatch(context: Client, vectorStoreId: string, batchId: string, options?: GetVectorStoreFileBatchOptionalParams): Promise<VectorStoreFileBatchOutput>;
|
|
9
|
-
/** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */
|
|
10
|
-
export declare function cancelVectorStoreFileBatch(context: Client, vectorStoreId: string, batchId: string, options?: CancelVectorStoreFileBatchOptionalParams): Promise<VectorStoreFileBatchOutput>;
|
|
11
|
-
/** Returns a list of vector store files in a batch. */
|
|
12
|
-
export declare function listVectorStoreFileBatchFiles(context: Client, vectorStoreId: string, batchId: string, options?: ListVectorStoreFileBatchFilesOptionalParams): Promise<OpenAIPageableListOfVectorStoreFileOutput>;
|
|
13
|
-
/** Create a vector store file batch and poll. */
|
|
14
|
-
export declare function createVectorStoreFileBatchAndPoll(context: Client, vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams): PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput>;
|
|
15
|
-
export declare function createVectorStoreFileBatchInternal(context: Client, vectorStoreId: string, options?: CreateVectorStoreFileBatchOptionalParams): Promise<VectorStoreFileBatchOutput>;
|
|
16
|
-
//# sourceMappingURL=vectorStoresFileBatches.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStoresFileBatches.d.ts","sourceRoot":"","sources":["../../../src/agents/vectorStoresFileBatches.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,EACV,yCAAyC,EACzC,0BAA0B,EAC3B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EACV,wCAAwC,EACxC,wCAAwC,EACxC,qCAAqC,EACrC,2CAA2C,EAC5C,MAAM,mBAAmB,CAAC;AAc3B,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AAInF,wCAAwC;AACxC,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,wCAA6C,GACrD,UAAU,CAAC,cAAc,CAAC,0BAA0B,CAAC,EAAE,0BAA0B,CAAC,CAWpF;AAED,0CAA0C;AAC1C,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,qCAA0C,GAClD,OAAO,CAAC,0BAA0B,CAAC,CASrC;AAED,2HAA2H;AAC3H,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,wCAA6C,GACrD,OAAO,CAAC,0BAA0B,CAAC,CASrC;AAED,uDAAuD;AACvD,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,2CAAgD,GACxD,OAAO,CAAC,yCAAyC,CAAC,CAkBpD;AAED,iDAAiD;AACjD,wBAAgB,iCAAiC,CAC/C,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,wCAA6C,GACrD,UAAU,CAAC,cAAc,CAAC,0BAA0B,CAAC,EAAE,0BAA0B,CAAC,CAWpF;AAED,wBAAsB,kCAAkC,CACtD,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,wCAA6C,GACrD,OAAO,CAAC,0BAA0B,CAAC,CAerC"}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT License.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.createVectorStoreFileBatch = createVectorStoreFileBatch;
|
|
6
|
-
exports.getVectorStoreFileBatch = getVectorStoreFileBatch;
|
|
7
|
-
exports.cancelVectorStoreFileBatch = cancelVectorStoreFileBatch;
|
|
8
|
-
exports.listVectorStoreFileBatchFiles = listVectorStoreFileBatchFiles;
|
|
9
|
-
exports.createVectorStoreFileBatchAndPoll = createVectorStoreFileBatchAndPoll;
|
|
10
|
-
exports.createVectorStoreFileBatchInternal = createVectorStoreFileBatchInternal;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const core_client_1 = require("@azure-rest/core-client");
|
|
13
|
-
const poller_js_1 = require("./poller.js");
|
|
14
|
-
const inputValidations_js_1 = require("./inputValidations.js");
|
|
15
|
-
const ConvertFromWire = tslib_1.__importStar(require("../customization/convertOutputModelsFromWire.js"));
|
|
16
|
-
const ConvertParamsToWire = tslib_1.__importStar(require("../customization/convertParametersToWire.js"));
|
|
17
|
-
const openAIError_js_1 = require("./openAIError.js");
|
|
18
|
-
const expectedStatuses = ["200"];
|
|
19
|
-
/** Create a vector store file batch. */
|
|
20
|
-
function createVectorStoreFileBatch(context, vectorStoreId, options = {}) {
|
|
21
|
-
var _a;
|
|
22
|
-
return (0, poller_js_1.createPoller)({
|
|
23
|
-
initOperation: async () => {
|
|
24
|
-
return createVectorStoreFileBatchInternal(context, vectorStoreId, options);
|
|
25
|
-
},
|
|
26
|
-
pollOperation: async (currentResult) => {
|
|
27
|
-
return getVectorStoreFileBatch(context, vectorStoreId, currentResult.id, options);
|
|
28
|
-
},
|
|
29
|
-
getOperationStatus: getLroOperationStatus,
|
|
30
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
/** Retrieve a vector store file batch. */
|
|
34
|
-
async function getVectorStoreFileBatch(context, vectorStoreId, batchId, options = {}) {
|
|
35
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
36
|
-
const result = await context
|
|
37
|
-
.path("/vector_stores/{vectorStoreId}/file_batches/{batchId}", vectorStoreId, batchId)
|
|
38
|
-
.get(options);
|
|
39
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
40
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
41
|
-
}
|
|
42
|
-
return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);
|
|
43
|
-
}
|
|
44
|
-
/** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */
|
|
45
|
-
async function cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options = {}) {
|
|
46
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
47
|
-
const result = await context
|
|
48
|
-
.path("/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel", vectorStoreId, batchId)
|
|
49
|
-
.post(options);
|
|
50
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
51
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
52
|
-
}
|
|
53
|
-
return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);
|
|
54
|
-
}
|
|
55
|
-
/** Returns a list of vector store files in a batch. */
|
|
56
|
-
async function listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options = {}) {
|
|
57
|
-
const listOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { queryParameters: ConvertParamsToWire.convertListVectorStoreFileBatchFilesQueryParamProperties(options) });
|
|
58
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
59
|
-
validateBatchId(batchId);
|
|
60
|
-
validateListVectorStoreFileBatchFilesParameters(listOptions);
|
|
61
|
-
const result = await context
|
|
62
|
-
.path("/vector_stores/{vectorStoreId}/file_batches/{batchId}/files", vectorStoreId, batchId)
|
|
63
|
-
.get(listOptions);
|
|
64
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
65
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
66
|
-
}
|
|
67
|
-
return ConvertFromWire.convertOpenAIPageableListOfVectorStoreFileOutput(result.body);
|
|
68
|
-
}
|
|
69
|
-
/** Create a vector store file batch and poll. */
|
|
70
|
-
function createVectorStoreFileBatchAndPoll(context, vectorStoreId, options = {}) {
|
|
71
|
-
var _a;
|
|
72
|
-
return (0, poller_js_1.createPoller)({
|
|
73
|
-
initOperation: async () => {
|
|
74
|
-
return createVectorStoreFileBatchInternal(context, vectorStoreId, options);
|
|
75
|
-
},
|
|
76
|
-
pollOperation: async (currentResult) => {
|
|
77
|
-
return getVectorStoreFileBatch(context, vectorStoreId, currentResult.id, options);
|
|
78
|
-
},
|
|
79
|
-
getOperationStatus: getLroOperationStatus,
|
|
80
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
async function createVectorStoreFileBatchInternal(context, vectorStoreId, options = {}) {
|
|
84
|
-
const createOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), ConvertParamsToWire.convertCreateVectorStoreFileBatchParam({ body: options }));
|
|
85
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
86
|
-
validateCreateVectorStoreFileBatchParameters(createOptions);
|
|
87
|
-
const result = await context
|
|
88
|
-
.path("/vector_stores/{vectorStoreId}/file_batches", vectorStoreId)
|
|
89
|
-
.post(createOptions);
|
|
90
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
91
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
92
|
-
}
|
|
93
|
-
return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);
|
|
94
|
-
}
|
|
95
|
-
function getLroOperationStatus(result) {
|
|
96
|
-
switch (result.status) {
|
|
97
|
-
case "in_progress":
|
|
98
|
-
return "running";
|
|
99
|
-
case "completed":
|
|
100
|
-
return "succeeded";
|
|
101
|
-
case "cancelled":
|
|
102
|
-
return "canceled";
|
|
103
|
-
default:
|
|
104
|
-
return "failed";
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
function validateBatchId(batchId) {
|
|
108
|
-
if (!batchId) {
|
|
109
|
-
throw new Error("Batch ID is required");
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function validateCreateVectorStoreFileBatchParameters(options) {
|
|
113
|
-
var _a;
|
|
114
|
-
if (((_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.chunking_strategy) &&
|
|
115
|
-
(!options.body.file_ids || options.body.file_ids.length === 0)) {
|
|
116
|
-
throw new Error("Chunking strategy is only applicable if fileIds are included");
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function validateListVectorStoreFileBatchFilesParameters(options) {
|
|
120
|
-
var _a, _b, _c;
|
|
121
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _a === void 0 ? void 0 : _a.filter) {
|
|
122
|
-
(0, inputValidations_js_1.validateFileStatusFilter)(options.queryParameters.filter);
|
|
123
|
-
}
|
|
124
|
-
if ((_b = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _b === void 0 ? void 0 : _b.limit) {
|
|
125
|
-
(0, inputValidations_js_1.validateLimit)(options.queryParameters.limit);
|
|
126
|
-
}
|
|
127
|
-
if ((_c = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _c === void 0 ? void 0 : _c.order) {
|
|
128
|
-
(0, inputValidations_js_1.validateOrder)(options.queryParameters.order);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
//# sourceMappingURL=vectorStoresFileBatches.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStoresFileBatches.js","sourceRoot":"","sources":["../../../src/agents/vectorStoresFileBatches.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAiClC,gEAeC;AAGD,0DAcC;AAGD,gEAcC;AAGD,sEAuBC;AAGD,8EAeC;AAED,gFAmBC;;AAhJD,yDAA8E;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,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,OAAe;IACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC;AAED,SAAS,4CAA4C,CACnD,OAA8C;;IAE9C,IACE,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,iBAAiB;QAChC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,EAC9D,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAC;IAClF,CAAC;AACH,CAAC;AAED,SAAS,+CAA+C,CACtD,OAAiD;;IAEjD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,MAAM,EAAE,CAAC;QACrC,IAAA,8CAAwB,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,KAAK,EAAE,CAAC;QACpC,IAAA,mCAAa,EAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,KAAK,EAAE,CAAC;QACpC,IAAA,mCAAa,EAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client } from \"@azure-rest/core-client\";\nimport { operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type {\n OpenAIPageableListOfVectorStoreFileOutput,\n VectorStoreFileBatchOutput,\n} from \"../customization/outputModels.js\";\nimport { createPoller } from \"./poller.js\";\nimport type {\n CancelVectorStoreFileBatchOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n ListVectorStoreFileBatchFilesOptionalParams,\n} from \"./customModels.js\";\nimport {\n validateFileStatusFilter,\n validateLimit,\n validateOrder,\n validateVectorStoreId,\n} from \"./inputValidations.js\";\nimport type {\n CreateVectorStoreFileBatchParameters,\n ListVectorStoreFileBatchFilesParameters,\n} from \"../generated/src/parameters.js\";\nimport * as ConvertFromWire from \"../customization/convertOutputModelsFromWire.js\";\nimport * as ConvertParamsToWire from \"../customization/convertParametersToWire.js\";\nimport { createOpenAIError } from \"./openAIError.js\";\nimport type { PollerLike, OperationState, OperationStatus } from \"@azure/core-lro\";\n\nconst expectedStatuses = [\"200\"];\n\n/** Create a vector store file batch. */\nexport function createVectorStoreFileBatch(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileBatchOptionalParams = {},\n): PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput> {\n return createPoller<VectorStoreFileBatchOutput>({\n initOperation: async () => {\n return createVectorStoreFileBatchInternal(context, vectorStoreId, options);\n },\n pollOperation: async (currentResult: VectorStoreFileBatchOutput) => {\n return getVectorStoreFileBatch(context, vectorStoreId, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\n/** Retrieve a vector store file batch. */\nexport async function getVectorStoreFileBatch(\n context: Client,\n vectorStoreId: string,\n batchId: string,\n options: GetVectorStoreFileBatchOptionalParams = {},\n): Promise<VectorStoreFileBatchOutput> {\n validateVectorStoreId(vectorStoreId);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/file_batches/{batchId}\", vectorStoreId, batchId)\n .get(options);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);\n}\n\n/** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\nexport async function cancelVectorStoreFileBatch(\n context: Client,\n vectorStoreId: string,\n batchId: string,\n options: CancelVectorStoreFileBatchOptionalParams = {},\n): Promise<VectorStoreFileBatchOutput> {\n validateVectorStoreId(vectorStoreId);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel\", vectorStoreId, batchId)\n .post(options);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);\n}\n\n/** Returns a list of vector store files in a batch. */\nexport async function listVectorStoreFileBatchFiles(\n context: Client,\n vectorStoreId: string,\n batchId: string,\n options: ListVectorStoreFileBatchFilesOptionalParams = {},\n): Promise<OpenAIPageableListOfVectorStoreFileOutput> {\n const listOptions: ListVectorStoreFileBatchFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n queryParameters: ConvertParamsToWire.convertListVectorStoreFileBatchFilesQueryParamProperties(\n options,\n ) as Record<string, string>,\n };\n\n validateVectorStoreId(vectorStoreId);\n validateBatchId(batchId);\n validateListVectorStoreFileBatchFilesParameters(listOptions);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/file_batches/{batchId}/files\", vectorStoreId, batchId)\n .get(listOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIPageableListOfVectorStoreFileOutput(result.body);\n}\n\n/** Create a vector store file batch and poll. */\nexport function createVectorStoreFileBatchAndPoll(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileBatchOptionalParams = {},\n): PollerLike<OperationState<VectorStoreFileBatchOutput>, VectorStoreFileBatchOutput> {\n return createPoller<VectorStoreFileBatchOutput>({\n initOperation: async () => {\n return createVectorStoreFileBatchInternal(context, vectorStoreId, options);\n },\n pollOperation: async (currentResult: VectorStoreFileBatchOutput) => {\n return getVectorStoreFileBatch(context, vectorStoreId, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\nexport async function createVectorStoreFileBatchInternal(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileBatchOptionalParams = {},\n): Promise<VectorStoreFileBatchOutput> {\n const createOptions: CreateVectorStoreFileBatchParameters = {\n ...operationOptionsToRequestParameters(options),\n ...ConvertParamsToWire.convertCreateVectorStoreFileBatchParam({ body: options }),\n };\n\n validateVectorStoreId(vectorStoreId);\n validateCreateVectorStoreFileBatchParameters(createOptions);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/file_batches\", vectorStoreId)\n .post(createOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileBatchOutput(result.body);\n}\n\nfunction getLroOperationStatus(result: VectorStoreFileBatchOutput): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"cancelled\":\n return \"canceled\";\n default:\n return \"failed\";\n }\n}\n\nfunction validateBatchId(batchId: string): void {\n if (!batchId) {\n throw new Error(\"Batch ID is required\");\n }\n}\n\nfunction validateCreateVectorStoreFileBatchParameters(\n options?: CreateVectorStoreFileBatchParameters,\n): void {\n if (\n options?.body?.chunking_strategy &&\n (!options.body.file_ids || options.body.file_ids.length === 0)\n ) {\n throw new Error(\"Chunking strategy is only applicable if fileIds are included\");\n }\n}\n\nfunction validateListVectorStoreFileBatchFilesParameters(\n options?: ListVectorStoreFileBatchFilesParameters,\n): void {\n if (options?.queryParameters?.filter) {\n validateFileStatusFilter(options.queryParameters.filter);\n }\n if (options?.queryParameters?.limit) {\n validateLimit(options.queryParameters.limit);\n }\n if (options?.queryParameters?.order) {\n validateOrder(options.queryParameters.order);\n }\n}\n"]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Client } from "@azure-rest/core-client";
|
|
2
|
-
import type { OpenAIPageableListOfVectorStoreFileOutput, VectorStoreFileDeletionStatusOutput, VectorStoreFileOutput } from "../customization/outputModels.js";
|
|
3
|
-
import type { CreateVectorStoreFileOptionalParams, DeleteVectorStoreFileOptionalParams, GetVectorStoreFileOptionalParams, ListVectorStoreFilesOptionalParams } from "./customModels.js";
|
|
4
|
-
import type { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
-
/** Returns a list of vector store files. */
|
|
6
|
-
export declare function listVectorStoreFiles(context: Client, vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams): Promise<OpenAIPageableListOfVectorStoreFileOutput>;
|
|
7
|
-
/** Create a vector store file by attaching a file to a vector store. */
|
|
8
|
-
export declare function createVectorStoreFile(context: Client, vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams): PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;
|
|
9
|
-
/** Retrieves a vector store file. */
|
|
10
|
-
export declare function getVectorStoreFile(context: Client, vectorStoreId: string, fileId: string, options?: GetVectorStoreFileOptionalParams): Promise<VectorStoreFileOutput>;
|
|
11
|
-
/**
|
|
12
|
-
* Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.
|
|
13
|
-
* To delete the file, use the delete file endpoint.
|
|
14
|
-
*/
|
|
15
|
-
export declare function deleteVectorStoreFile(context: Client, vectorStoreId: string, fileId: string, options?: DeleteVectorStoreFileOptionalParams): Promise<VectorStoreFileDeletionStatusOutput>;
|
|
16
|
-
/** Create a vector store file by attaching a file to a vector store and poll. */
|
|
17
|
-
export declare function createVectorStoreFileAndPoll(context: Client, vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams): PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput>;
|
|
18
|
-
//# sourceMappingURL=vectorStoresFiles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStoresFiles.d.ts","sourceRoot":"","sources":["../../../src/agents/vectorStoresFiles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MA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
|
-
// Licensed under the MIT License.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.listVectorStoreFiles = listVectorStoreFiles;
|
|
6
|
-
exports.createVectorStoreFile = createVectorStoreFile;
|
|
7
|
-
exports.getVectorStoreFile = getVectorStoreFile;
|
|
8
|
-
exports.deleteVectorStoreFile = deleteVectorStoreFile;
|
|
9
|
-
exports.createVectorStoreFileAndPoll = createVectorStoreFileAndPoll;
|
|
10
|
-
const tslib_1 = require("tslib");
|
|
11
|
-
const core_client_1 = require("@azure-rest/core-client");
|
|
12
|
-
const poller_js_1 = require("./poller.js");
|
|
13
|
-
const inputValidations_js_1 = require("./inputValidations.js");
|
|
14
|
-
const convertParametersToWire_js_1 = require("../customization/convertParametersToWire.js");
|
|
15
|
-
const ConvertFromWire = tslib_1.__importStar(require("../customization/convertOutputModelsFromWire.js"));
|
|
16
|
-
const ConvertParamsToWire = tslib_1.__importStar(require("../customization/convertParametersToWire.js"));
|
|
17
|
-
const openAIError_js_1 = require("./openAIError.js");
|
|
18
|
-
const expectedStatuses = ["200"];
|
|
19
|
-
/** Returns a list of vector store files. */
|
|
20
|
-
async function listVectorStoreFiles(context, vectorStoreId, options = {}) {
|
|
21
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
22
|
-
const listOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), { queryParameters: (0, convertParametersToWire_js_1.convertToListQueryParameters)(options) });
|
|
23
|
-
validateListVectorStoreFilesParameters(listOptions);
|
|
24
|
-
const result = await context
|
|
25
|
-
.path("/vector_stores/{vectorStoreId}/files", vectorStoreId)
|
|
26
|
-
.get(listOptions);
|
|
27
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
28
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
29
|
-
}
|
|
30
|
-
return ConvertFromWire.convertOpenAIPageableListOfVectorStoreFileOutput(result.body);
|
|
31
|
-
}
|
|
32
|
-
/** Create a vector store file by attaching a file to a vector store. */
|
|
33
|
-
function createVectorStoreFile(context, vectorStoreId, options = {}) {
|
|
34
|
-
var _a;
|
|
35
|
-
return (0, poller_js_1.createPoller)({
|
|
36
|
-
initOperation: async () => {
|
|
37
|
-
return createVectorStoreFileInternal(context, vectorStoreId, options);
|
|
38
|
-
},
|
|
39
|
-
pollOperation: async (currentResult) => {
|
|
40
|
-
return getVectorStoreFile(context, vectorStoreId, currentResult.id, options);
|
|
41
|
-
},
|
|
42
|
-
getOperationStatus: getLroOperationStatus,
|
|
43
|
-
getOperationError: (result) => {
|
|
44
|
-
return result.status === "failed" && result.lastError
|
|
45
|
-
? new Error(`Operation failed with code ${result.lastError.code}: ${result.lastError.message}`)
|
|
46
|
-
: undefined;
|
|
47
|
-
},
|
|
48
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/** Retrieves a vector store file. */
|
|
52
|
-
async function getVectorStoreFile(context, vectorStoreId, fileId, options = {}) {
|
|
53
|
-
const getOptions = Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options));
|
|
54
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
55
|
-
(0, inputValidations_js_1.validateFileId)(fileId);
|
|
56
|
-
const result = await context
|
|
57
|
-
.path("/vector_stores/{vectorStoreId}/files/{fileId}", vectorStoreId, fileId)
|
|
58
|
-
.get(getOptions);
|
|
59
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
60
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
61
|
-
}
|
|
62
|
-
return ConvertFromWire.convertVectorStoreFileOutput(result.body);
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.
|
|
66
|
-
* To delete the file, use the delete file endpoint.
|
|
67
|
-
*/
|
|
68
|
-
async function deleteVectorStoreFile(context, vectorStoreId, fileId, options = {}) {
|
|
69
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
70
|
-
(0, inputValidations_js_1.validateFileId)(fileId);
|
|
71
|
-
const deleteOptions = Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options));
|
|
72
|
-
const result = await context
|
|
73
|
-
.path("/vector_stores/{vectorStoreId}/files/{fileId}", vectorStoreId, fileId)
|
|
74
|
-
.delete(deleteOptions);
|
|
75
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
76
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
77
|
-
}
|
|
78
|
-
return ConvertFromWire.convertVectorStoreFileDeletionStatusOutput(result.body);
|
|
79
|
-
}
|
|
80
|
-
/** Create a vector store file by attaching a file to a vector store and poll. */
|
|
81
|
-
function createVectorStoreFileAndPoll(context, vectorStoreId, options = {}) {
|
|
82
|
-
var _a;
|
|
83
|
-
return (0, poller_js_1.createPoller)({
|
|
84
|
-
initOperation: async () => {
|
|
85
|
-
return createVectorStoreFileInternal(context, vectorStoreId, options);
|
|
86
|
-
},
|
|
87
|
-
pollOperation: async (currentResult) => {
|
|
88
|
-
return getVectorStoreFile(context, vectorStoreId, currentResult.id, options);
|
|
89
|
-
},
|
|
90
|
-
getOperationStatus: getLroOperationStatus,
|
|
91
|
-
getOperationError: (result) => {
|
|
92
|
-
return result.status === "failed" && result.lastError
|
|
93
|
-
? new Error(`Operation failed with code ${result.lastError.code}: ${result.lastError.message}`)
|
|
94
|
-
: undefined;
|
|
95
|
-
},
|
|
96
|
-
intervalInMs: (_a = options.pollingOptions) === null || _a === void 0 ? void 0 : _a.sleepIntervalInMs,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
async function createVectorStoreFileInternal(context, vectorStoreId, options = {}) {
|
|
100
|
-
const createOptions = Object.assign(Object.assign({}, (0, core_client_1.operationOptionsToRequestParameters)(options)), ConvertParamsToWire.convertCreateVectorStoreFileParam({ body: options }));
|
|
101
|
-
(0, inputValidations_js_1.validateVectorStoreId)(vectorStoreId);
|
|
102
|
-
validateCreateVectorStoreFileParameters(createOptions);
|
|
103
|
-
const result = await context
|
|
104
|
-
.path("/vector_stores/{vectorStoreId}/files", vectorStoreId)
|
|
105
|
-
.post(createOptions);
|
|
106
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
107
|
-
throw (0, openAIError_js_1.createOpenAIError)(result);
|
|
108
|
-
}
|
|
109
|
-
return ConvertFromWire.convertVectorStoreFileOutput(result.body);
|
|
110
|
-
}
|
|
111
|
-
function getLroOperationStatus(result) {
|
|
112
|
-
switch (result.status) {
|
|
113
|
-
case "in_progress":
|
|
114
|
-
return "running";
|
|
115
|
-
case "completed":
|
|
116
|
-
return "succeeded";
|
|
117
|
-
case "cancelled":
|
|
118
|
-
return "canceled";
|
|
119
|
-
default:
|
|
120
|
-
return "failed";
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function validateListVectorStoreFilesParameters(options) {
|
|
124
|
-
var _a, _b, _c;
|
|
125
|
-
if ((_a = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _a === void 0 ? void 0 : _a.filter) {
|
|
126
|
-
(0, inputValidations_js_1.validateFileStatusFilter)(options.queryParameters.filter);
|
|
127
|
-
}
|
|
128
|
-
if ((_b = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _b === void 0 ? void 0 : _b.limit) {
|
|
129
|
-
(0, inputValidations_js_1.validateLimit)(options.queryParameters.limit);
|
|
130
|
-
}
|
|
131
|
-
if ((_c = options === null || options === void 0 ? void 0 : options.queryParameters) === null || _c === void 0 ? void 0 : _c.order) {
|
|
132
|
-
(0, inputValidations_js_1.validateOrder)(options.queryParameters.order);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
function validateCreateVectorStoreFileParameters(options) {
|
|
136
|
-
var _a;
|
|
137
|
-
if (((_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.chunking_strategy) && !options.body.file_id) {
|
|
138
|
-
throw new Error("Chunking strategy is only applicable if fileId is included");
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=vectorStoresFiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vectorStoresFiles.js","sourceRoot":"","sources":["../../../src/agents/vectorStoresFiles.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAqClC,oDAoBC;AAGD,sDAsBC;AAGD,gDAmBC;AAMD,sDAkBC;AAGD,oEAsBC;;AAtJD,yDAA8E;AAU9E,2CAA2C;AAO3C,+DAM+B;AAC/B,4FAA2F;AAE3F,yGAAmF;AACnF,yGAAmF;AACnF,qDAAqD;AAGrD,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;AAEjC,4CAA4C;AACrC,KAAK,UAAU,oBAAoB,CACxC,OAAe,EACf,aAAqB,EACrB,UAA8C,EAAE;IAEhD,IAAA,2CAAqB,EAAC,aAAa,CAAC,CAAC;IAErC,MAAM,WAAW,mCACZ,IAAA,iDAAmC,EAAC,OAAO,CAAC,KAC/C,eAAe,EAAE,IAAA,yDAA4B,EAAC,OAAO,CAAC,GACvD,CAAC;IAEF,sCAAsC,CAAC,WAAW,CAAC,CAAC;IACpD,MAAM,MAAM,GAAG,MAAM,OAAO;SACzB,IAAI,CAAC,sCAAsC,EAAE,aAAa,CAAC;SAC3D,GAAG,CAAC,WAAW,CAAC,CAAC;IACpB,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,IAAA,kCAAiB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,eAAe,CAAC,gDAAgD,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvF,CAAC;AAED,wEAAwE;AACxE,SAAgB,qBAAqB,CACnC,OAAe,EACf,aAAqB,EACrB,UAA+C,EAAE;;IAEjD,OAAO,IA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CAAwB,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,KAAK,EAAE,CAAC;QACpC,IAAA,mCAAa,EAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,0CAAE,KAAK,EAAE,CAAC;QACpC,IAAA,mCAAa,EAAC,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC/C,CAAC;AACH,CAAC;AAED,SAAS,uCAAuC,CAAC,OAAyC;;IACxF,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,iBAAiB,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;QAC9D,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;IAChF,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client } from \"@azure-rest/core-client\";\nimport { operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type {\n ListVectorStoreFilesParameters,\n CreateVectorStoreFileParameters,\n} from \"../generated/src/parameters.js\";\nimport type {\n OpenAIPageableListOfVectorStoreFileOutput,\n VectorStoreFileDeletionStatusOutput,\n VectorStoreFileOutput,\n} from \"../customization/outputModels.js\";\nimport { createPoller } from \"./poller.js\";\nimport type {\n CreateVectorStoreFileOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n GetVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n} from \"./customModels.js\";\nimport {\n validateFileId,\n validateFileStatusFilter,\n validateLimit,\n validateOrder,\n validateVectorStoreId,\n} from \"./inputValidations.js\";\nimport { convertToListQueryParameters } from \"../customization/convertParametersToWire.js\";\nimport type * as GeneratedParameters from \"../generated/src/parameters.js\";\nimport * as ConvertFromWire from \"../customization/convertOutputModelsFromWire.js\";\nimport * as ConvertParamsToWire from \"../customization/convertParametersToWire.js\";\nimport { createOpenAIError } from \"./openAIError.js\";\nimport type { OperationState, OperationStatus, PollerLike } from \"@azure/core-lro\";\n\nconst expectedStatuses = [\"200\"];\n\n/** Returns a list of vector store files. */\nexport async function listVectorStoreFiles(\n context: Client,\n vectorStoreId: string,\n options: ListVectorStoreFilesOptionalParams = {},\n): Promise<OpenAIPageableListOfVectorStoreFileOutput> {\n validateVectorStoreId(vectorStoreId);\n\n const listOptions: GeneratedParameters.ListVectorStoreFilesParameters = {\n ...operationOptionsToRequestParameters(options),\n queryParameters: convertToListQueryParameters(options),\n };\n\n validateListVectorStoreFilesParameters(listOptions);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/files\", vectorStoreId)\n .get(listOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertOpenAIPageableListOfVectorStoreFileOutput(result.body);\n}\n\n/** Create a vector store file by attaching a file to a vector store. */\nexport function createVectorStoreFile(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileOptionalParams = {},\n): PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput> {\n return createPoller<VectorStoreFileOutput>({\n initOperation: async () => {\n return createVectorStoreFileInternal(context, vectorStoreId, options);\n },\n pollOperation: async (currentResult: VectorStoreFileOutput) => {\n return getVectorStoreFile(context, vectorStoreId, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: VectorStoreFileOutput) => {\n return result.status === \"failed\" && result.lastError\n ? new Error(\n `Operation failed with code ${result.lastError.code}: ${result.lastError.message}`,\n )\n : undefined;\n },\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\n/** Retrieves a vector store file. */\nexport async function getVectorStoreFile(\n context: Client,\n vectorStoreId: string,\n fileId: string,\n options: GetVectorStoreFileOptionalParams = {},\n): Promise<VectorStoreFileOutput> {\n const getOptions: GeneratedParameters.GetVectorStoreFileParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n\n validateVectorStoreId(vectorStoreId);\n validateFileId(fileId);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/files/{fileId}\", vectorStoreId, fileId)\n .get(getOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileOutput(result.body);\n}\n\n/**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\nexport async function deleteVectorStoreFile(\n context: Client,\n vectorStoreId: string,\n fileId: string,\n options: DeleteVectorStoreFileOptionalParams = {},\n): Promise<VectorStoreFileDeletionStatusOutput> {\n validateVectorStoreId(vectorStoreId);\n validateFileId(fileId);\n const deleteOptions: GeneratedParameters.GetVectorStoreFileParameters = {\n ...operationOptionsToRequestParameters(options),\n };\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/files/{fileId}\", vectorStoreId, fileId)\n .delete(deleteOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileDeletionStatusOutput(result.body);\n}\n\n/** Create a vector store file by attaching a file to a vector store and poll. */\nexport function createVectorStoreFileAndPoll(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileOptionalParams = {},\n): PollerLike<OperationState<VectorStoreFileOutput>, VectorStoreFileOutput> {\n return createPoller<VectorStoreFileOutput>({\n initOperation: async () => {\n return createVectorStoreFileInternal(context, vectorStoreId, options);\n },\n pollOperation: async (currentResult: VectorStoreFileOutput) => {\n return getVectorStoreFile(context, vectorStoreId, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n getOperationError: (result: VectorStoreFileOutput) => {\n return result.status === \"failed\" && result.lastError\n ? new Error(\n `Operation failed with code ${result.lastError.code}: ${result.lastError.message}`,\n )\n : undefined;\n },\n intervalInMs: options.pollingOptions?.sleepIntervalInMs,\n });\n}\n\nasync function createVectorStoreFileInternal(\n context: Client,\n vectorStoreId: string,\n options: CreateVectorStoreFileOptionalParams = {},\n): Promise<VectorStoreFileOutput> {\n const createOptions: CreateVectorStoreFileParameters = {\n ...operationOptionsToRequestParameters(options),\n ...ConvertParamsToWire.convertCreateVectorStoreFileParam({ body: options }),\n };\n\n validateVectorStoreId(vectorStoreId);\n validateCreateVectorStoreFileParameters(createOptions);\n const result = await context\n .path(\"/vector_stores/{vectorStoreId}/files\", vectorStoreId)\n .post(createOptions);\n if (!expectedStatuses.includes(result.status)) {\n throw createOpenAIError(result);\n }\n return ConvertFromWire.convertVectorStoreFileOutput(result.body);\n}\n\nfunction getLroOperationStatus(result: VectorStoreFileOutput): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"cancelled\":\n return \"canceled\";\n default:\n return \"failed\";\n }\n}\n\nfunction validateListVectorStoreFilesParameters(options?: ListVectorStoreFilesParameters): void {\n if (options?.queryParameters?.filter) {\n validateFileStatusFilter(options.queryParameters.filter);\n }\n if (options?.queryParameters?.limit) {\n validateLimit(options.queryParameters.limit);\n }\n if (options?.queryParameters?.order) {\n validateOrder(options.queryParameters.order);\n }\n}\n\nfunction validateCreateVectorStoreFileParameters(options?: CreateVectorStoreFileParameters): void {\n if (options?.body?.chunking_strategy && !options.body.file_id) {\n throw new Error(\"Chunking strategy is only applicable if fileId is included\");\n }\n}\n"]}
|