@azure/ai-agents 1.0.0-beta.6 → 1.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -26
- package/dist/browser/agentsClient.d.ts +2 -2
- package/dist/browser/agentsClient.d.ts.map +1 -1
- package/dist/browser/agentsClient.js.map +1 -1
- package/dist/browser/api/agentsContext.d.ts +2 -2
- package/dist/browser/api/agentsContext.d.ts.map +1 -1
- package/dist/browser/api/agentsContext.js +12 -24
- package/dist/browser/api/agentsContext.js.map +1 -1
- package/dist/browser/api/files/operations.d.ts +4 -4
- package/dist/browser/api/files/operations.d.ts.map +1 -1
- package/dist/browser/api/files/operations.js +25 -12
- package/dist/browser/api/files/operations.js.map +1 -1
- package/dist/browser/api/files/options.d.ts +3 -3
- package/dist/browser/api/files/options.d.ts.map +1 -1
- package/dist/browser/api/files/options.js.map +1 -1
- package/dist/browser/api/messages/operations.d.ts.map +1 -1
- package/dist/browser/api/messages/operations.js +18 -12
- package/dist/browser/api/messages/operations.js.map +1 -1
- package/dist/browser/api/operations.d.ts +7 -6
- package/dist/browser/api/operations.d.ts.map +1 -1
- package/dist/browser/api/operations.js +34 -22
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/options.d.ts +2 -2
- package/dist/browser/api/options.d.ts.map +1 -1
- package/dist/browser/api/options.js.map +1 -1
- package/dist/browser/api/runSteps/operations.d.ts.map +1 -1
- package/dist/browser/api/runSteps/operations.js +11 -7
- package/dist/browser/api/runSteps/operations.js.map +1 -1
- package/dist/browser/api/runs/operations.d.ts.map +1 -1
- package/dist/browser/api/runs/operations.js +38 -20
- package/dist/browser/api/runs/operations.js.map +1 -1
- package/dist/browser/api/runs/options.d.ts +9 -3
- package/dist/browser/api/runs/options.d.ts.map +1 -1
- package/dist/browser/api/runs/options.js.map +1 -1
- package/dist/browser/api/threads/operations.d.ts.map +1 -1
- package/dist/browser/api/threads/operations.js +26 -16
- package/dist/browser/api/threads/operations.js.map +1 -1
- package/dist/browser/api/threads/options.d.ts +2 -2
- package/dist/browser/api/threads/options.d.ts.map +1 -1
- package/dist/browser/api/threads/options.js.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts +7 -7
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/operations.js +29 -11
- package/dist/browser/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts +3 -3
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts.map +1 -1
- package/dist/browser/api/vectorStoreFileBatches/options.js.map +1 -1
- package/dist/browser/api/vectorStoreFiles/operations.d.ts.map +1 -1
- package/dist/browser/api/vectorStoreFiles/operations.js +13 -5
- package/dist/browser/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/browser/api/vectorStores/operations.d.ts.map +1 -1
- package/dist/browser/api/vectorStores/operations.js +16 -6
- package/dist/browser/api/vectorStores/operations.js.map +1 -1
- package/dist/browser/classic/runSteps/index.d.ts +0 -1
- package/dist/browser/classic/runSteps/index.d.ts.map +1 -1
- package/dist/browser/classic/runSteps/index.js.map +1 -1
- package/dist/browser/classic/runs/index.d.ts +1 -1
- package/dist/browser/classic/runs/index.d.ts.map +1 -1
- package/dist/browser/classic/runs/index.js.map +1 -1
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts +6 -6
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/browser/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/browser/classic/vectorStoreFiles/index.d.ts +5 -5
- package/dist/browser/classic/vectorStoreFiles/index.d.ts.map +1 -1
- package/dist/browser/classic/vectorStoreFiles/index.js +2 -0
- package/dist/browser/classic/vectorStoreFiles/index.js.map +1 -1
- package/dist/browser/classic/vectorStores/index.d.ts.map +1 -1
- package/dist/browser/classic/vectorStores/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +5 -4
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -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.map +1 -1
- package/dist/browser/models/models.d.ts +212 -94
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +245 -108
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/utils/MCPTool.d.ts +78 -0
- package/dist/browser/utils/MCPTool.d.ts.map +1 -0
- package/dist/browser/utils/MCPTool.js +128 -0
- package/dist/browser/utils/MCPTool.js.map +1 -0
- package/dist/browser/{utils.d.ts → utils/utils.d.ts} +12 -1
- package/dist/browser/utils/utils.d.ts.map +1 -0
- package/dist/{esm → browser/utils}/utils.js +9 -0
- package/dist/browser/utils/utils.js.map +1 -0
- package/dist/commonjs/agentsClient.d.ts +2 -2
- package/dist/commonjs/agentsClient.d.ts.map +1 -1
- package/dist/commonjs/agentsClient.js.map +1 -1
- package/dist/commonjs/api/agentsContext.d.ts +2 -2
- package/dist/commonjs/api/agentsContext.d.ts.map +1 -1
- package/dist/commonjs/api/agentsContext.js +12 -24
- package/dist/commonjs/api/agentsContext.js.map +1 -1
- package/dist/commonjs/api/files/operations.d.ts +4 -4
- package/dist/commonjs/api/files/operations.d.ts.map +1 -1
- package/dist/commonjs/api/files/operations.js +23 -10
- package/dist/commonjs/api/files/operations.js.map +1 -1
- package/dist/commonjs/api/files/options.d.ts +3 -3
- package/dist/commonjs/api/files/options.d.ts.map +1 -1
- package/dist/commonjs/api/files/options.js.map +1 -1
- package/dist/commonjs/api/messages/operations.d.ts.map +1 -1
- package/dist/commonjs/api/messages/operations.js +17 -11
- package/dist/commonjs/api/messages/operations.js.map +1 -1
- package/dist/commonjs/api/operations.d.ts +7 -6
- package/dist/commonjs/api/operations.d.ts.map +1 -1
- package/dist/commonjs/api/operations.js +31 -19
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/options.d.ts +2 -2
- package/dist/commonjs/api/options.d.ts.map +1 -1
- package/dist/commonjs/api/options.js.map +1 -1
- package/dist/commonjs/api/runSteps/operations.d.ts.map +1 -1
- package/dist/commonjs/api/runSteps/operations.js +10 -6
- package/dist/commonjs/api/runSteps/operations.js.map +1 -1
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -1
- package/dist/commonjs/api/runs/operations.js +37 -19
- package/dist/commonjs/api/runs/operations.js.map +1 -1
- package/dist/commonjs/api/runs/options.d.ts +9 -3
- package/dist/commonjs/api/runs/options.d.ts.map +1 -1
- package/dist/commonjs/api/runs/options.js.map +1 -1
- package/dist/commonjs/api/threads/operations.d.ts.map +1 -1
- package/dist/commonjs/api/threads/operations.js +25 -15
- package/dist/commonjs/api/threads/operations.js.map +1 -1
- package/dist/commonjs/api/threads/options.d.ts +2 -2
- package/dist/commonjs/api/threads/options.d.ts.map +1 -1
- package/dist/commonjs/api/threads/options.js.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts +7 -7
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js +26 -8
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts +3 -3
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts.map +1 -1
- package/dist/commonjs/api/vectorStoreFileBatches/options.js.map +1 -1
- package/dist/commonjs/api/vectorStoreFiles/operations.d.ts.map +1 -1
- package/dist/commonjs/api/vectorStoreFiles/operations.js +12 -4
- package/dist/commonjs/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/commonjs/api/vectorStores/operations.d.ts.map +1 -1
- package/dist/commonjs/api/vectorStores/operations.js +15 -5
- package/dist/commonjs/api/vectorStores/operations.js.map +1 -1
- package/dist/commonjs/classic/runSteps/index.d.ts +0 -1
- package/dist/commonjs/classic/runSteps/index.d.ts.map +1 -1
- package/dist/commonjs/classic/runSteps/index.js.map +1 -1
- package/dist/commonjs/classic/runs/index.d.ts +1 -1
- package/dist/commonjs/classic/runs/index.d.ts.map +1 -1
- package/dist/commonjs/classic/runs/index.js.map +1 -1
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts +6 -6
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts +5 -5
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts.map +1 -1
- package/dist/commonjs/classic/vectorStoreFiles/index.js +2 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.js.map +1 -1
- package/dist/commonjs/classic/vectorStores/index.d.ts.map +1 -1
- package/dist/commonjs/classic/vectorStores/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +5 -4
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -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 +2 -2
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +212 -94
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +282 -125
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/utils/MCPTool.d.ts +78 -0
- package/dist/commonjs/utils/MCPTool.d.ts.map +1 -0
- package/dist/commonjs/utils/MCPTool.js +132 -0
- package/dist/commonjs/utils/MCPTool.js.map +1 -0
- package/dist/commonjs/{utils.d.ts → utils/utils.d.ts} +12 -1
- package/dist/commonjs/utils/utils.d.ts.map +1 -0
- package/dist/commonjs/{utils.js → utils/utils.js} +9 -0
- package/dist/commonjs/utils/utils.js.map +1 -0
- package/dist/esm/agentsClient.d.ts +2 -2
- package/dist/esm/agentsClient.d.ts.map +1 -1
- package/dist/esm/agentsClient.js.map +1 -1
- package/dist/esm/api/agentsContext.d.ts +2 -2
- package/dist/esm/api/agentsContext.d.ts.map +1 -1
- package/dist/esm/api/agentsContext.js +12 -24
- package/dist/esm/api/agentsContext.js.map +1 -1
- package/dist/esm/api/files/operations.d.ts +4 -4
- package/dist/esm/api/files/operations.d.ts.map +1 -1
- package/dist/esm/api/files/operations.js +25 -12
- package/dist/esm/api/files/operations.js.map +1 -1
- package/dist/esm/api/files/options.d.ts +3 -3
- package/dist/esm/api/files/options.d.ts.map +1 -1
- package/dist/esm/api/files/options.js.map +1 -1
- package/dist/esm/api/messages/operations.d.ts.map +1 -1
- package/dist/esm/api/messages/operations.js +18 -12
- package/dist/esm/api/messages/operations.js.map +1 -1
- package/dist/esm/api/operations.d.ts +7 -6
- package/dist/esm/api/operations.d.ts.map +1 -1
- package/dist/esm/api/operations.js +34 -22
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/options.d.ts +2 -2
- package/dist/esm/api/options.d.ts.map +1 -1
- package/dist/esm/api/options.js.map +1 -1
- package/dist/esm/api/runSteps/operations.d.ts.map +1 -1
- package/dist/esm/api/runSteps/operations.js +11 -7
- package/dist/esm/api/runSteps/operations.js.map +1 -1
- package/dist/esm/api/runs/operations.d.ts.map +1 -1
- package/dist/esm/api/runs/operations.js +38 -20
- package/dist/esm/api/runs/operations.js.map +1 -1
- package/dist/esm/api/runs/options.d.ts +9 -3
- package/dist/esm/api/runs/options.d.ts.map +1 -1
- package/dist/esm/api/runs/options.js.map +1 -1
- package/dist/esm/api/threads/operations.d.ts.map +1 -1
- package/dist/esm/api/threads/operations.js +26 -16
- package/dist/esm/api/threads/operations.js.map +1 -1
- package/dist/esm/api/threads/options.d.ts +2 -2
- package/dist/esm/api/threads/options.d.ts.map +1 -1
- package/dist/esm/api/threads/options.js.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts +7 -7
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/operations.js +29 -11
- package/dist/esm/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts +3 -3
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts.map +1 -1
- package/dist/esm/api/vectorStoreFileBatches/options.js.map +1 -1
- package/dist/esm/api/vectorStoreFiles/operations.d.ts.map +1 -1
- package/dist/esm/api/vectorStoreFiles/operations.js +13 -5
- package/dist/esm/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/esm/api/vectorStores/operations.d.ts.map +1 -1
- package/dist/esm/api/vectorStores/operations.js +16 -6
- package/dist/esm/api/vectorStores/operations.js.map +1 -1
- package/dist/esm/classic/runSteps/index.d.ts +0 -1
- package/dist/esm/classic/runSteps/index.d.ts.map +1 -1
- package/dist/esm/classic/runSteps/index.js.map +1 -1
- package/dist/esm/classic/runs/index.d.ts +1 -1
- package/dist/esm/classic/runs/index.d.ts.map +1 -1
- package/dist/esm/classic/runs/index.js.map +1 -1
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts +6 -6
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/esm/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/esm/classic/vectorStoreFiles/index.d.ts +5 -5
- package/dist/esm/classic/vectorStoreFiles/index.d.ts.map +1 -1
- package/dist/esm/classic/vectorStoreFiles/index.js +2 -0
- package/dist/esm/classic/vectorStoreFiles/index.js.map +1 -1
- package/dist/esm/classic/vectorStores/index.d.ts.map +1 -1
- package/dist/esm/classic/vectorStores/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +5 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -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.map +1 -1
- package/dist/esm/models/models.d.ts +212 -94
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +245 -108
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/utils/MCPTool.d.ts +78 -0
- package/dist/esm/utils/MCPTool.d.ts.map +1 -0
- package/dist/esm/utils/MCPTool.js +128 -0
- package/dist/esm/utils/MCPTool.js.map +1 -0
- package/dist/{react-native → esm/utils}/utils.d.ts +12 -1
- package/dist/esm/utils/utils.d.ts.map +1 -0
- package/dist/{react-native → esm/utils}/utils.js +9 -0
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/react-native/agentsClient.d.ts +2 -2
- package/dist/react-native/agentsClient.d.ts.map +1 -1
- package/dist/react-native/agentsClient.js.map +1 -1
- package/dist/react-native/api/agentsContext.d.ts +2 -2
- package/dist/react-native/api/agentsContext.d.ts.map +1 -1
- package/dist/react-native/api/agentsContext.js +12 -24
- package/dist/react-native/api/agentsContext.js.map +1 -1
- package/dist/react-native/api/files/operations.d.ts +4 -4
- package/dist/react-native/api/files/operations.d.ts.map +1 -1
- package/dist/react-native/api/files/operations.js +25 -12
- package/dist/react-native/api/files/operations.js.map +1 -1
- package/dist/react-native/api/files/options.d.ts +3 -3
- package/dist/react-native/api/files/options.d.ts.map +1 -1
- package/dist/react-native/api/files/options.js.map +1 -1
- package/dist/react-native/api/messages/operations.d.ts.map +1 -1
- package/dist/react-native/api/messages/operations.js +18 -12
- package/dist/react-native/api/messages/operations.js.map +1 -1
- package/dist/react-native/api/operations.d.ts +7 -6
- package/dist/react-native/api/operations.d.ts.map +1 -1
- package/dist/react-native/api/operations.js +34 -22
- package/dist/react-native/api/operations.js.map +1 -1
- package/dist/react-native/api/options.d.ts +2 -2
- 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/operations.d.ts.map +1 -1
- package/dist/react-native/api/runSteps/operations.js +11 -7
- package/dist/react-native/api/runSteps/operations.js.map +1 -1
- package/dist/react-native/api/runs/operations.d.ts.map +1 -1
- package/dist/react-native/api/runs/operations.js +38 -20
- package/dist/react-native/api/runs/operations.js.map +1 -1
- package/dist/react-native/api/runs/options.d.ts +9 -3
- package/dist/react-native/api/runs/options.d.ts.map +1 -1
- package/dist/react-native/api/runs/options.js.map +1 -1
- package/dist/react-native/api/threads/operations.d.ts.map +1 -1
- package/dist/react-native/api/threads/operations.js +26 -16
- package/dist/react-native/api/threads/operations.js.map +1 -1
- package/dist/react-native/api/threads/options.d.ts +2 -2
- package/dist/react-native/api/threads/options.d.ts.map +1 -1
- package/dist/react-native/api/threads/options.js.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts +7 -7
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/operations.js +29 -11
- package/dist/react-native/api/vectorStoreFileBatches/operations.js.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts +3 -3
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts.map +1 -1
- package/dist/react-native/api/vectorStoreFileBatches/options.js.map +1 -1
- package/dist/react-native/api/vectorStoreFiles/operations.d.ts.map +1 -1
- package/dist/react-native/api/vectorStoreFiles/operations.js +13 -5
- package/dist/react-native/api/vectorStoreFiles/operations.js.map +1 -1
- package/dist/react-native/api/vectorStores/operations.d.ts.map +1 -1
- package/dist/react-native/api/vectorStores/operations.js +16 -6
- package/dist/react-native/api/vectorStores/operations.js.map +1 -1
- package/dist/react-native/classic/runSteps/index.d.ts +0 -1
- package/dist/react-native/classic/runSteps/index.d.ts.map +1 -1
- package/dist/react-native/classic/runSteps/index.js.map +1 -1
- package/dist/react-native/classic/runs/index.d.ts +1 -1
- package/dist/react-native/classic/runs/index.d.ts.map +1 -1
- package/dist/react-native/classic/runs/index.js.map +1 -1
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts +6 -6
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts.map +1 -1
- package/dist/react-native/classic/vectorStoreFileBatches/index.js.map +1 -1
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts +5 -5
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts.map +1 -1
- package/dist/react-native/classic/vectorStoreFiles/index.js +2 -0
- package/dist/react-native/classic/vectorStoreFiles/index.js.map +1 -1
- package/dist/react-native/classic/vectorStores/index.d.ts.map +1 -1
- package/dist/react-native/classic/vectorStores/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +5 -4
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -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.map +1 -1
- package/dist/react-native/models/models.d.ts +212 -94
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +245 -108
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/utils/MCPTool.d.ts +78 -0
- package/dist/react-native/utils/MCPTool.d.ts.map +1 -0
- package/dist/react-native/utils/MCPTool.js +128 -0
- package/dist/react-native/utils/MCPTool.js.map +1 -0
- package/dist/{esm → react-native/utils}/utils.d.ts +12 -1
- package/dist/react-native/utils/utils.d.ts.map +1 -0
- package/dist/{browser → react-native/utils}/utils.js +9 -0
- package/dist/react-native/utils/utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/browser/utils.d.ts.map +0 -1
- package/dist/browser/utils.js.map +0 -1
- package/dist/commonjs/utils.d.ts.map +0 -1
- package/dist/commonjs/utils.js.map +0 -1
- package/dist/esm/utils.d.ts.map +0 -1
- package/dist/esm/utils.js.map +0 -1
- package/dist/react-native/utils.d.ts.map +0 -1
- package/dist/react-native/utils.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/vectorStores/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAElC,yCAAyC,EAEzC,uBAAuB,EACvB,qCAAqC,EACrC,iDAAiD,EAEjD,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,aAAqB,EACrB,UAAuD,EAAE,cAAc,EAA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AkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,OAAO,yCAAyC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC7C,4BAA4B,EAC5B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAmB;IAChD,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC;QACnB,KAAK,WAAW;YACd,OAAO,WAAW,CAAC;QACrB,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC;QAClB;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext as Client } from \"../index.js\";\nimport {\n vectorStoreConfigurationSerializer,\n _AgentsPagedResultVectorStore,\n _agentsPagedResultVectorStoreDeserializer,\n VectorStore,\n vectorStoreDeserializer,\n vectorStoreExpirationPolicySerializer,\n vectorStoreChunkingStrategyRequestUnionSerializer,\n VectorStoreDeletionStatus,\n vectorStoreDeletionStatusDeserializer,\n} from \"../../models/models.js\";\nimport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState, OperationStatus } from \"@azure/core-lro\";\nimport { createPoller } from \"../poller.js\";\n\nexport function _deleteVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStoreDeletionStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeletionStatusDeserializer(result.body);\n}\n\n/** Deletes the vector store object matching the specified ID. */\nexport async function deleteVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStoreDeletionStatus> {\n const result = await _deleteVectorStoreSend(context, vectorStoreId, options);\n return _deleteVectorStoreDeserialize(result);\n}\n\nexport function _modifyVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n name: options?.name,\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _modifyVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Modifies an existing vector store. */\nexport async function modifyVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _modifyVectorStoreSend(context, vectorStoreId, options);\n return _modifyVectorStoreDeserialize(result);\n}\n\nexport function _getVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Returns the vector store object matching the specified ID. */\nexport async function getVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _getVectorStoreSend(context, vectorStoreId, options);\n return _getVectorStoreDeserialize(result);\n}\n\nexport function _createVectorStoreSend(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: {\n file_ids: !options?.fileIds\n ? options?.fileIds\n : options?.fileIds.map((p: any) => {\n return p;\n }),\n name: options?.name,\n configuration: !options?.storeConfiguration\n ? options?.storeConfiguration\n : vectorStoreConfigurationSerializer(options?.storeConfiguration),\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n chunking_strategy: !options?.chunkingStrategy\n ? options?.chunkingStrategy\n : vectorStoreChunkingStrategyRequestUnionSerializer(options?.chunkingStrategy),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _createVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Creates a vector store. */\nexport async function createVectorStoreInternal(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _createVectorStoreSend(context, options);\n return _createVectorStoreDeserialize(result);\n}\n\n/** Creates a vector store. */\nexport function createVectorStore(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\n/**\n * Creates a vector store and poll.\n */\nexport function createVectorStoreAndPoll(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\nexport function _listVectorStoresSend(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion,limit,order,after,before}\",\n {\n \"api%2Dversion\": context.apiVersion,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listVectorStoresDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultVectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _agentsPagedResultVectorStoreDeserializer(result.body);\n}\n\n/** Returns a list of vector stores. */\nexport function listVectorStores(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<VectorStore> {\n return buildPagedAsyncIterator(\n context,\n () => _listVectorStoresSend(context, options),\n _listVectorStoresDeserialize,\n [\"200\"],\n { itemName: \"data\" },\n );\n}\n\nfunction getLroOperationStatus(result: VectorStore): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"expired\":\n return \"failed\";\n default:\n return \"failed\";\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/vectorStores/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,kCAAkC,EAClC,wBAAwB,EAExB,yCAAyC,EAEzC,uBAAuB,EACvB,qCAAqC,EACrC,iDAAiD,EAEjD,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAQhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,sBAAsB,CACpC,OAAe,EACf,aAAqB,EACrB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE7E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,gDAAgD,EAChD;QACE,aAAa,EAAE,aAAa;QAC5B,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,iCAC3B,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,M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O,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,wBAAwB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACtD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,yCAAyC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAChE,CAAC;AAED,uCAAuC;AACvC,MAAM,UAAU,gBAAgB,CAC9B,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC7C,4BAA4B,EAC5B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAmB;IAChD,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC;QACnB,KAAK,WAAW;YACd,OAAO,WAAW,CAAC;QACrB,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC;QAClB;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext as Client } from \"../index.js\";\nimport {\n vectorStoreConfigurationSerializer,\n agentV1ErrorDeserializer,\n _AgentsPagedResultVectorStore,\n _agentsPagedResultVectorStoreDeserializer,\n VectorStore,\n vectorStoreDeserializer,\n vectorStoreExpirationPolicySerializer,\n vectorStoreChunkingStrategyRequestUnionSerializer,\n VectorStoreDeletionStatus,\n vectorStoreDeletionStatusDeserializer,\n} from \"../../models/models.js\";\nimport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState, OperationStatus } from \"@azure/core-lro\";\nimport { createPoller } from \"../poller.js\";\n\nexport function _deleteVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStoreDeletionStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return vectorStoreDeletionStatusDeserializer(result.body);\n}\n\n/** Deletes the vector store object matching the specified ID. */\nexport async function deleteVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStoreDeletionStatus> {\n const result = await _deleteVectorStoreSend(context, vectorStoreId, options);\n return _deleteVectorStoreDeserialize(result);\n}\n\nexport function _modifyVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n name: options?.name,\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _modifyVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Modifies an existing vector store. */\nexport async function modifyVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _modifyVectorStoreSend(context, vectorStoreId, options);\n return _modifyVectorStoreDeserialize(result);\n}\n\nexport function _getVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Returns the vector store object matching the specified ID. */\nexport async function getVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _getVectorStoreSend(context, vectorStoreId, options);\n return _getVectorStoreDeserialize(result);\n}\n\nexport function _createVectorStoreSend(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: {\n file_ids: !options?.fileIds\n ? options?.fileIds\n : options?.fileIds.map((p: any) => {\n return p;\n }),\n name: options?.name,\n configuration: !options?.storeConfiguration\n ? options?.storeConfiguration\n : vectorStoreConfigurationSerializer(options?.storeConfiguration),\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n chunking_strategy: !options?.chunkingStrategy\n ? options?.chunkingStrategy\n : vectorStoreChunkingStrategyRequestUnionSerializer(options?.chunkingStrategy),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _createVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Creates a vector store. */\nexport async function createVectorStoreInternal(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _createVectorStoreSend(context, options);\n return _createVectorStoreDeserialize(result);\n}\n\n/** Creates a vector store. */\nexport function createVectorStore(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\n/**\n * Creates a vector store and poll.\n */\nexport function createVectorStoreAndPoll(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\nexport function _listVectorStoresSend(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion,limit,order,after,before}\",\n {\n \"api%2Dversion\": context.apiVersion,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listVectorStoresDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultVectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = agentV1ErrorDeserializer(result.body);\n throw error;\n }\n\n return _agentsPagedResultVectorStoreDeserializer(result.body);\n}\n\n/** Returns a list of vector stores. */\nexport function listVectorStores(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<VectorStore> {\n return buildPagedAsyncIterator(\n context,\n () => _listVectorStoresSend(context, options),\n _listVectorStoresDeserialize,\n [\"200\"],\n { itemName: \"data\" },\n );\n}\n\nfunction getLroOperationStatus(result: VectorStore): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"expired\":\n return \"failed\";\n default:\n return \"failed\";\n }\n}\n"]}
|
|
@@ -3,7 +3,6 @@ import { RunStep } from "../../models/models.js";
|
|
|
3
3
|
import { RunStepsListRunStepsOptionalParams, RunStepsGetRunStepOptionalParams } from "../../api/runSteps/options.js";
|
|
4
4
|
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
/** Interface representing a RunSteps operations. */
|
|
6
|
-
/** Interface representing a RunSteps operations. */
|
|
7
6
|
export interface RunStepsOperations {
|
|
8
7
|
/** Gets a list of run steps from a thread run. */
|
|
9
8
|
list: (threadId: string, runId: string, options?: RunStepsListRunStepsOptionalParams) => PagedAsyncIterableIterator<RunStep>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EACL,kCAAkC,EAClC,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,oDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EACL,kCAAkC,EAClC,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,IAAI,EAAE,CACJ,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,kCAAkC,KACzC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACzC,qDAAqD;IACrD,GAAG,EAAE,CACH,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gCAAgC,KACvC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAeD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,GAAG,kBAAkB,CAIjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAoB5E,SAAS,YAAY,CAAC,OAAsB;IAC1C,OAAO;QACL,IAAI,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAA4C,EAAE,EAAE,CACtF,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QACjD,GAAG,EAAE,CACH,QAAgB,EAChB,KAAa,EACb,MAAc,EACd,OAA0C,EAC1C,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,OAAsB;IAC3D,yBACK,YAAY,CAAC,OAAO,CAAC,EACxB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { RunStep } from \"../../models/models.js\";\nimport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"../../api/runSteps/options.js\";\nimport { listRunSteps, getRunStep } from \"../../api/runSteps/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a RunSteps operations. */\nexport interface RunStepsOperations {\n /** Gets a list of run steps from a thread run. */\n list: (\n threadId: string,\n runId: string,\n options?: RunStepsListRunStepsOptionalParams,\n ) => PagedAsyncIterableIterator<RunStep>;\n /** Retrieves a single run step from a thread run. */\n get: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: RunStepsGetRunStepOptionalParams,\n ) => Promise<RunStep>;\n}\n\nfunction _getRunSteps(context: AgentsContext) {\n return {\n list: (threadId: string, runId: string, options?: RunStepsListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n get: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: RunStepsGetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n };\n}\n\nexport function _getRunStepsOperations(context: AgentsContext): RunStepsOperations {\n return {\n ..._getRunSteps(context),\n };\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
2
|
import { ThreadRun, ToolOutput } from "../../models/models.js";
|
|
3
3
|
import { RunsCancelRunOptionalParams, RunsSubmitToolOutputsToRunOptionalParams, RunsUpdateRunOptionalParams, RunsGetRunOptionalParams, RunsListRunsOptionalParams, RunsCreateRunOptionalParams } from "../../api/runs/options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
5
|
import { AgentRunResponse } from "../../models/streamingModels.js";
|
|
5
6
|
import { CreateThreadAndRunOptionalParams } from "../../api/options.js";
|
|
6
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
7
7
|
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
8
8
|
/** Interface representing a Runs operations. */
|
|
9
9
|
export interface RunsOperations {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,2BAA2B,EAC3B,wCAAwC,EACxC,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAUnC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EACL,2BAA2B,EAC3B,wCAAwC,EACxC,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAUnC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,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S,CAAC,EAAE,SAAS,CAAC,CAAC;IACtD,iDAAiD;IACjD,kBAAkB,EAAE,CAClB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,KACvC,gBAAgB,CAAC;CACvB;AA2BD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAIzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAYlC,OAAO,EACL,SAAS,EACT,sBAAsB,EACtB,SAAS,EACT,MAAM,EACN,QAAQ,EACR,SAAS,EACT,gBAAgB,GACjB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAmD7D,SAAS,QAAQ,CAAC,OAAsB;IACtC,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAqC,EAAE,EAAE,CACjF,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QAC9C,iBAAiB,EAAE,CACjB,QAAgB,EAChB,KAAa,EACb,WAAyB,EACzB,OAAkD,EAClD,EAAE,CAAC,sBAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC;QAC3E,MAAM,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAqC,EAAE,EAAE,CACjF,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QAC9C,GAAG,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAAkC,EAAE,EAAE,CAC3E,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QAC3C,IAAI,EAAE,CAAC,QAAgB,EAAE,OAAoC,EAAE,EAAE,CAC/D,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACtC,MAAM,EAAE,CAAC,QAAgB,EAAE,WAAmB,EAAE,OAAqC,EAAE,EAAE,CACvF,SAAS,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC;QACpD,aAAa,EAAE,CAAC,QAAgB,EAAE,WAAmB,EAAE,OAAqC,EAAE,EAAE,CAC9F,gBAAgB,CAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC;QAC3D,kBAAkB,EAAE,CAAC,WAAmB,EAAE,OAAqC,EAAE,EAAE,CACjF,kBAAkB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC;KACpD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,OAAsB;IACvD,yBACK,QAAQ,CAAC,OAAO,CAAC,EACpB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { ThreadRun, ToolOutput } from \"../../models/models.js\";\nimport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"../../api/runs/options.js\";\nimport {\n cancelRun,\n submitToolOutputsToRun,\n updateRun,\n getRun,\n listRuns,\n createRun,\n createRunAndPoll,\n} from \"../../api/runs/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { AgentRunResponse } from \"../../models/streamingModels.js\";\nimport { createThreadAndRun } from \"../../api/operations.js\";\nimport { CreateThreadAndRunOptionalParams } from \"../../api/options.js\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\n/** Interface representing a Runs operations. */\nexport interface RunsOperations {\n /** Cancels a run of an in‐progress thread. */\n cancel: (\n threadId: string,\n runId: string,\n options?: RunsCancelRunOptionalParams,\n ) => Promise<ThreadRun>;\n /** Submits outputs from tools as requested by tool calls in a run. */\n submitToolOutputs: (\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options?: RunsSubmitToolOutputsToRunOptionalParams,\n ) => AgentRunResponse;\n /** Modifies an existing thread run. */\n update: (\n threadId: string,\n runId: string,\n options?: RunsUpdateRunOptionalParams,\n ) => Promise<ThreadRun>;\n /** Gets an existing run from an existing thread. */\n get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise<ThreadRun>;\n /** Gets a list of runs for a specified thread. */\n list: (\n threadId: string,\n options?: RunsListRunsOptionalParams,\n ) => PagedAsyncIterableIterator<ThreadRun>;\n /** Creates a new run for an agent thread. */\n create: (\n threadId: string,\n assistantId: string,\n options?: RunsCreateRunOptionalParams,\n ) => AgentRunResponse;\n /** Creates a new run for an agent thread with polling. */\n createAndPoll: (\n threadId: string,\n assistantId: string,\n options?: RunsCreateRunOptionalParams,\n ) => PollerLike<OperationState<ThreadRun>, ThreadRun>;\n /** Creates a new thread and run for an agent. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateThreadAndRunOptionalParams,\n ) => AgentRunResponse;\n}\n\nfunction _getRuns(context: AgentsContext) {\n return {\n cancel: (threadId: string, runId: string, options?: RunsCancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n submitToolOutputs: (\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options?: RunsSubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n update: (threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n list: (threadId: string, options?: RunsListRunsOptionalParams) =>\n listRuns(context, threadId, options),\n create: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options),\n createAndPoll: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) =>\n createRunAndPoll(context, threadId, assistantId, options),\n createThreadAndRun: (assistantId: string, options?: RunsCreateRunOptionalParams) =>\n createThreadAndRun(context, assistantId, options),\n };\n}\n\nexport function _getRunsOperations(context: AgentsContext): RunsOperations {\n return {\n ..._getRuns(context),\n };\n}\n"]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
-
import { VectorStoreFileBatch } from "../../models/models.js";
|
|
3
|
-
import { VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams, VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams } from "../../api/vectorStoreFileBatches/options.js";
|
|
4
|
-
import { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
1
|
+
import type { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import type { VectorStoreFile, VectorStoreFileBatch } from "../../models/models.js";
|
|
3
|
+
import type { VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams, VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams } from "../../api/vectorStoreFileBatches/options.js";
|
|
4
|
+
import type { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
6
6
|
/** Interface representing a VectorStoreFileBatches operations. */
|
|
7
7
|
export interface VectorStoreFileBatchesOperations {
|
|
8
8
|
/** Returns a list of vector store files in a batch. */
|
|
9
|
-
list: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams) => PagedAsyncIterableIterator<
|
|
9
|
+
list: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams) => PagedAsyncIterableIterator<VectorStoreFile>;
|
|
10
10
|
/** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */
|
|
11
11
|
cancel: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatch>;
|
|
12
12
|
/** Retrieve a vector store file batch. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AACpF,OAAO,KAAK,EACV,iEAAiE,EACjE,8DAA8D,EAC9D,2DAA2D,EAC3D,8DAA8D,EAC/D,MAAM,6CAA6C,CAAC;AAQrD,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF,kEAAkE;AAClE,MAAM,WAAW,gCAAgC;IAC/C,uDAAuD;IACvD,IAAI,EAAE,CACJ,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,iEAAiE,KACxE,0BAA0B,CAAC,eAAe,CAAC,CAAC;IACjD,2HAA2H;IAC3H,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8DAA8D,KACrE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,0CAA0C;IAC1C,GAAG,EAAE,CACH,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,2DAA2D,KAClE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,wCAAwC;IACxC,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8DAA8D,KACrE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,iDAAiD;IACjD,aAAa,EAAE,CACb,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8DAA8D,KACrE,UAAU,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAAC;CAC7E;AA8BD,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,aAAa,GACrB,gCAAgC,CAIlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gDAAgD,CAAC;AAoCxD,SAAS,0BAA0B,CAAC,OAAsB;IACxD,OAAO;QACL,IAAI,EAAE,CACJ,aAAqB,EACrB,OAAe,EACf,OAA2E,EAC3E,EAAE,CAAC,6BAA6B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5E,MAAM,EAAE,CACN,aAAqB,EACrB,OAAe,EACf,OAAwE,EACxE,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACzE,GAAG,EAAE,CACH,aAAqB,EACrB,OAAe,EACf,OAAqE,EACrE,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACtE,MAAM,EAAE,CACN,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAChE,aAAa,EAAE,CACb,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,iCAAiC,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,OAAsB;IAEtB,yBACK,0BAA0B,CAAC,OAAO,CAAC,EACtC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { VectorStoreFileBatch } from \"../../models/models.js\";\nimport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"../../api/vectorStoreFileBatches/options.js\";\nimport {\n listVectorStoreFileBatchFiles,\n cancelVectorStoreFileBatch,\n getVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n} from \"../../api/vectorStoreFileBatches/operations.js\";\nimport { OperationState, PollerLike } from \"@azure/core-lro\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStoreFileBatches operations. */\nexport interface VectorStoreFileBatchesOperations {\n /** Returns a list of vector store files in a batch. */\n list: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n ) => PagedAsyncIterableIterator<
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,6BAA6B,EAC7B,0BAA0B,EAC1B,uBAAuB,EACvB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,gDAAgD,CAAC;AAoCxD,SAAS,0BAA0B,CAAC,OAAsB;IACxD,OAAO;QACL,IAAI,EAAE,CACJ,aAAqB,EACrB,OAAe,EACf,OAA2E,EAC3E,EAAE,CAAC,6BAA6B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5E,MAAM,EAAE,CACN,aAAqB,EACrB,OAAe,EACf,OAAwE,EACxE,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACzE,GAAG,EAAE,CACH,aAAqB,EACrB,OAAe,EACf,OAAqE,EACrE,EAAE,CAAC,uBAAuB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACtE,MAAM,EAAE,CACN,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAChE,aAAa,EAAE,CACb,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,iCAAiC,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,OAAsB;IAEtB,yBACK,0BAA0B,CAAC,OAAO,CAAC,EACtC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext } from \"../../api/agentsContext.js\";\nimport type { VectorStoreFile, VectorStoreFileBatch } from \"../../models/models.js\";\nimport type {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"../../api/vectorStoreFileBatches/options.js\";\nimport {\n listVectorStoreFileBatchFiles,\n cancelVectorStoreFileBatch,\n getVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n} from \"../../api/vectorStoreFileBatches/operations.js\";\nimport type { OperationState, PollerLike } from \"@azure/core-lro\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStoreFileBatches operations. */\nexport interface VectorStoreFileBatchesOperations {\n /** Returns a list of vector store files in a batch. */\n list: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n ) => PagedAsyncIterableIterator<VectorStoreFile>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancel: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Retrieve a vector store file batch. */\n get: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Create a vector store file batch. */\n create: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Create a vector store file batch and poll. */\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatch>, VectorStoreFileBatch>;\n}\n\nfunction _getVectorStoreFileBatches(context: AgentsContext) {\n return {\n list: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n cancel: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n get: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n create: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n };\n}\n\nexport function _getVectorStoreFileBatchesOperations(\n context: AgentsContext,\n): VectorStoreFileBatchesOperations {\n return {\n ..._getVectorStoreFileBatches(context),\n };\n}\n"]}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
-
import { VectorStoreFile, VectorStoreFileDeletionStatus } from "../../models/models.js";
|
|
3
|
-
import { VectorStoreFilesDeleteVectorStoreFileOptionalParams, VectorStoreFilesGetVectorStoreFileOptionalParams, VectorStoreFilesCreateVectorStoreFileOptionalParams, VectorStoreFilesListVectorStoreFilesOptionalParams } from "../../api/vectorStoreFiles/options.js";
|
|
4
|
-
import { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
-
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
1
|
+
import type { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import type { VectorStoreFile, VectorStoreFileDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import type { VectorStoreFilesDeleteVectorStoreFileOptionalParams, VectorStoreFilesGetVectorStoreFileOptionalParams, VectorStoreFilesCreateVectorStoreFileOptionalParams, VectorStoreFilesListVectorStoreFilesOptionalParams } from "../../api/vectorStoreFiles/options.js";
|
|
4
|
+
import type { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
6
6
|
/** Interface representing a VectorStoreFiles operations. */
|
|
7
7
|
export interface VectorStoreFilesOperations {
|
|
8
8
|
/** Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EACV,mDAAmD,EACnD,gDAAgD,EAChD,mDAAmD,EACnD,kDAAkD,EACnD,MAAM,uCAAuC,CAAC;AAQ/C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IACzC,0GAA0G;IAC1G,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,mDAAmD,KAC1D,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,qCAAqC;IACrC,GAAG,EAAE,CACH,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gDAAgD,KACvD,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9B,wEAAwE;IACxE,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,mDAAmD,KAC1D,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9B,iFAAiF;IACjF,aAAa,EAAE,CACb,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,mDAAmD,KAC1D,UAAU,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC;IAClE,4CAA4C;IAC5C,IAAI,EAAE,CACJ,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kDAAkD,KACzD,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAClD;AA2BD,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,aAAa,GAAG,0BAA0B,CAIjG"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
1
3
|
import { deleteVectorStoreFile, getVectorStoreFile, createVectorStoreFile, listVectorStoreFiles, createVectorStoreFileAndPoll, } from "../../api/vectorStoreFiles/operations.js";
|
|
2
4
|
function _getVectorStoreFiles(context) {
|
|
3
5
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,0CAA0C,CAAC;AAmClD,SAAS,oBAAoB,CAAC,OAAsB;IAClD,OAAO;QACL,MAAM,EAAE,CACN,aAAqB,EACrB,MAAc,EACd,OAA6D,EAC7D,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;QACnE,GAAG,EAAE,CACH,aAAqB,EACrB,MAAc,EACd,OAA0D,EAC1D,EAAE,CAAC,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;QAChE,MAAM,EAAE,CACN,aAAqB,EACrB,OAA6D,EAC7D,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAC3D,aAAa,EAAE,CACb,aAAqB,EACrB,OAA6D,EAC7D,EAAE,CAAC,4BAA4B,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAClE,IAAI,EAAE,CAAC,aAAqB,EAAE,OAA4D,EAAE,EAAE,CAC5F,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,8BAA8B,CAAC,OAAsB;IACnE,yBACK,oBAAoB,CAAC,OAAO,CAAC,EAChC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext } from \"../../api/agentsContext.js\";\nimport type { VectorStoreFile, VectorStoreFileDeletionStatus } from \"../../models/models.js\";\nimport type {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"../../api/vectorStoreFiles/options.js\";\nimport {\n deleteVectorStoreFile,\n getVectorStoreFile,\n createVectorStoreFile,\n listVectorStoreFiles,\n createVectorStoreFileAndPoll,\n} from \"../../api/vectorStoreFiles/operations.js\";\nimport type { OperationState, PollerLike } from \"@azure/core-lro\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStoreFiles operations. */\nexport interface VectorStoreFilesOperations {\n /** Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself). */\n delete: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatus>;\n /** Retrieves a vector store file. */\n get: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesGetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFile>;\n /** Create a vector store file by attaching a file to a vector store. */\n create: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFile>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>;\n /** Returns a list of vector store files. */\n list: (\n vectorStoreId: string,\n options?: VectorStoreFilesListVectorStoreFilesOptionalParams,\n ) => PagedAsyncIterableIterator<VectorStoreFile>;\n}\n\nfunction _getVectorStoreFiles(context: AgentsContext) {\n return {\n delete: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n get: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesGetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n create: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFile(context, vectorStoreId, options),\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n list: (vectorStoreId: string, options?: VectorStoreFilesListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n };\n}\n\nexport function _getVectorStoreFilesOperations(context: AgentsContext): VectorStoreFilesOperations {\n return {\n ..._getVectorStoreFiles(context),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStores/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStores/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EACV,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,2CAA2C,EAC3C,0CAA0C,EAC3C,MAAM,mCAAmC,CAAC;AAS3C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExF,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACxC,yCAAyC;IACzC,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,2CAA2C,KAClD,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1B,iEAAiE;IACjE,GAAG,EAAE,CACH,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wCAAwC,KAC/C,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1B,8BAA8B;IAC9B,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,2CAA2C,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IACxF,uCAAuC;IACvC,aAAa,CACX,OAAO,CAAC,EAAE,2CAA2C,GACpD,UAAU,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;IACxD,uCAAuC;IACvC,IAAI,EAAE,CACJ,OAAO,CAAC,EAAE,0CAA0C,KACjD,0BAA0B,CAAC,WAAW,CAAC,CAAC;CAC9C;AAkBD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,aAAa,GAAG,sBAAsB,CAIzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStores/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStores/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAWlC,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAgC9C,SAAS,gBAAgB,CAAC,OAAsB;IAC9C,OAAO;QACL,MAAM,EAAE,CAAC,aAAqB,EAAE,OAAqD,EAAE,EAAE,CACvF,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QACpD,MAAM,EAAE,CAAC,aAAqB,EAAE,OAAqD,EAAE,EAAE,CACvF,iBAAiB,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QACpD,GAAG,EAAE,CAAC,aAAqB,EAAE,OAAkD,EAAE,EAAE,CACjF,cAAc,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QACjD,MAAM,EAAE,CAAC,OAAqD,EAAE,EAAE,CAChE,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC;QACrC,aAAa,EAAE,CAAC,OAAqD,EAAE,EAAE,CACvE,wBAAwB,CAAC,OAAO,EAAE,OAAO,CAAC;QAC5C,IAAI,EAAE,CAAC,OAAoD,EAAE,EAAE,CAC7D,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC;KACrC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,OAAsB;IAC/D,yBACK,gBAAgB,CAAC,OAAO,CAAC,EAC5B;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AgentsContext } from \"../../api/agentsContext.js\";\nimport type { VectorStore, VectorStoreDeletionStatus } from \"../../models/models.js\";\nimport type {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"../../api/vectorStores/options.js\";\nimport {\n deleteVectorStore,\n modifyVectorStore,\n getVectorStore,\n createVectorStore,\n listVectorStores,\n createVectorStoreAndPoll,\n} from \"../../api/vectorStores/operations.js\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStores operations. */\nexport interface VectorStoresOperations {\n /** Deletes the vector store object matching the specified ID. */\n delete: (\n vectorStoreId: string,\n options?: VectorStoresDeleteVectorStoreOptionalParams,\n ) => Promise<VectorStoreDeletionStatus>;\n /** Modifies an existing vector store. */\n update: (\n vectorStoreId: string,\n options?: VectorStoresModifyVectorStoreOptionalParams,\n ) => Promise<VectorStore>;\n /** Returns the vector store object matching the specified ID. */\n get: (\n vectorStoreId: string,\n options?: VectorStoresGetVectorStoreOptionalParams,\n ) => Promise<VectorStore>;\n /** Creates a vector store. */\n create: (options?: VectorStoresCreateVectorStoreOptionalParams) => Promise<VectorStore>;\n /** Creates a vector store and poll. */\n createAndPoll(\n options?: VectorStoresCreateVectorStoreOptionalParams,\n ): PollerLike<OperationState<VectorStore>, VectorStore>;\n /** Returns a list of vector stores. */\n list: (\n options?: VectorStoresListVectorStoresOptionalParams,\n ) => PagedAsyncIterableIterator<VectorStore>;\n}\nfunction _getVectorStores(context: AgentsContext) {\n return {\n delete: (vectorStoreId: string, options?: VectorStoresDeleteVectorStoreOptionalParams) =>\n deleteVectorStore(context, vectorStoreId, options),\n update: (vectorStoreId: string, options?: VectorStoresModifyVectorStoreOptionalParams) =>\n modifyVectorStore(context, vectorStoreId, options),\n get: (vectorStoreId: string, options?: VectorStoresGetVectorStoreOptionalParams) =>\n getVectorStore(context, vectorStoreId, options),\n create: (options?: VectorStoresCreateVectorStoreOptionalParams) =>\n createVectorStore(context, options),\n createAndPoll: (options?: VectorStoresCreateVectorStoreOptionalParams) =>\n createVectorStoreAndPoll(context, options),\n list: (options?: VectorStoresListVectorStoresOptionalParams) =>\n listVectorStores(context, options),\n };\n}\n\nexport function _getVectorStoresOperations(context: AgentsContext): VectorStoresOperations {\n return {\n ..._getVectorStores(context),\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-agents` package.\n */\nexport const SDK_VERSION = `1.
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC;AAE1C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Current version of the `@azure/ai-agents` package.\n */\nexport const SDK_VERSION = `1.1.0-beta.1`;\n\n/**\n * The package name of the `@azure/ai-agents` package.\n */\nexport const PACKAGE_NAME = \"@azure/ai-agents\";\n"]}
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FileContents } from "./static-helpers/multipartHelpers.js";
|
|
2
1
|
import { PageSettings, ContinuablePage, PagedAsyncIterableIterator } from "./static-helpers/pagingHelpers.js";
|
|
3
|
-
|
|
2
|
+
import { FileContents } from "./static-helpers/multipartHelpers.js";
|
|
4
3
|
export * from "./models/streamingModels.js";
|
|
5
|
-
export * from "./utils.js";
|
|
6
|
-
export {
|
|
4
|
+
export * from "./utils/utils.js";
|
|
5
|
+
export { MCPTool } from "./utils/MCPTool.js";
|
|
6
|
+
export { AgentsClient } from "./agentsClient.js";
|
|
7
|
+
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, MicrosoftFabricToolDefinition, FabricDataAgentToolParameters, ToolConnection, SharepointToolDefinition, SharepointGroundingToolParameters, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchToolDefinition, BingCustomSearchToolParameters, BingCustomSearchConfiguration, ConnectedAgentToolDefinition, ConnectedAgentDetails, DeepResearchToolDefinition, DeepResearchDetails, DeepResearchBingGroundingConnection, MCPToolDefinition, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, MCPToolResource, AgentsResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsResponseFormatOption, AgentsResponseFormatMode, Agent, AgentV1Error, AgentErrorDetail, AgentDeletionStatus, AgentThreadCreationOptions, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsToolChoiceOption, AgentsToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RequiredMcpToolCall, SubmitToolApprovalAction, SubmitToolApprovalDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, AgentThread, ThreadDeletionStatus, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, ToolOutput, ToolApproval, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepMcpToolCall, RunStepSharepointToolCall, RunStepMicrosoftFabricToolCall, RunStepBingCustomSearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepDeepResearchToolCall, RunStepDeepResearchToolCallDetails, RunStepError, RunStepErrorCode, RunStepCompletionUsage, FileListResponse, FileInfo, FilePurpose, FileState, FileDeletionStatus, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models/index.js";
|
|
7
8
|
export { AgentsClientOptionalParams, CreateThreadAndRunOptionalParams, DeleteAgentOptionalParams, UpdateAgentOptionalParams, GetAgentOptionalParams, ListAgentsOptionalParams, CreateAgentOptionalParams, PollingOptionsParams, PollingOptions, } from "./api/index.js";
|
|
8
9
|
export { FilesGetFileContentOptionalParams, FilesGetFileOptionalParams, FilesDeleteFileOptionalParams, FilesUploadFileOptionalParams, FilesListFilesOptionalParams, } from "./api/files/index.js";
|
|
9
10
|
export { MessagesUpdateMessageOptionalParams, MessagesGetMessageOptionalParams, MessagesListMessagesOptionalParams, MessagesCreateMessageOptionalParams, } from "./api/messages/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,0BAA0B,EAC3B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC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B,EAC1B,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,2BAA2B,EAC3B,wCAAwC,EACxC,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iEAAiE,EACjE,8DAA8D,EAC9D,2DAA2D,EAC3D,8DAA8D,GAC/D,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,mDAAmD,EACnD,gDAAgD,EAChD,mDAAmD,EACnD,kDAAkD,GACnD,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,2CAA2C,EAC3C,0CAA0C,GAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,gCAAgC,EAChC,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAA0B,EAAE,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
export { AgentsClient } from "./agentsClient.js";
|
|
4
3
|
export * from "./models/streamingModels.js";
|
|
5
|
-
export * from "./utils.js";
|
|
4
|
+
export * from "./utils/utils.js";
|
|
5
|
+
export { MCPTool } from "./utils/MCPTool.js";
|
|
6
|
+
export { AgentsClient } from "./agentsClient.js";
|
|
6
7
|
export { VectorStoreDataSourceAssetType, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, KnownVersions, } from "./models/index.js";
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,OAAO,EAuCL,8BAA8B,EA4K9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { FileContents } from \"./static-helpers/multipartHelpers.js\";\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\n\nexport { AgentsClient } from \"./agentsClient.js\";\nexport * from \"./models/streamingModels.js\";\nexport * from \"./utils.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchConfigurationList,\n BingGroundingSearchConfiguration,\n MicrosoftFabricToolDefinition,\n ToolConnectionList,\n ToolConnection,\n SharepointToolDefinition,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n BingCustomSearchConfigurationList,\n BingCustomSearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n UpdateToolResourcesOptions,\n UpdateCodeInterpreterToolResourceOptions,\n UpdateFileSearchToolResourceOptions,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepBingCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n AgentsClientOptionalParams,\n CreateThreadAndRunOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n PollingOptionsParams,\n PollingOptions,\n} from \"./api/index.js\";\nexport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"./api/files/index.js\";\nexport {\n MessagesUpdateMessageOptionalParams,\n MessagesGetMessageOptionalParams,\n MessagesListMessagesOptionalParams,\n MessagesCreateMessageOptionalParams,\n} from \"./api/messages/index.js\";\nexport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./api/runs/index.js\";\nexport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"./api/runSteps/index.js\";\nexport {\n ThreadsDeleteThreadOptionalParams,\n ThreadsUpdateThreadOptionalParams,\n ThreadsGetThreadOptionalParams,\n ThreadsListThreadsOptionalParams,\n ThreadsCreateThreadOptionalParams,\n} from \"./api/threads/index.js\";\nexport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"./api/vectorStoreFileBatches/index.js\";\nexport {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"./api/vectorStoreFiles/index.js\";\nexport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./api/vectorStores/index.js\";\nexport {\n FilesOperations,\n MessagesOperations,\n RunsOperations,\n RunStepsOperations,\n ThreadsOperations,\n VectorStoreFileBatchesOperations,\n VectorStoreFilesOperations,\n VectorStoresOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { FileContents };\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EA4CL,8BAA8B,EAmL9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n PageSettings,\n ContinuablePage,\n PagedAsyncIterableIterator,\n} from \"./static-helpers/pagingHelpers.js\";\nimport { FileContents } from \"./static-helpers/multipartHelpers.js\";\nexport * from \"./models/streamingModels.js\";\nexport * from \"./utils/utils.js\";\nexport { MCPTool } from \"./utils/MCPTool.js\";\nexport { AgentsClient } from \"./agentsClient.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchToolParameters,\n BingGroundingSearchConfiguration,\n MicrosoftFabricToolDefinition,\n FabricDataAgentToolParameters,\n ToolConnection,\n SharepointToolDefinition,\n SharepointGroundingToolParameters,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n BingCustomSearchToolParameters,\n BingCustomSearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n DeepResearchToolDefinition,\n DeepResearchDetails,\n DeepResearchBingGroundingConnection,\n MCPToolDefinition,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchToolResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n MCPToolResource,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentV1Error,\n AgentErrorDetail,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RequiredMcpToolCall,\n SubmitToolApprovalAction,\n SubmitToolApprovalDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n ToolApproval,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepMcpToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepBingCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepDeepResearchToolCall,\n RunStepDeepResearchToolCallDetails,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models/index.js\";\nexport {\n AgentsClientOptionalParams,\n CreateThreadAndRunOptionalParams,\n DeleteAgentOptionalParams,\n UpdateAgentOptionalParams,\n GetAgentOptionalParams,\n ListAgentsOptionalParams,\n CreateAgentOptionalParams,\n PollingOptionsParams,\n PollingOptions,\n} from \"./api/index.js\";\nexport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"./api/files/index.js\";\nexport {\n MessagesUpdateMessageOptionalParams,\n MessagesGetMessageOptionalParams,\n MessagesListMessagesOptionalParams,\n MessagesCreateMessageOptionalParams,\n} from \"./api/messages/index.js\";\nexport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"./api/runs/index.js\";\nexport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"./api/runSteps/index.js\";\nexport {\n ThreadsDeleteThreadOptionalParams,\n ThreadsUpdateThreadOptionalParams,\n ThreadsGetThreadOptionalParams,\n ThreadsListThreadsOptionalParams,\n ThreadsCreateThreadOptionalParams,\n} from \"./api/threads/index.js\";\nexport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"./api/vectorStoreFileBatches/index.js\";\nexport {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"./api/vectorStoreFiles/index.js\";\nexport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./api/vectorStores/index.js\";\nexport {\n FilesOperations,\n MessagesOperations,\n RunsOperations,\n RunStepsOperations,\n ThreadsOperations,\n VectorStoreFileBatchesOperations,\n VectorStoreFilesOperations,\n VectorStoresOperations,\n} from \"./classic/index.js\";\nexport { PageSettings, ContinuablePage, PagedAsyncIterableIterator };\nexport { FileContents };\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export * from "./streamingModels.js";
|
|
2
|
-
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition,
|
|
2
|
+
export { ToolDefinition, ToolDefinitionUnion, CodeInterpreterToolDefinition, FileSearchToolDefinition, FileSearchToolDefinitionDetails, FileSearchRankingOptions, FunctionToolDefinition, FunctionDefinition, BingGroundingToolDefinition, BingGroundingSearchToolParameters, BingGroundingSearchConfiguration, MicrosoftFabricToolDefinition, FabricDataAgentToolParameters, ToolConnection, SharepointToolDefinition, SharepointGroundingToolParameters, AzureAISearchToolDefinition, OpenApiToolDefinition, OpenApiFunctionDefinition, OpenApiAuthDetails, OpenApiAuthDetailsUnion, OpenApiAuthType, OpenApiAnonymousAuthDetails, OpenApiConnectionAuthDetails, OpenApiConnectionSecurityScheme, OpenApiManagedAuthDetails, OpenApiManagedSecurityScheme, BingCustomSearchToolDefinition, BingCustomSearchToolParameters, BingCustomSearchConfiguration, ConnectedAgentToolDefinition, ConnectedAgentDetails, DeepResearchToolDefinition, DeepResearchDetails, DeepResearchBingGroundingConnection, MCPToolDefinition, AzureFunctionToolDefinition, AzureFunctionDefinition, AzureFunctionBinding, AzureFunctionStorageQueue, ToolResources, CodeInterpreterToolResource, VectorStoreDataSource, VectorStoreDataSourceAssetType, FileSearchToolResource, VectorStoreConfigurations, VectorStoreConfiguration, AzureAISearchToolResource, AISearchIndexResource, AzureAISearchQueryType, MCPToolResource, AgentsResponseFormat, ResponseFormat, ResponseFormatJsonSchemaType, ResponseFormatJsonSchema, AgentsResponseFormatOption, AgentsResponseFormatMode, Agent, AgentV1Error, AgentErrorDetail, AgentDeletionStatus, AgentThreadCreationOptions, ThreadMessageOptions, MessageRole, MessageInputContent, MessageInputContentBlock, MessageInputContentBlockUnion, MessageBlockType, MessageInputTextBlock, MessageInputImageFileBlock, MessageImageFileParam, ImageDetailLevel, MessageInputImageUrlBlock, MessageImageUrlParam, MessageAttachment, MessageAttachmentToolDefinition, TruncationObject, TruncationStrategy, AgentsNamedToolChoice, AgentsNamedToolChoiceType, FunctionName, AgentsToolChoiceOption, AgentsToolChoiceOptionMode, ThreadRun, RunStatus, RequiredAction, RequiredActionUnion, SubmitToolOutputsAction, SubmitToolOutputsDetails, RequiredToolCall, RequiredToolCallUnion, RequiredFunctionToolCall, RequiredFunctionToolCallDetails, RequiredMcpToolCall, SubmitToolApprovalAction, SubmitToolApprovalDetails, RunError, IncompleteRunDetails, IncompleteDetailsReason, RunCompletionUsage, AgentThread, ThreadDeletionStatus, ThreadMessage, MessageStatus, MessageIncompleteDetails, MessageIncompleteDetailsReason, MessageContent, MessageContentUnion, MessageTextContent, MessageTextDetails, MessageTextAnnotation, MessageTextAnnotationUnion, MessageTextUrlCitationAnnotation, MessageTextUrlCitationDetails, MessageTextFileCitationAnnotation, MessageTextFileCitationDetails, MessageTextFilePathAnnotation, MessageTextFilePathDetails, MessageImageFileContent, MessageImageFileDetails, ToolOutput, ToolApproval, RunStep, RunStepType, RunStepStatus, RunStepDetails, RunStepDetailsUnion, RunStepMessageCreationDetails, RunStepMessageCreationReference, RunStepToolCallDetails, RunStepToolCall, RunStepToolCallUnion, RunStepCodeInterpreterToolCall, RunStepCodeInterpreterToolCallDetails, RunStepCodeInterpreterToolCallOutput, RunStepCodeInterpreterToolCallOutputUnion, RunStepCodeInterpreterLogOutput, RunStepCodeInterpreterImageOutput, RunStepCodeInterpreterImageReference, RunStepFileSearchToolCall, RunStepFileSearchToolCallResults, RunStepFileSearchToolCallResult, FileSearchToolCallContent, RunStepBingGroundingToolCall, RunStepAzureAISearchToolCall, RunStepMcpToolCall, RunStepSharepointToolCall, RunStepMicrosoftFabricToolCall, RunStepBingCustomSearchToolCall, RunStepFunctionToolCall, RunStepFunctionToolCallDetails, RunStepOpenAPIToolCall, RunStepDeepResearchToolCall, RunStepDeepResearchToolCallDetails, RunStepError, RunStepErrorCode, RunStepCompletionUsage, FileListResponse, FileInfo, FilePurpose, FileState, FileDeletionStatus, VectorStore, VectorStoreFileCount, VectorStoreStatus, VectorStoreExpirationPolicy, VectorStoreExpirationPolicyAnchor, VectorStoreChunkingStrategyRequest, VectorStoreChunkingStrategyRequestUnion, VectorStoreChunkingStrategyRequestType, VectorStoreAutoChunkingStrategyRequest, VectorStoreStaticChunkingStrategyRequest, VectorStoreStaticChunkingStrategyOptions, VectorStoreDeletionStatus, VectorStoreFile, VectorStoreFileStatus, VectorStoreFileError, VectorStoreFileErrorCode, VectorStoreChunkingStrategyResponse, VectorStoreChunkingStrategyResponseUnion, VectorStoreChunkingStrategyResponseType, VectorStoreAutoChunkingStrategyResponse, VectorStoreStaticChunkingStrategyResponse, VectorStoreFileDeletionStatus, VectorStoreFileBatch, VectorStoreFileBatchStatus, MessageDeltaChunk, MessageDelta, MessageDeltaContent, MessageDeltaContentUnion, MessageDeltaImageFileContent, MessageDeltaImageFileContentObject, MessageDeltaTextContent, MessageDeltaTextContentObject, MessageDeltaTextAnnotation, MessageDeltaTextAnnotationUnion, MessageDeltaTextUrlCitationAnnotation, MessageDeltaTextUrlCitationDetails, MessageDeltaTextFileCitationAnnotation, MessageDeltaTextFileCitationAnnotationObject, MessageDeltaTextFilePathAnnotation, MessageDeltaTextFilePathAnnotationObject, RunStepDeltaChunk, RunStepDelta, RunStepDeltaDetail, RunStepDeltaDetailUnion, RunStepDeltaMessageCreation, RunStepDeltaMessageCreationObject, RunStepDeltaToolCallObject, RunStepDeltaToolCall, RunStepDeltaToolCallUnion, RunStepDeltaFunctionToolCall, RunStepDeltaFunction, RunStepDeltaFileSearchToolCall, RunStepDeltaCodeInterpreterToolCall, RunStepDeltaCodeInterpreterDetailItemObject, RunStepDeltaCodeInterpreterOutput, RunStepDeltaCodeInterpreterOutputUnion, RunStepDeltaCodeInterpreterLogOutput, RunStepDeltaCodeInterpreterImageOutput, RunStepDeltaCodeInterpreterImageOutputObject, AgentStreamEvent, ThreadStreamEvent, RunStreamEvent, RunStepStreamEvent, MessageStreamEvent, ErrorEvent, DoneEvent, ListSortOrder, RunAdditionalFieldList, VectorStoreFileStatusFilter, KnownVersions, } from "./models.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,2BAA2B,EAC3B,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,cAAc,EACd,wBAAwB,EACxB,iCAAiC,EACjC,2BAA2B,EAC3B,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AAkC,EAClC,uBAAuB,EACvB,6BAA6B,EAC7B,0BAA0B,EAC1B,+BAA+B,EAC/B,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EACtC,4CAA4C,EAC5C,kCAAkC,EAClC,wCAAwC,EACxC,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACpB,8BAA8B,EAC9B,mCAAmC,EACnC,2CAA2C,EAC3C,iCAAiC,EACjC,sCAAsC,EACtC,oCAAoC,EACpC,sCAAsC,EACtC,4CAA4C,EAC5C,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,aAAa,EACb,sBAAsB,EACtB,2BAA2B,EAC3B,aAAa,GACd,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,cAAc,sBAAsB,CAAC;AACrC,OAAO,EA4CL,8BAA8B,EAmL9B,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,UAAU,EACV,SAAS,EAIT,aAAa,GACd,MAAM,aAAa,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport * from \"./streamingModels.js\";\nexport {\n ToolDefinition,\n ToolDefinitionUnion,\n CodeInterpreterToolDefinition,\n FileSearchToolDefinition,\n FileSearchToolDefinitionDetails,\n FileSearchRankingOptions,\n FunctionToolDefinition,\n FunctionDefinition,\n BingGroundingToolDefinition,\n BingGroundingSearchToolParameters,\n BingGroundingSearchConfiguration,\n MicrosoftFabricToolDefinition,\n FabricDataAgentToolParameters,\n ToolConnection,\n SharepointToolDefinition,\n SharepointGroundingToolParameters,\n AzureAISearchToolDefinition,\n OpenApiToolDefinition,\n OpenApiFunctionDefinition,\n OpenApiAuthDetails,\n OpenApiAuthDetailsUnion,\n OpenApiAuthType,\n OpenApiAnonymousAuthDetails,\n OpenApiConnectionAuthDetails,\n OpenApiConnectionSecurityScheme,\n OpenApiManagedAuthDetails,\n OpenApiManagedSecurityScheme,\n BingCustomSearchToolDefinition,\n BingCustomSearchToolParameters,\n BingCustomSearchConfiguration,\n ConnectedAgentToolDefinition,\n ConnectedAgentDetails,\n DeepResearchToolDefinition,\n DeepResearchDetails,\n DeepResearchBingGroundingConnection,\n MCPToolDefinition,\n AzureFunctionToolDefinition,\n AzureFunctionDefinition,\n AzureFunctionBinding,\n AzureFunctionStorageQueue,\n ToolResources,\n CodeInterpreterToolResource,\n VectorStoreDataSource,\n VectorStoreDataSourceAssetType,\n FileSearchToolResource,\n VectorStoreConfigurations,\n VectorStoreConfiguration,\n AzureAISearchToolResource,\n AISearchIndexResource,\n AzureAISearchQueryType,\n MCPToolResource,\n AgentsResponseFormat,\n ResponseFormat,\n ResponseFormatJsonSchemaType,\n ResponseFormatJsonSchema,\n AgentsResponseFormatOption,\n AgentsResponseFormatMode,\n Agent,\n AgentV1Error,\n AgentErrorDetail,\n AgentDeletionStatus,\n AgentThreadCreationOptions,\n ThreadMessageOptions,\n MessageRole,\n MessageInputContent,\n MessageInputContentBlock,\n MessageInputContentBlockUnion,\n MessageBlockType,\n MessageInputTextBlock,\n MessageInputImageFileBlock,\n MessageImageFileParam,\n ImageDetailLevel,\n MessageInputImageUrlBlock,\n MessageImageUrlParam,\n MessageAttachment,\n MessageAttachmentToolDefinition,\n TruncationObject,\n TruncationStrategy,\n AgentsNamedToolChoice,\n AgentsNamedToolChoiceType,\n FunctionName,\n AgentsToolChoiceOption,\n AgentsToolChoiceOptionMode,\n ThreadRun,\n RunStatus,\n RequiredAction,\n RequiredActionUnion,\n SubmitToolOutputsAction,\n SubmitToolOutputsDetails,\n RequiredToolCall,\n RequiredToolCallUnion,\n RequiredFunctionToolCall,\n RequiredFunctionToolCallDetails,\n RequiredMcpToolCall,\n SubmitToolApprovalAction,\n SubmitToolApprovalDetails,\n RunError,\n IncompleteRunDetails,\n IncompleteDetailsReason,\n RunCompletionUsage,\n AgentThread,\n ThreadDeletionStatus,\n ThreadMessage,\n MessageStatus,\n MessageIncompleteDetails,\n MessageIncompleteDetailsReason,\n MessageContent,\n MessageContentUnion,\n MessageTextContent,\n MessageTextDetails,\n MessageTextAnnotation,\n MessageTextAnnotationUnion,\n MessageTextUrlCitationAnnotation,\n MessageTextUrlCitationDetails,\n MessageTextFileCitationAnnotation,\n MessageTextFileCitationDetails,\n MessageTextFilePathAnnotation,\n MessageTextFilePathDetails,\n MessageImageFileContent,\n MessageImageFileDetails,\n ToolOutput,\n ToolApproval,\n RunStep,\n RunStepType,\n RunStepStatus,\n RunStepDetails,\n RunStepDetailsUnion,\n RunStepMessageCreationDetails,\n RunStepMessageCreationReference,\n RunStepToolCallDetails,\n RunStepToolCall,\n RunStepToolCallUnion,\n RunStepCodeInterpreterToolCall,\n RunStepCodeInterpreterToolCallDetails,\n RunStepCodeInterpreterToolCallOutput,\n RunStepCodeInterpreterToolCallOutputUnion,\n RunStepCodeInterpreterLogOutput,\n RunStepCodeInterpreterImageOutput,\n RunStepCodeInterpreterImageReference,\n RunStepFileSearchToolCall,\n RunStepFileSearchToolCallResults,\n RunStepFileSearchToolCallResult,\n FileSearchToolCallContent,\n RunStepBingGroundingToolCall,\n RunStepAzureAISearchToolCall,\n RunStepMcpToolCall,\n RunStepSharepointToolCall,\n RunStepMicrosoftFabricToolCall,\n RunStepBingCustomSearchToolCall,\n RunStepFunctionToolCall,\n RunStepFunctionToolCallDetails,\n RunStepOpenAPIToolCall,\n RunStepDeepResearchToolCall,\n RunStepDeepResearchToolCallDetails,\n RunStepError,\n RunStepErrorCode,\n RunStepCompletionUsage,\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileState,\n FileDeletionStatus,\n VectorStore,\n VectorStoreFileCount,\n VectorStoreStatus,\n VectorStoreExpirationPolicy,\n VectorStoreExpirationPolicyAnchor,\n VectorStoreChunkingStrategyRequest,\n VectorStoreChunkingStrategyRequestUnion,\n VectorStoreChunkingStrategyRequestType,\n VectorStoreAutoChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyRequest,\n VectorStoreStaticChunkingStrategyOptions,\n VectorStoreDeletionStatus,\n VectorStoreFile,\n VectorStoreFileStatus,\n VectorStoreFileError,\n VectorStoreFileErrorCode,\n VectorStoreChunkingStrategyResponse,\n VectorStoreChunkingStrategyResponseUnion,\n VectorStoreChunkingStrategyResponseType,\n VectorStoreAutoChunkingStrategyResponse,\n VectorStoreStaticChunkingStrategyResponse,\n VectorStoreFileDeletionStatus,\n VectorStoreFileBatch,\n VectorStoreFileBatchStatus,\n MessageDeltaChunk,\n MessageDelta,\n MessageDeltaContent,\n MessageDeltaContentUnion,\n MessageDeltaImageFileContent,\n MessageDeltaImageFileContentObject,\n MessageDeltaTextContent,\n MessageDeltaTextContentObject,\n MessageDeltaTextAnnotation,\n MessageDeltaTextAnnotationUnion,\n MessageDeltaTextUrlCitationAnnotation,\n MessageDeltaTextUrlCitationDetails,\n MessageDeltaTextFileCitationAnnotation,\n MessageDeltaTextFileCitationAnnotationObject,\n MessageDeltaTextFilePathAnnotation,\n MessageDeltaTextFilePathAnnotationObject,\n RunStepDeltaChunk,\n RunStepDelta,\n RunStepDeltaDetail,\n RunStepDeltaDetailUnion,\n RunStepDeltaMessageCreation,\n RunStepDeltaMessageCreationObject,\n RunStepDeltaToolCallObject,\n RunStepDeltaToolCall,\n RunStepDeltaToolCallUnion,\n RunStepDeltaFunctionToolCall,\n RunStepDeltaFunction,\n RunStepDeltaFileSearchToolCall,\n RunStepDeltaCodeInterpreterToolCall,\n RunStepDeltaCodeInterpreterDetailItemObject,\n RunStepDeltaCodeInterpreterOutput,\n RunStepDeltaCodeInterpreterOutputUnion,\n RunStepDeltaCodeInterpreterLogOutput,\n RunStepDeltaCodeInterpreterImageOutput,\n RunStepDeltaCodeInterpreterImageOutputObject,\n AgentStreamEvent,\n ThreadStreamEvent,\n RunStreamEvent,\n RunStepStreamEvent,\n MessageStreamEvent,\n ErrorEvent,\n DoneEvent,\n ListSortOrder,\n RunAdditionalFieldList,\n VectorStoreFileStatusFilter,\n KnownVersions,\n} from \"./models.js\";\n"]}
|