@azure/ai-projects 2.3.1 → 2.5.0
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 +17 -5
- package/dist/browser/api/agents/index.d.ts +2 -2
- package/dist/browser/api/agents/index.d.ts.map +1 -1
- package/dist/browser/api/agents/index.js +1 -1
- package/dist/browser/api/agents/index.js.map +1 -1
- package/dist/browser/api/agents/operations.d.ts +3 -1
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +13 -55
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +2 -0
- package/dist/browser/api/agents/options.d.ts.map +1 -1
- package/dist/browser/api/agents/options.js.map +1 -1
- package/dist/browser/api/beta/agents/operations.d.ts +12 -11
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +25 -11
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/options.d.ts +2 -0
- package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/options.js.map +1 -1
- package/dist/browser/api/beta/datasets/operations.d.ts +4 -3
- package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/datasets/operations.js +20 -6
- package/dist/browser/api/beta/datasets/operations.js.map +1 -1
- package/dist/browser/api/beta/datasets/options.d.ts +2 -0
- package/dist/browser/api/beta/datasets/options.d.ts.map +1 -1
- package/dist/browser/api/beta/datasets/options.js.map +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.d.ts +4 -3
- package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.js +20 -6
- package/dist/browser/api/beta/evaluators/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluators/options.d.ts +2 -0
- package/dist/browser/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/options.js.map +1 -1
- package/dist/browser/api/beta/models/operations.d.ts +1 -1
- package/dist/browser/api/beta/models/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/models/operations.js +1 -1
- package/dist/browser/api/beta/models/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/operations.d.ts +3 -3
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/operations.js +21 -23
- package/dist/browser/api/beta/routines/operations.js.map +1 -1
- package/dist/browser/api/beta/routines/options.d.ts +20 -14
- package/dist/browser/api/beta/routines/options.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/options.js.map +1 -1
- package/dist/browser/classic/agents/index.d.ts +3 -1
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js +2 -1
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +6 -5
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/datasets/index.d.ts +3 -2
- package/dist/browser/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/datasets/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.d.ts +3 -2
- package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluators/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 +4 -3
- package/dist/browser/index.d.ts.map +1 -1
- 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 +235 -99
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +320 -81
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +83 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/tracing/agentTracing.d.ts +16 -0
- package/dist/browser/tracing/agentTracing.d.ts.map +1 -0
- package/dist/browser/tracing/agentTracing.js +61 -0
- package/dist/browser/tracing/agentTracing.js.map +1 -0
- package/dist/browser/tracing/configuration.d.ts.map +1 -1
- package/dist/browser/tracing/configuration.js +7 -4
- package/dist/browser/tracing/configuration.js.map +1 -1
- package/dist/commonjs/api/agents/index.d.ts +2 -2
- package/dist/commonjs/api/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/agents/index.js +2 -0
- package/dist/commonjs/api/agents/index.js.map +2 -2
- package/dist/commonjs/api/agents/operations.d.ts +3 -1
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +14 -63
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/agents/options.d.ts +2 -0
- package/dist/commonjs/api/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/agents/options.js.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.d.ts +12 -11
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +25 -9
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/options.d.ts +2 -0
- package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/options.js.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.d.ts +4 -3
- package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.js +21 -5
- package/dist/commonjs/api/beta/datasets/operations.js.map +2 -2
- package/dist/commonjs/api/beta/datasets/options.d.ts +2 -0
- package/dist/commonjs/api/beta/datasets/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/datasets/options.js.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.d.ts +4 -3
- package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.js +22 -6
- package/dist/commonjs/api/beta/evaluators/operations.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/options.d.ts +2 -0
- package/dist/commonjs/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/options.js.map +1 -1
- package/dist/commonjs/api/beta/models/operations.d.ts +1 -1
- package/dist/commonjs/api/beta/models/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/models/operations.js.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.d.ts +3 -3
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.js +21 -23
- package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
- package/dist/commonjs/api/beta/routines/options.d.ts +20 -14
- package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/options.js.map +1 -1
- package/dist/commonjs/classic/agents/index.d.ts +3 -1
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js +1 -0
- package/dist/commonjs/classic/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/agents/index.d.ts +6 -5
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/datasets/index.d.ts +3 -2
- package/dist/commonjs/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/datasets/index.js.map +2 -2
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.d.ts +3 -2
- package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.js.map +2 -2
- 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 +4 -3
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js.map +2 -2
- 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.map +1 -1
- package/dist/commonjs/models/models.d.ts +235 -99
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +394 -169
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +61 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +2 -2
- package/dist/commonjs/tracing/agentTracing.d.ts +16 -0
- package/dist/commonjs/tracing/agentTracing.d.ts.map +1 -0
- package/dist/commonjs/tracing/agentTracing.js +74 -0
- package/dist/commonjs/tracing/agentTracing.js.map +7 -0
- package/dist/commonjs/tracing/configuration.d.ts.map +1 -1
- package/dist/commonjs/tracing/configuration.js +13 -3
- package/dist/commonjs/tracing/configuration.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/agents/index.d.ts +2 -2
- package/dist/esm/api/agents/index.d.ts.map +1 -1
- package/dist/esm/api/agents/index.js +1 -1
- package/dist/esm/api/agents/index.js.map +1 -1
- package/dist/esm/api/agents/operations.d.ts +3 -1
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +13 -55
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +2 -0
- package/dist/esm/api/agents/options.d.ts.map +1 -1
- package/dist/esm/api/agents/options.js.map +1 -1
- package/dist/esm/api/beta/agents/operations.d.ts +12 -11
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +25 -11
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/options.d.ts +2 -0
- package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/options.js.map +1 -1
- package/dist/esm/api/beta/datasets/operations.d.ts +4 -3
- package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/datasets/operations.js +20 -6
- package/dist/esm/api/beta/datasets/operations.js.map +1 -1
- package/dist/esm/api/beta/datasets/options.d.ts +2 -0
- package/dist/esm/api/beta/datasets/options.d.ts.map +1 -1
- package/dist/esm/api/beta/datasets/options.js.map +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.d.ts +4 -3
- package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.js +20 -6
- package/dist/esm/api/beta/evaluators/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluators/options.d.ts +2 -0
- package/dist/esm/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/options.js.map +1 -1
- package/dist/esm/api/beta/models/operations.d.ts +1 -1
- package/dist/esm/api/beta/models/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/models/operations.js +1 -1
- package/dist/esm/api/beta/models/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/operations.d.ts +3 -3
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/operations.js +21 -23
- package/dist/esm/api/beta/routines/operations.js.map +1 -1
- package/dist/esm/api/beta/routines/options.d.ts +20 -14
- package/dist/esm/api/beta/routines/options.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/options.js.map +1 -1
- package/dist/esm/classic/agents/index.d.ts +3 -1
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js +2 -1
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +6 -5
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/datasets/index.d.ts +3 -2
- package/dist/esm/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/datasets/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.d.ts +3 -2
- package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluators/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 +4 -3
- package/dist/esm/index.d.ts.map +1 -1
- 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 +235 -99
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +320 -81
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +83 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/tracing/agentTracing.d.ts +16 -0
- package/dist/esm/tracing/agentTracing.d.ts.map +1 -0
- package/dist/esm/tracing/agentTracing.js +61 -0
- package/dist/esm/tracing/agentTracing.js.map +1 -0
- package/dist/esm/tracing/configuration.d.ts.map +1 -1
- package/dist/esm/tracing/configuration.js +7 -4
- package/dist/esm/tracing/configuration.js.map +1 -1
- package/dist/react-native/api/agents/index.d.ts +2 -2
- package/dist/react-native/api/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/agents/index.js +1 -1
- package/dist/react-native/api/agents/index.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts +3 -1
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +13 -55
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +2 -0
- package/dist/react-native/api/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/agents/options.js.map +1 -1
- package/dist/react-native/api/beta/agents/operations.d.ts +12 -11
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +25 -11
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/options.d.ts +2 -0
- package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/options.js.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.d.ts +4 -3
- package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.js +20 -6
- package/dist/react-native/api/beta/datasets/operations.js.map +1 -1
- package/dist/react-native/api/beta/datasets/options.d.ts +2 -0
- package/dist/react-native/api/beta/datasets/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/datasets/options.js.map +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.d.ts +4 -3
- package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.js +20 -6
- package/dist/react-native/api/beta/evaluators/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.d.ts +2 -0
- package/dist/react-native/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.js.map +1 -1
- package/dist/react-native/api/beta/models/operations.d.ts +1 -1
- package/dist/react-native/api/beta/models/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/models/operations.js +1 -1
- package/dist/react-native/api/beta/models/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/operations.d.ts +3 -3
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/operations.js +21 -23
- package/dist/react-native/api/beta/routines/operations.js.map +1 -1
- package/dist/react-native/api/beta/routines/options.d.ts +20 -14
- package/dist/react-native/api/beta/routines/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/options.js.map +1 -1
- package/dist/react-native/classic/agents/index.d.ts +3 -1
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js +2 -1
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +6 -5
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/datasets/index.d.ts +3 -2
- package/dist/react-native/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/datasets/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.d.ts +3 -2
- package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluators/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 +4 -3
- package/dist/react-native/index.d.ts.map +1 -1
- 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 +235 -99
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +320 -81
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +20 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +83 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/tracing/agentTracing.d.ts +16 -0
- package/dist/react-native/tracing/agentTracing.d.ts.map +1 -0
- package/dist/react-native/tracing/agentTracing.js +61 -0
- package/dist/react-native/tracing/agentTracing.js.map +1 -0
- package/dist/react-native/tracing/configuration.d.ts.map +1 -1
- package/dist/react-native/tracing/configuration.js +7 -4
- package/dist/react-native/tracing/configuration.js.map +1 -1
- package/package.json +9 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AgentState,\n AgentKind,\n AgentBlueprintReferenceUnion,\n AgentEndpointConfig,\n AgentCard,\n AgentDefinitionOptInKeys,\n PageOrder,\n} from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionFileOptionalParams extends OperationOptions {\n /** Whether to recursively delete directory contents. The service defaults to `false` if a value is not specified by the caller. */\n recursive?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListSessionFilesOptionalParams extends OperationOptions {\n /** The directory path to list, relative to the session home directory. Defaults to the home directory if not provided. */\n path?: string;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDownloadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUploadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionLogStreamOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsListSessionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsStopSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateSessionOptionalParams extends OperationOptions {\n /** Optional caller-provided session ID. If specified, it must be unique within the agent endpoint. Auto-generated if omitted. */\n agentSessionId?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDisableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsEnableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDownloadAgentCodeOptionalParams extends OperationOptions {\n /**\n * The version of the agent whose code zip should be downloaded.\n * If omitted, the latest version's code zip is returned.\n */\n agentVersion?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionFromCodeOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentObjectOptionalParams extends OperationOptions {\n /** The endpoint configuration for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport interface AgentsListVersionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteVersionOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the version even if it has active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetVersionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentVersionFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsListOptionalParams extends OperationOptions {\n /** Filter agents by kind. If not provided, all agents are returned. */\n kind?: AgentKind;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the agent even if its versions have active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /** The initial operational state of the agent. Defaults to 'enabled' if not specified. */\n state?: AgentState;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetOptionalParams extends OperationOptions {}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n AgentState,\n AgentKind,\n AgentBlueprintReferenceUnion,\n AgentEndpointConfig,\n AgentCard,\n AgentDefinitionOptInKeys,\n PageOrder,\n} from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionFileOptionalParams extends OperationOptions {\n /** Whether to recursively delete directory contents. The service defaults to `false` if a value is not specified by the caller. */\n recursive?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsListSessionFilesOptionalParams extends OperationOptions {\n /** The directory path to list, relative to the session home directory. Defaults to the home directory if not provided. */\n path?: string;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDownloadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUploadSessionFileOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionLogStreamOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsListSessionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsStopSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDeleteSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsGetSessionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateSessionOptionalParams extends OperationOptions {\n /** Optional caller-provided session ID. If specified, it must be unique within the agent endpoint. Auto-generated if omitted. */\n agentSessionId?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDisableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsEnableOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsDownloadAgentCodeOptionalParams extends OperationOptions {\n /**\n * The version of the agent whose code zip should be downloaded.\n * If omitted, the latest version's code zip is returned.\n */\n agentVersion?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionFromCodeOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentObjectOptionalParams extends OperationOptions {\n /** The endpoint configuration for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport type AgentsPatchAgentObjectOptionalParams = AgentsUpdateAgentObjectOptionalParams;\n\n/** Optional parameters. */\nexport interface AgentsListVersionsOptionalParams extends OperationOptions {\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteVersionOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the version even if it has active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetVersionOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentVersionFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateVersionOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsListOptionalParams extends OperationOptions {\n /** Filter agents by kind. If not provided, all agents are returned. */\n kind?: AgentKind;\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsDeleteOptionalParams extends OperationOptions {\n /** For Hosted Agents, if `true`, force-deletes the agent even if its versions have active sessions, cascading deletion to all associated sessions. The service defaults to `false` if a value is not specified by the caller. This value is not relevant for other Agent types. */\n force?: boolean;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateAgentFromManifestOptionalParams extends OperationOptions {\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n}\n\n/** Optional parameters. */\nexport interface AgentsUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n}\n\n/** Optional parameters. */\nexport interface AgentsCreateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: AgentDefinitionOptInKeys;\n /** The initial operational state of the agent. Defaults to 'enabled' if not specified. */\n state?: AgentState;\n /**\n * Set of 16 key-value pairs that can be attached to an object. This can be\n * useful for storing additional information about the object in a structured\n * format, and querying for objects via API or the dashboard.\n *\n * Keys are strings with a maximum length of 64 characters. Values are strings\n * with a maximum length of 512 characters.\n */\n metadata?: Record<string, string>;\n /** A human-readable description of the agent. */\n description?: string;\n /** The blueprint reference for the agent. */\n blueprintReference?: AgentBlueprintReferenceUnion;\n /** An optional endpoint configuration. If not specified, a default endpoint configuration will be set for the agent */\n agentEndpoint?: AgentEndpointConfig;\n /** Optional agent card for the agent */\n agentCard?: AgentCard;\n}\n\n/** Optional parameters. */\nexport interface AgentsGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AIProjectContext as Client } from "../../index.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { AgentOptimizationJob, AgentOptimizationJobListItem, AgentOptimizationJobResult, _AgentsPagedResultAgentOptimizationJobListItem } from "../../../models/models.js";
|
|
3
3
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
|
+
import type { JobPoller } from "../../../static-helpers/pollingHelpers.js";
|
|
4
5
|
import type { BetaAgentsDeleteOptimizationJobOptionalParams, BetaAgentsCancelOptimizationJobOptionalParams, BetaAgentsListOptimizationJobsOptionalParams, BetaAgentsGetOptimizationJobOptionalParams, BetaAgentsCreateOptimizationJobOptionalParams } from "./options.js";
|
|
5
6
|
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
7
|
export declare function _deleteOptimizationJobSend(context: Client, jobId: string, options?: BetaAgentsDeleteOptimizationJobOptionalParams): StreamableMethod;
|
|
@@ -8,19 +9,19 @@ export declare function _deleteOptimizationJobDeserialize(result: PathUncheckedR
|
|
|
8
9
|
/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */
|
|
9
10
|
export declare function deleteOptimizationJob(context: Client, jobId: string, options?: BetaAgentsDeleteOptimizationJobOptionalParams): Promise<void>;
|
|
10
11
|
export declare function _cancelOptimizationJobSend(context: Client, jobId: string, options?: BetaAgentsCancelOptimizationJobOptionalParams): StreamableMethod;
|
|
11
|
-
export declare function _cancelOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<
|
|
12
|
+
export declare function _cancelOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<AgentOptimizationJob>;
|
|
12
13
|
/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */
|
|
13
|
-
export declare function cancelOptimizationJob(context: Client, jobId: string, options?: BetaAgentsCancelOptimizationJobOptionalParams): Promise<
|
|
14
|
+
export declare function cancelOptimizationJob(context: Client, jobId: string, options?: BetaAgentsCancelOptimizationJobOptionalParams): Promise<AgentOptimizationJob>;
|
|
14
15
|
export declare function _listOptimizationJobsSend(context: Client, options?: BetaAgentsListOptimizationJobsOptionalParams): StreamableMethod;
|
|
15
|
-
export declare function _listOptimizationJobsDeserialize(result: PathUncheckedResponse): Promise<
|
|
16
|
+
export declare function _listOptimizationJobsDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultAgentOptimizationJobListItem>;
|
|
16
17
|
/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */
|
|
17
|
-
export declare function listOptimizationJobs(context: Client, options?: BetaAgentsListOptimizationJobsOptionalParams): PagedAsyncIterableIterator<
|
|
18
|
+
export declare function listOptimizationJobs(context: Client, options?: BetaAgentsListOptimizationJobsOptionalParams): PagedAsyncIterableIterator<AgentOptimizationJobListItem>;
|
|
18
19
|
export declare function _getOptimizationJobSend(context: Client, jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams): StreamableMethod;
|
|
19
|
-
export declare function _getOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<
|
|
20
|
+
export declare function _getOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<AgentOptimizationJob>;
|
|
20
21
|
/** Get an optimization job by id. */
|
|
21
|
-
export declare function getOptimizationJob(context: Client, jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams): Promise<
|
|
22
|
-
export declare function _createOptimizationJobSend(context: Client, job:
|
|
23
|
-
export declare function _createOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<
|
|
24
|
-
/** Create an optimization job. Returns
|
|
25
|
-
export declare function createOptimizationJob(context: Client, job:
|
|
22
|
+
export declare function getOptimizationJob(context: Client, jobId: string, options?: BetaAgentsGetOptimizationJobOptionalParams): Promise<AgentOptimizationJob>;
|
|
23
|
+
export declare function _createOptimizationJobSend(context: Client, job: AgentOptimizationJob, options?: BetaAgentsCreateOptimizationJobOptionalParams): StreamableMethod;
|
|
24
|
+
export declare function _createOptimizationJobDeserialize(result: PathUncheckedResponse): Promise<AgentOptimizationJobResult>;
|
|
25
|
+
/** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */
|
|
26
|
+
export declare function createOptimizationJob(context: Client, job: AgentOptimizationJob, options?: BetaAgentsCreateOptimizationJobOptionalParams): JobPoller<AgentOptimizationJobResult>;
|
|
26
27
|
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EACV,oBAAo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AqB,GAC5B,OAAO,CAAC,8CAA8C,CAAC,CAYzD;AAED,mGAAmG;AACnG,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,4CAAqE,GAC7E,0BAA0B,CAAC,4BAA4B,CAAC,CAQ1D;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,gBAAgB,CAmBlB;AAED,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,oBAAoB,CAAC,CAY/B;AAED,qCAAqC;AACrC,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,OAAO,CAAC,oBAAoB,CAAC,CAG/B;AAED,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,gBAAgB,CAsBlB;AAED,wBAAsB,iCAAiC,CACrD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,0BAA0B,CAAC,CAmBrC;AAED,uGAAuG;AACvG,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,oBAAoB,EACzB,OAAO,GAAE,6CAAsE,GAC9E,SAAS,CAAC,0BAA0B,CAAC,CAavC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { apiErrorResponseDeserializer,
|
|
3
|
+
import { apiErrorResponseDeserializer, agentOptimizationJobSerializer, agentOptimizationJobDeserializer, agentOptimizationJobResultDeserializer, _agentsPagedResultAgentOptimizationJobListItemDeserializer, } from "../../../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator } from "../../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getJobPoller } from "../../../static-helpers/pollingHelpers.js";
|
|
5
6
|
import { expandUrlTemplate } from "../../../static-helpers/urlTemplate.js";
|
|
6
7
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
8
|
export function _deleteOptimizationJobSend(context, jobId, options = { requestOptions: {} }) {
|
|
@@ -61,7 +62,7 @@ export async function _cancelOptimizationJobDeserialize(result) {
|
|
|
61
62
|
}
|
|
62
63
|
throw error;
|
|
63
64
|
}
|
|
64
|
-
return
|
|
65
|
+
return agentOptimizationJobDeserializer(result.body);
|
|
65
66
|
}
|
|
66
67
|
/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */
|
|
67
68
|
export async function cancelOptimizationJob(context, jobId, options = { requestOptions: {} }) {
|
|
@@ -98,7 +99,7 @@ export async function _listOptimizationJobsDeserialize(result) {
|
|
|
98
99
|
}
|
|
99
100
|
throw error;
|
|
100
101
|
}
|
|
101
|
-
return
|
|
102
|
+
return _agentsPagedResultAgentOptimizationJobListItemDeserializer(result.body);
|
|
102
103
|
}
|
|
103
104
|
/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */
|
|
104
105
|
export function listOptimizationJobs(context, options = { requestOptions: {} }) {
|
|
@@ -129,7 +130,7 @@ export async function _getOptimizationJobDeserialize(result) {
|
|
|
129
130
|
}
|
|
130
131
|
throw error;
|
|
131
132
|
}
|
|
132
|
-
return
|
|
133
|
+
return agentOptimizationJobDeserializer(result.body);
|
|
133
134
|
}
|
|
134
135
|
/** Get an optimization job by id. */
|
|
135
136
|
export async function getOptimizationJob(context, jobId, options = { requestOptions: {} }) {
|
|
@@ -152,11 +153,11 @@ export function _createOptimizationJobSend(context, job, options = { requestOpti
|
|
|
152
153
|
accept: "application/json",
|
|
153
154
|
...options.requestOptions?.headers,
|
|
154
155
|
},
|
|
155
|
-
body:
|
|
156
|
+
body: agentOptimizationJobSerializer(job),
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
export async function _createOptimizationJobDeserialize(result) {
|
|
159
|
-
const expectedStatuses = ["201"];
|
|
160
|
+
const expectedStatuses = ["201", "200", "202"];
|
|
160
161
|
if (!expectedStatuses.includes(result.status)) {
|
|
161
162
|
const error = createRestError(result);
|
|
162
163
|
if (result.body) {
|
|
@@ -164,11 +165,24 @@ export async function _createOptimizationJobDeserialize(result) {
|
|
|
164
165
|
}
|
|
165
166
|
throw error;
|
|
166
167
|
}
|
|
167
|
-
|
|
168
|
+
if (result?.body?.result === undefined) {
|
|
169
|
+
throw createRestError(`Expected a result in the response at position "result.body.result"`, result);
|
|
170
|
+
}
|
|
171
|
+
return agentOptimizationJobResultDeserializer(result.body.result);
|
|
168
172
|
}
|
|
169
|
-
/** Create an optimization job. Returns
|
|
170
|
-
export
|
|
171
|
-
|
|
172
|
-
return _createOptimizationJobDeserialize
|
|
173
|
+
/** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */
|
|
174
|
+
export function createOptimizationJob(context, job, options = { requestOptions: {} }) {
|
|
175
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.
|
|
176
|
+
return getJobPoller(context, _createOptimizationJobDeserialize, ["201", "200", "202"], {
|
|
177
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
178
|
+
abortSignal: options?.abortSignal,
|
|
179
|
+
getInitialResponse: () => _createOptimizationJobSend(context, job, options),
|
|
180
|
+
resourceLocationConfig: "operation-location",
|
|
181
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
182
|
+
pollHeaders: {
|
|
183
|
+
...options?.requestOptions?.headers,
|
|
184
|
+
"foundry-features": "AgentsOptimization=V2Preview",
|
|
185
|
+
},
|
|
186
|
+
});
|
|
173
187
|
}
|
|
174
188
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,k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CAAC;YACvF,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;QACD,IAAI,EAAE,yBAAyB,CAAC,GAAG,CAAC;KACrC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,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,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,gHAAgH;AAChH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,OAAe,EACf,GAAoB,EACpB,UAAyD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/E,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACvE,OAAO,iCAAiC,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n OptimizationJob,\n OptimizationJobListItem,\n _AgentsPagedResultOptimizationJobListItem,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n optimizationJobSerializer,\n optimizationJobDeserializer,\n _agentsPagedResultOptimizationJobListItemDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */\nexport async function deleteOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteOptimizationJobSend(context, jobId, options);\n return _deleteOptimizationJobDeserialize(result);\n}\n\nexport function _cancelOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<OptimizationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return optimizationJobDeserializer(result.body);\n}\n\n/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */\nexport async function cancelOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<OptimizationJob> {\n const result = await _cancelOptimizationJobSend(context, jobId, options);\n return _cancelOptimizationJobDeserialize(result);\n}\n\nexport function _listOptimizationJobsSend(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?limit,order,after,before,status,agent_name,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n status: options?.status,\n agent_name: options?.agentName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listOptimizationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultOptimizationJobListItem> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultOptimizationJobListItemDeserializer(result.body);\n}\n\n/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */\nexport function listOptimizationJobs(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<OptimizationJobListItem> {\n return buildPagedAsyncIterator(\n context,\n () => _listOptimizationJobsSend(context, options),\n _listOptimizationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion },\n );\n}\n\nexport function _getOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<OptimizationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return optimizationJobDeserializer(result.body);\n}\n\n/** Get an optimization job by id. */\nexport async function getOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<OptimizationJob> {\n const result = await _getOptimizationJobSend(context, jobId, options);\n return _getOptimizationJobDeserialize(result);\n}\n\nexport function _createOptimizationJobSend(\n context: Client,\n job: OptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?api-version}\",\n {\n \"api-version\": 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 \"foundry-features\": foundryFeatures,\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: optimizationJobSerializer(job),\n });\n}\n\nexport async function _createOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<OptimizationJob> {\n const expectedStatuses = [\"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return optimizationJobDeserializer(result.body);\n}\n\n/** Create an optimization job. Returns 201 with the queued job. Honours `Operation-Id` for idempotent retry. */\nexport async function createOptimizationJob(\n context: Client,\n job: OptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<OptimizationJob> {\n const result = await _createOptimizationJobSend(context, job, options);\n return _createOptimizationJobDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,gCAAgC,EAChC,sCAAsC,EACtC,0DAA0D,GAC3D,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAS3E,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CA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AAC;IAC/C,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,IAAI,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;QACvC,MAAM,eAAe,CACnB,oEAAoE,EACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED,OAAO,sCAAsC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACpE,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,GAAyB,EACzB,UAAyD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/E,gGAAgG;IAChG,OAAO,YAAY,CAAC,OAAO,EAAE,iCAAiC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE;QACrF,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC;QAC3E,sBAAsB,EAAE,oBAAoB;QAC5C,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;QACtC,WAAW,EAAE;YACX,GAAG,OAAO,EAAE,cAAc,EAAE,OAAO;YACnC,kBAAkB,EAAE,8BAA8B;SACnD;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n AgentOptimizationJob,\n AgentOptimizationJobListItem,\n AgentOptimizationJobResult,\n _AgentsPagedResultAgentOptimizationJobListItem,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n agentOptimizationJobSerializer,\n agentOptimizationJobDeserializer,\n agentOptimizationJobResultDeserializer,\n _agentsPagedResultAgentOptimizationJobListItemDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport type { JobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { getJobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaAgentsDeleteOptimizationJobOptionalParams,\n BetaAgentsCancelOptimizationJobOptionalParams,\n BetaAgentsListOptimizationJobsOptionalParams,\n BetaAgentsGetOptimizationJobOptionalParams,\n BetaAgentsCreateOptimizationJobOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": foundryFeatures,\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Delete the job and its candidate artifacts. Cancels first if non-terminal. */\nexport async function deleteOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsDeleteOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteOptimizationJobSend(context, jobId, options);\n return _deleteOptimizationJobDeserialize(result);\n}\n\nexport function _cancelOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return agentOptimizationJobDeserializer(result.body);\n}\n\n/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */\nexport async function cancelOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsCancelOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _cancelOptimizationJobSend(context, jobId, options);\n return _cancelOptimizationJobDeserialize(result);\n}\n\nexport function _listOptimizationJobsSend(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?limit,order,after,before,status,agent_name,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n status: options?.status,\n agent_name: options?.agentName,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listOptimizationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultAgentOptimizationJobListItem> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultAgentOptimizationJobListItemDeserializer(result.body);\n}\n\n/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */\nexport function listOptimizationJobs(\n context: Client,\n options: BetaAgentsListOptimizationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<AgentOptimizationJobListItem> {\n return buildPagedAsyncIterator(\n context,\n () => _listOptimizationJobsSend(context, options),\n _listOptimizationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion },\n );\n}\n\nexport function _getOptimizationJobSend(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return agentOptimizationJobDeserializer(result.body);\n}\n\n/** Get an optimization job by id. */\nexport async function getOptimizationJob(\n context: Client,\n jobId: string,\n options: BetaAgentsGetOptimizationJobOptionalParams = { requestOptions: {} },\n): Promise<AgentOptimizationJob> {\n const result = await _getOptimizationJobSend(context, jobId, options);\n return _getOptimizationJobDeserialize(result);\n}\n\nexport function _createOptimizationJobSend(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const foundryFeatures = \"AgentsOptimization=V2Preview\";\n const path = expandUrlTemplate(\n \"/agent_optimization_jobs{?api-version}\",\n {\n \"api-version\": 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 \"foundry-features\": foundryFeatures,\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: agentOptimizationJobSerializer(job),\n });\n}\n\nexport async function _createOptimizationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<AgentOptimizationJobResult> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return agentOptimizationJobResultDeserializer(result.body.result);\n}\n\n/** Create an optimization job. Returns the queued job. Honours `Operation-Id` for idempotent retry. */\nexport function createOptimizationJob(\n context: Client,\n job: AgentOptimizationJob,\n options: BetaAgentsCreateOptimizationJobOptionalParams = { requestOptions: {} },\n): JobPoller<AgentOptimizationJobResult> {\n // CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.\n return getJobPoller(context, _createOptimizationJobDeserialize, [\"201\", \"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createOptimizationJobSend(context, job, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"v1\",\n pollHeaders: {\n ...options?.requestOptions?.headers,\n \"foundry-features\": \"AgentsOptimization=V2Preview\",\n },\n });\n}\n"]}
|
|
@@ -48,6 +48,8 @@ export interface BetaAgentsGetOptimizationJobOptionalParams extends OperationOpt
|
|
|
48
48
|
}
|
|
49
49
|
/** Optional parameters. */
|
|
50
50
|
export interface BetaAgentsCreateOptimizationJobOptionalParams extends OperationOptions {
|
|
51
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
52
|
+
updateIntervalInMs?: number;
|
|
51
53
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
52
54
|
foundryFeatures?: "AgentsOptimization=V2Preview";
|
|
53
55
|
/** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,4CAA6C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OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { JobStatus, PageOrder } from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaAgentsDeleteOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCancelOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsListOptimizationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter to jobs in this lifecycle state. */\n status?: JobStatus;\n /** Filter to jobs targeting this agent name. */\n agentName?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsGetOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCreateOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/agents/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { JobStatus, PageOrder } from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaAgentsDeleteOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCancelOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsListOptimizationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter to jobs in this lifecycle state. */\n status?: JobStatus;\n /** Filter to jobs targeting this agent name. */\n agentName?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsGetOptimizationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaAgentsCreateOptimizationJobOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"AgentsOptimization=V2Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n"]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AIProjectContext as Client } from "../../index.js";
|
|
2
|
-
import type { DataGenerationJob, _AgentsPagedResultDataGenerationJob } from "../../../models/models.js";
|
|
2
|
+
import type { DataGenerationJob, DataGenerationJobResult, _AgentsPagedResultDataGenerationJob } from "../../../models/models.js";
|
|
3
3
|
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
4
|
+
import type { JobPoller } from "../../../static-helpers/pollingHelpers.js";
|
|
4
5
|
import type { BetaDatasetsDeleteGenerationJobOptionalParams, BetaDatasetsCancelGenerationJobOptionalParams, BetaDatasetsCreateGenerationJobOptionalParams, BetaDatasetsListGenerationJobsOptionalParams, BetaDatasetsGetGenerationJobOptionalParams } from "./options.js";
|
|
5
6
|
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
7
|
export declare function _deleteGenerationJobSend(context: Client, jobId: string, options?: BetaDatasetsDeleteGenerationJobOptionalParams): StreamableMethod;
|
|
@@ -12,9 +13,9 @@ export declare function _cancelGenerationJobDeserialize(result: PathUncheckedRes
|
|
|
12
13
|
/** Cancels the specified data generation job if it is still in progress. */
|
|
13
14
|
export declare function cancelGenerationJob(context: Client, jobId: string, options?: BetaDatasetsCancelGenerationJobOptionalParams): Promise<DataGenerationJob>;
|
|
14
15
|
export declare function _createGenerationJobSend(context: Client, job: DataGenerationJob, options?: BetaDatasetsCreateGenerationJobOptionalParams): StreamableMethod;
|
|
15
|
-
export declare function _createGenerationJobDeserialize(result: PathUncheckedResponse): Promise<
|
|
16
|
+
export declare function _createGenerationJobDeserialize(result: PathUncheckedResponse): Promise<DataGenerationJobResult>;
|
|
16
17
|
/** Submits a new data generation job for asynchronous execution. */
|
|
17
|
-
export declare function createGenerationJob(context: Client, job: DataGenerationJob, options?: BetaDatasetsCreateGenerationJobOptionalParams):
|
|
18
|
+
export declare function createGenerationJob(context: Client, job: DataGenerationJob, options?: BetaDatasetsCreateGenerationJobOptionalParams): JobPoller<DataGenerationJobResult>;
|
|
18
19
|
export declare function _listGenerationJobsSend(context: Client, options?: BetaDatasetsListGenerationJobsOptionalParams): StreamableMethod;
|
|
19
20
|
export declare function _listGenerationJobsDeserialize(result: PathUncheckedResponse): Promise<_AgentsPagedResultDataGenerationJob>;
|
|
20
21
|
/** Returns a list of data generation jobs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EACV,iBAAiB,EACjB,mCAAmC,EACpC,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/operations.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,mCAAmC,EACpC,MAAM,2BAA2B,CAAC;AAQnC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAG3E,OAAO,KAAK,EACV,6CAA6C,EAC7C,6CAA6C,EAC7C,6CAA6C,EAC7C,4CAA4C,EAC5C,0CAA0C,EAC3C,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,6CAAsE,GAC9E,gBAAgB,CAkBlB;AAED,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAYf;AAED,2EAA2E;AAC3E,wBAAsB,mBAAmB,CACvC,OAAO,EAAE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AAgB,CAmBlB;AAED,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,iBAAiB,CAAC,CAY5B;AAED,0EAA0E;AAC1E,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,0CAAmE,GAC3E,OAAO,CAAC,iBAAiB,CAAC,CAG5B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { apiErrorResponseDeserializer, dataGenerationJobSerializer, dataGenerationJobDeserializer, _agentsPagedResultDataGenerationJobDeserializer, } from "../../../models/models.js";
|
|
3
|
+
import { apiErrorResponseDeserializer, dataGenerationJobSerializer, dataGenerationJobDeserializer, dataGenerationJobResultDeserializer, _agentsPagedResultDataGenerationJobDeserializer, } from "../../../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator } from "../../../static-helpers/pagingHelpers.js";
|
|
5
|
+
import { getJobPoller } from "../../../static-helpers/pollingHelpers.js";
|
|
5
6
|
import { expandUrlTemplate } from "../../../static-helpers/urlTemplate.js";
|
|
6
7
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
7
8
|
export function _deleteGenerationJobSend(context, jobId, options = { requestOptions: {} }) {
|
|
@@ -86,7 +87,7 @@ export function _createGenerationJobSend(context, job, options = { requestOption
|
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
export async function _createGenerationJobDeserialize(result) {
|
|
89
|
-
const expectedStatuses = ["201"];
|
|
90
|
+
const expectedStatuses = ["201", "200", "202"];
|
|
90
91
|
if (!expectedStatuses.includes(result.status)) {
|
|
91
92
|
const error = createRestError(result);
|
|
92
93
|
if (result.body) {
|
|
@@ -94,12 +95,25 @@ export async function _createGenerationJobDeserialize(result) {
|
|
|
94
95
|
}
|
|
95
96
|
throw error;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
+
if (result?.body?.result === undefined) {
|
|
99
|
+
throw createRestError(`Expected a result in the response at position "result.body.result"`, result);
|
|
100
|
+
}
|
|
101
|
+
return dataGenerationJobResultDeserializer(result.body.result);
|
|
98
102
|
}
|
|
99
103
|
/** Submits a new data generation job for asynchronous execution. */
|
|
100
|
-
export
|
|
101
|
-
|
|
102
|
-
return _createGenerationJobDeserialize
|
|
104
|
+
export function createGenerationJob(context, job, options = { requestOptions: {} }) {
|
|
105
|
+
// CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.
|
|
106
|
+
return getJobPoller(context, _createGenerationJobDeserialize, ["201", "200", "202"], {
|
|
107
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
108
|
+
abortSignal: options?.abortSignal,
|
|
109
|
+
getInitialResponse: () => _createGenerationJobSend(context, job, options),
|
|
110
|
+
resourceLocationConfig: "operation-location",
|
|
111
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
112
|
+
pollHeaders: {
|
|
113
|
+
...options?.requestOptions?.headers,
|
|
114
|
+
"foundry-features": "DataGenerationJobs=V1Preview",
|
|
115
|
+
},
|
|
116
|
+
});
|
|
103
117
|
}
|
|
104
118
|
export function _listGenerationJobsSend(context, options = { requestOptions: {} }) {
|
|
105
119
|
const path = expandUrlTemplate("/data_generation_jobs{?limit,order,after,before,api-version}", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,+CAA+C,GAChD,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAS3E,OAAO,EAAE,eAAe,EAAE,mCA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AAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAe,EACf,KAAa,EACb,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n DataGenerationJob,\n _AgentsPagedResultDataGenerationJob,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n dataGenerationJobSerializer,\n dataGenerationJobDeserializer,\n _agentsPagedResultDataGenerationJobDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaDatasetsDeleteGenerationJobOptionalParams,\n BetaDatasetsCancelGenerationJobOptionalParams,\n BetaDatasetsCreateGenerationJobOptionalParams,\n BetaDatasetsListGenerationJobsOptionalParams,\n BetaDatasetsGetGenerationJobOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsDeleteGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Removes the specified data generation job and its associated output. */\nexport async function deleteGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsDeleteGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteGenerationJobSend(context, jobId, options);\n return _deleteGenerationJobDeserialize(result);\n}\n\nexport function _cancelGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsCancelGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dataGenerationJobDeserializer(result.body);\n}\n\n/** Cancels the specified data generation job if it is still in progress. */\nexport async function cancelGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsCancelGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<DataGenerationJob> {\n const result = await _cancelGenerationJobSend(context, jobId, options);\n return _cancelGenerationJobDeserialize(result);\n}\n\nexport function _createGenerationJobSend(\n context: Client,\n job: DataGenerationJob,\n options: BetaDatasetsCreateGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs{?api-version}\",\n {\n \"api-version\": context.apiVersion ?? \"v1\",\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 \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: dataGenerationJobSerializer(job),\n });\n}\n\nexport async function _createGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJob> {\n const expectedStatuses = [\"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dataGenerationJobDeserializer(result.body);\n}\n\n/** Submits a new data generation job for asynchronous execution. */\nexport async function createGenerationJob(\n context: Client,\n job: DataGenerationJob,\n options: BetaDatasetsCreateGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<DataGenerationJob> {\n const result = await _createGenerationJobSend(context, job, options);\n return _createGenerationJobDeserialize(result);\n}\n\nexport function _listGenerationJobsSend(\n context: Client,\n options: BetaDatasetsListGenerationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs{?limit,order,after,before,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listGenerationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultDataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultDataGenerationJobDeserializer(result.body);\n}\n\n/** Returns a list of data generation jobs. */\nexport function listGenerationJobs(\n context: Client,\n options: BetaDatasetsListGenerationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DataGenerationJob> {\n return buildPagedAsyncIterator(\n context,\n () => _listGenerationJobsSend(context, options),\n _listGenerationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion ?? \"v1\" },\n );\n}\n\nexport function _getGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsGetGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dataGenerationJobDeserializer(result.body);\n}\n\n/** Retrieves the specified data generation job and its current status. */\nexport async function getGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsGetGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<DataGenerationJob> {\n const result = await _getGenerationJobSend(context, jobId, options);\n return _getGenerationJobDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,mCAAmC,EACnC,+CAA+C,GAChD,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAS3E,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,wBAAwB,CACtC,OAAe,EACf,KAAa,EACb,UAAyD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE/E,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6CAA6C,EAC7C;QACE,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;KAC1C,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC;QAC/B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP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AAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,4BAA4B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,6BAA6B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACpD,CAAC;AAED,0EAA0E;AAC1E,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAe,EACf,KAAa,EACb,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACpE,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../../index.js\";\nimport type {\n DataGenerationJob,\n DataGenerationJobResult,\n _AgentsPagedResultDataGenerationJob,\n} from \"../../../models/models.js\";\nimport {\n apiErrorResponseDeserializer,\n dataGenerationJobSerializer,\n dataGenerationJobDeserializer,\n dataGenerationJobResultDeserializer,\n _agentsPagedResultDataGenerationJobDeserializer,\n} from \"../../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../../static-helpers/pagingHelpers.js\";\nimport type { JobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { getJobPoller } from \"../../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../../static-helpers/urlTemplate.js\";\nimport type {\n BetaDatasetsDeleteGenerationJobOptionalParams,\n BetaDatasetsCancelGenerationJobOptionalParams,\n BetaDatasetsCreateGenerationJobOptionalParams,\n BetaDatasetsListGenerationJobsOptionalParams,\n BetaDatasetsGetGenerationJobOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _deleteGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsDeleteGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n\n/** Removes the specified data generation job and its associated output. */\nexport async function deleteGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsDeleteGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _deleteGenerationJobSend(context, jobId, options);\n return _deleteGenerationJobDeserialize(result);\n}\n\nexport function _cancelGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsCancelGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}:cancel{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _cancelGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dataGenerationJobDeserializer(result.body);\n}\n\n/** Cancels the specified data generation job if it is still in progress. */\nexport async function cancelGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsCancelGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<DataGenerationJob> {\n const result = await _cancelGenerationJobSend(context, jobId, options);\n return _cancelGenerationJobDeserialize(result);\n}\n\nexport function _createGenerationJobSend(\n context: Client,\n job: DataGenerationJob,\n options: BetaDatasetsCreateGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs{?api-version}\",\n {\n \"api-version\": context.apiVersion ?? \"v1\",\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 \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n ...(options?.operationId !== undefined ? { \"operation-id\": options?.operationId } : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: dataGenerationJobSerializer(job),\n });\n}\n\nexport async function _createGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJobResult> {\n const expectedStatuses = [\"201\", \"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n if (result?.body?.result === undefined) {\n throw createRestError(\n `Expected a result in the response at position \"result.body.result\"`,\n result,\n );\n }\n\n return dataGenerationJobResultDeserializer(result.body.result);\n}\n\n/** Submits a new data generation job for asynchronous execution. */\nexport function createGenerationJob(\n context: Client,\n job: DataGenerationJob,\n options: BetaDatasetsCreateGenerationJobOptionalParams = { requestOptions: {} },\n): JobPoller<DataGenerationJobResult> {\n // CUSTOMIZATION: SDK-IMPROVEMENT: `getJobPoller` exposes the queued job id on the poller state.\n return getJobPoller(context, _createGenerationJobDeserialize, [\"201\", \"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _createGenerationJobSend(context, job, options),\n resourceLocationConfig: \"operation-location\",\n apiVersion: context.apiVersion ?? \"v1\",\n pollHeaders: {\n ...options?.requestOptions?.headers,\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n },\n });\n}\n\nexport function _listGenerationJobsSend(\n context: Client,\n options: BetaDatasetsListGenerationJobsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs{?limit,order,after,before,api-version}\",\n {\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listGenerationJobsDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultDataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _agentsPagedResultDataGenerationJobDeserializer(result.body);\n}\n\n/** Returns a list of data generation jobs. */\nexport function listGenerationJobs(\n context: Client,\n options: BetaDatasetsListGenerationJobsOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<DataGenerationJob> {\n return buildPagedAsyncIterator(\n context,\n () => _listGenerationJobsSend(context, options),\n _listGenerationJobsDeserialize,\n [\"200\"],\n { itemName: \"data\", apiVersion: context.apiVersion ?? \"v1\" },\n );\n}\n\nexport function _getGenerationJobSend(\n context: Client,\n jobId: string,\n options: BetaDatasetsGetGenerationJobOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/data_generation_jobs/{jobId}{?api-version}\",\n {\n jobId: jobId,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n \"foundry-features\": \"DataGenerationJobs=V1Preview\",\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getGenerationJobDeserialize(\n result: PathUncheckedResponse,\n): Promise<DataGenerationJob> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = apiErrorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return dataGenerationJobDeserializer(result.body);\n}\n\n/** Retrieves the specified data generation job and its current status. */\nexport async function getGenerationJob(\n context: Client,\n jobId: string,\n options: BetaDatasetsGetGenerationJobOptionalParams = { requestOptions: {} },\n): Promise<DataGenerationJob> {\n const result = await _getGenerationJobSend(context, jobId, options);\n return _getGenerationJobDeserialize(result);\n}\n"]}
|
|
@@ -12,6 +12,8 @@ export interface BetaDatasetsCancelGenerationJobOptionalParams extends Operation
|
|
|
12
12
|
}
|
|
13
13
|
/** Optional parameters. */
|
|
14
14
|
export interface BetaDatasetsCreateGenerationJobOptionalParams extends OperationOptions {
|
|
15
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
16
|
+
updateIntervalInMs?: number;
|
|
15
17
|
/** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */
|
|
16
18
|
foundryFeatures?: "DataGenerationJobs=V1Preview";
|
|
17
19
|
/** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/options.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,SAAS,EACV,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CAClD;AAED,2BAA2B;AAC3B,MAAM,WAAW,6CAA8C,SAAQ,gBAAgB;IACrF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD,kHAAkH;IAClH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,2BAA2B;AAC3B,MAAM,WAAW,4CAA6C,SAAQ,gBAAgB;IACpF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;IACjD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,iDAAiD;IACjD,IAAI,CAAC,EAAE,qBAAqB,EAAE,CAAC;CAChC;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,6GAA6G;IAC7G,eAAe,CAAC,EAAE,8BAA8B,CAAC;CACl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ClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DataGenerationJobType,\n DataGenerationJobScenario,\n PageOrder,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaDatasetsDeleteGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsCancelGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsCreateGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsListGenerationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter data generation jobs by their scenario. */\n scenario?: DataGenerationJobScenario;\n /** Filter data generation jobs by their type. */\n type?: DataGenerationJobType[];\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsGetGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n"]}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../src/api/beta/datasets/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DataGenerationJobType,\n DataGenerationJobScenario,\n PageOrder,\n} from \"../../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface BetaDatasetsDeleteGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsCancelGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsCreateGenerationJobOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n /** Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. */\n operationId?: string;\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsListGenerationJobsOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n /**\n * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the\n * default is 20.\n */\n limit?: number;\n /**\n * Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`\n * for descending order.\n */\n order?: PageOrder;\n /**\n * A cursor for use in pagination. `after` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include after=obj_foo in order to fetch the next page of the list.\n */\n after?: string;\n /**\n * A cursor for use in pagination. `before` is an object ID that defines your place in the list.\n * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your\n * subsequent call can include before=obj_foo in order to fetch the previous page of the list.\n */\n before?: string;\n /** Filter data generation jobs by their scenario. */\n scenario?: DataGenerationJobScenario;\n /** Filter data generation jobs by their type. */\n type?: DataGenerationJobType[];\n}\n\n/** Optional parameters. */\nexport interface BetaDatasetsGetGenerationJobOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"DataGenerationJobs=V1Preview\";\n}\n"]}
|
|
@@ -5,7 +5,7 @@ import type { BetaEvaluationTaxonomiesUpdateOptionalParams, BetaEvaluationTaxono
|
|
|
5
5
|
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
6
|
export declare function _updateSend(context: Client, name: string, taxonomy: EvaluationTaxonomy, options?: BetaEvaluationTaxonomiesUpdateOptionalParams): StreamableMethod;
|
|
7
7
|
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<EvaluationTaxonomy>;
|
|
8
|
-
/**
|
|
8
|
+
/** Modifies the specified evaluation taxonomy with the provided changes. */
|
|
9
9
|
export declare function update(context: Client, name: string, taxonomy: EvaluationTaxonomy, options?: BetaEvaluationTaxonomiesUpdateOptionalParams): Promise<EvaluationTaxonomy>;
|
|
10
10
|
export declare function _createSend(context: Client, name: string, taxonomy: EvaluationTaxonomy, options?: BetaEvaluationTaxonomiesCreateOptionalParams): StreamableMethod;
|
|
11
11
|
export declare function _createDeserialize(result: PathUncheckedResponse): Promise<EvaluationTaxonomy>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/evaluationTaxonomies/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAM9F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EACV,4CAA4C,EAC5C,4CAA4C,EAC5C,4CAA4C,EAC5C,0CAA0C,EAC1C,yCAAyC,EAC1C,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGvF,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kBAAkB,EAC5B,OAAO,GAAE,4CAAqE,GAC7E,gBAAgB,CAsBlB;AAED,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAO7B;AAED,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/api/beta/evaluationTaxonomies/operations.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAM9F,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAGrE,OAAO,KAAK,EACV,4CAA4C,EAC5C,4CAA4C,EAC5C,4CAA4C,EAC5C,0CAA0C,EAC1C,yCAAyC,EAC1C,MAAM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7E,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAgB,SAAS,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0CAAmE,GAC3E,gBAAgB,CAqBlB;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,wBAAwB,CAAC,CAOnC;AAED,mHAAmH;AACnH,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,0CAAmE,GAC3E,0BAA0B,CAAC,kBAAkB,CAAC,CAiBhD;AAED,wBAAgB,QAAQ,CACtB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,yCAAkE,GAC1E,gBAAgB,CAoBlB;AAED,wBAAsB,eAAe,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAOhG;AAED,mDAAmD;AACnD,wBAAsB,GAAG,CACvB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,yCAAkE,GAC1E,OAAO,CAAC,kBAAkB,CAAC,CAG7B"}
|
|
@@ -30,7 +30,7 @@ export async function _updateDeserialize(result) {
|
|
|
30
30
|
}
|
|
31
31
|
return evaluationTaxonomyDeserializer(result.body);
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
33
|
+
/** Modifies the specified evaluation taxonomy with the provided changes. */
|
|
34
34
|
export async function update(context, name, taxonomy, options = { requestOptions: {} }) {
|
|
35
35
|
const result = await _updateSend(context, name, taxonomy, options);
|
|
36
36
|
return _updateDeserialize(result);
|