@azure/ai-agents 1.0.0-alpha.20250505.3 → 1.0.0-alpha.20250507.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/agentsClient.d.ts +31 -93
- package/dist/browser/agentsClient.d.ts.map +1 -1
- package/dist/browser/agentsClient.js +17 -168
- package/dist/browser/agentsClient.js.map +1 -1
- package/dist/browser/api/files/index.d.ts +3 -0
- package/dist/browser/api/files/index.d.ts.map +1 -0
- package/dist/browser/api/files/index.js +4 -0
- package/dist/browser/api/files/index.js.map +1 -0
- package/dist/browser/api/files/operations.d.ts +45 -0
- package/dist/browser/api/files/operations.d.ts.map +1 -0
- package/dist/browser/api/files/operations.js +154 -0
- package/dist/browser/api/files/operations.js.map +1 -0
- package/dist/browser/api/files/options.d.ts +23 -0
- package/dist/browser/api/files/options.d.ts.map +1 -0
- package/dist/browser/api/files/options.js +4 -0
- package/dist/browser/api/files/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -2
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/messages/index.d.ts +3 -0
- package/dist/browser/api/messages/index.d.ts.map +1 -0
- package/dist/browser/api/messages/index.js +4 -0
- package/dist/browser/api/messages/index.js.map +1 -0
- package/dist/browser/api/messages/operations.d.ts +22 -0
- package/dist/browser/api/messages/operations.d.ts.map +1 -0
- package/dist/browser/api/messages/operations.js +108 -0
- package/dist/browser/api/messages/operations.js.map +1 -0
- package/dist/browser/api/messages/options.d.ts +31 -0
- package/dist/browser/api/messages/options.d.ts.map +1 -0
- package/dist/browser/api/messages/options.js +4 -0
- package/dist/browser/api/messages/options.js.map +1 -0
- package/dist/browser/api/operations.d.ts +8 -183
- package/dist/browser/api/operations.d.ts.map +1 -1
- package/dist/browser/api/operations.js +14 -1063
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/options.d.ts +25 -322
- package/dist/browser/api/options.d.ts.map +1 -1
- package/dist/browser/api/options.js.map +1 -1
- package/dist/browser/api/runSteps/index.d.ts +3 -0
- package/dist/browser/api/runSteps/index.d.ts.map +1 -0
- package/dist/browser/api/runSteps/index.js +4 -0
- package/dist/browser/api/runSteps/index.js.map +1 -0
- package/dist/browser/api/runSteps/operations.d.ts +14 -0
- package/dist/browser/api/runSteps/operations.d.ts.map +1 -0
- package/dist/browser/api/runSteps/operations.js +67 -0
- package/dist/browser/api/runSteps/operations.js.map +1 -0
- package/dist/browser/api/runSteps/options.d.ts +27 -0
- package/dist/browser/api/runSteps/options.d.ts.map +1 -0
- package/dist/browser/api/runSteps/options.js +4 -0
- package/dist/browser/api/runSteps/options.js.map +1 -0
- package/dist/browser/api/runs/index.d.ts +3 -0
- package/dist/browser/api/runs/index.d.ts.map +1 -0
- package/dist/browser/api/runs/index.js +4 -0
- package/dist/browser/api/runs/index.js.map +1 -0
- package/dist/browser/api/runs/operations.d.ts +31 -0
- package/dist/browser/api/runs/operations.d.ts.map +1 -0
- package/dist/browser/api/runs/operations.js +190 -0
- package/dist/browser/api/runs/operations.js.map +1 -0
- package/dist/browser/api/runs/options.d.ts +92 -0
- package/dist/browser/api/runs/options.d.ts.map +1 -0
- package/dist/browser/api/runs/options.js +4 -0
- package/dist/browser/api/runs/options.js.map +1 -0
- package/dist/browser/api/threads/index.d.ts +3 -0
- package/dist/browser/api/threads/index.d.ts.map +1 -0
- package/dist/browser/api/threads/index.js +4 -0
- package/dist/browser/api/threads/index.js.map +1 -0
- package/dist/browser/api/threads/operations.d.ts +26 -0
- package/dist/browser/api/threads/operations.d.ts.map +1 -0
- package/dist/browser/api/threads/operations.js +131 -0
- package/dist/browser/api/threads/operations.js.map +1 -0
- package/dist/browser/api/threads/options.d.ts +44 -0
- package/dist/browser/api/threads/options.d.ts.map +1 -0
- package/dist/browser/api/threads/options.js +4 -0
- package/dist/browser/api/threads/options.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/browser/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/browser/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/browser/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/browser/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/index.js +4 -0
- package/dist/browser/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/browser/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/operations.js +176 -0
- package/dist/browser/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/browser/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/options.js +4 -0
- package/dist/browser/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/browser/api/vectorStores/index.d.ts +3 -0
- package/dist/browser/api/vectorStores/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/index.js +4 -0
- package/dist/browser/api/vectorStores/index.js.map +1 -0
- package/dist/browser/api/vectorStores/operations.d.ts +33 -0
- package/dist/browser/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/operations.js +184 -0
- package/dist/browser/api/vectorStores/operations.js.map +1 -0
- package/dist/browser/api/vectorStores/options.d.ts +45 -0
- package/dist/browser/api/vectorStores/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/options.js +4 -0
- package/dist/browser/api/vectorStores/options.js.map +1 -0
- package/dist/browser/classic/files/index.d.ts +22 -0
- package/dist/browser/classic/files/index.d.ts.map +1 -0
- package/dist/browser/classic/files/index.js +17 -0
- package/dist/browser/classic/files/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +9 -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/messages/index.d.ts +17 -0
- package/dist/browser/classic/messages/index.d.ts.map +1 -0
- package/dist/browser/classic/messages/index.js +15 -0
- package/dist/browser/classic/messages/index.js.map +1 -0
- package/dist/browser/classic/runSteps/index.d.ts +14 -0
- package/dist/browser/classic/runSteps/index.d.ts.map +1 -0
- package/dist/browser/classic/runSteps/index.js +13 -0
- package/dist/browser/classic/runSteps/index.js.map +1 -0
- package/dist/browser/classic/runs/index.d.ts +25 -0
- package/dist/browser/classic/runs/index.d.ts.map +1 -0
- package/dist/browser/classic/runs/index.js +19 -0
- package/dist/browser/classic/runs/index.js.map +1 -0
- package/dist/browser/classic/threads/index.d.ts +19 -0
- package/dist/browser/classic/threads/index.d.ts.map +1 -0
- package/dist/browser/classic/threads/index.js +16 -0
- package/dist/browser/classic/threads/index.js.map +1 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/browser/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/browser/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStoreFiles/index.js +14 -0
- package/dist/browser/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/browser/classic/vectorStores/index.d.ts +22 -0
- package/dist/browser/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStores/index.js +17 -0
- package/dist/browser/classic/vectorStores/index.js.map +1 -0
- package/dist/browser/index.d.ts +14 -3
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +390 -338
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +377 -297
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.js.map +1 -1
- 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.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +2 -2
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/utils.d.ts +26 -5
- package/dist/browser/utils.d.ts.map +1 -1
- package/dist/browser/utils.js +44 -8
- package/dist/browser/utils.js.map +1 -1
- package/dist/commonjs/agentsClient.d.ts +31 -93
- package/dist/commonjs/agentsClient.d.ts.map +1 -1
- package/dist/commonjs/agentsClient.js +16 -167
- package/dist/commonjs/agentsClient.js.map +1 -1
- package/dist/commonjs/api/files/index.d.ts +3 -0
- package/dist/commonjs/api/files/index.d.ts.map +1 -0
- package/dist/commonjs/api/files/index.js +12 -0
- package/dist/commonjs/api/files/index.js.map +1 -0
- package/dist/commonjs/api/files/operations.d.ts +45 -0
- package/dist/commonjs/api/files/operations.d.ts.map +1 -0
- package/dist/commonjs/api/files/operations.js +172 -0
- package/dist/commonjs/api/files/operations.js.map +1 -0
- package/dist/commonjs/api/files/options.d.ts +23 -0
- package/dist/commonjs/api/files/options.d.ts.map +1 -0
- package/dist/commonjs/api/files/options.js +5 -0
- package/dist/commonjs/api/files/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -2
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +2 -38
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/messages/index.d.ts +3 -0
- package/dist/commonjs/api/messages/index.d.ts.map +1 -0
- package/dist/commonjs/api/messages/index.js +11 -0
- package/dist/commonjs/api/messages/index.js.map +1 -0
- package/dist/commonjs/api/messages/operations.d.ts +22 -0
- package/dist/commonjs/api/messages/operations.d.ts.map +1 -0
- package/dist/commonjs/api/messages/operations.js +122 -0
- package/dist/commonjs/api/messages/operations.js.map +1 -0
- package/dist/commonjs/api/messages/options.d.ts +31 -0
- package/dist/commonjs/api/messages/options.d.ts.map +1 -0
- package/dist/commonjs/api/messages/options.js +5 -0
- package/dist/commonjs/api/messages/options.js.map +1 -0
- package/dist/commonjs/api/operations.d.ts +8 -183
- package/dist/commonjs/api/operations.d.ts.map +1 -1
- package/dist/commonjs/api/operations.js +14 -1176
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/options.d.ts +25 -322
- package/dist/commonjs/api/options.d.ts.map +1 -1
- package/dist/commonjs/api/options.js.map +1 -1
- package/dist/commonjs/api/runSteps/index.d.ts +3 -0
- package/dist/commonjs/api/runSteps/index.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/index.js +9 -0
- package/dist/commonjs/api/runSteps/index.js.map +1 -0
- package/dist/commonjs/api/runSteps/operations.d.ts +14 -0
- package/dist/commonjs/api/runSteps/operations.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/operations.js +75 -0
- package/dist/commonjs/api/runSteps/operations.js.map +1 -0
- package/dist/commonjs/api/runSteps/options.d.ts +27 -0
- package/dist/commonjs/api/runSteps/options.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/options.js +5 -0
- package/dist/commonjs/api/runSteps/options.js.map +1 -0
- package/dist/commonjs/api/runs/index.d.ts +3 -0
- package/dist/commonjs/api/runs/index.d.ts.map +1 -0
- package/dist/commonjs/api/runs/index.js +13 -0
- package/dist/commonjs/api/runs/index.js.map +1 -0
- package/dist/commonjs/api/runs/operations.d.ts +31 -0
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -0
- package/dist/commonjs/api/runs/operations.js +210 -0
- package/dist/commonjs/api/runs/operations.js.map +1 -0
- package/dist/commonjs/api/runs/options.d.ts +92 -0
- package/dist/commonjs/api/runs/options.d.ts.map +1 -0
- package/dist/commonjs/api/runs/options.js +5 -0
- package/dist/commonjs/api/runs/options.js.map +1 -0
- package/dist/commonjs/api/threads/index.d.ts +3 -0
- package/dist/commonjs/api/threads/index.d.ts.map +1 -0
- package/dist/commonjs/api/threads/index.js +12 -0
- package/dist/commonjs/api/threads/index.js.map +1 -0
- package/dist/commonjs/api/threads/operations.d.ts +26 -0
- package/dist/commonjs/api/threads/operations.d.ts.map +1 -0
- package/dist/commonjs/api/threads/operations.js +148 -0
- package/dist/commonjs/api/threads/operations.js.map +1 -0
- package/dist/commonjs/api/threads/options.d.ts +44 -0
- package/dist/commonjs/api/threads/options.d.ts.map +1 -0
- package/dist/commonjs/api/threads/options.js +5 -0
- package/dist/commonjs/api/threads/options.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.js +11 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js +177 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.js +5 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/index.js +11 -0
- package/dist/commonjs/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.js +192 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/commonjs/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/options.js +5 -0
- package/dist/commonjs/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/commonjs/api/vectorStores/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStores/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/index.js +12 -0
- package/dist/commonjs/api/vectorStores/index.js.map +1 -0
- package/dist/commonjs/api/vectorStores/operations.d.ts +33 -0
- package/dist/commonjs/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/operations.js +203 -0
- package/dist/commonjs/api/vectorStores/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStores/options.d.ts +45 -0
- package/dist/commonjs/api/vectorStores/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/options.js +5 -0
- package/dist/commonjs/api/vectorStores/options.js.map +1 -0
- package/dist/commonjs/classic/files/index.d.ts +22 -0
- package/dist/commonjs/classic/files/index.d.ts.map +1 -0
- package/dist/commonjs/classic/files/index.js +20 -0
- package/dist/commonjs/classic/files/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +9 -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/messages/index.d.ts +17 -0
- package/dist/commonjs/classic/messages/index.d.ts.map +1 -0
- package/dist/commonjs/classic/messages/index.js +18 -0
- package/dist/commonjs/classic/messages/index.js.map +1 -0
- package/dist/commonjs/classic/runSteps/index.d.ts +14 -0
- package/dist/commonjs/classic/runSteps/index.d.ts.map +1 -0
- package/dist/commonjs/classic/runSteps/index.js +16 -0
- package/dist/commonjs/classic/runSteps/index.js.map +1 -0
- package/dist/commonjs/classic/runs/index.d.ts +25 -0
- package/dist/commonjs/classic/runs/index.d.ts.map +1 -0
- package/dist/commonjs/classic/runs/index.js +22 -0
- package/dist/commonjs/classic/runs/index.js.map +1 -0
- package/dist/commonjs/classic/threads/index.d.ts +19 -0
- package/dist/commonjs/classic/threads/index.d.ts.map +1 -0
- package/dist/commonjs/classic/threads/index.js +19 -0
- package/dist/commonjs/classic/threads/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js +19 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.js +17 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStores/index.d.ts +22 -0
- package/dist/commonjs/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStores/index.js +20 -0
- package/dist/commonjs/classic/vectorStores/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +14 -3
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +6 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +390 -338
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +445 -359
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.js.map +1 -1
- 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.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/utils.d.ts +26 -5
- package/dist/commonjs/utils.d.ts.map +1 -1
- package/dist/commonjs/utils.js +44 -8
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/esm/agentsClient.d.ts +31 -93
- package/dist/esm/agentsClient.d.ts.map +1 -1
- package/dist/esm/agentsClient.js +17 -168
- package/dist/esm/agentsClient.js.map +1 -1
- package/dist/esm/api/files/index.d.ts +3 -0
- package/dist/esm/api/files/index.d.ts.map +1 -0
- package/dist/esm/api/files/index.js +4 -0
- package/dist/esm/api/files/index.js.map +1 -0
- package/dist/esm/api/files/operations.d.ts +45 -0
- package/dist/esm/api/files/operations.d.ts.map +1 -0
- package/dist/esm/api/files/operations.js +154 -0
- package/dist/esm/api/files/operations.js.map +1 -0
- package/dist/esm/api/files/options.d.ts +23 -0
- package/dist/esm/api/files/options.d.ts.map +1 -0
- package/dist/esm/api/files/options.js +4 -0
- package/dist/esm/api/files/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -2
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/messages/index.d.ts +3 -0
- package/dist/esm/api/messages/index.d.ts.map +1 -0
- package/dist/esm/api/messages/index.js +4 -0
- package/dist/esm/api/messages/index.js.map +1 -0
- package/dist/esm/api/messages/operations.d.ts +22 -0
- package/dist/esm/api/messages/operations.d.ts.map +1 -0
- package/dist/esm/api/messages/operations.js +108 -0
- package/dist/esm/api/messages/operations.js.map +1 -0
- package/dist/esm/api/messages/options.d.ts +31 -0
- package/dist/esm/api/messages/options.d.ts.map +1 -0
- package/dist/esm/api/messages/options.js +4 -0
- package/dist/esm/api/messages/options.js.map +1 -0
- package/dist/esm/api/operations.d.ts +8 -183
- package/dist/esm/api/operations.d.ts.map +1 -1
- package/dist/esm/api/operations.js +14 -1063
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/options.d.ts +25 -322
- package/dist/esm/api/options.d.ts.map +1 -1
- package/dist/esm/api/options.js.map +1 -1
- package/dist/esm/api/runSteps/index.d.ts +3 -0
- package/dist/esm/api/runSteps/index.d.ts.map +1 -0
- package/dist/esm/api/runSteps/index.js +4 -0
- package/dist/esm/api/runSteps/index.js.map +1 -0
- package/dist/esm/api/runSteps/operations.d.ts +14 -0
- package/dist/esm/api/runSteps/operations.d.ts.map +1 -0
- package/dist/esm/api/runSteps/operations.js +67 -0
- package/dist/esm/api/runSteps/operations.js.map +1 -0
- package/dist/esm/api/runSteps/options.d.ts +27 -0
- package/dist/esm/api/runSteps/options.d.ts.map +1 -0
- package/dist/esm/api/runSteps/options.js +4 -0
- package/dist/esm/api/runSteps/options.js.map +1 -0
- package/dist/esm/api/runs/index.d.ts +3 -0
- package/dist/esm/api/runs/index.d.ts.map +1 -0
- package/dist/esm/api/runs/index.js +4 -0
- package/dist/esm/api/runs/index.js.map +1 -0
- package/dist/esm/api/runs/operations.d.ts +31 -0
- package/dist/esm/api/runs/operations.d.ts.map +1 -0
- package/dist/esm/api/runs/operations.js +190 -0
- package/dist/esm/api/runs/operations.js.map +1 -0
- package/dist/esm/api/runs/options.d.ts +92 -0
- package/dist/esm/api/runs/options.d.ts.map +1 -0
- package/dist/esm/api/runs/options.js +4 -0
- package/dist/esm/api/runs/options.js.map +1 -0
- package/dist/esm/api/threads/index.d.ts +3 -0
- package/dist/esm/api/threads/index.d.ts.map +1 -0
- package/dist/esm/api/threads/index.js +4 -0
- package/dist/esm/api/threads/index.js.map +1 -0
- package/dist/esm/api/threads/operations.d.ts +26 -0
- package/dist/esm/api/threads/operations.d.ts.map +1 -0
- package/dist/esm/api/threads/operations.js +131 -0
- package/dist/esm/api/threads/operations.js.map +1 -0
- package/dist/esm/api/threads/options.d.ts +44 -0
- package/dist/esm/api/threads/options.d.ts.map +1 -0
- package/dist/esm/api/threads/options.js +4 -0
- package/dist/esm/api/threads/options.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/esm/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/esm/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/esm/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/esm/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/index.js +4 -0
- package/dist/esm/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/esm/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/operations.js +176 -0
- package/dist/esm/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/esm/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/options.js +4 -0
- package/dist/esm/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/esm/api/vectorStores/index.d.ts +3 -0
- package/dist/esm/api/vectorStores/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/index.js +4 -0
- package/dist/esm/api/vectorStores/index.js.map +1 -0
- package/dist/esm/api/vectorStores/operations.d.ts +33 -0
- package/dist/esm/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/operations.js +184 -0
- package/dist/esm/api/vectorStores/operations.js.map +1 -0
- package/dist/esm/api/vectorStores/options.d.ts +45 -0
- package/dist/esm/api/vectorStores/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/options.js +4 -0
- package/dist/esm/api/vectorStores/options.js.map +1 -0
- package/dist/esm/classic/files/index.d.ts +22 -0
- package/dist/esm/classic/files/index.d.ts.map +1 -0
- package/dist/esm/classic/files/index.js +17 -0
- package/dist/esm/classic/files/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +9 -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/messages/index.d.ts +17 -0
- package/dist/esm/classic/messages/index.d.ts.map +1 -0
- package/dist/esm/classic/messages/index.js +15 -0
- package/dist/esm/classic/messages/index.js.map +1 -0
- package/dist/esm/classic/runSteps/index.d.ts +14 -0
- package/dist/esm/classic/runSteps/index.d.ts.map +1 -0
- package/dist/esm/classic/runSteps/index.js +13 -0
- package/dist/esm/classic/runSteps/index.js.map +1 -0
- package/dist/esm/classic/runs/index.d.ts +25 -0
- package/dist/esm/classic/runs/index.d.ts.map +1 -0
- package/dist/esm/classic/runs/index.js +19 -0
- package/dist/esm/classic/runs/index.js.map +1 -0
- package/dist/esm/classic/threads/index.d.ts +19 -0
- package/dist/esm/classic/threads/index.d.ts.map +1 -0
- package/dist/esm/classic/threads/index.js +16 -0
- package/dist/esm/classic/threads/index.js.map +1 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/esm/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/esm/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStoreFiles/index.js +14 -0
- package/dist/esm/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/esm/classic/vectorStores/index.d.ts +22 -0
- package/dist/esm/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStores/index.js +17 -0
- package/dist/esm/classic/vectorStores/index.js.map +1 -0
- package/dist/esm/index.d.ts +14 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +390 -338
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +377 -297
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.js.map +1 -1
- 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.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +2 -2
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/utils.d.ts +26 -5
- package/dist/esm/utils.d.ts.map +1 -1
- package/dist/esm/utils.js +44 -8
- package/dist/esm/utils.js.map +1 -1
- package/dist/react-native/agentsClient.d.ts +31 -93
- package/dist/react-native/agentsClient.d.ts.map +1 -1
- package/dist/react-native/agentsClient.js +17 -168
- package/dist/react-native/agentsClient.js.map +1 -1
- package/dist/react-native/api/files/index.d.ts +3 -0
- package/dist/react-native/api/files/index.d.ts.map +1 -0
- package/dist/react-native/api/files/index.js +4 -0
- package/dist/react-native/api/files/index.js.map +1 -0
- package/dist/react-native/api/files/operations.d.ts +45 -0
- package/dist/react-native/api/files/operations.d.ts.map +1 -0
- package/dist/react-native/api/files/operations.js +154 -0
- package/dist/react-native/api/files/operations.js.map +1 -0
- package/dist/react-native/api/files/options.d.ts +23 -0
- package/dist/react-native/api/files/options.d.ts.map +1 -0
- package/dist/react-native/api/files/options.js +4 -0
- package/dist/react-native/api/files/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -2
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/messages/index.d.ts +3 -0
- package/dist/react-native/api/messages/index.d.ts.map +1 -0
- package/dist/react-native/api/messages/index.js +4 -0
- package/dist/react-native/api/messages/index.js.map +1 -0
- package/dist/react-native/api/messages/operations.d.ts +22 -0
- package/dist/react-native/api/messages/operations.d.ts.map +1 -0
- package/dist/react-native/api/messages/operations.js +108 -0
- package/dist/react-native/api/messages/operations.js.map +1 -0
- package/dist/react-native/api/messages/options.d.ts +31 -0
- package/dist/react-native/api/messages/options.d.ts.map +1 -0
- package/dist/react-native/api/messages/options.js +4 -0
- package/dist/react-native/api/messages/options.js.map +1 -0
- package/dist/react-native/api/operations.d.ts +8 -183
- package/dist/react-native/api/operations.d.ts.map +1 -1
- package/dist/react-native/api/operations.js +14 -1063
- package/dist/react-native/api/operations.js.map +1 -1
- package/dist/react-native/api/options.d.ts +25 -322
- package/dist/react-native/api/options.d.ts.map +1 -1
- package/dist/react-native/api/options.js.map +1 -1
- package/dist/react-native/api/runSteps/index.d.ts +3 -0
- package/dist/react-native/api/runSteps/index.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/index.js +4 -0
- package/dist/react-native/api/runSteps/index.js.map +1 -0
- package/dist/react-native/api/runSteps/operations.d.ts +14 -0
- package/dist/react-native/api/runSteps/operations.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/operations.js +67 -0
- package/dist/react-native/api/runSteps/operations.js.map +1 -0
- package/dist/react-native/api/runSteps/options.d.ts +27 -0
- package/dist/react-native/api/runSteps/options.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/options.js +4 -0
- package/dist/react-native/api/runSteps/options.js.map +1 -0
- package/dist/react-native/api/runs/index.d.ts +3 -0
- package/dist/react-native/api/runs/index.d.ts.map +1 -0
- package/dist/react-native/api/runs/index.js +4 -0
- package/dist/react-native/api/runs/index.js.map +1 -0
- package/dist/react-native/api/runs/operations.d.ts +31 -0
- package/dist/react-native/api/runs/operations.d.ts.map +1 -0
- package/dist/react-native/api/runs/operations.js +190 -0
- package/dist/react-native/api/runs/operations.js.map +1 -0
- package/dist/react-native/api/runs/options.d.ts +92 -0
- package/dist/react-native/api/runs/options.d.ts.map +1 -0
- package/dist/react-native/api/runs/options.js +4 -0
- package/dist/react-native/api/runs/options.js.map +1 -0
- package/dist/react-native/api/threads/index.d.ts +3 -0
- package/dist/react-native/api/threads/index.d.ts.map +1 -0
- package/dist/react-native/api/threads/index.js +4 -0
- package/dist/react-native/api/threads/index.js.map +1 -0
- package/dist/react-native/api/threads/operations.d.ts +26 -0
- package/dist/react-native/api/threads/operations.d.ts.map +1 -0
- package/dist/react-native/api/threads/operations.js +131 -0
- package/dist/react-native/api/threads/operations.js.map +1 -0
- package/dist/react-native/api/threads/options.d.ts +44 -0
- package/dist/react-native/api/threads/options.d.ts.map +1 -0
- package/dist/react-native/api/threads/options.js +4 -0
- package/dist/react-native/api/threads/options.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/react-native/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/index.js +4 -0
- package/dist/react-native/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/react-native/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/operations.js +176 -0
- package/dist/react-native/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/react-native/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/options.js +4 -0
- package/dist/react-native/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/react-native/api/vectorStores/index.d.ts +3 -0
- package/dist/react-native/api/vectorStores/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/index.js +4 -0
- package/dist/react-native/api/vectorStores/index.js.map +1 -0
- package/dist/react-native/api/vectorStores/operations.d.ts +33 -0
- package/dist/react-native/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/operations.js +184 -0
- package/dist/react-native/api/vectorStores/operations.js.map +1 -0
- package/dist/react-native/api/vectorStores/options.d.ts +45 -0
- package/dist/react-native/api/vectorStores/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/options.js +4 -0
- package/dist/react-native/api/vectorStores/options.js.map +1 -0
- package/dist/react-native/classic/files/index.d.ts +22 -0
- package/dist/react-native/classic/files/index.d.ts.map +1 -0
- package/dist/react-native/classic/files/index.js +17 -0
- package/dist/react-native/classic/files/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +9 -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/messages/index.d.ts +17 -0
- package/dist/react-native/classic/messages/index.d.ts.map +1 -0
- package/dist/react-native/classic/messages/index.js +15 -0
- package/dist/react-native/classic/messages/index.js.map +1 -0
- package/dist/react-native/classic/runSteps/index.d.ts +14 -0
- package/dist/react-native/classic/runSteps/index.d.ts.map +1 -0
- package/dist/react-native/classic/runSteps/index.js +13 -0
- package/dist/react-native/classic/runSteps/index.js.map +1 -0
- package/dist/react-native/classic/runs/index.d.ts +25 -0
- package/dist/react-native/classic/runs/index.d.ts.map +1 -0
- package/dist/react-native/classic/runs/index.js +19 -0
- package/dist/react-native/classic/runs/index.js.map +1 -0
- package/dist/react-native/classic/threads/index.d.ts +19 -0
- package/dist/react-native/classic/threads/index.d.ts.map +1 -0
- package/dist/react-native/classic/threads/index.js +16 -0
- package/dist/react-native/classic/threads/index.js.map +1 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStoreFiles/index.js +14 -0
- package/dist/react-native/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/react-native/classic/vectorStores/index.d.ts +22 -0
- package/dist/react-native/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStores/index.js +17 -0
- package/dist/react-native/classic/vectorStores/index.js.map +1 -0
- package/dist/react-native/index.d.ts +14 -3
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +390 -338
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +377 -297
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -1
- 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.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +2 -2
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/utils.d.ts +26 -5
- package/dist/react-native/utils.d.ts.map +1 -1
- package/dist/react-native/utils.js +44 -8
- package/dist/react-native/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,101 +1,39 @@
|
|
|
1
|
-
import { AgentsClientOptionalParams } from "./api/index.js";
|
|
2
|
-
import { Agent,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import type { AgentsClientOptionalParams } from "./api/index.js";
|
|
2
|
+
import type { Agent, AgentDeletionStatus } from "./models/models.js";
|
|
3
|
+
import type { DeleteAgentOptionalParams, UpdateAgentOptionalParams, GetAgentOptionalParams, ListAgentsOptionalParams, CreateAgentOptionalParams } from "./api/options.js";
|
|
4
|
+
import type { VectorStoreFileBatchesOperations } from "./classic/vectorStoreFileBatches/index.js";
|
|
5
|
+
import type { VectorStoreFilesOperations } from "./classic/vectorStoreFiles/index.js";
|
|
6
|
+
import type { VectorStoresOperations } from "./classic/vectorStores/index.js";
|
|
7
|
+
import type { FilesOperations } from "./classic/files/index.js";
|
|
8
|
+
import type { RunStepsOperations } from "./classic/runSteps/index.js";
|
|
9
|
+
import type { RunsOperations } from "./classic/runs/index.js";
|
|
10
|
+
import type { MessagesOperations } from "./classic/messages/index.js";
|
|
11
|
+
import type { ThreadsOperations } from "./classic/threads/index.js";
|
|
12
|
+
import type { PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
13
|
+
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
14
|
+
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
|
|
8
15
|
export { AgentsClientOptionalParams } from "./api/agentsContext.js";
|
|
9
16
|
export declare class AgentsClient {
|
|
10
17
|
private _client;
|
|
11
18
|
/** The pipeline used by this client to make requests */
|
|
12
19
|
readonly pipeline: Pipeline;
|
|
13
20
|
constructor(endpointParam: string, credential: KeyCredential | TokenCredential, options?: AgentsClientOptionalParams);
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
getVectorStoreFile(vectorStoreId: string, fileId: string, options?: GetVectorStoreFileOptionalParams): Promise<VectorStoreFile>;
|
|
31
|
-
/** Create a vector store file by attaching a file to a vector store. */
|
|
32
|
-
createVectorStoreFile(vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams): Promise<VectorStoreFile>;
|
|
33
|
-
/** Create a vector store file by attaching a file to a vector store and poll. */
|
|
34
|
-
createVectorStoreFileAndPoll(vectorStoreId: string, options?: CreateVectorStoreFileOptionalParams): PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>;
|
|
35
|
-
/** Returns a list of vector store files. */
|
|
36
|
-
listVectorStoreFiles(vectorStoreId: string, options?: ListVectorStoreFilesOptionalParams): Promise<OpenAIPageableListOfVectorStoreFile>;
|
|
37
|
-
/** Deletes the vector store object matching the specified ID. */
|
|
38
|
-
deleteVectorStore(vectorStoreId: string, options?: DeleteVectorStoreOptionalParams): Promise<VectorStoreDeletionStatus>;
|
|
39
|
-
/** The ID of the vector store to modify. */
|
|
40
|
-
modifyVectorStore(vectorStoreId: string, options?: ModifyVectorStoreOptionalParams): Promise<VectorStore>;
|
|
41
|
-
/** Returns the vector store object matching the specified ID. */
|
|
42
|
-
getVectorStore(vectorStoreId: string, options?: GetVectorStoreOptionalParams): Promise<VectorStore>;
|
|
43
|
-
/** Creates a vector store. */
|
|
44
|
-
createVectorStore(options?: CreateVectorStoreOptionalParams): Promise<VectorStore>;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a vector store and poll.
|
|
47
|
-
*/
|
|
48
|
-
createVectorStoreAndPoll(options?: CreateVectorStoreOptionalParams): PollerLike<OperationState<VectorStore>, VectorStore>;
|
|
49
|
-
/** Returns a list of vector stores. */
|
|
50
|
-
listVectorStores(options?: ListVectorStoresOptionalParams): Promise<OpenAIPageableListOfVectorStore>;
|
|
51
|
-
/** Retrieves the raw content of a specific file. */
|
|
52
|
-
getFileContent(fileId: string, options?: GetFileContentOptionalParams): Promise<Uint8Array>;
|
|
53
|
-
/** Returns information about a specific file. Does not retrieve file content. */
|
|
54
|
-
getFile(fileId: string, options?: GetFileOptionalParams): Promise<OpenAIFile>;
|
|
55
|
-
/** Delete a previously uploaded file. */
|
|
56
|
-
deleteFile(fileId: string, options?: DeleteFileOptionalParams): Promise<FileDeletionStatus>;
|
|
57
|
-
/** Uploads a file for use by other operations. */
|
|
58
|
-
uploadFile(file: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileOptionalParams): Promise<OpenAIFile>;
|
|
59
|
-
/** Uploads a file for use by other operations and returns a poller to track the status of the operation. */
|
|
60
|
-
uploadFileAndPoll(file: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options?: UploadFileOptionalParams): PollerLike<OperationState<OpenAIFile>, OpenAIFile>;
|
|
61
|
-
/** Gets a list of previously uploaded files. */
|
|
62
|
-
listFiles(options?: ListFilesOptionalParams): Promise<FileListResponse>;
|
|
63
|
-
/** Gets a list of run steps from a thread run. */
|
|
64
|
-
listRunSteps(threadId: string, runId: string, options?: ListRunStepsOptionalParams): Promise<OpenAIPageableListOfRunStep>;
|
|
65
|
-
/** Gets a single run step from a thread run. */
|
|
66
|
-
getRunStep(threadId: string, runId: string, stepId: string, options?: GetRunStepOptionalParams): Promise<RunStep>;
|
|
67
|
-
/** Creates a new agent thread and immediately starts a run using that new thread. */
|
|
68
|
-
createThreadAndRun(assistantId: string, options?: CreateThreadAndRunOptionalParams): AgentRunResponse;
|
|
69
|
-
/** Cancels a run of an in progress thread. */
|
|
70
|
-
cancelRun(threadId: string, runId: string, options?: CancelRunOptionalParams): Promise<ThreadRun>;
|
|
71
|
-
/** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */
|
|
72
|
-
submitToolOutputsToRun(threadId: string, runId: string, toolOutputs: ToolOutput[], options?: SubmitToolOutputsToRunOptionalParams): Promise<ThreadRun>;
|
|
73
|
-
/** Modifies an existing thread run. */
|
|
74
|
-
updateRun(threadId: string, runId: string, options?: UpdateRunOptionalParams): Promise<ThreadRun>;
|
|
75
|
-
/** Gets an existing run from an existing thread. */
|
|
76
|
-
getRun(threadId: string, runId: string, options?: GetRunOptionalParams): Promise<ThreadRun>;
|
|
77
|
-
/** Gets a list of runs for a specified thread. */
|
|
78
|
-
listRuns(threadId: string, options?: ListRunsOptionalParams): Promise<OpenAIPageableListOfThreadRun>;
|
|
79
|
-
/** Creates a new run for an agent thread. */
|
|
80
|
-
createRun(threadId: string, assistantId: string, options?: CreateRunOptionalParams): AgentRunResponse;
|
|
81
|
-
/** Modifies an existing message on an existing thread. */
|
|
82
|
-
updateMessage(threadId: string, messageId: string, options?: UpdateMessageOptionalParams): Promise<ThreadMessage>;
|
|
83
|
-
/** Gets an existing message from an existing thread. */
|
|
84
|
-
getMessage(threadId: string, messageId: string, options?: GetMessageOptionalParams): Promise<ThreadMessage>;
|
|
85
|
-
/** Gets a list of messages that exist on a thread. */
|
|
86
|
-
listMessages(threadId: string, options?: ListMessagesOptionalParams): Promise<OpenAIPageableListOfThreadMessage>;
|
|
87
|
-
/** Creates a new message on a specified thread. */
|
|
88
|
-
createMessage(threadId: string, role: MessageRole, content: MessageInputContent, options?: CreateMessageOptionalParams): Promise<ThreadMessage>;
|
|
89
|
-
/** Gets a list of threads that were previously created. */
|
|
90
|
-
listThreads(options?: ListThreadsOptionalParams): Promise<OpenAIPageableListOfAgentThread>;
|
|
91
|
-
/** Deletes an existing thread. */
|
|
92
|
-
deleteThread(threadId: string, options?: DeleteThreadOptionalParams): Promise<ThreadDeletionStatus>;
|
|
93
|
-
/** Modifies an existing thread. */
|
|
94
|
-
updateThread(threadId: string, options?: UpdateThreadOptionalParams): Promise<AgentThread>;
|
|
95
|
-
/** Gets information about an existing thread. */
|
|
96
|
-
getThread(threadId: string, options?: GetThreadOptionalParams): Promise<AgentThread>;
|
|
97
|
-
/** Creates a new thread. Threads contain messages and can be run by agents. */
|
|
98
|
-
createThread(options?: CreateThreadOptionalParams): Promise<AgentThread>;
|
|
21
|
+
/** The operation groups for vectorStoreFileBatches */
|
|
22
|
+
readonly vectorStoreFileBatches: VectorStoreFileBatchesOperations;
|
|
23
|
+
/** The operation groups for vectorStoreFiles */
|
|
24
|
+
readonly vectorStoreFiles: VectorStoreFilesOperations;
|
|
25
|
+
/** The operation groups for vectorStores */
|
|
26
|
+
readonly vectorStores: VectorStoresOperations;
|
|
27
|
+
/** The operation groups for files */
|
|
28
|
+
readonly files: FilesOperations;
|
|
29
|
+
/** The operation groups for runSteps */
|
|
30
|
+
readonly runSteps: RunStepsOperations;
|
|
31
|
+
/** The operation groups for runs */
|
|
32
|
+
readonly runs: RunsOperations;
|
|
33
|
+
/** The operation groups for messages */
|
|
34
|
+
readonly messages: MessagesOperations;
|
|
35
|
+
/** The operation groups for threads */
|
|
36
|
+
readonly threads: ThreadsOperations;
|
|
99
37
|
/** Deletes an agent. */
|
|
100
38
|
deleteAgent(assistantId: string, options?: DeleteAgentOptionalParams): Promise<AgentDeletionStatus>;
|
|
101
39
|
/** Modifies an existing agent. */
|
|
@@ -103,7 +41,7 @@ export declare class AgentsClient {
|
|
|
103
41
|
/** Retrieves an existing agent. */
|
|
104
42
|
getAgent(assistantId: string, options?: GetAgentOptionalParams): Promise<Agent>;
|
|
105
43
|
/** Gets a list of agents that were previously created. */
|
|
106
|
-
listAgents(options?: ListAgentsOptionalParams):
|
|
44
|
+
listAgents(options?: ListAgentsOptionalParams): PagedAsyncIterableIterator<Agent>;
|
|
107
45
|
/** Creates a new agent. */
|
|
108
46
|
createAgent(model: string, options?: CreateAgentOptionalParams): Promise<Agent>;
|
|
109
47
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentsClient.d.ts","sourceRoot":"","sources":["../../src/agentsClient.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"agentsClient.d.ts","sourceRoot":"","sources":["../../src/agentsClient.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAiB,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAEhF,OAAO,KAAK,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EACV,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAElG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEtF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B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AAM,EACb,OAAO,GAAE,yBAAkD,GAC1D,OAAO,CAAC,KAAK,CAAC;CAGlB"}
|
|
@@ -5,6 +5,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.AgentsClient = void 0;
|
|
6
6
|
const index_js_1 = require("./api/index.js");
|
|
7
7
|
const operations_js_1 = require("./api/operations.js");
|
|
8
|
+
const index_js_2 = require("./classic/vectorStoreFileBatches/index.js");
|
|
9
|
+
const index_js_3 = require("./classic/vectorStoreFiles/index.js");
|
|
10
|
+
const index_js_4 = require("./classic/vectorStores/index.js");
|
|
11
|
+
const index_js_5 = require("./classic/files/index.js");
|
|
12
|
+
const index_js_6 = require("./classic/runSteps/index.js");
|
|
13
|
+
const index_js_7 = require("./classic/runs/index.js");
|
|
14
|
+
const index_js_8 = require("./classic/messages/index.js");
|
|
15
|
+
const index_js_9 = require("./classic/threads/index.js");
|
|
8
16
|
class AgentsClient {
|
|
9
17
|
constructor(endpointParam, credential, options = {}) {
|
|
10
18
|
var _a;
|
|
@@ -14,173 +22,14 @@ class AgentsClient {
|
|
|
14
22
|
: `azsdk-js-client`;
|
|
15
23
|
this._client = (0, index_js_1.createAgents)(endpointParam, credential, Object.assign(Object.assign({}, options), { userAgentOptions: { userAgentPrefix } }));
|
|
16
24
|
this.pipeline = this._client.pipeline;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
cancelVectorStoreFileBatch(vectorStoreId, batchId, options = { requestOptions: {} }) {
|
|
26
|
-
return (0, operations_js_1.cancelVectorStoreFileBatch)(this._client, vectorStoreId, batchId, options);
|
|
27
|
-
}
|
|
28
|
-
/** Retrieve a vector store file batch. */
|
|
29
|
-
getVectorStoreFileBatch(vectorStoreId, batchId, options = { requestOptions: {} }) {
|
|
30
|
-
return (0, operations_js_1.getVectorStoreFileBatch)(this._client, vectorStoreId, batchId, options);
|
|
31
|
-
}
|
|
32
|
-
/** Create a vector store file batch. */
|
|
33
|
-
createVectorStoreFileBatch(vectorStoreId, options = { requestOptions: {} }) {
|
|
34
|
-
return (0, operations_js_1.createVectorStoreFileBatch)(this._client, vectorStoreId, options);
|
|
35
|
-
}
|
|
36
|
-
/** Create a vector store file batch and poll. */
|
|
37
|
-
createVectorStoreFileBatchAndPoll(vectorStoreId, options = { requestOptions: {} }) {
|
|
38
|
-
return (0, operations_js_1.createVectorStoreFileBatchAndPoll)(this._client, vectorStoreId, options);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.
|
|
42
|
-
* To delete the file, use the delete file endpoint.
|
|
43
|
-
*/
|
|
44
|
-
deleteVectorStoreFile(vectorStoreId, fileId, options = { requestOptions: {} }) {
|
|
45
|
-
return (0, operations_js_1.deleteVectorStoreFile)(this._client, vectorStoreId, fileId, options);
|
|
46
|
-
}
|
|
47
|
-
/** Retrieves a vector store file. */
|
|
48
|
-
getVectorStoreFile(vectorStoreId, fileId, options = { requestOptions: {} }) {
|
|
49
|
-
return (0, operations_js_1.getVectorStoreFile)(this._client, vectorStoreId, fileId, options);
|
|
50
|
-
}
|
|
51
|
-
/** Create a vector store file by attaching a file to a vector store. */
|
|
52
|
-
createVectorStoreFile(vectorStoreId, options = { requestOptions: {} }) {
|
|
53
|
-
return (0, operations_js_1.createVectorStoreFile)(this._client, vectorStoreId, options);
|
|
54
|
-
}
|
|
55
|
-
/** Create a vector store file by attaching a file to a vector store and poll. */
|
|
56
|
-
createVectorStoreFileAndPoll(vectorStoreId, options = { requestOptions: {} }) {
|
|
57
|
-
return (0, operations_js_1.createVectorStoreFileAndPoll)(this._client, vectorStoreId, options);
|
|
58
|
-
}
|
|
59
|
-
/** Returns a list of vector store files. */
|
|
60
|
-
listVectorStoreFiles(vectorStoreId, options = { requestOptions: {} }) {
|
|
61
|
-
return (0, operations_js_1.listVectorStoreFiles)(this._client, vectorStoreId, options);
|
|
62
|
-
}
|
|
63
|
-
/** Deletes the vector store object matching the specified ID. */
|
|
64
|
-
deleteVectorStore(vectorStoreId, options = { requestOptions: {} }) {
|
|
65
|
-
return (0, operations_js_1.deleteVectorStore)(this._client, vectorStoreId, options);
|
|
66
|
-
}
|
|
67
|
-
/** The ID of the vector store to modify. */
|
|
68
|
-
modifyVectorStore(vectorStoreId, options = { requestOptions: {} }) {
|
|
69
|
-
return (0, operations_js_1.modifyVectorStore)(this._client, vectorStoreId, options);
|
|
70
|
-
}
|
|
71
|
-
/** Returns the vector store object matching the specified ID. */
|
|
72
|
-
getVectorStore(vectorStoreId, options = { requestOptions: {} }) {
|
|
73
|
-
return (0, operations_js_1.getVectorStore)(this._client, vectorStoreId, options);
|
|
74
|
-
}
|
|
75
|
-
/** Creates a vector store. */
|
|
76
|
-
createVectorStore(options = { requestOptions: {} }) {
|
|
77
|
-
return (0, operations_js_1.createVectorStore)(this._client, options);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates a vector store and poll.
|
|
81
|
-
*/
|
|
82
|
-
createVectorStoreAndPoll(options = { requestOptions: {} }) {
|
|
83
|
-
return (0, operations_js_1.createVectorStoreAndPoll)(this._client, options);
|
|
84
|
-
}
|
|
85
|
-
/** Returns a list of vector stores. */
|
|
86
|
-
listVectorStores(options = { requestOptions: {} }) {
|
|
87
|
-
return (0, operations_js_1.listVectorStores)(this._client, options);
|
|
88
|
-
}
|
|
89
|
-
/** Retrieves the raw content of a specific file. */
|
|
90
|
-
getFileContent(fileId, options = { requestOptions: {} }) {
|
|
91
|
-
return (0, operations_js_1.getFileContent)(this._client, fileId, options);
|
|
92
|
-
}
|
|
93
|
-
/** Returns information about a specific file. Does not retrieve file content. */
|
|
94
|
-
getFile(fileId, options = { requestOptions: {} }) {
|
|
95
|
-
return (0, operations_js_1.getFile)(this._client, fileId, options);
|
|
96
|
-
}
|
|
97
|
-
/** Delete a previously uploaded file. */
|
|
98
|
-
deleteFile(fileId, options = { requestOptions: {} }) {
|
|
99
|
-
return (0, operations_js_1.deleteFile)(this._client, fileId, options);
|
|
100
|
-
}
|
|
101
|
-
/** Uploads a file for use by other operations. */
|
|
102
|
-
uploadFile(file, purpose, options = { requestOptions: {} }) {
|
|
103
|
-
return (0, operations_js_1.uploadFile)(this._client, { file: file, purpose: purpose, filename: options.fileName }, options);
|
|
104
|
-
}
|
|
105
|
-
/** Uploads a file for use by other operations and returns a poller to track the status of the operation. */
|
|
106
|
-
uploadFileAndPoll(file, purpose, options = { requestOptions: {} }) {
|
|
107
|
-
return (0, operations_js_1.uploadFileAndPoll)(this._client, { file: file, purpose: purpose, filename: options.fileName }, options);
|
|
108
|
-
}
|
|
109
|
-
/** Gets a list of previously uploaded files. */
|
|
110
|
-
listFiles(options = { requestOptions: {} }) {
|
|
111
|
-
return (0, operations_js_1.listFiles)(this._client, options);
|
|
112
|
-
}
|
|
113
|
-
/** Gets a list of run steps from a thread run. */
|
|
114
|
-
listRunSteps(threadId, runId, options = { requestOptions: {} }) {
|
|
115
|
-
return (0, operations_js_1.listRunSteps)(this._client, threadId, runId, options);
|
|
116
|
-
}
|
|
117
|
-
/** Gets a single run step from a thread run. */
|
|
118
|
-
getRunStep(threadId, runId, stepId, options = { requestOptions: {} }) {
|
|
119
|
-
return (0, operations_js_1.getRunStep)(this._client, threadId, runId, stepId, options);
|
|
120
|
-
}
|
|
121
|
-
/** Creates a new agent thread and immediately starts a run using that new thread. */
|
|
122
|
-
createThreadAndRun(assistantId, options = { requestOptions: {} }) {
|
|
123
|
-
return (0, operations_js_1.createThreadAndRun)(this._client, assistantId, options);
|
|
124
|
-
}
|
|
125
|
-
/** Cancels a run of an in progress thread. */
|
|
126
|
-
cancelRun(threadId, runId, options = { requestOptions: {} }) {
|
|
127
|
-
return (0, operations_js_1.cancelRun)(this._client, threadId, runId, options);
|
|
128
|
-
}
|
|
129
|
-
/** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */
|
|
130
|
-
submitToolOutputsToRun(threadId, runId, toolOutputs, options = { requestOptions: {} }) {
|
|
131
|
-
return (0, operations_js_1.submitToolOutputsToRun)(this._client, threadId, runId, toolOutputs, options);
|
|
132
|
-
}
|
|
133
|
-
/** Modifies an existing thread run. */
|
|
134
|
-
updateRun(threadId, runId, options = { requestOptions: {} }) {
|
|
135
|
-
return (0, operations_js_1.updateRun)(this._client, threadId, runId, options);
|
|
136
|
-
}
|
|
137
|
-
/** Gets an existing run from an existing thread. */
|
|
138
|
-
getRun(threadId, runId, options = { requestOptions: {} }) {
|
|
139
|
-
return (0, operations_js_1.getRun)(this._client, threadId, runId, options);
|
|
140
|
-
}
|
|
141
|
-
/** Gets a list of runs for a specified thread. */
|
|
142
|
-
listRuns(threadId, options = { requestOptions: {} }) {
|
|
143
|
-
return (0, operations_js_1.listRuns)(this._client, threadId, options);
|
|
144
|
-
}
|
|
145
|
-
/** Creates a new run for an agent thread. */
|
|
146
|
-
createRun(threadId, assistantId, options = { requestOptions: {} }) {
|
|
147
|
-
return (0, operations_js_1.createRun)(this._client, threadId, assistantId, options);
|
|
148
|
-
}
|
|
149
|
-
/** Modifies an existing message on an existing thread. */
|
|
150
|
-
updateMessage(threadId, messageId, options = { requestOptions: {} }) {
|
|
151
|
-
return (0, operations_js_1.updateMessage)(this._client, threadId, messageId, options);
|
|
152
|
-
}
|
|
153
|
-
/** Gets an existing message from an existing thread. */
|
|
154
|
-
getMessage(threadId, messageId, options = { requestOptions: {} }) {
|
|
155
|
-
return (0, operations_js_1.getMessage)(this._client, threadId, messageId, options);
|
|
156
|
-
}
|
|
157
|
-
/** Gets a list of messages that exist on a thread. */
|
|
158
|
-
listMessages(threadId, options = { requestOptions: {} }) {
|
|
159
|
-
return (0, operations_js_1.listMessages)(this._client, threadId, options);
|
|
160
|
-
}
|
|
161
|
-
/** Creates a new message on a specified thread. */
|
|
162
|
-
createMessage(threadId, role, content, options = { requestOptions: {} }) {
|
|
163
|
-
return (0, operations_js_1.createMessage)(this._client, threadId, role, content, options);
|
|
164
|
-
}
|
|
165
|
-
/** Gets a list of threads that were previously created. */
|
|
166
|
-
listThreads(options = { requestOptions: {} }) {
|
|
167
|
-
return (0, operations_js_1.listThreads)(this._client, options);
|
|
168
|
-
}
|
|
169
|
-
/** Deletes an existing thread. */
|
|
170
|
-
deleteThread(threadId, options = { requestOptions: {} }) {
|
|
171
|
-
return (0, operations_js_1.deleteThread)(this._client, threadId, options);
|
|
172
|
-
}
|
|
173
|
-
/** Modifies an existing thread. */
|
|
174
|
-
updateThread(threadId, options = { requestOptions: {} }) {
|
|
175
|
-
return (0, operations_js_1.updateThread)(this._client, threadId, options);
|
|
176
|
-
}
|
|
177
|
-
/** Gets information about an existing thread. */
|
|
178
|
-
getThread(threadId, options = { requestOptions: {} }) {
|
|
179
|
-
return (0, operations_js_1.getThread)(this._client, threadId, options);
|
|
180
|
-
}
|
|
181
|
-
/** Creates a new thread. Threads contain messages and can be run by agents. */
|
|
182
|
-
createThread(options = { requestOptions: {} }) {
|
|
183
|
-
return (0, operations_js_1.createThread)(this._client, options);
|
|
25
|
+
this.vectorStoreFileBatches = (0, index_js_2._getVectorStoreFileBatchesOperations)(this._client);
|
|
26
|
+
this.vectorStoreFiles = (0, index_js_3._getVectorStoreFilesOperations)(this._client);
|
|
27
|
+
this.vectorStores = (0, index_js_4._getVectorStoresOperations)(this._client);
|
|
28
|
+
this.files = (0, index_js_5._getFilesOperations)(this._client);
|
|
29
|
+
this.runSteps = (0, index_js_6._getRunStepsOperations)(this._client);
|
|
30
|
+
this.runs = (0, index_js_7._getRunsOperations)(this._client);
|
|
31
|
+
this.messages = (0, index_js_8._getMessagesOperations)(this._client);
|
|
32
|
+
this.threads = (0, index_js_9._getThreadsOperations)(this._client);
|
|
184
33
|
}
|
|
185
34
|
/** Deletes an agent. */
|
|
186
35
|
deleteAgent(assistantId, options = { requestOptions: {} }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
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,EAAE,EAAE,EAAE;QAE3D,OAAO,IAAA,2BAAW,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,mCAAmC;IACnC,QAAQ,CACN,WAAmB,EACnB,UAAkC,EAAE,cAAc,EAAE,EAAE,EAAE;QAExD,OAAO,IAAA,wBAAQ,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,0DAA0D;IAC1D,UAAU,CACR,UAAoC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE1D,OAAO,IAAA,0BAAU,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,2BAA2B;IAC3B,WAAW,CACT,KAAa,EACb,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE3D,OAAO,IAAA,2BAAW,EAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AApZD,oCAoZC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { createAgents, AgentsContext, AgentsClientOptionalParams } from \"./api/index.js\";\nimport {\n Agent,\n OpenAIPageableListOfAgent,\n AgentDeletionStatus,\n MessageRole,\n MessageInputContent,\n AgentThread,\n ThreadDeletionStatus,\n OpenAIPageableListOfAgentThread,\n ThreadMessage,\n OpenAIPageableListOfThreadMessage,\n ThreadRun,\n OpenAIPageableListOfThreadRun,\n ToolOutput,\n RunStep,\n OpenAIPageableListOfRunStep,\n FileListResponse,\n OpenAIFile,\n FilePurpose,\n FileDeletionStatus,\n OpenAIPageableListOfVectorStore,\n VectorStore,\n VectorStoreDeletionStatus,\n OpenAIPageableListOfVectorStoreFile,\n VectorStoreFile,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n} from \"./models/models.js\";\nimport {\n ListVectorStoreFileBatchFilesOptionalParams,\n CancelVectorStoreFileBatchOptionalParams,\n GetVectorStoreFileBatchOptionalParams,\n CreateVectorStoreFileBatchOptionalParams,\n DeleteVectorStoreFileOptionalParams,\n GetVectorStoreFileOptionalParams,\n CreateVectorStoreFileOptionalParams,\n ListVectorStoreFilesOptionalParams,\n DeleteVectorStoreOptionalParams,\n ModifyVectorStoreOptionalParams,\n GetVectorStoreOptionalParams,\n CreateVectorStoreOptionalParams,\n ListVectorStoresOptionalParams,\n GetFileContentOptionalParams,\n GetFileOptionalParams,\n DeleteFileOptionalParams,\n UploadFileOptionalParams,\n ListFilesOptionalParams,\n ListRunStepsOptionalParams,\n GetRunStepOptionalParams,\n CreateThreadAndRunOptionalParams,\n CancelRunOptionalParams,\n SubmitToolOutputsToRunOptionalParams,\n UpdateRunOptionalParams,\n GetRunOptionalParams,\n ListRunsOptionalParams,\n CreateRunOptionalParams,\n UpdateMessageOptionalParams,\n GetMessageOptionalParams,\n ListMessagesOptionalParams,\n CreateMessageOptionalParams,\n ListThreadsOptionalParams,\n DeleteThreadOptionalParams,\n UpdateThreadOptionalParams,\n GetThreadOptionalParams,\n CreateThreadOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n} from \"./api/options.js\";\nimport {\n listVectorStoreFileBatchFiles,\n cancelVectorStoreFileBatch,\n getVectorStoreFileBatch,\n createVectorStoreFileBatch,\n deleteVectorStoreFile,\n getVectorStoreFile,\n createVectorStoreFile,\n listVectorStoreFiles,\n deleteVectorStore,\n modifyVectorStore,\n getVectorStore,\n createVectorStore,\n listVectorStores,\n getFileContent,\n getFile,\n deleteFile,\n uploadFile,\n listFiles,\n listRunSteps,\n getRunStep,\n createThreadAndRun,\n cancelRun,\n submitToolOutputsToRun,\n updateRun,\n getRun,\n listRuns,\n createRun,\n updateMessage,\n getMessage,\n listMessages,\n createMessage,\n listThreads,\n deleteThread,\n updateThread,\n getThread,\n createThread,\n deleteAgent,\n updateAgent,\n getAgent,\n listAgents,\n createAgent,\n uploadFileAndPoll,\n createVectorStoreFileAndPoll,\n createVectorStoreFileBatchAndPoll,\n createVectorStoreAndPoll,\n} from \"./api/operations.js\";\nimport { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { OperationState, PollerLike } from \"@azure/core-lro\";\nimport { AgentRunResponse } from \"./models/streamingModels.js\";\n\nexport { AgentsClientOptionalParams } from \"./api/agentsContext.js\";\n\nexport class AgentsClient {\n private _client: AgentsContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n endpointParam: string,\n credential: KeyCredential | TokenCredential,\n options: AgentsClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createAgents(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n }\n\n /** Returns a list of vector store files in a batch. */\n listVectorStoreFileBatchFiles(\n vectorStoreId: string,\n batchId: string,\n options: ListVectorStoreFileBatchFilesOptionalParams = {\n requestOptions: {},\n },\n ): Promise<OpenAIPageableListOfVectorStoreFile> {\n return listVectorStoreFileBatchFiles(this._client, vectorStoreId, batchId, options);\n }\n\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancelVectorStoreFileBatch(\n vectorStoreId: string,\n batchId: string,\n options: CancelVectorStoreFileBatchOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFileBatch> {\n return cancelVectorStoreFileBatch(this._client, vectorStoreId, batchId, options);\n }\n\n /** Retrieve a vector store file batch. */\n getVectorStoreFileBatch(\n vectorStoreId: string,\n batchId: string,\n options: GetVectorStoreFileBatchOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFileBatch> {\n return getVectorStoreFileBatch(this._client, vectorStoreId, batchId, options);\n }\n\n /** Create a vector store file batch. */\n createVectorStoreFileBatch(\n vectorStoreId: string,\n options: CreateVectorStoreFileBatchOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFileBatch> {\n return createVectorStoreFileBatch(this._client, vectorStoreId, options);\n }\n\n /** Create a vector store file batch and poll. */\n createVectorStoreFileBatchAndPoll(\n vectorStoreId: string,\n options: CreateVectorStoreFileBatchOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<VectorStoreFileBatch>, VectorStoreFileBatch> {\n return createVectorStoreFileBatchAndPoll(this._client, vectorStoreId, options);\n }\n\n /**\n * Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\n * To delete the file, use the delete file endpoint.\n */\n deleteVectorStoreFile(\n vectorStoreId: string,\n fileId: string,\n options: DeleteVectorStoreFileOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFileDeletionStatus> {\n return deleteVectorStoreFile(this._client, vectorStoreId, fileId, options);\n }\n\n /** Retrieves a vector store file. */\n getVectorStoreFile(\n vectorStoreId: string,\n fileId: string,\n options: GetVectorStoreFileOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFile> {\n return getVectorStoreFile(this._client, vectorStoreId, fileId, options);\n }\n\n /** Create a vector store file by attaching a file to a vector store. */\n createVectorStoreFile(\n vectorStoreId: string,\n options: CreateVectorStoreFileOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreFile> {\n return createVectorStoreFile(this._client, vectorStoreId, options);\n }\n\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createVectorStoreFileAndPoll(\n vectorStoreId: string,\n options: CreateVectorStoreFileOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<VectorStoreFile>, VectorStoreFile> {\n return createVectorStoreFileAndPoll(this._client, vectorStoreId, options);\n }\n\n /** Returns a list of vector store files. */\n listVectorStoreFiles(\n vectorStoreId: string,\n options: ListVectorStoreFilesOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfVectorStoreFile> {\n return listVectorStoreFiles(this._client, vectorStoreId, options);\n }\n\n /** Deletes the vector store object matching the specified ID. */\n deleteVectorStore(\n vectorStoreId: string,\n options: DeleteVectorStoreOptionalParams = { requestOptions: {} },\n ): Promise<VectorStoreDeletionStatus> {\n return deleteVectorStore(this._client, vectorStoreId, options);\n }\n\n /** The ID of the vector store to modify. */\n modifyVectorStore(\n vectorStoreId: string,\n options: ModifyVectorStoreOptionalParams = { requestOptions: {} },\n ): Promise<VectorStore> {\n return modifyVectorStore(this._client, vectorStoreId, options);\n }\n\n /** Returns the vector store object matching the specified ID. */\n getVectorStore(\n vectorStoreId: string,\n options: GetVectorStoreOptionalParams = { requestOptions: {} },\n ): Promise<VectorStore> {\n return getVectorStore(this._client, vectorStoreId, options);\n }\n\n /** Creates a vector store. */\n createVectorStore(\n options: CreateVectorStoreOptionalParams = { requestOptions: {} },\n ): Promise<VectorStore> {\n return createVectorStore(this._client, options);\n }\n\n /**\n * Creates a vector store and poll.\n */\n createVectorStoreAndPoll(\n options: CreateVectorStoreOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createVectorStoreAndPoll(this._client, options);\n }\n\n /** Returns a list of vector stores. */\n listVectorStores(\n options: ListVectorStoresOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfVectorStore> {\n return listVectorStores(this._client, options);\n }\n\n /** Retrieves the raw content of a specific file. */\n getFileContent(\n fileId: string,\n options: GetFileContentOptionalParams = { requestOptions: {} },\n ): Promise<Uint8Array> {\n return getFileContent(this._client, fileId, options);\n }\n\n /** Returns information about a specific file. Does not retrieve file content. */\n getFile(\n fileId: string,\n options: GetFileOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIFile> {\n return getFile(this._client, fileId, options);\n }\n\n /** Delete a previously uploaded file. */\n deleteFile(\n fileId: string,\n options: DeleteFileOptionalParams = { requestOptions: {} },\n ): Promise<FileDeletionStatus> {\n return deleteFile(this._client, fileId, options);\n }\n\n /** Uploads a file for use by other operations. */\n uploadFile(\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: UploadFileOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIFile> {\n return uploadFile(\n this._client,\n { file: file, purpose: purpose, filename: options.fileName },\n options,\n );\n }\n\n /** Uploads a file for use by other operations and returns a poller to track the status of the operation. */\n uploadFileAndPoll(\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: UploadFileOptionalParams = { requestOptions: {} },\n ): PollerLike<OperationState<OpenAIFile>, OpenAIFile> {\n return uploadFileAndPoll(\n this._client,\n { file: file, purpose: purpose, filename: options.fileName },\n options,\n );\n }\n\n /** Gets a list of previously uploaded files. */\n listFiles(options: ListFilesOptionalParams = { requestOptions: {} }): Promise<FileListResponse> {\n return listFiles(this._client, options);\n }\n\n /** Gets a list of run steps from a thread run. */\n listRunSteps(\n threadId: string,\n runId: string,\n options: ListRunStepsOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfRunStep> {\n return listRunSteps(this._client, threadId, runId, options);\n }\n\n /** Gets a single run step from a thread run. */\n getRunStep(\n threadId: string,\n runId: string,\n stepId: string,\n options: GetRunStepOptionalParams = { requestOptions: {} },\n ): Promise<RunStep> {\n return getRunStep(this._client, threadId, runId, stepId, options);\n }\n\n /** Creates a new agent thread and immediately starts a run using that new thread. */\n createThreadAndRun(\n assistantId: string,\n options: CreateThreadAndRunOptionalParams = { requestOptions: {} },\n ): AgentRunResponse {\n return createThreadAndRun(this._client, assistantId, options);\n }\n\n /** Cancels a run of an in progress thread. */\n cancelRun(\n threadId: string,\n runId: string,\n options: CancelRunOptionalParams = { requestOptions: {} },\n ): Promise<ThreadRun> {\n return cancelRun(this._client, threadId, runId, options);\n }\n\n /** Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'. */\n submitToolOutputsToRun(\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options: SubmitToolOutputsToRunOptionalParams = { requestOptions: {} },\n ): Promise<ThreadRun> {\n return submitToolOutputsToRun(this._client, threadId, runId, toolOutputs, options);\n }\n\n /** Modifies an existing thread run. */\n updateRun(\n threadId: string,\n runId: string,\n options: UpdateRunOptionalParams = { requestOptions: {} },\n ): Promise<ThreadRun> {\n return updateRun(this._client, threadId, runId, options);\n }\n\n /** Gets an existing run from an existing thread. */\n getRun(\n threadId: string,\n runId: string,\n options: GetRunOptionalParams = { requestOptions: {} },\n ): Promise<ThreadRun> {\n return getRun(this._client, threadId, runId, options);\n }\n\n /** Gets a list of runs for a specified thread. */\n listRuns(\n threadId: string,\n options: ListRunsOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfThreadRun> {\n return listRuns(this._client, threadId, options);\n }\n\n /** Creates a new run for an agent thread. */\n createRun(\n threadId: string,\n assistantId: string,\n options: CreateRunOptionalParams = { requestOptions: {} },\n ): AgentRunResponse {\n return createRun(this._client, threadId, assistantId, options);\n }\n\n /** Modifies an existing message on an existing thread. */\n updateMessage(\n threadId: string,\n messageId: string,\n options: UpdateMessageOptionalParams = { requestOptions: {} },\n ): Promise<ThreadMessage> {\n return updateMessage(this._client, threadId, messageId, options);\n }\n\n /** Gets an existing message from an existing thread. */\n getMessage(\n threadId: string,\n messageId: string,\n options: GetMessageOptionalParams = { requestOptions: {} },\n ): Promise<ThreadMessage> {\n return getMessage(this._client, threadId, messageId, options);\n }\n\n /** Gets a list of messages that exist on a thread. */\n listMessages(\n threadId: string,\n options: ListMessagesOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfThreadMessage> {\n return listMessages(this._client, threadId, options);\n }\n\n /** Creates a new message on a specified thread. */\n createMessage(\n threadId: string,\n role: MessageRole,\n content: MessageInputContent,\n options: CreateMessageOptionalParams = { requestOptions: {} },\n ): Promise<ThreadMessage> {\n return createMessage(this._client, threadId, role, content, options);\n }\n\n /** Gets a list of threads that were previously created. */\n listThreads(\n options: ListThreadsOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfAgentThread> {\n return listThreads(this._client, options);\n }\n\n /** Deletes an existing thread. */\n deleteThread(\n threadId: string,\n options: DeleteThreadOptionalParams = { requestOptions: {} },\n ): Promise<ThreadDeletionStatus> {\n return deleteThread(this._client, threadId, options);\n }\n\n /** Modifies an existing thread. */\n updateThread(\n threadId: string,\n options: UpdateThreadOptionalParams = { requestOptions: {} },\n ): Promise<AgentThread> {\n return updateThread(this._client, threadId, options);\n }\n\n /** Gets information about an existing thread. */\n getThread(\n threadId: string,\n options: GetThreadOptionalParams = { requestOptions: {} },\n ): Promise<AgentThread> {\n return getThread(this._client, threadId, options);\n }\n\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n createThread(options: CreateThreadOptionalParams = { requestOptions: {} }): Promise<AgentThread> {\n return createThread(this._client, options);\n }\n\n /** Deletes an agent. */\n deleteAgent(\n assistantId: string,\n options: DeleteAgentOptionalParams = { requestOptions: {} },\n ): Promise<AgentDeletionStatus> {\n return deleteAgent(this._client, assistantId, options);\n }\n\n /** Modifies an existing agent. */\n updateAgent(\n assistantId: string,\n options: UpdateAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return updateAgent(this._client, assistantId, options);\n }\n\n /** Retrieves an existing agent. */\n getAgent(\n assistantId: string,\n options: GetAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return getAgent(this._client, assistantId, options);\n }\n\n /** Gets a list of agents that were previously created. */\n listAgents(\n options: ListAgentsOptionalParams = { requestOptions: {} },\n ): Promise<OpenAIPageableListOfAgent> {\n return listAgents(this._client, options);\n }\n\n /** Creates a new agent. */\n createAgent(\n model: string,\n options: CreateAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return createAgent(this._client, model, options);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"agentsClient.js","sourceRoot":"","sources":["../../src/agentsClient.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;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AAA,gCAAqB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAmBD,wBAAwB;IACxB,WAAW,CACT,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE3D,OAAO,IAAA,2BAAW,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,kCAAkC;IAClC,WAAW,CACT,WAAmB,EACnB,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE3D,OAAO,IAAA,2BAAW,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,mCAAmC;IACnC,QAAQ,CACN,WAAmB,EACnB,UAAkC,EAAE,cAAc,EAAE,EAAE,EAAE;QAExD,OAAO,IAAA,wBAAQ,EAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,0DAA0D;IAC1D,UAAU,CACR,UAAoC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE1D,OAAO,IAAA,0BAAU,EAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,2BAA2B;IAC3B,WAAW,CACT,KAAa,EACb,UAAqC,EAAE,cAAc,EAAE,EAAE,EAAE;QAE3D,OAAO,IAAA,2BAAW,EAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;CACF;AApFD,oCAoFC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext, AgentsClientOptionalParams } from \"./api/index.js\";\nimport { createAgents } from \"./api/index.js\";\nimport type { Agent, AgentDeletionStatus } from \"./models/models.js\";\nimport type {\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n} from \"./api/options.js\";\nimport { deleteAgent, updateAgent, getAgent, listAgents, createAgent } from \"./api/operations.js\";\nimport type { VectorStoreFileBatchesOperations } from \"./classic/vectorStoreFileBatches/index.js\";\nimport { _getVectorStoreFileBatchesOperations } from \"./classic/vectorStoreFileBatches/index.js\";\nimport type { VectorStoreFilesOperations } from \"./classic/vectorStoreFiles/index.js\";\nimport { _getVectorStoreFilesOperations } from \"./classic/vectorStoreFiles/index.js\";\nimport type { VectorStoresOperations } from \"./classic/vectorStores/index.js\";\nimport { _getVectorStoresOperations } from \"./classic/vectorStores/index.js\";\nimport type { FilesOperations } from \"./classic/files/index.js\";\nimport { _getFilesOperations } from \"./classic/files/index.js\";\nimport type { RunStepsOperations } from \"./classic/runSteps/index.js\";\nimport { _getRunStepsOperations } from \"./classic/runSteps/index.js\";\nimport type { RunsOperations } from \"./classic/runs/index.js\";\nimport { _getRunsOperations } from \"./classic/runs/index.js\";\nimport type { MessagesOperations } from \"./classic/messages/index.js\";\nimport { _getMessagesOperations } from \"./classic/messages/index.js\";\nimport type { ThreadsOperations } from \"./classic/threads/index.js\";\nimport { _getThreadsOperations } from \"./classic/threads/index.js\";\nimport type { PagedAsyncIterableIterator } from \"./static-helpers/pagingHelpers.js\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\nimport type { KeyCredential, TokenCredential } from \"@azure/core-auth\";\n\nexport { AgentsClientOptionalParams } from \"./api/agentsContext.js\";\n\nexport class AgentsClient {\n private _client: AgentsContext;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n endpointParam: string,\n credential: KeyCredential | TokenCredential,\n options: AgentsClientOptionalParams = {},\n ) {\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._client = createAgents(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n this.pipeline = this._client.pipeline;\n this.vectorStoreFileBatches = _getVectorStoreFileBatchesOperations(this._client);\n this.vectorStoreFiles = _getVectorStoreFilesOperations(this._client);\n this.vectorStores = _getVectorStoresOperations(this._client);\n this.files = _getFilesOperations(this._client);\n this.runSteps = _getRunStepsOperations(this._client);\n this.runs = _getRunsOperations(this._client);\n this.messages = _getMessagesOperations(this._client);\n this.threads = _getThreadsOperations(this._client);\n }\n\n /** The operation groups for vectorStoreFileBatches */\n public readonly vectorStoreFileBatches: VectorStoreFileBatchesOperations;\n /** The operation groups for vectorStoreFiles */\n public readonly vectorStoreFiles: VectorStoreFilesOperations;\n /** The operation groups for vectorStores */\n public readonly vectorStores: VectorStoresOperations;\n /** The operation groups for files */\n public readonly files: FilesOperations;\n /** The operation groups for runSteps */\n public readonly runSteps: RunStepsOperations;\n /** The operation groups for runs */\n public readonly runs: RunsOperations;\n /** The operation groups for messages */\n public readonly messages: MessagesOperations;\n /** The operation groups for threads */\n public readonly threads: ThreadsOperations;\n\n /** Deletes an agent. */\n deleteAgent(\n assistantId: string,\n options: DeleteAgentOptionalParams = { requestOptions: {} },\n ): Promise<AgentDeletionStatus> {\n return deleteAgent(this._client, assistantId, options);\n }\n\n /** Modifies an existing agent. */\n updateAgent(\n assistantId: string,\n options: UpdateAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return updateAgent(this._client, assistantId, options);\n }\n\n /** Retrieves an existing agent. */\n getAgent(\n assistantId: string,\n options: GetAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return getAgent(this._client, assistantId, options);\n }\n\n /** Gets a list of agents that were previously created. */\n listAgents(\n options: ListAgentsOptionalParams = { requestOptions: {} },\n ): PagedAsyncIterableIterator<Agent> {\n return listAgents(this._client, options);\n }\n\n /** Creates a new agent. */\n createAgent(\n model: string,\n options: CreateAgentOptionalParams = { requestOptions: {} },\n ): Promise<Agent> {\n return createAgent(this._client, model, options);\n }\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getFileContent, getFile, deleteFile, uploadFile, listFiles } from "./operations.js";
|
|
2
|
+
export { FilesGetFileContentOptionalParams, FilesGetFileOptionalParams, FilesDeleteFileOptionalParams, FilesUploadFileOptionalParams, FilesListFilesOptionalParams, } from "./options.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/files/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC7F,OAAO,EACL,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.listFiles = exports.uploadFile = exports.deleteFile = exports.getFile = exports.getFileContent = void 0;
|
|
6
|
+
var operations_js_1 = require("./operations.js");
|
|
7
|
+
Object.defineProperty(exports, "getFileContent", { enumerable: true, get: function () { return operations_js_1.getFileContent; } });
|
|
8
|
+
Object.defineProperty(exports, "getFile", { enumerable: true, get: function () { return operations_js_1.getFile; } });
|
|
9
|
+
Object.defineProperty(exports, "deleteFile", { enumerable: true, get: function () { return operations_js_1.deleteFile; } });
|
|
10
|
+
Object.defineProperty(exports, "uploadFile", { enumerable: true, get: function () { return operations_js_1.uploadFile; } });
|
|
11
|
+
Object.defineProperty(exports, "listFiles", { enumerable: true, get: function () { return operations_js_1.listFiles; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/files/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,iDAA6F;AAApF,+GAAA,cAAc,OAAA;AAAE,wGAAA,OAAO,OAAA;AAAE,2GAAA,UAAU,OAAA;AAAE,2GAAA,UAAU,OAAA;AAAE,0GAAA,SAAS,OAAA","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { getFileContent, getFile, deleteFile, uploadFile, listFiles } from \"./operations.js\";\nexport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AgentsContext as Client } from "../index.js";
|
|
2
|
+
import { FileListResponse, FileInfo, FilePurpose, FileDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import { FilesGetFileContentOptionalParams, FilesGetFileOptionalParams, FilesDeleteFileOptionalParams, FilesUploadFileOptionalParams, FilesListFilesOptionalParams } from "./options.js";
|
|
4
|
+
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
5
|
+
import type { OperationState, PollerLike } from "@azure/core-lro";
|
|
6
|
+
export declare function _getFileContentSend(context: Client, fileId: string, options?: FilesGetFileContentOptionalParams): StreamableMethod<string | Uint8Array>;
|
|
7
|
+
/** Retrieves the raw content of a specific file. */
|
|
8
|
+
export declare function getFileContent(context: Client, fileId: string, options?: FilesGetFileContentOptionalParams): StreamableMethod<string | Uint8Array>;
|
|
9
|
+
export declare function _getFileSend(context: Client, fileId: string, options?: FilesGetFileOptionalParams): StreamableMethod;
|
|
10
|
+
export declare function _getFileDeserialize(result: PathUncheckedResponse): Promise<FileInfo>;
|
|
11
|
+
/** Returns information about a specific file. Does not retrieve file content. */
|
|
12
|
+
export declare function getFile(context: Client, fileId: string, options?: FilesGetFileOptionalParams): Promise<FileInfo>;
|
|
13
|
+
export declare function _deleteFileSend(context: Client, fileId: string, options?: FilesDeleteFileOptionalParams): StreamableMethod;
|
|
14
|
+
export declare function _deleteFileDeserialize(result: PathUncheckedResponse): Promise<FileDeletionStatus>;
|
|
15
|
+
/** Delete a previously uploaded file. */
|
|
16
|
+
export declare function deleteFile(context: Client, fileId: string, options?: FilesDeleteFileOptionalParams): Promise<FileDeletionStatus>;
|
|
17
|
+
export declare function _uploadFileSend(context: Client, body: {
|
|
18
|
+
file: ReadableStream | NodeJS.ReadableStream;
|
|
19
|
+
purpose: FilePurpose;
|
|
20
|
+
filename?: string;
|
|
21
|
+
}, options?: FilesUploadFileOptionalParams): StreamableMethod;
|
|
22
|
+
export declare function _uploadFileDeserialize(result: PathUncheckedResponse): Promise<FileInfo>;
|
|
23
|
+
/** Uploads a file for use by other operations. */
|
|
24
|
+
export declare function uploadFileInternal(context: Client, body: {
|
|
25
|
+
file: ReadableStream | NodeJS.ReadableStream;
|
|
26
|
+
purpose: FilePurpose;
|
|
27
|
+
filename?: string;
|
|
28
|
+
}, options?: FilesUploadFileOptionalParams): Promise<FileInfo>;
|
|
29
|
+
/** Uploads a file for use by other operations. */
|
|
30
|
+
export declare function uploadFile(context: Client, body: {
|
|
31
|
+
file: ReadableStream | NodeJS.ReadableStream;
|
|
32
|
+
purpose: FilePurpose;
|
|
33
|
+
filename?: string;
|
|
34
|
+
}, options?: FilesUploadFileOptionalParams): PollerLike<OperationState<FileInfo>, FileInfo>;
|
|
35
|
+
/** Uploads a file for use by other operations with polling */
|
|
36
|
+
export declare function uploadFileAndPoll(context: Client, body: {
|
|
37
|
+
file: ReadableStream | NodeJS.ReadableStream;
|
|
38
|
+
purpose: FilePurpose;
|
|
39
|
+
filename?: string;
|
|
40
|
+
}, options?: FilesUploadFileOptionalParams): PollerLike<OperationState<FileInfo>, FileInfo>;
|
|
41
|
+
export declare function _listFilesSend(context: Client, options?: FilesListFilesOptionalParams): StreamableMethod;
|
|
42
|
+
export declare function _listFilesDeserialize(result: PathUncheckedResponse): Promise<FileListResponse>;
|
|
43
|
+
/** Gets a list of previously uploaded files. */
|
|
44
|
+
export declare function listFiles(context: Client, options?: FilesListFilesOptionalParams): Promise<FileListResponse>;
|
|
45
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/files/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EACL,gBAAgB,EAEhB,QAAQ,EAER,WAAW,EAEX,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iCAAiC,EACjC,0BAA0B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAmB,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGnF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,iCAA0D,GAClE,gBAAgB,CAAC,MAAM,GAAG,UAAU,CAAC,CAkBvC;AAED,oDAAoD;AACpD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,iCAA0D,GAClE,gBAAgB,CAAC,MAAM,GAAG,UAAU,CAAC,CAGvC;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,0BAAmD,GAC3D,gBAAgB,CAkBlB;AAED,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAO1F;AAED,iFAAiF;AACjF,wBAAsB,OAAO,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAA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