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