@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
4
4
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
5
|
-
import {
|
|
5
|
+
import { createFilePartDescriptor } from "../static-helpers/multipartHelpers.js";
|
|
6
6
|
export function toolDefinitionSerializer(item) {
|
|
7
7
|
return { type: item["type"] };
|
|
8
8
|
}
|
|
@@ -33,6 +33,10 @@ export function toolDefinitionUnionSerializer(item) {
|
|
|
33
33
|
return bingCustomSearchToolDefinitionSerializer(item);
|
|
34
34
|
case "connected_agent":
|
|
35
35
|
return connectedAgentToolDefinitionSerializer(item);
|
|
36
|
+
case "deep_research":
|
|
37
|
+
return deepResearchToolDefinitionSerializer(item);
|
|
38
|
+
case "mcp":
|
|
39
|
+
return mcpToolDefinitionSerializer(item);
|
|
36
40
|
case "azure_function":
|
|
37
41
|
return azureFunctionToolDefinitionSerializer(item);
|
|
38
42
|
default:
|
|
@@ -61,6 +65,10 @@ export function toolDefinitionUnionDeserializer(item) {
|
|
|
61
65
|
return bingCustomSearchToolDefinitionDeserializer(item);
|
|
62
66
|
case "connected_agent":
|
|
63
67
|
return connectedAgentToolDefinitionDeserializer(item);
|
|
68
|
+
case "deep_research":
|
|
69
|
+
return deepResearchToolDefinitionDeserializer(item);
|
|
70
|
+
case "mcp":
|
|
71
|
+
return mcpToolDefinitionDeserializer(item);
|
|
64
72
|
case "azure_function":
|
|
65
73
|
return azureFunctionToolDefinitionDeserializer(item);
|
|
66
74
|
default:
|
|
@@ -145,21 +153,21 @@ export function functionDefinitionDeserializer(item) {
|
|
|
145
153
|
export function bingGroundingToolDefinitionSerializer(item) {
|
|
146
154
|
return {
|
|
147
155
|
type: item["type"],
|
|
148
|
-
bing_grounding:
|
|
156
|
+
bing_grounding: bingGroundingSearchToolParametersSerializer(item["bingGrounding"]),
|
|
149
157
|
};
|
|
150
158
|
}
|
|
151
159
|
export function bingGroundingToolDefinitionDeserializer(item) {
|
|
152
160
|
return {
|
|
153
161
|
type: item["type"],
|
|
154
|
-
bingGrounding:
|
|
162
|
+
bingGrounding: bingGroundingSearchToolParametersDeserializer(item["bing_grounding"]),
|
|
155
163
|
};
|
|
156
164
|
}
|
|
157
|
-
export function
|
|
165
|
+
export function bingGroundingSearchToolParametersSerializer(item) {
|
|
158
166
|
return {
|
|
159
167
|
search_configurations: bingGroundingSearchConfigurationArraySerializer(item["searchConfigurations"]),
|
|
160
168
|
};
|
|
161
169
|
}
|
|
162
|
-
export function
|
|
170
|
+
export function bingGroundingSearchToolParametersDeserializer(item) {
|
|
163
171
|
// Handle the case where item might be undefined
|
|
164
172
|
if (!item) {
|
|
165
173
|
return { searchConfigurations: [] };
|
|
@@ -203,23 +211,23 @@ export function bingGroundingSearchConfigurationDeserializer(item) {
|
|
|
203
211
|
export function microsoftFabricToolDefinitionSerializer(item) {
|
|
204
212
|
return {
|
|
205
213
|
type: item["type"],
|
|
206
|
-
fabric_dataagent:
|
|
214
|
+
fabric_dataagent: fabricDataAgentToolParametersSerializer(item["fabricDataagent"]),
|
|
207
215
|
};
|
|
208
216
|
}
|
|
209
217
|
export function microsoftFabricToolDefinitionDeserializer(item) {
|
|
210
218
|
return {
|
|
211
219
|
type: item["type"],
|
|
212
|
-
fabricDataagent:
|
|
220
|
+
fabricDataagent: fabricDataAgentToolParametersDeserializer(item["fabric_dataagent"]),
|
|
213
221
|
};
|
|
214
222
|
}
|
|
215
|
-
export function
|
|
223
|
+
export function fabricDataAgentToolParametersSerializer(item) {
|
|
216
224
|
return {
|
|
217
225
|
connections: !item["connectionList"]
|
|
218
226
|
? item["connectionList"]
|
|
219
227
|
: toolConnectionArraySerializer(item["connectionList"]),
|
|
220
228
|
};
|
|
221
229
|
}
|
|
222
|
-
export function
|
|
230
|
+
export function fabricDataAgentToolParametersDeserializer(item) {
|
|
223
231
|
return {
|
|
224
232
|
connectionList: !item["connections"]
|
|
225
233
|
? item["connections"]
|
|
@@ -247,13 +255,27 @@ export function toolConnectionDeserializer(item) {
|
|
|
247
255
|
export function sharepointToolDefinitionSerializer(item) {
|
|
248
256
|
return {
|
|
249
257
|
type: item["type"],
|
|
250
|
-
sharepoint_grounding:
|
|
258
|
+
sharepoint_grounding: sharepointGroundingToolParametersSerializer(item["sharepointGrounding"]),
|
|
251
259
|
};
|
|
252
260
|
}
|
|
253
261
|
export function sharepointToolDefinitionDeserializer(item) {
|
|
254
262
|
return {
|
|
255
263
|
type: item["type"],
|
|
256
|
-
sharepointGrounding:
|
|
264
|
+
sharepointGrounding: sharepointGroundingToolParametersDeserializer(item["sharepoint_grounding"]),
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
export function sharepointGroundingToolParametersSerializer(item) {
|
|
268
|
+
return {
|
|
269
|
+
connections: !item["connectionList"]
|
|
270
|
+
? item["connectionList"]
|
|
271
|
+
: toolConnectionArraySerializer(item["connectionList"]),
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
export function sharepointGroundingToolParametersDeserializer(item) {
|
|
275
|
+
return {
|
|
276
|
+
connectionList: !item["connections"]
|
|
277
|
+
? item["connections"]
|
|
278
|
+
: toolConnectionArrayDeserializer(item["connections"]),
|
|
257
279
|
};
|
|
258
280
|
}
|
|
259
281
|
export function azureAISearchToolDefinitionSerializer(item) {
|
|
@@ -300,6 +322,9 @@ export function openApiFunctionDefinitionDeserializer(item) {
|
|
|
300
322
|
: item["default_params"].map((p) => {
|
|
301
323
|
return p;
|
|
302
324
|
}),
|
|
325
|
+
functions: !item["functions"]
|
|
326
|
+
? item["functions"]
|
|
327
|
+
: functionDefinitionArrayDeserializer(item["functions"]),
|
|
303
328
|
};
|
|
304
329
|
}
|
|
305
330
|
export function openApiAuthDetailsSerializer(item) {
|
|
@@ -382,24 +407,34 @@ export function openApiManagedSecuritySchemeDeserializer(item) {
|
|
|
382
407
|
audience: item["audience"],
|
|
383
408
|
};
|
|
384
409
|
}
|
|
410
|
+
export function functionDefinitionArraySerializer(result) {
|
|
411
|
+
return result.map((item) => {
|
|
412
|
+
return functionDefinitionSerializer(item);
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
export function functionDefinitionArrayDeserializer(result) {
|
|
416
|
+
return result.map((item) => {
|
|
417
|
+
return functionDefinitionDeserializer(item);
|
|
418
|
+
});
|
|
419
|
+
}
|
|
385
420
|
export function bingCustomSearchToolDefinitionSerializer(item) {
|
|
386
421
|
return {
|
|
387
422
|
type: item["type"],
|
|
388
|
-
bing_custom_search:
|
|
423
|
+
bing_custom_search: bingCustomSearchToolParametersSerializer(item["bingCustomSearch"]),
|
|
389
424
|
};
|
|
390
425
|
}
|
|
391
426
|
export function bingCustomSearchToolDefinitionDeserializer(item) {
|
|
392
427
|
return {
|
|
393
428
|
type: item["type"],
|
|
394
|
-
bingCustomSearch:
|
|
429
|
+
bingCustomSearch: bingCustomSearchToolParametersDeserializer(item["bing_custom_search"]),
|
|
395
430
|
};
|
|
396
431
|
}
|
|
397
|
-
export function
|
|
432
|
+
export function bingCustomSearchToolParametersSerializer(item) {
|
|
398
433
|
return {
|
|
399
434
|
search_configurations: bingCustomSearchConfigurationArraySerializer(item["searchConfigurations"]),
|
|
400
435
|
};
|
|
401
436
|
}
|
|
402
|
-
export function
|
|
437
|
+
export function bingCustomSearchToolParametersDeserializer(item) {
|
|
403
438
|
return {
|
|
404
439
|
searchConfigurations: bingCustomSearchConfigurationArrayDeserializer(item["search_configurations"]),
|
|
405
440
|
};
|
|
@@ -414,16 +449,6 @@ export function bingCustomSearchConfigurationArrayDeserializer(result) {
|
|
|
414
449
|
return bingCustomSearchConfigurationDeserializer(item);
|
|
415
450
|
});
|
|
416
451
|
}
|
|
417
|
-
export function bingCustomSearchConfigurationSerializer(item) {
|
|
418
|
-
return {
|
|
419
|
-
connection_id: item["connectionId"],
|
|
420
|
-
instance_name: item["instanceName"],
|
|
421
|
-
market: item["market"],
|
|
422
|
-
set_lang: item["setLang"],
|
|
423
|
-
count: item["count"],
|
|
424
|
-
freshness: item["freshness"],
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
452
|
export function bingCustomSearchConfigurationDeserializer(item) {
|
|
428
453
|
return {
|
|
429
454
|
connectionId: item["connection_id"],
|
|
@@ -446,6 +471,16 @@ export function connectedAgentToolDefinitionDeserializer(item) {
|
|
|
446
471
|
connectedAgent: connectedAgentDetailsDeserializer(item["connected_agent"]),
|
|
447
472
|
};
|
|
448
473
|
}
|
|
474
|
+
export function bingCustomSearchConfigurationSerializer(item) {
|
|
475
|
+
return {
|
|
476
|
+
connection_id: item["connectionId"],
|
|
477
|
+
instance_name: item["instanceName"],
|
|
478
|
+
market: item["market"],
|
|
479
|
+
set_lang: item["setLang"],
|
|
480
|
+
count: item["count"],
|
|
481
|
+
freshness: item["freshness"],
|
|
482
|
+
};
|
|
483
|
+
}
|
|
449
484
|
export function connectedAgentDetailsSerializer(item) {
|
|
450
485
|
return {
|
|
451
486
|
id: item["id"],
|
|
@@ -460,6 +495,72 @@ export function connectedAgentDetailsDeserializer(item) {
|
|
|
460
495
|
description: item["description"],
|
|
461
496
|
};
|
|
462
497
|
}
|
|
498
|
+
export function deepResearchToolDefinitionSerializer(item) {
|
|
499
|
+
return {
|
|
500
|
+
type: item["type"],
|
|
501
|
+
deep_research: deepResearchDetailsSerializer(item["deepResearch"]),
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
export function deepResearchToolDefinitionDeserializer(item) {
|
|
505
|
+
return {
|
|
506
|
+
type: item["type"],
|
|
507
|
+
deepResearch: deepResearchDetailsDeserializer(item["deep_research"]),
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
export function deepResearchDetailsSerializer(item) {
|
|
511
|
+
return {
|
|
512
|
+
deep_research_model: item["model"],
|
|
513
|
+
bing_grounding_connections: deepResearchBingGroundingConnectionArraySerializer(item["bingGroundingConnections"]),
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
export function deepResearchDetailsDeserializer(item) {
|
|
517
|
+
return {
|
|
518
|
+
model: item["deep_research_model"],
|
|
519
|
+
bingGroundingConnections: deepResearchBingGroundingConnectionArrayDeserializer(item["bing_grounding_connections"]),
|
|
520
|
+
};
|
|
521
|
+
}
|
|
522
|
+
export function deepResearchBingGroundingConnectionArraySerializer(result) {
|
|
523
|
+
return result.map((item) => {
|
|
524
|
+
return deepResearchBingGroundingConnectionSerializer(item);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
export function deepResearchBingGroundingConnectionArrayDeserializer(result) {
|
|
528
|
+
return result.map((item) => {
|
|
529
|
+
return deepResearchBingGroundingConnectionDeserializer(item);
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
export function deepResearchBingGroundingConnectionSerializer(item) {
|
|
533
|
+
return { connection_id: item["connectionId"] };
|
|
534
|
+
}
|
|
535
|
+
export function deepResearchBingGroundingConnectionDeserializer(item) {
|
|
536
|
+
return {
|
|
537
|
+
connectionId: item["connection_id"],
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
export function mcpToolDefinitionSerializer(item) {
|
|
541
|
+
return {
|
|
542
|
+
type: item["type"],
|
|
543
|
+
server_label: item["serverLabel"],
|
|
544
|
+
server_url: item["serverUrl"],
|
|
545
|
+
allowed_tools: !item["allowedTools"]
|
|
546
|
+
? item["allowedTools"]
|
|
547
|
+
: item["allowedTools"].map((p) => {
|
|
548
|
+
return p;
|
|
549
|
+
}),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
export function mcpToolDefinitionDeserializer(item) {
|
|
553
|
+
return {
|
|
554
|
+
type: item["type"],
|
|
555
|
+
serverLabel: item["server_label"],
|
|
556
|
+
serverUrl: item["server_url"],
|
|
557
|
+
allowedTools: !item["allowed_tools"]
|
|
558
|
+
? item["allowed_tools"]
|
|
559
|
+
: item["allowed_tools"].map((p) => {
|
|
560
|
+
return p;
|
|
561
|
+
}),
|
|
562
|
+
};
|
|
563
|
+
}
|
|
463
564
|
export function azureFunctionToolDefinitionSerializer(item) {
|
|
464
565
|
return {
|
|
465
566
|
type: item["type"],
|
|
@@ -520,7 +621,8 @@ export function toolResourcesSerializer(item) {
|
|
|
520
621
|
: fileSearchToolResourceSerializer(item["fileSearch"]),
|
|
521
622
|
azure_ai_search: !item["azureAISearch"]
|
|
522
623
|
? item["azureAISearch"]
|
|
523
|
-
:
|
|
624
|
+
: azureAISearchToolResourceSerializer(item["azureAISearch"]),
|
|
625
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArraySerializer(item["mcp"]),
|
|
524
626
|
};
|
|
525
627
|
}
|
|
526
628
|
export function toolResourcesDeserializer(item) {
|
|
@@ -533,7 +635,8 @@ export function toolResourcesDeserializer(item) {
|
|
|
533
635
|
: fileSearchToolResourceDeserializer(item["file_search"]),
|
|
534
636
|
azureAISearch: !item["azure_ai_search"]
|
|
535
637
|
? item["azure_ai_search"]
|
|
536
|
-
:
|
|
638
|
+
: azureAISearchToolResourceDeserializer(item["azure_ai_search"]),
|
|
639
|
+
mcp: !item["mcp"] ? item["mcp"] : mcpToolResourceArrayDeserializer(item["mcp"]),
|
|
537
640
|
};
|
|
538
641
|
}
|
|
539
642
|
export function codeInterpreterToolResourceSerializer(item) {
|
|
@@ -644,14 +747,14 @@ export function vectorStoreConfigurationDeserializer(item) {
|
|
|
644
747
|
dataSources: vectorStoreDataSourceArrayDeserializer(item["data_sources"]),
|
|
645
748
|
};
|
|
646
749
|
}
|
|
647
|
-
export function
|
|
750
|
+
export function azureAISearchToolResourceSerializer(item) {
|
|
648
751
|
return {
|
|
649
752
|
indexes: !item["indexList"]
|
|
650
753
|
? item["indexList"]
|
|
651
754
|
: aiSearchIndexResourceArraySerializer(item["indexList"]),
|
|
652
755
|
};
|
|
653
756
|
}
|
|
654
|
-
export function
|
|
757
|
+
export function azureAISearchToolResourceDeserializer(item) {
|
|
655
758
|
return {
|
|
656
759
|
indexList: !item["indexes"]
|
|
657
760
|
? item["indexes"]
|
|
@@ -688,6 +791,30 @@ export function aiSearchIndexResourceDeserializer(item) {
|
|
|
688
791
|
indexAssetId: item["index_asset_id"],
|
|
689
792
|
};
|
|
690
793
|
}
|
|
794
|
+
export function mcpToolResourceArraySerializer(result) {
|
|
795
|
+
return result.map((item) => {
|
|
796
|
+
return mcpToolResourceSerializer(item);
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
export function mcpToolResourceArrayDeserializer(result) {
|
|
800
|
+
return result.map((item) => {
|
|
801
|
+
return mcpToolResourceDeserializer(item);
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
export function mcpToolResourceSerializer(item) {
|
|
805
|
+
return {
|
|
806
|
+
server_label: item["serverLabel"],
|
|
807
|
+
headers: item["headers"],
|
|
808
|
+
require_approval: item["requireApproval"],
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
export function mcpToolResourceDeserializer(item) {
|
|
812
|
+
return {
|
|
813
|
+
serverLabel: item["server_label"],
|
|
814
|
+
headers: item["headers"],
|
|
815
|
+
requireApproval: item["require_approval"],
|
|
816
|
+
};
|
|
817
|
+
}
|
|
691
818
|
export function agentsResponseFormatSerializer(item) {
|
|
692
819
|
return { type: item["type"] };
|
|
693
820
|
}
|
|
@@ -759,6 +886,19 @@ export function agentDeserializer(item) {
|
|
|
759
886
|
metadata: item["metadata"],
|
|
760
887
|
};
|
|
761
888
|
}
|
|
889
|
+
export function agentV1ErrorDeserializer(item) {
|
|
890
|
+
return {
|
|
891
|
+
error: agentErrorDetailDeserializer(item["error"]),
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
export function agentErrorDetailDeserializer(item) {
|
|
895
|
+
return {
|
|
896
|
+
message: item["message"],
|
|
897
|
+
type: item["type"],
|
|
898
|
+
param: item["param"],
|
|
899
|
+
code: item["code"],
|
|
900
|
+
};
|
|
901
|
+
}
|
|
762
902
|
export function _agentsPagedResultAgentDeserializer(item) {
|
|
763
903
|
return {
|
|
764
904
|
data: agentArrayDeserializer(item["data"]),
|
|
@@ -892,74 +1032,6 @@ export function messageAttachmentToolDefinitionSerializer(item) {
|
|
|
892
1032
|
export function messageAttachmentToolDefinitionDeserializer(item) {
|
|
893
1033
|
return item;
|
|
894
1034
|
}
|
|
895
|
-
export function _messageAttachmentToolSerializer(item) {
|
|
896
|
-
return item;
|
|
897
|
-
}
|
|
898
|
-
export function _messageAttachmentToolDeserializer(item) {
|
|
899
|
-
return item;
|
|
900
|
-
}
|
|
901
|
-
export function updateToolResourcesOptionsSerializer(item) {
|
|
902
|
-
return {
|
|
903
|
-
code_interpreter: !item["codeInterpreter"]
|
|
904
|
-
? item["codeInterpreter"]
|
|
905
|
-
: updateCodeInterpreterToolResourceOptionsSerializer(item["codeInterpreter"]),
|
|
906
|
-
file_search: !item["fileSearch"]
|
|
907
|
-
? item["fileSearch"]
|
|
908
|
-
: updateFileSearchToolResourceOptionsSerializer(item["fileSearch"]),
|
|
909
|
-
azure_ai_search: !item["azureAISearch"]
|
|
910
|
-
? item["azureAISearch"]
|
|
911
|
-
: azureAISearchResourceSerializer(item["azureAISearch"]),
|
|
912
|
-
};
|
|
913
|
-
}
|
|
914
|
-
export function updateToolResourcesOptionsDeserializer(item) {
|
|
915
|
-
return {
|
|
916
|
-
codeInterpreter: !item["code_interpreter"]
|
|
917
|
-
? item["code_interpreter"]
|
|
918
|
-
: updateCodeInterpreterToolResourceOptionsDeserializer(item["code_interpreter"]),
|
|
919
|
-
fileSearch: !item["file_search"]
|
|
920
|
-
? item["file_search"]
|
|
921
|
-
: updateFileSearchToolResourceOptionsDeserializer(item["file_search"]),
|
|
922
|
-
azureAISearch: !item["azure_ai_search"]
|
|
923
|
-
? item["azure_ai_search"]
|
|
924
|
-
: azureAISearchResourceDeserializer(item["azure_ai_search"]),
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
export function updateCodeInterpreterToolResourceOptionsSerializer(item) {
|
|
928
|
-
return {
|
|
929
|
-
file_ids: !item["fileIds"]
|
|
930
|
-
? item["fileIds"]
|
|
931
|
-
: item["fileIds"].map((p) => {
|
|
932
|
-
return p;
|
|
933
|
-
}),
|
|
934
|
-
};
|
|
935
|
-
}
|
|
936
|
-
export function updateCodeInterpreterToolResourceOptionsDeserializer(item) {
|
|
937
|
-
return {
|
|
938
|
-
fileIds: !item["file_ids"]
|
|
939
|
-
? item["file_ids"]
|
|
940
|
-
: item["file_ids"].map((p) => {
|
|
941
|
-
return p;
|
|
942
|
-
}),
|
|
943
|
-
};
|
|
944
|
-
}
|
|
945
|
-
export function updateFileSearchToolResourceOptionsSerializer(item) {
|
|
946
|
-
return {
|
|
947
|
-
vector_store_ids: !item["vectorStoreIds"]
|
|
948
|
-
? item["vectorStoreIds"]
|
|
949
|
-
: item["vectorStoreIds"].map((p) => {
|
|
950
|
-
return p;
|
|
951
|
-
}),
|
|
952
|
-
};
|
|
953
|
-
}
|
|
954
|
-
export function updateFileSearchToolResourceOptionsDeserializer(item) {
|
|
955
|
-
return {
|
|
956
|
-
vectorStoreIds: !item["vector_store_ids"]
|
|
957
|
-
? item["vector_store_ids"]
|
|
958
|
-
: item["vector_store_ids"].map((p) => {
|
|
959
|
-
return p;
|
|
960
|
-
}),
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
1035
|
export function truncationObjectSerializer(item) {
|
|
964
1036
|
return { type: item["type"], last_messages: item["lastMessages"] };
|
|
965
1037
|
}
|
|
@@ -1039,7 +1111,7 @@ export function threadRunDeserializer(item) {
|
|
|
1039
1111
|
metadata: item["metadata"],
|
|
1040
1112
|
toolResources: !item["tool_resources"]
|
|
1041
1113
|
? item["tool_resources"]
|
|
1042
|
-
:
|
|
1114
|
+
: toolResourcesDeserializer(item["tool_resources"]),
|
|
1043
1115
|
parallelToolCalls: item["parallel_tool_calls"],
|
|
1044
1116
|
};
|
|
1045
1117
|
}
|
|
@@ -1052,6 +1124,8 @@ export function requiredActionUnionDeserializer(item) {
|
|
|
1052
1124
|
switch (item.type) {
|
|
1053
1125
|
case "submit_tool_outputs":
|
|
1054
1126
|
return submitToolOutputsActionDeserializer(item);
|
|
1127
|
+
case "submit_tool_approval":
|
|
1128
|
+
return submitToolApprovalActionDeserializer(item);
|
|
1055
1129
|
default:
|
|
1056
1130
|
return requiredActionDeserializer(item);
|
|
1057
1131
|
}
|
|
@@ -1082,6 +1156,8 @@ export function requiredToolCallUnionDeserializer(item) {
|
|
|
1082
1156
|
switch (item.type) {
|
|
1083
1157
|
case "function":
|
|
1084
1158
|
return requiredFunctionToolCallDeserializer(item);
|
|
1159
|
+
case "mcp":
|
|
1160
|
+
return requiredMcpToolCallDeserializer(item);
|
|
1085
1161
|
default:
|
|
1086
1162
|
return requiredToolCallDeserializer(item);
|
|
1087
1163
|
}
|
|
@@ -1099,6 +1175,26 @@ export function requiredFunctionToolCallDetailsDeserializer(item) {
|
|
|
1099
1175
|
arguments: item["arguments"],
|
|
1100
1176
|
};
|
|
1101
1177
|
}
|
|
1178
|
+
export function requiredMcpToolCallDeserializer(item) {
|
|
1179
|
+
return {
|
|
1180
|
+
type: item["type"],
|
|
1181
|
+
id: item["id"],
|
|
1182
|
+
arguments: item["arguments"],
|
|
1183
|
+
name: item["name"],
|
|
1184
|
+
serverLabel: item["server_label"],
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
export function submitToolApprovalActionDeserializer(item) {
|
|
1188
|
+
return {
|
|
1189
|
+
type: item["type"],
|
|
1190
|
+
submitToolApproval: submitToolApprovalDetailsDeserializer(item["submit_tool_approval"]),
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
export function submitToolApprovalDetailsDeserializer(item) {
|
|
1194
|
+
return {
|
|
1195
|
+
toolCalls: requiredToolCallUnionArrayDeserializer(item["tool_calls"]),
|
|
1196
|
+
};
|
|
1197
|
+
}
|
|
1102
1198
|
export function runErrorDeserializer(item) {
|
|
1103
1199
|
return {
|
|
1104
1200
|
code: item["code"],
|
|
@@ -1315,11 +1411,23 @@ export function threadRunArrayDeserializer(result) {
|
|
|
1315
1411
|
export function toolOutputSerializer(item) {
|
|
1316
1412
|
return { tool_call_id: item["toolCallId"], output: item["output"] };
|
|
1317
1413
|
}
|
|
1414
|
+
export function toolApprovalSerializer(item) {
|
|
1415
|
+
return {
|
|
1416
|
+
tool_call_id: item["toolCallId"],
|
|
1417
|
+
approve: item["approve"],
|
|
1418
|
+
headers: item["headers"],
|
|
1419
|
+
};
|
|
1420
|
+
}
|
|
1318
1421
|
export function toolOutputArraySerializer(result) {
|
|
1319
1422
|
return result.map((item) => {
|
|
1320
1423
|
return toolOutputSerializer(item);
|
|
1321
1424
|
});
|
|
1322
1425
|
}
|
|
1426
|
+
export function toolApprovalArraySerializer(result) {
|
|
1427
|
+
return result.map((item) => {
|
|
1428
|
+
return toolApprovalSerializer(item);
|
|
1429
|
+
});
|
|
1430
|
+
}
|
|
1323
1431
|
export function runStepDeserializer(item) {
|
|
1324
1432
|
return {
|
|
1325
1433
|
id: item["id"],
|
|
@@ -1399,6 +1507,8 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1399
1507
|
return runStepBingGroundingToolCallDeserializer(item);
|
|
1400
1508
|
case "azure_ai_search":
|
|
1401
1509
|
return runStepAzureAISearchToolCallDeserializer(item);
|
|
1510
|
+
case "mcp":
|
|
1511
|
+
return runStepMcpToolCallDeserializer(item);
|
|
1402
1512
|
case "sharepoint_grounding":
|
|
1403
1513
|
return runStepSharepointToolCallDeserializer(item);
|
|
1404
1514
|
case "fabric_dataagent":
|
|
@@ -1409,6 +1519,8 @@ export function runStepToolCallUnionDeserializer(item) {
|
|
|
1409
1519
|
return runStepFunctionToolCallDeserializer(item);
|
|
1410
1520
|
case "openapi":
|
|
1411
1521
|
return runStepOpenAPIToolCallDeserializer(item);
|
|
1522
|
+
case "deep_research":
|
|
1523
|
+
return runStepDeepResearchToolCallDeserializer(item);
|
|
1412
1524
|
default:
|
|
1413
1525
|
return runStepToolCallDeserializer(item);
|
|
1414
1526
|
}
|
|
@@ -1518,6 +1630,16 @@ export function runStepAzureAISearchToolCallDeserializer(item) {
|
|
|
1518
1630
|
azureAISearch: item["azure_ai_search"],
|
|
1519
1631
|
};
|
|
1520
1632
|
}
|
|
1633
|
+
export function runStepMcpToolCallDeserializer(item) {
|
|
1634
|
+
return {
|
|
1635
|
+
type: item["type"],
|
|
1636
|
+
id: item["id"],
|
|
1637
|
+
arguments: item["arguments"],
|
|
1638
|
+
name: item["name"],
|
|
1639
|
+
output: item["output"],
|
|
1640
|
+
serverLabel: item["server_label"],
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1521
1643
|
export function runStepSharepointToolCallDeserializer(item) {
|
|
1522
1644
|
return {
|
|
1523
1645
|
type: item["type"],
|
|
@@ -1559,6 +1681,19 @@ export function runStepOpenAPIToolCallDeserializer(item) {
|
|
|
1559
1681
|
openAPI: item["openapi"],
|
|
1560
1682
|
};
|
|
1561
1683
|
}
|
|
1684
|
+
export function runStepDeepResearchToolCallDeserializer(item) {
|
|
1685
|
+
return {
|
|
1686
|
+
type: item["type"],
|
|
1687
|
+
id: item["id"],
|
|
1688
|
+
deepResearch: runStepDeepResearchToolCallDetailsDeserializer(item["deep_research"]),
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
export function runStepDeepResearchToolCallDetailsDeserializer(item) {
|
|
1692
|
+
return {
|
|
1693
|
+
input: item["input"],
|
|
1694
|
+
output: item["output"],
|
|
1695
|
+
};
|
|
1696
|
+
}
|
|
1562
1697
|
export function runStepErrorDeserializer(item) {
|
|
1563
1698
|
return {
|
|
1564
1699
|
code: item["code"],
|
|
@@ -1608,11 +1743,11 @@ export function fileInfoDeserializer(item) {
|
|
|
1608
1743
|
};
|
|
1609
1744
|
}
|
|
1610
1745
|
export function _uploadFileRequestSerializer(item) {
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
];
|
|
1746
|
+
const filePart = createFilePartDescriptor("file", item["file"], "application/octet-stream");
|
|
1747
|
+
if (!filePart.filename) {
|
|
1748
|
+
filePart.filename = item["filename"];
|
|
1749
|
+
}
|
|
1750
|
+
return [filePart, { name: "purpose", body: item["purpose"] }];
|
|
1616
1751
|
}
|
|
1617
1752
|
export function fileDeletionStatusDeserializer(item) {
|
|
1618
1753
|
return {
|
|
@@ -1734,9 +1869,7 @@ export function vectorStoreFileDeserializer(item) {
|
|
|
1734
1869
|
lastError: !item["last_error"]
|
|
1735
1870
|
? item["last_error"]
|
|
1736
1871
|
: vectorStoreFileErrorDeserializer(item["last_error"]),
|
|
1737
|
-
chunkingStrategy:
|
|
1738
|
-
? item["chunking_strategy"]
|
|
1739
|
-
: vectorStoreChunkingStrategyResponseUnionDeserializer(item["chunking_strategy"]),
|
|
1872
|
+
chunkingStrategy: vectorStoreChunkingStrategyResponseUnionDeserializer(item["chunking_strategy"]),
|
|
1740
1873
|
};
|
|
1741
1874
|
}
|
|
1742
1875
|
export function vectorStoreFileErrorDeserializer(item) {
|
|
@@ -1751,6 +1884,10 @@ export function vectorStoreChunkingStrategyResponseDeserializer(item) {
|
|
|
1751
1884
|
};
|
|
1752
1885
|
}
|
|
1753
1886
|
export function vectorStoreChunkingStrategyResponseUnionDeserializer(item) {
|
|
1887
|
+
// Handle undefined or null input by returning a default response
|
|
1888
|
+
if (!item) {
|
|
1889
|
+
return vectorStoreChunkingStrategyResponseDeserializer({ type: "other" });
|
|
1890
|
+
}
|
|
1754
1891
|
switch (item.type) {
|
|
1755
1892
|
case "other":
|
|
1756
1893
|
return vectorStoreAutoChunkingStrategyResponseDeserializer(item);
|
|
@@ -2165,8 +2302,8 @@ export var DoneEvent;
|
|
|
2165
2302
|
/** Azure AI Agents API versions */
|
|
2166
2303
|
export var KnownVersions;
|
|
2167
2304
|
(function (KnownVersions) {
|
|
2168
|
-
/** Azure AI API version 2025-05-15. */
|
|
2169
|
-
KnownVersions["
|
|
2305
|
+
/** Azure AI API version 2025-05-15-preview. */
|
|
2306
|
+
KnownVersions["V20250515Preview"] = "2025-05-15-preview";
|
|
2170
2307
|
/** Azure AI API version 2025-05-01. */
|
|
2171
2308
|
KnownVersions["V20250501"] = "2025-05-01";
|
|
2172
2309
|
/** Azure AI API version v1. */
|