@azure/ai-projects 1.0.0-beta.5 → 1.0.0-beta.7
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 +334 -760
- 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 +122 -0
- package/dist/browser/api/connections/operations.js.map +1 -0
- package/dist/browser/api/connections/options.d.ts +22 -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 +287 -0
- package/dist/browser/api/datasets/operations.js.map +1 -0
- package/dist/browser/api/datasets/options.d.ts +23 -0
- package/dist/browser/api/datasets/options.d.ts.map +1 -0
- package/dist/browser/api/datasets/options.js +4 -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 +56 -0
- package/dist/browser/api/deployments/operations.js.map +1 -0
- package/dist/browser/api/deployments/options.d.ts +19 -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 +99 -0
- package/dist/browser/api/evaluations/operations.js.map +1 -0
- package/dist/browser/api/evaluations/options.d.ts +18 -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 +123 -0
- package/dist/browser/api/indexes/operations.js.map +1 -0
- package/dist/browser/api/indexes/options.d.ts +17 -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 +74 -0
- package/dist/browser/api/redTeams/operations.js.map +1 -0
- package/dist/browser/api/redTeams/options.d.ts +15 -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 -9
- 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 +541 -0
- package/dist/browser/models/models.d.ts.map +1 -0
- package/dist/browser/models/models.js +696 -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 +134 -0
- package/dist/commonjs/api/connections/operations.js.map +1 -0
- package/dist/commonjs/api/connections/options.d.ts +22 -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 +313 -0
- package/dist/commonjs/api/datasets/operations.js.map +1 -0
- package/dist/commonjs/api/datasets/options.d.ts +23 -0
- package/dist/commonjs/api/datasets/options.d.ts.map +1 -0
- package/dist/commonjs/api/datasets/options.js +5 -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 +64 -0
- package/dist/commonjs/api/deployments/operations.js.map +1 -0
- package/dist/commonjs/api/deployments/options.d.ts +19 -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 +113 -0
- package/dist/commonjs/api/evaluations/operations.js.map +1 -0
- package/dist/commonjs/api/evaluations/options.d.ts +18 -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 +140 -0
- package/dist/commonjs/api/indexes/operations.js.map +1 -0
- package/dist/commonjs/api/indexes/options.d.ts +17 -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 +85 -0
- package/dist/commonjs/api/redTeams/operations.js.map +1 -0
- package/dist/commonjs/api/redTeams/options.d.ts +15 -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 -9
- 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 +541 -0
- package/dist/commonjs/models/models.d.ts.map +1 -0
- package/dist/commonjs/models/models.js +780 -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 +122 -0
- package/dist/esm/api/connections/operations.js.map +1 -0
- package/dist/esm/api/connections/options.d.ts +22 -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 +287 -0
- package/dist/esm/api/datasets/operations.js.map +1 -0
- package/dist/esm/api/datasets/options.d.ts +23 -0
- package/dist/esm/api/datasets/options.d.ts.map +1 -0
- package/dist/esm/api/datasets/options.js +4 -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 +56 -0
- package/dist/esm/api/deployments/operations.js.map +1 -0
- package/dist/esm/api/deployments/options.d.ts +19 -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 +99 -0
- package/dist/esm/api/evaluations/operations.js.map +1 -0
- package/dist/esm/api/evaluations/options.d.ts +18 -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 +123 -0
- package/dist/esm/api/indexes/operations.js.map +1 -0
- package/dist/esm/api/indexes/options.d.ts +17 -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 +74 -0
- package/dist/esm/api/redTeams/operations.js.map +1 -0
- package/dist/esm/api/redTeams/options.d.ts +15 -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 -9
- 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 +541 -0
- package/dist/esm/models/models.d.ts.map +1 -0
- package/dist/esm/models/models.js +696 -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 +122 -0
- package/dist/react-native/api/connections/operations.js.map +1 -0
- package/dist/react-native/api/connections/options.d.ts +22 -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 +287 -0
- package/dist/react-native/api/datasets/operations.js.map +1 -0
- package/dist/react-native/api/datasets/options.d.ts +23 -0
- package/dist/react-native/api/datasets/options.d.ts.map +1 -0
- package/dist/react-native/api/datasets/options.js +4 -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 +56 -0
- package/dist/react-native/api/deployments/operations.js.map +1 -0
- package/dist/react-native/api/deployments/options.d.ts +19 -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 +99 -0
- package/dist/react-native/api/evaluations/operations.js.map +1 -0
- package/dist/react-native/api/evaluations/options.d.ts +18 -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 +123 -0
- package/dist/react-native/api/indexes/operations.js.map +1 -0
- package/dist/react-native/api/indexes/options.d.ts +17 -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 +74 -0
- package/dist/react-native/api/redTeams/operations.js.map +1 -0
- package/dist/react-native/api/redTeams/options.d.ts +15 -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 -9
- 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 +541 -0
- package/dist/react-native/models/models.d.ts.map +1 -0
- package/dist/react-native/models/models.js +696 -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 +29 -26
- 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 -164
- 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 -268
- 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 -105
- package/dist/browser/agents/index.d.ts.map +0 -1
- package/dist/browser/agents/index.js +0 -63
- 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 -14
- package/dist/browser/agents/threads.d.ts.map +0 -1
- package/dist/browser/agents/threads.js +0 -108
- 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 -222
- package/dist/browser/agents/utils.d.ts.map +0 -1
- package/dist/browser/agents/utils.js +0 -311
- 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 -297
- package/dist/browser/customization/convertModelsToWrite.js.map +0 -1
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts +0 -28
- package/dist/browser/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/browser/customization/convertOutputModelsFromWire.js +0 -962
- 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 -949
- 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 -1501
- 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 -394
- 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 -260
- 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 -55
- package/dist/browser/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/browser/generated/src/isUnexpected.js +0 -124
- 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 -937
- 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 -1621
- 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 -451
- 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 -791
- 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 -172
- 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 -268
- 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 -105
- package/dist/commonjs/agents/index.d.ts.map +0 -1
- package/dist/commonjs/agents/index.js +0 -66
- 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 -14
- package/dist/commonjs/agents/threads.d.ts.map +0 -1
- package/dist/commonjs/agents/threads.js +0 -116
- 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 -222
- package/dist/commonjs/agents/utils.d.ts.map +0 -1
- package/dist/commonjs/agents/utils.js +0 -317
- 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 -310
- package/dist/commonjs/customization/convertModelsToWrite.js.map +0 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts +0 -28
- package/dist/commonjs/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/commonjs/customization/convertOutputModelsFromWire.js +0 -987
- 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 -949
- 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 -1501
- 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 -394
- 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 -260
- 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 -55
- package/dist/commonjs/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/generated/src/isUnexpected.js +0 -127
- 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 -937
- 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 -1621
- 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 -451
- 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 -791
- 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 -164
- 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 -268
- 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 -105
- package/dist/esm/agents/index.d.ts.map +0 -1
- package/dist/esm/agents/index.js +0 -63
- 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 -14
- package/dist/esm/agents/threads.d.ts.map +0 -1
- package/dist/esm/agents/threads.js +0 -108
- 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 -222
- package/dist/esm/agents/utils.d.ts.map +0 -1
- package/dist/esm/agents/utils.js +0 -311
- 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 -297
- package/dist/esm/customization/convertModelsToWrite.js.map +0 -1
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts +0 -28
- package/dist/esm/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/esm/customization/convertOutputModelsFromWire.js +0 -962
- 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 -949
- 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 -1501
- 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 -394
- 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 -260
- 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 -55
- package/dist/esm/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/esm/generated/src/isUnexpected.js +0 -124
- 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 -937
- 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 -1621
- 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 -451
- 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 -791
- 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 -164
- 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 -268
- 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 -105
- package/dist/react-native/agents/index.d.ts.map +0 -1
- package/dist/react-native/agents/index.js +0 -63
- 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 -14
- package/dist/react-native/agents/threads.d.ts.map +0 -1
- package/dist/react-native/agents/threads.js +0 -108
- 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 -222
- package/dist/react-native/agents/utils.d.ts.map +0 -1
- package/dist/react-native/agents/utils.js +0 -311
- 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 -297
- package/dist/react-native/customization/convertModelsToWrite.js.map +0 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts +0 -28
- package/dist/react-native/customization/convertOutputModelsFromWire.d.ts.map +0 -1
- package/dist/react-native/customization/convertOutputModelsFromWire.js +0 -962
- 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 -949
- 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 -1501
- 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 -394
- 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 -260
- 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 -55
- package/dist/react-native/generated/src/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/generated/src/isUnexpected.js +0 -124
- 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 -937
- 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 -1621
- 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 -451
- 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 -791
- 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
package/README.md
CHANGED
|
@@ -1,56 +1,49 @@
|
|
|
1
1
|
# Azure AI Projects client library for JavaScript
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
- **
|
|
8
|
-
- **
|
|
3
|
+
The AI Projects client library provides easy access to resources in your Azure AI Foundry project.
|
|
4
|
+
Use it to:
|
|
5
|
+
|
|
6
|
+
- **Create and run Agents** using the `.agents` property on the client.
|
|
7
|
+
- **Get an AzureOpenAI client** using the `.inference.azureOpenAI` method.
|
|
8
|
+
- **Enumerate AI Models** deployed to your Foundry Project using the `.deployments` operations.
|
|
9
|
+
- **Enumerate connected Azure resources** in your Foundry project using the `.connections` operations.
|
|
10
|
+
- **Upload documents and create Datasets** to reference them using the `.datasets` operations.
|
|
11
|
+
- **Create and enumerate Search Indexes** using the `.indexes` operations.
|
|
12
|
+
- **Get an Azure AI Inference client** for chat completions, text or image embeddings using the `.inference` operations.
|
|
13
|
+
- **Read a Prompty file or string** and render messages for inference clients, using the `PromptTemplate` class.
|
|
14
|
+
- **Run Evaluations** to assess the performance of generative AI applications, using the `evaluations` operations.
|
|
15
|
+
- **Enable OpenTelemetry tracing** using the `enable_telemetry` function.
|
|
9
16
|
|
|
10
17
|
[Product documentation](https://aka.ms/azsdk/azure-ai-projects/product-doc)
|
|
11
|
-
|
|
12
18
|
| [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples)
|
|
13
19
|
| [Package (npm)](https://www.npmjs.com/package/@azure/ai-projects)
|
|
14
20
|
| [API reference documentation](https://learn.microsoft.com/javascript/api/overview/azure/ai-projects-readme?view=azure-node-preview)
|
|
21
|
+
| [SDK source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects)
|
|
15
22
|
|
|
16
23
|
## Table of contents
|
|
17
24
|
|
|
18
25
|
- [Getting started](#getting-started)
|
|
19
26
|
- [Prerequisite](#prerequisite)
|
|
27
|
+
- [Authorization](#authorization)
|
|
20
28
|
- [Install the package](#install-the-package)
|
|
21
29
|
- [Key concepts](#key-concepts)
|
|
22
30
|
- [Create and authenticate the client](#create-and-authenticate-the-client)
|
|
23
31
|
- [Examples](#examples)
|
|
24
|
-
- [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- [Function call](#create-agent-with-function-call)
|
|
36
|
-
- [Fabric Data](#create-an-agent-with-fabric)
|
|
37
|
-
- [Create thread](#create-thread) with
|
|
38
|
-
- [Tool resource](#create-thread-with-tool-resource)
|
|
39
|
-
- [Create message](#create-message) with:
|
|
40
|
-
- [File search attachment](#create-message-with-file-search-attachment)
|
|
41
|
-
- [Code interpreter attachment](#create-message-with-code-interpreter-attachment)
|
|
42
|
-
- [Execute Run, Create Thread and Run, or Stream](#create-run-run_and_process-or-stream)
|
|
43
|
-
- [Retrieve message](#retrieve-message)
|
|
44
|
-
- [Retrieve file](#retrieve-file)
|
|
45
|
-
- [Tear down by deleting resource](#teardown)
|
|
46
|
-
- [Tracing](#tracing)
|
|
47
|
-
- [Tracing](#tracing)
|
|
48
|
-
- [Installation](#installation)
|
|
49
|
-
- [Tracing example](#tracing-example)
|
|
32
|
+
- [Performing Agent operations](#performing-agent-operations)
|
|
33
|
+
- [Get an authenticated AzureOpenAI client](#get-an-authenticated-azureopenai-client)
|
|
34
|
+
- [Get an authenticated ChatCompletionsClient](#get-an-authenticated-chatcompletionsclient)
|
|
35
|
+
- [Deployments operations](#deployments-operations)
|
|
36
|
+
- [Connections operations](#connections-operations)
|
|
37
|
+
- [Dataset operations](#dataset-operations)
|
|
38
|
+
- [Indexes operations](#indexes-operations)
|
|
39
|
+
- [Evaluation](#evaluation)
|
|
40
|
+
- [Evaluator](#evaluator)
|
|
41
|
+
- [Run Evaluation in the cloud](#run-evaluation-in-the-cloud)
|
|
42
|
+
- [Example Remote Evaluation](#example-remote-evaluation)
|
|
50
43
|
- [Troubleshooting](#troubleshooting)
|
|
51
44
|
- [Exceptions](#exceptions)
|
|
52
45
|
- [Reporting issues](#reporting-issues)
|
|
53
|
-
|
|
46
|
+
- [Next steps](#next-steps)
|
|
54
47
|
- [Contributing](#contributing)
|
|
55
48
|
|
|
56
49
|
## Getting started
|
|
@@ -60,9 +53,11 @@ Use the AI Projects client library (in preview) to:
|
|
|
60
53
|
- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
|
|
61
54
|
- An [Azure subscription][azure_sub].
|
|
62
55
|
- A [project in Azure AI Foundry](https://learn.microsoft.com/azure/ai-studio/how-to/create-projects?tabs=ai-studio).
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
|
|
57
|
+
### Authorization
|
|
58
|
+
|
|
59
|
+
- [Entra ID][entra_id] is needed to authenticate the client. Your application needs an object that implements the [TokenCredential](https://learn.microsoft.com/javascript/api/@azure/core-auth/tokencredential) interface. Code samples here use [DefaultAzureCredential][default_azure_credential]. To get that working, you will need:
|
|
60
|
+
- The `Contributor` role. Role assigned can be done via the "Access Control (IAM)" tab of your Azure AI Project resource in the Azure portal. Learn more about role assignments [here](https://learn.microsoft.com/azure/role-based-access-control/role-assignments-portal).
|
|
66
61
|
- [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli) installed.
|
|
67
62
|
- You are logged into your Azure account by running `az login`.
|
|
68
63
|
- Note that if you have multiple Azure subscriptions, the subscription that contains your Azure AI Project resource must be your default subscription. Run `az account list --output table` to list all your subscription and see which one is the default. Run `az account set --subscription "Your Subscription ID or Name"` to change your default subscription.
|
|
@@ -77,816 +72,394 @@ npm install @azure/ai-projects @azure/identity
|
|
|
77
72
|
|
|
78
73
|
### Create and authenticate the client
|
|
79
74
|
|
|
80
|
-
|
|
75
|
+
To construct an `AIProjectsClient`:
|
|
81
76
|
|
|
82
77
|
```ts snippet:setup
|
|
83
|
-
import {
|
|
78
|
+
import { AIProjectClient } from "@azure/ai-projects";
|
|
84
79
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
85
80
|
|
|
86
|
-
const
|
|
87
|
-
const client =
|
|
88
|
-
connectionString,
|
|
89
|
-
new DefaultAzureCredential(),
|
|
90
|
-
);
|
|
81
|
+
const endpoint = process.env["AZURE_AI_PROJECT_ENDPOINT_STRING"] || "<project endpoint string>";
|
|
82
|
+
const client = new AIProjectClient(endpoint, new DefaultAzureCredential());
|
|
91
83
|
```
|
|
92
84
|
|
|
93
85
|
## Examples
|
|
94
86
|
|
|
95
|
-
###
|
|
96
|
-
|
|
97
|
-
Your Azure AI Foundry project has a "Management center". When you enter it, you will see a tab named "Connected resources" under your project. The `.connections` operations on the client allow you to enumerate the connections and get connection properties. Connection properties include the resource URL and authentication credentials, among other things.
|
|
98
|
-
|
|
99
|
-
Below are code examples of the connection operations. Full samples can be found under the "connections" folder in the [package samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples).
|
|
100
|
-
|
|
101
|
-
#### Get properties of all connections
|
|
102
|
-
|
|
103
|
-
To list the properties of all the connections in the Azure AI Foundry project:
|
|
104
|
-
|
|
105
|
-
```ts snippet:listConnections
|
|
106
|
-
const connections = await client.connections.listConnections();
|
|
107
|
-
for (const connection of connections) {
|
|
108
|
-
console.log(connection);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
#### Get properties of all connections of a particular type
|
|
113
|
-
|
|
114
|
-
To list the properties of connections of a certain type (here Azure OpenAI):
|
|
115
|
-
|
|
116
|
-
```ts snippet:filterConnections
|
|
117
|
-
const connections = await client.connections.listConnections({ category: "AzureOpenAI" });
|
|
118
|
-
for (const connection of connections) {
|
|
119
|
-
console.log(connection);
|
|
120
|
-
}
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
#### Get properties of a connection by its connection name
|
|
124
|
-
|
|
125
|
-
To get the connection properties of a connection named `connectionName`:
|
|
126
|
-
|
|
127
|
-
```ts snippet:getConnection
|
|
128
|
-
const connection = await client.connections.getConnection("connectionName");
|
|
129
|
-
console.log(connection);
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
To get the connection properties with its authentication credentials:
|
|
133
|
-
|
|
134
|
-
```ts snippet:getConnectionWithSecrets
|
|
135
|
-
const connection = await client.connections.getConnectionWithSecrets("connectionName");
|
|
136
|
-
console.log(connection);
|
|
137
|
-
```
|
|
87
|
+
### Performing Agent operations
|
|
138
88
|
|
|
139
|
-
|
|
89
|
+
The `.agents` property on the `AIProjectClient` gives you access to an authenticated `AgentsClient` from the `azure-ai-agents` package. Below we show how to create an agent and delete it. To see what you can do with the `agent` you created, see the [many samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-agents/samples) associated with the `azure-ai-agents` package.
|
|
140
90
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
Agents are actively being developed. A sign-up form for private preview is coming soon.
|
|
144
|
-
|
|
145
|
-
#### Create Agent
|
|
146
|
-
|
|
147
|
-
Here is an example of how to create an Agent:
|
|
148
|
-
|
|
149
|
-
```ts snippet:createAgent
|
|
150
|
-
const agent = await client.agents.createAgent("gpt-4o", {
|
|
151
|
-
name: "my-agent",
|
|
152
|
-
instructions: "You are a helpful assistant",
|
|
153
|
-
});
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
To allow Agents to access your resources or custom functions, you need tools. You can pass tools to `createAgent` through the `tools` and `toolResources` arguments.
|
|
157
|
-
|
|
158
|
-
You can use `ToolSet` to do this:
|
|
159
|
-
|
|
160
|
-
```ts snippet:toolSet
|
|
161
|
-
import { ToolSet } from "@azure/ai-projects";
|
|
162
|
-
|
|
163
|
-
const toolSet = new ToolSet();
|
|
164
|
-
toolSet.addFileSearchTool([vectorStore.id]);
|
|
165
|
-
toolSet.addCodeInterpreterTool([codeInterpreterFile.id]);
|
|
166
|
-
const agent = await client.agents.createAgent("gpt-4o", {
|
|
91
|
+
```ts snippet:agentsSample
|
|
92
|
+
const agent = await project.agents.createAgent("gpt-4o", {
|
|
167
93
|
name: "my-agent",
|
|
168
94
|
instructions: "You are a helpful agent",
|
|
169
|
-
tools: toolSet.toolDefinitions,
|
|
170
|
-
toolResources: toolSet.toolResources,
|
|
171
95
|
});
|
|
172
|
-
console.log(`Created agent, agent ID: ${agent.id}`);
|
|
173
|
-
```
|
|
96
|
+
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
174
97
|
|
|
175
|
-
|
|
98
|
+
// Do something with your Agent!
|
|
99
|
+
// See samples here https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-agents/samples
|
|
100
|
+
await project.agents.deleteAgent(agent.id);
|
|
101
|
+
console.log(`Deleted agent, agent ID: ${agent.id}`);
|
|
102
|
+
```
|
|
176
103
|
|
|
177
|
-
|
|
104
|
+
### Get an authenticated AzureOpenAI client
|
|
178
105
|
|
|
179
|
-
|
|
180
|
-
import { ToolUtility } from "@azure/ai-projects";
|
|
106
|
+
Your Azure AI Foundry project may have one or more OpenAI models deployed that support chat completions. Use the code below to get an authenticated [AzureOpenAI](https://github.com/openai/openai-python?tab=readme-ov-file#microsoft-azure-openai) from the [openai](https://pypi.org/project/openai/) package, and execute a chat completions call.
|
|
181
107
|
|
|
182
|
-
|
|
183
|
-
const file = await client.agents.uploadFile(localFileStream, "assistants", {
|
|
184
|
-
fileName: "sample_file_for_upload.txt",
|
|
185
|
-
});
|
|
186
|
-
console.log(`Uploaded file, ID: ${file.id}`);
|
|
187
|
-
const vectorStore = await client.agents.createVectorStore({
|
|
188
|
-
fileIds: [file.id],
|
|
189
|
-
name: "my_vector_store",
|
|
190
|
-
});
|
|
191
|
-
console.log(`Created vector store, ID: ${vectorStore.id}`);
|
|
192
|
-
const fileSearchTool = ToolUtility.createFileSearchTool([vectorStore.id]);
|
|
193
|
-
const agent = await client.agents.createAgent("gpt-4o", {
|
|
194
|
-
name: "SDK Test Agent - Retrieval",
|
|
195
|
-
instructions: "You are helpful agent that can help fetch data from files you know about.",
|
|
196
|
-
tools: [fileSearchTool.definition],
|
|
197
|
-
toolResources: fileSearchTool.resources,
|
|
198
|
-
});
|
|
199
|
-
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
#### Create Agent with Code Interpreter
|
|
108
|
+
Run the code below. Here we assume `deploymentName` (str) is defined. It's the deployment name of an AI model in your Foundry Project. As shown in the "Models + endpoints" tab, under the "Name" column.
|
|
203
109
|
|
|
204
|
-
|
|
110
|
+
Update the `api_version` value with one found in the "Data plane - inference" row [in this table](https://learn.microsoft.com/azure/ai-services/openai/reference#api-specs).
|
|
205
111
|
|
|
206
|
-
|
|
207
|
-
import { ToolUtility } from "@azure/ai-projects";
|
|
112
|
+
You also have the option (not shown) to explicitly specify the Azure OpenAI connection name in your AI Foundry Project, which the `inference.azureOpenAI` method will use to get the inference endpoint and authentication credentials. If not present the default Azure OpenAI connection will be used.
|
|
208
113
|
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
|
|
114
|
+
```ts snippet:openAI
|
|
115
|
+
const client = await project.inference.azureOpenAI({
|
|
116
|
+
// The API version should match the version of the Azure OpenAI resource.
|
|
117
|
+
apiVersion: "2024-10-21",
|
|
212
118
|
});
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
const agent = await client.agents.createAgent("gpt-4o-mini", {
|
|
217
|
-
name: "my-agent",
|
|
218
|
-
instructions: "You are a helpful agent",
|
|
219
|
-
tools: [codeInterpreterTool.definition],
|
|
220
|
-
toolResources: codeInterpreterTool.resources,
|
|
119
|
+
const response = await client.chat.completions.create({
|
|
120
|
+
model: deploymentName,
|
|
121
|
+
messages: [{ role: "user", content: "How many feet are in a mile?" }],
|
|
221
122
|
});
|
|
222
|
-
console.log(
|
|
123
|
+
console.log("response = ", JSON.stringify(response, null, 2));
|
|
223
124
|
```
|
|
224
125
|
|
|
225
|
-
|
|
126
|
+
See the "inference" folder in the [package samples][samples] for additional samples.
|
|
226
127
|
|
|
227
|
-
|
|
128
|
+
### Get an authenticated ChatCompletionsClient
|
|
228
129
|
|
|
229
|
-
|
|
130
|
+
Your Azure AI Foundry project may have one or more AI models deployed that support chat completions. These could be OpenAI models, Microsoft models, or models from other providers. Use the code below to get an authenticated Client from the [azure-ai-inference](https://www.npmjs.com/package/@azure-rest/ai-inference) package, and execute a chat completions call.
|
|
230
131
|
|
|
231
|
-
|
|
232
|
-
import { ToolUtility, connectionToolType } from "@azure/ai-projects";
|
|
132
|
+
Here we assume `deploymentName` (str) is defined. It's the deployment name of an AI model in your Foundry Project. As shown in the "Models + endpoints" tab, under the "Name" column.
|
|
233
133
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
instructions: "You are a helpful agent",
|
|
242
|
-
tools: [bingTool.definition],
|
|
134
|
+
```ts snippet:chatCompletions
|
|
135
|
+
const client = project.inference.chatCompletions();
|
|
136
|
+
const response = await client.post({
|
|
137
|
+
body: {
|
|
138
|
+
model: deploymentName,
|
|
139
|
+
messages: [{ role: "user", content: "How many feet are in a mile?" }],
|
|
140
|
+
},
|
|
243
141
|
});
|
|
244
|
-
console.log(
|
|
142
|
+
console.log(response.body.choices[0].message.content);
|
|
245
143
|
```
|
|
246
144
|
|
|
247
|
-
|
|
145
|
+
See the "inference" folder in the [package samples][samples] for additional samples.
|
|
248
146
|
|
|
249
|
-
|
|
147
|
+
### Deployments operations
|
|
250
148
|
|
|
251
|
-
|
|
149
|
+
The code below shows some Deployments operations, which allow you to enumerate the AI models deployed to your AI Foundry Projects. These models can be seen in the "Models + endpoints" tab in your AI Foundry Project. Full samples can be found under the "deployment" folder in the [package samples][samples].
|
|
252
150
|
|
|
253
|
-
```ts snippet:
|
|
254
|
-
import {
|
|
151
|
+
```ts snippet:deployments
|
|
152
|
+
import { ModelDeployment } from "@azure/ai-projects";
|
|
255
153
|
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
const
|
|
260
|
-
const agent = await client.agents.createAgent("gpt-4-0125-preview", {
|
|
261
|
-
name: "my-agent",
|
|
262
|
-
instructions: "You are a helpful agent",
|
|
263
|
-
tools: [azureAISearchTool.definition],
|
|
264
|
-
toolResources: azureAISearchTool.resources,
|
|
265
|
-
});
|
|
266
|
-
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
267
|
-
```
|
|
154
|
+
const modelPublisher = process.env["MODEL_PUBLISHER"] || "<model publisher>";
|
|
155
|
+
console.log("List all deployments:");
|
|
156
|
+
const deployments: ModelDeployment[] = [];
|
|
157
|
+
const properties: Array<Record<string, string>> = [];
|
|
268
158
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
} from "@azure/ai-projects";
|
|
283
|
-
|
|
284
|
-
class FunctionToolExecutor {
|
|
285
|
-
private functionTools: {
|
|
286
|
-
func: Function;
|
|
287
|
-
definition: FunctionToolDefinition;
|
|
288
|
-
}[];
|
|
289
|
-
constructor() {
|
|
290
|
-
this.functionTools = [
|
|
291
|
-
{
|
|
292
|
-
func: this.getUserFavoriteCity,
|
|
293
|
-
...ToolUtility.createFunctionTool({
|
|
294
|
-
name: "getUserFavoriteCity",
|
|
295
|
-
description: "Gets the user's favorite city.",
|
|
296
|
-
parameters: {},
|
|
297
|
-
}),
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
func: this.getCityNickname,
|
|
301
|
-
...ToolUtility.createFunctionTool({
|
|
302
|
-
name: "getCityNickname",
|
|
303
|
-
description: "Gets the nickname of a city, e.g. 'LA' for 'Los Angeles, CA'.",
|
|
304
|
-
parameters: {
|
|
305
|
-
type: "object",
|
|
306
|
-
properties: {
|
|
307
|
-
location: { type: "string", description: "The city and state, e.g. Seattle, Wa" },
|
|
308
|
-
},
|
|
309
|
-
},
|
|
310
|
-
}),
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
func: this.getWeather,
|
|
314
|
-
...ToolUtility.createFunctionTool({
|
|
315
|
-
name: "getWeather",
|
|
316
|
-
description: "Gets the weather for a location.",
|
|
317
|
-
parameters: {
|
|
318
|
-
type: "object",
|
|
319
|
-
properties: {
|
|
320
|
-
location: { type: "string", description: "The city and state, e.g. Seattle, Wa" },
|
|
321
|
-
unit: { type: "string", enum: ["c", "f"] },
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
}),
|
|
325
|
-
},
|
|
326
|
-
];
|
|
327
|
-
}
|
|
328
|
-
private getUserFavoriteCity(): {} {
|
|
329
|
-
return { location: "Seattle, WA" };
|
|
330
|
-
}
|
|
331
|
-
private getCityNickname(location: string): {} {
|
|
332
|
-
return { nickname: "The Emerald City" };
|
|
333
|
-
}
|
|
334
|
-
private getWeather(location: string, unit: string): {} {
|
|
335
|
-
return { weather: unit === "f" ? "72f" : "22c" };
|
|
336
|
-
}
|
|
337
|
-
public invokeTool(
|
|
338
|
-
toolCall: RequiredToolCallOutput & FunctionToolDefinitionOutput,
|
|
339
|
-
): ToolOutput | undefined {
|
|
340
|
-
console.log(`Function tool call - ${toolCall.function.name}`);
|
|
341
|
-
const args = [];
|
|
342
|
-
if (toolCall.function.parameters) {
|
|
343
|
-
try {
|
|
344
|
-
const params = JSON.parse(toolCall.function.parameters);
|
|
345
|
-
for (const key in params) {
|
|
346
|
-
if (Object.prototype.hasOwnProperty.call(params, key)) {
|
|
347
|
-
args.push(params[key]);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
} catch (error) {
|
|
351
|
-
console.error(`Failed to parse parameters: ${toolCall.function.parameters}`, error);
|
|
352
|
-
return undefined;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
const result = this.functionTools
|
|
356
|
-
.find((tool) => tool.definition.function.name === toolCall.function.name)
|
|
357
|
-
?.func(...args);
|
|
358
|
-
return result
|
|
359
|
-
? {
|
|
360
|
-
toolCallId: toolCall.id,
|
|
361
|
-
output: JSON.stringify(result),
|
|
362
|
-
}
|
|
363
|
-
: undefined;
|
|
364
|
-
}
|
|
365
|
-
public getFunctionDefinitions(): FunctionToolDefinition[] {
|
|
366
|
-
return this.functionTools.map((tool) => {
|
|
367
|
-
return tool.definition;
|
|
159
|
+
for await (const deployment of project.deployments.list()) {
|
|
160
|
+
// Check if this is a ModelDeployment (has the required properties)
|
|
161
|
+
if (
|
|
162
|
+
deployment.type === "ModelDeployment" &&
|
|
163
|
+
"modelName" in deployment &&
|
|
164
|
+
"modelPublisher" in deployment &&
|
|
165
|
+
"modelVersion" in deployment
|
|
166
|
+
) {
|
|
167
|
+
deployments.push(deployment);
|
|
168
|
+
properties.push({
|
|
169
|
+
name: deployment.name,
|
|
170
|
+
modelPublisher: deployment.modelPublisher,
|
|
171
|
+
modelName: deployment.modelName,
|
|
368
172
|
});
|
|
369
173
|
}
|
|
370
174
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
})
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
const filePath = "./data/weatherOpenApi.json";
|
|
392
|
-
const openApiSpec = JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
|
393
|
-
// Define OpenApi function
|
|
394
|
-
const openApiFunction = {
|
|
395
|
-
name: "getWeather",
|
|
396
|
-
spec: openApiSpec,
|
|
397
|
-
description: "Retrieve weather information for a location",
|
|
398
|
-
auth: {
|
|
399
|
-
type: "anonymous",
|
|
400
|
-
},
|
|
401
|
-
default_params: ["format"], // optional
|
|
402
|
-
};
|
|
403
|
-
// Create OpenApi tool
|
|
404
|
-
const openApiTool = ToolUtility.createOpenApiTool(openApiFunction);
|
|
405
|
-
// Create agent with OpenApi tool
|
|
406
|
-
const agent = await client.agents.createAgent("gpt-4o-mini", {
|
|
407
|
-
name: "myAgent",
|
|
408
|
-
instructions: "You are a helpful agent",
|
|
409
|
-
tools: [openApiTool.definition],
|
|
410
|
-
});
|
|
411
|
-
console.log(`Created agent, agent ID: ${agent.id}`);
|
|
412
|
-
```
|
|
413
|
-
|
|
414
|
-
#### Create an Agent with Fabric
|
|
415
|
-
|
|
416
|
-
To enable your Agent to answer queries using Fabric data, use `FabricTool` along with a connection to the Fabric resource.
|
|
417
|
-
|
|
418
|
-
Here is an example:
|
|
419
|
-
|
|
420
|
-
```ts snippet:createAgentWithFabric
|
|
421
|
-
import { ToolUtility } from "@azure/ai-projects";
|
|
422
|
-
|
|
423
|
-
const fabricConnection = await client.connections.getConnection(
|
|
424
|
-
process.env["FABRIC_CONNECTION_NAME"] || "<connection-name>",
|
|
175
|
+
console.log(`Retrieved deployments: ${JSON.stringify(properties, null, 2)}`);
|
|
176
|
+
|
|
177
|
+
// List all deployments by a specific model publisher (assuming we have one from the list)
|
|
178
|
+
console.log(`List all deployments by the model publisher '${modelPublisher}':`);
|
|
179
|
+
const filteredDeployments: ModelDeployment[] = [];
|
|
180
|
+
for await (const deployment of project.deployments.list({
|
|
181
|
+
modelPublisher,
|
|
182
|
+
})) {
|
|
183
|
+
// Check if this is a ModelDeployment
|
|
184
|
+
if (
|
|
185
|
+
deployment.type === "ModelDeployment" &&
|
|
186
|
+
"modelName" in deployment &&
|
|
187
|
+
"modelPublisher" in deployment &&
|
|
188
|
+
"modelVersion" in deployment
|
|
189
|
+
) {
|
|
190
|
+
filteredDeployments.push(deployment);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
console.log(
|
|
194
|
+
`Retrieved ${filteredDeployments.length} deployments from model publisher '${modelPublisher}'`,
|
|
425
195
|
);
|
|
426
|
-
const connectionId = fabricConnection.id;
|
|
427
|
-
// Initialize agent Microsoft Fabric tool with the connection id
|
|
428
|
-
const fabricTool = ToolUtility.createFabricTool(connectionId);
|
|
429
|
-
// Create agent with the Microsoft Fabric tool and process assistant run
|
|
430
|
-
const agent = await client.agents.createAgent("gpt-4o", {
|
|
431
|
-
name: "my-agent",
|
|
432
|
-
instructions: "You are a helpful agent",
|
|
433
|
-
tools: [fabricTool.definition],
|
|
434
|
-
});
|
|
435
|
-
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
#### Create Thread
|
|
439
|
-
|
|
440
|
-
For each session or conversation, a thread is required. Here is an example:
|
|
441
|
-
|
|
442
|
-
```ts snippet:createThread
|
|
443
|
-
const thread = await client.agents.createThread();
|
|
444
|
-
```
|
|
445
196
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
const localFileStream = fs.createReadStream(filePath);
|
|
454
|
-
const file = await client.agents.uploadFile(localFileStream, "assistants", {
|
|
455
|
-
fileName: "sample_file_for_upload.csv",
|
|
456
|
-
});
|
|
457
|
-
console.log(`Uploaded file, ID: ${file.id}`);
|
|
458
|
-
const vectorStore = await client.agents.createVectorStore({
|
|
459
|
-
fileIds: [file.id],
|
|
460
|
-
});
|
|
461
|
-
console.log(`Created vector store, ID: ${vectorStore.id}`);
|
|
462
|
-
const fileSearchTool = ToolUtility.createFileSearchTool([vectorStore.id]);
|
|
463
|
-
const agent = await client.agents.createAgent("gpt-4o", {
|
|
464
|
-
name: "myAgent",
|
|
465
|
-
instructions: "You are helpful agent that can help fetch data from files you know about.",
|
|
466
|
-
tools: [fileSearchTool.definition],
|
|
467
|
-
});
|
|
468
|
-
console.log(`Created agent, agent ID : ${agent.id}`);
|
|
469
|
-
// Create thread with file resources.
|
|
470
|
-
// If the agent has multiple threads, only this thread can search this file.
|
|
471
|
-
const thread = await client.agents.createThread({ toolResources: fileSearchTool.resources });
|
|
472
|
-
```
|
|
473
|
-
|
|
474
|
-
#### List Threads
|
|
475
|
-
|
|
476
|
-
To list all threads attached to a given agent, use the list_threads API:
|
|
477
|
-
|
|
478
|
-
```ts snippet:listThreads
|
|
479
|
-
const threads = await client.agents.listThreads();
|
|
480
|
-
console.log(`Threads for agent ${agent.id}:`);
|
|
481
|
-
for await (const t of (await threads).data) {
|
|
482
|
-
console.log(`Thread ID: ${t.id}`);
|
|
483
|
-
console.log(`Created at: ${t.createdAt}`);
|
|
484
|
-
console.log(`Metadata: ${t.metadata}`);
|
|
485
|
-
console.log(`---- `);
|
|
197
|
+
// Get a single deployment by name
|
|
198
|
+
if (deployments.length > 0) {
|
|
199
|
+
const deploymentName = deployments[0].name;
|
|
200
|
+
console.log(`Get a single deployment named '${deploymentName}':`);
|
|
201
|
+
const singleDeployment = await project.deployments.get(deploymentName);
|
|
202
|
+
console.log(`Retrieved deployment: ${JSON.stringify(singleDeployment, null, 2)}`);
|
|
486
203
|
}
|
|
487
204
|
```
|
|
488
205
|
|
|
489
|
-
|
|
206
|
+
### Connections operations
|
|
490
207
|
|
|
491
|
-
|
|
208
|
+
The code below shows some Connection operations, which allow you to enumerate the Azure Resources connected to your AI Foundry Projects. These connections can be seen in the "Management Center", in the "Connected resources" tab in your AI Foundry Project. Full samples can be found under the "connections" folder in the [package samples][samples].
|
|
492
209
|
|
|
493
|
-
```ts snippet:
|
|
494
|
-
|
|
495
|
-
role: "user",
|
|
496
|
-
content: "hello, world!",
|
|
497
|
-
});
|
|
498
|
-
console.log(`Created message, message ID: ${message.id}`);
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
#### Create Message with File Search Attachment
|
|
502
|
-
|
|
503
|
-
To attach a file to a message for content searching, you use `ToolUtility.createFileSearchTool()` and the `attachments` argument:
|
|
210
|
+
```ts snippet:connections
|
|
211
|
+
import { Connection } from "@azure/ai-projects";
|
|
504
212
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
fileId: file.id,
|
|
514
|
-
tools: [fileSearchTool.definition],
|
|
515
|
-
},
|
|
516
|
-
});
|
|
517
|
-
```
|
|
518
|
-
|
|
519
|
-
#### Create Message with Code Interpreter Attachment
|
|
213
|
+
// List the details of all the connections
|
|
214
|
+
const connections: Connection[] = [];
|
|
215
|
+
const connectionNames: string[] = [];
|
|
216
|
+
for await (const connection of project.connections.list()) {
|
|
217
|
+
connections.push(connection);
|
|
218
|
+
connectionNames.push(connection.name);
|
|
219
|
+
}
|
|
220
|
+
console.log(`Retrieved connections: ${connectionNames}`);
|
|
520
221
|
|
|
521
|
-
|
|
222
|
+
// Get the details of a connection, without credentials
|
|
223
|
+
const connectionName = connections[0].name;
|
|
224
|
+
const connection = await project.connections.get(connectionName);
|
|
225
|
+
console.log(`Retrieved connection ${JSON.stringify(connection, null, 2)}`);
|
|
522
226
|
|
|
523
|
-
|
|
227
|
+
const connectionWithCredentials = await project.connections.getWithCredentials(connectionName);
|
|
228
|
+
console.log(
|
|
229
|
+
`Retrieved connection with credentials ${JSON.stringify(connectionWithCredentials, null, 2)}`,
|
|
230
|
+
);
|
|
524
231
|
|
|
525
|
-
|
|
526
|
-
|
|
232
|
+
// List all connections of a specific type
|
|
233
|
+
const azureAIConnections: Connection[] = [];
|
|
234
|
+
for await (const azureOpenAIConnection of project.connections.list({
|
|
235
|
+
connectionType: "AzureOpenAI",
|
|
236
|
+
defaultConnection: true,
|
|
237
|
+
})) {
|
|
238
|
+
azureAIConnections.push(azureOpenAIConnection);
|
|
239
|
+
}
|
|
240
|
+
console.log(`Retrieved ${azureAIConnections.length} Azure OpenAI connections`);
|
|
527
241
|
|
|
528
|
-
//
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
const agent = await client.agents.createAgent("gpt-4-1106-preview", {
|
|
532
|
-
name: "my-assistant",
|
|
533
|
-
instructions: "You are helpful assistant",
|
|
534
|
-
tools: [codeInterpreterTool.definition],
|
|
535
|
-
});
|
|
536
|
-
console.log(`Created agent, agent ID: ${agent.id}`);
|
|
537
|
-
const thread = await client.agents.createThread();
|
|
538
|
-
console.log(`Created thread, thread ID: ${thread.id}`);
|
|
539
|
-
const message = await client.agents.createMessage(thread.id, {
|
|
540
|
-
role: "user",
|
|
541
|
-
content:
|
|
542
|
-
"Could you please create bar chart in TRANSPORTATION sector for the operating profit from the uploaded csv file and provide file to me?",
|
|
543
|
-
attachments: {
|
|
544
|
-
fileId: file.id,
|
|
545
|
-
tools: [codeInterpreterTool.definition],
|
|
546
|
-
},
|
|
547
|
-
});
|
|
548
|
-
console.log(`Created message, message ID: ${message.id}`);
|
|
242
|
+
// Get the details of a default connection
|
|
243
|
+
const defaultConnection = await project.connections.getDefault("AzureOpenAI", true);
|
|
244
|
+
console.log(`Retrieved default connection ${JSON.stringify(defaultConnection, null, 2)}`);
|
|
549
245
|
```
|
|
550
246
|
|
|
551
|
-
|
|
247
|
+
### Dataset operations
|
|
552
248
|
|
|
553
|
-
|
|
249
|
+
The code below shows some Dataset operations. Full samples can be found under the "datasets"
|
|
250
|
+
folder in the [package samples][samples].
|
|
554
251
|
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
- **Using a base64 encoded image string**
|
|
252
|
+
```ts snippet:datasets
|
|
253
|
+
import { DatasetVersionUnion } from "@azure/ai-projects";
|
|
558
254
|
|
|
559
|
-
|
|
255
|
+
const VERSION1 = "1.0";
|
|
256
|
+
const VERSION2 = "2.0";
|
|
257
|
+
const VERSION3 = "3.0";
|
|
560
258
|
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
fileName: "image_file.png",
|
|
568
|
-
});
|
|
569
|
-
console.log(`Uploaded file, file ID: ${imageFile.id}`);
|
|
570
|
-
// Create a message with both text and image content
|
|
571
|
-
console.log("Creating message with image content...");
|
|
572
|
-
const inputMessage = "Hello, what is in the image?";
|
|
573
|
-
const content = [
|
|
574
|
-
{
|
|
575
|
-
type: "text",
|
|
576
|
-
text: inputMessage,
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
type: "image_file",
|
|
580
|
-
image_file: {
|
|
581
|
-
file_id: imageFile.id,
|
|
582
|
-
detail: "high",
|
|
583
|
-
},
|
|
584
|
-
},
|
|
585
|
-
];
|
|
586
|
-
const message = await client.agents.createMessage(thread.id, {
|
|
587
|
-
role: "user",
|
|
588
|
-
content: content,
|
|
589
|
-
});
|
|
590
|
-
console.log(`Created message, message ID: ${message.id}`);
|
|
591
|
-
```
|
|
259
|
+
// sample files to use in the demonstration
|
|
260
|
+
const sampleFolder = "sample_folder";
|
|
261
|
+
// Create a unique dataset name for this sample run
|
|
262
|
+
const datasetName = `sample-dataset-basic`;
|
|
263
|
+
console.log("Upload a single file and create a new Dataset to reference the file.");
|
|
264
|
+
console.log("Here we explicitly specify the dataset version.");
|
|
592
265
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
// Create content directly referencing image URL
|
|
600
|
-
const inputMessage = "Hello, what is in the image?";
|
|
601
|
-
const content = [
|
|
602
|
-
{
|
|
603
|
-
type: "text",
|
|
604
|
-
text: inputMessage,
|
|
605
|
-
},
|
|
606
|
-
{
|
|
607
|
-
type: "image_url",
|
|
608
|
-
image_url: {
|
|
609
|
-
url: imageUrl,
|
|
610
|
-
detail: "high",
|
|
611
|
-
},
|
|
612
|
-
},
|
|
613
|
-
];
|
|
614
|
-
const message = await client.agents.createMessage(thread.id, {
|
|
615
|
-
role: "user",
|
|
616
|
-
content: content,
|
|
617
|
-
});
|
|
618
|
-
console.log(`Created message, message ID: ${message.id}`);
|
|
619
|
-
```
|
|
266
|
+
const dataset1 = await project.datasets.uploadFile(
|
|
267
|
+
datasetName,
|
|
268
|
+
VERSION1,
|
|
269
|
+
path.join(__dirname, sampleFolder, "sample_file1.txt"),
|
|
270
|
+
);
|
|
271
|
+
console.log("Dataset1 created:", JSON.stringify(dataset1, null, 2));
|
|
620
272
|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
273
|
+
const credential = project.datasets.getCredentials(dataset1.name, dataset1.version, {});
|
|
274
|
+
console.log("Credential for the dataset:", credential);
|
|
275
|
+
console.log(
|
|
276
|
+
"Upload all files in a folder (including subfolders) to the existing Dataset to reference the folder.",
|
|
277
|
+
);
|
|
278
|
+
console.log("Here again we explicitly specify a new dataset version");
|
|
279
|
+
const dataset2 = await project.datasets.uploadFolder(
|
|
280
|
+
datasetName,
|
|
281
|
+
VERSION2,
|
|
282
|
+
path.join(__dirname, sampleFolder),
|
|
283
|
+
);
|
|
284
|
+
console.log("Dataset2 created:", JSON.stringify(dataset2, null, 2));
|
|
285
|
+
console.log(
|
|
286
|
+
"Upload a single file to the existing dataset, while letting the service increment the version",
|
|
287
|
+
);
|
|
288
|
+
const dataset3 = await project.datasets.uploadFile(
|
|
289
|
+
datasetName,
|
|
290
|
+
VERSION3,
|
|
291
|
+
path.join(__dirname, sampleFolder, "sample_file2.txt"),
|
|
292
|
+
);
|
|
293
|
+
console.log("Dataset3 created:", JSON.stringify(dataset3, null, 2));
|
|
294
|
+
|
|
295
|
+
console.log("Get an existing Dataset version `1`:");
|
|
296
|
+
const datasetVersion1 = await project.datasets.get(datasetName, VERSION1);
|
|
297
|
+
console.log("Dataset version 1:", JSON.stringify(datasetVersion1, null, 2));
|
|
298
|
+
console.log(`Listing all versions of the Dataset named '${datasetName}':`);
|
|
299
|
+
const datasetVersions = await project.datasets.listVersions(datasetName);
|
|
300
|
+
for await (const version of datasetVersions) {
|
|
301
|
+
console.log("List versions:", version);
|
|
636
302
|
}
|
|
637
|
-
|
|
638
|
-
const
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
const content = [
|
|
642
|
-
{
|
|
643
|
-
type: "text",
|
|
644
|
-
text: inputMessage,
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
type: "image_url",
|
|
648
|
-
image_url: {
|
|
649
|
-
url: imageDataUrl,
|
|
650
|
-
detail: "high",
|
|
651
|
-
},
|
|
652
|
-
},
|
|
653
|
-
];
|
|
654
|
-
const message = await client.agents.createMessage(thread.id, {
|
|
655
|
-
role: "user",
|
|
656
|
-
content: content,
|
|
657
|
-
});
|
|
658
|
-
console.log(`Created message, message ID: ${message.id}`);
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
#### Create Run, Run_and_Process, or Stream
|
|
662
|
-
|
|
663
|
-
Here is an example of `createRun` and poll until the run is completed:
|
|
664
|
-
|
|
665
|
-
```ts snippet:createRun
|
|
666
|
-
let run = await client.agents.createRun(thread.id, agent.id);
|
|
667
|
-
// Poll the run as long as run status is queued or in progress
|
|
668
|
-
while (
|
|
669
|
-
run.status === "queued" ||
|
|
670
|
-
run.status === "in_progress" ||
|
|
671
|
-
run.status === "requires_action"
|
|
672
|
-
) {
|
|
673
|
-
// Wait for a second
|
|
674
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
675
|
-
run = await client.agents.getRun(thread.id, run.id);
|
|
303
|
+
console.log("List latest versions of all Datasets:");
|
|
304
|
+
const latestDatasets = project.datasets.list();
|
|
305
|
+
for await (const dataset of latestDatasets) {
|
|
306
|
+
console.log("List datasets:", dataset);
|
|
676
307
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
308
|
+
// List the details of all the datasets
|
|
309
|
+
const datasets = project.datasets.listVersions(datasetName);
|
|
310
|
+
const allDatasets: DatasetVersionUnion[] = [];
|
|
311
|
+
for await (const dataset of datasets) {
|
|
312
|
+
allDatasets.push(dataset);
|
|
313
|
+
}
|
|
314
|
+
console.log(`Retrieved ${allDatasets.length} datasets`);
|
|
315
|
+
console.log("Delete all Datasets created above:");
|
|
316
|
+
await project.datasets.delete(datasetName, VERSION1);
|
|
317
|
+
await project.datasets.delete(datasetName, VERSION2);
|
|
318
|
+
await project.datasets.delete(datasetName, dataset3.version);
|
|
319
|
+
console.log("All specified Datasets have been deleted.");
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
### Indexes operations
|
|
323
|
+
|
|
324
|
+
The code below shows some Indexes operations. Full samples can be found under the "indexes"
|
|
325
|
+
folder in the [package samples][samples].
|
|
326
|
+
|
|
327
|
+
```ts snippet:indexes
|
|
328
|
+
import { AzureAISearchIndex } from "@azure/ai-projects";
|
|
329
|
+
|
|
330
|
+
const indexName = "sample-index";
|
|
331
|
+
const version = "1";
|
|
332
|
+
const azureAIConnectionConfig: AzureAISearchIndex = {
|
|
333
|
+
name: indexName,
|
|
334
|
+
type: "AzureSearch",
|
|
335
|
+
version,
|
|
336
|
+
indexName,
|
|
337
|
+
connectionName: "sample-connection",
|
|
338
|
+
};
|
|
682
339
|
|
|
683
|
-
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
340
|
+
// Create a new Index
|
|
341
|
+
const newIndex = await project.indexes.createOrUpdate(indexName, version, azureAIConnectionConfig);
|
|
342
|
+
console.log("Created a new Index:", newIndex);
|
|
343
|
+
console.log(`Get an existing Index version '${version}':`);
|
|
344
|
+
const index = await project.indexes.get(indexName, version);
|
|
345
|
+
console.log(index);
|
|
346
|
+
console.log(`Listing all versions of the Index named '${indexName}':`);
|
|
347
|
+
const indexVersions = project.indexes.listVersions(indexName);
|
|
348
|
+
for await (const indexVersion of indexVersions) {
|
|
349
|
+
console.log(indexVersion);
|
|
350
|
+
}
|
|
351
|
+
console.log("List all Indexes:");
|
|
352
|
+
const allIndexes = project.indexes.list();
|
|
353
|
+
for await (const i of allIndexes) {
|
|
354
|
+
console.log("Index:", i);
|
|
355
|
+
}
|
|
356
|
+
console.log("Delete the Index versions created above:");
|
|
357
|
+
await project.indexes.delete(indexName, version);
|
|
694
358
|
```
|
|
695
359
|
|
|
696
|
-
|
|
360
|
+
### Evaluation
|
|
697
361
|
|
|
698
|
-
|
|
362
|
+
Evaluation in Azure AI Project client library is designed to assess the performance of generative AI applications in the cloud. The output of Generative AI application is quantitively measured with mathematical based metrics, AI-assisted quality and safety metrics. Metrics are defined as evaluators. Built-in or custom evaluators can provide comprehensive insights into the application's capabilities and limitations.
|
|
699
363
|
|
|
700
|
-
|
|
701
|
-
const streamEventMessages = await client.agents.createRun(thread.id, agent.id).stream();
|
|
702
|
-
```
|
|
364
|
+
#### Evaluator
|
|
703
365
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
```ts snippet:eventHandling
|
|
707
|
-
import {
|
|
708
|
-
RunStreamEvent,
|
|
709
|
-
ThreadRunOutput,
|
|
710
|
-
MessageStreamEvent,
|
|
711
|
-
MessageDeltaChunk,
|
|
712
|
-
MessageDeltaTextContent,
|
|
713
|
-
DoneEvent,
|
|
714
|
-
} from "@azure/ai-projects";
|
|
715
|
-
|
|
716
|
-
const streamEventMessages = await client.agents.createRun(thread.id, agent.id).stream();
|
|
717
|
-
for await (const eventMessage of streamEventMessages) {
|
|
718
|
-
switch (eventMessage.event) {
|
|
719
|
-
case RunStreamEvent.ThreadRunCreated:
|
|
720
|
-
console.log(`ThreadRun status: ${(eventMessage.data as ThreadRunOutput).status}`);
|
|
721
|
-
break;
|
|
722
|
-
case MessageStreamEvent.ThreadMessageDelta:
|
|
723
|
-
{
|
|
724
|
-
const messageDelta = eventMessage.data as MessageDeltaChunk;
|
|
725
|
-
messageDelta.delta.content.forEach((contentPart) => {
|
|
726
|
-
if (contentPart.type === "text") {
|
|
727
|
-
const textContent = contentPart as MessageDeltaTextContent;
|
|
728
|
-
const textValue = textContent.text?.value || "No text";
|
|
729
|
-
console.log(`Text delta received:: ${textValue}`);
|
|
730
|
-
}
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
break;
|
|
734
|
-
case RunStreamEvent.ThreadRunCompleted:
|
|
735
|
-
console.log("Thread Run Completed");
|
|
736
|
-
break;
|
|
737
|
-
case ErrorEvent.Error:
|
|
738
|
-
console.log(`An error occurred. Data ${eventMessage.data}`);
|
|
739
|
-
break;
|
|
740
|
-
case DoneEvent.Done:
|
|
741
|
-
console.log("Stream completed.");
|
|
742
|
-
break;
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
```
|
|
366
|
+
Evaluators are custom or prebuilt classes or functions that are designed to measure the quality of the outputs from language models or generative AI applications.
|
|
746
367
|
|
|
747
|
-
|
|
368
|
+
Evaluators are made available via [azure-ai-evaluation][azure_ai_evaluation] SDK for local experience and also in [Evaluator Library][evaluator_library] in Azure AI Foundry for using them in the cloud.
|
|
748
369
|
|
|
749
|
-
|
|
370
|
+
More details on built-in and custom evaluators can be found [here][evaluators].
|
|
750
371
|
|
|
751
|
-
|
|
752
|
-
import { MessageContentOutput, isOutputOfType, MessageTextContentOutput } from "@azure/ai-projects";
|
|
372
|
+
#### Run Evaluation in the cloud
|
|
753
373
|
|
|
754
|
-
|
|
755
|
-
while (messages.hasMore) {
|
|
756
|
-
const nextMessages = await client.agents.listMessages(currentRun.threadId, {
|
|
757
|
-
after: messages.lastId,
|
|
758
|
-
});
|
|
759
|
-
messages.data = messages.data.concat(nextMessages.data);
|
|
760
|
-
messages.hasMore = nextMessages.hasMore;
|
|
761
|
-
messages.lastId = nextMessages.lastId;
|
|
762
|
-
}
|
|
763
|
-
// The messages are following in the reverse order,
|
|
764
|
-
// we will iterate them and output only text contents.
|
|
765
|
-
for (const dataPoint of messages.data.reverse()) {
|
|
766
|
-
const lastMessageContent: MessageContentOutput = dataPoint.content[dataPoint.content.length - 1];
|
|
767
|
-
console.log(lastMessageContent);
|
|
768
|
-
if (isOutputOfType<MessageTextContentOutput>(lastMessageContent, "text")) {
|
|
769
|
-
console.log(
|
|
770
|
-
`${dataPoint.role}: ${(lastMessageContent as MessageTextContentOutput).text.value}`,
|
|
771
|
-
);
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
```
|
|
374
|
+
To run evaluation in the cloud the following are needed:
|
|
775
375
|
|
|
776
|
-
|
|
376
|
+
- Evaluators
|
|
377
|
+
- Data to be evaluated
|
|
378
|
+
- [Optional] Azure Open AI model.
|
|
777
379
|
|
|
778
|
-
|
|
380
|
+
##### Evaluators
|
|
779
381
|
|
|
780
|
-
|
|
382
|
+
For running evaluator in the cloud, evaluator `ID` is needed. To get it via code you use [azure-ai-evaluation][azure_ai_evaluation]
|
|
781
383
|
|
|
782
|
-
```ts snippet:
|
|
783
|
-
import {
|
|
784
|
-
isOutputOfType,
|
|
785
|
-
MessageTextContentOutput,
|
|
786
|
-
MessageImageFileContentOutput,
|
|
787
|
-
} from "@azure/ai-projects";
|
|
384
|
+
```ts snippet:datasetUpload
|
|
385
|
+
import { DatasetVersion } from "@azure/ai-projects";
|
|
788
386
|
|
|
789
|
-
const
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
isOutputOfType<MessageTextContentOutput>(content, "text"),
|
|
795
|
-
) as MessageTextContentOutput;
|
|
796
|
-
if (textContent) {
|
|
797
|
-
console.log(`Last message: ${textContent.text.value}`);
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
const imageFile = (messages.data[0].content[0] as MessageImageFileContentOutput).imageFile;
|
|
801
|
-
const imageFileName = (await client.agents.getFile(imageFile.fileId)).filename;
|
|
802
|
-
const fileContent = await (
|
|
803
|
-
await client.agents.getFileContent(imageFile.fileId).asNodeStream()
|
|
804
|
-
).body;
|
|
805
|
-
if (fileContent) {
|
|
806
|
-
const chunks: Buffer[] = [];
|
|
807
|
-
for await (const chunk of fileContent) {
|
|
808
|
-
chunks.push(Buffer.from(chunk));
|
|
809
|
-
}
|
|
810
|
-
const buffer = Buffer.concat(chunks);
|
|
811
|
-
fs.writeFileSync(imageFileName, buffer);
|
|
812
|
-
} else {
|
|
813
|
-
console.error("Failed to retrieve file content: fileContent is undefined");
|
|
814
|
-
}
|
|
815
|
-
console.log(`Saved image file to: ${imageFileName}`);
|
|
387
|
+
const dataset: DatasetVersion = await project.datasets.uploadFile(
|
|
388
|
+
"jss-eval-sample-dataset",
|
|
389
|
+
"1",
|
|
390
|
+
"./samples_folder/sample_data_evaluation.jsonl",
|
|
391
|
+
);
|
|
816
392
|
```
|
|
817
393
|
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
To remove resources after completing tasks, use the following functions:
|
|
394
|
+
##### Data to be evaluated
|
|
821
395
|
|
|
822
|
-
|
|
823
|
-
await client.agents.deleteVectorStore(vectorStore.id);
|
|
824
|
-
console.log(`Deleted vector store, vector store ID: ${vectorStore.id}`);
|
|
825
|
-
await client.agents.deleteFile(file.id);
|
|
826
|
-
console.log(`Deleted file, file ID: ${file.id}`);
|
|
827
|
-
client.agents.deleteAgent(agent.id);
|
|
828
|
-
console.log(`Deleted agent, agent ID: ${agent.id}`);
|
|
829
|
-
```
|
|
396
|
+
Evaluation in the cloud supports data in form of `jsonl` file. Data can be uploaded via the helper method `upload_file` on the project client.
|
|
830
397
|
|
|
831
|
-
|
|
398
|
+
```ts snippet:datasetUpload
|
|
399
|
+
import { DatasetVersion } from "@azure/ai-projects";
|
|
832
400
|
|
|
833
|
-
|
|
401
|
+
const dataset: DatasetVersion = await project.datasets.uploadFile(
|
|
402
|
+
"jss-eval-sample-dataset",
|
|
403
|
+
"1",
|
|
404
|
+
"./samples_folder/sample_data_evaluation.jsonl",
|
|
405
|
+
);
|
|
406
|
+
```
|
|
834
407
|
|
|
835
|
-
|
|
408
|
+
##### [Optional] Azure OpenAI Model
|
|
836
409
|
|
|
837
|
-
|
|
410
|
+
Azure AI Foundry project comes with a default Azure Open AI endpoint which can be easily accessed using following code. This gives you the endpoint details for you Azure OpenAI endpoint. Some of the evaluators need model that supports chat completion.
|
|
838
411
|
|
|
839
|
-
```
|
|
840
|
-
|
|
841
|
-
@opentelemetry/instrumentation \
|
|
842
|
-
@opentelemetry/sdk-trace-node \
|
|
843
|
-
@azure/opentelemetry-instrumentation-azure-sdk \
|
|
844
|
-
@azure/monitor-opentelemetry-exporter
|
|
412
|
+
```ts snippet:getDefault
|
|
413
|
+
const defaultConnection = await project.connections.getDefault("AzureOpenAI");
|
|
845
414
|
```
|
|
846
415
|
|
|
847
|
-
|
|
416
|
+
##### Example Remote Evaluation
|
|
848
417
|
|
|
849
|
-
|
|
418
|
+
```ts snippet:evaluations
|
|
419
|
+
import { EvaluationWithOptionalName, EvaluatorIds, Evaluation } from "@azure/ai-projects";
|
|
850
420
|
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
|
|
421
|
+
const newEvaluation: EvaluationWithOptionalName = {
|
|
422
|
+
displayName: "Evaluation 1",
|
|
423
|
+
description: "This is a test evaluation",
|
|
424
|
+
data: {
|
|
425
|
+
type: "dataset",
|
|
426
|
+
id: "data-id", // dataset.name
|
|
427
|
+
},
|
|
428
|
+
evaluators: {
|
|
429
|
+
relevance: {
|
|
430
|
+
id: EvaluatorIds.RELEVANCE,
|
|
431
|
+
initParams: {
|
|
432
|
+
deploymentName: "gpt-4o-mini",
|
|
433
|
+
},
|
|
434
|
+
dataMapping: {
|
|
435
|
+
query: "${data.query}",
|
|
436
|
+
response: "${data.response}",
|
|
437
|
+
},
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
};
|
|
441
|
+
const evalResp = await project.evaluations.createRun(newEvaluation);
|
|
442
|
+
console.log("Create a new evaluation:", JSON.stringify(evalResp, null, 2));
|
|
443
|
+
// get the evaluation by ID
|
|
444
|
+
const eval2 = await project.evaluations.get(evalResp.name);
|
|
445
|
+
console.log("Get the evaluation by ID:", eval2);
|
|
446
|
+
|
|
447
|
+
const evaluations: Evaluation[] = [];
|
|
448
|
+
const evaluationNames: string[] = [];
|
|
449
|
+
for await (const evaluation of project.evaluations.list()) {
|
|
450
|
+
evaluations.push(evaluation);
|
|
451
|
+
evaluationNames.push(evaluation.displayName ?? "");
|
|
883
452
|
}
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
453
|
+
console.log("List of evaluation display names:", evaluationNames);
|
|
454
|
+
|
|
455
|
+
// This is temporary, as interface recommend the name of the evaluation
|
|
456
|
+
const name = evaluations[0].name;
|
|
457
|
+
const evaluation = await project.evaluations.get(name);
|
|
458
|
+
console.log("Get an evaluation by ID:", JSON.stringify(evaluation, null, 2));
|
|
888
459
|
```
|
|
889
460
|
|
|
461
|
+
NOTE: For running evaluators locally refer to [Evaluate with the Azure AI Evaluation SDK][evaluators].
|
|
462
|
+
|
|
890
463
|
## Troubleshooting
|
|
891
464
|
|
|
892
465
|
### Exceptions
|
|
@@ -894,12 +467,12 @@ await tracer.startActiveSpan("main", async (span) => {
|
|
|
894
467
|
Client methods that make service calls raise an [RestError](https://learn.microsoft.com/javascript/api/%40azure/core-rest-pipeline/resterror) for a non-success HTTP status code response from the service. The exception's `code` will hold the HTTP response status code. The exception's `error.message` contains a detailed message that may be helpful in diagnosing the issue:
|
|
895
468
|
|
|
896
469
|
```ts snippet:exceptions
|
|
897
|
-
import {
|
|
470
|
+
import { isRestError } from "@azure/core-rest-pipeline";
|
|
898
471
|
|
|
899
472
|
try {
|
|
900
|
-
const result = await
|
|
473
|
+
const result = await project.connections.list();
|
|
901
474
|
} catch (e) {
|
|
902
|
-
if (e
|
|
475
|
+
if (isRestError(e)) {
|
|
903
476
|
console.log(`Status code: ${e.code}`);
|
|
904
477
|
console.log(e.message);
|
|
905
478
|
} else {
|
|
@@ -944,8 +517,9 @@ additional questions or comments.
|
|
|
944
517
|
|
|
945
518
|
[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/
|
|
946
519
|
[entra_id]: https://learn.microsoft.com/azure/ai-services/authentication?tabs=powershell#authenticate-with-microsoft-entra-id
|
|
947
|
-
[azure_identity_npm]: https://www.npmjs.com/package/@azure/identity
|
|
948
520
|
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
|
949
521
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
950
522
|
[evaluators]: https://learn.microsoft.com/azure/ai-studio/how-to/develop/evaluate-sdk
|
|
951
523
|
[evaluator_library]: https://learn.microsoft.com/azure/ai-studio/how-to/evaluate-generative-ai-app#view-and-manage-the-evaluators-in-the-evaluator-library
|
|
524
|
+
[azure_ai_evaluation]: https://learn.microsoft.com/javascript/api/overview/azure/ai-projects-readme
|
|
525
|
+
[samples]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/ai/ai-projects/samples
|