@azure/ai-projects 1.0.1-alpha.20251112.1 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +115 -39
- package/dist/browser/aiProjectClient.d.ts +39 -36
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +66 -57
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/agents/index.d.ts +3 -0
- package/dist/browser/api/agents/index.d.ts.map +1 -0
- package/dist/browser/api/agents/index.js +4 -0
- package/dist/browser/api/agents/index.js.map +1 -0
- package/dist/browser/api/agents/operations.d.ts +60 -0
- package/dist/browser/api/agents/operations.d.ts.map +1 -0
- package/dist/browser/api/agents/operations.js +412 -0
- package/dist/browser/api/agents/operations.js.map +1 -0
- package/dist/browser/api/agents/options.d.ts +151 -0
- package/dist/browser/api/agents/options.d.ts.map +1 -0
- package/dist/browser/api/agents/options.js.map +1 -0
- package/dist/browser/api/aiProjectContext.d.ts +6 -13
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
- package/dist/browser/api/aiProjectContext.js +10 -17
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/connections/index.d.ts +1 -1
- package/dist/browser/api/connections/index.d.ts.map +1 -1
- package/dist/browser/api/connections/index.js +1 -1
- package/dist/browser/api/connections/index.js.map +1 -1
- package/dist/browser/api/connections/operations.d.ts +1 -1
- package/dist/browser/api/connections/operations.d.ts.map +1 -1
- package/dist/browser/api/connections/operations.js +1 -1
- package/dist/browser/api/connections/operations.js.map +1 -1
- package/dist/browser/api/datasets/operations.d.ts +8 -13
- package/dist/browser/api/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/datasets/operations.js +129 -141
- package/dist/browser/api/datasets/operations.js.map +1 -1
- package/dist/browser/api/deployments/operations.d.ts +1 -1
- package/dist/browser/api/deployments/operations.d.ts.map +1 -1
- package/dist/browser/api/deployments/operations.js +1 -1
- package/dist/browser/api/deployments/operations.js.map +1 -1
- package/dist/browser/api/evaluationRules/index.d.ts +3 -0
- package/dist/browser/api/evaluationRules/index.d.ts.map +1 -0
- package/dist/browser/api/evaluationRules/index.js +4 -0
- package/dist/browser/api/evaluationRules/index.js.map +1 -0
- package/dist/browser/api/evaluationRules/operations.d.ts +22 -0
- package/dist/browser/api/evaluationRules/operations.d.ts.map +1 -0
- package/dist/browser/api/evaluationRules/operations.js +126 -0
- package/dist/browser/api/evaluationRules/operations.js.map +1 -0
- package/dist/browser/api/evaluationRules/options.d.ts +27 -0
- package/dist/browser/api/evaluationRules/options.d.ts.map +1 -0
- package/dist/browser/api/evaluationRules/options.js.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/browser/api/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/index.js +4 -0
- package/dist/browser/api/evaluationTaxonomies/index.js.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/browser/api/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/operations.js +154 -0
- package/dist/browser/api/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/browser/api/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/browser/api/evaluationTaxonomies/options.js.map +1 -0
- package/dist/browser/api/evaluators/index.d.ts +3 -0
- package/dist/browser/api/evaluators/index.d.ts.map +1 -0
- package/dist/browser/api/evaluators/index.js +4 -0
- package/dist/browser/api/evaluators/index.js.map +1 -0
- package/dist/browser/api/evaluators/operations.d.ts +30 -0
- package/dist/browser/api/evaluators/operations.d.ts.map +1 -0
- package/dist/browser/api/evaluators/operations.js +171 -0
- package/dist/browser/api/evaluators/operations.js.map +1 -0
- package/dist/browser/api/evaluators/options.d.ts +29 -0
- package/dist/browser/api/evaluators/options.d.ts.map +1 -0
- package/dist/browser/api/evaluators/options.js +4 -0
- package/dist/browser/api/evaluators/options.js.map +1 -0
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +2 -0
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/indexes/operations.d.ts +3 -8
- package/dist/browser/api/indexes/operations.d.ts.map +1 -1
- package/dist/browser/api/indexes/operations.js +4 -16
- package/dist/browser/api/indexes/operations.js.map +1 -1
- package/dist/browser/api/insights/index.d.ts +3 -0
- package/dist/browser/api/insights/index.d.ts.map +1 -0
- package/dist/browser/api/insights/index.js +4 -0
- package/dist/browser/api/insights/index.js.map +1 -0
- package/dist/browser/api/insights/operations.d.ts +18 -0
- package/dist/browser/api/insights/operations.d.ts.map +1 -0
- package/dist/browser/api/insights/operations.js +109 -0
- package/dist/browser/api/insights/operations.js.map +1 -0
- package/dist/browser/api/insights/options.d.ts +32 -0
- package/dist/browser/api/insights/options.d.ts.map +1 -0
- package/dist/browser/api/insights/options.js +4 -0
- package/dist/browser/api/insights/options.js.map +1 -0
- package/dist/browser/api/memoryStores/index.d.ts +3 -0
- package/dist/browser/api/memoryStores/index.d.ts.map +1 -0
- package/dist/browser/api/memoryStores/index.js +4 -0
- package/dist/browser/api/memoryStores/index.js.map +1 -0
- package/dist/browser/api/memoryStores/operations.d.ts +43 -0
- package/dist/browser/api/memoryStores/operations.d.ts.map +1 -0
- package/dist/browser/api/memoryStores/operations.js +306 -0
- package/dist/browser/api/memoryStores/operations.js.map +1 -0
- package/dist/browser/api/memoryStores/options.d.ts +83 -0
- package/dist/browser/api/memoryStores/options.d.ts.map +1 -0
- package/dist/browser/api/memoryStores/options.js +4 -0
- package/dist/browser/api/memoryStores/options.js.map +1 -0
- package/dist/browser/api/redTeams/index.d.ts +3 -0
- package/dist/browser/api/redTeams/index.d.ts.map +1 -0
- package/dist/browser/api/redTeams/index.js +4 -0
- package/dist/browser/api/redTeams/index.js.map +1 -0
- package/dist/browser/api/redTeams/operations.d.ts +18 -0
- package/dist/browser/api/redTeams/operations.d.ts.map +1 -0
- package/dist/browser/api/redTeams/operations.js +93 -0
- package/dist/browser/api/redTeams/operations.js.map +1 -0
- package/dist/browser/api/redTeams/options.d.ts +15 -0
- package/dist/browser/api/redTeams/options.d.ts.map +1 -0
- package/dist/browser/api/redTeams/options.js +4 -0
- package/dist/browser/api/redTeams/options.js.map +1 -0
- package/dist/browser/api/schedules/index.d.ts +3 -0
- package/dist/browser/api/schedules/index.d.ts.map +1 -0
- package/dist/browser/api/schedules/index.js +4 -0
- package/dist/browser/api/schedules/index.js.map +1 -0
- package/dist/browser/api/schedules/operations.d.ts +30 -0
- package/dist/browser/api/schedules/operations.d.ts.map +1 -0
- package/dist/browser/api/schedules/operations.js +178 -0
- package/dist/browser/api/schedules/operations.js.map +1 -0
- package/dist/browser/api/schedules/options.d.ts +26 -0
- package/dist/browser/api/schedules/options.d.ts.map +1 -0
- package/dist/browser/api/schedules/options.js +4 -0
- package/dist/browser/api/schedules/options.js.map +1 -0
- package/dist/browser/classic/agents/index.d.ts +39 -0
- package/dist/browser/classic/agents/index.d.ts.map +1 -0
- package/dist/browser/classic/agents/index.js +43 -0
- package/dist/browser/classic/agents/index.js.map +1 -0
- package/dist/browser/classic/connections/index.d.ts +1 -1
- package/dist/browser/classic/connections/index.d.ts.map +1 -1
- package/dist/browser/classic/connections/index.js.map +1 -1
- package/dist/browser/classic/datasets/index.d.ts +4 -9
- package/dist/browser/classic/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/datasets/index.js +0 -1
- package/dist/browser/classic/datasets/index.js.map +1 -1
- package/dist/browser/classic/deployments/index.d.ts +1 -1
- package/dist/browser/classic/deployments/index.d.ts.map +1 -1
- package/dist/browser/classic/deployments/index.js.map +1 -1
- package/dist/browser/classic/evaluationRules/index.d.ts +17 -0
- package/dist/browser/classic/evaluationRules/index.d.ts.map +1 -0
- package/dist/browser/classic/evaluationRules/index.js +17 -0
- package/dist/browser/classic/evaluationRules/index.js.map +1 -0
- package/dist/browser/classic/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/browser/classic/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/browser/classic/evaluationTaxonomies/index.js +18 -0
- package/dist/browser/classic/evaluationTaxonomies/index.js.map +1 -0
- package/dist/browser/classic/evaluators/index.d.ts +21 -0
- package/dist/browser/classic/evaluators/index.d.ts.map +1 -0
- package/dist/browser/classic/evaluators/index.js +25 -0
- package/dist/browser/classic/evaluators/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +8 -1
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/indexes/index.d.ts +3 -8
- package/dist/browser/classic/indexes/index.d.ts.map +1 -1
- package/dist/browser/classic/indexes/index.js +0 -1
- package/dist/browser/classic/indexes/index.js.map +1 -1
- package/dist/browser/classic/insights/index.d.ts +15 -0
- package/dist/browser/classic/insights/index.d.ts.map +1 -0
- package/dist/browser/classic/insights/index.js +16 -0
- package/dist/browser/classic/insights/index.js.map +1 -0
- package/dist/browser/classic/memoryStores/index.d.ts +28 -0
- package/dist/browser/classic/memoryStores/index.d.ts.map +1 -0
- package/dist/browser/classic/memoryStores/index.js +22 -0
- package/dist/browser/classic/memoryStores/index.js.map +1 -0
- package/dist/browser/classic/redTeams/index.d.ts +15 -0
- package/dist/browser/classic/redTeams/index.d.ts.map +1 -0
- package/dist/browser/classic/redTeams/index.js +16 -0
- package/dist/browser/classic/redTeams/index.js.map +1 -0
- package/dist/browser/classic/schedules/index.d.ts +21 -0
- package/dist/browser/classic/schedules/index.d.ts.map +1 -0
- package/dist/browser/classic/schedules/index.js +19 -0
- package/dist/browser/classic/schedules/index.js.map +1 -0
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +11 -5
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -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 +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +3081 -24
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +3778 -266
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/overwriteOpenAIClient.d.ts +3 -0
- package/dist/browser/overwriteOpenAIClient.d.ts.map +1 -0
- package/dist/browser/overwriteOpenAIClient.js +14 -0
- package/dist/browser/overwriteOpenAIClient.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +24 -0
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -0
- package/dist/browser/restorePollerHelpers.js +91 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.js +79 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/browser/static-helpers/serialization/serialize-record.d.ts.map +1 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js +20 -0
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +22 -12
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/aiProjectClient.d.ts +39 -36
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +71 -61
- package/dist/commonjs/aiProjectClient.js.map +1 -1
- package/dist/commonjs/api/agents/index.d.ts +3 -0
- package/dist/commonjs/api/agents/index.d.ts.map +1 -0
- package/dist/commonjs/api/agents/index.js +19 -0
- package/dist/commonjs/api/agents/index.js.map +1 -0
- package/dist/commonjs/api/agents/operations.d.ts +60 -0
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -0
- package/dist/commonjs/api/agents/operations.js +450 -0
- package/dist/commonjs/api/agents/operations.js.map +1 -0
- package/dist/commonjs/api/agents/options.d.ts +151 -0
- package/dist/commonjs/api/agents/options.d.ts.map +1 -0
- package/dist/commonjs/api/agents/options.js.map +1 -0
- package/dist/commonjs/api/aiProjectContext.d.ts +6 -13
- package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
- package/dist/commonjs/api/aiProjectContext.js +10 -17
- package/dist/commonjs/api/aiProjectContext.js.map +1 -1
- package/dist/commonjs/api/connections/index.d.ts +1 -1
- package/dist/commonjs/api/connections/index.d.ts.map +1 -1
- package/dist/commonjs/api/connections/index.js +1 -2
- package/dist/commonjs/api/connections/index.js.map +1 -1
- package/dist/commonjs/api/connections/operations.d.ts +1 -1
- package/dist/commonjs/api/connections/operations.d.ts.map +1 -1
- package/dist/commonjs/api/connections/operations.js +1 -1
- package/dist/commonjs/api/connections/operations.js.map +1 -1
- package/dist/commonjs/api/datasets/operations.d.ts +8 -13
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/operations.js +130 -142
- package/dist/commonjs/api/datasets/operations.js.map +1 -1
- package/dist/commonjs/api/deployments/operations.d.ts +1 -1
- package/dist/commonjs/api/deployments/operations.d.ts.map +1 -1
- package/dist/commonjs/api/deployments/operations.js +1 -1
- package/dist/commonjs/api/deployments/operations.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/index.d.ts +3 -0
- package/dist/commonjs/api/evaluationRules/index.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationRules/index.js +11 -0
- package/dist/commonjs/api/evaluationRules/index.js.map +1 -0
- package/dist/commonjs/api/evaluationRules/operations.d.ts +22 -0
- package/dist/commonjs/api/evaluationRules/operations.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationRules/operations.js +140 -0
- package/dist/commonjs/api/evaluationRules/operations.js.map +1 -0
- package/dist/commonjs/api/evaluationRules/options.d.ts +27 -0
- package/dist/commonjs/api/evaluationRules/options.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationRules/options.js +5 -0
- package/dist/commonjs/api/evaluationRules/options.js.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/commonjs/api/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/index.js +12 -0
- package/dist/commonjs/api/evaluationTaxonomies/index.js.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/operations.js +171 -0
- package/dist/commonjs/api/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/commonjs/api/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/commonjs/api/evaluationTaxonomies/options.js +5 -0
- package/dist/commonjs/api/evaluationTaxonomies/options.js.map +1 -0
- package/dist/commonjs/api/evaluators/index.d.ts +3 -0
- package/dist/commonjs/api/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/api/evaluators/index.js +13 -0
- package/dist/commonjs/api/evaluators/index.js.map +1 -0
- package/dist/commonjs/api/evaluators/operations.d.ts +30 -0
- package/dist/commonjs/api/evaluators/operations.d.ts.map +1 -0
- package/dist/commonjs/api/evaluators/operations.js +191 -0
- package/dist/commonjs/api/evaluators/operations.js.map +1 -0
- package/dist/commonjs/api/evaluators/options.d.ts +29 -0
- package/dist/commonjs/api/evaluators/options.d.ts.map +1 -0
- package/dist/commonjs/api/evaluators/options.js +5 -0
- package/dist/commonjs/api/evaluators/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +2 -0
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/indexes/operations.d.ts +3 -8
- package/dist/commonjs/api/indexes/operations.d.ts.map +1 -1
- package/dist/commonjs/api/indexes/operations.js +4 -16
- package/dist/commonjs/api/indexes/operations.js.map +1 -1
- package/dist/commonjs/api/insights/index.d.ts +3 -0
- package/dist/commonjs/api/insights/index.d.ts.map +1 -0
- package/dist/commonjs/api/insights/index.js +10 -0
- package/dist/commonjs/api/insights/index.js.map +1 -0
- package/dist/commonjs/api/insights/operations.d.ts +18 -0
- package/dist/commonjs/api/insights/operations.d.ts.map +1 -0
- package/dist/commonjs/api/insights/operations.js +120 -0
- package/dist/commonjs/api/insights/operations.js.map +1 -0
- package/dist/commonjs/api/insights/options.d.ts +32 -0
- package/dist/commonjs/api/insights/options.d.ts.map +1 -0
- package/dist/commonjs/api/insights/options.js +5 -0
- package/dist/commonjs/api/insights/options.js.map +1 -0
- package/dist/commonjs/api/memoryStores/index.d.ts +3 -0
- package/dist/commonjs/api/memoryStores/index.d.ts.map +1 -0
- package/dist/commonjs/api/memoryStores/index.js +16 -0
- package/dist/commonjs/api/memoryStores/index.js.map +1 -0
- package/dist/commonjs/api/memoryStores/operations.d.ts +43 -0
- package/dist/commonjs/api/memoryStores/operations.d.ts.map +1 -0
- package/dist/commonjs/api/memoryStores/operations.js +335 -0
- package/dist/commonjs/api/memoryStores/operations.js.map +1 -0
- package/dist/commonjs/api/memoryStores/options.d.ts +83 -0
- package/dist/commonjs/api/memoryStores/options.d.ts.map +1 -0
- package/dist/commonjs/api/memoryStores/options.js +5 -0
- package/dist/commonjs/api/memoryStores/options.js.map +1 -0
- package/dist/commonjs/api/redTeams/index.d.ts +3 -0
- package/dist/commonjs/api/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/index.js +10 -0
- package/dist/commonjs/api/redTeams/index.js.map +1 -0
- package/dist/commonjs/api/redTeams/operations.d.ts +18 -0
- package/dist/commonjs/api/redTeams/operations.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/operations.js +104 -0
- package/dist/commonjs/api/redTeams/operations.js.map +1 -0
- package/dist/commonjs/api/redTeams/options.d.ts +15 -0
- package/dist/commonjs/api/redTeams/options.d.ts.map +1 -0
- package/dist/commonjs/api/redTeams/options.js +5 -0
- package/dist/commonjs/api/redTeams/options.js.map +1 -0
- package/dist/commonjs/api/schedules/index.d.ts +3 -0
- package/dist/commonjs/api/schedules/index.d.ts.map +1 -0
- package/dist/commonjs/api/schedules/index.js +13 -0
- package/dist/commonjs/api/schedules/index.js.map +1 -0
- package/dist/commonjs/api/schedules/operations.d.ts +30 -0
- package/dist/commonjs/api/schedules/operations.d.ts.map +1 -0
- package/dist/commonjs/api/schedules/operations.js +198 -0
- package/dist/commonjs/api/schedules/operations.js.map +1 -0
- package/dist/commonjs/api/schedules/options.d.ts +26 -0
- package/dist/commonjs/api/schedules/options.d.ts.map +1 -0
- package/dist/commonjs/api/schedules/options.js +5 -0
- package/dist/commonjs/api/schedules/options.js.map +1 -0
- package/dist/commonjs/classic/agents/index.d.ts +39 -0
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -0
- package/dist/commonjs/classic/agents/index.js +46 -0
- package/dist/commonjs/classic/agents/index.js.map +1 -0
- package/dist/commonjs/classic/connections/index.d.ts +1 -1
- package/dist/commonjs/classic/connections/index.d.ts.map +1 -1
- package/dist/commonjs/classic/connections/index.js.map +1 -1
- package/dist/commonjs/classic/datasets/index.d.ts +4 -9
- package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/datasets/index.js +0 -1
- package/dist/commonjs/classic/datasets/index.js.map +1 -1
- package/dist/commonjs/classic/deployments/index.d.ts +1 -1
- package/dist/commonjs/classic/deployments/index.d.ts.map +1 -1
- package/dist/commonjs/classic/deployments/index.js.map +1 -1
- package/dist/commonjs/classic/evaluationRules/index.d.ts +17 -0
- package/dist/commonjs/classic/evaluationRules/index.d.ts.map +1 -0
- package/dist/commonjs/classic/evaluationRules/index.js +20 -0
- package/dist/commonjs/classic/evaluationRules/index.js.map +1 -0
- package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/commonjs/classic/evaluationTaxonomies/index.js +21 -0
- package/dist/commonjs/classic/evaluationTaxonomies/index.js.map +1 -0
- package/dist/commonjs/classic/evaluators/index.d.ts +21 -0
- package/dist/commonjs/classic/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/classic/evaluators/index.js +28 -0
- package/dist/commonjs/classic/evaluators/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +8 -1
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/indexes/index.d.ts +3 -8
- package/dist/commonjs/classic/indexes/index.d.ts.map +1 -1
- package/dist/commonjs/classic/indexes/index.js +0 -1
- package/dist/commonjs/classic/indexes/index.js.map +1 -1
- package/dist/commonjs/classic/insights/index.d.ts +15 -0
- package/dist/commonjs/classic/insights/index.d.ts.map +1 -0
- package/dist/commonjs/classic/insights/index.js +19 -0
- package/dist/commonjs/classic/insights/index.js.map +1 -0
- package/dist/commonjs/classic/memoryStores/index.d.ts +28 -0
- package/dist/commonjs/classic/memoryStores/index.d.ts.map +1 -0
- package/dist/commonjs/classic/memoryStores/index.js +25 -0
- package/dist/commonjs/classic/memoryStores/index.js.map +1 -0
- package/dist/commonjs/classic/redTeams/index.d.ts +15 -0
- package/dist/commonjs/classic/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/classic/redTeams/index.js +19 -0
- package/dist/commonjs/classic/redTeams/index.js.map +1 -0
- package/dist/commonjs/classic/schedules/index.d.ts +21 -0
- package/dist/commonjs/classic/schedules/index.d.ts.map +1 -0
- package/dist/commonjs/classic/schedules/index.js +22 -0
- package/dist/commonjs/classic/schedules/index.js.map +1 -0
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +11 -5
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -2
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +2 -2
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +3081 -24
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +4263 -270
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/overwriteOpenAIClient.d.ts +3 -0
- package/dist/commonjs/overwriteOpenAIClient.d.ts.map +1 -0
- package/dist/commonjs/overwriteOpenAIClient.js +17 -0
- package/dist/commonjs/overwriteOpenAIClient.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +24 -0
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -0
- package/dist/commonjs/restorePollerHelpers.js +94 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +23 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +22 -12
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/aiProjectClient.d.ts +39 -36
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +66 -57
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/agents/index.d.ts +3 -0
- package/dist/esm/api/agents/index.d.ts.map +1 -0
- package/dist/esm/api/agents/index.js +4 -0
- package/dist/esm/api/agents/index.js.map +1 -0
- package/dist/esm/api/agents/operations.d.ts +60 -0
- package/dist/esm/api/agents/operations.d.ts.map +1 -0
- package/dist/esm/api/agents/operations.js +412 -0
- package/dist/esm/api/agents/operations.js.map +1 -0
- package/dist/esm/api/agents/options.d.ts +151 -0
- package/dist/esm/api/agents/options.d.ts.map +1 -0
- package/dist/esm/api/agents/options.js +4 -0
- package/dist/esm/api/agents/options.js.map +1 -0
- package/dist/esm/api/aiProjectContext.d.ts +6 -13
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
- package/dist/esm/api/aiProjectContext.js +10 -17
- package/dist/esm/api/aiProjectContext.js.map +1 -1
- package/dist/esm/api/connections/index.d.ts +1 -1
- package/dist/esm/api/connections/index.d.ts.map +1 -1
- package/dist/esm/api/connections/index.js +1 -1
- package/dist/esm/api/connections/index.js.map +1 -1
- package/dist/esm/api/connections/operations.d.ts +1 -1
- package/dist/esm/api/connections/operations.d.ts.map +1 -1
- package/dist/esm/api/connections/operations.js +1 -1
- package/dist/esm/api/connections/operations.js.map +1 -1
- package/dist/esm/api/datasets/operations.d.ts +8 -13
- package/dist/esm/api/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/datasets/operations.js +129 -141
- package/dist/esm/api/datasets/operations.js.map +1 -1
- package/dist/esm/api/deployments/operations.d.ts +1 -1
- package/dist/esm/api/deployments/operations.d.ts.map +1 -1
- package/dist/esm/api/deployments/operations.js +1 -1
- package/dist/esm/api/deployments/operations.js.map +1 -1
- package/dist/esm/api/evaluationRules/index.d.ts +3 -0
- package/dist/esm/api/evaluationRules/index.d.ts.map +1 -0
- package/dist/esm/api/evaluationRules/index.js +4 -0
- package/dist/esm/api/evaluationRules/index.js.map +1 -0
- package/dist/esm/api/evaluationRules/operations.d.ts +22 -0
- package/dist/esm/api/evaluationRules/operations.d.ts.map +1 -0
- package/dist/esm/api/evaluationRules/operations.js +126 -0
- package/dist/esm/api/evaluationRules/operations.js.map +1 -0
- package/dist/esm/api/evaluationRules/options.d.ts +27 -0
- package/dist/esm/api/evaluationRules/options.d.ts.map +1 -0
- package/dist/esm/api/evaluationRules/options.js +4 -0
- package/dist/esm/api/evaluationRules/options.js.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/esm/api/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/index.js +4 -0
- package/dist/esm/api/evaluationTaxonomies/index.js.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/esm/api/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/operations.js +154 -0
- package/dist/esm/api/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/esm/api/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/esm/api/evaluationTaxonomies/options.js +4 -0
- package/dist/esm/api/evaluationTaxonomies/options.js.map +1 -0
- package/dist/esm/api/evaluators/index.d.ts +3 -0
- package/dist/esm/api/evaluators/index.d.ts.map +1 -0
- package/dist/esm/api/evaluators/index.js +4 -0
- package/dist/esm/api/evaluators/index.js.map +1 -0
- package/dist/esm/api/evaluators/operations.d.ts +30 -0
- package/dist/esm/api/evaluators/operations.d.ts.map +1 -0
- package/dist/esm/api/evaluators/operations.js +171 -0
- package/dist/esm/api/evaluators/operations.js.map +1 -0
- package/dist/esm/api/evaluators/options.d.ts +29 -0
- package/dist/esm/api/evaluators/options.d.ts.map +1 -0
- package/dist/esm/api/evaluators/options.js +4 -0
- package/dist/esm/api/evaluators/options.js.map +1 -0
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +2 -0
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/indexes/operations.d.ts +3 -8
- package/dist/esm/api/indexes/operations.d.ts.map +1 -1
- package/dist/esm/api/indexes/operations.js +4 -16
- package/dist/esm/api/indexes/operations.js.map +1 -1
- package/dist/esm/api/insights/index.d.ts +3 -0
- package/dist/esm/api/insights/index.d.ts.map +1 -0
- package/dist/esm/api/insights/index.js +4 -0
- package/dist/esm/api/insights/index.js.map +1 -0
- package/dist/esm/api/insights/operations.d.ts +18 -0
- package/dist/esm/api/insights/operations.d.ts.map +1 -0
- package/dist/esm/api/insights/operations.js +109 -0
- package/dist/esm/api/insights/operations.js.map +1 -0
- package/dist/esm/api/insights/options.d.ts +32 -0
- package/dist/esm/api/insights/options.d.ts.map +1 -0
- package/dist/esm/api/insights/options.js +4 -0
- package/dist/esm/api/insights/options.js.map +1 -0
- package/dist/esm/api/memoryStores/index.d.ts +3 -0
- package/dist/esm/api/memoryStores/index.d.ts.map +1 -0
- package/dist/esm/api/memoryStores/index.js +4 -0
- package/dist/esm/api/memoryStores/index.js.map +1 -0
- package/dist/esm/api/memoryStores/operations.d.ts +43 -0
- package/dist/esm/api/memoryStores/operations.d.ts.map +1 -0
- package/dist/esm/api/memoryStores/operations.js +306 -0
- package/dist/esm/api/memoryStores/operations.js.map +1 -0
- package/dist/esm/api/memoryStores/options.d.ts +83 -0
- package/dist/esm/api/memoryStores/options.d.ts.map +1 -0
- package/dist/esm/api/memoryStores/options.js +4 -0
- package/dist/esm/api/memoryStores/options.js.map +1 -0
- package/dist/esm/api/redTeams/index.d.ts +3 -0
- package/dist/esm/api/redTeams/index.d.ts.map +1 -0
- package/dist/esm/api/redTeams/index.js +4 -0
- package/dist/esm/api/redTeams/index.js.map +1 -0
- package/dist/esm/api/redTeams/operations.d.ts +18 -0
- package/dist/esm/api/redTeams/operations.d.ts.map +1 -0
- package/dist/esm/api/redTeams/operations.js +93 -0
- package/dist/esm/api/redTeams/operations.js.map +1 -0
- package/dist/esm/api/redTeams/options.d.ts +15 -0
- package/dist/esm/api/redTeams/options.d.ts.map +1 -0
- package/dist/esm/api/redTeams/options.js +4 -0
- package/dist/esm/api/redTeams/options.js.map +1 -0
- package/dist/esm/api/schedules/index.d.ts +3 -0
- package/dist/esm/api/schedules/index.d.ts.map +1 -0
- package/dist/esm/api/schedules/index.js +4 -0
- package/dist/esm/api/schedules/index.js.map +1 -0
- package/dist/esm/api/schedules/operations.d.ts +30 -0
- package/dist/esm/api/schedules/operations.d.ts.map +1 -0
- package/dist/esm/api/schedules/operations.js +178 -0
- package/dist/esm/api/schedules/operations.js.map +1 -0
- package/dist/esm/api/schedules/options.d.ts +26 -0
- package/dist/esm/api/schedules/options.d.ts.map +1 -0
- package/dist/esm/api/schedules/options.js +4 -0
- package/dist/esm/api/schedules/options.js.map +1 -0
- package/dist/esm/classic/agents/index.d.ts +39 -0
- package/dist/esm/classic/agents/index.d.ts.map +1 -0
- package/dist/esm/classic/agents/index.js +43 -0
- package/dist/esm/classic/agents/index.js.map +1 -0
- package/dist/esm/classic/connections/index.d.ts +1 -1
- package/dist/esm/classic/connections/index.d.ts.map +1 -1
- package/dist/esm/classic/connections/index.js.map +1 -1
- package/dist/esm/classic/datasets/index.d.ts +4 -9
- package/dist/esm/classic/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/datasets/index.js +0 -1
- package/dist/esm/classic/datasets/index.js.map +1 -1
- package/dist/esm/classic/deployments/index.d.ts +1 -1
- package/dist/esm/classic/deployments/index.d.ts.map +1 -1
- package/dist/esm/classic/deployments/index.js.map +1 -1
- package/dist/esm/classic/evaluationRules/index.d.ts +17 -0
- package/dist/esm/classic/evaluationRules/index.d.ts.map +1 -0
- package/dist/esm/classic/evaluationRules/index.js +17 -0
- package/dist/esm/classic/evaluationRules/index.js.map +1 -0
- package/dist/esm/classic/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/esm/classic/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/esm/classic/evaluationTaxonomies/index.js +18 -0
- package/dist/esm/classic/evaluationTaxonomies/index.js.map +1 -0
- package/dist/esm/classic/evaluators/index.d.ts +21 -0
- package/dist/esm/classic/evaluators/index.d.ts.map +1 -0
- package/dist/esm/classic/evaluators/index.js +25 -0
- package/dist/esm/classic/evaluators/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +8 -1
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/indexes/index.d.ts +3 -8
- package/dist/esm/classic/indexes/index.d.ts.map +1 -1
- package/dist/esm/classic/indexes/index.js +0 -1
- package/dist/esm/classic/indexes/index.js.map +1 -1
- package/dist/esm/classic/insights/index.d.ts +15 -0
- package/dist/esm/classic/insights/index.d.ts.map +1 -0
- package/dist/esm/classic/insights/index.js +16 -0
- package/dist/esm/classic/insights/index.js.map +1 -0
- package/dist/esm/classic/memoryStores/index.d.ts +28 -0
- package/dist/esm/classic/memoryStores/index.d.ts.map +1 -0
- package/dist/esm/classic/memoryStores/index.js +22 -0
- package/dist/esm/classic/memoryStores/index.js.map +1 -0
- package/dist/esm/classic/redTeams/index.d.ts +15 -0
- package/dist/esm/classic/redTeams/index.d.ts.map +1 -0
- package/dist/esm/classic/redTeams/index.js +16 -0
- package/dist/esm/classic/redTeams/index.js.map +1 -0
- package/dist/esm/classic/schedules/index.d.ts +21 -0
- package/dist/esm/classic/schedules/index.d.ts.map +1 -0
- package/dist/esm/classic/schedules/index.js +19 -0
- package/dist/esm/classic/schedules/index.js.map +1 -0
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +11 -5
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -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 +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +3081 -24
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +3778 -266
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/overwriteOpenAIClient.d.ts +3 -0
- package/dist/esm/overwriteOpenAIClient.d.ts.map +1 -0
- package/dist/esm/overwriteOpenAIClient.js +14 -0
- package/dist/esm/overwriteOpenAIClient.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +24 -0
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -0
- package/dist/esm/restorePollerHelpers.js +91 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.js +79 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/esm/static-helpers/serialization/serialize-record.d.ts.map +1 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js +20 -0
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +22 -12
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/aiProjectClient.d.ts +39 -36
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +66 -57
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/agents/index.d.ts +3 -0
- package/dist/react-native/api/agents/index.d.ts.map +1 -0
- package/dist/react-native/api/agents/index.js +4 -0
- package/dist/react-native/api/agents/index.js.map +1 -0
- package/dist/react-native/api/agents/operations.d.ts +60 -0
- package/dist/react-native/api/agents/operations.d.ts.map +1 -0
- package/dist/react-native/api/agents/operations.js +412 -0
- package/dist/react-native/api/agents/operations.js.map +1 -0
- package/dist/react-native/api/agents/options.d.ts +151 -0
- package/dist/react-native/api/agents/options.d.ts.map +1 -0
- package/dist/react-native/api/agents/options.js +4 -0
- package/dist/react-native/api/agents/options.js.map +1 -0
- package/dist/react-native/api/aiProjectContext.d.ts +6 -13
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
- package/dist/react-native/api/aiProjectContext.js +10 -17
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/connections/index.d.ts +1 -1
- package/dist/react-native/api/connections/index.d.ts.map +1 -1
- package/dist/react-native/api/connections/index.js +1 -1
- package/dist/react-native/api/connections/index.js.map +1 -1
- package/dist/react-native/api/connections/operations.d.ts +1 -1
- package/dist/react-native/api/connections/operations.d.ts.map +1 -1
- package/dist/react-native/api/connections/operations.js +1 -1
- package/dist/react-native/api/connections/operations.js.map +1 -1
- package/dist/react-native/api/datasets/operations.d.ts +8 -13
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/datasets/operations.js +129 -141
- package/dist/react-native/api/datasets/operations.js.map +1 -1
- package/dist/react-native/api/deployments/operations.d.ts +1 -1
- package/dist/react-native/api/deployments/operations.d.ts.map +1 -1
- package/dist/react-native/api/deployments/operations.js +1 -1
- package/dist/react-native/api/deployments/operations.js.map +1 -1
- package/dist/react-native/api/evaluationRules/index.d.ts +3 -0
- package/dist/react-native/api/evaluationRules/index.d.ts.map +1 -0
- package/dist/react-native/api/evaluationRules/index.js +4 -0
- package/dist/react-native/api/evaluationRules/index.js.map +1 -0
- package/dist/react-native/api/evaluationRules/operations.d.ts +22 -0
- package/dist/react-native/api/evaluationRules/operations.d.ts.map +1 -0
- package/dist/react-native/api/evaluationRules/operations.js +126 -0
- package/dist/react-native/api/evaluationRules/operations.js.map +1 -0
- package/dist/react-native/api/evaluationRules/options.d.ts +27 -0
- package/dist/react-native/api/evaluationRules/options.d.ts.map +1 -0
- package/dist/react-native/api/evaluationRules/options.js +4 -0
- package/dist/react-native/api/evaluationRules/options.js.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/react-native/api/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/index.js +4 -0
- package/dist/react-native/api/evaluationTaxonomies/index.js.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/react-native/api/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/operations.js +154 -0
- package/dist/react-native/api/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/react-native/api/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/react-native/api/evaluationTaxonomies/options.js +4 -0
- package/dist/react-native/api/evaluationTaxonomies/options.js.map +1 -0
- package/dist/react-native/api/evaluators/index.d.ts +3 -0
- package/dist/react-native/api/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/index.js +4 -0
- package/dist/react-native/api/evaluators/index.js.map +1 -0
- package/dist/react-native/api/evaluators/operations.d.ts +30 -0
- package/dist/react-native/api/evaluators/operations.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/operations.js +171 -0
- package/dist/react-native/api/evaluators/operations.js.map +1 -0
- package/dist/react-native/api/evaluators/options.d.ts +29 -0
- package/dist/react-native/api/evaluators/options.d.ts.map +1 -0
- package/dist/react-native/api/evaluators/options.js +4 -0
- package/dist/react-native/api/evaluators/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +2 -0
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/indexes/operations.d.ts +3 -8
- package/dist/react-native/api/indexes/operations.d.ts.map +1 -1
- package/dist/react-native/api/indexes/operations.js +4 -16
- package/dist/react-native/api/indexes/operations.js.map +1 -1
- package/dist/react-native/api/insights/index.d.ts +3 -0
- package/dist/react-native/api/insights/index.d.ts.map +1 -0
- package/dist/react-native/api/insights/index.js +4 -0
- package/dist/react-native/api/insights/index.js.map +1 -0
- package/dist/react-native/api/insights/operations.d.ts +18 -0
- package/dist/react-native/api/insights/operations.d.ts.map +1 -0
- package/dist/react-native/api/insights/operations.js +109 -0
- package/dist/react-native/api/insights/operations.js.map +1 -0
- package/dist/react-native/api/insights/options.d.ts +32 -0
- package/dist/react-native/api/insights/options.d.ts.map +1 -0
- package/dist/react-native/api/insights/options.js +4 -0
- package/dist/react-native/api/insights/options.js.map +1 -0
- package/dist/react-native/api/memoryStores/index.d.ts +3 -0
- package/dist/react-native/api/memoryStores/index.d.ts.map +1 -0
- package/dist/react-native/api/memoryStores/index.js +4 -0
- package/dist/react-native/api/memoryStores/index.js.map +1 -0
- package/dist/react-native/api/memoryStores/operations.d.ts +43 -0
- package/dist/react-native/api/memoryStores/operations.d.ts.map +1 -0
- package/dist/react-native/api/memoryStores/operations.js +306 -0
- package/dist/react-native/api/memoryStores/operations.js.map +1 -0
- package/dist/react-native/api/memoryStores/options.d.ts +83 -0
- package/dist/react-native/api/memoryStores/options.d.ts.map +1 -0
- package/dist/react-native/api/memoryStores/options.js +4 -0
- package/dist/react-native/api/memoryStores/options.js.map +1 -0
- package/dist/react-native/api/redTeams/index.d.ts +3 -0
- package/dist/react-native/api/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/index.js +4 -0
- package/dist/react-native/api/redTeams/index.js.map +1 -0
- package/dist/react-native/api/redTeams/operations.d.ts +18 -0
- package/dist/react-native/api/redTeams/operations.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/operations.js +93 -0
- package/dist/react-native/api/redTeams/operations.js.map +1 -0
- package/dist/react-native/api/redTeams/options.d.ts +15 -0
- package/dist/react-native/api/redTeams/options.d.ts.map +1 -0
- package/dist/react-native/api/redTeams/options.js +4 -0
- package/dist/react-native/api/redTeams/options.js.map +1 -0
- package/dist/react-native/api/schedules/index.d.ts +3 -0
- package/dist/react-native/api/schedules/index.d.ts.map +1 -0
- package/dist/react-native/api/schedules/index.js +4 -0
- package/dist/react-native/api/schedules/index.js.map +1 -0
- package/dist/react-native/api/schedules/operations.d.ts +30 -0
- package/dist/react-native/api/schedules/operations.d.ts.map +1 -0
- package/dist/react-native/api/schedules/operations.js +178 -0
- package/dist/react-native/api/schedules/operations.js.map +1 -0
- package/dist/react-native/api/schedules/options.d.ts +26 -0
- package/dist/react-native/api/schedules/options.d.ts.map +1 -0
- package/dist/react-native/api/schedules/options.js +4 -0
- package/dist/react-native/api/schedules/options.js.map +1 -0
- package/dist/react-native/classic/agents/index.d.ts +39 -0
- package/dist/react-native/classic/agents/index.d.ts.map +1 -0
- package/dist/react-native/classic/agents/index.js +43 -0
- package/dist/react-native/classic/agents/index.js.map +1 -0
- package/dist/react-native/classic/connections/index.d.ts +1 -1
- package/dist/react-native/classic/connections/index.d.ts.map +1 -1
- package/dist/react-native/classic/connections/index.js.map +1 -1
- package/dist/react-native/classic/datasets/index.d.ts +4 -9
- package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/datasets/index.js +0 -1
- package/dist/react-native/classic/datasets/index.js.map +1 -1
- package/dist/react-native/classic/deployments/index.d.ts +1 -1
- package/dist/react-native/classic/deployments/index.d.ts.map +1 -1
- package/dist/react-native/classic/deployments/index.js.map +1 -1
- package/dist/react-native/classic/evaluationRules/index.d.ts +17 -0
- package/dist/react-native/classic/evaluationRules/index.d.ts.map +1 -0
- package/dist/react-native/classic/evaluationRules/index.js +17 -0
- package/dist/react-native/classic/evaluationRules/index.js.map +1 -0
- package/dist/react-native/classic/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/react-native/classic/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/react-native/classic/evaluationTaxonomies/index.js +18 -0
- package/dist/react-native/classic/evaluationTaxonomies/index.js.map +1 -0
- package/dist/react-native/classic/evaluators/index.d.ts +21 -0
- package/dist/react-native/classic/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/classic/evaluators/index.js +25 -0
- package/dist/react-native/classic/evaluators/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +8 -1
- package/dist/react-native/classic/index.d.ts.map +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/indexes/index.d.ts +3 -8
- package/dist/react-native/classic/indexes/index.d.ts.map +1 -1
- package/dist/react-native/classic/indexes/index.js +0 -1
- package/dist/react-native/classic/indexes/index.js.map +1 -1
- package/dist/react-native/classic/insights/index.d.ts +15 -0
- package/dist/react-native/classic/insights/index.d.ts.map +1 -0
- package/dist/react-native/classic/insights/index.js +16 -0
- package/dist/react-native/classic/insights/index.js.map +1 -0
- package/dist/react-native/classic/memoryStores/index.d.ts +28 -0
- package/dist/react-native/classic/memoryStores/index.d.ts.map +1 -0
- package/dist/react-native/classic/memoryStores/index.js +22 -0
- package/dist/react-native/classic/memoryStores/index.js.map +1 -0
- package/dist/react-native/classic/redTeams/index.d.ts +15 -0
- package/dist/react-native/classic/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/classic/redTeams/index.js +16 -0
- package/dist/react-native/classic/redTeams/index.js.map +1 -0
- package/dist/react-native/classic/schedules/index.d.ts +21 -0
- package/dist/react-native/classic/schedules/index.d.ts.map +1 -0
- package/dist/react-native/classic/schedules/index.js +19 -0
- package/dist/react-native/classic/schedules/index.js.map +1 -0
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.d.ts.map +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 +11 -5
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -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 +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +3081 -24
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +3778 -266
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/overwriteOpenAIClient.d.ts +3 -0
- package/dist/react-native/overwriteOpenAIClient.d.ts.map +1 -0
- package/dist/react-native/overwriteOpenAIClient.js +14 -0
- package/dist/react-native/overwriteOpenAIClient.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +24 -0
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -0
- package/dist/react-native/restorePollerHelpers.js +91 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.d.ts +2 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.d.ts.map +1 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js +20 -0
- package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +22 -12
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +22 -22
- package/dist/browser/api/inference/operations.d.ts +0 -19
- package/dist/browser/api/inference/operations.d.ts.map +0 -1
- package/dist/browser/api/inference/operations.js +0 -96
- package/dist/browser/api/inference/operations.js.map +0 -1
- package/dist/browser/api/inference/options.d.ts +0 -21
- package/dist/browser/api/inference/options.d.ts.map +0 -1
- package/dist/browser/api/inference/options.js.map +0 -1
- package/dist/browser/api/telemetry/index.d.ts +0 -2
- package/dist/browser/api/telemetry/index.d.ts.map +0 -1
- package/dist/browser/api/telemetry/index.js +0 -4
- package/dist/browser/api/telemetry/index.js.map +0 -1
- package/dist/browser/api/telemetry/operations.d.ts +0 -22
- package/dist/browser/api/telemetry/operations.d.ts.map +0 -1
- package/dist/browser/api/telemetry/operations.js +0 -55
- package/dist/browser/api/telemetry/operations.js.map +0 -1
- package/dist/browser/classic/inference/index.d.ts +0 -11
- package/dist/browser/classic/inference/index.d.ts.map +0 -1
- package/dist/browser/classic/inference/index.js +0 -14
- package/dist/browser/classic/inference/index.js.map +0 -1
- package/dist/browser/classic/telemetry/index.d.ts +0 -8
- package/dist/browser/classic/telemetry/index.d.ts.map +0 -1
- package/dist/browser/classic/telemetry/index.js +0 -13
- package/dist/browser/classic/telemetry/index.js.map +0 -1
- package/dist/commonjs/api/inference/operations.d.ts +0 -19
- package/dist/commonjs/api/inference/operations.d.ts.map +0 -1
- package/dist/commonjs/api/inference/operations.js +0 -99
- package/dist/commonjs/api/inference/operations.js.map +0 -1
- package/dist/commonjs/api/inference/options.d.ts +0 -21
- package/dist/commonjs/api/inference/options.d.ts.map +0 -1
- package/dist/commonjs/api/inference/options.js.map +0 -1
- package/dist/commonjs/api/telemetry/index.d.ts +0 -2
- package/dist/commonjs/api/telemetry/index.d.ts.map +0 -1
- package/dist/commonjs/api/telemetry/index.js +0 -8
- package/dist/commonjs/api/telemetry/index.js.map +0 -1
- package/dist/commonjs/api/telemetry/operations.d.ts +0 -22
- package/dist/commonjs/api/telemetry/operations.d.ts.map +0 -1
- package/dist/commonjs/api/telemetry/operations.js +0 -58
- package/dist/commonjs/api/telemetry/operations.js.map +0 -1
- package/dist/commonjs/classic/inference/index.d.ts +0 -11
- package/dist/commonjs/classic/inference/index.d.ts.map +0 -1
- package/dist/commonjs/classic/inference/index.js +0 -17
- package/dist/commonjs/classic/inference/index.js.map +0 -1
- package/dist/commonjs/classic/telemetry/index.d.ts +0 -8
- package/dist/commonjs/classic/telemetry/index.d.ts.map +0 -1
- package/dist/commonjs/classic/telemetry/index.js +0 -16
- package/dist/commonjs/classic/telemetry/index.js.map +0 -1
- package/dist/esm/api/inference/operations.d.ts +0 -19
- package/dist/esm/api/inference/operations.d.ts.map +0 -1
- package/dist/esm/api/inference/operations.js +0 -96
- package/dist/esm/api/inference/operations.js.map +0 -1
- package/dist/esm/api/inference/options.d.ts +0 -21
- package/dist/esm/api/inference/options.d.ts.map +0 -1
- package/dist/esm/api/inference/options.js.map +0 -1
- package/dist/esm/api/telemetry/index.d.ts +0 -2
- package/dist/esm/api/telemetry/index.d.ts.map +0 -1
- package/dist/esm/api/telemetry/index.js +0 -4
- package/dist/esm/api/telemetry/index.js.map +0 -1
- package/dist/esm/api/telemetry/operations.d.ts +0 -22
- package/dist/esm/api/telemetry/operations.d.ts.map +0 -1
- package/dist/esm/api/telemetry/operations.js +0 -55
- package/dist/esm/api/telemetry/operations.js.map +0 -1
- package/dist/esm/classic/inference/index.d.ts +0 -11
- package/dist/esm/classic/inference/index.d.ts.map +0 -1
- package/dist/esm/classic/inference/index.js +0 -14
- package/dist/esm/classic/inference/index.js.map +0 -1
- package/dist/esm/classic/telemetry/index.d.ts +0 -8
- package/dist/esm/classic/telemetry/index.d.ts.map +0 -1
- package/dist/esm/classic/telemetry/index.js +0 -13
- package/dist/esm/classic/telemetry/index.js.map +0 -1
- package/dist/react-native/api/inference/operations.d.ts +0 -19
- package/dist/react-native/api/inference/operations.d.ts.map +0 -1
- package/dist/react-native/api/inference/operations.js +0 -96
- package/dist/react-native/api/inference/operations.js.map +0 -1
- package/dist/react-native/api/inference/options.d.ts +0 -21
- package/dist/react-native/api/inference/options.d.ts.map +0 -1
- package/dist/react-native/api/inference/options.js.map +0 -1
- package/dist/react-native/api/telemetry/index.d.ts +0 -2
- package/dist/react-native/api/telemetry/index.d.ts.map +0 -1
- package/dist/react-native/api/telemetry/index.js +0 -4
- package/dist/react-native/api/telemetry/index.js.map +0 -1
- package/dist/react-native/api/telemetry/operations.d.ts +0 -22
- package/dist/react-native/api/telemetry/operations.d.ts.map +0 -1
- package/dist/react-native/api/telemetry/operations.js +0 -55
- package/dist/react-native/api/telemetry/operations.js.map +0 -1
- package/dist/react-native/classic/inference/index.d.ts +0 -11
- package/dist/react-native/classic/inference/index.d.ts.map +0 -1
- package/dist/react-native/classic/inference/index.js +0 -14
- package/dist/react-native/classic/inference/index.js.map +0 -1
- package/dist/react-native/classic/telemetry/index.d.ts +0 -8
- package/dist/react-native/classic/telemetry/index.d.ts.map +0 -1
- package/dist/react-native/classic/telemetry/index.js +0 -13
- package/dist/react-native/classic/telemetry/index.js.map +0 -1
- /package/dist/browser/api/{inference → agents}/options.js +0 -0
- /package/dist/{esm/api/inference → browser/api/evaluationRules}/options.js +0 -0
- /package/dist/{react-native/api/inference → browser/api/evaluationTaxonomies}/options.js +0 -0
- /package/dist/commonjs/api/{inference → agents}/options.js +0 -0
|
@@ -2,448 +2,3960 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
4
4
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
-
|
|
5
|
+
/* eslint-disable tsdoc/syntax */
|
|
6
|
+
import { serializeRecord } from "../static-helpers/serialization/serialize-record.js";
|
|
7
|
+
export function agentObjectDeserializer(item) {
|
|
6
8
|
return {
|
|
7
|
-
|
|
9
|
+
object: item["object"],
|
|
8
10
|
id: item["id"],
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
metadata: item["metadata"],
|
|
12
|
-
isDefault: item["isDefault"],
|
|
13
|
-
credentials: item["credentials"]
|
|
14
|
-
? baseCredentialsUnionDeserializer(item["credentials"])
|
|
15
|
-
: { type: "None" },
|
|
11
|
+
name: item["name"],
|
|
12
|
+
versions: _agentObjectVersionsDeserializer(item["versions"]),
|
|
16
13
|
};
|
|
17
14
|
}
|
|
18
|
-
export function
|
|
15
|
+
export function _agentObjectVersionsDeserializer(item) {
|
|
19
16
|
return {
|
|
20
|
-
|
|
17
|
+
latest: agentVersionObjectDeserializer(item["latest"]),
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
|
-
export function
|
|
24
|
-
switch (item.type) {
|
|
25
|
-
case "ApiKey":
|
|
26
|
-
return apiKeyCredentialsDeserializer(item);
|
|
27
|
-
case "AAD":
|
|
28
|
-
return entraIDCredentialsDeserializer(item);
|
|
29
|
-
case "CustomKeys":
|
|
30
|
-
return customCredentialDeserializer(item);
|
|
31
|
-
case "SAS":
|
|
32
|
-
return sasCredentialsDeserializer(item);
|
|
33
|
-
case "None":
|
|
34
|
-
return noAuthenticationCredentialsDeserializer(item);
|
|
35
|
-
default:
|
|
36
|
-
return baseCredentialsDeserializer(item);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
export function apiKeyCredentialsDeserializer(item) {
|
|
20
|
+
export function agentVersionObjectDeserializer(item) {
|
|
40
21
|
return {
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
metadata: item["metadata"],
|
|
23
|
+
object: item["object"],
|
|
24
|
+
id: item["id"],
|
|
25
|
+
name: item["name"],
|
|
26
|
+
version: item["version"],
|
|
27
|
+
description: item["description"],
|
|
28
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
29
|
+
definition: agentDefinitionUnionDeserializer(item["definition"]),
|
|
43
30
|
};
|
|
44
31
|
}
|
|
45
|
-
export function
|
|
32
|
+
export function agentDefinitionSerializer(item) {
|
|
46
33
|
return {
|
|
47
|
-
|
|
34
|
+
kind: item["kind"],
|
|
35
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
48
36
|
};
|
|
49
37
|
}
|
|
50
|
-
export function
|
|
38
|
+
export function agentDefinitionDeserializer(item) {
|
|
51
39
|
return {
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
kind: item["kind"],
|
|
41
|
+
rai_config: !item["rai_config"]
|
|
42
|
+
? item["rai_config"]
|
|
43
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
54
44
|
};
|
|
55
45
|
}
|
|
56
|
-
export function
|
|
46
|
+
export function agentDefinitionUnionSerializer(item) {
|
|
47
|
+
switch (item.kind) {
|
|
48
|
+
case "workflow":
|
|
49
|
+
return workflowAgentDefinitionSerializer(item);
|
|
50
|
+
case "hosted":
|
|
51
|
+
return hostedAgentDefinitionUnionSerializer(item);
|
|
52
|
+
case "container_app":
|
|
53
|
+
return containerAppAgentDefinitionSerializer(item);
|
|
54
|
+
case "prompt":
|
|
55
|
+
return promptAgentDefinitionSerializer(item);
|
|
56
|
+
default:
|
|
57
|
+
return agentDefinitionSerializer(item);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export function agentDefinitionUnionDeserializer(item) {
|
|
61
|
+
switch (item.kind) {
|
|
62
|
+
case "workflow":
|
|
63
|
+
return workflowAgentDefinitionDeserializer(item);
|
|
64
|
+
case "hosted":
|
|
65
|
+
return hostedAgentDefinitionUnionDeserializer(item);
|
|
66
|
+
case "container_app":
|
|
67
|
+
return containerAppAgentDefinitionDeserializer(item);
|
|
68
|
+
case "prompt":
|
|
69
|
+
return promptAgentDefinitionDeserializer(item);
|
|
70
|
+
default:
|
|
71
|
+
return agentDefinitionDeserializer(item);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export function raiConfigSerializer(item) {
|
|
75
|
+
return { rai_policy_name: item["rai_policy_name"] };
|
|
76
|
+
}
|
|
77
|
+
export function raiConfigDeserializer(item) {
|
|
57
78
|
return {
|
|
58
|
-
|
|
59
|
-
sasToken: item["SAS"],
|
|
79
|
+
rai_policy_name: item["rai_policy_name"],
|
|
60
80
|
};
|
|
61
81
|
}
|
|
62
|
-
export function
|
|
82
|
+
export function workflowAgentDefinitionSerializer(item) {
|
|
63
83
|
return {
|
|
64
|
-
|
|
84
|
+
kind: item["kind"],
|
|
85
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
86
|
+
workflow: item["workflow"],
|
|
65
87
|
};
|
|
66
88
|
}
|
|
67
|
-
export function
|
|
89
|
+
export function workflowAgentDefinitionDeserializer(item) {
|
|
68
90
|
return {
|
|
69
|
-
|
|
70
|
-
|
|
91
|
+
kind: item["kind"],
|
|
92
|
+
rai_config: !item["rai_config"]
|
|
93
|
+
? item["rai_config"]
|
|
94
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
95
|
+
workflow: item["workflow"],
|
|
71
96
|
};
|
|
72
97
|
}
|
|
73
|
-
export function
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
|
|
98
|
+
export function hostedAgentDefinitionSerializer(item) {
|
|
99
|
+
return {
|
|
100
|
+
kind: item["kind"],
|
|
101
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
102
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
103
|
+
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
104
|
+
cpu: item["cpu"],
|
|
105
|
+
memory: item["memory"],
|
|
106
|
+
environment_variables: item["environment_variables"],
|
|
107
|
+
};
|
|
77
108
|
}
|
|
78
|
-
export function
|
|
109
|
+
export function hostedAgentDefinitionDeserializer(item) {
|
|
79
110
|
return {
|
|
80
|
-
|
|
81
|
-
|
|
111
|
+
kind: item["kind"],
|
|
112
|
+
rai_config: !item["rai_config"]
|
|
113
|
+
? item["rai_config"]
|
|
114
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
115
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
116
|
+
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
117
|
+
cpu: item["cpu"],
|
|
118
|
+
memory: item["memory"],
|
|
119
|
+
environment_variables: item["environment_variables"],
|
|
82
120
|
};
|
|
83
121
|
}
|
|
84
|
-
export function
|
|
122
|
+
export function hostedAgentDefinitionUnionSerializer(item) {
|
|
123
|
+
switch (item.kind) {
|
|
124
|
+
case "hosted":
|
|
125
|
+
return imageBasedHostedAgentDefinitionSerializer(item);
|
|
126
|
+
default:
|
|
127
|
+
return hostedAgentDefinitionSerializer(item);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
export function hostedAgentDefinitionUnionDeserializer(item) {
|
|
131
|
+
switch (item.kind) {
|
|
132
|
+
case "hosted":
|
|
133
|
+
return imageBasedHostedAgentDefinitionDeserializer(item);
|
|
134
|
+
default:
|
|
135
|
+
return hostedAgentDefinitionDeserializer(item);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export function toolUnionArraySerializer(result) {
|
|
85
139
|
return result.map((item) => {
|
|
86
|
-
return
|
|
140
|
+
return toolUnionSerializer(item);
|
|
87
141
|
});
|
|
88
142
|
}
|
|
89
|
-
export function
|
|
143
|
+
export function toolUnionArrayDeserializer(result) {
|
|
90
144
|
return result.map((item) => {
|
|
91
|
-
return
|
|
145
|
+
return toolUnionDeserializer(item);
|
|
92
146
|
});
|
|
93
147
|
}
|
|
94
|
-
export function
|
|
95
|
-
return {
|
|
96
|
-
dataUri: item["dataUri"],
|
|
97
|
-
type: item["type"],
|
|
98
|
-
connectionName: item["connectionName"],
|
|
99
|
-
description: item["description"],
|
|
100
|
-
tags: item["tags"],
|
|
101
|
-
};
|
|
148
|
+
export function toolSerializer(item) {
|
|
149
|
+
return { type: item["type"] };
|
|
102
150
|
}
|
|
103
|
-
export function
|
|
151
|
+
export function toolDeserializer(item) {
|
|
104
152
|
return {
|
|
105
|
-
dataUri: item["dataUri"],
|
|
106
153
|
type: item["type"],
|
|
107
|
-
isReference: item["isReference"],
|
|
108
|
-
connectionName: item["connectionName"],
|
|
109
|
-
id: item["id"],
|
|
110
|
-
name: item["name"],
|
|
111
|
-
version: item["version"],
|
|
112
|
-
description: item["description"],
|
|
113
|
-
tags: item["tags"],
|
|
114
154
|
};
|
|
115
155
|
}
|
|
116
|
-
export function
|
|
156
|
+
export function toolUnionSerializer(item) {
|
|
117
157
|
switch (item.type) {
|
|
118
|
-
case "
|
|
119
|
-
return
|
|
120
|
-
case "
|
|
121
|
-
return
|
|
158
|
+
case "function":
|
|
159
|
+
return functionToolSerializer(item);
|
|
160
|
+
case "file_search":
|
|
161
|
+
return fileSearchToolSerializer(item);
|
|
162
|
+
case "computer_use_preview":
|
|
163
|
+
return computerUsePreviewToolSerializer(item);
|
|
164
|
+
case "web_search_preview":
|
|
165
|
+
return webSearchPreviewToolSerializer(item);
|
|
166
|
+
case "code_interpreter":
|
|
167
|
+
return codeInterpreterToolSerializer(item);
|
|
168
|
+
case "image_generation":
|
|
169
|
+
return imageGenToolSerializer(item);
|
|
170
|
+
case "local_shell":
|
|
171
|
+
return localShellToolSerializer(item);
|
|
172
|
+
case "mcp":
|
|
173
|
+
return mcpToolSerializer(item);
|
|
174
|
+
case "bing_grounding":
|
|
175
|
+
return bingGroundingAgentToolSerializer(item);
|
|
176
|
+
case "fabric_dataagent_preview":
|
|
177
|
+
return microsoftFabricAgentToolSerializer(item);
|
|
178
|
+
case "sharepoint_grounding_preview":
|
|
179
|
+
return sharepointAgentToolSerializer(item);
|
|
180
|
+
case "azure_ai_search":
|
|
181
|
+
return azureAISearchAgentToolSerializer(item);
|
|
182
|
+
case "openapi":
|
|
183
|
+
return openApiAgentToolSerializer(item);
|
|
184
|
+
case "bing_custom_search_preview":
|
|
185
|
+
return bingCustomSearchAgentToolSerializer(item);
|
|
186
|
+
case "browser_automation_preview":
|
|
187
|
+
return browserAutomationAgentToolSerializer(item);
|
|
188
|
+
case "azure_function":
|
|
189
|
+
return azureFunctionAgentToolSerializer(item);
|
|
190
|
+
case "capture_structured_outputs":
|
|
191
|
+
return captureStructuredOutputsToolSerializer(item);
|
|
192
|
+
case "a2a_preview":
|
|
193
|
+
return a2AToolSerializer(item);
|
|
194
|
+
case "memory_search":
|
|
195
|
+
return memorySearchToolSerializer(item);
|
|
122
196
|
default:
|
|
123
|
-
return
|
|
197
|
+
return toolSerializer(item);
|
|
124
198
|
}
|
|
125
199
|
}
|
|
126
|
-
export function
|
|
200
|
+
export function toolUnionDeserializer(item) {
|
|
127
201
|
switch (item.type) {
|
|
128
|
-
case "
|
|
129
|
-
return
|
|
130
|
-
case "
|
|
131
|
-
return
|
|
202
|
+
case "function":
|
|
203
|
+
return functionToolDeserializer(item);
|
|
204
|
+
case "file_search":
|
|
205
|
+
return fileSearchToolDeserializer(item);
|
|
206
|
+
case "computer_use_preview":
|
|
207
|
+
return computerUsePreviewToolDeserializer(item);
|
|
208
|
+
case "web_search_preview":
|
|
209
|
+
return webSearchPreviewToolDeserializer(item);
|
|
210
|
+
case "code_interpreter":
|
|
211
|
+
return codeInterpreterToolDeserializer(item);
|
|
212
|
+
case "image_generation":
|
|
213
|
+
return imageGenToolDeserializer(item);
|
|
214
|
+
case "local_shell":
|
|
215
|
+
return localShellToolDeserializer(item);
|
|
216
|
+
case "mcp":
|
|
217
|
+
return mcpToolDeserializer(item);
|
|
218
|
+
case "bing_grounding":
|
|
219
|
+
return bingGroundingAgentToolDeserializer(item);
|
|
220
|
+
case "fabric_dataagent_preview":
|
|
221
|
+
return microsoftFabricAgentToolDeserializer(item);
|
|
222
|
+
case "sharepoint_grounding_preview":
|
|
223
|
+
return sharepointAgentToolDeserializer(item);
|
|
224
|
+
case "azure_ai_search":
|
|
225
|
+
return azureAISearchAgentToolDeserializer(item);
|
|
226
|
+
case "openapi":
|
|
227
|
+
return openApiAgentToolDeserializer(item);
|
|
228
|
+
case "bing_custom_search_preview":
|
|
229
|
+
return bingCustomSearchAgentToolDeserializer(item);
|
|
230
|
+
case "browser_automation_preview":
|
|
231
|
+
return browserAutomationAgentToolDeserializer(item);
|
|
232
|
+
case "azure_function":
|
|
233
|
+
return azureFunctionAgentToolDeserializer(item);
|
|
234
|
+
case "capture_structured_outputs":
|
|
235
|
+
return captureStructuredOutputsToolDeserializer(item);
|
|
236
|
+
case "a2a_preview":
|
|
237
|
+
return a2AToolDeserializer(item);
|
|
238
|
+
case "memory_search":
|
|
239
|
+
return memorySearchToolDeserializer(item);
|
|
132
240
|
default:
|
|
133
|
-
return
|
|
241
|
+
return toolDeserializer(item);
|
|
134
242
|
}
|
|
135
243
|
}
|
|
136
|
-
export function
|
|
244
|
+
export function functionToolSerializer(item) {
|
|
137
245
|
return {
|
|
138
|
-
dataUri: item["dataUri"],
|
|
139
246
|
type: item["type"],
|
|
140
|
-
|
|
247
|
+
name: item["name"],
|
|
141
248
|
description: item["description"],
|
|
142
|
-
|
|
249
|
+
parameters: item["parameters"],
|
|
250
|
+
strict: item["strict"],
|
|
143
251
|
};
|
|
144
252
|
}
|
|
145
|
-
export function
|
|
253
|
+
export function functionToolDeserializer(item) {
|
|
146
254
|
return {
|
|
147
|
-
dataUri: item["dataUri"],
|
|
148
255
|
type: item["type"],
|
|
149
|
-
isReference: item["isReference"],
|
|
150
|
-
connectionName: item["connectionName"],
|
|
151
|
-
id: item["id"],
|
|
152
256
|
name: item["name"],
|
|
153
|
-
version: item["version"],
|
|
154
257
|
description: item["description"],
|
|
155
|
-
|
|
258
|
+
parameters: item["parameters"],
|
|
259
|
+
strict: item["strict"],
|
|
156
260
|
};
|
|
157
261
|
}
|
|
158
|
-
export function
|
|
262
|
+
export function fileSearchToolSerializer(item) {
|
|
159
263
|
return {
|
|
160
|
-
dataUri: item["dataUri"],
|
|
161
264
|
type: item["type"],
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
265
|
+
vector_store_ids: item["vector_store_ids"].map((p) => {
|
|
266
|
+
return p;
|
|
267
|
+
}),
|
|
268
|
+
max_num_results: item["max_num_results"],
|
|
269
|
+
ranking_options: !item["ranking_options"]
|
|
270
|
+
? item["ranking_options"]
|
|
271
|
+
: rankingOptionsSerializer(item["ranking_options"]),
|
|
272
|
+
filters: !item["filters"] ? item["filters"] : filtersSerializer(item["filters"]),
|
|
165
273
|
};
|
|
166
274
|
}
|
|
167
|
-
export function
|
|
275
|
+
export function fileSearchToolDeserializer(item) {
|
|
168
276
|
return {
|
|
169
|
-
dataUri: item["dataUri"],
|
|
170
277
|
type: item["type"],
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
278
|
+
vector_store_ids: item["vector_store_ids"].map((p) => {
|
|
279
|
+
return p;
|
|
280
|
+
}),
|
|
281
|
+
max_num_results: item["max_num_results"],
|
|
282
|
+
ranking_options: !item["ranking_options"]
|
|
283
|
+
? item["ranking_options"]
|
|
284
|
+
: rankingOptionsDeserializer(item["ranking_options"]),
|
|
285
|
+
filters: !item["filters"] ? item["filters"] : filtersDeserializer(item["filters"]),
|
|
178
286
|
};
|
|
179
287
|
}
|
|
180
|
-
export function
|
|
181
|
-
return {
|
|
182
|
-
pendingUploadId: item["pendingUploadId"],
|
|
183
|
-
connectionName: item["connectionName"],
|
|
184
|
-
pendingUploadType: item["pendingUploadType"],
|
|
185
|
-
};
|
|
288
|
+
export function rankingOptionsSerializer(item) {
|
|
289
|
+
return { ranker: item["ranker"], score_threshold: item["score_threshold"] };
|
|
186
290
|
}
|
|
187
|
-
export function
|
|
291
|
+
export function rankingOptionsDeserializer(item) {
|
|
188
292
|
return {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
version: item["version"],
|
|
192
|
-
pendingUploadType: item["pendingUploadType"],
|
|
293
|
+
ranker: item["ranker"],
|
|
294
|
+
score_threshold: item["score_threshold"],
|
|
193
295
|
};
|
|
194
296
|
}
|
|
195
|
-
export function
|
|
297
|
+
export function filtersSerializer(item) {
|
|
298
|
+
return item;
|
|
299
|
+
}
|
|
300
|
+
export function filtersDeserializer(item) {
|
|
301
|
+
return item;
|
|
302
|
+
}
|
|
303
|
+
export function comparisonFilterSerializer(item) {
|
|
196
304
|
return {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
305
|
+
type: item["type"],
|
|
306
|
+
key: item["key"],
|
|
307
|
+
value: _comparisonFilterValueSerializer(item["value"]),
|
|
200
308
|
};
|
|
201
309
|
}
|
|
202
|
-
export function
|
|
310
|
+
export function comparisonFilterDeserializer(item) {
|
|
203
311
|
return {
|
|
204
|
-
sasUri: item["sasUri"],
|
|
205
312
|
type: item["type"],
|
|
313
|
+
key: item["key"],
|
|
314
|
+
value: _comparisonFilterValueDeserializer(item["value"]),
|
|
206
315
|
};
|
|
207
316
|
}
|
|
208
|
-
export function
|
|
317
|
+
export function _comparisonFilterValueSerializer(item) {
|
|
318
|
+
return item;
|
|
319
|
+
}
|
|
320
|
+
export function _comparisonFilterValueDeserializer(item) {
|
|
321
|
+
return item;
|
|
322
|
+
}
|
|
323
|
+
export function compoundFilterSerializer(item) {
|
|
209
324
|
return {
|
|
210
|
-
|
|
325
|
+
type: item["type"],
|
|
326
|
+
filters: _compoundFilterFilterArraySerializer(item["filters"]),
|
|
211
327
|
};
|
|
212
328
|
}
|
|
213
|
-
export function
|
|
329
|
+
export function compoundFilterDeserializer(item) {
|
|
214
330
|
return {
|
|
215
|
-
|
|
216
|
-
|
|
331
|
+
type: item["type"],
|
|
332
|
+
filters: _compoundFilterFilterArrayDeserializer(item["filters"]),
|
|
217
333
|
};
|
|
218
334
|
}
|
|
219
|
-
export function
|
|
335
|
+
export function _compoundFilterFilterArraySerializer(result) {
|
|
220
336
|
return result.map((item) => {
|
|
221
|
-
return
|
|
337
|
+
return _compoundFilterFilterSerializer(item);
|
|
222
338
|
});
|
|
223
339
|
}
|
|
224
|
-
export function
|
|
340
|
+
export function _compoundFilterFilterArrayDeserializer(result) {
|
|
225
341
|
return result.map((item) => {
|
|
226
|
-
return
|
|
342
|
+
return _compoundFilterFilterDeserializer(item);
|
|
227
343
|
});
|
|
228
344
|
}
|
|
229
|
-
export function
|
|
345
|
+
export function _compoundFilterFilterSerializer(item) {
|
|
346
|
+
return item;
|
|
347
|
+
}
|
|
348
|
+
export function _compoundFilterFilterDeserializer(item) {
|
|
349
|
+
return item;
|
|
350
|
+
}
|
|
351
|
+
export function computerUsePreviewToolSerializer(item) {
|
|
230
352
|
return {
|
|
231
353
|
type: item["type"],
|
|
232
|
-
|
|
233
|
-
|
|
354
|
+
environment: item["environment"],
|
|
355
|
+
display_width: item["display_width"],
|
|
356
|
+
display_height: item["display_height"],
|
|
234
357
|
};
|
|
235
358
|
}
|
|
236
|
-
export function
|
|
359
|
+
export function computerUsePreviewToolDeserializer(item) {
|
|
237
360
|
return {
|
|
238
361
|
type: item["type"],
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
description: item["description"],
|
|
243
|
-
tags: item["tags"],
|
|
362
|
+
environment: item["environment"],
|
|
363
|
+
display_width: item["display_width"],
|
|
364
|
+
display_height: item["display_height"],
|
|
244
365
|
};
|
|
245
366
|
}
|
|
246
|
-
export function
|
|
367
|
+
export function webSearchPreviewToolSerializer(item) {
|
|
368
|
+
return {
|
|
369
|
+
type: item["type"],
|
|
370
|
+
user_location: !item["user_location"]
|
|
371
|
+
? item["user_location"]
|
|
372
|
+
: locationUnionSerializer(item["user_location"]),
|
|
373
|
+
search_context_size: item["search_context_size"],
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
export function webSearchPreviewToolDeserializer(item) {
|
|
377
|
+
return {
|
|
378
|
+
type: item["type"],
|
|
379
|
+
user_location: !item["user_location"]
|
|
380
|
+
? item["user_location"]
|
|
381
|
+
: locationUnionDeserializer(item["user_location"]),
|
|
382
|
+
search_context_size: item["search_context_size"],
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
export function locationSerializer(item) {
|
|
386
|
+
return { type: item["type"] };
|
|
387
|
+
}
|
|
388
|
+
export function locationDeserializer(item) {
|
|
389
|
+
return {
|
|
390
|
+
type: item["type"],
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
export function locationUnionSerializer(item) {
|
|
247
394
|
switch (item.type) {
|
|
248
|
-
case "
|
|
249
|
-
return
|
|
250
|
-
case "ManagedAzureSearch":
|
|
251
|
-
return managedAzureAISearchIndexSerializer(item);
|
|
252
|
-
case "CosmosDBNoSqlVectorStore":
|
|
253
|
-
return cosmosDBIndexSerializer(item);
|
|
395
|
+
case "approximate":
|
|
396
|
+
return approximateLocationSerializer(item);
|
|
254
397
|
default:
|
|
255
|
-
return
|
|
398
|
+
return locationSerializer(item);
|
|
256
399
|
}
|
|
257
400
|
}
|
|
258
|
-
export function
|
|
401
|
+
export function locationUnionDeserializer(item) {
|
|
259
402
|
switch (item.type) {
|
|
260
|
-
case "
|
|
261
|
-
return
|
|
262
|
-
case "ManagedAzureSearch":
|
|
263
|
-
return managedAzureAISearchIndexDeserializer(item);
|
|
264
|
-
case "CosmosDBNoSqlVectorStore":
|
|
265
|
-
return cosmosDBIndexDeserializer(item);
|
|
403
|
+
case "approximate":
|
|
404
|
+
return approximateLocationDeserializer(item);
|
|
266
405
|
default:
|
|
267
|
-
return
|
|
406
|
+
return locationDeserializer(item);
|
|
268
407
|
}
|
|
269
408
|
}
|
|
270
|
-
export function
|
|
409
|
+
export function approximateLocationSerializer(item) {
|
|
271
410
|
return {
|
|
272
411
|
type: item["type"],
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
fieldMapping: !item["fieldMapping"]
|
|
278
|
-
? item["fieldMapping"]
|
|
279
|
-
: fieldMappingSerializer(item["fieldMapping"]),
|
|
412
|
+
country: item["country"],
|
|
413
|
+
region: item["region"],
|
|
414
|
+
city: item["city"],
|
|
415
|
+
timezone: item["timezone"],
|
|
280
416
|
};
|
|
281
417
|
}
|
|
282
|
-
export function
|
|
418
|
+
export function approximateLocationDeserializer(item) {
|
|
283
419
|
return {
|
|
284
420
|
type: item["type"],
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
tags: item["tags"],
|
|
290
|
-
connectionName: item["connectionName"],
|
|
291
|
-
indexName: item["indexName"],
|
|
292
|
-
fieldMapping: !item["fieldMapping"]
|
|
293
|
-
? item["fieldMapping"]
|
|
294
|
-
: fieldMappingDeserializer(item["fieldMapping"]),
|
|
421
|
+
country: item["country"],
|
|
422
|
+
region: item["region"],
|
|
423
|
+
city: item["city"],
|
|
424
|
+
timezone: item["timezone"],
|
|
295
425
|
};
|
|
296
426
|
}
|
|
297
|
-
export function
|
|
427
|
+
export function codeInterpreterToolSerializer(item) {
|
|
298
428
|
return {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
429
|
+
type: item["type"],
|
|
430
|
+
container: _codeInterpreterToolContainerSerializer(item["container"]),
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
export function codeInterpreterToolDeserializer(item) {
|
|
434
|
+
return {
|
|
435
|
+
type: item["type"],
|
|
436
|
+
container: _codeInterpreterToolContainerDeserializer(item["container"]),
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
export function _codeInterpreterToolContainerSerializer(item) {
|
|
440
|
+
return item;
|
|
441
|
+
}
|
|
442
|
+
export function _codeInterpreterToolContainerDeserializer(item) {
|
|
443
|
+
return item;
|
|
444
|
+
}
|
|
445
|
+
export function codeInterpreterToolAutoSerializer(item) {
|
|
446
|
+
return {
|
|
447
|
+
type: item["type"],
|
|
448
|
+
file_ids: !item["file_ids"]
|
|
449
|
+
? item["file_ids"]
|
|
450
|
+
: item["file_ids"].map((p) => {
|
|
313
451
|
return p;
|
|
314
452
|
}),
|
|
315
453
|
};
|
|
316
454
|
}
|
|
317
|
-
export function
|
|
455
|
+
export function codeInterpreterToolAutoDeserializer(item) {
|
|
318
456
|
return {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
titleField: item["titleField"],
|
|
324
|
-
urlField: item["urlField"],
|
|
325
|
-
vectorFields: !item["vectorFields"]
|
|
326
|
-
? item["vectorFields"]
|
|
327
|
-
: item["vectorFields"].map((p) => {
|
|
457
|
+
type: item["type"],
|
|
458
|
+
file_ids: !item["file_ids"]
|
|
459
|
+
? item["file_ids"]
|
|
460
|
+
: item["file_ids"].map((p) => {
|
|
328
461
|
return p;
|
|
329
462
|
}),
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
export function imageGenToolSerializer(item) {
|
|
466
|
+
return {
|
|
467
|
+
type: item["type"],
|
|
468
|
+
model: item["model"],
|
|
469
|
+
quality: item["quality"],
|
|
470
|
+
size: item["size"],
|
|
471
|
+
output_format: item["output_format"],
|
|
472
|
+
output_compression: item["output_compression"],
|
|
473
|
+
moderation: item["moderation"],
|
|
474
|
+
background: item["background"],
|
|
475
|
+
input_image_mask: !item["input_image_mask"]
|
|
476
|
+
? item["input_image_mask"]
|
|
477
|
+
: _imageGenToolInputImageMaskSerializer(item["input_image_mask"]),
|
|
478
|
+
partial_images: item["partial_images"],
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
export function imageGenToolDeserializer(item) {
|
|
482
|
+
return {
|
|
483
|
+
type: item["type"],
|
|
484
|
+
model: item["model"],
|
|
485
|
+
quality: item["quality"],
|
|
486
|
+
size: item["size"],
|
|
487
|
+
output_format: item["output_format"],
|
|
488
|
+
output_compression: item["output_compression"],
|
|
489
|
+
moderation: item["moderation"],
|
|
490
|
+
background: item["background"],
|
|
491
|
+
input_image_mask: !item["input_image_mask"]
|
|
492
|
+
? item["input_image_mask"]
|
|
493
|
+
: _imageGenToolInputImageMaskDeserializer(item["input_image_mask"]),
|
|
494
|
+
partial_images: item["partial_images"],
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
export function _imageGenToolInputImageMaskSerializer(item) {
|
|
498
|
+
return { image_url: item["image_url"], file_id: item["file_id"] };
|
|
499
|
+
}
|
|
500
|
+
export function _imageGenToolInputImageMaskDeserializer(item) {
|
|
501
|
+
return {
|
|
502
|
+
image_url: item["image_url"],
|
|
503
|
+
file_id: item["file_id"],
|
|
504
|
+
};
|
|
505
|
+
}
|
|
506
|
+
export function localShellToolSerializer(item) {
|
|
507
|
+
return { type: item["type"] };
|
|
508
|
+
}
|
|
509
|
+
export function localShellToolDeserializer(item) {
|
|
510
|
+
return {
|
|
511
|
+
type: item["type"],
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
export function mcpToolSerializer(item) {
|
|
515
|
+
return {
|
|
516
|
+
type: item["type"],
|
|
517
|
+
server_label: item["server_label"],
|
|
518
|
+
server_url: item["server_url"],
|
|
519
|
+
headers: item["headers"],
|
|
520
|
+
allowed_tools: !item["allowed_tools"]
|
|
521
|
+
? item["allowed_tools"]
|
|
522
|
+
: _mcpToolAllowedToolsSerializer(item["allowed_tools"]),
|
|
523
|
+
require_approval: !item["require_approval"]
|
|
524
|
+
? item["require_approval"]
|
|
525
|
+
: _mcpToolRequireApprovalSerializer(item["require_approval"]),
|
|
526
|
+
project_connection_id: item["project_connection_id"],
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
export function mcpToolDeserializer(item) {
|
|
530
|
+
return {
|
|
531
|
+
type: item["type"],
|
|
532
|
+
server_label: item["server_label"],
|
|
533
|
+
server_url: item["server_url"],
|
|
534
|
+
headers: item["headers"],
|
|
535
|
+
allowed_tools: !item["allowed_tools"]
|
|
536
|
+
? item["allowed_tools"]
|
|
537
|
+
: _mcpToolAllowedToolsDeserializer(item["allowed_tools"]),
|
|
538
|
+
require_approval: !item["require_approval"]
|
|
539
|
+
? item["require_approval"]
|
|
540
|
+
: _mcpToolRequireApprovalDeserializer(item["require_approval"]),
|
|
541
|
+
project_connection_id: item["project_connection_id"],
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
export function _mcpToolAllowedToolsSerializer(item) {
|
|
545
|
+
return item;
|
|
546
|
+
}
|
|
547
|
+
export function _mcpToolAllowedToolsDeserializer(item) {
|
|
548
|
+
return item;
|
|
549
|
+
}
|
|
550
|
+
export function _mcpToolAllowedTools1Serializer(item) {
|
|
551
|
+
return {
|
|
552
|
+
tool_names: !item["tool_names"]
|
|
553
|
+
? item["tool_names"]
|
|
554
|
+
: item["tool_names"].map((p) => {
|
|
555
|
+
return p;
|
|
556
|
+
}),
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
export function _mcpToolAllowedTools1Deserializer(item) {
|
|
560
|
+
return {
|
|
561
|
+
tool_names: !item["tool_names"]
|
|
562
|
+
? item["tool_names"]
|
|
563
|
+
: item["tool_names"].map((p) => {
|
|
564
|
+
return p;
|
|
565
|
+
}),
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
export function _mcpToolRequireApprovalSerializer(item) {
|
|
569
|
+
if (typeof item === "string") {
|
|
570
|
+
return item;
|
|
571
|
+
}
|
|
572
|
+
return {
|
|
573
|
+
always: !item.always
|
|
574
|
+
? item.always
|
|
575
|
+
: {
|
|
576
|
+
tool_names: item.always.tool_names,
|
|
577
|
+
},
|
|
578
|
+
never: !item.never
|
|
579
|
+
? item.never
|
|
580
|
+
: {
|
|
581
|
+
tool_names: item.never.tool_names,
|
|
582
|
+
},
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
export function _mcpToolRequireApprovalDeserializer(item) {
|
|
586
|
+
return item;
|
|
587
|
+
}
|
|
588
|
+
export function _mcpToolRequireApproval1Serializer(item) {
|
|
589
|
+
return {
|
|
590
|
+
always: !item["always"]
|
|
591
|
+
? item["always"]
|
|
592
|
+
: _mcpToolRequireApprovalAlwaysSerializer(item["always"]),
|
|
593
|
+
never: !item["never"] ? item["never"] : _mcpToolRequireApprovalNeverSerializer(item["never"]),
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
export function _mcpToolRequireApproval1Deserializer(item) {
|
|
597
|
+
return {
|
|
598
|
+
always: !item["always"]
|
|
599
|
+
? item["always"]
|
|
600
|
+
: _mcpToolRequireApprovalAlwaysDeserializer(item["always"]),
|
|
601
|
+
never: !item["never"] ? item["never"] : _mcpToolRequireApprovalNeverDeserializer(item["never"]),
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
export function _mcpToolRequireApprovalAlwaysSerializer(item) {
|
|
605
|
+
return {
|
|
606
|
+
tool_names: !item["tool_names"]
|
|
607
|
+
? item["tool_names"]
|
|
608
|
+
: item["tool_names"].map((p) => {
|
|
609
|
+
return p;
|
|
610
|
+
}),
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
export function _mcpToolRequireApprovalAlwaysDeserializer(item) {
|
|
614
|
+
return {
|
|
615
|
+
tool_names: !item["tool_names"]
|
|
616
|
+
? item["tool_names"]
|
|
617
|
+
: item["tool_names"].map((p) => {
|
|
618
|
+
return p;
|
|
619
|
+
}),
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
export function _mcpToolRequireApprovalNeverSerializer(item) {
|
|
623
|
+
return {
|
|
624
|
+
tool_names: !item["tool_names"]
|
|
625
|
+
? item["tool_names"]
|
|
626
|
+
: item["tool_names"].map((p) => {
|
|
627
|
+
return p;
|
|
628
|
+
}),
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
export function _mcpToolRequireApprovalNeverDeserializer(item) {
|
|
632
|
+
return {
|
|
633
|
+
tool_names: !item["tool_names"]
|
|
634
|
+
? item["tool_names"]
|
|
635
|
+
: item["tool_names"].map((p) => {
|
|
636
|
+
return p;
|
|
637
|
+
}),
|
|
638
|
+
};
|
|
639
|
+
}
|
|
640
|
+
export function bingGroundingAgentToolSerializer(item) {
|
|
641
|
+
return {
|
|
642
|
+
type: item["type"],
|
|
643
|
+
bing_grounding: bingGroundingSearchToolParametersSerializer(item["bing_grounding"]),
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
export function bingGroundingAgentToolDeserializer(item) {
|
|
647
|
+
return {
|
|
648
|
+
type: item["type"],
|
|
649
|
+
bing_grounding: bingGroundingSearchToolParametersDeserializer(item["bing_grounding"]),
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
export function bingGroundingSearchToolParametersSerializer(item) {
|
|
653
|
+
return {
|
|
654
|
+
search_configurations: bingGroundingSearchConfigurationArraySerializer(item["search_configurations"]),
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
export function bingGroundingSearchToolParametersDeserializer(item) {
|
|
658
|
+
return {
|
|
659
|
+
search_configurations: bingGroundingSearchConfigurationArrayDeserializer(item["search_configurations"]),
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
export function bingGroundingSearchConfigurationArraySerializer(result) {
|
|
663
|
+
return result.map((item) => {
|
|
664
|
+
return bingGroundingSearchConfigurationSerializer(item);
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
export function bingGroundingSearchConfigurationArrayDeserializer(result) {
|
|
668
|
+
return result.map((item) => {
|
|
669
|
+
return bingGroundingSearchConfigurationDeserializer(item);
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
export function bingGroundingSearchConfigurationSerializer(item) {
|
|
673
|
+
return {
|
|
674
|
+
project_connection_id: item["project_connection_id"],
|
|
675
|
+
market: item["market"],
|
|
676
|
+
set_lang: item["set_lang"],
|
|
677
|
+
count: item["count"],
|
|
678
|
+
freshness: item["freshness"],
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
export function bingGroundingSearchConfigurationDeserializer(item) {
|
|
682
|
+
return {
|
|
683
|
+
project_connection_id: item["project_connection_id"],
|
|
684
|
+
market: item["market"],
|
|
685
|
+
set_lang: item["set_lang"],
|
|
686
|
+
count: item["count"],
|
|
687
|
+
freshness: item["freshness"],
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
export function microsoftFabricAgentToolSerializer(item) {
|
|
691
|
+
return {
|
|
692
|
+
type: item["type"],
|
|
693
|
+
fabric_dataagent_preview: fabricDataAgentToolParametersSerializer(item["fabric_dataagent_preview"]),
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
export function microsoftFabricAgentToolDeserializer(item) {
|
|
697
|
+
return {
|
|
698
|
+
type: item["type"],
|
|
699
|
+
fabric_dataagent_preview: fabricDataAgentToolParametersDeserializer(item["fabric_dataagent_preview"]),
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
export function fabricDataAgentToolParametersSerializer(item) {
|
|
703
|
+
return {
|
|
704
|
+
project_connections: !item["project_connections"]
|
|
705
|
+
? item["project_connections"]
|
|
706
|
+
: toolProjectConnectionArraySerializer(item["project_connections"]),
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
export function fabricDataAgentToolParametersDeserializer(item) {
|
|
710
|
+
return {
|
|
711
|
+
project_connections: !item["project_connections"]
|
|
712
|
+
? item["project_connections"]
|
|
713
|
+
: toolProjectConnectionArrayDeserializer(item["project_connections"]),
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
export function toolProjectConnectionArraySerializer(result) {
|
|
717
|
+
return result.map((item) => {
|
|
718
|
+
return toolProjectConnectionSerializer(item);
|
|
719
|
+
});
|
|
720
|
+
}
|
|
721
|
+
export function toolProjectConnectionArrayDeserializer(result) {
|
|
722
|
+
return result.map((item) => {
|
|
723
|
+
return toolProjectConnectionDeserializer(item);
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
export function toolProjectConnectionSerializer(item) {
|
|
727
|
+
return { project_connection_id: item["project_connection_id"] };
|
|
728
|
+
}
|
|
729
|
+
export function toolProjectConnectionDeserializer(item) {
|
|
730
|
+
return {
|
|
731
|
+
project_connection_id: item["project_connection_id"],
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
export function sharepointAgentToolSerializer(item) {
|
|
735
|
+
return {
|
|
736
|
+
type: item["type"],
|
|
737
|
+
sharepoint_grounding_preview: sharepointGroundingToolParametersSerializer(item["sharepoint_grounding_preview"]),
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
export function sharepointAgentToolDeserializer(item) {
|
|
741
|
+
return {
|
|
742
|
+
type: item["type"],
|
|
743
|
+
sharepoint_grounding_preview: sharepointGroundingToolParametersDeserializer(item["sharepoint_grounding_preview"]),
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
export function sharepointGroundingToolParametersSerializer(item) {
|
|
747
|
+
return {
|
|
748
|
+
project_connections: !item["project_connections"]
|
|
749
|
+
? item["project_connections"]
|
|
750
|
+
: toolProjectConnectionArraySerializer(item["project_connections"]),
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
export function sharepointGroundingToolParametersDeserializer(item) {
|
|
754
|
+
return {
|
|
755
|
+
project_connections: !item["project_connections"]
|
|
756
|
+
? item["project_connections"]
|
|
757
|
+
: toolProjectConnectionArrayDeserializer(item["project_connections"]),
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
export function azureAISearchAgentToolSerializer(item) {
|
|
761
|
+
return {
|
|
762
|
+
type: item["type"],
|
|
763
|
+
azure_ai_search: azureAISearchToolResourceSerializer(item["azure_ai_search"]),
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
export function azureAISearchAgentToolDeserializer(item) {
|
|
767
|
+
return {
|
|
768
|
+
type: item["type"],
|
|
769
|
+
azure_ai_search: azureAISearchToolResourceDeserializer(item["azure_ai_search"]),
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
export function azureAISearchToolResourceSerializer(item) {
|
|
773
|
+
return { indexes: aiSearchIndexResourceArraySerializer(item["indexes"]) };
|
|
774
|
+
}
|
|
775
|
+
export function azureAISearchToolResourceDeserializer(item) {
|
|
776
|
+
return {
|
|
777
|
+
indexes: aiSearchIndexResourceArrayDeserializer(item["indexes"]),
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
export function aiSearchIndexResourceArraySerializer(result) {
|
|
781
|
+
return result.map((item) => {
|
|
782
|
+
return aiSearchIndexResourceSerializer(item);
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
export function aiSearchIndexResourceArrayDeserializer(result) {
|
|
786
|
+
return result.map((item) => {
|
|
787
|
+
return aiSearchIndexResourceDeserializer(item);
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
export function aiSearchIndexResourceSerializer(item) {
|
|
791
|
+
return {
|
|
792
|
+
project_connection_id: item["project_connection_id"],
|
|
793
|
+
index_name: item["index_name"],
|
|
794
|
+
query_type: item["query_type"],
|
|
795
|
+
top_k: item["top_k"],
|
|
796
|
+
filter: item["filter"],
|
|
797
|
+
index_asset_id: item["index_asset_id"],
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
export function aiSearchIndexResourceDeserializer(item) {
|
|
801
|
+
return {
|
|
802
|
+
project_connection_id: item["project_connection_id"],
|
|
803
|
+
index_name: item["index_name"],
|
|
804
|
+
query_type: item["query_type"],
|
|
805
|
+
top_k: item["top_k"],
|
|
806
|
+
filter: item["filter"],
|
|
807
|
+
index_asset_id: item["index_asset_id"],
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
export function openApiAgentToolSerializer(item) {
|
|
811
|
+
return {
|
|
812
|
+
type: item["type"],
|
|
813
|
+
openapi: openApiFunctionDefinitionSerializer(item["openapi"]),
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
export function openApiAgentToolDeserializer(item) {
|
|
817
|
+
return {
|
|
818
|
+
type: item["type"],
|
|
819
|
+
openapi: openApiFunctionDefinitionDeserializer(item["openapi"]),
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
export function openApiFunctionDefinitionSerializer(item) {
|
|
823
|
+
return {
|
|
824
|
+
name: item["name"],
|
|
825
|
+
description: item["description"],
|
|
826
|
+
spec: item["spec"],
|
|
827
|
+
auth: openApiAuthDetailsUnionSerializer(item["auth"]),
|
|
828
|
+
default_params: !item["default_params"]
|
|
829
|
+
? item["default_params"]
|
|
830
|
+
: item["default_params"].map((p) => {
|
|
831
|
+
return p;
|
|
832
|
+
}),
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
export function openApiFunctionDefinitionDeserializer(item) {
|
|
836
|
+
return {
|
|
837
|
+
name: item["name"],
|
|
838
|
+
description: item["description"],
|
|
839
|
+
spec: item["spec"],
|
|
840
|
+
auth: openApiAuthDetailsUnionDeserializer(item["auth"]),
|
|
841
|
+
default_params: !item["default_params"]
|
|
842
|
+
? item["default_params"]
|
|
843
|
+
: item["default_params"].map((p) => {
|
|
333
844
|
return p;
|
|
334
845
|
}),
|
|
846
|
+
functions: !item["functions"]
|
|
847
|
+
? item["functions"]
|
|
848
|
+
: _openApiFunctionDefinitionFunctionArrayDeserializer(item["functions"]),
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
export function openApiAuthDetailsSerializer(item) {
|
|
852
|
+
return { type: item["type"] };
|
|
853
|
+
}
|
|
854
|
+
export function openApiAuthDetailsDeserializer(item) {
|
|
855
|
+
return {
|
|
856
|
+
type: item["type"],
|
|
857
|
+
};
|
|
858
|
+
}
|
|
859
|
+
export function openApiAuthDetailsUnionSerializer(item) {
|
|
860
|
+
switch (item.type) {
|
|
861
|
+
case "anonymous":
|
|
862
|
+
return openApiAnonymousAuthDetailsSerializer(item);
|
|
863
|
+
case "project_connection":
|
|
864
|
+
return openApiProjectConnectionAuthDetailsSerializer(item);
|
|
865
|
+
case "managed_identity":
|
|
866
|
+
return openApiManagedAuthDetailsSerializer(item);
|
|
867
|
+
default:
|
|
868
|
+
return openApiAuthDetailsSerializer(item);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
export function openApiAuthDetailsUnionDeserializer(item) {
|
|
872
|
+
switch (item.type) {
|
|
873
|
+
case "anonymous":
|
|
874
|
+
return openApiAnonymousAuthDetailsDeserializer(item);
|
|
875
|
+
case "project_connection":
|
|
876
|
+
return openApiProjectConnectionAuthDetailsDeserializer(item);
|
|
877
|
+
case "managed_identity":
|
|
878
|
+
return openApiManagedAuthDetailsDeserializer(item);
|
|
879
|
+
default:
|
|
880
|
+
return openApiAuthDetailsDeserializer(item);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
export function openApiAnonymousAuthDetailsSerializer(item) {
|
|
884
|
+
return { type: item["type"] };
|
|
885
|
+
}
|
|
886
|
+
export function openApiAnonymousAuthDetailsDeserializer(item) {
|
|
887
|
+
return {
|
|
888
|
+
type: item["type"],
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
export function openApiProjectConnectionAuthDetailsSerializer(item) {
|
|
892
|
+
return {
|
|
893
|
+
type: item["type"],
|
|
894
|
+
security_scheme: openApiProjectConnectionSecuritySchemeSerializer(item["security_scheme"]),
|
|
895
|
+
};
|
|
896
|
+
}
|
|
897
|
+
export function openApiProjectConnectionAuthDetailsDeserializer(item) {
|
|
898
|
+
return {
|
|
899
|
+
type: item["type"],
|
|
900
|
+
security_scheme: openApiProjectConnectionSecuritySchemeDeserializer(item["security_scheme"]),
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
export function openApiProjectConnectionSecuritySchemeSerializer(item) {
|
|
904
|
+
return { project_connection_id: item["project_connection_id"] };
|
|
905
|
+
}
|
|
906
|
+
export function openApiProjectConnectionSecuritySchemeDeserializer(item) {
|
|
907
|
+
return {
|
|
908
|
+
project_connection_id: item["project_connection_id"],
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
export function openApiManagedAuthDetailsSerializer(item) {
|
|
912
|
+
return {
|
|
913
|
+
type: item["type"],
|
|
914
|
+
security_scheme: openApiManagedSecuritySchemeSerializer(item["security_scheme"]),
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
export function openApiManagedAuthDetailsDeserializer(item) {
|
|
918
|
+
return {
|
|
919
|
+
type: item["type"],
|
|
920
|
+
security_scheme: openApiManagedSecuritySchemeDeserializer(item["security_scheme"]),
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
export function openApiManagedSecuritySchemeSerializer(item) {
|
|
924
|
+
return { audience: item["audience"] };
|
|
925
|
+
}
|
|
926
|
+
export function openApiManagedSecuritySchemeDeserializer(item) {
|
|
927
|
+
return {
|
|
928
|
+
audience: item["audience"],
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
export function _openApiFunctionDefinitionFunctionArrayDeserializer(result) {
|
|
932
|
+
return result.map((item) => {
|
|
933
|
+
return _openApiFunctionDefinitionFunctionDeserializer(item);
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
export function _openApiFunctionDefinitionFunctionDeserializer(item) {
|
|
937
|
+
return {
|
|
938
|
+
name: item["name"],
|
|
939
|
+
description: item["description"],
|
|
940
|
+
parameters: item["parameters"],
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
export function bingCustomSearchAgentToolSerializer(item) {
|
|
944
|
+
return {
|
|
945
|
+
type: item["type"],
|
|
946
|
+
bing_custom_search_preview: bingCustomSearchToolParametersSerializer(item["bing_custom_search_preview"]),
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
export function bingCustomSearchAgentToolDeserializer(item) {
|
|
950
|
+
return {
|
|
951
|
+
type: item["type"],
|
|
952
|
+
bing_custom_search_preview: bingCustomSearchToolParametersDeserializer(item["bing_custom_search_preview"]),
|
|
953
|
+
};
|
|
954
|
+
}
|
|
955
|
+
export function bingCustomSearchToolParametersSerializer(item) {
|
|
956
|
+
return {
|
|
957
|
+
search_configurations: bingCustomSearchConfigurationArraySerializer(item["search_configurations"]),
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
export function bingCustomSearchToolParametersDeserializer(item) {
|
|
961
|
+
return {
|
|
962
|
+
search_configurations: bingCustomSearchConfigurationArrayDeserializer(item["search_configurations"]),
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
export function bingCustomSearchConfigurationArraySerializer(result) {
|
|
966
|
+
return result.map((item) => {
|
|
967
|
+
return bingCustomSearchConfigurationSerializer(item);
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
export function bingCustomSearchConfigurationArrayDeserializer(result) {
|
|
971
|
+
return result.map((item) => {
|
|
972
|
+
return bingCustomSearchConfigurationDeserializer(item);
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
export function bingCustomSearchConfigurationSerializer(item) {
|
|
976
|
+
return {
|
|
977
|
+
project_connection_id: item["project_connection_id"],
|
|
978
|
+
instance_name: item["instance_name"],
|
|
979
|
+
market: item["market"],
|
|
980
|
+
set_lang: item["set_lang"],
|
|
981
|
+
count: item["count"],
|
|
982
|
+
freshness: item["freshness"],
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
export function bingCustomSearchConfigurationDeserializer(item) {
|
|
986
|
+
return {
|
|
987
|
+
project_connection_id: item["project_connection_id"],
|
|
988
|
+
instance_name: item["instance_name"],
|
|
989
|
+
market: item["market"],
|
|
990
|
+
set_lang: item["set_lang"],
|
|
991
|
+
count: item["count"],
|
|
992
|
+
freshness: item["freshness"],
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
export function browserAutomationAgentToolSerializer(item) {
|
|
996
|
+
return {
|
|
997
|
+
type: item["type"],
|
|
998
|
+
browser_automation_preview: browserAutomationToolParametersSerializer(item["browser_automation_preview"]),
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
export function browserAutomationAgentToolDeserializer(item) {
|
|
1002
|
+
return {
|
|
1003
|
+
type: item["type"],
|
|
1004
|
+
browser_automation_preview: browserAutomationToolParametersDeserializer(item["browser_automation_preview"]),
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
export function browserAutomationToolParametersSerializer(item) {
|
|
1008
|
+
return {
|
|
1009
|
+
connection: browserAutomationToolConnectionParametersSerializer(item["connection"]),
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
export function browserAutomationToolParametersDeserializer(item) {
|
|
1013
|
+
return {
|
|
1014
|
+
connection: browserAutomationToolConnectionParametersDeserializer(item["connection"]),
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
export function browserAutomationToolConnectionParametersSerializer(item) {
|
|
1018
|
+
return { project_connection_id: item["project_connection_id"] };
|
|
1019
|
+
}
|
|
1020
|
+
export function browserAutomationToolConnectionParametersDeserializer(item) {
|
|
1021
|
+
return {
|
|
1022
|
+
project_connection_id: item["project_connection_id"],
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
export function azureFunctionAgentToolSerializer(item) {
|
|
1026
|
+
return {
|
|
1027
|
+
type: item["type"],
|
|
1028
|
+
azure_function: azureFunctionDefinitionSerializer(item["azure_function"]),
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
export function azureFunctionAgentToolDeserializer(item) {
|
|
1032
|
+
return {
|
|
1033
|
+
type: item["type"],
|
|
1034
|
+
azure_function: azureFunctionDefinitionDeserializer(item["azure_function"]),
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
export function azureFunctionDefinitionSerializer(item) {
|
|
1038
|
+
return {
|
|
1039
|
+
function: _azureFunctionDefinitionFunctionSerializer(item["function"]),
|
|
1040
|
+
input_binding: azureFunctionBindingSerializer(item["input_binding"]),
|
|
1041
|
+
output_binding: azureFunctionBindingSerializer(item["output_binding"]),
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
export function azureFunctionDefinitionDeserializer(item) {
|
|
1045
|
+
return {
|
|
1046
|
+
function: _azureFunctionDefinitionFunctionDeserializer(item["function"]),
|
|
1047
|
+
input_binding: azureFunctionBindingDeserializer(item["input_binding"]),
|
|
1048
|
+
output_binding: azureFunctionBindingDeserializer(item["output_binding"]),
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
export function _azureFunctionDefinitionFunctionSerializer(item) {
|
|
1052
|
+
return {
|
|
1053
|
+
name: item["name"],
|
|
1054
|
+
description: item["description"],
|
|
1055
|
+
parameters: item["parameters"],
|
|
1056
|
+
};
|
|
1057
|
+
}
|
|
1058
|
+
export function _azureFunctionDefinitionFunctionDeserializer(item) {
|
|
1059
|
+
return {
|
|
1060
|
+
name: item["name"],
|
|
1061
|
+
description: item["description"],
|
|
1062
|
+
parameters: item["parameters"],
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
export function azureFunctionBindingSerializer(item) {
|
|
1066
|
+
return {
|
|
1067
|
+
type: item["type"],
|
|
1068
|
+
storage_queue: azureFunctionStorageQueueSerializer(item["storage_queue"]),
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1071
|
+
export function azureFunctionBindingDeserializer(item) {
|
|
1072
|
+
return {
|
|
1073
|
+
type: item["type"],
|
|
1074
|
+
storage_queue: azureFunctionStorageQueueDeserializer(item["storage_queue"]),
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
export function azureFunctionStorageQueueSerializer(item) {
|
|
1078
|
+
return {
|
|
1079
|
+
queue_service_endpoint: item["queue_service_endpoint"],
|
|
1080
|
+
queue_name: item["queue_name"],
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
export function azureFunctionStorageQueueDeserializer(item) {
|
|
1084
|
+
return {
|
|
1085
|
+
queue_service_endpoint: item["queue_service_endpoint"],
|
|
1086
|
+
queue_name: item["queue_name"],
|
|
1087
|
+
};
|
|
1088
|
+
}
|
|
1089
|
+
export function captureStructuredOutputsToolSerializer(item) {
|
|
1090
|
+
return {
|
|
1091
|
+
type: item["type"],
|
|
1092
|
+
outputs: structuredOutputDefinitionSerializer(item["outputs"]),
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
export function captureStructuredOutputsToolDeserializer(item) {
|
|
1096
|
+
return {
|
|
1097
|
+
type: item["type"],
|
|
1098
|
+
outputs: structuredOutputDefinitionDeserializer(item["outputs"]),
|
|
1099
|
+
};
|
|
1100
|
+
}
|
|
1101
|
+
export function structuredOutputDefinitionSerializer(item) {
|
|
1102
|
+
return {
|
|
1103
|
+
name: item["name"],
|
|
1104
|
+
description: item["description"],
|
|
1105
|
+
schema: item["schema"],
|
|
1106
|
+
strict: item["strict"],
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
export function structuredOutputDefinitionDeserializer(item) {
|
|
1110
|
+
return {
|
|
1111
|
+
name: item["name"],
|
|
1112
|
+
description: item["description"],
|
|
1113
|
+
schema: item["schema"],
|
|
1114
|
+
strict: item["strict"],
|
|
1115
|
+
};
|
|
1116
|
+
}
|
|
1117
|
+
export function a2AToolSerializer(item) {
|
|
1118
|
+
return {
|
|
1119
|
+
type: item["type"],
|
|
1120
|
+
base_url: item["base_url"],
|
|
1121
|
+
agent_card_path: item["agent_card_path"],
|
|
1122
|
+
project_connection_id: item["project_connection_id"],
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
export function a2AToolDeserializer(item) {
|
|
1126
|
+
return {
|
|
1127
|
+
type: item["type"],
|
|
1128
|
+
base_url: item["base_url"],
|
|
1129
|
+
agent_card_path: item["agent_card_path"],
|
|
1130
|
+
project_connection_id: item["project_connection_id"],
|
|
1131
|
+
};
|
|
1132
|
+
}
|
|
1133
|
+
export function memorySearchToolSerializer(item) {
|
|
1134
|
+
return {
|
|
1135
|
+
type: item["type"],
|
|
1136
|
+
memory_store_name: item["memory_store_name"],
|
|
1137
|
+
scope: item["scope"],
|
|
1138
|
+
search_options: !item["search_options"]
|
|
1139
|
+
? item["search_options"]
|
|
1140
|
+
: memorySearchOptionsSerializer(item["search_options"]),
|
|
1141
|
+
update_delay: item["update_delay"],
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
export function memorySearchToolDeserializer(item) {
|
|
1145
|
+
return {
|
|
1146
|
+
type: item["type"],
|
|
1147
|
+
memory_store_name: item["memory_store_name"],
|
|
1148
|
+
scope: item["scope"],
|
|
1149
|
+
search_options: !item["search_options"]
|
|
1150
|
+
? item["search_options"]
|
|
1151
|
+
: memorySearchOptionsDeserializer(item["search_options"]),
|
|
1152
|
+
update_delay: item["update_delay"],
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
export function memorySearchOptionsSerializer(item) {
|
|
1156
|
+
return { max_memories: item["max_memories"] };
|
|
1157
|
+
}
|
|
1158
|
+
export function memorySearchOptionsDeserializer(item) {
|
|
1159
|
+
return {
|
|
1160
|
+
max_memories: item["max_memories"],
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
export function protocolVersionRecordArraySerializer(result) {
|
|
1164
|
+
return result.map((item) => {
|
|
1165
|
+
return protocolVersionRecordSerializer(item);
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
export function protocolVersionRecordArrayDeserializer(result) {
|
|
1169
|
+
return result.map((item) => {
|
|
1170
|
+
return protocolVersionRecordDeserializer(item);
|
|
1171
|
+
});
|
|
1172
|
+
}
|
|
1173
|
+
export function protocolVersionRecordSerializer(item) {
|
|
1174
|
+
return { protocol: item["protocol"], version: item["version"] };
|
|
1175
|
+
}
|
|
1176
|
+
export function protocolVersionRecordDeserializer(item) {
|
|
1177
|
+
return {
|
|
1178
|
+
protocol: item["protocol"],
|
|
1179
|
+
version: item["version"],
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
export function imageBasedHostedAgentDefinitionSerializer(item) {
|
|
1183
|
+
return {
|
|
1184
|
+
kind: item["kind"],
|
|
1185
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
1186
|
+
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
1187
|
+
cpu: item["cpu"],
|
|
1188
|
+
memory: item["memory"],
|
|
1189
|
+
environment_variables: item["environment_variables"],
|
|
1190
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1191
|
+
image: item["image"],
|
|
1192
|
+
};
|
|
1193
|
+
}
|
|
1194
|
+
export function imageBasedHostedAgentDefinitionDeserializer(item) {
|
|
1195
|
+
return {
|
|
1196
|
+
kind: item["kind"],
|
|
1197
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
1198
|
+
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1199
|
+
cpu: item["cpu"],
|
|
1200
|
+
memory: item["memory"],
|
|
1201
|
+
environment_variables: item["environment_variables"],
|
|
1202
|
+
rai_config: !item["rai_config"]
|
|
1203
|
+
? item["rai_config"]
|
|
1204
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1205
|
+
image: item["image"],
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
export function containerAppAgentDefinitionSerializer(item) {
|
|
1209
|
+
return {
|
|
1210
|
+
kind: item["kind"],
|
|
1211
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1212
|
+
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
1213
|
+
container_app_resource_id: item["container_app_resource_id"],
|
|
1214
|
+
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
export function containerAppAgentDefinitionDeserializer(item) {
|
|
1218
|
+
return {
|
|
1219
|
+
kind: item["kind"],
|
|
1220
|
+
rai_config: !item["rai_config"]
|
|
1221
|
+
? item["rai_config"]
|
|
1222
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1223
|
+
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1224
|
+
container_app_resource_id: item["container_app_resource_id"],
|
|
1225
|
+
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1226
|
+
};
|
|
1227
|
+
}
|
|
1228
|
+
export function promptAgentDefinitionSerializer(item) {
|
|
1229
|
+
return {
|
|
1230
|
+
kind: item["kind"],
|
|
1231
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1232
|
+
model: item["model"],
|
|
1233
|
+
instructions: item["instructions"],
|
|
1234
|
+
temperature: item["temperature"],
|
|
1235
|
+
top_p: item["top_p"],
|
|
1236
|
+
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningSerializer(item["reasoning"]),
|
|
1237
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
1238
|
+
text: !item["text"] ? item["text"] : _promptAgentDefinitionTextSerializer(item["text"]),
|
|
1239
|
+
structured_inputs: !item["structured_inputs"]
|
|
1240
|
+
? item["structured_inputs"]
|
|
1241
|
+
: structuredInputDefinitionRecordSerializer(item["structured_inputs"]),
|
|
1242
|
+
};
|
|
1243
|
+
}
|
|
1244
|
+
export function promptAgentDefinitionDeserializer(item) {
|
|
1245
|
+
return {
|
|
1246
|
+
kind: item["kind"],
|
|
1247
|
+
rai_config: !item["rai_config"]
|
|
1248
|
+
? item["rai_config"]
|
|
1249
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1250
|
+
model: item["model"],
|
|
1251
|
+
instructions: item["instructions"],
|
|
1252
|
+
temperature: item["temperature"],
|
|
1253
|
+
top_p: item["top_p"],
|
|
1254
|
+
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningDeserializer(item["reasoning"]),
|
|
1255
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
1256
|
+
text: !item["text"] ? item["text"] : _promptAgentDefinitionTextDeserializer(item["text"]),
|
|
1257
|
+
structured_inputs: !item["structured_inputs"]
|
|
1258
|
+
? item["structured_inputs"]
|
|
1259
|
+
: structuredInputDefinitionRecordDeserializer(item["structured_inputs"]),
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
export function reasoningSerializer(item) {
|
|
1263
|
+
return {
|
|
1264
|
+
effort: item["effort"],
|
|
1265
|
+
summary: item["summary"],
|
|
1266
|
+
generate_summary: item["generate_summary"],
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
export function reasoningDeserializer(item) {
|
|
1270
|
+
return {
|
|
1271
|
+
effort: item["effort"],
|
|
1272
|
+
summary: item["summary"],
|
|
1273
|
+
generate_summary: item["generate_summary"],
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
export function _promptAgentDefinitionTextSerializer(item) {
|
|
1277
|
+
return {
|
|
1278
|
+
format: !item["format"]
|
|
1279
|
+
? item["format"]
|
|
1280
|
+
: responseTextFormatConfigurationUnionSerializer(item["format"]),
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
export function _promptAgentDefinitionTextDeserializer(item) {
|
|
1284
|
+
return {
|
|
1285
|
+
format: !item["format"]
|
|
1286
|
+
? item["format"]
|
|
1287
|
+
: responseTextFormatConfigurationUnionDeserializer(item["format"]),
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
export function responseTextFormatConfigurationSerializer(item) {
|
|
1291
|
+
return { type: item["type"] };
|
|
1292
|
+
}
|
|
1293
|
+
export function responseTextFormatConfigurationDeserializer(item) {
|
|
1294
|
+
return {
|
|
1295
|
+
type: item["type"],
|
|
1296
|
+
};
|
|
1297
|
+
}
|
|
1298
|
+
export function responseTextFormatConfigurationUnionSerializer(item) {
|
|
1299
|
+
switch (item.type) {
|
|
1300
|
+
case "text":
|
|
1301
|
+
return responseTextFormatConfigurationTextSerializer(item);
|
|
1302
|
+
case "json_object":
|
|
1303
|
+
return responseTextFormatConfigurationJsonObjectSerializer(item);
|
|
1304
|
+
case "json_schema":
|
|
1305
|
+
return responseTextFormatConfigurationJsonSchemaSerializer(item);
|
|
1306
|
+
default:
|
|
1307
|
+
return responseTextFormatConfigurationSerializer(item);
|
|
1308
|
+
}
|
|
1309
|
+
}
|
|
1310
|
+
export function responseTextFormatConfigurationUnionDeserializer(item) {
|
|
1311
|
+
switch (item.type) {
|
|
1312
|
+
case "text":
|
|
1313
|
+
return responseTextFormatConfigurationTextDeserializer(item);
|
|
1314
|
+
case "json_object":
|
|
1315
|
+
return responseTextFormatConfigurationJsonObjectDeserializer(item);
|
|
1316
|
+
case "json_schema":
|
|
1317
|
+
return responseTextFormatConfigurationJsonSchemaDeserializer(item);
|
|
1318
|
+
default:
|
|
1319
|
+
return responseTextFormatConfigurationDeserializer(item);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
export function responseTextFormatConfigurationTextSerializer(item) {
|
|
1323
|
+
return { type: item["type"] };
|
|
1324
|
+
}
|
|
1325
|
+
export function responseTextFormatConfigurationTextDeserializer(item) {
|
|
1326
|
+
return {
|
|
1327
|
+
type: item["type"],
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
export function responseTextFormatConfigurationJsonObjectSerializer(item) {
|
|
1331
|
+
return { type: item["type"] };
|
|
1332
|
+
}
|
|
1333
|
+
export function responseTextFormatConfigurationJsonObjectDeserializer(item) {
|
|
1334
|
+
return {
|
|
1335
|
+
type: item["type"],
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
export function responseFormatJsonSchemaSchemaSerializer(item) {
|
|
1339
|
+
return { ...serializeRecord(item.additionalProperties) };
|
|
1340
|
+
}
|
|
1341
|
+
export function responseFormatJsonSchemaSchemaDeserializer(item) {
|
|
1342
|
+
return {
|
|
1343
|
+
additionalProperties: serializeRecord(item, []),
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
export function responseTextFormatConfigurationJsonSchemaSerializer(item) {
|
|
1347
|
+
return {
|
|
1348
|
+
type: item["type"],
|
|
1349
|
+
description: item["description"],
|
|
1350
|
+
name: item["name"],
|
|
1351
|
+
schema: responseFormatJsonSchemaSchemaDeserializer(item["schema"]),
|
|
1352
|
+
strict: item["strict"],
|
|
1353
|
+
};
|
|
1354
|
+
}
|
|
1355
|
+
export function responseTextFormatConfigurationJsonSchemaDeserializer(item) {
|
|
1356
|
+
return {
|
|
1357
|
+
type: item["type"],
|
|
1358
|
+
description: item["description"],
|
|
1359
|
+
name: item["name"],
|
|
1360
|
+
schema: item["schema"],
|
|
1361
|
+
strict: item["strict"],
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
export function structuredInputDefinitionRecordSerializer(item) {
|
|
1365
|
+
const result = {};
|
|
1366
|
+
Object.keys(item).map((key) => {
|
|
1367
|
+
result[key] = !item[key] ? item[key] : structuredInputDefinitionSerializer(item[key]);
|
|
1368
|
+
});
|
|
1369
|
+
return result;
|
|
1370
|
+
}
|
|
1371
|
+
export function structuredInputDefinitionRecordDeserializer(item) {
|
|
1372
|
+
const result = {};
|
|
1373
|
+
Object.keys(item).map((key) => {
|
|
1374
|
+
result[key] = !item[key] ? item[key] : structuredInputDefinitionDeserializer(item[key]);
|
|
1375
|
+
});
|
|
1376
|
+
return result;
|
|
1377
|
+
}
|
|
1378
|
+
export function structuredInputDefinitionSerializer(item) {
|
|
1379
|
+
return {
|
|
1380
|
+
description: item["description"],
|
|
1381
|
+
default_value: item["default_value"],
|
|
1382
|
+
tool_argument_bindings: !item["tool_argument_bindings"]
|
|
1383
|
+
? item["tool_argument_bindings"]
|
|
1384
|
+
: toolArgumentBindingArraySerializer(item["tool_argument_bindings"]),
|
|
1385
|
+
schema: item["schema"],
|
|
1386
|
+
required: item["required"],
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
export function structuredInputDefinitionDeserializer(item) {
|
|
1390
|
+
return {
|
|
1391
|
+
description: item["description"],
|
|
1392
|
+
default_value: item["default_value"],
|
|
1393
|
+
tool_argument_bindings: !item["tool_argument_bindings"]
|
|
1394
|
+
? item["tool_argument_bindings"]
|
|
1395
|
+
: toolArgumentBindingArrayDeserializer(item["tool_argument_bindings"]),
|
|
1396
|
+
schema: item["schema"],
|
|
1397
|
+
required: item["required"],
|
|
1398
|
+
};
|
|
1399
|
+
}
|
|
1400
|
+
export function toolArgumentBindingArraySerializer(result) {
|
|
1401
|
+
return result.map((item) => {
|
|
1402
|
+
return toolArgumentBindingSerializer(item);
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
export function toolArgumentBindingArrayDeserializer(result) {
|
|
1406
|
+
return result.map((item) => {
|
|
1407
|
+
return toolArgumentBindingDeserializer(item);
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
export function toolArgumentBindingSerializer(item) {
|
|
1411
|
+
return { tool_name: item["tool_name"], argument_name: item["argument_name"] };
|
|
1412
|
+
}
|
|
1413
|
+
export function toolArgumentBindingDeserializer(item) {
|
|
1414
|
+
return {
|
|
1415
|
+
tool_name: item["tool_name"],
|
|
1416
|
+
argument_name: item["argument_name"],
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
export function apiErrorResponseDeserializer(item) {
|
|
1420
|
+
return {
|
|
1421
|
+
error: apiErrorDeserializer(item["error"]),
|
|
1422
|
+
};
|
|
1423
|
+
}
|
|
1424
|
+
export function apiErrorDeserializer(item) {
|
|
1425
|
+
return {
|
|
1426
|
+
code: item["code"],
|
|
1427
|
+
message: item["message"],
|
|
1428
|
+
target: item["target"],
|
|
1429
|
+
details: apiErrorArrayDeserializer(item["details"]),
|
|
1430
|
+
innererror: !item["innererror"]
|
|
1431
|
+
? item["innererror"]
|
|
1432
|
+
: apiInnerErrorDeserializer(item["innererror"]),
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
export function apiErrorArrayDeserializer(result) {
|
|
1436
|
+
return result.map((item) => {
|
|
1437
|
+
return apiErrorDeserializer(item);
|
|
1438
|
+
});
|
|
1439
|
+
}
|
|
1440
|
+
export function apiInnerErrorDeserializer(item) {
|
|
1441
|
+
return {
|
|
1442
|
+
code: item["code"],
|
|
1443
|
+
innererror: !item["innererror"]
|
|
1444
|
+
? item["innererror"]
|
|
1445
|
+
: apiInnerErrorDeserializer(item["innererror"]),
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
export function deleteAgentResponseDeserializer(item) {
|
|
1449
|
+
return {
|
|
1450
|
+
object: item["object"],
|
|
1451
|
+
name: item["name"],
|
|
1452
|
+
deleted: item["deleted"],
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
export function _agentsPagedResultAgentObjectDeserializer(item) {
|
|
1456
|
+
return {
|
|
1457
|
+
data: agentObjectArrayDeserializer(item["data"]),
|
|
1458
|
+
first_id: item["first_id"],
|
|
1459
|
+
last_id: item["last_id"],
|
|
1460
|
+
has_more: item["has_more"],
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
export function agentObjectArrayDeserializer(result) {
|
|
1464
|
+
return result.map((item) => {
|
|
1465
|
+
return agentObjectDeserializer(item);
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
export function deleteAgentVersionResponseDeserializer(item) {
|
|
1469
|
+
return {
|
|
1470
|
+
object: item["object"],
|
|
1471
|
+
name: item["name"],
|
|
1472
|
+
version: item["version"],
|
|
1473
|
+
deleted: item["deleted"],
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
export function _agentsPagedResultAgentVersionObjectDeserializer(item) {
|
|
1477
|
+
return {
|
|
1478
|
+
data: agentVersionObjectArrayDeserializer(item["data"]),
|
|
1479
|
+
first_id: item["first_id"],
|
|
1480
|
+
last_id: item["last_id"],
|
|
1481
|
+
has_more: item["has_more"],
|
|
1482
|
+
};
|
|
1483
|
+
}
|
|
1484
|
+
export function agentVersionObjectArrayDeserializer(result) {
|
|
1485
|
+
return result.map((item) => {
|
|
1486
|
+
return agentVersionObjectDeserializer(item);
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
export function memoryStoreDefinitionSerializer(item) {
|
|
1490
|
+
return { kind: item["kind"] };
|
|
1491
|
+
}
|
|
1492
|
+
export function memoryStoreDefinitionDeserializer(item) {
|
|
1493
|
+
return {
|
|
1494
|
+
kind: item["kind"],
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
export function memoryStoreDefinitionUnionSerializer(item) {
|
|
1498
|
+
switch (item.kind) {
|
|
1499
|
+
case "default":
|
|
1500
|
+
return memoryStoreDefaultDefinitionSerializer(item);
|
|
1501
|
+
default:
|
|
1502
|
+
return memoryStoreDefinitionSerializer(item);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
export function memoryStoreDefinitionUnionDeserializer(item) {
|
|
1506
|
+
switch (item.kind) {
|
|
1507
|
+
case "default":
|
|
1508
|
+
return memoryStoreDefaultDefinitionDeserializer(item);
|
|
1509
|
+
default:
|
|
1510
|
+
return memoryStoreDefinitionDeserializer(item);
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
export function memoryStoreDefaultDefinitionSerializer(item) {
|
|
1514
|
+
return {
|
|
1515
|
+
kind: item["kind"],
|
|
1516
|
+
chat_model: item["chat_model"],
|
|
1517
|
+
embedding_model: item["embedding_model"],
|
|
1518
|
+
options: !item["options"]
|
|
1519
|
+
? item["options"]
|
|
1520
|
+
: memoryStoreDefaultOptionsSerializer(item["options"]),
|
|
1521
|
+
};
|
|
1522
|
+
}
|
|
1523
|
+
export function memoryStoreDefaultDefinitionDeserializer(item) {
|
|
1524
|
+
return {
|
|
1525
|
+
kind: item["kind"],
|
|
1526
|
+
chat_model: item["chat_model"],
|
|
1527
|
+
embedding_model: item["embedding_model"],
|
|
1528
|
+
options: !item["options"]
|
|
1529
|
+
? item["options"]
|
|
1530
|
+
: memoryStoreDefaultOptionsDeserializer(item["options"]),
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
export function memoryStoreDefaultOptionsSerializer(item) {
|
|
1534
|
+
return {
|
|
1535
|
+
user_profile_enabled: item["user_profile_enabled"],
|
|
1536
|
+
user_profile_details: item["user_profile_details"],
|
|
1537
|
+
chat_summary_enabled: item["chat_summary_enabled"],
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
export function memoryStoreDefaultOptionsDeserializer(item) {
|
|
1541
|
+
return {
|
|
1542
|
+
user_profile_enabled: item["user_profile_enabled"],
|
|
1543
|
+
user_profile_details: item["user_profile_details"],
|
|
1544
|
+
chat_summary_enabled: item["chat_summary_enabled"],
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
export function memoryStoreObjectDeserializer(item) {
|
|
1548
|
+
return {
|
|
1549
|
+
object: item["object"],
|
|
1550
|
+
id: item["id"],
|
|
1551
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
1552
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
1553
|
+
name: item["name"],
|
|
1554
|
+
description: item["description"],
|
|
1555
|
+
metadata: item["metadata"],
|
|
1556
|
+
definition: memoryStoreDefinitionUnionDeserializer(item["definition"]),
|
|
1557
|
+
};
|
|
1558
|
+
}
|
|
1559
|
+
export function _agentsPagedResultMemoryStoreObjectDeserializer(item) {
|
|
1560
|
+
return {
|
|
1561
|
+
data: memoryStoreObjectArrayDeserializer(item["data"]),
|
|
1562
|
+
first_id: item["first_id"],
|
|
1563
|
+
last_id: item["last_id"],
|
|
1564
|
+
has_more: item["has_more"],
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
export function memoryStoreObjectArrayDeserializer(result) {
|
|
1568
|
+
return result.map((item) => {
|
|
1569
|
+
return memoryStoreObjectDeserializer(item);
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
export function deleteMemoryStoreResponseDeserializer(item) {
|
|
1573
|
+
return {
|
|
1574
|
+
object: item["object"],
|
|
1575
|
+
name: item["name"],
|
|
1576
|
+
deleted: item["deleted"],
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
export function itemParamSerializer(item) {
|
|
1580
|
+
return { type: item["type"] };
|
|
1581
|
+
}
|
|
1582
|
+
export function itemParamUnionSerializer(item) {
|
|
1583
|
+
switch (item.type) {
|
|
1584
|
+
case "message":
|
|
1585
|
+
return responsesMessageItemParamUnionSerializer(item);
|
|
1586
|
+
case "function_call_output":
|
|
1587
|
+
return functionToolCallOutputItemParamSerializer(item);
|
|
1588
|
+
case "file_search_call":
|
|
1589
|
+
return fileSearchToolCallItemParamSerializer(item);
|
|
1590
|
+
case "computer_call":
|
|
1591
|
+
return computerToolCallItemParamSerializer(item);
|
|
1592
|
+
case "computer_call_output":
|
|
1593
|
+
return computerToolCallOutputItemParamSerializer(item);
|
|
1594
|
+
case "web_search_call":
|
|
1595
|
+
return webSearchToolCallItemParamSerializer(item);
|
|
1596
|
+
case "function_call":
|
|
1597
|
+
return functionToolCallItemParamSerializer(item);
|
|
1598
|
+
case "reasoning":
|
|
1599
|
+
return reasoningItemParamSerializer(item);
|
|
1600
|
+
case "item_reference":
|
|
1601
|
+
return itemReferenceItemParamSerializer(item);
|
|
1602
|
+
case "image_generation_call":
|
|
1603
|
+
return imageGenToolCallItemParamSerializer(item);
|
|
1604
|
+
case "code_interpreter_call":
|
|
1605
|
+
return codeInterpreterToolCallItemParamSerializer(item);
|
|
1606
|
+
case "local_shell_call":
|
|
1607
|
+
return localShellToolCallItemParamSerializer(item);
|
|
1608
|
+
case "local_shell_call_output":
|
|
1609
|
+
return localShellToolCallOutputItemParamSerializer(item);
|
|
1610
|
+
case "mcp_list_tools":
|
|
1611
|
+
return mcpListToolsItemParamSerializer(item);
|
|
1612
|
+
case "mcp_approval_request":
|
|
1613
|
+
return mcpApprovalRequestItemParamSerializer(item);
|
|
1614
|
+
case "mcp_approval_response":
|
|
1615
|
+
return mcpApprovalResponseItemParamSerializer(item);
|
|
1616
|
+
case "mcp_call":
|
|
1617
|
+
return mcpCallItemParamSerializer(item);
|
|
1618
|
+
case "memory_search_call":
|
|
1619
|
+
return memorySearchToolCallItemParamSerializer(item);
|
|
1620
|
+
default:
|
|
1621
|
+
return itemParamSerializer(item);
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
export function responsesMessageItemParamSerializer(item) {
|
|
1625
|
+
return { type: item["type"], role: item["role"] };
|
|
1626
|
+
}
|
|
1627
|
+
export function responsesMessageItemParamUnionSerializer(item) {
|
|
1628
|
+
switch (item.role) {
|
|
1629
|
+
case "user":
|
|
1630
|
+
return responsesUserMessageItemParamSerializer(item);
|
|
1631
|
+
case "system":
|
|
1632
|
+
return responsesSystemMessageItemParamSerializer(item);
|
|
1633
|
+
case "developer":
|
|
1634
|
+
return responsesDeveloperMessageItemParamSerializer(item);
|
|
1635
|
+
case "assistant":
|
|
1636
|
+
return responsesAssistantMessageItemParamSerializer(item);
|
|
1637
|
+
default:
|
|
1638
|
+
return responsesMessageItemParamSerializer(item);
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
export function responsesUserMessageItemParamSerializer(item) {
|
|
1642
|
+
return {
|
|
1643
|
+
type: item["type"],
|
|
1644
|
+
role: item["role"],
|
|
1645
|
+
content: _responsesUserMessageItemParamContentSerializer(item["content"]),
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
export function _responsesUserMessageItemParamContentSerializer(item) {
|
|
1649
|
+
return item;
|
|
1650
|
+
}
|
|
1651
|
+
export function itemContentUnionArraySerializer(result) {
|
|
1652
|
+
return result.map((item) => {
|
|
1653
|
+
return itemContentUnionSerializer(item);
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
export function itemContentSerializer(item) {
|
|
1657
|
+
return { type: item["type"] };
|
|
1658
|
+
}
|
|
1659
|
+
export function itemContentUnionSerializer(item) {
|
|
1660
|
+
switch (item.type) {
|
|
1661
|
+
case "input_audio":
|
|
1662
|
+
return itemContentInputAudioSerializer(item);
|
|
1663
|
+
case "output_audio":
|
|
1664
|
+
return itemContentOutputAudioSerializer(item);
|
|
1665
|
+
case "refusal":
|
|
1666
|
+
return itemContentRefusalSerializer(item);
|
|
1667
|
+
case "input_text":
|
|
1668
|
+
return itemContentInputTextSerializer(item);
|
|
1669
|
+
case "input_image":
|
|
1670
|
+
return itemContentInputImageSerializer(item);
|
|
1671
|
+
case "input_file":
|
|
1672
|
+
return itemContentInputFileSerializer(item);
|
|
1673
|
+
case "output_text":
|
|
1674
|
+
return itemContentOutputTextSerializer(item);
|
|
1675
|
+
default:
|
|
1676
|
+
return itemContentSerializer(item);
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
export function itemContentInputAudioSerializer(item) {
|
|
1680
|
+
return { type: item["type"], data: item["data"], format: item["format"] };
|
|
1681
|
+
}
|
|
1682
|
+
export function itemContentOutputAudioSerializer(item) {
|
|
1683
|
+
return {
|
|
1684
|
+
type: item["type"],
|
|
1685
|
+
data: item["data"],
|
|
1686
|
+
transcript: item["transcript"],
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
export function itemContentRefusalSerializer(item) {
|
|
1690
|
+
return { type: item["type"], refusal: item["refusal"] };
|
|
1691
|
+
}
|
|
1692
|
+
export function itemContentInputTextSerializer(item) {
|
|
1693
|
+
return { type: item["type"], text: item["text"] };
|
|
1694
|
+
}
|
|
1695
|
+
export function itemContentInputImageSerializer(item) {
|
|
1696
|
+
return {
|
|
1697
|
+
type: item["type"],
|
|
1698
|
+
image_url: item["image_url"],
|
|
1699
|
+
file_id: item["file_id"],
|
|
1700
|
+
detail: item["detail"],
|
|
1701
|
+
};
|
|
1702
|
+
}
|
|
1703
|
+
export function itemContentInputFileSerializer(item) {
|
|
1704
|
+
return {
|
|
1705
|
+
type: item["type"],
|
|
1706
|
+
file_id: item["file_id"],
|
|
1707
|
+
filename: item["filename"],
|
|
1708
|
+
file_data: item["file_data"],
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
export function itemContentOutputTextSerializer(item) {
|
|
1712
|
+
return {
|
|
1713
|
+
type: item["type"],
|
|
1714
|
+
text: item["text"],
|
|
1715
|
+
annotations: annotationUnionArraySerializer(item["annotations"]),
|
|
1716
|
+
logprobs: !item["logprobs"] ? item["logprobs"] : logProbArraySerializer(item["logprobs"]),
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
export function annotationUnionArraySerializer(result) {
|
|
1720
|
+
return result.map((item) => {
|
|
1721
|
+
return annotationUnionSerializer(item);
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
export function annotationSerializer(item) {
|
|
1725
|
+
return { type: item["type"] };
|
|
1726
|
+
}
|
|
1727
|
+
export function annotationUnionSerializer(item) {
|
|
1728
|
+
switch (item.type) {
|
|
1729
|
+
case "file_citation":
|
|
1730
|
+
return annotationFileCitationSerializer(item);
|
|
1731
|
+
case "url_citation":
|
|
1732
|
+
return annotationUrlCitationSerializer(item);
|
|
1733
|
+
case "file_path":
|
|
1734
|
+
return annotationFilePathSerializer(item);
|
|
1735
|
+
default:
|
|
1736
|
+
return annotationSerializer(item);
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
export function annotationFileCitationSerializer(item) {
|
|
1740
|
+
return {
|
|
1741
|
+
type: item["type"],
|
|
1742
|
+
file_id: item["file_id"],
|
|
1743
|
+
index: item["index"],
|
|
1744
|
+
filename: item["filename"],
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
export function annotationUrlCitationSerializer(item) {
|
|
1748
|
+
return {
|
|
1749
|
+
type: item["type"],
|
|
1750
|
+
url: item["url"],
|
|
1751
|
+
start_index: item["start_index"],
|
|
1752
|
+
end_index: item["end_index"],
|
|
1753
|
+
title: item["title"],
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
export function annotationFilePathSerializer(item) {
|
|
1757
|
+
return { type: item["type"], file_id: item["file_id"], index: item["index"] };
|
|
1758
|
+
}
|
|
1759
|
+
export function logProbArraySerializer(result) {
|
|
1760
|
+
return result.map((item) => {
|
|
1761
|
+
return logProbSerializer(item);
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
export function logProbSerializer(item) {
|
|
1765
|
+
return {
|
|
1766
|
+
token: item["token"],
|
|
1767
|
+
logprob: item["logprob"],
|
|
1768
|
+
bytes: item["bytes"].map((p) => {
|
|
1769
|
+
return p;
|
|
1770
|
+
}),
|
|
1771
|
+
top_logprobs: topLogProbArraySerializer(item["top_logprobs"]),
|
|
1772
|
+
};
|
|
1773
|
+
}
|
|
1774
|
+
export function topLogProbArraySerializer(result) {
|
|
1775
|
+
return result.map((item) => {
|
|
1776
|
+
return topLogProbSerializer(item);
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
export function topLogProbSerializer(item) {
|
|
1780
|
+
return {
|
|
1781
|
+
token: item["token"],
|
|
1782
|
+
logprob: item["logprob"],
|
|
1783
|
+
bytes: item["bytes"].map((p) => {
|
|
1784
|
+
return p;
|
|
1785
|
+
}),
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
export function responsesSystemMessageItemParamSerializer(item) {
|
|
1789
|
+
return {
|
|
1790
|
+
type: item["type"],
|
|
1791
|
+
role: item["role"],
|
|
1792
|
+
content: _responsesSystemMessageItemParamContentSerializer(item["content"]),
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
export function _responsesSystemMessageItemParamContentSerializer(item) {
|
|
1796
|
+
return item;
|
|
1797
|
+
}
|
|
1798
|
+
export function responsesDeveloperMessageItemParamSerializer(item) {
|
|
1799
|
+
return {
|
|
1800
|
+
type: item["type"],
|
|
1801
|
+
role: item["role"],
|
|
1802
|
+
content: _responsesDeveloperMessageItemParamContentSerializer(item["content"]),
|
|
1803
|
+
};
|
|
1804
|
+
}
|
|
1805
|
+
export function _responsesDeveloperMessageItemParamContentSerializer(item) {
|
|
1806
|
+
return item;
|
|
1807
|
+
}
|
|
1808
|
+
export function responsesAssistantMessageItemParamSerializer(item) {
|
|
1809
|
+
return {
|
|
1810
|
+
type: item["type"],
|
|
1811
|
+
role: item["role"],
|
|
1812
|
+
content: _responsesAssistantMessageItemParamContentSerializer(item["content"]),
|
|
1813
|
+
};
|
|
1814
|
+
}
|
|
1815
|
+
export function _responsesAssistantMessageItemParamContentSerializer(item) {
|
|
1816
|
+
return item;
|
|
1817
|
+
}
|
|
1818
|
+
export function functionToolCallOutputItemParamSerializer(item) {
|
|
1819
|
+
return {
|
|
1820
|
+
type: item["type"],
|
|
1821
|
+
call_id: item["call_id"],
|
|
1822
|
+
output: item["output"],
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
export function fileSearchToolCallItemParamSerializer(item) {
|
|
1826
|
+
return {
|
|
1827
|
+
type: item["type"],
|
|
1828
|
+
queries: item["queries"].map((p) => {
|
|
1829
|
+
return p;
|
|
1830
|
+
}),
|
|
1831
|
+
results: !item["results"]
|
|
1832
|
+
? item["results"]
|
|
1833
|
+
: _fileSearchToolCallItemParamResultArraySerializer(item["results"]),
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1836
|
+
export function _fileSearchToolCallItemParamResultArraySerializer(result) {
|
|
1837
|
+
return result.map((item) => {
|
|
1838
|
+
return _fileSearchToolCallItemParamResultSerializer(item);
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
export function _fileSearchToolCallItemParamResultSerializer(item) {
|
|
1842
|
+
return {
|
|
1843
|
+
file_id: item["file_id"],
|
|
1844
|
+
text: item["text"],
|
|
1845
|
+
filename: item["filename"],
|
|
1846
|
+
attributes: !item["attributes"]
|
|
1847
|
+
? item["attributes"]
|
|
1848
|
+
: vectorStoreFileAttributesSerializer(item["attributes"]),
|
|
1849
|
+
score: item["score"],
|
|
1850
|
+
};
|
|
1851
|
+
}
|
|
1852
|
+
export function vectorStoreFileAttributesSerializer(item) {
|
|
1853
|
+
return {
|
|
1854
|
+
...serializeRecord(item.additionalProperties, undefined, _vectorStoreFileAttributesAdditionalPropertySerializer),
|
|
1855
|
+
};
|
|
1856
|
+
}
|
|
1857
|
+
export function _vectorStoreFileAttributesAdditionalPropertySerializer(item) {
|
|
1858
|
+
return item;
|
|
1859
|
+
}
|
|
1860
|
+
export function computerToolCallItemParamSerializer(item) {
|
|
1861
|
+
return {
|
|
1862
|
+
type: item["type"],
|
|
1863
|
+
call_id: item["call_id"],
|
|
1864
|
+
action: computerActionUnionSerializer(item["action"]),
|
|
1865
|
+
pending_safety_checks: computerToolCallSafetyCheckArraySerializer(item["pending_safety_checks"]),
|
|
1866
|
+
};
|
|
1867
|
+
}
|
|
1868
|
+
export function computerActionSerializer(item) {
|
|
1869
|
+
return { type: item["type"] };
|
|
1870
|
+
}
|
|
1871
|
+
export function computerActionUnionSerializer(item) {
|
|
1872
|
+
switch (item.type) {
|
|
1873
|
+
case "click":
|
|
1874
|
+
return computerActionClickSerializer(item);
|
|
1875
|
+
case "double_click":
|
|
1876
|
+
return computerActionDoubleClickSerializer(item);
|
|
1877
|
+
case "drag":
|
|
1878
|
+
return computerActionDragSerializer(item);
|
|
1879
|
+
case "move":
|
|
1880
|
+
return computerActionMoveSerializer(item);
|
|
1881
|
+
case "screenshot":
|
|
1882
|
+
return computerActionScreenshotSerializer(item);
|
|
1883
|
+
case "scroll":
|
|
1884
|
+
return computerActionScrollSerializer(item);
|
|
1885
|
+
case "type":
|
|
1886
|
+
return computerActionTypeKeysSerializer(item);
|
|
1887
|
+
case "wait":
|
|
1888
|
+
return computerActionWaitSerializer(item);
|
|
1889
|
+
case "keypress":
|
|
1890
|
+
return computerActionKeyPressSerializer(item);
|
|
1891
|
+
default:
|
|
1892
|
+
return computerActionSerializer(item);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
export function computerActionClickSerializer(item) {
|
|
1896
|
+
return {
|
|
1897
|
+
type: item["type"],
|
|
1898
|
+
button: item["button"],
|
|
1899
|
+
x: item["x"],
|
|
1900
|
+
y: item["y"],
|
|
1901
|
+
};
|
|
1902
|
+
}
|
|
1903
|
+
export function computerActionDoubleClickSerializer(item) {
|
|
1904
|
+
return { type: item["type"], x: item["x"], y: item["y"] };
|
|
1905
|
+
}
|
|
1906
|
+
export function computerActionDragSerializer(item) {
|
|
1907
|
+
return { type: item["type"], path: coordinateArraySerializer(item["path"]) };
|
|
1908
|
+
}
|
|
1909
|
+
export function coordinateArraySerializer(result) {
|
|
1910
|
+
return result.map((item) => {
|
|
1911
|
+
return coordinateSerializer(item);
|
|
1912
|
+
});
|
|
1913
|
+
}
|
|
1914
|
+
export function coordinateSerializer(item) {
|
|
1915
|
+
return { x: item["x"], y: item["y"] };
|
|
1916
|
+
}
|
|
1917
|
+
export function computerActionMoveSerializer(item) {
|
|
1918
|
+
return { type: item["type"], x: item["x"], y: item["y"] };
|
|
1919
|
+
}
|
|
1920
|
+
export function computerActionScreenshotSerializer(item) {
|
|
1921
|
+
return { type: item["type"] };
|
|
1922
|
+
}
|
|
1923
|
+
export function computerActionScrollSerializer(item) {
|
|
1924
|
+
return {
|
|
1925
|
+
type: item["type"],
|
|
1926
|
+
x: item["x"],
|
|
1927
|
+
y: item["y"],
|
|
1928
|
+
scroll_x: item["scroll_x"],
|
|
1929
|
+
scroll_y: item["scroll_y"],
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
export function computerActionTypeKeysSerializer(item) {
|
|
1933
|
+
return { type: item["type"], text: item["text"] };
|
|
1934
|
+
}
|
|
1935
|
+
export function computerActionWaitSerializer(item) {
|
|
1936
|
+
return { type: item["type"] };
|
|
1937
|
+
}
|
|
1938
|
+
export function computerActionKeyPressSerializer(item) {
|
|
1939
|
+
return {
|
|
1940
|
+
type: item["type"],
|
|
1941
|
+
keys: item["keys"].map((p) => {
|
|
1942
|
+
return p;
|
|
1943
|
+
}),
|
|
1944
|
+
};
|
|
1945
|
+
}
|
|
1946
|
+
export function computerToolCallSafetyCheckArraySerializer(result) {
|
|
1947
|
+
return result.map((item) => {
|
|
1948
|
+
return computerToolCallSafetyCheckSerializer(item);
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
export function computerToolCallSafetyCheckSerializer(item) {
|
|
1952
|
+
return { id: item["id"], code: item["code"], message: item["message"] };
|
|
1953
|
+
}
|
|
1954
|
+
export function computerToolCallOutputItemParamSerializer(item) {
|
|
1955
|
+
return {
|
|
1956
|
+
type: item["type"],
|
|
1957
|
+
call_id: item["call_id"],
|
|
1958
|
+
acknowledged_safety_checks: !item["acknowledged_safety_checks"]
|
|
1959
|
+
? item["acknowledged_safety_checks"]
|
|
1960
|
+
: computerToolCallSafetyCheckArraySerializer(item["acknowledged_safety_checks"]),
|
|
1961
|
+
output: computerToolCallOutputItemOutputUnionSerializer(item["output"]),
|
|
1962
|
+
};
|
|
1963
|
+
}
|
|
1964
|
+
export function computerToolCallOutputItemOutputSerializer(item) {
|
|
1965
|
+
return { type: item["type"] };
|
|
1966
|
+
}
|
|
1967
|
+
export function computerToolCallOutputItemOutputUnionSerializer(item) {
|
|
1968
|
+
switch (item.type) {
|
|
1969
|
+
case "computer_screenshot":
|
|
1970
|
+
return computerToolCallOutputItemOutputComputerScreenshotSerializer(item);
|
|
1971
|
+
default:
|
|
1972
|
+
return computerToolCallOutputItemOutputSerializer(item);
|
|
1973
|
+
}
|
|
1974
|
+
}
|
|
1975
|
+
export function computerToolCallOutputItemOutputComputerScreenshotSerializer(item) {
|
|
1976
|
+
return {
|
|
1977
|
+
type: item["type"],
|
|
1978
|
+
image_url: item["image_url"],
|
|
1979
|
+
file_id: item["file_id"],
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
export function webSearchToolCallItemParamSerializer(item) {
|
|
1983
|
+
return {
|
|
1984
|
+
type: item["type"],
|
|
1985
|
+
action: webSearchActionUnionSerializer(item["action"]),
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
export function webSearchActionSerializer(item) {
|
|
1989
|
+
return { type: item["type"] };
|
|
1990
|
+
}
|
|
1991
|
+
export function webSearchActionUnionSerializer(item) {
|
|
1992
|
+
switch (item.type) {
|
|
1993
|
+
case "find":
|
|
1994
|
+
return webSearchActionFindSerializer(item);
|
|
1995
|
+
case "open_page":
|
|
1996
|
+
return webSearchActionOpenPageSerializer(item);
|
|
1997
|
+
case "search":
|
|
1998
|
+
return webSearchActionSearchSerializer(item);
|
|
1999
|
+
default:
|
|
2000
|
+
return webSearchActionSerializer(item);
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
export function webSearchActionFindSerializer(item) {
|
|
2004
|
+
return { type: item["type"], url: item["url"], pattern: item["pattern"] };
|
|
2005
|
+
}
|
|
2006
|
+
export function webSearchActionOpenPageSerializer(item) {
|
|
2007
|
+
return { type: item["type"], url: item["url"] };
|
|
2008
|
+
}
|
|
2009
|
+
export function webSearchActionSearchSerializer(item) {
|
|
2010
|
+
return {
|
|
2011
|
+
type: item["type"],
|
|
2012
|
+
query: item["query"],
|
|
2013
|
+
sources: !item["sources"]
|
|
2014
|
+
? item["sources"]
|
|
2015
|
+
: webSearchActionSearchSourcesArraySerializer(item["sources"]),
|
|
2016
|
+
};
|
|
2017
|
+
}
|
|
2018
|
+
export function webSearchActionSearchSourcesArraySerializer(result) {
|
|
2019
|
+
return result.map((item) => {
|
|
2020
|
+
return webSearchActionSearchSourcesSerializer(item);
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
export function webSearchActionSearchSourcesSerializer(item) {
|
|
2024
|
+
return { type: item["type"], url: item["url"] };
|
|
2025
|
+
}
|
|
2026
|
+
export function functionToolCallItemParamSerializer(item) {
|
|
2027
|
+
return {
|
|
2028
|
+
type: item["type"],
|
|
2029
|
+
call_id: item["call_id"],
|
|
2030
|
+
name: item["name"],
|
|
2031
|
+
arguments: item["arguments"],
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
export function reasoningItemParamSerializer(item) {
|
|
2035
|
+
return {
|
|
2036
|
+
type: item["type"],
|
|
2037
|
+
encrypted_content: item["encrypted_content"],
|
|
2038
|
+
summary: reasoningItemSummaryPartUnionArraySerializer(item["summary"]),
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
2041
|
+
export function reasoningItemSummaryPartUnionArraySerializer(result) {
|
|
2042
|
+
return result.map((item) => {
|
|
2043
|
+
return reasoningItemSummaryPartUnionSerializer(item);
|
|
2044
|
+
});
|
|
2045
|
+
}
|
|
2046
|
+
export function reasoningItemSummaryPartSerializer(item) {
|
|
2047
|
+
return { type: item["type"] };
|
|
2048
|
+
}
|
|
2049
|
+
export function reasoningItemSummaryPartUnionSerializer(item) {
|
|
2050
|
+
switch (item.type) {
|
|
2051
|
+
case "summary_text":
|
|
2052
|
+
return reasoningItemSummaryTextPartSerializer(item);
|
|
2053
|
+
default:
|
|
2054
|
+
return reasoningItemSummaryPartSerializer(item);
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
export function reasoningItemSummaryTextPartSerializer(item) {
|
|
2058
|
+
return { type: item["type"], text: item["text"] };
|
|
2059
|
+
}
|
|
2060
|
+
export function itemReferenceItemParamSerializer(item) {
|
|
2061
|
+
return { type: item["type"], id: item["id"] };
|
|
2062
|
+
}
|
|
2063
|
+
export function imageGenToolCallItemParamSerializer(item) {
|
|
2064
|
+
return { type: item["type"], result: item["result"] };
|
|
2065
|
+
}
|
|
2066
|
+
export function codeInterpreterToolCallItemParamSerializer(item) {
|
|
2067
|
+
return {
|
|
2068
|
+
type: item["type"],
|
|
2069
|
+
container_id: item["container_id"],
|
|
2070
|
+
code: item["code"],
|
|
2071
|
+
outputs: !item["outputs"]
|
|
2072
|
+
? item["outputs"]
|
|
2073
|
+
: codeInterpreterOutputUnionArraySerializer(item["outputs"]),
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
export function codeInterpreterOutputUnionArraySerializer(result) {
|
|
2077
|
+
return result.map((item) => {
|
|
2078
|
+
return codeInterpreterOutputUnionSerializer(item);
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
export function codeInterpreterOutputSerializer(item) {
|
|
2082
|
+
return { type: item["type"] };
|
|
2083
|
+
}
|
|
2084
|
+
export function codeInterpreterOutputUnionSerializer(item) {
|
|
2085
|
+
switch (item.type) {
|
|
2086
|
+
case "image":
|
|
2087
|
+
return codeInterpreterOutputImageSerializer(item);
|
|
2088
|
+
case "logs":
|
|
2089
|
+
return codeInterpreterOutputLogsSerializer(item);
|
|
2090
|
+
default:
|
|
2091
|
+
return codeInterpreterOutputSerializer(item);
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
export function codeInterpreterOutputImageSerializer(item) {
|
|
2095
|
+
return { type: item["type"], url: item["url"] };
|
|
2096
|
+
}
|
|
2097
|
+
export function codeInterpreterOutputLogsSerializer(item) {
|
|
2098
|
+
return { type: item["type"], logs: item["logs"] };
|
|
2099
|
+
}
|
|
2100
|
+
export function localShellToolCallItemParamSerializer(item) {
|
|
2101
|
+
return {
|
|
2102
|
+
type: item["type"],
|
|
2103
|
+
call_id: item["call_id"],
|
|
2104
|
+
action: localShellExecActionSerializer(item["action"]),
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
export function localShellExecActionSerializer(item) {
|
|
2108
|
+
return {
|
|
2109
|
+
type: item["type"],
|
|
2110
|
+
command: item["command"].map((p) => {
|
|
2111
|
+
return p;
|
|
2112
|
+
}),
|
|
2113
|
+
timeout_ms: item["timeout_ms"],
|
|
2114
|
+
working_directory: item["working_directory"],
|
|
2115
|
+
env: item["env"],
|
|
2116
|
+
user: item["user"],
|
|
2117
|
+
};
|
|
2118
|
+
}
|
|
2119
|
+
export function localShellToolCallOutputItemParamSerializer(item) {
|
|
2120
|
+
return { type: item["type"], output: item["output"] };
|
|
2121
|
+
}
|
|
2122
|
+
export function mcpListToolsItemParamSerializer(item) {
|
|
2123
|
+
return {
|
|
2124
|
+
type: item["type"],
|
|
2125
|
+
server_label: item["server_label"],
|
|
2126
|
+
tools: mcpListToolsToolArraySerializer(item["tools"]),
|
|
2127
|
+
error: item["error"],
|
|
2128
|
+
};
|
|
2129
|
+
}
|
|
2130
|
+
export function mcpListToolsToolArraySerializer(result) {
|
|
2131
|
+
return result.map((item) => {
|
|
2132
|
+
return mcpListToolsToolSerializer(item);
|
|
2133
|
+
});
|
|
2134
|
+
}
|
|
2135
|
+
export function mcpListToolsToolSerializer(item) {
|
|
2136
|
+
return {
|
|
2137
|
+
name: item["name"],
|
|
2138
|
+
description: item["description"],
|
|
2139
|
+
input_schema: item["input_schema"],
|
|
2140
|
+
annotations: item["annotations"],
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2143
|
+
export function mcpApprovalRequestItemParamSerializer(item) {
|
|
2144
|
+
return {
|
|
2145
|
+
type: item["type"],
|
|
2146
|
+
server_label: item["server_label"],
|
|
2147
|
+
name: item["name"],
|
|
2148
|
+
arguments: item["arguments"],
|
|
2149
|
+
};
|
|
2150
|
+
}
|
|
2151
|
+
export function mcpApprovalResponseItemParamSerializer(item) {
|
|
2152
|
+
return {
|
|
2153
|
+
type: item["type"],
|
|
2154
|
+
approval_request_id: item["approval_request_id"],
|
|
2155
|
+
approve: item["approve"],
|
|
2156
|
+
reason: item["reason"],
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
export function mcpCallItemParamSerializer(item) {
|
|
2160
|
+
return {
|
|
2161
|
+
type: item["type"],
|
|
2162
|
+
server_label: item["server_label"],
|
|
2163
|
+
name: item["name"],
|
|
2164
|
+
arguments: item["arguments"],
|
|
2165
|
+
output: item["output"],
|
|
2166
|
+
error: item["error"],
|
|
2167
|
+
};
|
|
2168
|
+
}
|
|
2169
|
+
export function memorySearchToolCallItemParamSerializer(item) {
|
|
2170
|
+
return {
|
|
2171
|
+
type: item["type"],
|
|
2172
|
+
results: !item["results"] ? item["results"] : memorySearchItemArraySerializer(item["results"]),
|
|
2173
|
+
};
|
|
2174
|
+
}
|
|
2175
|
+
export function memorySearchItemArraySerializer(result) {
|
|
2176
|
+
return result.map((item) => {
|
|
2177
|
+
return memorySearchItemSerializer(item);
|
|
2178
|
+
});
|
|
2179
|
+
}
|
|
2180
|
+
export function memorySearchItemArrayDeserializer(result) {
|
|
2181
|
+
return result.map((item) => {
|
|
2182
|
+
return memorySearchItemDeserializer(item);
|
|
2183
|
+
});
|
|
2184
|
+
}
|
|
2185
|
+
export function memorySearchItemSerializer(item) {
|
|
2186
|
+
return { memory_item: memoryItemUnionSerializer(item["memory_item"]) };
|
|
2187
|
+
}
|
|
2188
|
+
export function memorySearchItemDeserializer(item) {
|
|
2189
|
+
return {
|
|
2190
|
+
memory_item: memoryItemUnionDeserializer(item["memory_item"]),
|
|
2191
|
+
};
|
|
2192
|
+
}
|
|
2193
|
+
export function memoryItemSerializer(item) {
|
|
2194
|
+
return {
|
|
2195
|
+
memory_id: item["memory_id"],
|
|
2196
|
+
updated_at: (item["updated_at"].getTime() / 1000) | 0,
|
|
2197
|
+
scope: item["scope"],
|
|
2198
|
+
content: item["content"],
|
|
2199
|
+
kind: item["kind"],
|
|
2200
|
+
};
|
|
2201
|
+
}
|
|
2202
|
+
export function memoryItemDeserializer(item) {
|
|
2203
|
+
return {
|
|
2204
|
+
memory_id: item["memory_id"],
|
|
2205
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
2206
|
+
scope: item["scope"],
|
|
2207
|
+
content: item["content"],
|
|
2208
|
+
kind: item["kind"],
|
|
2209
|
+
};
|
|
2210
|
+
}
|
|
2211
|
+
export function memoryItemUnionSerializer(item) {
|
|
2212
|
+
switch (item.kind) {
|
|
2213
|
+
case "user_profile":
|
|
2214
|
+
return userProfileMemoryItemSerializer(item);
|
|
2215
|
+
case "chat_summary":
|
|
2216
|
+
return chatSummaryMemoryItemSerializer(item);
|
|
2217
|
+
default:
|
|
2218
|
+
return memoryItemSerializer(item);
|
|
2219
|
+
}
|
|
2220
|
+
}
|
|
2221
|
+
export function memoryItemUnionDeserializer(item) {
|
|
2222
|
+
switch (item.kind) {
|
|
2223
|
+
case "user_profile":
|
|
2224
|
+
return userProfileMemoryItemDeserializer(item);
|
|
2225
|
+
case "chat_summary":
|
|
2226
|
+
return chatSummaryMemoryItemDeserializer(item);
|
|
2227
|
+
default:
|
|
2228
|
+
return memoryItemDeserializer(item);
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
export function userProfileMemoryItemSerializer(item) {
|
|
2232
|
+
return {
|
|
2233
|
+
memory_id: item["memory_id"],
|
|
2234
|
+
updated_at: (item["updated_at"].getTime() / 1000) | 0,
|
|
2235
|
+
scope: item["scope"],
|
|
2236
|
+
content: item["content"],
|
|
2237
|
+
kind: item["kind"],
|
|
2238
|
+
};
|
|
2239
|
+
}
|
|
2240
|
+
export function userProfileMemoryItemDeserializer(item) {
|
|
2241
|
+
return {
|
|
2242
|
+
memory_id: item["memory_id"],
|
|
2243
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
2244
|
+
scope: item["scope"],
|
|
2245
|
+
content: item["content"],
|
|
2246
|
+
kind: item["kind"],
|
|
2247
|
+
};
|
|
2248
|
+
}
|
|
2249
|
+
export function chatSummaryMemoryItemSerializer(item) {
|
|
2250
|
+
return {
|
|
2251
|
+
memory_id: item["memory_id"],
|
|
2252
|
+
updated_at: (item["updated_at"].getTime() / 1000) | 0,
|
|
2253
|
+
scope: item["scope"],
|
|
2254
|
+
content: item["content"],
|
|
2255
|
+
kind: item["kind"],
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
export function chatSummaryMemoryItemDeserializer(item) {
|
|
2259
|
+
return {
|
|
2260
|
+
memory_id: item["memory_id"],
|
|
2261
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
2262
|
+
scope: item["scope"],
|
|
2263
|
+
content: item["content"],
|
|
2264
|
+
kind: item["kind"],
|
|
2265
|
+
};
|
|
2266
|
+
}
|
|
2267
|
+
export function itemParamUnionArraySerializer(result) {
|
|
2268
|
+
return result.map((item) => {
|
|
2269
|
+
return itemParamUnionSerializer(item);
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
export function memoryStoreSearchResponseDeserializer(item) {
|
|
2273
|
+
return {
|
|
2274
|
+
search_id: item["search_id"],
|
|
2275
|
+
memories: memorySearchItemArrayDeserializer(item["memories"]),
|
|
2276
|
+
usage: memoryStoreOperationUsageDeserializer(item["usage"]),
|
|
2277
|
+
};
|
|
2278
|
+
}
|
|
2279
|
+
export function memoryStoreOperationUsageDeserializer(item) {
|
|
2280
|
+
return {
|
|
2281
|
+
embedding_tokens: item["embedding_tokens"],
|
|
2282
|
+
input_tokens: item["input_tokens"],
|
|
2283
|
+
input_tokens_details: _memoryStoreOperationUsageInputTokensDetailsDeserializer(item["input_tokens_details"]),
|
|
2284
|
+
output_tokens: item["output_tokens"],
|
|
2285
|
+
output_tokens_details: _memoryStoreOperationUsageOutputTokensDetailsDeserializer(item["output_tokens_details"]),
|
|
2286
|
+
total_tokens: item["total_tokens"],
|
|
2287
|
+
};
|
|
2288
|
+
}
|
|
2289
|
+
export function _memoryStoreOperationUsageInputTokensDetailsDeserializer(item) {
|
|
2290
|
+
return {
|
|
2291
|
+
cached_tokens: item["cached_tokens"],
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
export function _memoryStoreOperationUsageOutputTokensDetailsDeserializer(item) {
|
|
2295
|
+
return {
|
|
2296
|
+
reasoning_tokens: item["reasoning_tokens"],
|
|
2297
|
+
};
|
|
2298
|
+
}
|
|
2299
|
+
export function memoryStoreUpdateResponseDeserializer(item) {
|
|
2300
|
+
return {
|
|
2301
|
+
update_id: item["update_id"],
|
|
2302
|
+
status: item["status"],
|
|
2303
|
+
superseded_by: item["superseded_by"],
|
|
2304
|
+
result: !item["result"] ? item["result"] : MemoryStoreUpdateResultDeserializer(item["result"]),
|
|
2305
|
+
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
export function MemoryStoreUpdateResultDeserializer(item) {
|
|
2309
|
+
return {
|
|
2310
|
+
memory_operations: memoryOperationArrayDeserializer(item["memory_operations"]),
|
|
2311
|
+
usage: memoryStoreOperationUsageDeserializer(item["usage"]),
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
export function memoryOperationArrayDeserializer(result) {
|
|
2315
|
+
return result.map((item) => {
|
|
2316
|
+
return memoryOperationDeserializer(item);
|
|
2317
|
+
});
|
|
2318
|
+
}
|
|
2319
|
+
export function memoryOperationDeserializer(item) {
|
|
2320
|
+
return {
|
|
2321
|
+
kind: item["kind"],
|
|
2322
|
+
memory_item: memoryItemUnionDeserializer(item["memory_item"]),
|
|
2323
|
+
};
|
|
2324
|
+
}
|
|
2325
|
+
export function memoryStoreDeleteScopeResponseDeserializer(item) {
|
|
2326
|
+
return {
|
|
2327
|
+
object: item["object"],
|
|
2328
|
+
name: item["name"],
|
|
2329
|
+
scope: item["scope"],
|
|
2330
|
+
deleted: item["deleted"],
|
|
2331
|
+
};
|
|
2332
|
+
}
|
|
2333
|
+
export function connectionDeserializer(item) {
|
|
2334
|
+
return {
|
|
2335
|
+
name: item["name"],
|
|
2336
|
+
id: item["id"],
|
|
2337
|
+
type: item["type"],
|
|
2338
|
+
target: item["target"],
|
|
2339
|
+
isDefault: item["isDefault"],
|
|
2340
|
+
credentials: baseCredentialsUnionDeserializer(item["credentials"]),
|
|
2341
|
+
metadata: item["metadata"],
|
|
2342
|
+
};
|
|
2343
|
+
}
|
|
2344
|
+
export function baseCredentialsDeserializer(item) {
|
|
2345
|
+
return {
|
|
2346
|
+
type: item["type"],
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
export function baseCredentialsUnionDeserializer(item) {
|
|
2350
|
+
switch (item.type) {
|
|
2351
|
+
case "ApiKey":
|
|
2352
|
+
return apiKeyCredentialsDeserializer(item);
|
|
2353
|
+
case "AAD":
|
|
2354
|
+
return entraIDCredentialsDeserializer(item);
|
|
2355
|
+
case "CustomKeys":
|
|
2356
|
+
return customCredentialDeserializer(item);
|
|
2357
|
+
case "SAS":
|
|
2358
|
+
return sasCredentialsDeserializer(item);
|
|
2359
|
+
case "None":
|
|
2360
|
+
return noAuthenticationCredentialsDeserializer(item);
|
|
2361
|
+
case "AgenticIdentityToken":
|
|
2362
|
+
return agenticIdentityCredentialsDeserializer(item);
|
|
2363
|
+
default:
|
|
2364
|
+
return baseCredentialsDeserializer(item);
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
export function apiKeyCredentialsDeserializer(item) {
|
|
2368
|
+
return {
|
|
2369
|
+
type: item["type"],
|
|
2370
|
+
apiKey: item["key"],
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
export function entraIDCredentialsDeserializer(item) {
|
|
2374
|
+
return {
|
|
2375
|
+
type: item["type"],
|
|
2376
|
+
};
|
|
2377
|
+
}
|
|
2378
|
+
export function customCredentialDeserializer(item) {
|
|
2379
|
+
return {
|
|
2380
|
+
additionalProperties: serializeRecord(item, ["type"]),
|
|
2381
|
+
type: item["type"],
|
|
2382
|
+
};
|
|
2383
|
+
}
|
|
2384
|
+
export function sasCredentialsDeserializer(item) {
|
|
2385
|
+
return {
|
|
2386
|
+
type: item["type"],
|
|
2387
|
+
sasToken: item["SAS"],
|
|
2388
|
+
};
|
|
2389
|
+
}
|
|
2390
|
+
export function noAuthenticationCredentialsDeserializer(item) {
|
|
2391
|
+
return {
|
|
2392
|
+
type: item["type"],
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
export function agenticIdentityCredentialsDeserializer(item) {
|
|
2396
|
+
return {
|
|
2397
|
+
type: item["type"],
|
|
2398
|
+
};
|
|
2399
|
+
}
|
|
2400
|
+
export function _pagedConnectionDeserializer(item) {
|
|
2401
|
+
return {
|
|
2402
|
+
value: connectionArrayDeserializer(item["value"]),
|
|
2403
|
+
nextLink: item["nextLink"],
|
|
2404
|
+
};
|
|
2405
|
+
}
|
|
2406
|
+
export function connectionArrayDeserializer(result) {
|
|
2407
|
+
return result.map((item) => {
|
|
2408
|
+
return connectionDeserializer(item);
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2411
|
+
export function _pagedDatasetVersionDeserializer(item) {
|
|
2412
|
+
return {
|
|
2413
|
+
value: datasetVersionUnionArrayDeserializer(item["value"]),
|
|
2414
|
+
nextLink: item["nextLink"],
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
export function datasetVersionUnionArraySerializer(result) {
|
|
2418
|
+
return result.map((item) => {
|
|
2419
|
+
return datasetVersionUnionSerializer(item);
|
|
2420
|
+
});
|
|
2421
|
+
}
|
|
2422
|
+
export function datasetVersionUnionArrayDeserializer(result) {
|
|
2423
|
+
return result.map((item) => {
|
|
2424
|
+
return datasetVersionUnionDeserializer(item);
|
|
2425
|
+
});
|
|
2426
|
+
}
|
|
2427
|
+
export function datasetVersionSerializer(item) {
|
|
2428
|
+
return {
|
|
2429
|
+
dataUri: item["dataUri"],
|
|
2430
|
+
type: item["type"],
|
|
2431
|
+
connectionName: item["connectionName"],
|
|
2432
|
+
description: item["description"],
|
|
2433
|
+
tags: item["tags"],
|
|
2434
|
+
};
|
|
2435
|
+
}
|
|
2436
|
+
export function datasetVersionDeserializer(item) {
|
|
2437
|
+
return {
|
|
2438
|
+
dataUri: item["dataUri"],
|
|
2439
|
+
type: item["type"],
|
|
2440
|
+
isReference: item["isReference"],
|
|
2441
|
+
connectionName: item["connectionName"],
|
|
2442
|
+
id: item["id"],
|
|
2443
|
+
name: item["name"],
|
|
2444
|
+
version: item["version"],
|
|
2445
|
+
description: item["description"],
|
|
2446
|
+
tags: item["tags"],
|
|
2447
|
+
};
|
|
2448
|
+
}
|
|
2449
|
+
export function datasetVersionUnionSerializer(item) {
|
|
2450
|
+
switch (item.type) {
|
|
2451
|
+
case "uri_file":
|
|
2452
|
+
return fileDatasetVersionSerializer(item);
|
|
2453
|
+
case "uri_folder":
|
|
2454
|
+
return folderDatasetVersionSerializer(item);
|
|
2455
|
+
default:
|
|
2456
|
+
return datasetVersionSerializer(item);
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
export function datasetVersionUnionDeserializer(item) {
|
|
2460
|
+
switch (item.type) {
|
|
2461
|
+
case "uri_file":
|
|
2462
|
+
return fileDatasetVersionDeserializer(item);
|
|
2463
|
+
case "uri_folder":
|
|
2464
|
+
return folderDatasetVersionDeserializer(item);
|
|
2465
|
+
default:
|
|
2466
|
+
return datasetVersionDeserializer(item);
|
|
2467
|
+
}
|
|
2468
|
+
}
|
|
2469
|
+
export function fileDatasetVersionSerializer(item) {
|
|
2470
|
+
return {
|
|
2471
|
+
dataUri: item["dataUri"],
|
|
2472
|
+
type: item["type"],
|
|
2473
|
+
connectionName: item["connectionName"],
|
|
2474
|
+
description: item["description"],
|
|
2475
|
+
tags: item["tags"],
|
|
2476
|
+
};
|
|
2477
|
+
}
|
|
2478
|
+
export function fileDatasetVersionDeserializer(item) {
|
|
2479
|
+
return {
|
|
2480
|
+
dataUri: item["dataUri"],
|
|
2481
|
+
type: item["type"],
|
|
2482
|
+
isReference: item["isReference"],
|
|
2483
|
+
connectionName: item["connectionName"],
|
|
2484
|
+
id: item["id"],
|
|
2485
|
+
name: item["name"],
|
|
2486
|
+
version: item["version"],
|
|
2487
|
+
description: item["description"],
|
|
2488
|
+
tags: item["tags"],
|
|
2489
|
+
};
|
|
2490
|
+
}
|
|
2491
|
+
export function folderDatasetVersionSerializer(item) {
|
|
2492
|
+
return {
|
|
2493
|
+
dataUri: item["dataUri"],
|
|
2494
|
+
type: item["type"],
|
|
2495
|
+
connectionName: item["connectionName"],
|
|
2496
|
+
description: item["description"],
|
|
2497
|
+
tags: item["tags"],
|
|
2498
|
+
};
|
|
2499
|
+
}
|
|
2500
|
+
export function folderDatasetVersionDeserializer(item) {
|
|
2501
|
+
return {
|
|
2502
|
+
dataUri: item["dataUri"],
|
|
2503
|
+
type: item["type"],
|
|
2504
|
+
isReference: item["isReference"],
|
|
2505
|
+
connectionName: item["connectionName"],
|
|
2506
|
+
id: item["id"],
|
|
2507
|
+
name: item["name"],
|
|
2508
|
+
version: item["version"],
|
|
2509
|
+
description: item["description"],
|
|
2510
|
+
tags: item["tags"],
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
export function pendingUploadRequestSerializer(item) {
|
|
2514
|
+
return {
|
|
2515
|
+
pendingUploadId: item["pendingUploadId"],
|
|
2516
|
+
connectionName: item["connectionName"],
|
|
2517
|
+
pendingUploadType: item["pendingUploadType"],
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2520
|
+
export function pendingUploadResponseDeserializer(item) {
|
|
2521
|
+
return {
|
|
2522
|
+
blobReference: blobReferenceDeserializer(item["blobReference"]),
|
|
2523
|
+
pendingUploadId: item["pendingUploadId"],
|
|
2524
|
+
version: item["version"],
|
|
2525
|
+
pendingUploadType: item["pendingUploadType"],
|
|
2526
|
+
};
|
|
2527
|
+
}
|
|
2528
|
+
export function blobReferenceDeserializer(item) {
|
|
2529
|
+
return {
|
|
2530
|
+
blobUri: item["blobUri"],
|
|
2531
|
+
storageAccountArmId: item["storageAccountArmId"],
|
|
2532
|
+
credential: SasCredentialDeserializer(item["credential"]),
|
|
2533
|
+
};
|
|
2534
|
+
}
|
|
2535
|
+
export function SasCredentialDeserializer(item) {
|
|
2536
|
+
return {
|
|
2537
|
+
sasUri: item["sasUri"],
|
|
2538
|
+
type: item["type"],
|
|
2539
|
+
};
|
|
2540
|
+
}
|
|
2541
|
+
export function datasetCredentialDeserializer(item) {
|
|
2542
|
+
return {
|
|
2543
|
+
blobReference: blobReferenceDeserializer(item["blobReference"]),
|
|
2544
|
+
};
|
|
2545
|
+
}
|
|
2546
|
+
export function _pagedIndexDeserializer(item) {
|
|
2547
|
+
return {
|
|
2548
|
+
value: indexUnionArrayDeserializer(item["value"]),
|
|
2549
|
+
nextLink: item["nextLink"],
|
|
2550
|
+
};
|
|
2551
|
+
}
|
|
2552
|
+
export function indexUnionArraySerializer(result) {
|
|
2553
|
+
return result.map((item) => {
|
|
2554
|
+
return indexUnionSerializer(item);
|
|
2555
|
+
});
|
|
2556
|
+
}
|
|
2557
|
+
export function indexUnionArrayDeserializer(result) {
|
|
2558
|
+
return result.map((item) => {
|
|
2559
|
+
return indexUnionDeserializer(item);
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2562
|
+
export function indexSerializer(item) {
|
|
2563
|
+
return {
|
|
2564
|
+
type: item["type"],
|
|
2565
|
+
description: item["description"],
|
|
2566
|
+
tags: item["tags"],
|
|
2567
|
+
};
|
|
2568
|
+
}
|
|
2569
|
+
export function indexDeserializer(item) {
|
|
2570
|
+
return {
|
|
2571
|
+
type: item["type"],
|
|
2572
|
+
id: item["id"],
|
|
2573
|
+
name: item["name"],
|
|
2574
|
+
version: item["version"],
|
|
2575
|
+
description: item["description"],
|
|
2576
|
+
tags: item["tags"],
|
|
2577
|
+
};
|
|
2578
|
+
}
|
|
2579
|
+
export function indexUnionSerializer(item) {
|
|
2580
|
+
switch (item.type) {
|
|
2581
|
+
case "AzureSearch":
|
|
2582
|
+
return azureAISearchIndexSerializer(item);
|
|
2583
|
+
case "ManagedAzureSearch":
|
|
2584
|
+
return managedAzureAISearchIndexSerializer(item);
|
|
2585
|
+
case "CosmosDBNoSqlVectorStore":
|
|
2586
|
+
return cosmosDBIndexSerializer(item);
|
|
2587
|
+
default:
|
|
2588
|
+
return indexSerializer(item);
|
|
2589
|
+
}
|
|
2590
|
+
}
|
|
2591
|
+
export function indexUnionDeserializer(item) {
|
|
2592
|
+
switch (item.type) {
|
|
2593
|
+
case "AzureSearch":
|
|
2594
|
+
return azureAISearchIndexDeserializer(item);
|
|
2595
|
+
case "ManagedAzureSearch":
|
|
2596
|
+
return managedAzureAISearchIndexDeserializer(item);
|
|
2597
|
+
case "CosmosDBNoSqlVectorStore":
|
|
2598
|
+
return cosmosDBIndexDeserializer(item);
|
|
2599
|
+
default:
|
|
2600
|
+
return indexDeserializer(item);
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
export function azureAISearchIndexSerializer(item) {
|
|
2604
|
+
return {
|
|
2605
|
+
type: item["type"],
|
|
2606
|
+
description: item["description"],
|
|
2607
|
+
tags: item["tags"],
|
|
2608
|
+
connectionName: item["connectionName"],
|
|
2609
|
+
indexName: item["indexName"],
|
|
2610
|
+
fieldMapping: !item["fieldMapping"]
|
|
2611
|
+
? item["fieldMapping"]
|
|
2612
|
+
: fieldMappingSerializer(item["fieldMapping"]),
|
|
2613
|
+
};
|
|
2614
|
+
}
|
|
2615
|
+
export function azureAISearchIndexDeserializer(item) {
|
|
2616
|
+
return {
|
|
2617
|
+
type: item["type"],
|
|
2618
|
+
id: item["id"],
|
|
2619
|
+
name: item["name"],
|
|
2620
|
+
version: item["version"],
|
|
2621
|
+
description: item["description"],
|
|
2622
|
+
tags: item["tags"],
|
|
2623
|
+
connectionName: item["connectionName"],
|
|
2624
|
+
indexName: item["indexName"],
|
|
2625
|
+
fieldMapping: !item["fieldMapping"]
|
|
2626
|
+
? item["fieldMapping"]
|
|
2627
|
+
: fieldMappingDeserializer(item["fieldMapping"]),
|
|
2628
|
+
};
|
|
2629
|
+
}
|
|
2630
|
+
export function fieldMappingSerializer(item) {
|
|
2631
|
+
return {
|
|
2632
|
+
contentFields: item["contentFields"].map((p) => {
|
|
2633
|
+
return p;
|
|
2634
|
+
}),
|
|
2635
|
+
filepathField: item["filepathField"],
|
|
2636
|
+
titleField: item["titleField"],
|
|
2637
|
+
urlField: item["urlField"],
|
|
2638
|
+
vectorFields: !item["vectorFields"]
|
|
2639
|
+
? item["vectorFields"]
|
|
2640
|
+
: item["vectorFields"].map((p) => {
|
|
2641
|
+
return p;
|
|
2642
|
+
}),
|
|
2643
|
+
metadataFields: !item["metadataFields"]
|
|
2644
|
+
? item["metadataFields"]
|
|
2645
|
+
: item["metadataFields"].map((p) => {
|
|
2646
|
+
return p;
|
|
2647
|
+
}),
|
|
2648
|
+
};
|
|
2649
|
+
}
|
|
2650
|
+
export function fieldMappingDeserializer(item) {
|
|
2651
|
+
return {
|
|
2652
|
+
contentFields: item["contentFields"].map((p) => {
|
|
2653
|
+
return p;
|
|
2654
|
+
}),
|
|
2655
|
+
filepathField: item["filepathField"],
|
|
2656
|
+
titleField: item["titleField"],
|
|
2657
|
+
urlField: item["urlField"],
|
|
2658
|
+
vectorFields: !item["vectorFields"]
|
|
2659
|
+
? item["vectorFields"]
|
|
2660
|
+
: item["vectorFields"].map((p) => {
|
|
2661
|
+
return p;
|
|
2662
|
+
}),
|
|
2663
|
+
metadataFields: !item["metadataFields"]
|
|
2664
|
+
? item["metadataFields"]
|
|
2665
|
+
: item["metadataFields"].map((p) => {
|
|
2666
|
+
return p;
|
|
2667
|
+
}),
|
|
2668
|
+
};
|
|
2669
|
+
}
|
|
2670
|
+
export function managedAzureAISearchIndexSerializer(item) {
|
|
2671
|
+
return {
|
|
2672
|
+
type: item["type"],
|
|
2673
|
+
description: item["description"],
|
|
2674
|
+
tags: item["tags"],
|
|
2675
|
+
vectorStoreId: item["vectorStoreId"],
|
|
2676
|
+
};
|
|
2677
|
+
}
|
|
2678
|
+
export function managedAzureAISearchIndexDeserializer(item) {
|
|
2679
|
+
return {
|
|
2680
|
+
type: item["type"],
|
|
2681
|
+
id: item["id"],
|
|
2682
|
+
name: item["name"],
|
|
2683
|
+
version: item["version"],
|
|
2684
|
+
description: item["description"],
|
|
2685
|
+
tags: item["tags"],
|
|
2686
|
+
vectorStoreId: item["vectorStoreId"],
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
export function cosmosDBIndexSerializer(item) {
|
|
2690
|
+
return {
|
|
2691
|
+
type: item["type"],
|
|
2692
|
+
description: item["description"],
|
|
2693
|
+
tags: item["tags"],
|
|
2694
|
+
connectionName: item["connectionName"],
|
|
2695
|
+
databaseName: item["databaseName"],
|
|
2696
|
+
containerName: item["containerName"],
|
|
2697
|
+
embeddingConfiguration: embeddingConfigurationSerializer(item["embeddingConfiguration"]),
|
|
2698
|
+
fieldMapping: fieldMappingSerializer(item["fieldMapping"]),
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
export function cosmosDBIndexDeserializer(item) {
|
|
2702
|
+
return {
|
|
2703
|
+
type: item["type"],
|
|
2704
|
+
id: item["id"],
|
|
2705
|
+
name: item["name"],
|
|
2706
|
+
version: item["version"],
|
|
2707
|
+
description: item["description"],
|
|
2708
|
+
tags: item["tags"],
|
|
2709
|
+
connectionName: item["connectionName"],
|
|
2710
|
+
databaseName: item["databaseName"],
|
|
2711
|
+
containerName: item["containerName"],
|
|
2712
|
+
embeddingConfiguration: embeddingConfigurationDeserializer(item["embeddingConfiguration"]),
|
|
2713
|
+
fieldMapping: fieldMappingDeserializer(item["fieldMapping"]),
|
|
2714
|
+
};
|
|
2715
|
+
}
|
|
2716
|
+
export function embeddingConfigurationSerializer(item) {
|
|
2717
|
+
return {
|
|
2718
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2719
|
+
embeddingField: item["embeddingField"],
|
|
2720
|
+
};
|
|
2721
|
+
}
|
|
2722
|
+
export function embeddingConfigurationDeserializer(item) {
|
|
2723
|
+
return {
|
|
2724
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2725
|
+
embeddingField: item["embeddingField"],
|
|
2726
|
+
};
|
|
2727
|
+
}
|
|
2728
|
+
export function deploymentDeserializer(item) {
|
|
2729
|
+
return {
|
|
2730
|
+
type: item["type"],
|
|
2731
|
+
name: item["name"],
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
export function deploymentUnionDeserializer(item) {
|
|
2735
|
+
switch (item.type) {
|
|
2736
|
+
case "ModelDeployment":
|
|
2737
|
+
return modelDeploymentDeserializer(item);
|
|
2738
|
+
default:
|
|
2739
|
+
return deploymentDeserializer(item);
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
export function modelDeploymentDeserializer(item) {
|
|
2743
|
+
return {
|
|
2744
|
+
type: item["type"],
|
|
2745
|
+
name: item["name"],
|
|
2746
|
+
modelName: item["modelName"],
|
|
2747
|
+
modelVersion: item["modelVersion"],
|
|
2748
|
+
modelPublisher: item["modelPublisher"],
|
|
2749
|
+
capabilities: item["capabilities"],
|
|
2750
|
+
sku: modelDeploymentSkuDeserializer(item["sku"]),
|
|
2751
|
+
connectionName: item["connectionName"],
|
|
2752
|
+
};
|
|
2753
|
+
}
|
|
2754
|
+
export function modelDeploymentSkuDeserializer(item) {
|
|
2755
|
+
return {
|
|
2756
|
+
capacity: item["capacity"],
|
|
2757
|
+
family: item["family"],
|
|
2758
|
+
name: item["name"],
|
|
2759
|
+
size: item["size"],
|
|
2760
|
+
tier: item["tier"],
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
export function _pagedDeploymentDeserializer(item) {
|
|
2764
|
+
return {
|
|
2765
|
+
value: deploymentUnionArrayDeserializer(item["value"]),
|
|
2766
|
+
nextLink: item["nextLink"],
|
|
2767
|
+
};
|
|
2768
|
+
}
|
|
2769
|
+
export function deploymentUnionArrayDeserializer(result) {
|
|
2770
|
+
return result.map((item) => {
|
|
2771
|
+
return deploymentUnionDeserializer(item);
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
2774
|
+
export function redTeamSerializer(item) {
|
|
2775
|
+
return {
|
|
2776
|
+
displayName: item["displayName"],
|
|
2777
|
+
numTurns: item["numTurns"],
|
|
2778
|
+
attackStrategies: !item["attackStrategies"]
|
|
2779
|
+
? item["attackStrategies"]
|
|
2780
|
+
: item["attackStrategies"].map((p) => {
|
|
2781
|
+
return p;
|
|
2782
|
+
}),
|
|
2783
|
+
simulationOnly: item["simulationOnly"],
|
|
2784
|
+
riskCategories: !item["riskCategories"]
|
|
2785
|
+
? item["riskCategories"]
|
|
2786
|
+
: item["riskCategories"].map((p) => {
|
|
2787
|
+
return p;
|
|
2788
|
+
}),
|
|
2789
|
+
applicationScenario: item["applicationScenario"],
|
|
2790
|
+
tags: item["tags"],
|
|
2791
|
+
properties: item["properties"],
|
|
2792
|
+
target: targetConfigUnionSerializer(item["target"]),
|
|
2793
|
+
};
|
|
2794
|
+
}
|
|
2795
|
+
export function redTeamDeserializer(item) {
|
|
2796
|
+
return {
|
|
2797
|
+
name: item["id"],
|
|
2798
|
+
displayName: item["displayName"],
|
|
2799
|
+
numTurns: item["numTurns"],
|
|
2800
|
+
attackStrategies: !item["attackStrategies"]
|
|
2801
|
+
? item["attackStrategies"]
|
|
2802
|
+
: item["attackStrategies"].map((p) => {
|
|
2803
|
+
return p;
|
|
2804
|
+
}),
|
|
2805
|
+
simulationOnly: item["simulationOnly"],
|
|
2806
|
+
riskCategories: !item["riskCategories"]
|
|
2807
|
+
? item["riskCategories"]
|
|
2808
|
+
: item["riskCategories"].map((p) => {
|
|
2809
|
+
return p;
|
|
2810
|
+
}),
|
|
2811
|
+
applicationScenario: item["applicationScenario"],
|
|
2812
|
+
tags: item["tags"],
|
|
2813
|
+
properties: item["properties"],
|
|
2814
|
+
status: item["status"],
|
|
2815
|
+
target: targetConfigUnionDeserializer(item["target"]),
|
|
2816
|
+
};
|
|
2817
|
+
}
|
|
2818
|
+
export function targetConfigSerializer(item) {
|
|
2819
|
+
return { type: item["type"] };
|
|
2820
|
+
}
|
|
2821
|
+
export function targetConfigDeserializer(item) {
|
|
2822
|
+
return {
|
|
2823
|
+
type: item["type"],
|
|
2824
|
+
};
|
|
2825
|
+
}
|
|
2826
|
+
export function targetConfigUnionSerializer(item) {
|
|
2827
|
+
switch (item.type) {
|
|
2828
|
+
case "AzureOpenAIModel":
|
|
2829
|
+
return azureOpenAIModelConfigurationSerializer(item);
|
|
2830
|
+
default:
|
|
2831
|
+
return targetConfigSerializer(item);
|
|
2832
|
+
}
|
|
2833
|
+
}
|
|
2834
|
+
export function targetConfigUnionDeserializer(item) {
|
|
2835
|
+
switch (item.type) {
|
|
2836
|
+
case "AzureOpenAIModel":
|
|
2837
|
+
return azureOpenAIModelConfigurationDeserializer(item);
|
|
2838
|
+
default:
|
|
2839
|
+
return targetConfigDeserializer(item);
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
export function azureOpenAIModelConfigurationSerializer(item) {
|
|
2843
|
+
return {
|
|
2844
|
+
type: item["type"],
|
|
2845
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2846
|
+
};
|
|
2847
|
+
}
|
|
2848
|
+
export function azureOpenAIModelConfigurationDeserializer(item) {
|
|
2849
|
+
return {
|
|
2850
|
+
type: item["type"],
|
|
2851
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2852
|
+
};
|
|
2853
|
+
}
|
|
2854
|
+
export function _pagedRedTeamDeserializer(item) {
|
|
2855
|
+
return {
|
|
2856
|
+
value: redTeamArrayDeserializer(item["value"]),
|
|
2857
|
+
nextLink: item["nextLink"],
|
|
2858
|
+
};
|
|
2859
|
+
}
|
|
2860
|
+
export function redTeamArraySerializer(result) {
|
|
2861
|
+
return result.map((item) => {
|
|
2862
|
+
return redTeamSerializer(item);
|
|
2863
|
+
});
|
|
2864
|
+
}
|
|
2865
|
+
export function redTeamArrayDeserializer(result) {
|
|
2866
|
+
return result.map((item) => {
|
|
2867
|
+
return redTeamDeserializer(item);
|
|
2868
|
+
});
|
|
2869
|
+
}
|
|
2870
|
+
export function evaluationRuleSerializer(item) {
|
|
2871
|
+
return {
|
|
2872
|
+
displayName: item["displayName"],
|
|
2873
|
+
description: item["description"],
|
|
2874
|
+
action: evaluationRuleActionUnionSerializer(item["action"]),
|
|
2875
|
+
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterSerializer(item["filter"]),
|
|
2876
|
+
eventType: item["eventType"],
|
|
2877
|
+
enabled: item["enabled"],
|
|
2878
|
+
};
|
|
2879
|
+
}
|
|
2880
|
+
export function evaluationRuleDeserializer(item) {
|
|
2881
|
+
return {
|
|
2882
|
+
id: item["id"],
|
|
2883
|
+
displayName: item["displayName"],
|
|
2884
|
+
description: item["description"],
|
|
2885
|
+
action: evaluationRuleActionUnionDeserializer(item["action"]),
|
|
2886
|
+
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterDeserializer(item["filter"]),
|
|
2887
|
+
eventType: item["eventType"],
|
|
2888
|
+
enabled: item["enabled"],
|
|
2889
|
+
systemData: item["systemData"],
|
|
2890
|
+
};
|
|
2891
|
+
}
|
|
2892
|
+
export function evaluationRuleActionSerializer(item) {
|
|
2893
|
+
return { type: item["type"] };
|
|
2894
|
+
}
|
|
2895
|
+
export function evaluationRuleActionDeserializer(item) {
|
|
2896
|
+
return {
|
|
2897
|
+
type: item["type"],
|
|
2898
|
+
};
|
|
2899
|
+
}
|
|
2900
|
+
export function evaluationRuleActionUnionSerializer(item) {
|
|
2901
|
+
switch (item.type) {
|
|
2902
|
+
case "continuousEvaluation":
|
|
2903
|
+
return continuousEvaluationRuleActionSerializer(item);
|
|
2904
|
+
case "humanEvaluation":
|
|
2905
|
+
return humanEvaluationRuleActionSerializer(item);
|
|
2906
|
+
default:
|
|
2907
|
+
return evaluationRuleActionSerializer(item);
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
export function evaluationRuleActionUnionDeserializer(item) {
|
|
2911
|
+
switch (item.type) {
|
|
2912
|
+
case "continuousEvaluation":
|
|
2913
|
+
return continuousEvaluationRuleActionDeserializer(item);
|
|
2914
|
+
case "humanEvaluation":
|
|
2915
|
+
return humanEvaluationRuleActionDeserializer(item);
|
|
2916
|
+
default:
|
|
2917
|
+
return evaluationRuleActionDeserializer(item);
|
|
2918
|
+
}
|
|
2919
|
+
}
|
|
2920
|
+
export function continuousEvaluationRuleActionSerializer(item) {
|
|
2921
|
+
return {
|
|
2922
|
+
type: item["type"],
|
|
2923
|
+
evalId: item["evalId"],
|
|
2924
|
+
maxHourlyRuns: item["maxHourlyRuns"],
|
|
2925
|
+
};
|
|
2926
|
+
}
|
|
2927
|
+
export function continuousEvaluationRuleActionDeserializer(item) {
|
|
2928
|
+
return {
|
|
2929
|
+
type: item["type"],
|
|
2930
|
+
evalId: item["evalId"],
|
|
2931
|
+
maxHourlyRuns: item["maxHourlyRuns"],
|
|
2932
|
+
};
|
|
2933
|
+
}
|
|
2934
|
+
export function humanEvaluationRuleActionSerializer(item) {
|
|
2935
|
+
return { type: item["type"], templateId: item["templateId"] };
|
|
2936
|
+
}
|
|
2937
|
+
export function humanEvaluationRuleActionDeserializer(item) {
|
|
2938
|
+
return {
|
|
2939
|
+
type: item["type"],
|
|
2940
|
+
templateId: item["templateId"],
|
|
2941
|
+
};
|
|
2942
|
+
}
|
|
2943
|
+
export function evaluationRuleFilterSerializer(item) {
|
|
2944
|
+
return { agentName: item["agentName"] };
|
|
2945
|
+
}
|
|
2946
|
+
export function evaluationRuleFilterDeserializer(item) {
|
|
2947
|
+
return {
|
|
2948
|
+
agentName: item["agentName"],
|
|
2949
|
+
};
|
|
2950
|
+
}
|
|
2951
|
+
export function _pagedEvaluationRuleDeserializer(item) {
|
|
2952
|
+
return {
|
|
2953
|
+
value: evaluationRuleArrayDeserializer(item["value"]),
|
|
2954
|
+
nextLink: item["nextLink"],
|
|
2955
|
+
};
|
|
2956
|
+
}
|
|
2957
|
+
export function evaluationRuleArraySerializer(result) {
|
|
2958
|
+
return result.map((item) => {
|
|
2959
|
+
return evaluationRuleSerializer(item);
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2962
|
+
export function evaluationRuleArrayDeserializer(result) {
|
|
2963
|
+
return result.map((item) => {
|
|
2964
|
+
return evaluationRuleDeserializer(item);
|
|
2965
|
+
});
|
|
2966
|
+
}
|
|
2967
|
+
export function evaluationTaxonomySerializer(item) {
|
|
2968
|
+
return {
|
|
2969
|
+
description: item["description"],
|
|
2970
|
+
tags: item["tags"],
|
|
2971
|
+
taxonomyInput: evaluationTaxonomyInputUnionSerializer(item["taxonomyInput"]),
|
|
2972
|
+
taxonomyCategories: !item["taxonomyCategories"]
|
|
2973
|
+
? item["taxonomyCategories"]
|
|
2974
|
+
: taxonomyCategoryArraySerializer(item["taxonomyCategories"]),
|
|
2975
|
+
properties: item["properties"],
|
|
2976
|
+
};
|
|
2977
|
+
}
|
|
2978
|
+
export function evaluationTaxonomyDeserializer(item) {
|
|
2979
|
+
return {
|
|
2980
|
+
id: item["id"],
|
|
2981
|
+
name: item["name"],
|
|
2982
|
+
version: item["version"],
|
|
2983
|
+
description: item["description"],
|
|
2984
|
+
tags: item["tags"],
|
|
2985
|
+
taxonomyInput: evaluationTaxonomyInputUnionDeserializer(item["taxonomyInput"]),
|
|
2986
|
+
taxonomyCategories: !item["taxonomyCategories"]
|
|
2987
|
+
? item["taxonomyCategories"]
|
|
2988
|
+
: taxonomyCategoryArrayDeserializer(item["taxonomyCategories"]),
|
|
2989
|
+
properties: item["properties"],
|
|
2990
|
+
};
|
|
2991
|
+
}
|
|
2992
|
+
export function evaluationTaxonomyInputSerializer(item) {
|
|
2993
|
+
return { type: item["type"] };
|
|
2994
|
+
}
|
|
2995
|
+
export function evaluationTaxonomyInputDeserializer(item) {
|
|
2996
|
+
return {
|
|
2997
|
+
type: item["type"],
|
|
2998
|
+
};
|
|
2999
|
+
}
|
|
3000
|
+
export function evaluationTaxonomyInputUnionSerializer(item) {
|
|
3001
|
+
switch (item.type) {
|
|
3002
|
+
case "agent":
|
|
3003
|
+
return agentTaxonomyInputSerializer(item);
|
|
3004
|
+
default:
|
|
3005
|
+
return evaluationTaxonomyInputSerializer(item);
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
export function evaluationTaxonomyInputUnionDeserializer(item) {
|
|
3009
|
+
switch (item.type) {
|
|
3010
|
+
case "agent":
|
|
3011
|
+
return agentTaxonomyInputDeserializer(item);
|
|
3012
|
+
default:
|
|
3013
|
+
return evaluationTaxonomyInputDeserializer(item);
|
|
3014
|
+
}
|
|
3015
|
+
}
|
|
3016
|
+
export function agentTaxonomyInputSerializer(item) {
|
|
3017
|
+
return {
|
|
3018
|
+
type: item["type"],
|
|
3019
|
+
target: azureAIAgentTargetSerializer(item["target"]),
|
|
3020
|
+
riskCategories: item["riskCategories"].map((p) => {
|
|
3021
|
+
return p;
|
|
3022
|
+
}),
|
|
3023
|
+
};
|
|
3024
|
+
}
|
|
3025
|
+
export function agentTaxonomyInputDeserializer(item) {
|
|
3026
|
+
return {
|
|
3027
|
+
type: item["type"],
|
|
3028
|
+
target: azureAIAgentTargetDeserializer(item["target"]),
|
|
3029
|
+
riskCategories: item["riskCategories"].map((p) => {
|
|
3030
|
+
return p;
|
|
3031
|
+
}),
|
|
3032
|
+
};
|
|
3033
|
+
}
|
|
3034
|
+
export function azureAIAgentTargetSerializer(item) {
|
|
3035
|
+
return {
|
|
3036
|
+
type: item["type"],
|
|
3037
|
+
name: item["name"],
|
|
3038
|
+
version: item["version"],
|
|
3039
|
+
tool_descriptions: !item["tool_descriptions"]
|
|
3040
|
+
? item["tool_descriptions"]
|
|
3041
|
+
: toolDescriptionArraySerializer(item["tool_descriptions"]),
|
|
3042
|
+
};
|
|
3043
|
+
}
|
|
3044
|
+
export function azureAIAgentTargetDeserializer(item) {
|
|
3045
|
+
return {
|
|
3046
|
+
type: item["type"],
|
|
3047
|
+
name: item["name"],
|
|
3048
|
+
version: item["version"],
|
|
3049
|
+
tool_descriptions: !item["tool_descriptions"]
|
|
3050
|
+
? item["tool_descriptions"]
|
|
3051
|
+
: toolDescriptionArrayDeserializer(item["tool_descriptions"]),
|
|
3052
|
+
};
|
|
3053
|
+
}
|
|
3054
|
+
export function toolDescriptionArraySerializer(result) {
|
|
3055
|
+
return result.map((item) => {
|
|
3056
|
+
return toolDescriptionSerializer(item);
|
|
3057
|
+
});
|
|
3058
|
+
}
|
|
3059
|
+
export function toolDescriptionArrayDeserializer(result) {
|
|
3060
|
+
return result.map((item) => {
|
|
3061
|
+
return toolDescriptionDeserializer(item);
|
|
3062
|
+
});
|
|
3063
|
+
}
|
|
3064
|
+
export function toolDescriptionSerializer(item) {
|
|
3065
|
+
return { name: item["name"], description: item["description"] };
|
|
3066
|
+
}
|
|
3067
|
+
export function toolDescriptionDeserializer(item) {
|
|
3068
|
+
return {
|
|
3069
|
+
name: item["name"],
|
|
3070
|
+
description: item["description"],
|
|
3071
|
+
};
|
|
3072
|
+
}
|
|
3073
|
+
export function taxonomyCategoryArraySerializer(result) {
|
|
3074
|
+
return result.map((item) => {
|
|
3075
|
+
return taxonomyCategorySerializer(item);
|
|
3076
|
+
});
|
|
3077
|
+
}
|
|
3078
|
+
export function taxonomyCategoryArrayDeserializer(result) {
|
|
3079
|
+
return result.map((item) => {
|
|
3080
|
+
return taxonomyCategoryDeserializer(item);
|
|
3081
|
+
});
|
|
3082
|
+
}
|
|
3083
|
+
export function taxonomyCategorySerializer(item) {
|
|
3084
|
+
return {
|
|
3085
|
+
id: item["id"],
|
|
3086
|
+
name: item["name"],
|
|
3087
|
+
description: item["description"],
|
|
3088
|
+
riskCategory: item["riskCategory"],
|
|
3089
|
+
subCategories: taxonomySubCategoryArraySerializer(item["subCategories"]),
|
|
3090
|
+
properties: item["properties"],
|
|
3091
|
+
};
|
|
3092
|
+
}
|
|
3093
|
+
export function taxonomyCategoryDeserializer(item) {
|
|
3094
|
+
return {
|
|
3095
|
+
id: item["id"],
|
|
3096
|
+
name: item["name"],
|
|
3097
|
+
description: item["description"],
|
|
3098
|
+
riskCategory: item["riskCategory"],
|
|
3099
|
+
subCategories: taxonomySubCategoryArrayDeserializer(item["subCategories"]),
|
|
3100
|
+
properties: item["properties"],
|
|
3101
|
+
};
|
|
3102
|
+
}
|
|
3103
|
+
export function taxonomySubCategoryArraySerializer(result) {
|
|
3104
|
+
return result.map((item) => {
|
|
3105
|
+
return taxonomySubCategorySerializer(item);
|
|
3106
|
+
});
|
|
3107
|
+
}
|
|
3108
|
+
export function taxonomySubCategoryArrayDeserializer(result) {
|
|
3109
|
+
return result.map((item) => {
|
|
3110
|
+
return taxonomySubCategoryDeserializer(item);
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
export function taxonomySubCategorySerializer(item) {
|
|
3114
|
+
return {
|
|
3115
|
+
id: item["id"],
|
|
3116
|
+
name: item["name"],
|
|
3117
|
+
description: item["description"],
|
|
3118
|
+
enabled: item["enabled"],
|
|
3119
|
+
properties: item["properties"],
|
|
3120
|
+
};
|
|
3121
|
+
}
|
|
3122
|
+
export function taxonomySubCategoryDeserializer(item) {
|
|
3123
|
+
return {
|
|
3124
|
+
id: item["id"],
|
|
3125
|
+
name: item["name"],
|
|
3126
|
+
description: item["description"],
|
|
3127
|
+
enabled: item["enabled"],
|
|
3128
|
+
properties: item["properties"],
|
|
3129
|
+
};
|
|
3130
|
+
}
|
|
3131
|
+
export function targetSerializer(item) {
|
|
3132
|
+
return { type: item["type"] };
|
|
3133
|
+
}
|
|
3134
|
+
export function targetDeserializer(item) {
|
|
3135
|
+
return {
|
|
3136
|
+
type: item["type"],
|
|
3137
|
+
};
|
|
3138
|
+
}
|
|
3139
|
+
export function targetUnionSerializer(item) {
|
|
3140
|
+
switch (item.type) {
|
|
3141
|
+
case "azure_ai_agent":
|
|
3142
|
+
return azureAIAgentTargetSerializer(item);
|
|
3143
|
+
default:
|
|
3144
|
+
return targetSerializer(item);
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
export function targetUnionDeserializer(item) {
|
|
3148
|
+
switch (item.type) {
|
|
3149
|
+
case "azure_ai_agent":
|
|
3150
|
+
return azureAIAgentTargetDeserializer(item);
|
|
3151
|
+
default:
|
|
3152
|
+
return targetDeserializer(item);
|
|
3153
|
+
}
|
|
3154
|
+
}
|
|
3155
|
+
export function _pagedEvaluationTaxonomyDeserializer(item) {
|
|
3156
|
+
return {
|
|
3157
|
+
value: evaluationTaxonomyArrayDeserializer(item["value"]),
|
|
3158
|
+
nextLink: item["nextLink"],
|
|
3159
|
+
};
|
|
3160
|
+
}
|
|
3161
|
+
export function evaluationTaxonomyArraySerializer(result) {
|
|
3162
|
+
return result.map((item) => {
|
|
3163
|
+
return evaluationTaxonomySerializer(item);
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3166
|
+
export function evaluationTaxonomyArrayDeserializer(result) {
|
|
3167
|
+
return result.map((item) => {
|
|
3168
|
+
return evaluationTaxonomyDeserializer(item);
|
|
3169
|
+
});
|
|
3170
|
+
}
|
|
3171
|
+
export function _pagedEvaluatorVersionDeserializer(item) {
|
|
3172
|
+
return {
|
|
3173
|
+
value: evaluatorVersionArrayDeserializer(item["value"]),
|
|
3174
|
+
nextLink: item["nextLink"],
|
|
3175
|
+
};
|
|
3176
|
+
}
|
|
3177
|
+
export function evaluatorVersionArraySerializer(result) {
|
|
3178
|
+
return result.map((item) => {
|
|
3179
|
+
return evaluatorVersionSerializer(item);
|
|
3180
|
+
});
|
|
3181
|
+
}
|
|
3182
|
+
export function evaluatorVersionArrayDeserializer(result) {
|
|
3183
|
+
return result.map((item) => {
|
|
3184
|
+
return evaluatorVersionDeserializer(item);
|
|
3185
|
+
});
|
|
3186
|
+
}
|
|
3187
|
+
export function evaluatorVersionSerializer(item) {
|
|
3188
|
+
return {
|
|
3189
|
+
display_name: item["display_name"],
|
|
3190
|
+
metadata: item["metadata"],
|
|
3191
|
+
evaluator_type: item["evaluator_type"],
|
|
3192
|
+
categories: item["categories"].map((p) => {
|
|
3193
|
+
return p;
|
|
3194
|
+
}),
|
|
3195
|
+
definition: evaluatorDefinitionUnionSerializer(item["definition"]),
|
|
3196
|
+
description: item["description"],
|
|
3197
|
+
tags: item["tags"],
|
|
3198
|
+
};
|
|
3199
|
+
}
|
|
3200
|
+
export function evaluatorVersionDeserializer(item) {
|
|
3201
|
+
return {
|
|
3202
|
+
display_name: item["display_name"],
|
|
3203
|
+
metadata: item["metadata"],
|
|
3204
|
+
evaluator_type: item["evaluator_type"],
|
|
3205
|
+
categories: item["categories"].map((p) => {
|
|
3206
|
+
return p;
|
|
3207
|
+
}),
|
|
3208
|
+
definition: evaluatorDefinitionUnionDeserializer(item["definition"]),
|
|
3209
|
+
created_by: item["created_by"],
|
|
3210
|
+
created_at: item["created_at"],
|
|
3211
|
+
modified_at: item["modified_at"],
|
|
3212
|
+
id: item["id"],
|
|
3213
|
+
name: item["name"],
|
|
3214
|
+
version: item["version"],
|
|
3215
|
+
description: item["description"],
|
|
3216
|
+
tags: item["tags"],
|
|
3217
|
+
};
|
|
3218
|
+
}
|
|
3219
|
+
export function evaluatorDefinitionSerializer(item) {
|
|
3220
|
+
return {
|
|
3221
|
+
type: item["type"],
|
|
3222
|
+
init_parameters: item["init_parameters"],
|
|
3223
|
+
data_schema: item["data_schema"],
|
|
3224
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
3225
|
+
};
|
|
3226
|
+
}
|
|
3227
|
+
export function evaluatorDefinitionDeserializer(item) {
|
|
3228
|
+
return {
|
|
3229
|
+
type: item["type"],
|
|
3230
|
+
init_parameters: item["init_parameters"],
|
|
3231
|
+
data_schema: item["data_schema"],
|
|
3232
|
+
metrics: !item["metrics"]
|
|
3233
|
+
? item["metrics"]
|
|
3234
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
3235
|
+
};
|
|
3236
|
+
}
|
|
3237
|
+
export function evaluatorDefinitionUnionSerializer(item) {
|
|
3238
|
+
switch (item.type) {
|
|
3239
|
+
case "code":
|
|
3240
|
+
return codeBasedEvaluatorDefinitionSerializer(item);
|
|
3241
|
+
case "prompt":
|
|
3242
|
+
return promptBasedEvaluatorDefinitionSerializer(item);
|
|
3243
|
+
default:
|
|
3244
|
+
return evaluatorDefinitionSerializer(item);
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
export function evaluatorDefinitionUnionDeserializer(item) {
|
|
3248
|
+
switch (item.type) {
|
|
3249
|
+
case "code":
|
|
3250
|
+
return codeBasedEvaluatorDefinitionDeserializer(item);
|
|
3251
|
+
case "prompt":
|
|
3252
|
+
return promptBasedEvaluatorDefinitionDeserializer(item);
|
|
3253
|
+
default:
|
|
3254
|
+
return evaluatorDefinitionDeserializer(item);
|
|
3255
|
+
}
|
|
3256
|
+
}
|
|
3257
|
+
export function evaluatorMetricRecordSerializer(item) {
|
|
3258
|
+
const result = {};
|
|
3259
|
+
Object.keys(item).map((key) => {
|
|
3260
|
+
result[key] = !item[key] ? item[key] : evaluatorMetricSerializer(item[key]);
|
|
3261
|
+
});
|
|
3262
|
+
return result;
|
|
3263
|
+
}
|
|
3264
|
+
export function evaluatorMetricRecordDeserializer(item) {
|
|
3265
|
+
const result = {};
|
|
3266
|
+
Object.keys(item).map((key) => {
|
|
3267
|
+
result[key] = !item[key] ? item[key] : evaluatorMetricDeserializer(item[key]);
|
|
3268
|
+
});
|
|
3269
|
+
return result;
|
|
3270
|
+
}
|
|
3271
|
+
export function evaluatorMetricSerializer(item) {
|
|
3272
|
+
return {
|
|
3273
|
+
type: item["type"],
|
|
3274
|
+
desirable_direction: item["desirable_direction"],
|
|
3275
|
+
min_value: item["min_value"],
|
|
3276
|
+
max_value: item["max_value"],
|
|
3277
|
+
is_primary: item["is_primary"],
|
|
3278
|
+
};
|
|
3279
|
+
}
|
|
3280
|
+
export function evaluatorMetricDeserializer(item) {
|
|
3281
|
+
return {
|
|
3282
|
+
type: item["type"],
|
|
3283
|
+
desirable_direction: item["desirable_direction"],
|
|
3284
|
+
min_value: item["min_value"],
|
|
3285
|
+
max_value: item["max_value"],
|
|
3286
|
+
is_primary: item["is_primary"],
|
|
3287
|
+
};
|
|
3288
|
+
}
|
|
3289
|
+
export function codeBasedEvaluatorDefinitionSerializer(item) {
|
|
3290
|
+
return {
|
|
3291
|
+
type: item["type"],
|
|
3292
|
+
init_parameters: item["init_parameters"],
|
|
3293
|
+
data_schema: item["data_schema"],
|
|
3294
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
3295
|
+
code_text: item["code_text"],
|
|
3296
|
+
};
|
|
3297
|
+
}
|
|
3298
|
+
export function codeBasedEvaluatorDefinitionDeserializer(item) {
|
|
3299
|
+
return {
|
|
3300
|
+
type: item["type"],
|
|
3301
|
+
init_parameters: item["init_parameters"],
|
|
3302
|
+
data_schema: item["data_schema"],
|
|
3303
|
+
metrics: !item["metrics"]
|
|
3304
|
+
? item["metrics"]
|
|
3305
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
3306
|
+
code_text: item["code_text"],
|
|
3307
|
+
};
|
|
3308
|
+
}
|
|
3309
|
+
export function promptBasedEvaluatorDefinitionSerializer(item) {
|
|
3310
|
+
return {
|
|
3311
|
+
type: item["type"],
|
|
3312
|
+
init_parameters: item["init_parameters"],
|
|
3313
|
+
data_schema: item["data_schema"],
|
|
3314
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
3315
|
+
prompt_text: item["prompt_text"],
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
export function promptBasedEvaluatorDefinitionDeserializer(item) {
|
|
3319
|
+
return {
|
|
3320
|
+
type: item["type"],
|
|
3321
|
+
init_parameters: item["init_parameters"],
|
|
3322
|
+
data_schema: item["data_schema"],
|
|
3323
|
+
metrics: !item["metrics"]
|
|
3324
|
+
? item["metrics"]
|
|
3325
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
3326
|
+
prompt_text: item["prompt_text"],
|
|
3327
|
+
};
|
|
3328
|
+
}
|
|
3329
|
+
export function insightSerializer(item) {
|
|
3330
|
+
return {
|
|
3331
|
+
displayName: item["displayName"],
|
|
3332
|
+
request: insightRequestUnionSerializer(item["request"]),
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
export function insightDeserializer(item) {
|
|
3336
|
+
return {
|
|
3337
|
+
id: item["id"],
|
|
3338
|
+
metadata: insightsMetadataDeserializer(item["metadata"]),
|
|
3339
|
+
state: item["state"],
|
|
3340
|
+
displayName: item["displayName"],
|
|
3341
|
+
request: insightRequestUnionDeserializer(item["request"]),
|
|
3342
|
+
result: !item["result"] ? item["result"] : insightResultUnionDeserializer(item["result"]),
|
|
3343
|
+
};
|
|
3344
|
+
}
|
|
3345
|
+
export function insightsMetadataDeserializer(item) {
|
|
3346
|
+
return {
|
|
3347
|
+
createdAt: new Date(item["createdAt"]),
|
|
3348
|
+
completedAt: !item["completedAt"] ? item["completedAt"] : new Date(item["completedAt"]),
|
|
3349
|
+
};
|
|
3350
|
+
}
|
|
3351
|
+
export function insightRequestSerializer(item) {
|
|
3352
|
+
return { type: item["type"] };
|
|
3353
|
+
}
|
|
3354
|
+
export function insightRequestDeserializer(item) {
|
|
3355
|
+
return {
|
|
3356
|
+
type: item["type"],
|
|
3357
|
+
};
|
|
3358
|
+
}
|
|
3359
|
+
export function insightRequestUnionSerializer(item) {
|
|
3360
|
+
switch (item.type) {
|
|
3361
|
+
case "EvaluationRunClusterInsight":
|
|
3362
|
+
return evaluationRunClusterInsightsRequestSerializer(item);
|
|
3363
|
+
case "AgentClusterInsight":
|
|
3364
|
+
return agentClusterInsightsRequestSerializer(item);
|
|
3365
|
+
case "EvaluationComparison":
|
|
3366
|
+
return evaluationComparisonRequestSerializer(item);
|
|
3367
|
+
default:
|
|
3368
|
+
return insightRequestSerializer(item);
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
export function insightRequestUnionDeserializer(item) {
|
|
3372
|
+
switch (item.type) {
|
|
3373
|
+
case "EvaluationRunClusterInsight":
|
|
3374
|
+
return evaluationRunClusterInsightsRequestDeserializer(item);
|
|
3375
|
+
case "AgentClusterInsight":
|
|
3376
|
+
return agentClusterInsightsRequestDeserializer(item);
|
|
3377
|
+
case "EvaluationComparison":
|
|
3378
|
+
return evaluationComparisonRequestDeserializer(item);
|
|
3379
|
+
default:
|
|
3380
|
+
return insightRequestDeserializer(item);
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
export function evaluationRunClusterInsightsRequestSerializer(item) {
|
|
3384
|
+
return {
|
|
3385
|
+
type: item["type"],
|
|
3386
|
+
evalId: item["evalId"],
|
|
3387
|
+
runIds: item["runIds"].map((p) => {
|
|
3388
|
+
return p;
|
|
3389
|
+
}),
|
|
3390
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
3391
|
+
? item["modelConfiguration"]
|
|
3392
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
export function evaluationRunClusterInsightsRequestDeserializer(item) {
|
|
3396
|
+
return {
|
|
3397
|
+
type: item["type"],
|
|
3398
|
+
evalId: item["evalId"],
|
|
3399
|
+
runIds: item["runIds"].map((p) => {
|
|
3400
|
+
return p;
|
|
3401
|
+
}),
|
|
3402
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
3403
|
+
? item["modelConfiguration"]
|
|
3404
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
export function insightModelConfigurationSerializer(item) {
|
|
3408
|
+
return { modelDeploymentName: item["modelDeploymentName"] };
|
|
3409
|
+
}
|
|
3410
|
+
export function insightModelConfigurationDeserializer(item) {
|
|
3411
|
+
return {
|
|
3412
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
3413
|
+
};
|
|
3414
|
+
}
|
|
3415
|
+
export function agentClusterInsightsRequestSerializer(item) {
|
|
3416
|
+
return {
|
|
3417
|
+
type: item["type"],
|
|
3418
|
+
agentName: item["agentName"],
|
|
3419
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
3420
|
+
? item["modelConfiguration"]
|
|
3421
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
export function agentClusterInsightsRequestDeserializer(item) {
|
|
3425
|
+
return {
|
|
3426
|
+
type: item["type"],
|
|
3427
|
+
agentName: item["agentName"],
|
|
3428
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
3429
|
+
? item["modelConfiguration"]
|
|
3430
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
3431
|
+
};
|
|
3432
|
+
}
|
|
3433
|
+
export function evaluationComparisonRequestSerializer(item) {
|
|
3434
|
+
return {
|
|
3435
|
+
type: item["type"],
|
|
3436
|
+
evalId: item["evalId"],
|
|
3437
|
+
baselineRunId: item["baselineRunId"],
|
|
3438
|
+
treatmentRunIds: item["treatmentRunIds"].map((p) => {
|
|
3439
|
+
return p;
|
|
3440
|
+
}),
|
|
3441
|
+
};
|
|
3442
|
+
}
|
|
3443
|
+
export function evaluationComparisonRequestDeserializer(item) {
|
|
3444
|
+
return {
|
|
3445
|
+
type: item["type"],
|
|
3446
|
+
evalId: item["evalId"],
|
|
3447
|
+
baselineRunId: item["baselineRunId"],
|
|
3448
|
+
treatmentRunIds: item["treatmentRunIds"].map((p) => {
|
|
3449
|
+
return p;
|
|
3450
|
+
}),
|
|
335
3451
|
};
|
|
336
3452
|
}
|
|
337
|
-
export function
|
|
3453
|
+
export function insightResultDeserializer(item) {
|
|
3454
|
+
return {
|
|
3455
|
+
type: item["type"],
|
|
3456
|
+
};
|
|
3457
|
+
}
|
|
3458
|
+
export function insightResultUnionDeserializer(item) {
|
|
3459
|
+
switch (item.type) {
|
|
3460
|
+
case "EvaluationComparison":
|
|
3461
|
+
return evalCompareReportDeserializer(item);
|
|
3462
|
+
case "EvaluationRunClusterInsight":
|
|
3463
|
+
return evaluationRunClusterInsightResultDeserializer(item);
|
|
3464
|
+
case "AgentClusterInsight":
|
|
3465
|
+
return agentClusterInsightResultDeserializer(item);
|
|
3466
|
+
default:
|
|
3467
|
+
return insightResultDeserializer(item);
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
export function evalCompareReportDeserializer(item) {
|
|
3471
|
+
return {
|
|
3472
|
+
type: item["type"],
|
|
3473
|
+
comparisons: evalRunResultComparisonArrayDeserializer(item["comparisons"]),
|
|
3474
|
+
method: item["method"],
|
|
3475
|
+
};
|
|
3476
|
+
}
|
|
3477
|
+
export function evalRunResultComparisonArrayDeserializer(result) {
|
|
3478
|
+
return result.map((item) => {
|
|
3479
|
+
return evalRunResultComparisonDeserializer(item);
|
|
3480
|
+
});
|
|
3481
|
+
}
|
|
3482
|
+
export function evalRunResultComparisonDeserializer(item) {
|
|
3483
|
+
return {
|
|
3484
|
+
testingCriteria: item["testingCriteria"],
|
|
3485
|
+
metric: item["metric"],
|
|
3486
|
+
evaluator: item["evaluator"],
|
|
3487
|
+
baselineRunSummary: evalRunResultSummaryDeserializer(item["baselineRunSummary"]),
|
|
3488
|
+
compareItems: evalRunResultCompareItemArrayDeserializer(item["compareItems"]),
|
|
3489
|
+
};
|
|
3490
|
+
}
|
|
3491
|
+
export function evalRunResultSummaryDeserializer(item) {
|
|
3492
|
+
return {
|
|
3493
|
+
runId: item["runId"],
|
|
3494
|
+
sampleCount: item["sampleCount"],
|
|
3495
|
+
average: item["average"],
|
|
3496
|
+
standardDeviation: item["standardDeviation"],
|
|
3497
|
+
};
|
|
3498
|
+
}
|
|
3499
|
+
export function evalRunResultCompareItemArrayDeserializer(result) {
|
|
3500
|
+
return result.map((item) => {
|
|
3501
|
+
return evalRunResultCompareItemDeserializer(item);
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
export function evalRunResultCompareItemDeserializer(item) {
|
|
3505
|
+
return {
|
|
3506
|
+
treatmentRunId: item["treatmentRunId"],
|
|
3507
|
+
treatmentRunSummary: evalRunResultSummaryDeserializer(item["treatmentRunSummary"]),
|
|
3508
|
+
deltaEstimate: item["deltaEstimate"],
|
|
3509
|
+
pValue: item["pValue"],
|
|
3510
|
+
treatmentEffect: item["treatmentEffect"],
|
|
3511
|
+
};
|
|
3512
|
+
}
|
|
3513
|
+
export function evaluationRunClusterInsightResultDeserializer(item) {
|
|
338
3514
|
return {
|
|
339
3515
|
type: item["type"],
|
|
3516
|
+
clusterInsight: clusterInsightResultDeserializer(item["clusterInsight"]),
|
|
3517
|
+
};
|
|
3518
|
+
}
|
|
3519
|
+
export function clusterInsightResultDeserializer(item) {
|
|
3520
|
+
return {
|
|
3521
|
+
summary: insightSummaryDeserializer(item["summary"]),
|
|
3522
|
+
clusters: insightClusterArrayDeserializer(item["clusters"]),
|
|
3523
|
+
coordinates: !item["coordinates"]
|
|
3524
|
+
? item["coordinates"]
|
|
3525
|
+
: chartCoordinateRecordDeserializer(item["coordinates"]),
|
|
3526
|
+
};
|
|
3527
|
+
}
|
|
3528
|
+
export function insightSummaryDeserializer(item) {
|
|
3529
|
+
return {
|
|
3530
|
+
sampleCount: item["sampleCount"],
|
|
3531
|
+
uniqueSubclusterCount: item["uniqueSubclusterCount"],
|
|
3532
|
+
uniqueClusterCount: item["uniqueClusterCount"],
|
|
3533
|
+
method: item["method"],
|
|
3534
|
+
usage: clusterTokenUsageDeserializer(item["usage"]),
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
export function clusterTokenUsageDeserializer(item) {
|
|
3538
|
+
return {
|
|
3539
|
+
inputTokenUsage: item["inputTokenUsage"],
|
|
3540
|
+
outputTokenUsage: item["outputTokenUsage"],
|
|
3541
|
+
totalTokenUsage: item["totalTokenUsage"],
|
|
3542
|
+
};
|
|
3543
|
+
}
|
|
3544
|
+
export function insightClusterArrayDeserializer(result) {
|
|
3545
|
+
return result.map((item) => {
|
|
3546
|
+
return insightClusterDeserializer(item);
|
|
3547
|
+
});
|
|
3548
|
+
}
|
|
3549
|
+
export function insightClusterDeserializer(item) {
|
|
3550
|
+
return {
|
|
3551
|
+
id: item["id"],
|
|
3552
|
+
label: item["label"],
|
|
3553
|
+
suggestion: item["suggestion"],
|
|
3554
|
+
suggestionTitle: item["suggestionTitle"],
|
|
340
3555
|
description: item["description"],
|
|
341
|
-
|
|
342
|
-
|
|
3556
|
+
weight: item["weight"],
|
|
3557
|
+
subClusters: !item["subClusters"]
|
|
3558
|
+
? item["subClusters"]
|
|
3559
|
+
: insightClusterArrayDeserializer(item["subClusters"]),
|
|
3560
|
+
samples: !item["samples"]
|
|
3561
|
+
? item["samples"]
|
|
3562
|
+
: insightSampleUnionArrayDeserializer(item["samples"]),
|
|
343
3563
|
};
|
|
344
3564
|
}
|
|
345
|
-
export function
|
|
3565
|
+
export function insightSampleUnionArrayDeserializer(result) {
|
|
3566
|
+
return result.map((item) => {
|
|
3567
|
+
return insightSampleUnionDeserializer(item);
|
|
3568
|
+
});
|
|
3569
|
+
}
|
|
3570
|
+
export function insightSampleDeserializer(item) {
|
|
346
3571
|
return {
|
|
3572
|
+
id: item["id"],
|
|
347
3573
|
type: item["type"],
|
|
3574
|
+
features: item["features"],
|
|
3575
|
+
correlationInfo: item["correlationInfo"],
|
|
3576
|
+
};
|
|
3577
|
+
}
|
|
3578
|
+
export function insightSampleUnionDeserializer(item) {
|
|
3579
|
+
switch (item.type) {
|
|
3580
|
+
case "EvaluationResultSample":
|
|
3581
|
+
return evaluationResultSampleDeserializer(item);
|
|
3582
|
+
default:
|
|
3583
|
+
return insightSampleDeserializer(item);
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
export function evaluationResultSampleDeserializer(item) {
|
|
3587
|
+
return {
|
|
348
3588
|
id: item["id"],
|
|
3589
|
+
type: item["type"],
|
|
3590
|
+
features: item["features"],
|
|
3591
|
+
correlationInfo: item["correlationInfo"],
|
|
3592
|
+
evaluationResult: evalResultDeserializer(item["evaluationResult"]),
|
|
3593
|
+
};
|
|
3594
|
+
}
|
|
3595
|
+
export function evalResultDeserializer(item) {
|
|
3596
|
+
return {
|
|
349
3597
|
name: item["name"],
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
vectorStoreId: item["vectorStoreId"],
|
|
3598
|
+
type: item["type"],
|
|
3599
|
+
score: item["score"],
|
|
3600
|
+
passed: item["passed"],
|
|
354
3601
|
};
|
|
355
3602
|
}
|
|
356
|
-
export function
|
|
3603
|
+
export function chartCoordinateRecordDeserializer(item) {
|
|
3604
|
+
const result = {};
|
|
3605
|
+
Object.keys(item).map((key) => {
|
|
3606
|
+
result[key] = !item[key] ? item[key] : chartCoordinateDeserializer(item[key]);
|
|
3607
|
+
});
|
|
3608
|
+
return result;
|
|
3609
|
+
}
|
|
3610
|
+
export function chartCoordinateDeserializer(item) {
|
|
3611
|
+
return {
|
|
3612
|
+
x: item["x"],
|
|
3613
|
+
y: item["y"],
|
|
3614
|
+
size: item["size"],
|
|
3615
|
+
};
|
|
3616
|
+
}
|
|
3617
|
+
export function agentClusterInsightResultDeserializer(item) {
|
|
357
3618
|
return {
|
|
358
3619
|
type: item["type"],
|
|
3620
|
+
clusterInsight: clusterInsightResultDeserializer(item["clusterInsight"]),
|
|
3621
|
+
};
|
|
3622
|
+
}
|
|
3623
|
+
export function _pagedInsightDeserializer(item) {
|
|
3624
|
+
return {
|
|
3625
|
+
value: insightArrayDeserializer(item["value"]),
|
|
3626
|
+
nextLink: item["nextLink"],
|
|
3627
|
+
};
|
|
3628
|
+
}
|
|
3629
|
+
export function insightArraySerializer(result) {
|
|
3630
|
+
return result.map((item) => {
|
|
3631
|
+
return insightSerializer(item);
|
|
3632
|
+
});
|
|
3633
|
+
}
|
|
3634
|
+
export function insightArrayDeserializer(result) {
|
|
3635
|
+
return result.map((item) => {
|
|
3636
|
+
return insightDeserializer(item);
|
|
3637
|
+
});
|
|
3638
|
+
}
|
|
3639
|
+
export function scheduleSerializer(item) {
|
|
3640
|
+
return {
|
|
3641
|
+
displayName: item["displayName"],
|
|
359
3642
|
description: item["description"],
|
|
3643
|
+
enabled: item["enabled"],
|
|
3644
|
+
trigger: triggerUnionSerializer(item["trigger"]),
|
|
3645
|
+
task: scheduleTaskUnionSerializer(item["task"]),
|
|
360
3646
|
tags: item["tags"],
|
|
361
|
-
|
|
362
|
-
databaseName: item["databaseName"],
|
|
363
|
-
containerName: item["containerName"],
|
|
364
|
-
embeddingConfiguration: embeddingConfigurationSerializer(item["embeddingConfiguration"]),
|
|
365
|
-
fieldMapping: fieldMappingSerializer(item["fieldMapping"]),
|
|
3647
|
+
properties: item["properties"],
|
|
366
3648
|
};
|
|
367
3649
|
}
|
|
368
|
-
export function
|
|
3650
|
+
export function scheduleDeserializer(item) {
|
|
369
3651
|
return {
|
|
370
|
-
type: item["type"],
|
|
371
3652
|
id: item["id"],
|
|
372
|
-
|
|
373
|
-
version: item["version"],
|
|
3653
|
+
displayName: item["displayName"],
|
|
374
3654
|
description: item["description"],
|
|
3655
|
+
enabled: item["enabled"],
|
|
3656
|
+
provisioningStatus: item["provisioningStatus"],
|
|
3657
|
+
trigger: triggerUnionDeserializer(item["trigger"]),
|
|
3658
|
+
task: scheduleTaskUnionDeserializer(item["task"]),
|
|
375
3659
|
tags: item["tags"],
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
containerName: item["containerName"],
|
|
379
|
-
embeddingConfiguration: embeddingConfigurationDeserializer(item["embeddingConfiguration"]),
|
|
380
|
-
fieldMapping: fieldMappingDeserializer(item["fieldMapping"]),
|
|
3660
|
+
properties: item["properties"],
|
|
3661
|
+
systemData: item["systemData"],
|
|
381
3662
|
};
|
|
382
3663
|
}
|
|
383
|
-
export function
|
|
3664
|
+
export function triggerSerializer(item) {
|
|
3665
|
+
return { type: item["type"] };
|
|
3666
|
+
}
|
|
3667
|
+
export function triggerDeserializer(item) {
|
|
384
3668
|
return {
|
|
385
|
-
|
|
386
|
-
embeddingField: item["embeddingField"],
|
|
3669
|
+
type: item["type"],
|
|
387
3670
|
};
|
|
388
3671
|
}
|
|
389
|
-
export function
|
|
3672
|
+
export function triggerUnionSerializer(item) {
|
|
3673
|
+
switch (item.type) {
|
|
3674
|
+
case "Cron":
|
|
3675
|
+
return cronTriggerSerializer(item);
|
|
3676
|
+
case "Recurrence":
|
|
3677
|
+
return recurrenceTriggerSerializer(item);
|
|
3678
|
+
case "OneTime":
|
|
3679
|
+
return oneTimeTriggerSerializer(item);
|
|
3680
|
+
default:
|
|
3681
|
+
return triggerSerializer(item);
|
|
3682
|
+
}
|
|
3683
|
+
}
|
|
3684
|
+
export function triggerUnionDeserializer(item) {
|
|
3685
|
+
switch (item.type) {
|
|
3686
|
+
case "Cron":
|
|
3687
|
+
return cronTriggerDeserializer(item);
|
|
3688
|
+
case "Recurrence":
|
|
3689
|
+
return recurrenceTriggerDeserializer(item);
|
|
3690
|
+
case "OneTime":
|
|
3691
|
+
return oneTimeTriggerDeserializer(item);
|
|
3692
|
+
default:
|
|
3693
|
+
return triggerDeserializer(item);
|
|
3694
|
+
}
|
|
3695
|
+
}
|
|
3696
|
+
export function cronTriggerSerializer(item) {
|
|
390
3697
|
return {
|
|
391
|
-
|
|
392
|
-
|
|
3698
|
+
type: item["type"],
|
|
3699
|
+
expression: item["expression"],
|
|
3700
|
+
timeZone: item["timeZone"],
|
|
3701
|
+
startTime: item["startTime"],
|
|
3702
|
+
endTime: item["endTime"],
|
|
393
3703
|
};
|
|
394
3704
|
}
|
|
395
|
-
export function
|
|
3705
|
+
export function cronTriggerDeserializer(item) {
|
|
396
3706
|
return {
|
|
397
3707
|
type: item["type"],
|
|
398
|
-
|
|
3708
|
+
expression: item["expression"],
|
|
3709
|
+
timeZone: item["timeZone"],
|
|
3710
|
+
startTime: item["startTime"],
|
|
3711
|
+
endTime: item["endTime"],
|
|
399
3712
|
};
|
|
400
3713
|
}
|
|
401
|
-
export function
|
|
3714
|
+
export function recurrenceTriggerSerializer(item) {
|
|
3715
|
+
return {
|
|
3716
|
+
type: item["type"],
|
|
3717
|
+
startTime: item["startTime"],
|
|
3718
|
+
endTime: item["endTime"],
|
|
3719
|
+
timeZone: item["timeZone"],
|
|
3720
|
+
interval: item["interval"],
|
|
3721
|
+
schedule: recurrenceScheduleUnionSerializer(item["schedule"]),
|
|
3722
|
+
};
|
|
3723
|
+
}
|
|
3724
|
+
export function recurrenceTriggerDeserializer(item) {
|
|
3725
|
+
return {
|
|
3726
|
+
type: item["type"],
|
|
3727
|
+
startTime: item["startTime"],
|
|
3728
|
+
endTime: item["endTime"],
|
|
3729
|
+
timeZone: item["timeZone"],
|
|
3730
|
+
interval: item["interval"],
|
|
3731
|
+
schedule: recurrenceScheduleUnionDeserializer(item["schedule"]),
|
|
3732
|
+
};
|
|
3733
|
+
}
|
|
3734
|
+
export function recurrenceScheduleSerializer(item) {
|
|
3735
|
+
return { type: item["type"] };
|
|
3736
|
+
}
|
|
3737
|
+
export function recurrenceScheduleDeserializer(item) {
|
|
3738
|
+
return {
|
|
3739
|
+
type: item["type"],
|
|
3740
|
+
};
|
|
3741
|
+
}
|
|
3742
|
+
export function recurrenceScheduleUnionSerializer(item) {
|
|
402
3743
|
switch (item.type) {
|
|
403
|
-
case "
|
|
404
|
-
return
|
|
3744
|
+
case "Hourly":
|
|
3745
|
+
return hourlyRecurrenceScheduleSerializer(item);
|
|
3746
|
+
case "Daily":
|
|
3747
|
+
return dailyRecurrenceScheduleSerializer(item);
|
|
3748
|
+
case "Weekly":
|
|
3749
|
+
return weeklyRecurrenceScheduleSerializer(item);
|
|
3750
|
+
case "Monthly":
|
|
3751
|
+
return monthlyRecurrenceScheduleSerializer(item);
|
|
405
3752
|
default:
|
|
406
|
-
return
|
|
3753
|
+
return recurrenceScheduleSerializer(item);
|
|
407
3754
|
}
|
|
408
3755
|
}
|
|
409
|
-
export function
|
|
3756
|
+
export function recurrenceScheduleUnionDeserializer(item) {
|
|
3757
|
+
switch (item.type) {
|
|
3758
|
+
case "Hourly":
|
|
3759
|
+
return hourlyRecurrenceScheduleDeserializer(item);
|
|
3760
|
+
case "Daily":
|
|
3761
|
+
return dailyRecurrenceScheduleDeserializer(item);
|
|
3762
|
+
case "Weekly":
|
|
3763
|
+
return weeklyRecurrenceScheduleDeserializer(item);
|
|
3764
|
+
case "Monthly":
|
|
3765
|
+
return monthlyRecurrenceScheduleDeserializer(item);
|
|
3766
|
+
default:
|
|
3767
|
+
return recurrenceScheduleDeserializer(item);
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3770
|
+
export function hourlyRecurrenceScheduleSerializer(item) {
|
|
3771
|
+
return { type: item["type"] };
|
|
3772
|
+
}
|
|
3773
|
+
export function hourlyRecurrenceScheduleDeserializer(item) {
|
|
410
3774
|
return {
|
|
411
3775
|
type: item["type"],
|
|
412
|
-
name: item["name"],
|
|
413
|
-
modelName: item["modelName"],
|
|
414
|
-
modelVersion: item["modelVersion"],
|
|
415
|
-
modelPublisher: item["modelPublisher"],
|
|
416
|
-
capabilities: item["capabilities"],
|
|
417
|
-
sku: skuDeserializer(item["sku"]),
|
|
418
|
-
connectionName: item["connectionName"],
|
|
419
3776
|
};
|
|
420
3777
|
}
|
|
421
|
-
export function
|
|
3778
|
+
export function dailyRecurrenceScheduleSerializer(item) {
|
|
422
3779
|
return {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
tier: item["tier"],
|
|
3780
|
+
type: item["type"],
|
|
3781
|
+
hours: item["hours"].map((p) => {
|
|
3782
|
+
return p;
|
|
3783
|
+
}),
|
|
428
3784
|
};
|
|
429
3785
|
}
|
|
430
|
-
export function
|
|
3786
|
+
export function dailyRecurrenceScheduleDeserializer(item) {
|
|
431
3787
|
return {
|
|
432
|
-
|
|
3788
|
+
type: item["type"],
|
|
3789
|
+
hours: item["hours"].map((p) => {
|
|
3790
|
+
return p;
|
|
3791
|
+
}),
|
|
3792
|
+
};
|
|
3793
|
+
}
|
|
3794
|
+
export function weeklyRecurrenceScheduleSerializer(item) {
|
|
3795
|
+
return {
|
|
3796
|
+
type: item["type"],
|
|
3797
|
+
daysOfWeek: item["daysOfWeek"].map((p) => {
|
|
3798
|
+
return p;
|
|
3799
|
+
}),
|
|
3800
|
+
};
|
|
3801
|
+
}
|
|
3802
|
+
export function weeklyRecurrenceScheduleDeserializer(item) {
|
|
3803
|
+
return {
|
|
3804
|
+
type: item["type"],
|
|
3805
|
+
daysOfWeek: item["daysOfWeek"].map((p) => {
|
|
3806
|
+
return p;
|
|
3807
|
+
}),
|
|
3808
|
+
};
|
|
3809
|
+
}
|
|
3810
|
+
export function monthlyRecurrenceScheduleSerializer(item) {
|
|
3811
|
+
return {
|
|
3812
|
+
type: item["type"],
|
|
3813
|
+
daysOfMonth: item["daysOfMonth"].map((p) => {
|
|
3814
|
+
return p;
|
|
3815
|
+
}),
|
|
3816
|
+
};
|
|
3817
|
+
}
|
|
3818
|
+
export function monthlyRecurrenceScheduleDeserializer(item) {
|
|
3819
|
+
return {
|
|
3820
|
+
type: item["type"],
|
|
3821
|
+
daysOfMonth: item["daysOfMonth"].map((p) => {
|
|
3822
|
+
return p;
|
|
3823
|
+
}),
|
|
3824
|
+
};
|
|
3825
|
+
}
|
|
3826
|
+
export function oneTimeTriggerSerializer(item) {
|
|
3827
|
+
return {
|
|
3828
|
+
type: item["type"],
|
|
3829
|
+
triggerAt: item["triggerAt"],
|
|
3830
|
+
timeZone: item["timeZone"],
|
|
3831
|
+
};
|
|
3832
|
+
}
|
|
3833
|
+
export function oneTimeTriggerDeserializer(item) {
|
|
3834
|
+
return {
|
|
3835
|
+
type: item["type"],
|
|
3836
|
+
triggerAt: item["triggerAt"],
|
|
3837
|
+
timeZone: item["timeZone"],
|
|
3838
|
+
};
|
|
3839
|
+
}
|
|
3840
|
+
export function scheduleTaskSerializer(item) {
|
|
3841
|
+
return { type: item["type"], configuration: item["configuration"] };
|
|
3842
|
+
}
|
|
3843
|
+
export function scheduleTaskDeserializer(item) {
|
|
3844
|
+
return {
|
|
3845
|
+
type: item["type"],
|
|
3846
|
+
configuration: item["configuration"],
|
|
3847
|
+
};
|
|
3848
|
+
}
|
|
3849
|
+
export function scheduleTaskUnionSerializer(item) {
|
|
3850
|
+
switch (item.type) {
|
|
3851
|
+
case "Evaluation":
|
|
3852
|
+
return evaluationScheduleTaskSerializer(item);
|
|
3853
|
+
case "Insight":
|
|
3854
|
+
return insightScheduleTaskSerializer(item);
|
|
3855
|
+
default:
|
|
3856
|
+
return scheduleTaskSerializer(item);
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
export function scheduleTaskUnionDeserializer(item) {
|
|
3860
|
+
switch (item.type) {
|
|
3861
|
+
case "Evaluation":
|
|
3862
|
+
return evaluationScheduleTaskDeserializer(item);
|
|
3863
|
+
case "Insight":
|
|
3864
|
+
return insightScheduleTaskDeserializer(item);
|
|
3865
|
+
default:
|
|
3866
|
+
return scheduleTaskDeserializer(item);
|
|
3867
|
+
}
|
|
3868
|
+
}
|
|
3869
|
+
export function evaluationScheduleTaskSerializer(item) {
|
|
3870
|
+
return {
|
|
3871
|
+
type: item["type"],
|
|
3872
|
+
configuration: item["configuration"],
|
|
3873
|
+
evalId: item["evalId"],
|
|
3874
|
+
evalRun: _evaluationScheduleTaskEvalRunSerializer(item["evalRun"]),
|
|
3875
|
+
};
|
|
3876
|
+
}
|
|
3877
|
+
export function evaluationScheduleTaskDeserializer(item) {
|
|
3878
|
+
return {
|
|
3879
|
+
type: item["type"],
|
|
3880
|
+
configuration: item["configuration"],
|
|
3881
|
+
evalId: item["evalId"],
|
|
3882
|
+
evalRun: _evaluationScheduleTaskEvalRunDeserializer(item["evalRun"]),
|
|
3883
|
+
};
|
|
3884
|
+
}
|
|
3885
|
+
export function _evaluationScheduleTaskEvalRunSerializer(item) {
|
|
3886
|
+
return item;
|
|
3887
|
+
}
|
|
3888
|
+
export function _evaluationScheduleTaskEvalRunDeserializer(item) {
|
|
3889
|
+
return item;
|
|
3890
|
+
}
|
|
3891
|
+
export function insightScheduleTaskSerializer(item) {
|
|
3892
|
+
return {
|
|
3893
|
+
type: item["type"],
|
|
3894
|
+
configuration: item["configuration"],
|
|
3895
|
+
insight: insightSerializer(item["insight"]),
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3898
|
+
export function insightScheduleTaskDeserializer(item) {
|
|
3899
|
+
return {
|
|
3900
|
+
type: item["type"],
|
|
3901
|
+
configuration: item["configuration"],
|
|
3902
|
+
insight: insightDeserializer(item["insight"]),
|
|
3903
|
+
};
|
|
3904
|
+
}
|
|
3905
|
+
export function _pagedScheduleDeserializer(item) {
|
|
3906
|
+
return {
|
|
3907
|
+
value: scheduleArrayDeserializer(item["value"]),
|
|
433
3908
|
nextLink: item["nextLink"],
|
|
434
3909
|
};
|
|
435
3910
|
}
|
|
436
|
-
export function
|
|
3911
|
+
export function scheduleArraySerializer(result) {
|
|
437
3912
|
return result.map((item) => {
|
|
438
|
-
return
|
|
3913
|
+
return scheduleSerializer(item);
|
|
3914
|
+
});
|
|
3915
|
+
}
|
|
3916
|
+
export function scheduleArrayDeserializer(result) {
|
|
3917
|
+
return result.map((item) => {
|
|
3918
|
+
return scheduleDeserializer(item);
|
|
3919
|
+
});
|
|
3920
|
+
}
|
|
3921
|
+
export function scheduleRunDeserializer(item) {
|
|
3922
|
+
return {
|
|
3923
|
+
id: item["id"],
|
|
3924
|
+
scheduleId: item["scheduleId"],
|
|
3925
|
+
success: item["success"],
|
|
3926
|
+
triggerTime: item["triggerTime"],
|
|
3927
|
+
error: item["error"],
|
|
3928
|
+
properties: item["properties"],
|
|
3929
|
+
};
|
|
3930
|
+
}
|
|
3931
|
+
export function pagedScheduleRunDeserializer(item) {
|
|
3932
|
+
return {
|
|
3933
|
+
value: scheduleRunArrayDeserializer(item["value"]),
|
|
3934
|
+
nextLink: item["nextLink"],
|
|
3935
|
+
};
|
|
3936
|
+
}
|
|
3937
|
+
export function scheduleRunArrayDeserializer(result) {
|
|
3938
|
+
return result.map((item) => {
|
|
3939
|
+
return scheduleRunDeserializer(item);
|
|
439
3940
|
});
|
|
440
3941
|
}
|
|
3942
|
+
export function agentIdDeserializer(item) {
|
|
3943
|
+
return {
|
|
3944
|
+
type: item["type"],
|
|
3945
|
+
name: item["name"],
|
|
3946
|
+
version: item["version"],
|
|
3947
|
+
};
|
|
3948
|
+
}
|
|
3949
|
+
export function agentReferenceSerializer(item) {
|
|
3950
|
+
return { type: item["type"], name: item["name"], version: item["version"] };
|
|
3951
|
+
}
|
|
3952
|
+
export function _listVersionsRequestTypeSerializer(item) {
|
|
3953
|
+
return item;
|
|
3954
|
+
}
|
|
441
3955
|
/** Azure AI Projects API versions */
|
|
442
|
-
export var
|
|
443
|
-
(function (
|
|
444
|
-
/** Azure AI API version 2025-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
KnownVersions["V1"] = "v1";
|
|
448
|
-
})(KnownVersions || (KnownVersions = {}));
|
|
3956
|
+
export var KnownApiVersions;
|
|
3957
|
+
(function (KnownApiVersions) {
|
|
3958
|
+
/** Azure AI API version 2025-11-15-preview. */
|
|
3959
|
+
KnownApiVersions["v2025_11_15_preview"] = "2025-11-15-preview";
|
|
3960
|
+
})(KnownApiVersions || (KnownApiVersions = {}));
|
|
449
3961
|
//# sourceMappingURL=models.js.map
|