@azure/ai-projects 2.0.0-beta.4 → 2.0.0-beta.5
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 +47 -23
- package/dist/browser/aiProjectClient.d.ts +26 -26
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +37 -39
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/agents/index.d.ts +2 -2
- package/dist/browser/api/agents/index.d.ts.map +1 -1
- package/dist/browser/api/agents/index.js +1 -1
- package/dist/browser/api/agents/index.js.map +1 -1
- package/dist/browser/api/agents/operations.d.ts +32 -53
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +119 -186
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +28 -31
- package/dist/browser/api/agents/options.d.ts.map +1 -1
- package/dist/browser/api/agents/options.js.map +1 -1
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
- package/dist/browser/api/aiProjectContext.js +4 -17
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/beta/evaluationRules/index.d.ts +3 -0
- package/dist/browser/api/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationRules/index.js +4 -0
- package/dist/browser/api/beta/evaluationRules/index.js.map +1 -0
- package/dist/browser/api/beta/evaluationRules/operations.d.ts +22 -0
- package/dist/browser/api/beta/evaluationRules/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationRules/operations.js +134 -0
- package/dist/browser/api/beta/evaluationRules/operations.js.map +1 -0
- package/dist/browser/api/beta/evaluationRules/options.d.ts +27 -0
- package/dist/browser/api/beta/evaluationRules/options.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationRules/options.js.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/browser/api/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js +164 -0
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/options.js.map +1 -0
- package/dist/browser/api/beta/evaluators/index.d.ts +3 -0
- package/dist/browser/api/beta/evaluators/index.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluators/index.js.map +1 -0
- package/dist/browser/api/beta/evaluators/operations.d.ts +30 -0
- package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluators/operations.js +185 -0
- package/dist/browser/api/beta/evaluators/operations.js.map +1 -0
- package/dist/browser/api/beta/evaluators/options.d.ts +29 -0
- package/dist/browser/api/beta/evaluators/options.d.ts.map +1 -0
- package/dist/browser/api/beta/evaluators/options.js.map +1 -0
- package/dist/browser/api/beta/insights/index.d.ts +3 -0
- package/dist/browser/api/beta/insights/index.d.ts.map +1 -0
- package/dist/browser/api/beta/insights/index.js.map +1 -0
- package/dist/browser/api/beta/insights/operations.d.ts +18 -0
- package/dist/browser/api/beta/insights/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/insights/operations.js +115 -0
- package/dist/browser/api/beta/insights/operations.js.map +1 -0
- package/dist/browser/api/beta/insights/options.d.ts +32 -0
- package/dist/browser/api/beta/insights/options.d.ts.map +1 -0
- package/dist/browser/api/beta/insights/options.js.map +1 -0
- package/dist/browser/api/beta/memoryStores/index.d.ts +3 -0
- package/dist/browser/api/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/browser/api/beta/memoryStores/index.js +4 -0
- package/dist/browser/api/beta/memoryStores/index.js.map +1 -0
- package/dist/browser/api/beta/memoryStores/operations.d.ts +43 -0
- package/dist/browser/api/beta/memoryStores/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/memoryStores/operations.js +323 -0
- package/dist/browser/api/beta/memoryStores/operations.js.map +1 -0
- package/dist/browser/api/beta/memoryStores/options.d.ts +79 -0
- package/dist/browser/api/beta/memoryStores/options.d.ts.map +1 -0
- package/dist/browser/api/beta/memoryStores/options.js.map +1 -0
- package/dist/browser/api/beta/redTeams/index.d.ts +3 -0
- package/dist/browser/api/beta/redTeams/index.d.ts.map +1 -0
- package/dist/browser/api/beta/redTeams/index.js.map +1 -0
- package/dist/browser/api/beta/redTeams/operations.d.ts +18 -0
- package/dist/browser/api/beta/redTeams/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/redTeams/operations.js +101 -0
- package/dist/browser/api/beta/redTeams/operations.js.map +1 -0
- package/dist/browser/api/beta/redTeams/options.d.ts +15 -0
- package/dist/browser/api/beta/redTeams/options.d.ts.map +1 -0
- package/dist/browser/api/beta/redTeams/options.js.map +1 -0
- package/dist/browser/api/beta/schedules/index.d.ts +3 -0
- package/dist/browser/api/beta/schedules/index.d.ts.map +1 -0
- package/dist/browser/api/beta/schedules/index.js.map +1 -0
- package/dist/browser/api/beta/schedules/operations.d.ts +30 -0
- package/dist/browser/api/beta/schedules/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/schedules/operations.js +199 -0
- package/dist/browser/api/beta/schedules/operations.js.map +1 -0
- package/dist/browser/api/beta/schedules/options.d.ts +39 -0
- package/dist/browser/api/beta/schedules/options.d.ts.map +1 -0
- package/dist/browser/api/beta/schedules/options.js.map +1 -0
- 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.js +2 -2
- package/dist/browser/api/datasets/operations.js.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/operations.d.ts.map +1 -1
- package/dist/browser/api/evaluationRules/operations.js +14 -11
- package/dist/browser/api/evaluationRules/operations.js.map +1 -1
- package/dist/browser/api/evaluationRules/options.d.ts +8 -6
- package/dist/browser/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/browser/api/evaluationRules/options.js.map +1 -1
- package/dist/browser/api/indexes/operations.d.ts +1 -1
- package/dist/browser/api/indexes/operations.d.ts.map +1 -1
- package/dist/browser/api/indexes/operations.js +3 -3
- package/dist/browser/api/indexes/operations.js.map +1 -1
- package/dist/browser/classic/agents/index.d.ts +15 -34
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js +10 -12
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluationRules/index.d.ts +17 -0
- package/dist/browser/classic/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/evaluationRules/index.js +17 -0
- package/dist/browser/classic/beta/evaluationRules/index.js.map +1 -0
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js +18 -0
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/browser/classic/beta/evaluators/index.d.ts +21 -0
- package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/evaluators/index.js +19 -0
- package/dist/browser/classic/beta/evaluators/index.js.map +1 -0
- package/dist/browser/classic/beta/index.d.ts +18 -0
- package/dist/browser/classic/beta/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/index.js +19 -0
- package/dist/browser/classic/beta/index.js.map +1 -0
- package/dist/browser/classic/beta/insights/index.d.ts +15 -0
- package/dist/browser/classic/beta/insights/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/insights/index.js +16 -0
- package/dist/browser/classic/beta/insights/index.js.map +1 -0
- package/dist/browser/classic/beta/memoryStores/index.d.ts +28 -0
- package/dist/browser/classic/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/memoryStores/index.js +22 -0
- package/dist/browser/classic/beta/memoryStores/index.js.map +1 -0
- package/dist/browser/classic/beta/redTeams/index.d.ts +15 -0
- package/dist/browser/classic/beta/redTeams/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/redTeams/index.js +16 -0
- package/dist/browser/classic/beta/redTeams/index.js.map +1 -0
- package/dist/browser/classic/beta/schedules/index.d.ts +21 -0
- package/dist/browser/classic/beta/schedules/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/schedules/index.js +19 -0
- package/dist/browser/classic/beta/schedules/index.js.map +1 -0
- package/dist/browser/classic/datasets/index.d.ts +1 -1
- package/dist/browser/classic/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/datasets/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +7 -6
- 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.js +1 -1
- package/dist/browser/classic/indexes/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +9 -10
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +2341 -2288
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +1989 -1858
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/overwriteOpenAIClient.js +1 -1
- package/dist/browser/overwriteOpenAIClient.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +0 -3
- package/dist/browser/restorePollerHelpers.d.ts.map +1 -1
- package/dist/browser/restorePollerHelpers.js +13 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +27 -5
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +5 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +18 -2
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/util.d.ts +11 -0
- package/dist/browser/util.d.ts.map +1 -0
- package/dist/browser/util.js +93 -0
- package/dist/browser/util.js.map +1 -0
- package/dist/commonjs/aiProjectClient.d.ts +26 -26
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +47 -49
- package/dist/commonjs/aiProjectClient.js.map +1 -1
- package/dist/commonjs/api/agents/index.d.ts +2 -2
- package/dist/commonjs/api/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/agents/index.js +10 -11
- package/dist/commonjs/api/agents/index.js.map +1 -1
- package/dist/commonjs/api/agents/operations.d.ts +32 -53
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +148 -218
- package/dist/commonjs/api/agents/operations.js.map +1 -1
- package/dist/commonjs/api/agents/options.d.ts +28 -31
- package/dist/commonjs/api/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/agents/options.js.map +1 -1
- package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
- package/dist/commonjs/api/aiProjectContext.js +4 -17
- package/dist/commonjs/api/aiProjectContext.js.map +1 -1
- package/dist/commonjs/api/beta/evaluationRules/index.d.ts +3 -0
- package/dist/commonjs/api/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationRules/index.js +11 -0
- package/dist/commonjs/api/beta/evaluationRules/index.js.map +1 -0
- package/dist/commonjs/api/beta/evaluationRules/operations.d.ts +22 -0
- package/dist/commonjs/api/beta/evaluationRules/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationRules/operations.js +148 -0
- package/dist/commonjs/api/beta/evaluationRules/operations.js.map +1 -0
- package/dist/commonjs/api/beta/evaluationRules/options.d.ts +27 -0
- package/dist/commonjs/api/beta/evaluationRules/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationRules/options.js.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js +181 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.js.map +1 -0
- package/dist/commonjs/api/beta/evaluators/index.d.ts +3 -0
- package/dist/commonjs/api/beta/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluators/index.js.map +1 -0
- package/dist/commonjs/api/beta/evaluators/operations.d.ts +30 -0
- package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluators/operations.js +205 -0
- package/dist/commonjs/api/beta/evaluators/operations.js.map +1 -0
- package/dist/commonjs/api/beta/evaluators/options.d.ts +29 -0
- package/dist/commonjs/api/beta/evaluators/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/evaluators/options.js.map +1 -0
- package/dist/commonjs/api/beta/insights/index.d.ts +3 -0
- package/dist/commonjs/api/beta/insights/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/insights/index.js.map +1 -0
- package/dist/commonjs/api/beta/insights/operations.d.ts +18 -0
- package/dist/commonjs/api/beta/insights/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/insights/operations.js +126 -0
- package/dist/commonjs/api/beta/insights/operations.js.map +1 -0
- package/dist/commonjs/api/beta/insights/options.d.ts +32 -0
- package/dist/commonjs/api/beta/insights/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/insights/options.js.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/index.d.ts +3 -0
- package/dist/commonjs/api/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/index.js +16 -0
- package/dist/commonjs/api/beta/memoryStores/index.js.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts +43 -0
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/operations.js +352 -0
- package/dist/commonjs/api/beta/memoryStores/operations.js.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/options.d.ts +79 -0
- package/dist/commonjs/api/beta/memoryStores/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/memoryStores/options.js.map +1 -0
- package/dist/commonjs/api/beta/redTeams/index.d.ts +3 -0
- package/dist/commonjs/api/beta/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/redTeams/index.js.map +1 -0
- package/dist/commonjs/api/beta/redTeams/operations.d.ts +18 -0
- package/dist/commonjs/api/beta/redTeams/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/redTeams/operations.js +112 -0
- package/dist/commonjs/api/beta/redTeams/operations.js.map +1 -0
- package/dist/commonjs/api/beta/redTeams/options.d.ts +15 -0
- package/dist/commonjs/api/beta/redTeams/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/redTeams/options.js.map +1 -0
- package/dist/commonjs/api/beta/schedules/index.d.ts +3 -0
- package/dist/commonjs/api/beta/schedules/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/schedules/index.js.map +1 -0
- package/dist/commonjs/api/beta/schedules/operations.d.ts +30 -0
- package/dist/commonjs/api/beta/schedules/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/schedules/operations.js +219 -0
- package/dist/commonjs/api/beta/schedules/operations.js.map +1 -0
- package/dist/commonjs/api/beta/schedules/options.d.ts +39 -0
- package/dist/commonjs/api/beta/schedules/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/schedules/options.js +5 -0
- package/dist/commonjs/api/beta/schedules/options.js.map +1 -0
- 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.js +2 -2
- package/dist/commonjs/api/datasets/operations.js.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/operations.d.ts.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.js +14 -11
- package/dist/commonjs/api/evaluationRules/operations.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/options.d.ts +8 -6
- package/dist/commonjs/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/commonjs/api/evaluationRules/options.js.map +1 -1
- package/dist/commonjs/api/indexes/operations.d.ts +1 -1
- package/dist/commonjs/api/indexes/operations.d.ts.map +1 -1
- package/dist/commonjs/api/indexes/operations.js +3 -3
- package/dist/commonjs/api/indexes/operations.js.map +1 -1
- package/dist/commonjs/classic/agents/index.d.ts +15 -34
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js +9 -11
- package/dist/commonjs/classic/agents/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluationRules/index.d.ts +17 -0
- package/dist/commonjs/classic/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/evaluationRules/index.js +20 -0
- package/dist/commonjs/classic/beta/evaluationRules/index.js.map +1 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js +21 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/commonjs/classic/beta/evaluators/index.d.ts +21 -0
- package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/evaluators/index.js +22 -0
- package/dist/commonjs/classic/beta/evaluators/index.js.map +1 -0
- package/dist/commonjs/classic/beta/index.d.ts +18 -0
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/index.js +22 -0
- package/dist/commonjs/classic/beta/index.js.map +1 -0
- package/dist/commonjs/classic/beta/insights/index.d.ts +15 -0
- package/dist/commonjs/classic/beta/insights/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/insights/index.js +19 -0
- package/dist/commonjs/classic/beta/insights/index.js.map +1 -0
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts +28 -0
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/memoryStores/index.js +25 -0
- package/dist/commonjs/classic/beta/memoryStores/index.js.map +1 -0
- package/dist/commonjs/classic/beta/redTeams/index.d.ts +15 -0
- package/dist/commonjs/classic/beta/redTeams/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/redTeams/index.js +19 -0
- package/dist/commonjs/classic/beta/redTeams/index.js.map +1 -0
- package/dist/commonjs/classic/beta/schedules/index.d.ts +21 -0
- package/dist/commonjs/classic/beta/schedules/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/schedules/index.js +22 -0
- package/dist/commonjs/classic/beta/schedules/index.js.map +1 -0
- package/dist/commonjs/classic/datasets/index.d.ts +1 -1
- package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/datasets/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +7 -6
- 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.js +1 -1
- package/dist/commonjs/classic/indexes/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +9 -10
- package/dist/commonjs/index.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/commonjs/models/models.d.ts +2341 -2288
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +2296 -2148
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/overwriteOpenAIClient.js +1 -1
- package/dist/commonjs/overwriteOpenAIClient.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +0 -3
- package/dist/commonjs/restorePollerHelpers.d.ts.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +13 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +27 -5
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +5 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +18 -2
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/util.d.ts +11 -0
- package/dist/commonjs/util.d.ts.map +1 -0
- package/dist/commonjs/util.js +98 -0
- package/dist/commonjs/util.js.map +1 -0
- package/dist/esm/aiProjectClient.d.ts +26 -26
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +37 -39
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/agents/index.d.ts +2 -2
- package/dist/esm/api/agents/index.d.ts.map +1 -1
- package/dist/esm/api/agents/index.js +1 -1
- package/dist/esm/api/agents/index.js.map +1 -1
- package/dist/esm/api/agents/operations.d.ts +32 -53
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +119 -186
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +28 -31
- package/dist/esm/api/agents/options.d.ts.map +1 -1
- package/dist/esm/api/agents/options.js.map +1 -1
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
- package/dist/esm/api/aiProjectContext.js +4 -17
- package/dist/esm/api/aiProjectContext.js.map +1 -1
- package/dist/esm/api/beta/evaluationRules/index.d.ts +3 -0
- package/dist/esm/api/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationRules/index.js +4 -0
- package/dist/esm/api/beta/evaluationRules/index.js.map +1 -0
- package/dist/esm/api/beta/evaluationRules/operations.d.ts +22 -0
- package/dist/esm/api/beta/evaluationRules/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationRules/operations.js +134 -0
- package/dist/esm/api/beta/evaluationRules/operations.js.map +1 -0
- package/dist/esm/api/beta/evaluationRules/options.d.ts +27 -0
- package/dist/esm/api/beta/evaluationRules/options.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationRules/options.js.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/esm/api/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js +164 -0
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/options.js.map +1 -0
- package/dist/esm/api/beta/evaluators/index.d.ts +3 -0
- package/dist/esm/api/beta/evaluators/index.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluators/index.js.map +1 -0
- package/dist/esm/api/beta/evaluators/operations.d.ts +30 -0
- package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluators/operations.js +185 -0
- package/dist/esm/api/beta/evaluators/operations.js.map +1 -0
- package/dist/esm/api/beta/evaluators/options.d.ts +29 -0
- package/dist/esm/api/beta/evaluators/options.d.ts.map +1 -0
- package/dist/esm/api/beta/evaluators/options.js.map +1 -0
- package/dist/esm/api/beta/insights/index.d.ts +3 -0
- package/dist/esm/api/beta/insights/index.d.ts.map +1 -0
- package/dist/esm/api/beta/insights/index.js.map +1 -0
- package/dist/esm/api/beta/insights/operations.d.ts +18 -0
- package/dist/esm/api/beta/insights/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/insights/operations.js +115 -0
- package/dist/esm/api/beta/insights/operations.js.map +1 -0
- package/dist/esm/api/beta/insights/options.d.ts +32 -0
- package/dist/esm/api/beta/insights/options.d.ts.map +1 -0
- package/dist/esm/api/beta/insights/options.js.map +1 -0
- package/dist/esm/api/beta/memoryStores/index.d.ts +3 -0
- package/dist/esm/api/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/esm/api/beta/memoryStores/index.js +4 -0
- package/dist/esm/api/beta/memoryStores/index.js.map +1 -0
- package/dist/esm/api/beta/memoryStores/operations.d.ts +43 -0
- package/dist/esm/api/beta/memoryStores/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/memoryStores/operations.js +323 -0
- package/dist/esm/api/beta/memoryStores/operations.js.map +1 -0
- package/dist/esm/api/beta/memoryStores/options.d.ts +79 -0
- package/dist/esm/api/beta/memoryStores/options.d.ts.map +1 -0
- package/dist/esm/api/beta/memoryStores/options.js.map +1 -0
- package/dist/esm/api/beta/redTeams/index.d.ts +3 -0
- package/dist/esm/api/beta/redTeams/index.d.ts.map +1 -0
- package/dist/esm/api/beta/redTeams/index.js.map +1 -0
- package/dist/esm/api/beta/redTeams/operations.d.ts +18 -0
- package/dist/esm/api/beta/redTeams/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/redTeams/operations.js +101 -0
- package/dist/esm/api/beta/redTeams/operations.js.map +1 -0
- package/dist/esm/api/beta/redTeams/options.d.ts +15 -0
- package/dist/esm/api/beta/redTeams/options.d.ts.map +1 -0
- package/dist/esm/api/beta/redTeams/options.js.map +1 -0
- package/dist/esm/api/beta/schedules/index.d.ts +3 -0
- package/dist/esm/api/beta/schedules/index.d.ts.map +1 -0
- package/dist/esm/api/beta/schedules/index.js.map +1 -0
- package/dist/esm/api/beta/schedules/operations.d.ts +30 -0
- package/dist/esm/api/beta/schedules/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/schedules/operations.js +199 -0
- package/dist/esm/api/beta/schedules/operations.js.map +1 -0
- package/dist/esm/api/beta/schedules/options.d.ts +39 -0
- package/dist/esm/api/beta/schedules/options.d.ts.map +1 -0
- package/dist/esm/api/beta/schedules/options.js.map +1 -0
- 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.js +2 -2
- package/dist/esm/api/datasets/operations.js.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/operations.d.ts.map +1 -1
- package/dist/esm/api/evaluationRules/operations.js +14 -11
- package/dist/esm/api/evaluationRules/operations.js.map +1 -1
- package/dist/esm/api/evaluationRules/options.d.ts +8 -6
- package/dist/esm/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/esm/api/evaluationRules/options.js.map +1 -1
- package/dist/esm/api/indexes/operations.d.ts +1 -1
- package/dist/esm/api/indexes/operations.d.ts.map +1 -1
- package/dist/esm/api/indexes/operations.js +3 -3
- package/dist/esm/api/indexes/operations.js.map +1 -1
- package/dist/esm/classic/agents/index.d.ts +15 -34
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js +10 -12
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluationRules/index.d.ts +17 -0
- package/dist/esm/classic/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/evaluationRules/index.js +17 -0
- package/dist/esm/classic/beta/evaluationRules/index.js.map +1 -0
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js +18 -0
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/esm/classic/beta/evaluators/index.d.ts +21 -0
- package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/evaluators/index.js +19 -0
- package/dist/esm/classic/beta/evaluators/index.js.map +1 -0
- package/dist/esm/classic/beta/index.d.ts +18 -0
- package/dist/esm/classic/beta/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/index.js +19 -0
- package/dist/esm/classic/beta/index.js.map +1 -0
- package/dist/esm/classic/beta/insights/index.d.ts +15 -0
- package/dist/esm/classic/beta/insights/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/insights/index.js +16 -0
- package/dist/esm/classic/beta/insights/index.js.map +1 -0
- package/dist/esm/classic/beta/memoryStores/index.d.ts +28 -0
- package/dist/esm/classic/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/memoryStores/index.js +22 -0
- package/dist/esm/classic/beta/memoryStores/index.js.map +1 -0
- package/dist/esm/classic/beta/redTeams/index.d.ts +15 -0
- package/dist/esm/classic/beta/redTeams/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/redTeams/index.js +16 -0
- package/dist/esm/classic/beta/redTeams/index.js.map +1 -0
- package/dist/esm/classic/beta/schedules/index.d.ts +21 -0
- package/dist/esm/classic/beta/schedules/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/schedules/index.js +19 -0
- package/dist/esm/classic/beta/schedules/index.js.map +1 -0
- package/dist/esm/classic/datasets/index.d.ts +1 -1
- package/dist/esm/classic/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/datasets/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +7 -6
- 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.js +1 -1
- package/dist/esm/classic/indexes/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +9 -10
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +2341 -2288
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +1989 -1858
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/overwriteOpenAIClient.js +1 -1
- package/dist/esm/overwriteOpenAIClient.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +0 -3
- package/dist/esm/restorePollerHelpers.d.ts.map +1 -1
- package/dist/esm/restorePollerHelpers.js +13 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +27 -5
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +5 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +18 -2
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/util.d.ts +11 -0
- package/dist/esm/util.d.ts.map +1 -0
- package/dist/esm/util.js +93 -0
- package/dist/esm/util.js.map +1 -0
- package/dist/react-native/aiProjectClient.d.ts +26 -26
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +37 -39
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/agents/index.d.ts +2 -2
- package/dist/react-native/api/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/agents/index.js +1 -1
- package/dist/react-native/api/agents/index.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts +32 -53
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +119 -186
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +28 -31
- package/dist/react-native/api/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/agents/options.js.map +1 -1
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
- package/dist/react-native/api/aiProjectContext.js +4 -17
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/beta/evaluationRules/index.d.ts +3 -0
- package/dist/react-native/api/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationRules/index.js +4 -0
- package/dist/react-native/api/beta/evaluationRules/index.js.map +1 -0
- package/dist/react-native/api/beta/evaluationRules/operations.d.ts +22 -0
- package/dist/react-native/api/beta/evaluationRules/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationRules/operations.js +134 -0
- package/dist/react-native/api/beta/evaluationRules/operations.js.map +1 -0
- package/dist/react-native/api/beta/evaluationRules/options.d.ts +27 -0
- package/dist/react-native/api/beta/evaluationRules/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationRules/options.js.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/index.d.ts +3 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts +26 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js +164 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts +27 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/options.js.map +1 -0
- package/dist/react-native/api/beta/evaluators/index.d.ts +3 -0
- package/dist/react-native/api/beta/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluators/index.js.map +1 -0
- package/dist/react-native/api/beta/evaluators/operations.d.ts +30 -0
- package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluators/operations.js +185 -0
- package/dist/react-native/api/beta/evaluators/operations.js.map +1 -0
- package/dist/react-native/api/beta/evaluators/options.d.ts +29 -0
- package/dist/react-native/api/beta/evaluators/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/evaluators/options.js.map +1 -0
- package/dist/react-native/api/beta/insights/index.d.ts +3 -0
- package/dist/react-native/api/beta/insights/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/insights/index.js.map +1 -0
- package/dist/react-native/api/beta/insights/operations.d.ts +18 -0
- package/dist/react-native/api/beta/insights/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/insights/operations.js +115 -0
- package/dist/react-native/api/beta/insights/operations.js.map +1 -0
- package/dist/react-native/api/beta/insights/options.d.ts +32 -0
- package/dist/react-native/api/beta/insights/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/insights/options.js.map +1 -0
- package/dist/react-native/api/beta/memoryStores/index.d.ts +3 -0
- package/dist/react-native/api/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/memoryStores/index.js +4 -0
- package/dist/react-native/api/beta/memoryStores/index.js.map +1 -0
- package/dist/react-native/api/beta/memoryStores/operations.d.ts +43 -0
- package/dist/react-native/api/beta/memoryStores/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/memoryStores/operations.js +323 -0
- package/dist/react-native/api/beta/memoryStores/operations.js.map +1 -0
- package/dist/react-native/api/beta/memoryStores/options.d.ts +79 -0
- package/dist/react-native/api/beta/memoryStores/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/memoryStores/options.js +4 -0
- package/dist/react-native/api/beta/memoryStores/options.js.map +1 -0
- package/dist/react-native/api/beta/redTeams/index.d.ts +3 -0
- package/dist/react-native/api/beta/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/redTeams/index.js.map +1 -0
- package/dist/react-native/api/beta/redTeams/operations.d.ts +18 -0
- package/dist/react-native/api/beta/redTeams/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/redTeams/operations.js +101 -0
- package/dist/react-native/api/beta/redTeams/operations.js.map +1 -0
- package/dist/react-native/api/beta/redTeams/options.d.ts +15 -0
- package/dist/react-native/api/beta/redTeams/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/redTeams/options.js +4 -0
- package/dist/react-native/api/beta/redTeams/options.js.map +1 -0
- package/dist/react-native/api/beta/schedules/index.d.ts +3 -0
- package/dist/react-native/api/beta/schedules/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/schedules/index.js.map +1 -0
- package/dist/react-native/api/beta/schedules/operations.d.ts +30 -0
- package/dist/react-native/api/beta/schedules/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/schedules/operations.js +199 -0
- package/dist/react-native/api/beta/schedules/operations.js.map +1 -0
- package/dist/react-native/api/beta/schedules/options.d.ts +39 -0
- package/dist/react-native/api/beta/schedules/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/schedules/options.js +4 -0
- package/dist/react-native/api/beta/schedules/options.js.map +1 -0
- 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.js +2 -2
- package/dist/react-native/api/datasets/operations.js.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/operations.d.ts.map +1 -1
- package/dist/react-native/api/evaluationRules/operations.js +14 -11
- package/dist/react-native/api/evaluationRules/operations.js.map +1 -1
- package/dist/react-native/api/evaluationRules/options.d.ts +8 -6
- package/dist/react-native/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/react-native/api/evaluationRules/options.js.map +1 -1
- package/dist/react-native/api/indexes/operations.d.ts +1 -1
- package/dist/react-native/api/indexes/operations.d.ts.map +1 -1
- package/dist/react-native/api/indexes/operations.js +3 -3
- package/dist/react-native/api/indexes/operations.js.map +1 -1
- package/dist/react-native/classic/agents/index.d.ts +15 -34
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js +10 -12
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluationRules/index.d.ts +17 -0
- package/dist/react-native/classic/beta/evaluationRules/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/evaluationRules/index.js +17 -0
- package/dist/react-native/classic/beta/evaluationRules/index.js.map +1 -0
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts +19 -0
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js +18 -0
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js.map +1 -0
- package/dist/react-native/classic/beta/evaluators/index.d.ts +21 -0
- package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/evaluators/index.js +19 -0
- package/dist/react-native/classic/beta/evaluators/index.js.map +1 -0
- package/dist/react-native/classic/beta/index.d.ts +18 -0
- package/dist/react-native/classic/beta/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/index.js +19 -0
- package/dist/react-native/classic/beta/index.js.map +1 -0
- package/dist/react-native/classic/beta/insights/index.d.ts +15 -0
- package/dist/react-native/classic/beta/insights/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/insights/index.js +16 -0
- package/dist/react-native/classic/beta/insights/index.js.map +1 -0
- package/dist/react-native/classic/beta/memoryStores/index.d.ts +28 -0
- package/dist/react-native/classic/beta/memoryStores/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/memoryStores/index.js +22 -0
- package/dist/react-native/classic/beta/memoryStores/index.js.map +1 -0
- package/dist/react-native/classic/beta/redTeams/index.d.ts +15 -0
- package/dist/react-native/classic/beta/redTeams/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/redTeams/index.js +16 -0
- package/dist/react-native/classic/beta/redTeams/index.js.map +1 -0
- package/dist/react-native/classic/beta/schedules/index.d.ts +21 -0
- package/dist/react-native/classic/beta/schedules/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/schedules/index.js +19 -0
- package/dist/react-native/classic/beta/schedules/index.js.map +1 -0
- package/dist/react-native/classic/datasets/index.d.ts +1 -1
- package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/datasets/index.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +7 -6
- 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.js +1 -1
- package/dist/react-native/classic/indexes/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +9 -10
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +2341 -2288
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +1989 -1858
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/overwriteOpenAIClient.js +1 -1
- package/dist/react-native/overwriteOpenAIClient.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.d.ts +0 -3
- package/dist/react-native/restorePollerHelpers.d.ts.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +13 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +27 -5
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +5 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +18 -2
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/util.d.ts +11 -0
- package/dist/react-native/util.d.ts.map +1 -0
- package/dist/react-native/util.js +93 -0
- package/dist/react-native/util.js.map +1 -0
- package/package.json +5 -4
- package/dist/browser/api/evaluationTaxonomies/index.d.ts +0 -3
- package/dist/browser/api/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/browser/api/evaluationTaxonomies/index.js.map +0 -1
- package/dist/browser/api/evaluationTaxonomies/operations.d.ts +0 -26
- package/dist/browser/api/evaluationTaxonomies/operations.d.ts.map +0 -1
- package/dist/browser/api/evaluationTaxonomies/operations.js +0 -154
- package/dist/browser/api/evaluationTaxonomies/operations.js.map +0 -1
- package/dist/browser/api/evaluationTaxonomies/options.d.ts +0 -27
- package/dist/browser/api/evaluationTaxonomies/options.d.ts.map +0 -1
- package/dist/browser/api/evaluationTaxonomies/options.js.map +0 -1
- package/dist/browser/api/evaluators/index.d.ts +0 -3
- package/dist/browser/api/evaluators/index.d.ts.map +0 -1
- package/dist/browser/api/evaluators/index.js.map +0 -1
- package/dist/browser/api/evaluators/operations.d.ts +0 -30
- package/dist/browser/api/evaluators/operations.d.ts.map +0 -1
- package/dist/browser/api/evaluators/operations.js +0 -171
- package/dist/browser/api/evaluators/operations.js.map +0 -1
- package/dist/browser/api/evaluators/options.d.ts +0 -29
- package/dist/browser/api/evaluators/options.d.ts.map +0 -1
- package/dist/browser/api/evaluators/options.js.map +0 -1
- package/dist/browser/api/insights/index.d.ts +0 -3
- package/dist/browser/api/insights/index.d.ts.map +0 -1
- package/dist/browser/api/insights/index.js.map +0 -1
- package/dist/browser/api/insights/operations.d.ts +0 -18
- package/dist/browser/api/insights/operations.d.ts.map +0 -1
- package/dist/browser/api/insights/operations.js +0 -109
- package/dist/browser/api/insights/operations.js.map +0 -1
- package/dist/browser/api/insights/options.d.ts +0 -32
- package/dist/browser/api/insights/options.d.ts.map +0 -1
- package/dist/browser/api/insights/options.js.map +0 -1
- package/dist/browser/api/memoryStores/index.d.ts +0 -4
- package/dist/browser/api/memoryStores/index.d.ts.map +0 -1
- package/dist/browser/api/memoryStores/index.js +0 -4
- package/dist/browser/api/memoryStores/index.js.map +0 -1
- package/dist/browser/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts +0 -43
- package/dist/browser/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts.map +0 -1
- package/dist/browser/api/memoryStores/memoryStoreUpdateMemoriesPoller.js +0 -160
- package/dist/browser/api/memoryStores/memoryStoreUpdateMemoriesPoller.js.map +0 -1
- package/dist/browser/api/memoryStores/operations.d.ts +0 -43
- package/dist/browser/api/memoryStores/operations.d.ts.map +0 -1
- package/dist/browser/api/memoryStores/operations.js +0 -304
- package/dist/browser/api/memoryStores/operations.js.map +0 -1
- package/dist/browser/api/memoryStores/options.d.ts +0 -79
- package/dist/browser/api/memoryStores/options.d.ts.map +0 -1
- package/dist/browser/api/memoryStores/options.js.map +0 -1
- package/dist/browser/api/redTeams/index.d.ts +0 -3
- package/dist/browser/api/redTeams/index.d.ts.map +0 -1
- package/dist/browser/api/redTeams/index.js.map +0 -1
- package/dist/browser/api/redTeams/operations.d.ts +0 -18
- package/dist/browser/api/redTeams/operations.d.ts.map +0 -1
- package/dist/browser/api/redTeams/operations.js +0 -93
- package/dist/browser/api/redTeams/operations.js.map +0 -1
- package/dist/browser/api/redTeams/options.d.ts +0 -15
- package/dist/browser/api/redTeams/options.d.ts.map +0 -1
- package/dist/browser/api/redTeams/options.js.map +0 -1
- package/dist/browser/api/schedules/index.d.ts +0 -3
- package/dist/browser/api/schedules/index.d.ts.map +0 -1
- package/dist/browser/api/schedules/index.js.map +0 -1
- package/dist/browser/api/schedules/operations.d.ts +0 -30
- package/dist/browser/api/schedules/operations.d.ts.map +0 -1
- package/dist/browser/api/schedules/operations.js +0 -180
- package/dist/browser/api/schedules/operations.js.map +0 -1
- package/dist/browser/api/schedules/options.d.ts +0 -28
- package/dist/browser/api/schedules/options.d.ts.map +0 -1
- package/dist/browser/api/schedules/options.js.map +0 -1
- package/dist/browser/classic/evaluationTaxonomies/index.d.ts +0 -19
- package/dist/browser/classic/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/browser/classic/evaluationTaxonomies/index.js +0 -18
- package/dist/browser/classic/evaluationTaxonomies/index.js.map +0 -1
- package/dist/browser/classic/evaluators/index.d.ts +0 -21
- package/dist/browser/classic/evaluators/index.d.ts.map +0 -1
- package/dist/browser/classic/evaluators/index.js +0 -25
- package/dist/browser/classic/evaluators/index.js.map +0 -1
- package/dist/browser/classic/insights/index.d.ts +0 -15
- package/dist/browser/classic/insights/index.d.ts.map +0 -1
- package/dist/browser/classic/insights/index.js +0 -16
- package/dist/browser/classic/insights/index.js.map +0 -1
- package/dist/browser/classic/memoryStores/index.d.ts +0 -28
- package/dist/browser/classic/memoryStores/index.d.ts.map +0 -1
- package/dist/browser/classic/memoryStores/index.js +0 -22
- package/dist/browser/classic/memoryStores/index.js.map +0 -1
- package/dist/browser/classic/redTeams/index.d.ts +0 -15
- package/dist/browser/classic/redTeams/index.d.ts.map +0 -1
- package/dist/browser/classic/redTeams/index.js +0 -16
- package/dist/browser/classic/redTeams/index.js.map +0 -1
- package/dist/browser/classic/schedules/index.d.ts +0 -21
- package/dist/browser/classic/schedules/index.d.ts.map +0 -1
- package/dist/browser/classic/schedules/index.js +0 -19
- package/dist/browser/classic/schedules/index.js.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/index.d.ts +0 -3
- package/dist/commonjs/api/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/index.js.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts +0 -26
- package/dist/commonjs/api/evaluationTaxonomies/operations.d.ts.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/operations.js +0 -171
- package/dist/commonjs/api/evaluationTaxonomies/operations.js.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/options.d.ts +0 -27
- package/dist/commonjs/api/evaluationTaxonomies/options.d.ts.map +0 -1
- package/dist/commonjs/api/evaluationTaxonomies/options.js.map +0 -1
- package/dist/commonjs/api/evaluators/index.d.ts +0 -3
- package/dist/commonjs/api/evaluators/index.d.ts.map +0 -1
- package/dist/commonjs/api/evaluators/index.js.map +0 -1
- package/dist/commonjs/api/evaluators/operations.d.ts +0 -30
- package/dist/commonjs/api/evaluators/operations.d.ts.map +0 -1
- package/dist/commonjs/api/evaluators/operations.js +0 -191
- package/dist/commonjs/api/evaluators/operations.js.map +0 -1
- package/dist/commonjs/api/evaluators/options.d.ts +0 -29
- package/dist/commonjs/api/evaluators/options.d.ts.map +0 -1
- package/dist/commonjs/api/evaluators/options.js.map +0 -1
- package/dist/commonjs/api/insights/index.d.ts +0 -3
- package/dist/commonjs/api/insights/index.d.ts.map +0 -1
- package/dist/commonjs/api/insights/index.js.map +0 -1
- package/dist/commonjs/api/insights/operations.d.ts +0 -18
- package/dist/commonjs/api/insights/operations.d.ts.map +0 -1
- package/dist/commonjs/api/insights/operations.js +0 -120
- package/dist/commonjs/api/insights/operations.js.map +0 -1
- package/dist/commonjs/api/insights/options.d.ts +0 -32
- package/dist/commonjs/api/insights/options.d.ts.map +0 -1
- package/dist/commonjs/api/insights/options.js.map +0 -1
- package/dist/commonjs/api/memoryStores/index.d.ts +0 -4
- package/dist/commonjs/api/memoryStores/index.d.ts.map +0 -1
- package/dist/commonjs/api/memoryStores/index.js +0 -16
- package/dist/commonjs/api/memoryStores/index.js.map +0 -1
- package/dist/commonjs/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts +0 -43
- package/dist/commonjs/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts.map +0 -1
- package/dist/commonjs/api/memoryStores/memoryStoreUpdateMemoriesPoller.js +0 -163
- package/dist/commonjs/api/memoryStores/memoryStoreUpdateMemoriesPoller.js.map +0 -1
- package/dist/commonjs/api/memoryStores/operations.d.ts +0 -43
- package/dist/commonjs/api/memoryStores/operations.d.ts.map +0 -1
- package/dist/commonjs/api/memoryStores/operations.js +0 -333
- package/dist/commonjs/api/memoryStores/operations.js.map +0 -1
- package/dist/commonjs/api/memoryStores/options.d.ts +0 -79
- package/dist/commonjs/api/memoryStores/options.d.ts.map +0 -1
- package/dist/commonjs/api/memoryStores/options.js.map +0 -1
- package/dist/commonjs/api/redTeams/index.d.ts +0 -3
- package/dist/commonjs/api/redTeams/index.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/index.js.map +0 -1
- package/dist/commonjs/api/redTeams/operations.d.ts +0 -18
- package/dist/commonjs/api/redTeams/operations.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/operations.js +0 -104
- package/dist/commonjs/api/redTeams/operations.js.map +0 -1
- package/dist/commonjs/api/redTeams/options.d.ts +0 -15
- package/dist/commonjs/api/redTeams/options.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/options.js.map +0 -1
- package/dist/commonjs/api/schedules/index.d.ts +0 -3
- package/dist/commonjs/api/schedules/index.d.ts.map +0 -1
- package/dist/commonjs/api/schedules/index.js.map +0 -1
- package/dist/commonjs/api/schedules/operations.d.ts +0 -30
- package/dist/commonjs/api/schedules/operations.d.ts.map +0 -1
- package/dist/commonjs/api/schedules/operations.js +0 -200
- package/dist/commonjs/api/schedules/operations.js.map +0 -1
- package/dist/commonjs/api/schedules/options.d.ts +0 -28
- package/dist/commonjs/api/schedules/options.d.ts.map +0 -1
- package/dist/commonjs/api/schedules/options.js.map +0 -1
- package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts +0 -19
- package/dist/commonjs/classic/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/commonjs/classic/evaluationTaxonomies/index.js +0 -21
- package/dist/commonjs/classic/evaluationTaxonomies/index.js.map +0 -1
- package/dist/commonjs/classic/evaluators/index.d.ts +0 -21
- package/dist/commonjs/classic/evaluators/index.d.ts.map +0 -1
- package/dist/commonjs/classic/evaluators/index.js +0 -28
- package/dist/commonjs/classic/evaluators/index.js.map +0 -1
- package/dist/commonjs/classic/insights/index.d.ts +0 -15
- package/dist/commonjs/classic/insights/index.d.ts.map +0 -1
- package/dist/commonjs/classic/insights/index.js +0 -19
- package/dist/commonjs/classic/insights/index.js.map +0 -1
- package/dist/commonjs/classic/memoryStores/index.d.ts +0 -28
- package/dist/commonjs/classic/memoryStores/index.d.ts.map +0 -1
- package/dist/commonjs/classic/memoryStores/index.js +0 -25
- package/dist/commonjs/classic/memoryStores/index.js.map +0 -1
- package/dist/commonjs/classic/redTeams/index.d.ts +0 -15
- package/dist/commonjs/classic/redTeams/index.d.ts.map +0 -1
- package/dist/commonjs/classic/redTeams/index.js +0 -19
- package/dist/commonjs/classic/redTeams/index.js.map +0 -1
- package/dist/commonjs/classic/schedules/index.d.ts +0 -21
- package/dist/commonjs/classic/schedules/index.d.ts.map +0 -1
- package/dist/commonjs/classic/schedules/index.js +0 -22
- package/dist/commonjs/classic/schedules/index.js.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/index.d.ts +0 -3
- package/dist/esm/api/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/index.js.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/operations.d.ts +0 -26
- package/dist/esm/api/evaluationTaxonomies/operations.d.ts.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/operations.js +0 -154
- package/dist/esm/api/evaluationTaxonomies/operations.js.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/options.d.ts +0 -27
- package/dist/esm/api/evaluationTaxonomies/options.d.ts.map +0 -1
- package/dist/esm/api/evaluationTaxonomies/options.js.map +0 -1
- package/dist/esm/api/evaluators/index.d.ts +0 -3
- package/dist/esm/api/evaluators/index.d.ts.map +0 -1
- package/dist/esm/api/evaluators/index.js.map +0 -1
- package/dist/esm/api/evaluators/operations.d.ts +0 -30
- package/dist/esm/api/evaluators/operations.d.ts.map +0 -1
- package/dist/esm/api/evaluators/operations.js +0 -171
- package/dist/esm/api/evaluators/operations.js.map +0 -1
- package/dist/esm/api/evaluators/options.d.ts +0 -29
- package/dist/esm/api/evaluators/options.d.ts.map +0 -1
- package/dist/esm/api/evaluators/options.js.map +0 -1
- package/dist/esm/api/insights/index.d.ts +0 -3
- package/dist/esm/api/insights/index.d.ts.map +0 -1
- package/dist/esm/api/insights/index.js.map +0 -1
- package/dist/esm/api/insights/operations.d.ts +0 -18
- package/dist/esm/api/insights/operations.d.ts.map +0 -1
- package/dist/esm/api/insights/operations.js +0 -109
- package/dist/esm/api/insights/operations.js.map +0 -1
- package/dist/esm/api/insights/options.d.ts +0 -32
- package/dist/esm/api/insights/options.d.ts.map +0 -1
- package/dist/esm/api/insights/options.js.map +0 -1
- package/dist/esm/api/memoryStores/index.d.ts +0 -4
- package/dist/esm/api/memoryStores/index.d.ts.map +0 -1
- package/dist/esm/api/memoryStores/index.js +0 -4
- package/dist/esm/api/memoryStores/index.js.map +0 -1
- package/dist/esm/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts +0 -43
- package/dist/esm/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts.map +0 -1
- package/dist/esm/api/memoryStores/memoryStoreUpdateMemoriesPoller.js +0 -160
- package/dist/esm/api/memoryStores/memoryStoreUpdateMemoriesPoller.js.map +0 -1
- package/dist/esm/api/memoryStores/operations.d.ts +0 -43
- package/dist/esm/api/memoryStores/operations.d.ts.map +0 -1
- package/dist/esm/api/memoryStores/operations.js +0 -304
- package/dist/esm/api/memoryStores/operations.js.map +0 -1
- package/dist/esm/api/memoryStores/options.d.ts +0 -79
- package/dist/esm/api/memoryStores/options.d.ts.map +0 -1
- package/dist/esm/api/memoryStores/options.js.map +0 -1
- package/dist/esm/api/redTeams/index.d.ts +0 -3
- package/dist/esm/api/redTeams/index.d.ts.map +0 -1
- package/dist/esm/api/redTeams/index.js.map +0 -1
- package/dist/esm/api/redTeams/operations.d.ts +0 -18
- package/dist/esm/api/redTeams/operations.d.ts.map +0 -1
- package/dist/esm/api/redTeams/operations.js +0 -93
- package/dist/esm/api/redTeams/operations.js.map +0 -1
- package/dist/esm/api/redTeams/options.d.ts +0 -15
- package/dist/esm/api/redTeams/options.d.ts.map +0 -1
- package/dist/esm/api/redTeams/options.js.map +0 -1
- package/dist/esm/api/schedules/index.d.ts +0 -3
- package/dist/esm/api/schedules/index.d.ts.map +0 -1
- package/dist/esm/api/schedules/index.js.map +0 -1
- package/dist/esm/api/schedules/operations.d.ts +0 -30
- package/dist/esm/api/schedules/operations.d.ts.map +0 -1
- package/dist/esm/api/schedules/operations.js +0 -180
- package/dist/esm/api/schedules/operations.js.map +0 -1
- package/dist/esm/api/schedules/options.d.ts +0 -28
- package/dist/esm/api/schedules/options.d.ts.map +0 -1
- package/dist/esm/api/schedules/options.js.map +0 -1
- package/dist/esm/classic/evaluationTaxonomies/index.d.ts +0 -19
- package/dist/esm/classic/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/esm/classic/evaluationTaxonomies/index.js +0 -18
- package/dist/esm/classic/evaluationTaxonomies/index.js.map +0 -1
- package/dist/esm/classic/evaluators/index.d.ts +0 -21
- package/dist/esm/classic/evaluators/index.d.ts.map +0 -1
- package/dist/esm/classic/evaluators/index.js +0 -25
- package/dist/esm/classic/evaluators/index.js.map +0 -1
- package/dist/esm/classic/insights/index.d.ts +0 -15
- package/dist/esm/classic/insights/index.d.ts.map +0 -1
- package/dist/esm/classic/insights/index.js +0 -16
- package/dist/esm/classic/insights/index.js.map +0 -1
- package/dist/esm/classic/memoryStores/index.d.ts +0 -28
- package/dist/esm/classic/memoryStores/index.d.ts.map +0 -1
- package/dist/esm/classic/memoryStores/index.js +0 -22
- package/dist/esm/classic/memoryStores/index.js.map +0 -1
- package/dist/esm/classic/redTeams/index.d.ts +0 -15
- package/dist/esm/classic/redTeams/index.d.ts.map +0 -1
- package/dist/esm/classic/redTeams/index.js +0 -16
- package/dist/esm/classic/redTeams/index.js.map +0 -1
- package/dist/esm/classic/schedules/index.d.ts +0 -21
- package/dist/esm/classic/schedules/index.d.ts.map +0 -1
- package/dist/esm/classic/schedules/index.js +0 -19
- package/dist/esm/classic/schedules/index.js.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/index.d.ts +0 -3
- package/dist/react-native/api/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/index.js.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/operations.d.ts +0 -26
- package/dist/react-native/api/evaluationTaxonomies/operations.d.ts.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/operations.js +0 -154
- package/dist/react-native/api/evaluationTaxonomies/operations.js.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/options.d.ts +0 -27
- package/dist/react-native/api/evaluationTaxonomies/options.d.ts.map +0 -1
- package/dist/react-native/api/evaluationTaxonomies/options.js.map +0 -1
- package/dist/react-native/api/evaluators/index.d.ts +0 -3
- package/dist/react-native/api/evaluators/index.d.ts.map +0 -1
- package/dist/react-native/api/evaluators/index.js.map +0 -1
- package/dist/react-native/api/evaluators/operations.d.ts +0 -30
- package/dist/react-native/api/evaluators/operations.d.ts.map +0 -1
- package/dist/react-native/api/evaluators/operations.js +0 -171
- package/dist/react-native/api/evaluators/operations.js.map +0 -1
- package/dist/react-native/api/evaluators/options.d.ts +0 -29
- package/dist/react-native/api/evaluators/options.d.ts.map +0 -1
- package/dist/react-native/api/evaluators/options.js.map +0 -1
- package/dist/react-native/api/insights/index.d.ts +0 -3
- package/dist/react-native/api/insights/index.d.ts.map +0 -1
- package/dist/react-native/api/insights/index.js.map +0 -1
- package/dist/react-native/api/insights/operations.d.ts +0 -18
- package/dist/react-native/api/insights/operations.d.ts.map +0 -1
- package/dist/react-native/api/insights/operations.js +0 -109
- package/dist/react-native/api/insights/operations.js.map +0 -1
- package/dist/react-native/api/insights/options.d.ts +0 -32
- package/dist/react-native/api/insights/options.d.ts.map +0 -1
- package/dist/react-native/api/insights/options.js.map +0 -1
- package/dist/react-native/api/memoryStores/index.d.ts +0 -4
- package/dist/react-native/api/memoryStores/index.d.ts.map +0 -1
- package/dist/react-native/api/memoryStores/index.js +0 -4
- package/dist/react-native/api/memoryStores/index.js.map +0 -1
- package/dist/react-native/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts +0 -43
- package/dist/react-native/api/memoryStores/memoryStoreUpdateMemoriesPoller.d.ts.map +0 -1
- package/dist/react-native/api/memoryStores/memoryStoreUpdateMemoriesPoller.js +0 -160
- package/dist/react-native/api/memoryStores/memoryStoreUpdateMemoriesPoller.js.map +0 -1
- package/dist/react-native/api/memoryStores/operations.d.ts +0 -43
- package/dist/react-native/api/memoryStores/operations.d.ts.map +0 -1
- package/dist/react-native/api/memoryStores/operations.js +0 -304
- package/dist/react-native/api/memoryStores/operations.js.map +0 -1
- package/dist/react-native/api/memoryStores/options.d.ts +0 -79
- package/dist/react-native/api/memoryStores/options.d.ts.map +0 -1
- package/dist/react-native/api/memoryStores/options.js.map +0 -1
- package/dist/react-native/api/redTeams/index.d.ts +0 -3
- package/dist/react-native/api/redTeams/index.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/index.js.map +0 -1
- package/dist/react-native/api/redTeams/operations.d.ts +0 -18
- package/dist/react-native/api/redTeams/operations.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/operations.js +0 -93
- package/dist/react-native/api/redTeams/operations.js.map +0 -1
- package/dist/react-native/api/redTeams/options.d.ts +0 -15
- package/dist/react-native/api/redTeams/options.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/options.js.map +0 -1
- package/dist/react-native/api/schedules/index.d.ts +0 -3
- package/dist/react-native/api/schedules/index.d.ts.map +0 -1
- package/dist/react-native/api/schedules/index.js.map +0 -1
- package/dist/react-native/api/schedules/operations.d.ts +0 -30
- package/dist/react-native/api/schedules/operations.d.ts.map +0 -1
- package/dist/react-native/api/schedules/operations.js +0 -180
- package/dist/react-native/api/schedules/operations.js.map +0 -1
- package/dist/react-native/api/schedules/options.d.ts +0 -28
- package/dist/react-native/api/schedules/options.d.ts.map +0 -1
- package/dist/react-native/api/schedules/options.js.map +0 -1
- package/dist/react-native/classic/evaluationTaxonomies/index.d.ts +0 -19
- package/dist/react-native/classic/evaluationTaxonomies/index.d.ts.map +0 -1
- package/dist/react-native/classic/evaluationTaxonomies/index.js +0 -18
- package/dist/react-native/classic/evaluationTaxonomies/index.js.map +0 -1
- package/dist/react-native/classic/evaluators/index.d.ts +0 -21
- package/dist/react-native/classic/evaluators/index.d.ts.map +0 -1
- package/dist/react-native/classic/evaluators/index.js +0 -25
- package/dist/react-native/classic/evaluators/index.js.map +0 -1
- package/dist/react-native/classic/insights/index.d.ts +0 -15
- package/dist/react-native/classic/insights/index.d.ts.map +0 -1
- package/dist/react-native/classic/insights/index.js +0 -16
- package/dist/react-native/classic/insights/index.js.map +0 -1
- package/dist/react-native/classic/memoryStores/index.d.ts +0 -28
- package/dist/react-native/classic/memoryStores/index.d.ts.map +0 -1
- package/dist/react-native/classic/memoryStores/index.js +0 -22
- package/dist/react-native/classic/memoryStores/index.js.map +0 -1
- package/dist/react-native/classic/redTeams/index.d.ts +0 -15
- package/dist/react-native/classic/redTeams/index.d.ts.map +0 -1
- package/dist/react-native/classic/redTeams/index.js +0 -16
- package/dist/react-native/classic/redTeams/index.js.map +0 -1
- package/dist/react-native/classic/schedules/index.d.ts +0 -21
- package/dist/react-native/classic/schedules/index.d.ts.map +0 -1
- package/dist/react-native/classic/schedules/index.js +0 -19
- package/dist/react-native/classic/schedules/index.js.map +0 -1
- /package/dist/browser/api/{evaluationTaxonomies → beta/evaluationRules}/options.js +0 -0
- /package/dist/browser/api/{evaluationTaxonomies → beta/evaluationTaxonomies}/index.js +0 -0
- /package/dist/browser/api/{evaluators → beta/evaluationTaxonomies}/options.js +0 -0
- /package/dist/browser/api/{evaluators → beta/evaluators}/index.js +0 -0
- /package/dist/browser/api/{insights → beta/evaluators}/options.js +0 -0
- /package/dist/browser/api/{insights → beta/insights}/index.js +0 -0
- /package/dist/browser/api/{memoryStores → beta/insights}/options.js +0 -0
- /package/dist/browser/api/{redTeams → beta/memoryStores}/options.js +0 -0
- /package/dist/browser/api/{redTeams → beta/redTeams}/index.js +0 -0
- /package/dist/browser/api/{schedules → beta/redTeams}/options.js +0 -0
- /package/dist/browser/api/{schedules → beta/schedules}/index.js +0 -0
- /package/dist/{esm/api/evaluationTaxonomies → browser/api/beta/schedules}/options.js +0 -0
- /package/dist/commonjs/api/{evaluationTaxonomies → beta/evaluationRules}/options.js +0 -0
- /package/dist/commonjs/api/{evaluationTaxonomies → beta/evaluationTaxonomies}/index.js +0 -0
- /package/dist/commonjs/api/{evaluators → beta/evaluationTaxonomies}/options.js +0 -0
- /package/dist/commonjs/api/{evaluators → beta/evaluators}/index.js +0 -0
- /package/dist/commonjs/api/{insights → beta/evaluators}/options.js +0 -0
- /package/dist/commonjs/api/{insights → beta/insights}/index.js +0 -0
- /package/dist/commonjs/api/{memoryStores → beta/insights}/options.js +0 -0
- /package/dist/commonjs/api/{redTeams → beta/memoryStores}/options.js +0 -0
- /package/dist/commonjs/api/{redTeams → beta/redTeams}/index.js +0 -0
- /package/dist/commonjs/api/{schedules → beta/redTeams}/options.js +0 -0
- /package/dist/commonjs/api/{schedules → beta/schedules}/index.js +0 -0
- /package/dist/esm/api/{evaluators → beta/evaluationRules}/options.js +0 -0
- /package/dist/esm/api/{evaluationTaxonomies → beta/evaluationTaxonomies}/index.js +0 -0
- /package/dist/esm/api/{insights → beta/evaluationTaxonomies}/options.js +0 -0
- /package/dist/esm/api/{evaluators → beta/evaluators}/index.js +0 -0
- /package/dist/esm/api/{memoryStores → beta/evaluators}/options.js +0 -0
- /package/dist/esm/api/{insights → beta/insights}/index.js +0 -0
- /package/dist/esm/api/{redTeams → beta/insights}/options.js +0 -0
- /package/dist/esm/api/{schedules → beta/memoryStores}/options.js +0 -0
- /package/dist/esm/api/{redTeams → beta/redTeams}/index.js +0 -0
- /package/dist/{react-native/api/evaluationTaxonomies → esm/api/beta/redTeams}/options.js +0 -0
- /package/dist/esm/api/{schedules → beta/schedules}/index.js +0 -0
- /package/dist/{react-native/api/evaluators → esm/api/beta/schedules}/options.js +0 -0
- /package/dist/react-native/api/{insights → beta/evaluationRules}/options.js +0 -0
- /package/dist/react-native/api/{evaluationTaxonomies → beta/evaluationTaxonomies}/index.js +0 -0
- /package/dist/react-native/api/{memoryStores → beta/evaluationTaxonomies}/options.js +0 -0
- /package/dist/react-native/api/{evaluators → beta/evaluators}/index.js +0 -0
- /package/dist/react-native/api/{redTeams → beta/evaluators}/options.js +0 -0
- /package/dist/react-native/api/{insights → beta/insights}/index.js +0 -0
- /package/dist/react-native/api/{schedules → beta/insights}/options.js +0 -0
- /package/dist/react-native/api/{redTeams → beta/redTeams}/index.js +0 -0
- /package/dist/react-native/api/{schedules → beta/schedules}/index.js +0 -0
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
4
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
5
|
-
/* eslint-disable tsdoc/syntax */
|
|
6
3
|
import { serializeRecord } from "../static-helpers/serialization/serialize-record.js";
|
|
7
|
-
export function
|
|
4
|
+
export function agentDeserializer(item) {
|
|
8
5
|
return {
|
|
9
6
|
object: item["object"],
|
|
10
7
|
id: item["id"],
|
|
11
8
|
name: item["name"],
|
|
12
|
-
versions:
|
|
9
|
+
versions: _agentVersionsDeserializer(item["versions"]),
|
|
13
10
|
};
|
|
14
11
|
}
|
|
15
|
-
export function
|
|
12
|
+
export function _agentVersionsDeserializer(item) {
|
|
16
13
|
return {
|
|
17
|
-
latest:
|
|
14
|
+
latest: agentVersionDeserializer(item["latest"]),
|
|
18
15
|
};
|
|
19
16
|
}
|
|
20
|
-
export function
|
|
17
|
+
export function agentVersionDeserializer(item) {
|
|
21
18
|
return {
|
|
22
19
|
metadata: item["metadata"],
|
|
23
20
|
object: item["object"],
|
|
@@ -45,28 +42,28 @@ export function agentDefinitionDeserializer(item) {
|
|
|
45
42
|
}
|
|
46
43
|
export function agentDefinitionUnionSerializer(item) {
|
|
47
44
|
switch (item.kind) {
|
|
45
|
+
case "prompt":
|
|
46
|
+
return promptAgentDefinitionSerializer(item);
|
|
48
47
|
case "workflow":
|
|
49
48
|
return workflowAgentDefinitionSerializer(item);
|
|
50
49
|
case "hosted":
|
|
51
|
-
return
|
|
50
|
+
return hostedAgentDefinitionSerializer(item);
|
|
52
51
|
case "container_app":
|
|
53
52
|
return containerAppAgentDefinitionSerializer(item);
|
|
54
|
-
case "prompt":
|
|
55
|
-
return promptAgentDefinitionSerializer(item);
|
|
56
53
|
default:
|
|
57
54
|
return agentDefinitionSerializer(item);
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
57
|
export function agentDefinitionUnionDeserializer(item) {
|
|
61
58
|
switch (item.kind) {
|
|
59
|
+
case "prompt":
|
|
60
|
+
return promptAgentDefinitionDeserializer(item);
|
|
62
61
|
case "workflow":
|
|
63
62
|
return workflowAgentDefinitionDeserializer(item);
|
|
64
63
|
case "hosted":
|
|
65
|
-
return
|
|
64
|
+
return hostedAgentDefinitionDeserializer(item);
|
|
66
65
|
case "container_app":
|
|
67
66
|
return containerAppAgentDefinitionDeserializer(item);
|
|
68
|
-
case "prompt":
|
|
69
|
-
return promptAgentDefinitionDeserializer(item);
|
|
70
67
|
default:
|
|
71
68
|
return agentDefinitionDeserializer(item);
|
|
72
69
|
}
|
|
@@ -79,62 +76,60 @@ export function raiConfigDeserializer(item) {
|
|
|
79
76
|
rai_policy_name: item["rai_policy_name"],
|
|
80
77
|
};
|
|
81
78
|
}
|
|
82
|
-
export function
|
|
79
|
+
export function promptAgentDefinitionSerializer(item) {
|
|
83
80
|
return {
|
|
84
81
|
kind: item["kind"],
|
|
85
82
|
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
86
|
-
|
|
83
|
+
model: item["model"],
|
|
84
|
+
instructions: item["instructions"],
|
|
85
|
+
temperature: item["temperature"],
|
|
86
|
+
top_p: item["top_p"],
|
|
87
|
+
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningSerializer(item["reasoning"]),
|
|
88
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
89
|
+
tool_choice: !item["tool_choice"]
|
|
90
|
+
? item["tool_choice"]
|
|
91
|
+
: _promptAgentDefinitionToolChoiceSerializer(item["tool_choice"]),
|
|
92
|
+
text: !item["text"] ? item["text"] : promptAgentDefinitionTextOptionsSerializer(item["text"]),
|
|
93
|
+
structured_inputs: !item["structured_inputs"]
|
|
94
|
+
? item["structured_inputs"]
|
|
95
|
+
: structuredInputDefinitionRecordSerializer(item["structured_inputs"]),
|
|
87
96
|
};
|
|
88
97
|
}
|
|
89
|
-
export function
|
|
98
|
+
export function promptAgentDefinitionDeserializer(item) {
|
|
90
99
|
return {
|
|
91
100
|
kind: item["kind"],
|
|
92
101
|
rai_config: !item["rai_config"]
|
|
93
102
|
? item["rai_config"]
|
|
94
103
|
: raiConfigDeserializer(item["rai_config"]),
|
|
95
|
-
|
|
104
|
+
model: item["model"],
|
|
105
|
+
instructions: item["instructions"],
|
|
106
|
+
temperature: item["temperature"],
|
|
107
|
+
top_p: item["top_p"],
|
|
108
|
+
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningDeserializer(item["reasoning"]),
|
|
109
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
110
|
+
tool_choice: !item["tool_choice"]
|
|
111
|
+
? item["tool_choice"]
|
|
112
|
+
: _promptAgentDefinitionToolChoiceDeserializer(item["tool_choice"]),
|
|
113
|
+
text: !item["text"] ? item["text"] : promptAgentDefinitionTextOptionsDeserializer(item["text"]),
|
|
114
|
+
structured_inputs: !item["structured_inputs"]
|
|
115
|
+
? item["structured_inputs"]
|
|
116
|
+
: structuredInputDefinitionRecordDeserializer(item["structured_inputs"]),
|
|
96
117
|
};
|
|
97
118
|
}
|
|
98
|
-
export function
|
|
119
|
+
export function reasoningSerializer(item) {
|
|
99
120
|
return {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
104
|
-
cpu: item["cpu"],
|
|
105
|
-
memory: item["memory"],
|
|
106
|
-
environment_variables: item["environment_variables"],
|
|
121
|
+
effort: item["effort"],
|
|
122
|
+
summary: item["summary"],
|
|
123
|
+
generate_summary: item["generate_summary"],
|
|
107
124
|
};
|
|
108
125
|
}
|
|
109
|
-
export function
|
|
126
|
+
export function reasoningDeserializer(item) {
|
|
110
127
|
return {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
: raiConfigDeserializer(item["rai_config"]),
|
|
115
|
-
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
116
|
-
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
117
|
-
cpu: item["cpu"],
|
|
118
|
-
memory: item["memory"],
|
|
119
|
-
environment_variables: item["environment_variables"],
|
|
128
|
+
effort: item["effort"],
|
|
129
|
+
summary: item["summary"],
|
|
130
|
+
generate_summary: item["generate_summary"],
|
|
120
131
|
};
|
|
121
132
|
}
|
|
122
|
-
export function hostedAgentDefinitionUnionSerializer(item) {
|
|
123
|
-
switch (item.kind) {
|
|
124
|
-
case "hosted":
|
|
125
|
-
return imageBasedHostedAgentDefinitionSerializer(item);
|
|
126
|
-
default:
|
|
127
|
-
return hostedAgentDefinitionSerializer(item);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
export function hostedAgentDefinitionUnionDeserializer(item) {
|
|
131
|
-
switch (item.kind) {
|
|
132
|
-
case "hosted":
|
|
133
|
-
return imageBasedHostedAgentDefinitionDeserializer(item);
|
|
134
|
-
default:
|
|
135
|
-
return hostedAgentDefinitionDeserializer(item);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
133
|
export function toolUnionArraySerializer(result) {
|
|
139
134
|
return result.map((item) => {
|
|
140
135
|
return toolUnionSerializer(item);
|
|
@@ -175,8 +170,8 @@ export function toolUnionSerializer(item) {
|
|
|
175
170
|
return captureStructuredOutputsToolSerializer(item);
|
|
176
171
|
case "a2a_preview":
|
|
177
172
|
return a2APreviewToolSerializer(item);
|
|
178
|
-
case "
|
|
179
|
-
return
|
|
173
|
+
case "memory_search_preview":
|
|
174
|
+
return memorySearchPreviewToolSerializer(item);
|
|
180
175
|
case "code_interpreter":
|
|
181
176
|
return codeInterpreterToolSerializer(item);
|
|
182
177
|
case "function":
|
|
@@ -227,8 +222,8 @@ export function toolUnionDeserializer(item) {
|
|
|
227
222
|
return captureStructuredOutputsToolDeserializer(item);
|
|
228
223
|
case "a2a_preview":
|
|
229
224
|
return a2APreviewToolDeserializer(item);
|
|
230
|
-
case "
|
|
231
|
-
return
|
|
225
|
+
case "memory_search_preview":
|
|
226
|
+
return memorySearchPreviewToolDeserializer(item);
|
|
232
227
|
case "code_interpreter":
|
|
233
228
|
return codeInterpreterToolDeserializer(item);
|
|
234
229
|
case "function":
|
|
@@ -453,7 +448,7 @@ export function openApiFunctionDefinitionDeserializer(item) {
|
|
|
453
448
|
return {
|
|
454
449
|
name: item["name"],
|
|
455
450
|
description: item["description"],
|
|
456
|
-
spec: item["spec"],
|
|
451
|
+
spec: Object.fromEntries(Object.entries(item["spec"]).map(([k, p]) => [k, p])),
|
|
457
452
|
auth: openApiAuthDetailsUnionDeserializer(item["auth"]),
|
|
458
453
|
default_params: !item["default_params"]
|
|
459
454
|
? item["default_params"]
|
|
@@ -554,7 +549,7 @@ export function _openApiFunctionDefinitionFunctionDeserializer(item) {
|
|
|
554
549
|
return {
|
|
555
550
|
name: item["name"],
|
|
556
551
|
description: item["description"],
|
|
557
|
-
parameters: item["parameters"],
|
|
552
|
+
parameters: Object.fromEntries(Object.entries(item["parameters"]).map(([k, p]) => [k, p])),
|
|
558
553
|
};
|
|
559
554
|
}
|
|
560
555
|
export function bingCustomSearchPreviewToolSerializer(item) {
|
|
@@ -670,7 +665,7 @@ export function _azureFunctionDefinitionFunctionDeserializer(item) {
|
|
|
670
665
|
return {
|
|
671
666
|
name: item["name"],
|
|
672
667
|
description: item["description"],
|
|
673
|
-
parameters: item["parameters"],
|
|
668
|
+
parameters: Object.fromEntries(Object.entries(item["parameters"]).map(([k, p]) => [k, p])),
|
|
674
669
|
};
|
|
675
670
|
}
|
|
676
671
|
export function azureFunctionBindingSerializer(item) {
|
|
@@ -686,10 +681,7 @@ export function azureFunctionBindingDeserializer(item) {
|
|
|
686
681
|
};
|
|
687
682
|
}
|
|
688
683
|
export function azureFunctionStorageQueueSerializer(item) {
|
|
689
|
-
return {
|
|
690
|
-
queue_service_endpoint: item["queue_service_endpoint"],
|
|
691
|
-
queue_name: item["queue_name"],
|
|
692
|
-
};
|
|
684
|
+
return { queue_service_endpoint: item["queue_service_endpoint"], queue_name: item["queue_name"] };
|
|
693
685
|
}
|
|
694
686
|
export function azureFunctionStorageQueueDeserializer(item) {
|
|
695
687
|
return {
|
|
@@ -698,10 +690,7 @@ export function azureFunctionStorageQueueDeserializer(item) {
|
|
|
698
690
|
};
|
|
699
691
|
}
|
|
700
692
|
export function captureStructuredOutputsToolSerializer(item) {
|
|
701
|
-
return {
|
|
702
|
-
type: item["type"],
|
|
703
|
-
outputs: structuredOutputDefinitionSerializer(item["outputs"]),
|
|
704
|
-
};
|
|
693
|
+
return { type: item["type"], outputs: structuredOutputDefinitionSerializer(item["outputs"]) };
|
|
705
694
|
}
|
|
706
695
|
export function captureStructuredOutputsToolDeserializer(item) {
|
|
707
696
|
return {
|
|
@@ -721,7 +710,7 @@ export function structuredOutputDefinitionDeserializer(item) {
|
|
|
721
710
|
return {
|
|
722
711
|
name: item["name"],
|
|
723
712
|
description: item["description"],
|
|
724
|
-
schema: item["schema"],
|
|
713
|
+
schema: Object.fromEntries(Object.entries(item["schema"]).map(([k, p]) => [k, p])),
|
|
725
714
|
strict: item["strict"],
|
|
726
715
|
};
|
|
727
716
|
}
|
|
@@ -741,7 +730,7 @@ export function a2APreviewToolDeserializer(item) {
|
|
|
741
730
|
project_connection_id: item["project_connection_id"],
|
|
742
731
|
};
|
|
743
732
|
}
|
|
744
|
-
export function
|
|
733
|
+
export function memorySearchPreviewToolSerializer(item) {
|
|
745
734
|
return {
|
|
746
735
|
type: item["type"],
|
|
747
736
|
memory_store_name: item["memory_store_name"],
|
|
@@ -752,7 +741,7 @@ export function memorySearchToolSerializer(item) {
|
|
|
752
741
|
update_delay: item["update_delay"],
|
|
753
742
|
};
|
|
754
743
|
}
|
|
755
|
-
export function
|
|
744
|
+
export function memorySearchPreviewToolDeserializer(item) {
|
|
756
745
|
return {
|
|
757
746
|
type: item["type"],
|
|
758
747
|
memory_store_name: item["memory_store_name"],
|
|
@@ -774,13 +763,17 @@ export function memorySearchOptionsDeserializer(item) {
|
|
|
774
763
|
export function codeInterpreterToolSerializer(item) {
|
|
775
764
|
return {
|
|
776
765
|
type: item["type"],
|
|
777
|
-
container:
|
|
766
|
+
container: !item["container"]
|
|
767
|
+
? item["container"]
|
|
768
|
+
: _codeInterpreterToolContainerSerializer(item["container"]),
|
|
778
769
|
};
|
|
779
770
|
}
|
|
780
771
|
export function codeInterpreterToolDeserializer(item) {
|
|
781
772
|
return {
|
|
782
773
|
type: item["type"],
|
|
783
|
-
container:
|
|
774
|
+
container: !item["container"]
|
|
775
|
+
? item["container"]
|
|
776
|
+
: _codeInterpreterToolContainerDeserializer(item["container"]),
|
|
784
777
|
};
|
|
785
778
|
}
|
|
786
779
|
export function _codeInterpreterToolContainerSerializer(item) {
|
|
@@ -825,7 +818,9 @@ export function functionToolDeserializer(item) {
|
|
|
825
818
|
type: item["type"],
|
|
826
819
|
name: item["name"],
|
|
827
820
|
description: item["description"],
|
|
828
|
-
parameters: item["parameters"]
|
|
821
|
+
parameters: !item["parameters"]
|
|
822
|
+
? item["parameters"]
|
|
823
|
+
: Object.fromEntries(Object.entries(item["parameters"]).map(([k1, p1]) => [k1, p1])),
|
|
829
824
|
strict: item["strict"],
|
|
830
825
|
};
|
|
831
826
|
}
|
|
@@ -1288,127 +1283,198 @@ export function applyPatchToolParamDeserializer(item) {
|
|
|
1288
1283
|
type: item["type"],
|
|
1289
1284
|
};
|
|
1290
1285
|
}
|
|
1291
|
-
export function
|
|
1292
|
-
return
|
|
1293
|
-
return protocolVersionRecordSerializer(item);
|
|
1294
|
-
});
|
|
1286
|
+
export function _promptAgentDefinitionToolChoiceSerializer(item) {
|
|
1287
|
+
return item;
|
|
1295
1288
|
}
|
|
1296
|
-
export function
|
|
1297
|
-
return
|
|
1298
|
-
return protocolVersionRecordDeserializer(item);
|
|
1299
|
-
});
|
|
1289
|
+
export function _promptAgentDefinitionToolChoiceDeserializer(item) {
|
|
1290
|
+
return item;
|
|
1300
1291
|
}
|
|
1301
|
-
export function
|
|
1302
|
-
return {
|
|
1292
|
+
export function toolChoiceParamSerializer(item) {
|
|
1293
|
+
return { type: item["type"] };
|
|
1303
1294
|
}
|
|
1304
|
-
export function
|
|
1295
|
+
export function toolChoiceParamDeserializer(item) {
|
|
1305
1296
|
return {
|
|
1306
|
-
|
|
1307
|
-
|
|
1297
|
+
type: item["type"],
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1300
|
+
export function toolChoiceParamUnionSerializer(item) {
|
|
1301
|
+
switch (item.type) {
|
|
1302
|
+
case "allowed_tools":
|
|
1303
|
+
return toolChoiceAllowedSerializer(item);
|
|
1304
|
+
case "function":
|
|
1305
|
+
return toolChoiceFunctionSerializer(item);
|
|
1306
|
+
case "mcp":
|
|
1307
|
+
return toolChoiceMCPSerializer(item);
|
|
1308
|
+
case "custom":
|
|
1309
|
+
return toolChoiceCustomSerializer(item);
|
|
1310
|
+
case "apply_patch":
|
|
1311
|
+
return specificApplyPatchParamSerializer(item);
|
|
1312
|
+
case "shell":
|
|
1313
|
+
return specificFunctionShellParamSerializer(item);
|
|
1314
|
+
case "file_search":
|
|
1315
|
+
return toolChoiceFileSearchSerializer(item);
|
|
1316
|
+
case "web_search_preview":
|
|
1317
|
+
return toolChoiceWebSearchPreviewSerializer(item);
|
|
1318
|
+
case "computer_use_preview":
|
|
1319
|
+
return toolChoiceComputerUsePreviewSerializer(item);
|
|
1320
|
+
case "web_search_preview_2025_03_11":
|
|
1321
|
+
return toolChoiceWebSearchPreview20250311Serializer(item);
|
|
1322
|
+
case "image_generation":
|
|
1323
|
+
return toolChoiceImageGenerationSerializer(item);
|
|
1324
|
+
case "code_interpreter":
|
|
1325
|
+
return toolChoiceCodeInterpreterSerializer(item);
|
|
1326
|
+
default:
|
|
1327
|
+
return toolChoiceParamSerializer(item);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
export function toolChoiceParamUnionDeserializer(item) {
|
|
1331
|
+
switch (item.type) {
|
|
1332
|
+
case "allowed_tools":
|
|
1333
|
+
return toolChoiceAllowedDeserializer(item);
|
|
1334
|
+
case "function":
|
|
1335
|
+
return toolChoiceFunctionDeserializer(item);
|
|
1336
|
+
case "mcp":
|
|
1337
|
+
return toolChoiceMCPDeserializer(item);
|
|
1338
|
+
case "custom":
|
|
1339
|
+
return toolChoiceCustomDeserializer(item);
|
|
1340
|
+
case "apply_patch":
|
|
1341
|
+
return specificApplyPatchParamDeserializer(item);
|
|
1342
|
+
case "shell":
|
|
1343
|
+
return specificFunctionShellParamDeserializer(item);
|
|
1344
|
+
case "file_search":
|
|
1345
|
+
return toolChoiceFileSearchDeserializer(item);
|
|
1346
|
+
case "web_search_preview":
|
|
1347
|
+
return toolChoiceWebSearchPreviewDeserializer(item);
|
|
1348
|
+
case "computer_use_preview":
|
|
1349
|
+
return toolChoiceComputerUsePreviewDeserializer(item);
|
|
1350
|
+
case "web_search_preview_2025_03_11":
|
|
1351
|
+
return toolChoiceWebSearchPreview20250311Deserializer(item);
|
|
1352
|
+
case "image_generation":
|
|
1353
|
+
return toolChoiceImageGenerationDeserializer(item);
|
|
1354
|
+
case "code_interpreter":
|
|
1355
|
+
return toolChoiceCodeInterpreterDeserializer(item);
|
|
1356
|
+
default:
|
|
1357
|
+
return toolChoiceParamDeserializer(item);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
export function toolChoiceAllowedSerializer(item) {
|
|
1361
|
+
return {
|
|
1362
|
+
type: item["type"],
|
|
1363
|
+
mode: item["mode"],
|
|
1364
|
+
tools: item["tools"].map((p) => {
|
|
1365
|
+
return p;
|
|
1366
|
+
}),
|
|
1308
1367
|
};
|
|
1309
1368
|
}
|
|
1310
|
-
export function
|
|
1369
|
+
export function toolChoiceAllowedDeserializer(item) {
|
|
1311
1370
|
return {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
environment_variables: item["environment_variables"],
|
|
1318
|
-
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1319
|
-
image: item["image"],
|
|
1371
|
+
type: item["type"],
|
|
1372
|
+
mode: item["mode"],
|
|
1373
|
+
tools: item["tools"].map((p) => {
|
|
1374
|
+
return Object.fromEntries(Object.entries(p).map(([k1, p1]) => [k1, p1]));
|
|
1375
|
+
}),
|
|
1320
1376
|
};
|
|
1321
1377
|
}
|
|
1322
|
-
export function
|
|
1378
|
+
export function toolChoiceFunctionSerializer(item) {
|
|
1379
|
+
return { type: item["type"], name: item["name"] };
|
|
1380
|
+
}
|
|
1381
|
+
export function toolChoiceFunctionDeserializer(item) {
|
|
1323
1382
|
return {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1327
|
-
cpu: item["cpu"],
|
|
1328
|
-
memory: item["memory"],
|
|
1329
|
-
environment_variables: item["environment_variables"],
|
|
1330
|
-
rai_config: !item["rai_config"]
|
|
1331
|
-
? item["rai_config"]
|
|
1332
|
-
: raiConfigDeserializer(item["rai_config"]),
|
|
1333
|
-
image: item["image"],
|
|
1383
|
+
type: item["type"],
|
|
1384
|
+
name: item["name"],
|
|
1334
1385
|
};
|
|
1335
1386
|
}
|
|
1336
|
-
export function
|
|
1387
|
+
export function toolChoiceMCPSerializer(item) {
|
|
1388
|
+
return { type: item["type"], server_label: item["server_label"], name: item["name"] };
|
|
1389
|
+
}
|
|
1390
|
+
export function toolChoiceMCPDeserializer(item) {
|
|
1337
1391
|
return {
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
container_app_resource_id: item["container_app_resource_id"],
|
|
1342
|
-
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1392
|
+
type: item["type"],
|
|
1393
|
+
server_label: item["server_label"],
|
|
1394
|
+
name: item["name"],
|
|
1343
1395
|
};
|
|
1344
1396
|
}
|
|
1345
|
-
export function
|
|
1397
|
+
export function toolChoiceCustomSerializer(item) {
|
|
1398
|
+
return { type: item["type"], name: item["name"] };
|
|
1399
|
+
}
|
|
1400
|
+
export function toolChoiceCustomDeserializer(item) {
|
|
1346
1401
|
return {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
? item["rai_config"]
|
|
1350
|
-
: raiConfigDeserializer(item["rai_config"]),
|
|
1351
|
-
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1352
|
-
container_app_resource_id: item["container_app_resource_id"],
|
|
1353
|
-
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1402
|
+
type: item["type"],
|
|
1403
|
+
name: item["name"],
|
|
1354
1404
|
};
|
|
1355
1405
|
}
|
|
1356
|
-
export function
|
|
1406
|
+
export function specificApplyPatchParamSerializer(item) {
|
|
1407
|
+
return { type: item["type"] };
|
|
1408
|
+
}
|
|
1409
|
+
export function specificApplyPatchParamDeserializer(item) {
|
|
1357
1410
|
return {
|
|
1358
|
-
|
|
1359
|
-
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1360
|
-
model: item["model"],
|
|
1361
|
-
instructions: item["instructions"],
|
|
1362
|
-
temperature: item["temperature"],
|
|
1363
|
-
top_p: item["top_p"],
|
|
1364
|
-
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningSerializer(item["reasoning"]),
|
|
1365
|
-
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
1366
|
-
text: !item["text"] ? item["text"] : _promptAgentDefinitionTextSerializer(item["text"]),
|
|
1367
|
-
structured_inputs: !item["structured_inputs"]
|
|
1368
|
-
? item["structured_inputs"]
|
|
1369
|
-
: structuredInputDefinitionRecordSerializer(item["structured_inputs"]),
|
|
1411
|
+
type: item["type"],
|
|
1370
1412
|
};
|
|
1371
1413
|
}
|
|
1372
|
-
export function
|
|
1414
|
+
export function specificFunctionShellParamSerializer(item) {
|
|
1415
|
+
return { type: item["type"] };
|
|
1416
|
+
}
|
|
1417
|
+
export function specificFunctionShellParamDeserializer(item) {
|
|
1373
1418
|
return {
|
|
1374
|
-
|
|
1375
|
-
rai_config: !item["rai_config"]
|
|
1376
|
-
? item["rai_config"]
|
|
1377
|
-
: raiConfigDeserializer(item["rai_config"]),
|
|
1378
|
-
model: item["model"],
|
|
1379
|
-
instructions: item["instructions"],
|
|
1380
|
-
temperature: item["temperature"],
|
|
1381
|
-
top_p: item["top_p"],
|
|
1382
|
-
reasoning: !item["reasoning"] ? item["reasoning"] : reasoningDeserializer(item["reasoning"]),
|
|
1383
|
-
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
1384
|
-
text: !item["text"] ? item["text"] : _promptAgentDefinitionTextDeserializer(item["text"]),
|
|
1385
|
-
structured_inputs: !item["structured_inputs"]
|
|
1386
|
-
? item["structured_inputs"]
|
|
1387
|
-
: structuredInputDefinitionRecordDeserializer(item["structured_inputs"]),
|
|
1419
|
+
type: item["type"],
|
|
1388
1420
|
};
|
|
1389
1421
|
}
|
|
1390
|
-
export function
|
|
1422
|
+
export function toolChoiceFileSearchSerializer(item) {
|
|
1423
|
+
return { type: item["type"] };
|
|
1424
|
+
}
|
|
1425
|
+
export function toolChoiceFileSearchDeserializer(item) {
|
|
1391
1426
|
return {
|
|
1392
|
-
|
|
1393
|
-
summary: item["summary"],
|
|
1394
|
-
generate_summary: item["generate_summary"],
|
|
1427
|
+
type: item["type"],
|
|
1395
1428
|
};
|
|
1396
1429
|
}
|
|
1397
|
-
export function
|
|
1430
|
+
export function toolChoiceWebSearchPreviewSerializer(item) {
|
|
1431
|
+
return { type: item["type"] };
|
|
1432
|
+
}
|
|
1433
|
+
export function toolChoiceWebSearchPreviewDeserializer(item) {
|
|
1398
1434
|
return {
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1435
|
+
type: item["type"],
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
export function toolChoiceComputerUsePreviewSerializer(item) {
|
|
1439
|
+
return { type: item["type"] };
|
|
1440
|
+
}
|
|
1441
|
+
export function toolChoiceComputerUsePreviewDeserializer(item) {
|
|
1442
|
+
return {
|
|
1443
|
+
type: item["type"],
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1446
|
+
export function toolChoiceWebSearchPreview20250311Serializer(item) {
|
|
1447
|
+
return { type: item["type"] };
|
|
1448
|
+
}
|
|
1449
|
+
export function toolChoiceWebSearchPreview20250311Deserializer(item) {
|
|
1450
|
+
return {
|
|
1451
|
+
type: item["type"],
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
export function toolChoiceImageGenerationSerializer(item) {
|
|
1455
|
+
return { type: item["type"] };
|
|
1456
|
+
}
|
|
1457
|
+
export function toolChoiceImageGenerationDeserializer(item) {
|
|
1458
|
+
return {
|
|
1459
|
+
type: item["type"],
|
|
1460
|
+
};
|
|
1461
|
+
}
|
|
1462
|
+
export function toolChoiceCodeInterpreterSerializer(item) {
|
|
1463
|
+
return { type: item["type"] };
|
|
1464
|
+
}
|
|
1465
|
+
export function toolChoiceCodeInterpreterDeserializer(item) {
|
|
1466
|
+
return {
|
|
1467
|
+
type: item["type"],
|
|
1402
1468
|
};
|
|
1403
1469
|
}
|
|
1404
|
-
export function
|
|
1470
|
+
export function promptAgentDefinitionTextOptionsSerializer(item) {
|
|
1405
1471
|
return {
|
|
1406
1472
|
format: !item["format"]
|
|
1407
1473
|
? item["format"]
|
|
1408
1474
|
: textResponseFormatConfigurationUnionSerializer(item["format"]),
|
|
1409
1475
|
};
|
|
1410
1476
|
}
|
|
1411
|
-
export function
|
|
1477
|
+
export function promptAgentDefinitionTextOptionsDeserializer(item) {
|
|
1412
1478
|
return {
|
|
1413
1479
|
format: !item["format"]
|
|
1414
1480
|
? item["format"]
|
|
@@ -1507,39 +1573,120 @@ export function structuredInputDefinitionDeserializer(item) {
|
|
|
1507
1573
|
return {
|
|
1508
1574
|
description: item["description"],
|
|
1509
1575
|
default_value: item["default_value"],
|
|
1510
|
-
schema: item["schema"]
|
|
1576
|
+
schema: !item["schema"]
|
|
1577
|
+
? item["schema"]
|
|
1578
|
+
: Object.fromEntries(Object.entries(item["schema"]).map(([k, p]) => [k, p])),
|
|
1511
1579
|
required: item["required"],
|
|
1512
1580
|
};
|
|
1513
1581
|
}
|
|
1514
|
-
export function
|
|
1582
|
+
export function workflowAgentDefinitionSerializer(item) {
|
|
1515
1583
|
return {
|
|
1516
|
-
|
|
1584
|
+
kind: item["kind"],
|
|
1585
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1586
|
+
workflow: item["workflow"],
|
|
1517
1587
|
};
|
|
1518
1588
|
}
|
|
1519
|
-
export function
|
|
1589
|
+
export function workflowAgentDefinitionDeserializer(item) {
|
|
1520
1590
|
return {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1591
|
+
kind: item["kind"],
|
|
1592
|
+
rai_config: !item["rai_config"]
|
|
1593
|
+
? item["rai_config"]
|
|
1594
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1595
|
+
workflow: item["workflow"],
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
export function hostedAgentDefinitionSerializer(item) {
|
|
1599
|
+
return {
|
|
1600
|
+
kind: item["kind"],
|
|
1601
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1602
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
1603
|
+
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
1604
|
+
cpu: item["cpu"],
|
|
1605
|
+
memory: item["memory"],
|
|
1606
|
+
environment_variables: item["environment_variables"],
|
|
1607
|
+
image: item["image"],
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
export function hostedAgentDefinitionDeserializer(item) {
|
|
1611
|
+
return {
|
|
1612
|
+
kind: item["kind"],
|
|
1613
|
+
rai_config: !item["rai_config"]
|
|
1614
|
+
? item["rai_config"]
|
|
1615
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1616
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
1617
|
+
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1618
|
+
cpu: item["cpu"],
|
|
1619
|
+
memory: item["memory"],
|
|
1620
|
+
environment_variables: !item["environment_variables"]
|
|
1621
|
+
? item["environment_variables"]
|
|
1622
|
+
: Object.fromEntries(Object.entries(item["environment_variables"]).map(([k, p]) => [k, p])),
|
|
1623
|
+
image: item["image"],
|
|
1528
1624
|
};
|
|
1529
1625
|
}
|
|
1530
|
-
export function
|
|
1531
|
-
return
|
|
1532
|
-
return
|
|
1626
|
+
export function protocolVersionRecordArraySerializer(result) {
|
|
1627
|
+
return result.map((item) => {
|
|
1628
|
+
return protocolVersionRecordSerializer(item);
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
export function protocolVersionRecordArrayDeserializer(result) {
|
|
1632
|
+
return result.map((item) => {
|
|
1633
|
+
return protocolVersionRecordDeserializer(item);
|
|
1533
1634
|
});
|
|
1534
1635
|
}
|
|
1535
|
-
export function
|
|
1636
|
+
export function protocolVersionRecordSerializer(item) {
|
|
1637
|
+
return { protocol: item["protocol"], version: item["version"] };
|
|
1638
|
+
}
|
|
1639
|
+
export function protocolVersionRecordDeserializer(item) {
|
|
1640
|
+
return {
|
|
1641
|
+
protocol: item["protocol"],
|
|
1642
|
+
version: item["version"],
|
|
1643
|
+
};
|
|
1644
|
+
}
|
|
1645
|
+
export function containerAppAgentDefinitionSerializer(item) {
|
|
1646
|
+
return {
|
|
1647
|
+
kind: item["kind"],
|
|
1648
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
1649
|
+
container_protocol_versions: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
1650
|
+
container_app_resource_id: item["container_app_resource_id"],
|
|
1651
|
+
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
export function containerAppAgentDefinitionDeserializer(item) {
|
|
1655
|
+
return {
|
|
1656
|
+
kind: item["kind"],
|
|
1657
|
+
rai_config: !item["rai_config"]
|
|
1658
|
+
? item["rai_config"]
|
|
1659
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
1660
|
+
container_protocol_versions: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
1661
|
+
container_app_resource_id: item["container_app_resource_id"],
|
|
1662
|
+
ingress_subdomain_suffix: item["ingress_subdomain_suffix"],
|
|
1663
|
+
};
|
|
1664
|
+
}
|
|
1665
|
+
export function apiErrorResponseDeserializer(item) {
|
|
1666
|
+
return {
|
|
1667
|
+
error: errorDeserializer(item["error"]),
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
export function errorDeserializer(item) {
|
|
1536
1671
|
return {
|
|
1537
1672
|
code: item["code"],
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1673
|
+
message: item["message"],
|
|
1674
|
+
param: item["param"],
|
|
1675
|
+
type: item["type"],
|
|
1676
|
+
details: !item["details"] ? item["details"] : errorArrayDeserializer(item["details"]),
|
|
1677
|
+
additionalInfo: !item["additionalInfo"]
|
|
1678
|
+
? item["additionalInfo"]
|
|
1679
|
+
: Object.fromEntries(Object.entries(item["additionalInfo"]).map(([k, p]) => [k, p])),
|
|
1680
|
+
debugInfo: !item["debugInfo"]
|
|
1681
|
+
? item["debugInfo"]
|
|
1682
|
+
: Object.fromEntries(Object.entries(item["debugInfo"]).map(([k, p]) => [k, p])),
|
|
1541
1683
|
};
|
|
1542
1684
|
}
|
|
1685
|
+
export function errorArrayDeserializer(result) {
|
|
1686
|
+
return result.map((item) => {
|
|
1687
|
+
return errorDeserializer(item);
|
|
1688
|
+
});
|
|
1689
|
+
}
|
|
1543
1690
|
export function deleteAgentResponseDeserializer(item) {
|
|
1544
1691
|
return {
|
|
1545
1692
|
object: item["object"],
|
|
@@ -1549,15 +1696,15 @@ export function deleteAgentResponseDeserializer(item) {
|
|
|
1549
1696
|
}
|
|
1550
1697
|
export function _agentsPagedResultAgentObjectDeserializer(item) {
|
|
1551
1698
|
return {
|
|
1552
|
-
data:
|
|
1699
|
+
data: agentArrayDeserializer(item["data"]),
|
|
1553
1700
|
first_id: item["first_id"],
|
|
1554
1701
|
last_id: item["last_id"],
|
|
1555
1702
|
has_more: item["has_more"],
|
|
1556
1703
|
};
|
|
1557
1704
|
}
|
|
1558
|
-
export function
|
|
1705
|
+
export function agentArrayDeserializer(result) {
|
|
1559
1706
|
return result.map((item) => {
|
|
1560
|
-
return
|
|
1707
|
+
return agentDeserializer(item);
|
|
1561
1708
|
});
|
|
1562
1709
|
}
|
|
1563
1710
|
export function deleteAgentVersionResponseDeserializer(item) {
|
|
@@ -1570,2351 +1717,2362 @@ export function deleteAgentVersionResponseDeserializer(item) {
|
|
|
1570
1717
|
}
|
|
1571
1718
|
export function _agentsPagedResultAgentVersionObjectDeserializer(item) {
|
|
1572
1719
|
return {
|
|
1573
|
-
data:
|
|
1720
|
+
data: agentVersionArrayDeserializer(item["data"]),
|
|
1574
1721
|
first_id: item["first_id"],
|
|
1575
1722
|
last_id: item["last_id"],
|
|
1576
1723
|
has_more: item["has_more"],
|
|
1577
1724
|
};
|
|
1578
1725
|
}
|
|
1579
|
-
export function
|
|
1726
|
+
export function agentVersionArrayDeserializer(result) {
|
|
1580
1727
|
return result.map((item) => {
|
|
1581
|
-
return
|
|
1728
|
+
return agentVersionDeserializer(item);
|
|
1582
1729
|
});
|
|
1583
1730
|
}
|
|
1584
|
-
export function
|
|
1585
|
-
return {
|
|
1731
|
+
export function evaluationRuleSerializer(item) {
|
|
1732
|
+
return {
|
|
1733
|
+
displayName: item["displayName"],
|
|
1734
|
+
description: item["description"],
|
|
1735
|
+
action: evaluationRuleActionUnionSerializer(item["action"]),
|
|
1736
|
+
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterSerializer(item["filter"]),
|
|
1737
|
+
eventType: item["eventType"],
|
|
1738
|
+
enabled: item["enabled"],
|
|
1739
|
+
};
|
|
1586
1740
|
}
|
|
1587
|
-
export function
|
|
1741
|
+
export function evaluationRuleDeserializer(item) {
|
|
1588
1742
|
return {
|
|
1589
|
-
|
|
1743
|
+
id: item["id"],
|
|
1744
|
+
displayName: item["displayName"],
|
|
1745
|
+
description: item["description"],
|
|
1746
|
+
action: evaluationRuleActionUnionDeserializer(item["action"]),
|
|
1747
|
+
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterDeserializer(item["filter"]),
|
|
1748
|
+
eventType: item["eventType"],
|
|
1749
|
+
enabled: item["enabled"],
|
|
1750
|
+
systemData: Object.fromEntries(Object.entries(item["systemData"]).map(([k, p]) => [k, p])),
|
|
1590
1751
|
};
|
|
1591
1752
|
}
|
|
1592
|
-
export function
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1753
|
+
export function evaluationRuleActionSerializer(item) {
|
|
1754
|
+
return { type: item["type"] };
|
|
1755
|
+
}
|
|
1756
|
+
export function evaluationRuleActionDeserializer(item) {
|
|
1757
|
+
return {
|
|
1758
|
+
type: item["type"],
|
|
1759
|
+
};
|
|
1760
|
+
}
|
|
1761
|
+
export function evaluationRuleActionUnionSerializer(item) {
|
|
1762
|
+
switch (item.type) {
|
|
1763
|
+
case "continuousEvaluation":
|
|
1764
|
+
return continuousEvaluationRuleActionSerializer(item);
|
|
1765
|
+
case "humanEvaluationPreview":
|
|
1766
|
+
return humanEvaluationPreviewRuleActionSerializer(item);
|
|
1596
1767
|
default:
|
|
1597
|
-
return
|
|
1768
|
+
return evaluationRuleActionSerializer(item);
|
|
1598
1769
|
}
|
|
1599
1770
|
}
|
|
1600
|
-
export function
|
|
1601
|
-
switch (item.
|
|
1602
|
-
case "
|
|
1603
|
-
return
|
|
1771
|
+
export function evaluationRuleActionUnionDeserializer(item) {
|
|
1772
|
+
switch (item.type) {
|
|
1773
|
+
case "continuousEvaluation":
|
|
1774
|
+
return continuousEvaluationRuleActionDeserializer(item);
|
|
1775
|
+
case "humanEvaluationPreview":
|
|
1776
|
+
return humanEvaluationPreviewRuleActionDeserializer(item);
|
|
1604
1777
|
default:
|
|
1605
|
-
return
|
|
1778
|
+
return evaluationRuleActionDeserializer(item);
|
|
1606
1779
|
}
|
|
1607
1780
|
}
|
|
1608
|
-
export function
|
|
1609
|
-
return {
|
|
1610
|
-
kind: item["kind"],
|
|
1611
|
-
chat_model: item["chat_model"],
|
|
1612
|
-
embedding_model: item["embedding_model"],
|
|
1613
|
-
options: !item["options"]
|
|
1614
|
-
? item["options"]
|
|
1615
|
-
: memoryStoreDefaultOptionsSerializer(item["options"]),
|
|
1616
|
-
};
|
|
1781
|
+
export function continuousEvaluationRuleActionSerializer(item) {
|
|
1782
|
+
return { type: item["type"], evalId: item["evalId"], maxHourlyRuns: item["maxHourlyRuns"] };
|
|
1617
1783
|
}
|
|
1618
|
-
export function
|
|
1784
|
+
export function continuousEvaluationRuleActionDeserializer(item) {
|
|
1619
1785
|
return {
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
options: !item["options"]
|
|
1624
|
-
? item["options"]
|
|
1625
|
-
: memoryStoreDefaultOptionsDeserializer(item["options"]),
|
|
1786
|
+
type: item["type"],
|
|
1787
|
+
evalId: item["evalId"],
|
|
1788
|
+
maxHourlyRuns: item["maxHourlyRuns"],
|
|
1626
1789
|
};
|
|
1627
1790
|
}
|
|
1628
|
-
export function
|
|
1629
|
-
return {
|
|
1630
|
-
user_profile_enabled: item["user_profile_enabled"],
|
|
1631
|
-
user_profile_details: item["user_profile_details"],
|
|
1632
|
-
chat_summary_enabled: item["chat_summary_enabled"],
|
|
1633
|
-
};
|
|
1791
|
+
export function humanEvaluationPreviewRuleActionSerializer(item) {
|
|
1792
|
+
return { type: item["type"], templateId: item["templateId"] };
|
|
1634
1793
|
}
|
|
1635
|
-
export function
|
|
1794
|
+
export function humanEvaluationPreviewRuleActionDeserializer(item) {
|
|
1636
1795
|
return {
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
chat_summary_enabled: item["chat_summary_enabled"],
|
|
1796
|
+
type: item["type"],
|
|
1797
|
+
templateId: item["templateId"],
|
|
1640
1798
|
};
|
|
1641
1799
|
}
|
|
1642
|
-
export function
|
|
1800
|
+
export function evaluationRuleFilterSerializer(item) {
|
|
1801
|
+
return { agentName: item["agentName"] };
|
|
1802
|
+
}
|
|
1803
|
+
export function evaluationRuleFilterDeserializer(item) {
|
|
1643
1804
|
return {
|
|
1644
|
-
|
|
1645
|
-
id: item["id"],
|
|
1646
|
-
created_at: new Date(item["created_at"] * 1000),
|
|
1647
|
-
updated_at: new Date(item["updated_at"] * 1000),
|
|
1648
|
-
name: item["name"],
|
|
1649
|
-
description: item["description"],
|
|
1650
|
-
metadata: item["metadata"],
|
|
1651
|
-
definition: memoryStoreDefinitionUnionDeserializer(item["definition"]),
|
|
1805
|
+
agentName: item["agentName"],
|
|
1652
1806
|
};
|
|
1653
1807
|
}
|
|
1654
|
-
export function
|
|
1808
|
+
export function _pagedEvaluationRuleDeserializer(item) {
|
|
1655
1809
|
return {
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
last_id: item["last_id"],
|
|
1659
|
-
has_more: item["has_more"],
|
|
1810
|
+
value: evaluationRuleArrayDeserializer(item["value"]),
|
|
1811
|
+
nextLink: item["nextLink"],
|
|
1660
1812
|
};
|
|
1661
1813
|
}
|
|
1662
|
-
export function
|
|
1814
|
+
export function evaluationRuleArraySerializer(result) {
|
|
1815
|
+
return result.map((item) => {
|
|
1816
|
+
return evaluationRuleSerializer(item);
|
|
1817
|
+
});
|
|
1818
|
+
}
|
|
1819
|
+
export function evaluationRuleArrayDeserializer(result) {
|
|
1663
1820
|
return result.map((item) => {
|
|
1664
|
-
return
|
|
1821
|
+
return evaluationRuleDeserializer(item);
|
|
1665
1822
|
});
|
|
1666
1823
|
}
|
|
1667
|
-
export function
|
|
1824
|
+
export function connectionDeserializer(item) {
|
|
1668
1825
|
return {
|
|
1669
|
-
object: item["object"],
|
|
1670
1826
|
name: item["name"],
|
|
1671
|
-
|
|
1827
|
+
id: item["id"],
|
|
1828
|
+
type: item["type"],
|
|
1829
|
+
target: item["target"],
|
|
1830
|
+
isDefault: item["isDefault"],
|
|
1831
|
+
credentials: baseCredentialsUnionDeserializer(item["credentials"]),
|
|
1832
|
+
metadata: Object.fromEntries(Object.entries(item["metadata"]).map(([k, p]) => [k, p])),
|
|
1672
1833
|
};
|
|
1673
1834
|
}
|
|
1674
|
-
export function
|
|
1675
|
-
return {
|
|
1835
|
+
export function baseCredentialsDeserializer(item) {
|
|
1836
|
+
return {
|
|
1837
|
+
type: item["type"],
|
|
1838
|
+
};
|
|
1676
1839
|
}
|
|
1677
|
-
export function
|
|
1840
|
+
export function baseCredentialsUnionDeserializer(item) {
|
|
1678
1841
|
switch (item.type) {
|
|
1679
|
-
case "
|
|
1680
|
-
return
|
|
1681
|
-
case "
|
|
1682
|
-
return
|
|
1683
|
-
case "
|
|
1684
|
-
return
|
|
1685
|
-
case "
|
|
1686
|
-
return
|
|
1687
|
-
case "
|
|
1688
|
-
return
|
|
1689
|
-
case "
|
|
1690
|
-
return
|
|
1691
|
-
case "shell_call_output":
|
|
1692
|
-
return functionShellCallOutputItemParamSerializer(item);
|
|
1693
|
-
case "apply_patch_call":
|
|
1694
|
-
return applyPatchToolCallItemParamSerializer(item);
|
|
1695
|
-
case "apply_patch_call_output":
|
|
1696
|
-
return applyPatchToolCallOutputItemParamSerializer(item);
|
|
1697
|
-
case "mcp_approval_response":
|
|
1698
|
-
return mcpApprovalResponseSerializer(item);
|
|
1699
|
-
case "output_message":
|
|
1700
|
-
return itemOutputMessageSerializer(item);
|
|
1701
|
-
case "file_search_call":
|
|
1702
|
-
return itemFileSearchToolCallSerializer(item);
|
|
1703
|
-
case "computer_call":
|
|
1704
|
-
return itemComputerToolCallSerializer(item);
|
|
1705
|
-
case "web_search_call":
|
|
1706
|
-
return itemWebSearchToolCallSerializer(item);
|
|
1707
|
-
case "function_call":
|
|
1708
|
-
return itemFunctionToolCallSerializer(item);
|
|
1709
|
-
case "reasoning":
|
|
1710
|
-
return itemReasoningItemSerializer(item);
|
|
1711
|
-
case "image_generation_call":
|
|
1712
|
-
return itemImageGenToolCallSerializer(item);
|
|
1713
|
-
case "code_interpreter_call":
|
|
1714
|
-
return itemCodeInterpreterToolCallSerializer(item);
|
|
1715
|
-
case "local_shell_call":
|
|
1716
|
-
return itemLocalShellToolCallSerializer(item);
|
|
1717
|
-
case "local_shell_call_output":
|
|
1718
|
-
return itemLocalShellToolCallOutputSerializer(item);
|
|
1719
|
-
case "mcp_list_tools":
|
|
1720
|
-
return itemMcpListToolsSerializer(item);
|
|
1721
|
-
case "mcp_approval_request":
|
|
1722
|
-
return itemMcpApprovalRequestSerializer(item);
|
|
1723
|
-
case "mcp_call":
|
|
1724
|
-
return itemMcpToolCallSerializer(item);
|
|
1725
|
-
case "custom_tool_call_output":
|
|
1726
|
-
return itemCustomToolCallOutputSerializer(item);
|
|
1727
|
-
case "custom_tool_call":
|
|
1728
|
-
return itemCustomToolCallSerializer(item);
|
|
1842
|
+
case "ApiKey":
|
|
1843
|
+
return apiKeyCredentialsDeserializer(item);
|
|
1844
|
+
case "AAD":
|
|
1845
|
+
return entraIDCredentialsDeserializer(item);
|
|
1846
|
+
case "CustomKeys":
|
|
1847
|
+
return customCredentialDeserializer(item);
|
|
1848
|
+
case "SAS":
|
|
1849
|
+
return sasCredentialsDeserializer(item);
|
|
1850
|
+
case "None":
|
|
1851
|
+
return noAuthenticationCredentialsDeserializer(item);
|
|
1852
|
+
case "AgenticIdentityToken_Preview":
|
|
1853
|
+
return agenticIdentityPreviewCredentialsDeserializer(item);
|
|
1729
1854
|
default:
|
|
1730
|
-
return
|
|
1855
|
+
return baseCredentialsDeserializer(item);
|
|
1731
1856
|
}
|
|
1732
1857
|
}
|
|
1733
|
-
export function
|
|
1858
|
+
export function apiKeyCredentialsDeserializer(item) {
|
|
1734
1859
|
return {
|
|
1735
1860
|
type: item["type"],
|
|
1736
|
-
|
|
1861
|
+
apiKey: item["key"],
|
|
1737
1862
|
};
|
|
1738
1863
|
}
|
|
1739
|
-
export function
|
|
1740
|
-
return result.map((item) => {
|
|
1741
|
-
return memorySearchItemSerializer(item);
|
|
1742
|
-
});
|
|
1743
|
-
}
|
|
1744
|
-
export function memorySearchItemArrayDeserializer(result) {
|
|
1745
|
-
return result.map((item) => {
|
|
1746
|
-
return memorySearchItemDeserializer(item);
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
export function memorySearchItemSerializer(item) {
|
|
1750
|
-
return { memory_item: memoryItemUnionSerializer(item["memory_item"]) };
|
|
1751
|
-
}
|
|
1752
|
-
export function memorySearchItemDeserializer(item) {
|
|
1864
|
+
export function entraIDCredentialsDeserializer(item) {
|
|
1753
1865
|
return {
|
|
1754
|
-
|
|
1866
|
+
type: item["type"],
|
|
1755
1867
|
};
|
|
1756
1868
|
}
|
|
1757
|
-
export function
|
|
1869
|
+
export function customCredentialDeserializer(item) {
|
|
1758
1870
|
return {
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
scope: item["scope"],
|
|
1762
|
-
content: item["content"],
|
|
1763
|
-
kind: item["kind"],
|
|
1871
|
+
additionalProperties: serializeRecord(item, ["type"]),
|
|
1872
|
+
type: item["type"],
|
|
1764
1873
|
};
|
|
1765
1874
|
}
|
|
1766
|
-
export function
|
|
1875
|
+
export function sasCredentialsDeserializer(item) {
|
|
1767
1876
|
return {
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
scope: item["scope"],
|
|
1771
|
-
content: item["content"],
|
|
1772
|
-
kind: item["kind"],
|
|
1877
|
+
type: item["type"],
|
|
1878
|
+
sasToken: item["SAS"],
|
|
1773
1879
|
};
|
|
1774
1880
|
}
|
|
1775
|
-
export function
|
|
1776
|
-
switch (item.kind) {
|
|
1777
|
-
case "user_profile":
|
|
1778
|
-
return userProfileMemoryItemSerializer(item);
|
|
1779
|
-
case "chat_summary":
|
|
1780
|
-
return chatSummaryMemoryItemSerializer(item);
|
|
1781
|
-
default:
|
|
1782
|
-
return memoryItemSerializer(item);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
export function memoryItemUnionDeserializer(item) {
|
|
1786
|
-
switch (item.kind) {
|
|
1787
|
-
case "user_profile":
|
|
1788
|
-
return userProfileMemoryItemDeserializer(item);
|
|
1789
|
-
case "chat_summary":
|
|
1790
|
-
return chatSummaryMemoryItemDeserializer(item);
|
|
1791
|
-
default:
|
|
1792
|
-
return memoryItemDeserializer(item);
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
export function userProfileMemoryItemSerializer(item) {
|
|
1881
|
+
export function noAuthenticationCredentialsDeserializer(item) {
|
|
1796
1882
|
return {
|
|
1797
|
-
|
|
1798
|
-
updated_at: (item["updated_at"].getTime() / 1000) | 0,
|
|
1799
|
-
scope: item["scope"],
|
|
1800
|
-
content: item["content"],
|
|
1801
|
-
kind: item["kind"],
|
|
1883
|
+
type: item["type"],
|
|
1802
1884
|
};
|
|
1803
1885
|
}
|
|
1804
|
-
export function
|
|
1886
|
+
export function agenticIdentityPreviewCredentialsDeserializer(item) {
|
|
1805
1887
|
return {
|
|
1806
|
-
|
|
1807
|
-
updated_at: new Date(item["updated_at"] * 1000),
|
|
1808
|
-
scope: item["scope"],
|
|
1809
|
-
content: item["content"],
|
|
1810
|
-
kind: item["kind"],
|
|
1888
|
+
type: item["type"],
|
|
1811
1889
|
};
|
|
1812
1890
|
}
|
|
1813
|
-
export function
|
|
1891
|
+
export function _pagedConnectionDeserializer(item) {
|
|
1814
1892
|
return {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
scope: item["scope"],
|
|
1818
|
-
content: item["content"],
|
|
1819
|
-
kind: item["kind"],
|
|
1893
|
+
value: connectionArrayDeserializer(item["value"]),
|
|
1894
|
+
nextLink: item["nextLink"],
|
|
1820
1895
|
};
|
|
1821
1896
|
}
|
|
1822
|
-
export function
|
|
1823
|
-
return {
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
scope: item["scope"],
|
|
1827
|
-
content: item["content"],
|
|
1828
|
-
kind: item["kind"],
|
|
1829
|
-
};
|
|
1897
|
+
export function connectionArrayDeserializer(result) {
|
|
1898
|
+
return result.map((item) => {
|
|
1899
|
+
return connectionDeserializer(item);
|
|
1900
|
+
});
|
|
1830
1901
|
}
|
|
1831
|
-
export function
|
|
1902
|
+
export function _pagedDatasetVersionDeserializer(item) {
|
|
1832
1903
|
return {
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
status: item["status"],
|
|
1836
|
-
content: inputContentUnionArraySerializer(item["content"]),
|
|
1904
|
+
value: datasetVersionUnionArrayDeserializer(item["value"]),
|
|
1905
|
+
nextLink: item["nextLink"],
|
|
1837
1906
|
};
|
|
1838
1907
|
}
|
|
1839
|
-
export function
|
|
1908
|
+
export function datasetVersionUnionArraySerializer(result) {
|
|
1840
1909
|
return result.map((item) => {
|
|
1841
|
-
return
|
|
1910
|
+
return datasetVersionUnionSerializer(item);
|
|
1842
1911
|
});
|
|
1843
1912
|
}
|
|
1844
|
-
export function
|
|
1845
|
-
return
|
|
1913
|
+
export function datasetVersionUnionArrayDeserializer(result) {
|
|
1914
|
+
return result.map((item) => {
|
|
1915
|
+
return datasetVersionUnionDeserializer(item);
|
|
1916
|
+
});
|
|
1846
1917
|
}
|
|
1847
|
-
export function
|
|
1918
|
+
export function datasetVersionSerializer(item) {
|
|
1919
|
+
return {
|
|
1920
|
+
dataUri: item["dataUri"],
|
|
1921
|
+
type: item["type"],
|
|
1922
|
+
connectionName: item["connectionName"],
|
|
1923
|
+
description: item["description"],
|
|
1924
|
+
tags: item["tags"],
|
|
1925
|
+
};
|
|
1926
|
+
}
|
|
1927
|
+
export function datasetVersionDeserializer(item) {
|
|
1928
|
+
return {
|
|
1929
|
+
dataUri: item["dataUri"],
|
|
1930
|
+
type: item["type"],
|
|
1931
|
+
isReference: item["isReference"],
|
|
1932
|
+
connectionName: item["connectionName"],
|
|
1933
|
+
id: item["id"],
|
|
1934
|
+
name: item["name"],
|
|
1935
|
+
version: item["version"],
|
|
1936
|
+
description: item["description"],
|
|
1937
|
+
tags: !item["tags"]
|
|
1938
|
+
? item["tags"]
|
|
1939
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
1940
|
+
};
|
|
1941
|
+
}
|
|
1942
|
+
export function datasetVersionUnionSerializer(item) {
|
|
1848
1943
|
switch (item.type) {
|
|
1849
|
-
case "
|
|
1850
|
-
return
|
|
1851
|
-
case "
|
|
1852
|
-
return
|
|
1853
|
-
case "input_file":
|
|
1854
|
-
return inputContentInputFileContentSerializer(item);
|
|
1944
|
+
case "uri_file":
|
|
1945
|
+
return fileDatasetVersionSerializer(item);
|
|
1946
|
+
case "uri_folder":
|
|
1947
|
+
return folderDatasetVersionSerializer(item);
|
|
1855
1948
|
default:
|
|
1856
|
-
return
|
|
1949
|
+
return datasetVersionSerializer(item);
|
|
1857
1950
|
}
|
|
1858
1951
|
}
|
|
1859
|
-
export function
|
|
1860
|
-
|
|
1952
|
+
export function datasetVersionUnionDeserializer(item) {
|
|
1953
|
+
switch (item.type) {
|
|
1954
|
+
case "uri_file":
|
|
1955
|
+
return fileDatasetVersionDeserializer(item);
|
|
1956
|
+
case "uri_folder":
|
|
1957
|
+
return folderDatasetVersionDeserializer(item);
|
|
1958
|
+
default:
|
|
1959
|
+
return datasetVersionDeserializer(item);
|
|
1960
|
+
}
|
|
1861
1961
|
}
|
|
1862
|
-
export function
|
|
1962
|
+
export function fileDatasetVersionSerializer(item) {
|
|
1863
1963
|
return {
|
|
1964
|
+
dataUri: item["dataUri"],
|
|
1864
1965
|
type: item["type"],
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1966
|
+
connectionName: item["connectionName"],
|
|
1967
|
+
description: item["description"],
|
|
1968
|
+
tags: item["tags"],
|
|
1868
1969
|
};
|
|
1869
1970
|
}
|
|
1870
|
-
export function
|
|
1971
|
+
export function fileDatasetVersionDeserializer(item) {
|
|
1871
1972
|
return {
|
|
1973
|
+
dataUri: item["dataUri"],
|
|
1872
1974
|
type: item["type"],
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1975
|
+
isReference: item["isReference"],
|
|
1976
|
+
connectionName: item["connectionName"],
|
|
1977
|
+
id: item["id"],
|
|
1978
|
+
name: item["name"],
|
|
1979
|
+
version: item["version"],
|
|
1980
|
+
description: item["description"],
|
|
1981
|
+
tags: !item["tags"]
|
|
1982
|
+
? item["tags"]
|
|
1983
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
1877
1984
|
};
|
|
1878
1985
|
}
|
|
1879
|
-
export function
|
|
1986
|
+
export function folderDatasetVersionSerializer(item) {
|
|
1880
1987
|
return {
|
|
1988
|
+
dataUri: item["dataUri"],
|
|
1881
1989
|
type: item["type"],
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
acknowledged_safety_checks: !item["acknowledged_safety_checks"]
|
|
1886
|
-
? item["acknowledged_safety_checks"]
|
|
1887
|
-
: computerCallSafetyCheckParamArraySerializer(item["acknowledged_safety_checks"]),
|
|
1888
|
-
status: item["status"],
|
|
1990
|
+
connectionName: item["connectionName"],
|
|
1991
|
+
description: item["description"],
|
|
1992
|
+
tags: item["tags"],
|
|
1889
1993
|
};
|
|
1890
1994
|
}
|
|
1891
|
-
export function
|
|
1892
|
-
return { type: item["type"], image_url: item["image_url"], file_id: item["file_id"] };
|
|
1893
|
-
}
|
|
1894
|
-
export function computerCallSafetyCheckParamArraySerializer(result) {
|
|
1895
|
-
return result.map((item) => {
|
|
1896
|
-
return computerCallSafetyCheckParamSerializer(item);
|
|
1897
|
-
});
|
|
1898
|
-
}
|
|
1899
|
-
export function computerCallSafetyCheckParamSerializer(item) {
|
|
1900
|
-
return { id: item["id"], code: item["code"], message: item["message"] };
|
|
1901
|
-
}
|
|
1902
|
-
export function functionCallOutputItemParamSerializer(item) {
|
|
1995
|
+
export function folderDatasetVersionDeserializer(item) {
|
|
1903
1996
|
return {
|
|
1997
|
+
dataUri: item["dataUri"],
|
|
1904
1998
|
type: item["type"],
|
|
1999
|
+
isReference: item["isReference"],
|
|
2000
|
+
connectionName: item["connectionName"],
|
|
1905
2001
|
id: item["id"],
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
2002
|
+
name: item["name"],
|
|
2003
|
+
version: item["version"],
|
|
2004
|
+
description: item["description"],
|
|
2005
|
+
tags: !item["tags"]
|
|
2006
|
+
? item["tags"]
|
|
2007
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
1909
2008
|
};
|
|
1910
2009
|
}
|
|
1911
|
-
export function
|
|
1912
|
-
return item;
|
|
1913
|
-
}
|
|
1914
|
-
export function _functionCallOutputItemParamOutput1ArraySerializer(result) {
|
|
1915
|
-
return result.map((item) => {
|
|
1916
|
-
return _functionCallOutputItemParamOutput1Serializer(item);
|
|
1917
|
-
});
|
|
1918
|
-
}
|
|
1919
|
-
export function _functionCallOutputItemParamOutput1Serializer(item) {
|
|
1920
|
-
return item;
|
|
1921
|
-
}
|
|
1922
|
-
export function inputTextContentParamSerializer(item) {
|
|
1923
|
-
return { type: item["type"], text: item["text"] };
|
|
1924
|
-
}
|
|
1925
|
-
export function inputImageContentParamAutoParamSerializer(item) {
|
|
2010
|
+
export function pendingUploadRequestSerializer(item) {
|
|
1926
2011
|
return {
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
detail: item["detail"],
|
|
2012
|
+
pendingUploadId: item["pendingUploadId"],
|
|
2013
|
+
connectionName: item["connectionName"],
|
|
2014
|
+
pendingUploadType: item["pendingUploadType"],
|
|
1931
2015
|
};
|
|
1932
2016
|
}
|
|
1933
|
-
export function
|
|
2017
|
+
export function pendingUploadResponseDeserializer(item) {
|
|
1934
2018
|
return {
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
file_url: item["file_url"],
|
|
2019
|
+
blobReference: blobReferenceDeserializer(item["blobReference"]),
|
|
2020
|
+
pendingUploadId: item["pendingUploadId"],
|
|
2021
|
+
version: item["version"],
|
|
2022
|
+
pendingUploadType: item["pendingUploadType"],
|
|
1940
2023
|
};
|
|
1941
2024
|
}
|
|
1942
|
-
export function
|
|
1943
|
-
return {
|
|
2025
|
+
export function blobReferenceDeserializer(item) {
|
|
2026
|
+
return {
|
|
2027
|
+
blobUri: item["blobUri"],
|
|
2028
|
+
storageAccountArmId: item["storageAccountArmId"],
|
|
2029
|
+
credential: blobReferenceSasCredentialDeserializer(item["credential"]),
|
|
2030
|
+
};
|
|
1944
2031
|
}
|
|
1945
|
-
export function
|
|
2032
|
+
export function blobReferenceSasCredentialDeserializer(item) {
|
|
1946
2033
|
return {
|
|
2034
|
+
sasUri: item["sasUri"],
|
|
1947
2035
|
type: item["type"],
|
|
1948
|
-
id: item["id"],
|
|
1949
|
-
call_id: item["call_id"],
|
|
1950
|
-
action: functionShellActionParamSerializer(item["action"]),
|
|
1951
|
-
status: item["status"],
|
|
1952
2036
|
};
|
|
1953
2037
|
}
|
|
1954
|
-
export function
|
|
2038
|
+
export function datasetCredentialDeserializer(item) {
|
|
1955
2039
|
return {
|
|
1956
|
-
|
|
1957
|
-
return p;
|
|
1958
|
-
}),
|
|
1959
|
-
timeout_ms: item["timeout_ms"],
|
|
1960
|
-
max_output_length: item["max_output_length"],
|
|
2040
|
+
blobReference: blobReferenceDeserializer(item["blobReference"]),
|
|
1961
2041
|
};
|
|
1962
2042
|
}
|
|
1963
|
-
export function
|
|
2043
|
+
export function deploymentDeserializer(item) {
|
|
1964
2044
|
return {
|
|
1965
2045
|
type: item["type"],
|
|
1966
|
-
|
|
1967
|
-
call_id: item["call_id"],
|
|
1968
|
-
output: functionShellCallOutputContentParamArraySerializer(item["output"]),
|
|
1969
|
-
max_output_length: item["max_output_length"],
|
|
2046
|
+
name: item["name"],
|
|
1970
2047
|
};
|
|
1971
2048
|
}
|
|
1972
|
-
export function
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
2049
|
+
export function deploymentUnionDeserializer(item) {
|
|
2050
|
+
switch (item.type) {
|
|
2051
|
+
case "ModelDeployment":
|
|
2052
|
+
return modelDeploymentDeserializer(item);
|
|
2053
|
+
default:
|
|
2054
|
+
return deploymentDeserializer(item);
|
|
2055
|
+
}
|
|
1976
2056
|
}
|
|
1977
|
-
export function
|
|
1978
|
-
return {
|
|
1979
|
-
stdout: item["stdout"],
|
|
1980
|
-
stderr: item["stderr"],
|
|
1981
|
-
outcome: functionShellCallOutputOutcomeParamUnionSerializer(item["outcome"]),
|
|
1982
|
-
};
|
|
1983
|
-
}
|
|
1984
|
-
export function functionShellCallOutputOutcomeParamSerializer(item) {
|
|
1985
|
-
return { type: item["type"] };
|
|
1986
|
-
}
|
|
1987
|
-
export function functionShellCallOutputOutcomeParamUnionSerializer(item) {
|
|
1988
|
-
switch (item.type) {
|
|
1989
|
-
case "timeout":
|
|
1990
|
-
return functionShellCallOutputTimeoutOutcomeParamSerializer(item);
|
|
1991
|
-
case "exit":
|
|
1992
|
-
return functionShellCallOutputExitOutcomeParamSerializer(item);
|
|
1993
|
-
default:
|
|
1994
|
-
return functionShellCallOutputOutcomeParamSerializer(item);
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
export function functionShellCallOutputTimeoutOutcomeParamSerializer(item) {
|
|
1998
|
-
return { type: item["type"] };
|
|
1999
|
-
}
|
|
2000
|
-
export function functionShellCallOutputExitOutcomeParamSerializer(item) {
|
|
2001
|
-
return { type: item["type"], exit_code: item["exit_code"] };
|
|
2002
|
-
}
|
|
2003
|
-
export function applyPatchToolCallItemParamSerializer(item) {
|
|
2057
|
+
export function modelDeploymentDeserializer(item) {
|
|
2004
2058
|
return {
|
|
2005
2059
|
type: item["type"],
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2060
|
+
name: item["name"],
|
|
2061
|
+
modelName: item["modelName"],
|
|
2062
|
+
modelVersion: item["modelVersion"],
|
|
2063
|
+
modelPublisher: item["modelPublisher"],
|
|
2064
|
+
capabilities: Object.fromEntries(Object.entries(item["capabilities"]).map(([k, p]) => [k, p])),
|
|
2065
|
+
sku: modelDeploymentSkuDeserializer(item["sku"]),
|
|
2066
|
+
connectionName: item["connectionName"],
|
|
2010
2067
|
};
|
|
2011
2068
|
}
|
|
2012
|
-
export function
|
|
2013
|
-
return { type: item["type"] };
|
|
2014
|
-
}
|
|
2015
|
-
export function applyPatchOperationParamUnionSerializer(item) {
|
|
2016
|
-
switch (item.type) {
|
|
2017
|
-
case "create_file":
|
|
2018
|
-
return applyPatchCreateFileOperationParamSerializer(item);
|
|
2019
|
-
case "delete_file":
|
|
2020
|
-
return applyPatchDeleteFileOperationParamSerializer(item);
|
|
2021
|
-
case "update_file":
|
|
2022
|
-
return applyPatchUpdateFileOperationParamSerializer(item);
|
|
2023
|
-
default:
|
|
2024
|
-
return applyPatchOperationParamSerializer(item);
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
export function applyPatchCreateFileOperationParamSerializer(item) {
|
|
2028
|
-
return { type: item["type"], path: item["path"], diff: item["diff"] };
|
|
2029
|
-
}
|
|
2030
|
-
export function applyPatchDeleteFileOperationParamSerializer(item) {
|
|
2031
|
-
return { type: item["type"], path: item["path"] };
|
|
2032
|
-
}
|
|
2033
|
-
export function applyPatchUpdateFileOperationParamSerializer(item) {
|
|
2034
|
-
return { type: item["type"], path: item["path"], diff: item["diff"] };
|
|
2035
|
-
}
|
|
2036
|
-
export function applyPatchToolCallOutputItemParamSerializer(item) {
|
|
2069
|
+
export function modelDeploymentSkuDeserializer(item) {
|
|
2037
2070
|
return {
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2071
|
+
capacity: item["capacity"],
|
|
2072
|
+
family: item["family"],
|
|
2073
|
+
name: item["name"],
|
|
2074
|
+
size: item["size"],
|
|
2075
|
+
tier: item["tier"],
|
|
2043
2076
|
};
|
|
2044
2077
|
}
|
|
2045
|
-
export function
|
|
2078
|
+
export function _pagedDeploymentDeserializer(item) {
|
|
2046
2079
|
return {
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
approval_request_id: item["approval_request_id"],
|
|
2050
|
-
approve: item["approve"],
|
|
2051
|
-
reason: item["reason"],
|
|
2080
|
+
value: deploymentUnionArrayDeserializer(item["value"]),
|
|
2081
|
+
nextLink: item["nextLink"],
|
|
2052
2082
|
};
|
|
2053
2083
|
}
|
|
2054
|
-
export function
|
|
2084
|
+
export function deploymentUnionArrayDeserializer(result) {
|
|
2085
|
+
return result.map((item) => {
|
|
2086
|
+
return deploymentUnionDeserializer(item);
|
|
2087
|
+
});
|
|
2088
|
+
}
|
|
2089
|
+
export function _pagedIndexDeserializer(item) {
|
|
2055
2090
|
return {
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
role: item["role"],
|
|
2059
|
-
content: outputMessageContentUnionArraySerializer(item["content"]),
|
|
2060
|
-
status: item["status"],
|
|
2091
|
+
value: indexUnionArrayDeserializer(item["value"]),
|
|
2092
|
+
nextLink: item["nextLink"],
|
|
2061
2093
|
};
|
|
2062
2094
|
}
|
|
2063
|
-
export function
|
|
2095
|
+
export function indexUnionArraySerializer(result) {
|
|
2064
2096
|
return result.map((item) => {
|
|
2065
|
-
return
|
|
2097
|
+
return indexUnionSerializer(item);
|
|
2066
2098
|
});
|
|
2067
2099
|
}
|
|
2068
|
-
export function
|
|
2069
|
-
return
|
|
2100
|
+
export function indexUnionArrayDeserializer(result) {
|
|
2101
|
+
return result.map((item) => {
|
|
2102
|
+
return indexUnionDeserializer(item);
|
|
2103
|
+
});
|
|
2070
2104
|
}
|
|
2071
|
-
export function
|
|
2072
|
-
|
|
2073
|
-
case "output_text":
|
|
2074
|
-
return outputMessageContentOutputTextContentSerializer(item);
|
|
2075
|
-
case "refusal":
|
|
2076
|
-
return outputMessageContentRefusalContentSerializer(item);
|
|
2077
|
-
default:
|
|
2078
|
-
return outputMessageContentSerializer(item);
|
|
2079
|
-
}
|
|
2105
|
+
export function indexSerializer(item) {
|
|
2106
|
+
return { type: item["type"], description: item["description"], tags: item["tags"] };
|
|
2080
2107
|
}
|
|
2081
|
-
export function
|
|
2108
|
+
export function indexDeserializer(item) {
|
|
2082
2109
|
return {
|
|
2083
2110
|
type: item["type"],
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2111
|
+
id: item["id"],
|
|
2112
|
+
name: item["name"],
|
|
2113
|
+
version: item["version"],
|
|
2114
|
+
description: item["description"],
|
|
2115
|
+
tags: !item["tags"]
|
|
2116
|
+
? item["tags"]
|
|
2117
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2087
2118
|
};
|
|
2088
2119
|
}
|
|
2089
|
-
export function
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2120
|
+
export function indexUnionSerializer(item) {
|
|
2121
|
+
switch (item.type) {
|
|
2122
|
+
case "AzureSearch":
|
|
2123
|
+
return azureAISearchIndexSerializer(item);
|
|
2124
|
+
case "ManagedAzureSearch":
|
|
2125
|
+
return managedAzureAISearchIndexSerializer(item);
|
|
2126
|
+
case "CosmosDBNoSqlVectorStore":
|
|
2127
|
+
return cosmosDBIndexSerializer(item);
|
|
2128
|
+
default:
|
|
2129
|
+
return indexSerializer(item);
|
|
2130
|
+
}
|
|
2096
2131
|
}
|
|
2097
|
-
export function
|
|
2132
|
+
export function indexUnionDeserializer(item) {
|
|
2098
2133
|
switch (item.type) {
|
|
2099
|
-
case "
|
|
2100
|
-
return
|
|
2101
|
-
case "
|
|
2102
|
-
return
|
|
2103
|
-
case "
|
|
2104
|
-
return
|
|
2105
|
-
case "file_path":
|
|
2106
|
-
return filePathSerializer(item);
|
|
2134
|
+
case "AzureSearch":
|
|
2135
|
+
return azureAISearchIndexDeserializer(item);
|
|
2136
|
+
case "ManagedAzureSearch":
|
|
2137
|
+
return managedAzureAISearchIndexDeserializer(item);
|
|
2138
|
+
case "CosmosDBNoSqlVectorStore":
|
|
2139
|
+
return cosmosDBIndexDeserializer(item);
|
|
2107
2140
|
default:
|
|
2108
|
-
return
|
|
2141
|
+
return indexDeserializer(item);
|
|
2109
2142
|
}
|
|
2110
2143
|
}
|
|
2111
|
-
export function
|
|
2144
|
+
export function azureAISearchIndexSerializer(item) {
|
|
2112
2145
|
return {
|
|
2113
2146
|
type: item["type"],
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2147
|
+
description: item["description"],
|
|
2148
|
+
tags: item["tags"],
|
|
2149
|
+
connectionName: item["connectionName"],
|
|
2150
|
+
indexName: item["indexName"],
|
|
2151
|
+
fieldMapping: !item["fieldMapping"]
|
|
2152
|
+
? item["fieldMapping"]
|
|
2153
|
+
: fieldMappingSerializer(item["fieldMapping"]),
|
|
2117
2154
|
};
|
|
2118
2155
|
}
|
|
2119
|
-
export function
|
|
2156
|
+
export function azureAISearchIndexDeserializer(item) {
|
|
2120
2157
|
return {
|
|
2121
2158
|
type: item["type"],
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2159
|
+
id: item["id"],
|
|
2160
|
+
name: item["name"],
|
|
2161
|
+
version: item["version"],
|
|
2162
|
+
description: item["description"],
|
|
2163
|
+
tags: !item["tags"]
|
|
2164
|
+
? item["tags"]
|
|
2165
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2166
|
+
connectionName: item["connectionName"],
|
|
2167
|
+
indexName: item["indexName"],
|
|
2168
|
+
fieldMapping: !item["fieldMapping"]
|
|
2169
|
+
? item["fieldMapping"]
|
|
2170
|
+
: fieldMappingDeserializer(item["fieldMapping"]),
|
|
2126
2171
|
};
|
|
2127
2172
|
}
|
|
2128
|
-
export function
|
|
2173
|
+
export function fieldMappingSerializer(item) {
|
|
2129
2174
|
return {
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2175
|
+
contentFields: item["contentFields"].map((p) => {
|
|
2176
|
+
return p;
|
|
2177
|
+
}),
|
|
2178
|
+
filepathField: item["filepathField"],
|
|
2179
|
+
titleField: item["titleField"],
|
|
2180
|
+
urlField: item["urlField"],
|
|
2181
|
+
vectorFields: !item["vectorFields"]
|
|
2182
|
+
? item["vectorFields"]
|
|
2183
|
+
: item["vectorFields"].map((p) => {
|
|
2184
|
+
return p;
|
|
2185
|
+
}),
|
|
2186
|
+
metadataFields: !item["metadataFields"]
|
|
2187
|
+
? item["metadataFields"]
|
|
2188
|
+
: item["metadataFields"].map((p) => {
|
|
2189
|
+
return p;
|
|
2190
|
+
}),
|
|
2136
2191
|
};
|
|
2137
2192
|
}
|
|
2138
|
-
export function
|
|
2139
|
-
return { type: item["type"], file_id: item["file_id"], index: item["index"] };
|
|
2140
|
-
}
|
|
2141
|
-
export function logProbArraySerializer(result) {
|
|
2142
|
-
return result.map((item) => {
|
|
2143
|
-
return logProbSerializer(item);
|
|
2144
|
-
});
|
|
2145
|
-
}
|
|
2146
|
-
export function logProbSerializer(item) {
|
|
2193
|
+
export function fieldMappingDeserializer(item) {
|
|
2147
2194
|
return {
|
|
2148
|
-
|
|
2149
|
-
logprob: item["logprob"],
|
|
2150
|
-
bytes: item["bytes"].map((p) => {
|
|
2195
|
+
contentFields: item["contentFields"].map((p) => {
|
|
2151
2196
|
return p;
|
|
2152
2197
|
}),
|
|
2153
|
-
|
|
2198
|
+
filepathField: item["filepathField"],
|
|
2199
|
+
titleField: item["titleField"],
|
|
2200
|
+
urlField: item["urlField"],
|
|
2201
|
+
vectorFields: !item["vectorFields"]
|
|
2202
|
+
? item["vectorFields"]
|
|
2203
|
+
: item["vectorFields"].map((p) => {
|
|
2204
|
+
return p;
|
|
2205
|
+
}),
|
|
2206
|
+
metadataFields: !item["metadataFields"]
|
|
2207
|
+
? item["metadataFields"]
|
|
2208
|
+
: item["metadataFields"].map((p) => {
|
|
2209
|
+
return p;
|
|
2210
|
+
}),
|
|
2154
2211
|
};
|
|
2155
2212
|
}
|
|
2156
|
-
export function
|
|
2157
|
-
return
|
|
2158
|
-
|
|
2159
|
-
|
|
2213
|
+
export function managedAzureAISearchIndexSerializer(item) {
|
|
2214
|
+
return {
|
|
2215
|
+
type: item["type"],
|
|
2216
|
+
description: item["description"],
|
|
2217
|
+
tags: item["tags"],
|
|
2218
|
+
vectorStoreId: item["vectorStoreId"],
|
|
2219
|
+
};
|
|
2160
2220
|
}
|
|
2161
|
-
export function
|
|
2221
|
+
export function managedAzureAISearchIndexDeserializer(item) {
|
|
2162
2222
|
return {
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2223
|
+
type: item["type"],
|
|
2224
|
+
id: item["id"],
|
|
2225
|
+
name: item["name"],
|
|
2226
|
+
version: item["version"],
|
|
2227
|
+
description: item["description"],
|
|
2228
|
+
tags: !item["tags"]
|
|
2229
|
+
? item["tags"]
|
|
2230
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2231
|
+
vectorStoreId: item["vectorStoreId"],
|
|
2168
2232
|
};
|
|
2169
2233
|
}
|
|
2170
|
-
export function
|
|
2171
|
-
return {
|
|
2234
|
+
export function cosmosDBIndexSerializer(item) {
|
|
2235
|
+
return {
|
|
2236
|
+
type: item["type"],
|
|
2237
|
+
description: item["description"],
|
|
2238
|
+
tags: item["tags"],
|
|
2239
|
+
connectionName: item["connectionName"],
|
|
2240
|
+
databaseName: item["databaseName"],
|
|
2241
|
+
containerName: item["containerName"],
|
|
2242
|
+
embeddingConfiguration: embeddingConfigurationSerializer(item["embeddingConfiguration"]),
|
|
2243
|
+
fieldMapping: fieldMappingSerializer(item["fieldMapping"]),
|
|
2244
|
+
};
|
|
2245
|
+
}
|
|
2246
|
+
export function cosmosDBIndexDeserializer(item) {
|
|
2247
|
+
return {
|
|
2248
|
+
type: item["type"],
|
|
2249
|
+
id: item["id"],
|
|
2250
|
+
name: item["name"],
|
|
2251
|
+
version: item["version"],
|
|
2252
|
+
description: item["description"],
|
|
2253
|
+
tags: !item["tags"]
|
|
2254
|
+
? item["tags"]
|
|
2255
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2256
|
+
connectionName: item["connectionName"],
|
|
2257
|
+
databaseName: item["databaseName"],
|
|
2258
|
+
containerName: item["containerName"],
|
|
2259
|
+
embeddingConfiguration: embeddingConfigurationDeserializer(item["embeddingConfiguration"]),
|
|
2260
|
+
fieldMapping: fieldMappingDeserializer(item["fieldMapping"]),
|
|
2261
|
+
};
|
|
2172
2262
|
}
|
|
2173
|
-
export function
|
|
2263
|
+
export function embeddingConfigurationSerializer(item) {
|
|
2174
2264
|
return {
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
status: item["status"],
|
|
2178
|
-
queries: item["queries"].map((p) => {
|
|
2179
|
-
return p;
|
|
2180
|
-
}),
|
|
2181
|
-
results: !item["results"]
|
|
2182
|
-
? item["results"]
|
|
2183
|
-
: fileSearchToolCallResultsArraySerializer(item["results"]),
|
|
2265
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2266
|
+
embeddingField: item["embeddingField"],
|
|
2184
2267
|
};
|
|
2185
2268
|
}
|
|
2186
|
-
export function
|
|
2187
|
-
return result.map((item) => {
|
|
2188
|
-
return fileSearchToolCallResultsSerializer(item);
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
export function fileSearchToolCallResultsSerializer(item) {
|
|
2269
|
+
export function embeddingConfigurationDeserializer(item) {
|
|
2192
2270
|
return {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
filename: item["filename"],
|
|
2196
|
-
attributes: !item["attributes"]
|
|
2197
|
-
? item["attributes"]
|
|
2198
|
-
: vectorStoreFileAttributesSerializer(item["attributes"]),
|
|
2199
|
-
score: item["score"],
|
|
2271
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2272
|
+
embeddingField: item["embeddingField"],
|
|
2200
2273
|
};
|
|
2201
2274
|
}
|
|
2202
|
-
export function
|
|
2275
|
+
export function evaluationTaxonomySerializer(item) {
|
|
2203
2276
|
return {
|
|
2204
|
-
|
|
2277
|
+
description: item["description"],
|
|
2278
|
+
tags: item["tags"],
|
|
2279
|
+
taxonomyInput: evaluationTaxonomyInputUnionSerializer(item["taxonomyInput"]),
|
|
2280
|
+
taxonomyCategories: !item["taxonomyCategories"]
|
|
2281
|
+
? item["taxonomyCategories"]
|
|
2282
|
+
: taxonomyCategoryArraySerializer(item["taxonomyCategories"]),
|
|
2283
|
+
properties: item["properties"],
|
|
2205
2284
|
};
|
|
2206
2285
|
}
|
|
2207
|
-
export function
|
|
2208
|
-
return item;
|
|
2209
|
-
}
|
|
2210
|
-
export function itemComputerToolCallSerializer(item) {
|
|
2286
|
+
export function evaluationTaxonomyDeserializer(item) {
|
|
2211
2287
|
return {
|
|
2212
|
-
type: item["type"],
|
|
2213
2288
|
id: item["id"],
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2289
|
+
name: item["name"],
|
|
2290
|
+
version: item["version"],
|
|
2291
|
+
description: item["description"],
|
|
2292
|
+
tags: !item["tags"]
|
|
2293
|
+
? item["tags"]
|
|
2294
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2295
|
+
taxonomyInput: evaluationTaxonomyInputUnionDeserializer(item["taxonomyInput"]),
|
|
2296
|
+
taxonomyCategories: !item["taxonomyCategories"]
|
|
2297
|
+
? item["taxonomyCategories"]
|
|
2298
|
+
: taxonomyCategoryArrayDeserializer(item["taxonomyCategories"]),
|
|
2299
|
+
properties: !item["properties"]
|
|
2300
|
+
? item["properties"]
|
|
2301
|
+
: Object.fromEntries(Object.entries(item["properties"]).map(([k, p]) => [k, p])),
|
|
2218
2302
|
};
|
|
2219
2303
|
}
|
|
2220
|
-
export function
|
|
2304
|
+
export function evaluationTaxonomyInputSerializer(item) {
|
|
2221
2305
|
return { type: item["type"] };
|
|
2222
2306
|
}
|
|
2223
|
-
export function
|
|
2224
|
-
switch (item.type) {
|
|
2225
|
-
case "click":
|
|
2226
|
-
return clickParamSerializer(item);
|
|
2227
|
-
case "double_click":
|
|
2228
|
-
return doubleClickActionSerializer(item);
|
|
2229
|
-
case "drag":
|
|
2230
|
-
return dragSerializer(item);
|
|
2231
|
-
case "keypress":
|
|
2232
|
-
return keyPressActionSerializer(item);
|
|
2233
|
-
case "move":
|
|
2234
|
-
return moveSerializer(item);
|
|
2235
|
-
case "screenshot":
|
|
2236
|
-
return screenshotSerializer(item);
|
|
2237
|
-
case "scroll":
|
|
2238
|
-
return scrollSerializer(item);
|
|
2239
|
-
case "type":
|
|
2240
|
-
return typeSerializer(item);
|
|
2241
|
-
case "wait":
|
|
2242
|
-
return waitSerializer(item);
|
|
2243
|
-
default:
|
|
2244
|
-
return computerActionSerializer(item);
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
export function clickParamSerializer(item) {
|
|
2307
|
+
export function evaluationTaxonomyInputDeserializer(item) {
|
|
2248
2308
|
return {
|
|
2249
2309
|
type: item["type"],
|
|
2250
|
-
button: item["button"],
|
|
2251
|
-
x: item["x"],
|
|
2252
|
-
y: item["y"],
|
|
2253
2310
|
};
|
|
2254
2311
|
}
|
|
2255
|
-
export function
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
return result.map((item) => {
|
|
2263
|
-
return dragPointSerializer(item);
|
|
2264
|
-
});
|
|
2312
|
+
export function evaluationTaxonomyInputUnionSerializer(item) {
|
|
2313
|
+
switch (item.type) {
|
|
2314
|
+
case "agent":
|
|
2315
|
+
return agentTaxonomyInputSerializer(item);
|
|
2316
|
+
default:
|
|
2317
|
+
return evaluationTaxonomyInputSerializer(item);
|
|
2318
|
+
}
|
|
2265
2319
|
}
|
|
2266
|
-
export function
|
|
2267
|
-
|
|
2320
|
+
export function evaluationTaxonomyInputUnionDeserializer(item) {
|
|
2321
|
+
switch (item.type) {
|
|
2322
|
+
case "agent":
|
|
2323
|
+
return agentTaxonomyInputDeserializer(item);
|
|
2324
|
+
default:
|
|
2325
|
+
return evaluationTaxonomyInputDeserializer(item);
|
|
2326
|
+
}
|
|
2268
2327
|
}
|
|
2269
|
-
export function
|
|
2328
|
+
export function agentTaxonomyInputSerializer(item) {
|
|
2270
2329
|
return {
|
|
2271
2330
|
type: item["type"],
|
|
2272
|
-
|
|
2331
|
+
target: targetUnionSerializer(item["target"]),
|
|
2332
|
+
riskCategories: item["riskCategories"].map((p) => {
|
|
2273
2333
|
return p;
|
|
2274
2334
|
}),
|
|
2275
2335
|
};
|
|
2276
2336
|
}
|
|
2277
|
-
export function
|
|
2278
|
-
return { type: item["type"], x: item["x"], y: item["y"] };
|
|
2279
|
-
}
|
|
2280
|
-
export function screenshotSerializer(item) {
|
|
2281
|
-
return { type: item["type"] };
|
|
2282
|
-
}
|
|
2283
|
-
export function scrollSerializer(item) {
|
|
2337
|
+
export function agentTaxonomyInputDeserializer(item) {
|
|
2284
2338
|
return {
|
|
2285
2339
|
type: item["type"],
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2340
|
+
target: targetUnionDeserializer(item["target"]),
|
|
2341
|
+
riskCategories: item["riskCategories"].map((p) => {
|
|
2342
|
+
return p;
|
|
2343
|
+
}),
|
|
2290
2344
|
};
|
|
2291
2345
|
}
|
|
2292
|
-
export function
|
|
2293
|
-
return { type: item["type"], text: item["text"] };
|
|
2294
|
-
}
|
|
2295
|
-
export function waitSerializer(item) {
|
|
2346
|
+
export function targetSerializer(item) {
|
|
2296
2347
|
return { type: item["type"] };
|
|
2297
2348
|
}
|
|
2298
|
-
export function
|
|
2299
|
-
return {
|
|
2300
|
-
type: item["type"],
|
|
2301
|
-
id: item["id"],
|
|
2302
|
-
status: item["status"],
|
|
2303
|
-
action: _outputItemWebSearchToolCallActionSerializer(item["action"]),
|
|
2304
|
-
};
|
|
2305
|
-
}
|
|
2306
|
-
export function _outputItemWebSearchToolCallActionSerializer(item) {
|
|
2307
|
-
return item;
|
|
2308
|
-
}
|
|
2309
|
-
export function webSearchActionSearchSerializer(item) {
|
|
2349
|
+
export function targetDeserializer(item) {
|
|
2310
2350
|
return {
|
|
2311
2351
|
type: item["type"],
|
|
2312
|
-
query: item["query"],
|
|
2313
|
-
sources: !item["sources"]
|
|
2314
|
-
? item["sources"]
|
|
2315
|
-
: webSearchActionSearchSourcesArraySerializer(item["sources"]),
|
|
2316
2352
|
};
|
|
2317
2353
|
}
|
|
2318
|
-
export function
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
return { type: item["type"], url: item["url"] };
|
|
2354
|
+
export function targetUnionSerializer(item) {
|
|
2355
|
+
switch (item.type) {
|
|
2356
|
+
case "azure_ai_model":
|
|
2357
|
+
return azureAIModelTargetSerializer(item);
|
|
2358
|
+
case "azure_ai_agent":
|
|
2359
|
+
return azureAIAgentTargetSerializer(item);
|
|
2360
|
+
default:
|
|
2361
|
+
return targetSerializer(item);
|
|
2362
|
+
}
|
|
2328
2363
|
}
|
|
2329
|
-
export function
|
|
2330
|
-
|
|
2364
|
+
export function targetUnionDeserializer(item) {
|
|
2365
|
+
switch (item.type) {
|
|
2366
|
+
case "azure_ai_model":
|
|
2367
|
+
return azureAIModelTargetDeserializer(item);
|
|
2368
|
+
case "azure_ai_agent":
|
|
2369
|
+
return azureAIAgentTargetDeserializer(item);
|
|
2370
|
+
default:
|
|
2371
|
+
return targetDeserializer(item);
|
|
2372
|
+
}
|
|
2331
2373
|
}
|
|
2332
|
-
export function
|
|
2374
|
+
export function azureAIModelTargetSerializer(item) {
|
|
2333
2375
|
return {
|
|
2334
2376
|
type: item["type"],
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
status: item["status"],
|
|
2377
|
+
model: item["model"],
|
|
2378
|
+
sampling_params: !item["sampling_params"]
|
|
2379
|
+
? item["sampling_params"]
|
|
2380
|
+
: modelSamplingParamsSerializer(item["sampling_params"]),
|
|
2340
2381
|
};
|
|
2341
2382
|
}
|
|
2342
|
-
export function
|
|
2383
|
+
export function azureAIModelTargetDeserializer(item) {
|
|
2343
2384
|
return {
|
|
2344
2385
|
type: item["type"],
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
? item["content"]
|
|
2350
|
-
: reasoningTextContentArraySerializer(item["content"]),
|
|
2351
|
-
status: item["status"],
|
|
2386
|
+
model: item["model"],
|
|
2387
|
+
sampling_params: !item["sampling_params"]
|
|
2388
|
+
? item["sampling_params"]
|
|
2389
|
+
: modelSamplingParamsDeserializer(item["sampling_params"]),
|
|
2352
2390
|
};
|
|
2353
2391
|
}
|
|
2354
|
-
export function
|
|
2355
|
-
return result.map((item) => {
|
|
2356
|
-
return summarySerializer(item);
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
export function summarySerializer(item) {
|
|
2360
|
-
return { type: item["type"], text: item["text"] };
|
|
2361
|
-
}
|
|
2362
|
-
export function reasoningTextContentArraySerializer(result) {
|
|
2363
|
-
return result.map((item) => {
|
|
2364
|
-
return reasoningTextContentSerializer(item);
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
export function reasoningTextContentSerializer(item) {
|
|
2368
|
-
return { type: item["type"], text: item["text"] };
|
|
2369
|
-
}
|
|
2370
|
-
export function itemImageGenToolCallSerializer(item) {
|
|
2371
|
-
return { type: item["type"], id: item["id"], status: item["status"], result: item["result"] };
|
|
2372
|
-
}
|
|
2373
|
-
export function itemCodeInterpreterToolCallSerializer(item) {
|
|
2392
|
+
export function modelSamplingParamsSerializer(item) {
|
|
2374
2393
|
return {
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
code: item["code"],
|
|
2380
|
-
outputs: !item["outputs"]
|
|
2381
|
-
? item["outputs"]
|
|
2382
|
-
: _outputItemCodeInterpreterToolCallOutputArraySerializer(item["outputs"]),
|
|
2394
|
+
temperature: item["temperature"],
|
|
2395
|
+
top_p: item["top_p"],
|
|
2396
|
+
seed: item["seed"],
|
|
2397
|
+
max_completion_tokens: item["max_completion_tokens"],
|
|
2383
2398
|
};
|
|
2384
2399
|
}
|
|
2385
|
-
export function
|
|
2386
|
-
return result.map((item) => {
|
|
2387
|
-
return _outputItemCodeInterpreterToolCallOutputSerializer(item);
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
export function _outputItemCodeInterpreterToolCallOutputSerializer(item) {
|
|
2391
|
-
return item;
|
|
2392
|
-
}
|
|
2393
|
-
export function codeInterpreterOutputLogsSerializer(item) {
|
|
2394
|
-
return { type: item["type"], logs: item["logs"] };
|
|
2395
|
-
}
|
|
2396
|
-
export function codeInterpreterOutputImageSerializer(item) {
|
|
2397
|
-
return { type: item["type"], url: item["url"] };
|
|
2398
|
-
}
|
|
2399
|
-
export function itemLocalShellToolCallSerializer(item) {
|
|
2400
|
+
export function modelSamplingParamsDeserializer(item) {
|
|
2400
2401
|
return {
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
status: item["status"],
|
|
2402
|
+
temperature: item["temperature"],
|
|
2403
|
+
top_p: item["top_p"],
|
|
2404
|
+
seed: item["seed"],
|
|
2405
|
+
max_completion_tokens: item["max_completion_tokens"],
|
|
2406
2406
|
};
|
|
2407
2407
|
}
|
|
2408
|
-
export function
|
|
2408
|
+
export function azureAIAgentTargetSerializer(item) {
|
|
2409
2409
|
return {
|
|
2410
2410
|
type: item["type"],
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
user: item["user"],
|
|
2418
|
-
};
|
|
2419
|
-
}
|
|
2420
|
-
export function itemLocalShellToolCallOutputSerializer(item) {
|
|
2421
|
-
return { type: item["type"], id: item["id"], output: item["output"], status: item["status"] };
|
|
2411
|
+
name: item["name"],
|
|
2412
|
+
version: item["version"],
|
|
2413
|
+
tool_descriptions: !item["tool_descriptions"]
|
|
2414
|
+
? item["tool_descriptions"]
|
|
2415
|
+
: toolDescriptionArraySerializer(item["tool_descriptions"]),
|
|
2416
|
+
};
|
|
2422
2417
|
}
|
|
2423
|
-
export function
|
|
2418
|
+
export function azureAIAgentTargetDeserializer(item) {
|
|
2424
2419
|
return {
|
|
2425
2420
|
type: item["type"],
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2421
|
+
name: item["name"],
|
|
2422
|
+
version: item["version"],
|
|
2423
|
+
tool_descriptions: !item["tool_descriptions"]
|
|
2424
|
+
? item["tool_descriptions"]
|
|
2425
|
+
: toolDescriptionArrayDeserializer(item["tool_descriptions"]),
|
|
2430
2426
|
};
|
|
2431
2427
|
}
|
|
2432
|
-
export function
|
|
2428
|
+
export function toolDescriptionArraySerializer(result) {
|
|
2433
2429
|
return result.map((item) => {
|
|
2434
|
-
return
|
|
2430
|
+
return toolDescriptionSerializer(item);
|
|
2435
2431
|
});
|
|
2436
2432
|
}
|
|
2437
|
-
export function
|
|
2433
|
+
export function toolDescriptionArrayDeserializer(result) {
|
|
2434
|
+
return result.map((item) => {
|
|
2435
|
+
return toolDescriptionDeserializer(item);
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
export function toolDescriptionSerializer(item) {
|
|
2439
|
+
return { name: item["name"], description: item["description"] };
|
|
2440
|
+
}
|
|
2441
|
+
export function toolDescriptionDeserializer(item) {
|
|
2438
2442
|
return {
|
|
2439
2443
|
name: item["name"],
|
|
2440
2444
|
description: item["description"],
|
|
2441
|
-
input_schema: mcpListToolsToolInputSchemaSerializer(item["input_schema"]),
|
|
2442
|
-
annotations: !item["annotations"]
|
|
2443
|
-
? item["annotations"]
|
|
2444
|
-
: mcpListToolsToolAnnotationsSerializer(item["annotations"]),
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
export function
|
|
2448
|
-
return item
|
|
2447
|
+
export function taxonomyCategoryArraySerializer(result) {
|
|
2448
|
+
return result.map((item) => {
|
|
2449
|
+
return taxonomyCategorySerializer(item);
|
|
2450
|
+
});
|
|
2449
2451
|
}
|
|
2450
|
-
export function
|
|
2451
|
-
return item
|
|
2452
|
+
export function taxonomyCategoryArrayDeserializer(result) {
|
|
2453
|
+
return result.map((item) => {
|
|
2454
|
+
return taxonomyCategoryDeserializer(item);
|
|
2455
|
+
});
|
|
2452
2456
|
}
|
|
2453
|
-
export function
|
|
2457
|
+
export function taxonomyCategorySerializer(item) {
|
|
2454
2458
|
return {
|
|
2455
|
-
type: item["type"],
|
|
2456
2459
|
id: item["id"],
|
|
2457
|
-
server_label: item["server_label"],
|
|
2458
2460
|
name: item["name"],
|
|
2459
|
-
|
|
2461
|
+
description: item["description"],
|
|
2462
|
+
riskCategory: item["riskCategory"],
|
|
2463
|
+
subCategories: taxonomySubCategoryArraySerializer(item["subCategories"]),
|
|
2464
|
+
properties: item["properties"],
|
|
2460
2465
|
};
|
|
2461
2466
|
}
|
|
2462
|
-
export function
|
|
2467
|
+
export function taxonomyCategoryDeserializer(item) {
|
|
2463
2468
|
return {
|
|
2464
|
-
type: item["type"],
|
|
2465
2469
|
id: item["id"],
|
|
2466
|
-
server_label: item["server_label"],
|
|
2467
2470
|
name: item["name"],
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
}
|
|
2475
|
-
export function itemCustomToolCallOutputSerializer(item) {
|
|
2476
|
-
return {
|
|
2477
|
-
type: item["type"],
|
|
2478
|
-
id: item["id"],
|
|
2479
|
-
call_id: item["call_id"],
|
|
2480
|
-
output: _itemCustomToolCallOutputOutputSerializer(item["output"]),
|
|
2471
|
+
description: item["description"],
|
|
2472
|
+
riskCategory: item["riskCategory"],
|
|
2473
|
+
subCategories: taxonomySubCategoryArrayDeserializer(item["subCategories"]),
|
|
2474
|
+
properties: !item["properties"]
|
|
2475
|
+
? item["properties"]
|
|
2476
|
+
: Object.fromEntries(Object.entries(item["properties"]).map(([k, p]) => [k, p])),
|
|
2481
2477
|
};
|
|
2482
2478
|
}
|
|
2483
|
-
export function
|
|
2484
|
-
return item;
|
|
2485
|
-
}
|
|
2486
|
-
export function functionAndCustomToolCallOutputUnionArraySerializer(result) {
|
|
2479
|
+
export function taxonomySubCategoryArraySerializer(result) {
|
|
2487
2480
|
return result.map((item) => {
|
|
2488
|
-
return
|
|
2481
|
+
return taxonomySubCategorySerializer(item);
|
|
2489
2482
|
});
|
|
2490
2483
|
}
|
|
2491
|
-
export function
|
|
2492
|
-
return
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
switch (item.type) {
|
|
2496
|
-
case "input_text":
|
|
2497
|
-
return functionAndCustomToolCallOutputInputTextContentSerializer(item);
|
|
2498
|
-
case "input_image":
|
|
2499
|
-
return functionAndCustomToolCallOutputInputImageContentSerializer(item);
|
|
2500
|
-
case "input_file":
|
|
2501
|
-
return functionAndCustomToolCallOutputInputFileContentSerializer(item);
|
|
2502
|
-
default:
|
|
2503
|
-
return functionAndCustomToolCallOutputSerializer(item);
|
|
2504
|
-
}
|
|
2505
|
-
}
|
|
2506
|
-
export function functionAndCustomToolCallOutputInputTextContentSerializer(item) {
|
|
2507
|
-
return { type: item["type"], text: item["text"] };
|
|
2508
|
-
}
|
|
2509
|
-
export function functionAndCustomToolCallOutputInputImageContentSerializer(item) {
|
|
2510
|
-
return {
|
|
2511
|
-
type: item["type"],
|
|
2512
|
-
image_url: item["image_url"],
|
|
2513
|
-
file_id: item["file_id"],
|
|
2514
|
-
detail: item["detail"],
|
|
2515
|
-
};
|
|
2484
|
+
export function taxonomySubCategoryArrayDeserializer(result) {
|
|
2485
|
+
return result.map((item) => {
|
|
2486
|
+
return taxonomySubCategoryDeserializer(item);
|
|
2487
|
+
});
|
|
2516
2488
|
}
|
|
2517
|
-
export function
|
|
2489
|
+
export function taxonomySubCategorySerializer(item) {
|
|
2518
2490
|
return {
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2491
|
+
id: item["id"],
|
|
2492
|
+
name: item["name"],
|
|
2493
|
+
description: item["description"],
|
|
2494
|
+
enabled: item["enabled"],
|
|
2495
|
+
properties: item["properties"],
|
|
2524
2496
|
};
|
|
2525
2497
|
}
|
|
2526
|
-
export function
|
|
2498
|
+
export function taxonomySubCategoryDeserializer(item) {
|
|
2527
2499
|
return {
|
|
2528
|
-
type: item["type"],
|
|
2529
2500
|
id: item["id"],
|
|
2530
|
-
call_id: item["call_id"],
|
|
2531
2501
|
name: item["name"],
|
|
2532
|
-
|
|
2502
|
+
description: item["description"],
|
|
2503
|
+
enabled: item["enabled"],
|
|
2504
|
+
properties: !item["properties"]
|
|
2505
|
+
? item["properties"]
|
|
2506
|
+
: Object.fromEntries(Object.entries(item["properties"]).map(([k, p]) => [k, p])),
|
|
2533
2507
|
};
|
|
2534
2508
|
}
|
|
2535
|
-
export function
|
|
2536
|
-
return {
|
|
2509
|
+
export function _pagedEvaluationTaxonomyDeserializer(item) {
|
|
2510
|
+
return {
|
|
2511
|
+
value: evaluationTaxonomyArrayDeserializer(item["value"]),
|
|
2512
|
+
nextLink: item["nextLink"],
|
|
2513
|
+
};
|
|
2537
2514
|
}
|
|
2538
|
-
export function
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
default:
|
|
2543
|
-
return outputContentSerializer(item);
|
|
2544
|
-
}
|
|
2515
|
+
export function evaluationTaxonomyArraySerializer(result) {
|
|
2516
|
+
return result.map((item) => {
|
|
2517
|
+
return evaluationTaxonomySerializer(item);
|
|
2518
|
+
});
|
|
2545
2519
|
}
|
|
2546
|
-
export function
|
|
2520
|
+
export function evaluationTaxonomyArrayDeserializer(result) {
|
|
2547
2521
|
return result.map((item) => {
|
|
2548
|
-
return
|
|
2522
|
+
return evaluationTaxonomyDeserializer(item);
|
|
2549
2523
|
});
|
|
2550
2524
|
}
|
|
2551
|
-
export function
|
|
2525
|
+
export function _pagedEvaluatorVersionDeserializer(item) {
|
|
2552
2526
|
return {
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
usage: memoryStoreOperationUsageDeserializer(item["usage"]),
|
|
2527
|
+
value: evaluatorVersionArrayDeserializer(item["value"]),
|
|
2528
|
+
nextLink: item["nextLink"],
|
|
2556
2529
|
};
|
|
2557
2530
|
}
|
|
2558
|
-
export function
|
|
2559
|
-
return {
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
input_tokens_details: responseUsageInputTokensDetailsDeserializer(item["input_tokens_details"]),
|
|
2563
|
-
output_tokens: item["output_tokens"],
|
|
2564
|
-
output_tokens_details: responseUsageOutputTokensDetailsDeserializer(item["output_tokens_details"]),
|
|
2565
|
-
total_tokens: item["total_tokens"],
|
|
2566
|
-
};
|
|
2531
|
+
export function evaluatorVersionArraySerializer(result) {
|
|
2532
|
+
return result.map((item) => {
|
|
2533
|
+
return evaluatorVersionSerializer(item);
|
|
2534
|
+
});
|
|
2567
2535
|
}
|
|
2568
|
-
export function
|
|
2536
|
+
export function evaluatorVersionArrayDeserializer(result) {
|
|
2537
|
+
return result.map((item) => {
|
|
2538
|
+
return evaluatorVersionDeserializer(item);
|
|
2539
|
+
});
|
|
2540
|
+
}
|
|
2541
|
+
export function evaluatorVersionSerializer(item) {
|
|
2569
2542
|
return {
|
|
2570
|
-
|
|
2543
|
+
display_name: item["display_name"],
|
|
2544
|
+
metadata: item["metadata"],
|
|
2545
|
+
evaluator_type: item["evaluator_type"],
|
|
2546
|
+
categories: item["categories"].map((p) => {
|
|
2547
|
+
return p;
|
|
2548
|
+
}),
|
|
2549
|
+
definition: evaluatorDefinitionUnionSerializer(item["definition"]),
|
|
2550
|
+
description: item["description"],
|
|
2551
|
+
tags: item["tags"],
|
|
2571
2552
|
};
|
|
2572
2553
|
}
|
|
2573
|
-
export function
|
|
2554
|
+
export function evaluatorVersionDeserializer(item) {
|
|
2574
2555
|
return {
|
|
2575
|
-
|
|
2556
|
+
display_name: item["display_name"],
|
|
2557
|
+
metadata: !item["metadata"]
|
|
2558
|
+
? item["metadata"]
|
|
2559
|
+
: Object.fromEntries(Object.entries(item["metadata"]).map(([k, p]) => [k, p])),
|
|
2560
|
+
evaluator_type: item["evaluator_type"],
|
|
2561
|
+
categories: item["categories"].map((p) => {
|
|
2562
|
+
return p;
|
|
2563
|
+
}),
|
|
2564
|
+
definition: evaluatorDefinitionUnionDeserializer(item["definition"]),
|
|
2565
|
+
created_by: item["created_by"],
|
|
2566
|
+
created_at: item["created_at"],
|
|
2567
|
+
modified_at: item["modified_at"],
|
|
2568
|
+
id: item["id"],
|
|
2569
|
+
name: item["name"],
|
|
2570
|
+
version: item["version"],
|
|
2571
|
+
description: item["description"],
|
|
2572
|
+
tags: !item["tags"]
|
|
2573
|
+
? item["tags"]
|
|
2574
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
2576
2575
|
};
|
|
2577
2576
|
}
|
|
2578
|
-
export function
|
|
2577
|
+
export function evaluatorDefinitionSerializer(item) {
|
|
2579
2578
|
return {
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
? item["result"]
|
|
2585
|
-
: memoryStoreUpdateCompletedResultDeserializer(item["result"]),
|
|
2586
|
-
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
2579
|
+
type: item["type"],
|
|
2580
|
+
init_parameters: item["init_parameters"],
|
|
2581
|
+
data_schema: item["data_schema"],
|
|
2582
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
2587
2583
|
};
|
|
2588
2584
|
}
|
|
2589
|
-
export function
|
|
2585
|
+
export function evaluatorDefinitionDeserializer(item) {
|
|
2590
2586
|
return {
|
|
2591
|
-
|
|
2592
|
-
|
|
2587
|
+
type: item["type"],
|
|
2588
|
+
init_parameters: !item["init_parameters"]
|
|
2589
|
+
? item["init_parameters"]
|
|
2590
|
+
: Object.fromEntries(Object.entries(item["init_parameters"]).map(([k, p]) => [k, p])),
|
|
2591
|
+
data_schema: !item["data_schema"]
|
|
2592
|
+
? item["data_schema"]
|
|
2593
|
+
: Object.fromEntries(Object.entries(item["data_schema"]).map(([k, p]) => [k, p])),
|
|
2594
|
+
metrics: !item["metrics"]
|
|
2595
|
+
? item["metrics"]
|
|
2596
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
2593
2597
|
};
|
|
2594
2598
|
}
|
|
2595
|
-
export function
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
+
export function evaluatorDefinitionUnionSerializer(item) {
|
|
2600
|
+
switch (item.type) {
|
|
2601
|
+
case "code":
|
|
2602
|
+
return codeBasedEvaluatorDefinitionSerializer(item);
|
|
2603
|
+
case "prompt":
|
|
2604
|
+
return promptBasedEvaluatorDefinitionSerializer(item);
|
|
2605
|
+
default:
|
|
2606
|
+
return evaluatorDefinitionSerializer(item);
|
|
2607
|
+
}
|
|
2599
2608
|
}
|
|
2600
|
-
export function
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2609
|
+
export function evaluatorDefinitionUnionDeserializer(item) {
|
|
2610
|
+
switch (item.type) {
|
|
2611
|
+
case "code":
|
|
2612
|
+
return codeBasedEvaluatorDefinitionDeserializer(item);
|
|
2613
|
+
case "prompt":
|
|
2614
|
+
return promptBasedEvaluatorDefinitionDeserializer(item);
|
|
2615
|
+
default:
|
|
2616
|
+
return evaluatorDefinitionDeserializer(item);
|
|
2617
|
+
}
|
|
2605
2618
|
}
|
|
2606
|
-
export function
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2619
|
+
export function evaluatorMetricRecordSerializer(item) {
|
|
2620
|
+
const result = {};
|
|
2621
|
+
Object.keys(item).map((key) => {
|
|
2622
|
+
result[key] = !item[key] ? item[key] : evaluatorMetricSerializer(item[key]);
|
|
2623
|
+
});
|
|
2624
|
+
return result;
|
|
2625
|
+
}
|
|
2626
|
+
export function evaluatorMetricRecordDeserializer(item) {
|
|
2627
|
+
const result = {};
|
|
2628
|
+
Object.keys(item).map((key) => {
|
|
2629
|
+
result[key] = !item[key] ? item[key] : evaluatorMetricDeserializer(item[key]);
|
|
2630
|
+
});
|
|
2631
|
+
return result;
|
|
2613
2632
|
}
|
|
2614
|
-
export function
|
|
2633
|
+
export function evaluatorMetricSerializer(item) {
|
|
2615
2634
|
return {
|
|
2616
|
-
name: item["name"],
|
|
2617
|
-
id: item["id"],
|
|
2618
2635
|
type: item["type"],
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2636
|
+
desirable_direction: item["desirable_direction"],
|
|
2637
|
+
min_value: item["min_value"],
|
|
2638
|
+
max_value: item["max_value"],
|
|
2639
|
+
is_primary: item["is_primary"],
|
|
2623
2640
|
};
|
|
2624
2641
|
}
|
|
2625
|
-
export function
|
|
2642
|
+
export function evaluatorMetricDeserializer(item) {
|
|
2626
2643
|
return {
|
|
2627
2644
|
type: item["type"],
|
|
2645
|
+
desirable_direction: item["desirable_direction"],
|
|
2646
|
+
min_value: item["min_value"],
|
|
2647
|
+
max_value: item["max_value"],
|
|
2648
|
+
is_primary: item["is_primary"],
|
|
2628
2649
|
};
|
|
2629
2650
|
}
|
|
2630
|
-
export function
|
|
2631
|
-
switch (item.type) {
|
|
2632
|
-
case "ApiKey":
|
|
2633
|
-
return apiKeyCredentialsDeserializer(item);
|
|
2634
|
-
case "AAD":
|
|
2635
|
-
return entraIDCredentialsDeserializer(item);
|
|
2636
|
-
case "CustomKeys":
|
|
2637
|
-
return customCredentialDeserializer(item);
|
|
2638
|
-
case "SAS":
|
|
2639
|
-
return sasCredentialsDeserializer(item);
|
|
2640
|
-
case "None":
|
|
2641
|
-
return noAuthenticationCredentialsDeserializer(item);
|
|
2642
|
-
case "AgenticIdentityToken":
|
|
2643
|
-
return agenticIdentityCredentialsDeserializer(item);
|
|
2644
|
-
default:
|
|
2645
|
-
return baseCredentialsDeserializer(item);
|
|
2646
|
-
}
|
|
2647
|
-
}
|
|
2648
|
-
export function apiKeyCredentialsDeserializer(item) {
|
|
2651
|
+
export function codeBasedEvaluatorDefinitionSerializer(item) {
|
|
2649
2652
|
return {
|
|
2650
2653
|
type: item["type"],
|
|
2651
|
-
|
|
2654
|
+
init_parameters: item["init_parameters"],
|
|
2655
|
+
data_schema: item["data_schema"],
|
|
2656
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
2657
|
+
code_text: item["code_text"],
|
|
2652
2658
|
};
|
|
2653
2659
|
}
|
|
2654
|
-
export function
|
|
2660
|
+
export function codeBasedEvaluatorDefinitionDeserializer(item) {
|
|
2655
2661
|
return {
|
|
2656
2662
|
type: item["type"],
|
|
2663
|
+
init_parameters: !item["init_parameters"]
|
|
2664
|
+
? item["init_parameters"]
|
|
2665
|
+
: Object.fromEntries(Object.entries(item["init_parameters"]).map(([k, p]) => [k, p])),
|
|
2666
|
+
data_schema: !item["data_schema"]
|
|
2667
|
+
? item["data_schema"]
|
|
2668
|
+
: Object.fromEntries(Object.entries(item["data_schema"]).map(([k, p]) => [k, p])),
|
|
2669
|
+
metrics: !item["metrics"]
|
|
2670
|
+
? item["metrics"]
|
|
2671
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
2672
|
+
code_text: item["code_text"],
|
|
2657
2673
|
};
|
|
2658
2674
|
}
|
|
2659
|
-
export function
|
|
2675
|
+
export function promptBasedEvaluatorDefinitionSerializer(item) {
|
|
2660
2676
|
return {
|
|
2661
|
-
additionalProperties: serializeRecord(item, ["type"]),
|
|
2662
2677
|
type: item["type"],
|
|
2678
|
+
init_parameters: item["init_parameters"],
|
|
2679
|
+
data_schema: item["data_schema"],
|
|
2680
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
2681
|
+
prompt_text: item["prompt_text"],
|
|
2663
2682
|
};
|
|
2664
2683
|
}
|
|
2665
|
-
export function
|
|
2684
|
+
export function promptBasedEvaluatorDefinitionDeserializer(item) {
|
|
2666
2685
|
return {
|
|
2667
2686
|
type: item["type"],
|
|
2668
|
-
|
|
2687
|
+
init_parameters: !item["init_parameters"]
|
|
2688
|
+
? item["init_parameters"]
|
|
2689
|
+
: Object.fromEntries(Object.entries(item["init_parameters"]).map(([k, p]) => [k, p])),
|
|
2690
|
+
data_schema: !item["data_schema"]
|
|
2691
|
+
? item["data_schema"]
|
|
2692
|
+
: Object.fromEntries(Object.entries(item["data_schema"]).map(([k, p]) => [k, p])),
|
|
2693
|
+
metrics: !item["metrics"]
|
|
2694
|
+
? item["metrics"]
|
|
2695
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
2696
|
+
prompt_text: item["prompt_text"],
|
|
2669
2697
|
};
|
|
2670
2698
|
}
|
|
2671
|
-
export function
|
|
2699
|
+
export function insightSerializer(item) {
|
|
2672
2700
|
return {
|
|
2673
|
-
|
|
2701
|
+
displayName: item["displayName"],
|
|
2702
|
+
request: insightRequestUnionSerializer(item["request"]),
|
|
2674
2703
|
};
|
|
2675
2704
|
}
|
|
2676
|
-
export function
|
|
2705
|
+
export function insightDeserializer(item) {
|
|
2677
2706
|
return {
|
|
2678
|
-
|
|
2707
|
+
id: item["id"],
|
|
2708
|
+
metadata: insightsMetadataDeserializer(item["metadata"]),
|
|
2709
|
+
state: item["state"],
|
|
2710
|
+
displayName: item["displayName"],
|
|
2711
|
+
request: insightRequestUnionDeserializer(item["request"]),
|
|
2712
|
+
result: !item["result"] ? item["result"] : insightResultUnionDeserializer(item["result"]),
|
|
2679
2713
|
};
|
|
2680
2714
|
}
|
|
2681
|
-
export function
|
|
2715
|
+
export function insightsMetadataDeserializer(item) {
|
|
2682
2716
|
return {
|
|
2683
|
-
|
|
2684
|
-
|
|
2717
|
+
createdAt: new Date(item["createdAt"]),
|
|
2718
|
+
completedAt: !item["completedAt"] ? item["completedAt"] : new Date(item["completedAt"]),
|
|
2685
2719
|
};
|
|
2686
2720
|
}
|
|
2687
|
-
export function
|
|
2688
|
-
return
|
|
2689
|
-
return connectionDeserializer(item);
|
|
2690
|
-
});
|
|
2721
|
+
export function insightRequestSerializer(item) {
|
|
2722
|
+
return { type: item["type"] };
|
|
2691
2723
|
}
|
|
2692
|
-
export function
|
|
2724
|
+
export function insightRequestDeserializer(item) {
|
|
2693
2725
|
return {
|
|
2694
|
-
|
|
2695
|
-
nextLink: item["nextLink"],
|
|
2726
|
+
type: item["type"],
|
|
2696
2727
|
};
|
|
2697
2728
|
}
|
|
2698
|
-
export function
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2729
|
+
export function insightRequestUnionSerializer(item) {
|
|
2730
|
+
switch (item.type) {
|
|
2731
|
+
case "EvaluationRunClusterInsight":
|
|
2732
|
+
return evaluationRunClusterInsightRequestSerializer(item);
|
|
2733
|
+
case "AgentClusterInsight":
|
|
2734
|
+
return agentClusterInsightRequestSerializer(item);
|
|
2735
|
+
case "EvaluationComparison":
|
|
2736
|
+
return evaluationComparisonInsightRequestSerializer(item);
|
|
2737
|
+
default:
|
|
2738
|
+
return insightRequestSerializer(item);
|
|
2739
|
+
}
|
|
2702
2740
|
}
|
|
2703
|
-
export function
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2741
|
+
export function insightRequestUnionDeserializer(item) {
|
|
2742
|
+
switch (item.type) {
|
|
2743
|
+
case "EvaluationRunClusterInsight":
|
|
2744
|
+
return evaluationRunClusterInsightRequestDeserializer(item);
|
|
2745
|
+
case "AgentClusterInsight":
|
|
2746
|
+
return agentClusterInsightRequestDeserializer(item);
|
|
2747
|
+
case "EvaluationComparison":
|
|
2748
|
+
return evaluationComparisonInsightRequestDeserializer(item);
|
|
2749
|
+
default:
|
|
2750
|
+
return insightRequestDeserializer(item);
|
|
2751
|
+
}
|
|
2707
2752
|
}
|
|
2708
|
-
export function
|
|
2753
|
+
export function evaluationRunClusterInsightRequestSerializer(item) {
|
|
2709
2754
|
return {
|
|
2710
|
-
dataUri: item["dataUri"],
|
|
2711
2755
|
type: item["type"],
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2756
|
+
evalId: item["evalId"],
|
|
2757
|
+
runIds: item["runIds"].map((p) => {
|
|
2758
|
+
return p;
|
|
2759
|
+
}),
|
|
2760
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
2761
|
+
? item["modelConfiguration"]
|
|
2762
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
2715
2763
|
};
|
|
2716
2764
|
}
|
|
2717
|
-
export function
|
|
2765
|
+
export function evaluationRunClusterInsightRequestDeserializer(item) {
|
|
2718
2766
|
return {
|
|
2719
|
-
dataUri: item["dataUri"],
|
|
2720
2767
|
type: item["type"],
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2768
|
+
evalId: item["evalId"],
|
|
2769
|
+
runIds: item["runIds"].map((p) => {
|
|
2770
|
+
return p;
|
|
2771
|
+
}),
|
|
2772
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
2773
|
+
? item["modelConfiguration"]
|
|
2774
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
2728
2775
|
};
|
|
2729
2776
|
}
|
|
2730
|
-
export function
|
|
2731
|
-
|
|
2732
|
-
case "uri_file":
|
|
2733
|
-
return fileDatasetVersionSerializer(item);
|
|
2734
|
-
case "uri_folder":
|
|
2735
|
-
return folderDatasetVersionSerializer(item);
|
|
2736
|
-
default:
|
|
2737
|
-
return datasetVersionSerializer(item);
|
|
2738
|
-
}
|
|
2777
|
+
export function insightModelConfigurationSerializer(item) {
|
|
2778
|
+
return { modelDeploymentName: item["modelDeploymentName"] };
|
|
2739
2779
|
}
|
|
2740
|
-
export function
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
case "uri_folder":
|
|
2745
|
-
return folderDatasetVersionDeserializer(item);
|
|
2746
|
-
default:
|
|
2747
|
-
return datasetVersionDeserializer(item);
|
|
2748
|
-
}
|
|
2780
|
+
export function insightModelConfigurationDeserializer(item) {
|
|
2781
|
+
return {
|
|
2782
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
2783
|
+
};
|
|
2749
2784
|
}
|
|
2750
|
-
export function
|
|
2785
|
+
export function agentClusterInsightRequestSerializer(item) {
|
|
2751
2786
|
return {
|
|
2752
|
-
dataUri: item["dataUri"],
|
|
2753
2787
|
type: item["type"],
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2788
|
+
agentName: item["agentName"],
|
|
2789
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
2790
|
+
? item["modelConfiguration"]
|
|
2791
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
2757
2792
|
};
|
|
2758
2793
|
}
|
|
2759
|
-
export function
|
|
2794
|
+
export function agentClusterInsightRequestDeserializer(item) {
|
|
2760
2795
|
return {
|
|
2761
|
-
dataUri: item["dataUri"],
|
|
2762
2796
|
type: item["type"],
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
version: item["version"],
|
|
2768
|
-
description: item["description"],
|
|
2769
|
-
tags: item["tags"],
|
|
2797
|
+
agentName: item["agentName"],
|
|
2798
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
2799
|
+
? item["modelConfiguration"]
|
|
2800
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
2770
2801
|
};
|
|
2771
2802
|
}
|
|
2772
|
-
export function
|
|
2803
|
+
export function evaluationComparisonInsightRequestSerializer(item) {
|
|
2773
2804
|
return {
|
|
2774
|
-
dataUri: item["dataUri"],
|
|
2775
2805
|
type: item["type"],
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2806
|
+
evalId: item["evalId"],
|
|
2807
|
+
baselineRunId: item["baselineRunId"],
|
|
2808
|
+
treatmentRunIds: item["treatmentRunIds"].map((p) => {
|
|
2809
|
+
return p;
|
|
2810
|
+
}),
|
|
2779
2811
|
};
|
|
2780
2812
|
}
|
|
2781
|
-
export function
|
|
2813
|
+
export function evaluationComparisonInsightRequestDeserializer(item) {
|
|
2782
2814
|
return {
|
|
2783
|
-
dataUri: item["dataUri"],
|
|
2784
2815
|
type: item["type"],
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
description: item["description"],
|
|
2791
|
-
tags: item["tags"],
|
|
2816
|
+
evalId: item["evalId"],
|
|
2817
|
+
baselineRunId: item["baselineRunId"],
|
|
2818
|
+
treatmentRunIds: item["treatmentRunIds"].map((p) => {
|
|
2819
|
+
return p;
|
|
2820
|
+
}),
|
|
2792
2821
|
};
|
|
2793
2822
|
}
|
|
2794
|
-
export function
|
|
2823
|
+
export function insightResultDeserializer(item) {
|
|
2795
2824
|
return {
|
|
2796
|
-
|
|
2797
|
-
connectionName: item["connectionName"],
|
|
2798
|
-
pendingUploadType: item["pendingUploadType"],
|
|
2825
|
+
type: item["type"],
|
|
2799
2826
|
};
|
|
2800
2827
|
}
|
|
2801
|
-
export function
|
|
2828
|
+
export function insightResultUnionDeserializer(item) {
|
|
2829
|
+
switch (item.type) {
|
|
2830
|
+
case "EvaluationComparison":
|
|
2831
|
+
return evaluationComparisonInsightResultDeserializer(item);
|
|
2832
|
+
case "EvaluationRunClusterInsight":
|
|
2833
|
+
return evaluationRunClusterInsightResultDeserializer(item);
|
|
2834
|
+
case "AgentClusterInsight":
|
|
2835
|
+
return agentClusterInsightResultDeserializer(item);
|
|
2836
|
+
default:
|
|
2837
|
+
return insightResultDeserializer(item);
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2840
|
+
export function evaluationComparisonInsightResultDeserializer(item) {
|
|
2802
2841
|
return {
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2842
|
+
type: item["type"],
|
|
2843
|
+
comparisons: evalRunResultComparisonArrayDeserializer(item["comparisons"]),
|
|
2844
|
+
method: item["method"],
|
|
2845
|
+
};
|
|
2846
|
+
}
|
|
2847
|
+
export function evalRunResultComparisonArrayDeserializer(result) {
|
|
2848
|
+
return result.map((item) => {
|
|
2849
|
+
return evalRunResultComparisonDeserializer(item);
|
|
2850
|
+
});
|
|
2851
|
+
}
|
|
2852
|
+
export function evalRunResultComparisonDeserializer(item) {
|
|
2853
|
+
return {
|
|
2854
|
+
testingCriteria: item["testingCriteria"],
|
|
2855
|
+
metric: item["metric"],
|
|
2856
|
+
evaluator: item["evaluator"],
|
|
2857
|
+
baselineRunSummary: evalRunResultSummaryDeserializer(item["baselineRunSummary"]),
|
|
2858
|
+
compareItems: evalRunResultCompareItemArrayDeserializer(item["compareItems"]),
|
|
2859
|
+
};
|
|
2860
|
+
}
|
|
2861
|
+
export function evalRunResultSummaryDeserializer(item) {
|
|
2862
|
+
return {
|
|
2863
|
+
runId: item["runId"],
|
|
2864
|
+
sampleCount: item["sampleCount"],
|
|
2865
|
+
average: item["average"],
|
|
2866
|
+
standardDeviation: item["standardDeviation"],
|
|
2807
2867
|
};
|
|
2808
2868
|
}
|
|
2809
|
-
export function
|
|
2869
|
+
export function evalRunResultCompareItemArrayDeserializer(result) {
|
|
2870
|
+
return result.map((item) => {
|
|
2871
|
+
return evalRunResultCompareItemDeserializer(item);
|
|
2872
|
+
});
|
|
2873
|
+
}
|
|
2874
|
+
export function evalRunResultCompareItemDeserializer(item) {
|
|
2810
2875
|
return {
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2876
|
+
treatmentRunId: item["treatmentRunId"],
|
|
2877
|
+
treatmentRunSummary: evalRunResultSummaryDeserializer(item["treatmentRunSummary"]),
|
|
2878
|
+
deltaEstimate: item["deltaEstimate"],
|
|
2879
|
+
pValue: item["pValue"],
|
|
2880
|
+
treatmentEffect: item["treatmentEffect"],
|
|
2814
2881
|
};
|
|
2815
2882
|
}
|
|
2816
|
-
export function
|
|
2883
|
+
export function evaluationRunClusterInsightResultDeserializer(item) {
|
|
2817
2884
|
return {
|
|
2818
|
-
sasUri: item["sasUri"],
|
|
2819
2885
|
type: item["type"],
|
|
2886
|
+
clusterInsight: clusterInsightResultDeserializer(item["clusterInsight"]),
|
|
2820
2887
|
};
|
|
2821
2888
|
}
|
|
2822
|
-
export function
|
|
2889
|
+
export function clusterInsightResultDeserializer(item) {
|
|
2823
2890
|
return {
|
|
2824
|
-
|
|
2891
|
+
summary: insightSummaryDeserializer(item["summary"]),
|
|
2892
|
+
clusters: insightClusterArrayDeserializer(item["clusters"]),
|
|
2893
|
+
coordinates: !item["coordinates"]
|
|
2894
|
+
? item["coordinates"]
|
|
2895
|
+
: chartCoordinateRecordDeserializer(item["coordinates"]),
|
|
2825
2896
|
};
|
|
2826
2897
|
}
|
|
2827
|
-
export function
|
|
2898
|
+
export function insightSummaryDeserializer(item) {
|
|
2828
2899
|
return {
|
|
2829
|
-
|
|
2830
|
-
|
|
2900
|
+
sampleCount: item["sampleCount"],
|
|
2901
|
+
uniqueSubclusterCount: item["uniqueSubclusterCount"],
|
|
2902
|
+
uniqueClusterCount: item["uniqueClusterCount"],
|
|
2903
|
+
method: item["method"],
|
|
2904
|
+
usage: clusterTokenUsageDeserializer(item["usage"]),
|
|
2831
2905
|
};
|
|
2832
2906
|
}
|
|
2833
|
-
export function
|
|
2834
|
-
return
|
|
2835
|
-
|
|
2836
|
-
|
|
2907
|
+
export function clusterTokenUsageDeserializer(item) {
|
|
2908
|
+
return {
|
|
2909
|
+
inputTokenUsage: item["inputTokenUsage"],
|
|
2910
|
+
outputTokenUsage: item["outputTokenUsage"],
|
|
2911
|
+
totalTokenUsage: item["totalTokenUsage"],
|
|
2912
|
+
};
|
|
2837
2913
|
}
|
|
2838
|
-
export function
|
|
2914
|
+
export function insightClusterArrayDeserializer(result) {
|
|
2839
2915
|
return result.map((item) => {
|
|
2840
|
-
return
|
|
2916
|
+
return insightClusterDeserializer(item);
|
|
2841
2917
|
});
|
|
2842
2918
|
}
|
|
2843
|
-
export function
|
|
2919
|
+
export function insightClusterDeserializer(item) {
|
|
2844
2920
|
return {
|
|
2845
|
-
|
|
2921
|
+
id: item["id"],
|
|
2922
|
+
label: item["label"],
|
|
2923
|
+
suggestion: item["suggestion"],
|
|
2924
|
+
suggestionTitle: item["suggestionTitle"],
|
|
2846
2925
|
description: item["description"],
|
|
2847
|
-
|
|
2926
|
+
weight: item["weight"],
|
|
2927
|
+
subClusters: !item["subClusters"]
|
|
2928
|
+
? item["subClusters"]
|
|
2929
|
+
: insightClusterArrayDeserializer(item["subClusters"]),
|
|
2930
|
+
samples: !item["samples"]
|
|
2931
|
+
? item["samples"]
|
|
2932
|
+
: insightSampleUnionArrayDeserializer(item["samples"]),
|
|
2848
2933
|
};
|
|
2849
2934
|
}
|
|
2850
|
-
export function
|
|
2935
|
+
export function insightSampleUnionArrayDeserializer(result) {
|
|
2936
|
+
return result.map((item) => {
|
|
2937
|
+
return insightSampleUnionDeserializer(item);
|
|
2938
|
+
});
|
|
2939
|
+
}
|
|
2940
|
+
export function insightSampleDeserializer(item) {
|
|
2851
2941
|
return {
|
|
2852
|
-
type: item["type"],
|
|
2853
2942
|
id: item["id"],
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
tags: item["tags"],
|
|
2943
|
+
type: item["type"],
|
|
2944
|
+
features: Object.fromEntries(Object.entries(item["features"]).map(([k, p]) => [k, p])),
|
|
2945
|
+
correlationInfo: Object.fromEntries(Object.entries(item["correlationInfo"]).map(([k, p]) => [k, p])),
|
|
2858
2946
|
};
|
|
2859
2947
|
}
|
|
2860
|
-
export function
|
|
2861
|
-
switch (item.type) {
|
|
2862
|
-
case "AzureSearch":
|
|
2863
|
-
return azureAISearchIndexSerializer(item);
|
|
2864
|
-
case "ManagedAzureSearch":
|
|
2865
|
-
return managedAzureAISearchIndexSerializer(item);
|
|
2866
|
-
case "CosmosDBNoSqlVectorStore":
|
|
2867
|
-
return cosmosDBIndexSerializer(item);
|
|
2868
|
-
default:
|
|
2869
|
-
return indexSerializer(item);
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
export function indexUnionDeserializer(item) {
|
|
2948
|
+
export function insightSampleUnionDeserializer(item) {
|
|
2873
2949
|
switch (item.type) {
|
|
2874
|
-
case "
|
|
2875
|
-
return
|
|
2876
|
-
case "ManagedAzureSearch":
|
|
2877
|
-
return managedAzureAISearchIndexDeserializer(item);
|
|
2878
|
-
case "CosmosDBNoSqlVectorStore":
|
|
2879
|
-
return cosmosDBIndexDeserializer(item);
|
|
2950
|
+
case "EvaluationResultSample":
|
|
2951
|
+
return evaluationResultSampleDeserializer(item);
|
|
2880
2952
|
default:
|
|
2881
|
-
return
|
|
2953
|
+
return insightSampleDeserializer(item);
|
|
2882
2954
|
}
|
|
2883
2955
|
}
|
|
2884
|
-
export function
|
|
2956
|
+
export function evaluationResultSampleDeserializer(item) {
|
|
2885
2957
|
return {
|
|
2958
|
+
id: item["id"],
|
|
2886
2959
|
type: item["type"],
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
indexName: item["indexName"],
|
|
2891
|
-
fieldMapping: !item["fieldMapping"]
|
|
2892
|
-
? item["fieldMapping"]
|
|
2893
|
-
: fieldMappingSerializer(item["fieldMapping"]),
|
|
2960
|
+
features: Object.fromEntries(Object.entries(item["features"]).map(([k, p]) => [k, p])),
|
|
2961
|
+
correlationInfo: Object.fromEntries(Object.entries(item["correlationInfo"]).map(([k, p]) => [k, p])),
|
|
2962
|
+
evaluationResult: evalResultDeserializer(item["evaluationResult"]),
|
|
2894
2963
|
};
|
|
2895
2964
|
}
|
|
2896
|
-
export function
|
|
2965
|
+
export function evalResultDeserializer(item) {
|
|
2897
2966
|
return {
|
|
2898
|
-
type: item["type"],
|
|
2899
|
-
id: item["id"],
|
|
2900
2967
|
name: item["name"],
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
connectionName: item["connectionName"],
|
|
2905
|
-
indexName: item["indexName"],
|
|
2906
|
-
fieldMapping: !item["fieldMapping"]
|
|
2907
|
-
? item["fieldMapping"]
|
|
2908
|
-
: fieldMappingDeserializer(item["fieldMapping"]),
|
|
2968
|
+
type: item["type"],
|
|
2969
|
+
score: item["score"],
|
|
2970
|
+
passed: item["passed"],
|
|
2909
2971
|
};
|
|
2910
2972
|
}
|
|
2911
|
-
export function
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
titleField: item["titleField"],
|
|
2918
|
-
urlField: item["urlField"],
|
|
2919
|
-
vectorFields: !item["vectorFields"]
|
|
2920
|
-
? item["vectorFields"]
|
|
2921
|
-
: item["vectorFields"].map((p) => {
|
|
2922
|
-
return p;
|
|
2923
|
-
}),
|
|
2924
|
-
metadataFields: !item["metadataFields"]
|
|
2925
|
-
? item["metadataFields"]
|
|
2926
|
-
: item["metadataFields"].map((p) => {
|
|
2927
|
-
return p;
|
|
2928
|
-
}),
|
|
2929
|
-
};
|
|
2973
|
+
export function chartCoordinateRecordDeserializer(item) {
|
|
2974
|
+
const result = {};
|
|
2975
|
+
Object.keys(item).map((key) => {
|
|
2976
|
+
result[key] = !item[key] ? item[key] : chartCoordinateDeserializer(item[key]);
|
|
2977
|
+
});
|
|
2978
|
+
return result;
|
|
2930
2979
|
}
|
|
2931
|
-
export function
|
|
2980
|
+
export function chartCoordinateDeserializer(item) {
|
|
2932
2981
|
return {
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
filepathField: item["filepathField"],
|
|
2937
|
-
titleField: item["titleField"],
|
|
2938
|
-
urlField: item["urlField"],
|
|
2939
|
-
vectorFields: !item["vectorFields"]
|
|
2940
|
-
? item["vectorFields"]
|
|
2941
|
-
: item["vectorFields"].map((p) => {
|
|
2942
|
-
return p;
|
|
2943
|
-
}),
|
|
2944
|
-
metadataFields: !item["metadataFields"]
|
|
2945
|
-
? item["metadataFields"]
|
|
2946
|
-
: item["metadataFields"].map((p) => {
|
|
2947
|
-
return p;
|
|
2948
|
-
}),
|
|
2982
|
+
x: item["x"],
|
|
2983
|
+
y: item["y"],
|
|
2984
|
+
size: item["size"],
|
|
2949
2985
|
};
|
|
2950
2986
|
}
|
|
2951
|
-
export function
|
|
2987
|
+
export function agentClusterInsightResultDeserializer(item) {
|
|
2952
2988
|
return {
|
|
2953
2989
|
type: item["type"],
|
|
2954
|
-
|
|
2955
|
-
tags: item["tags"],
|
|
2956
|
-
vectorStoreId: item["vectorStoreId"],
|
|
2990
|
+
clusterInsight: clusterInsightResultDeserializer(item["clusterInsight"]),
|
|
2957
2991
|
};
|
|
2958
2992
|
}
|
|
2959
|
-
export function
|
|
2993
|
+
export function _pagedInsightDeserializer(item) {
|
|
2960
2994
|
return {
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
name: item["name"],
|
|
2964
|
-
version: item["version"],
|
|
2965
|
-
description: item["description"],
|
|
2966
|
-
tags: item["tags"],
|
|
2967
|
-
vectorStoreId: item["vectorStoreId"],
|
|
2995
|
+
value: insightArrayDeserializer(item["value"]),
|
|
2996
|
+
nextLink: item["nextLink"],
|
|
2968
2997
|
};
|
|
2969
2998
|
}
|
|
2970
|
-
export function
|
|
2971
|
-
return {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
tags: item["tags"],
|
|
2975
|
-
connectionName: item["connectionName"],
|
|
2976
|
-
databaseName: item["databaseName"],
|
|
2977
|
-
containerName: item["containerName"],
|
|
2978
|
-
embeddingConfiguration: embeddingConfigurationSerializer(item["embeddingConfiguration"]),
|
|
2979
|
-
fieldMapping: fieldMappingSerializer(item["fieldMapping"]),
|
|
2980
|
-
};
|
|
2999
|
+
export function insightArraySerializer(result) {
|
|
3000
|
+
return result.map((item) => {
|
|
3001
|
+
return insightSerializer(item);
|
|
3002
|
+
});
|
|
2981
3003
|
}
|
|
2982
|
-
export function
|
|
3004
|
+
export function insightArrayDeserializer(result) {
|
|
3005
|
+
return result.map((item) => {
|
|
3006
|
+
return insightDeserializer(item);
|
|
3007
|
+
});
|
|
3008
|
+
}
|
|
3009
|
+
export function memoryStoreDefinitionSerializer(item) {
|
|
3010
|
+
return { kind: item["kind"] };
|
|
3011
|
+
}
|
|
3012
|
+
export function memoryStoreDefinitionDeserializer(item) {
|
|
2983
3013
|
return {
|
|
2984
|
-
|
|
2985
|
-
id: item["id"],
|
|
2986
|
-
name: item["name"],
|
|
2987
|
-
version: item["version"],
|
|
2988
|
-
description: item["description"],
|
|
2989
|
-
tags: item["tags"],
|
|
2990
|
-
connectionName: item["connectionName"],
|
|
2991
|
-
databaseName: item["databaseName"],
|
|
2992
|
-
containerName: item["containerName"],
|
|
2993
|
-
embeddingConfiguration: embeddingConfigurationDeserializer(item["embeddingConfiguration"]),
|
|
2994
|
-
fieldMapping: fieldMappingDeserializer(item["fieldMapping"]),
|
|
3014
|
+
kind: item["kind"],
|
|
2995
3015
|
};
|
|
2996
3016
|
}
|
|
2997
|
-
export function
|
|
3017
|
+
export function memoryStoreDefinitionUnionSerializer(item) {
|
|
3018
|
+
switch (item.kind) {
|
|
3019
|
+
case "default":
|
|
3020
|
+
return memoryStoreDefaultDefinitionSerializer(item);
|
|
3021
|
+
default:
|
|
3022
|
+
return memoryStoreDefinitionSerializer(item);
|
|
3023
|
+
}
|
|
3024
|
+
}
|
|
3025
|
+
export function memoryStoreDefinitionUnionDeserializer(item) {
|
|
3026
|
+
switch (item.kind) {
|
|
3027
|
+
case "default":
|
|
3028
|
+
return memoryStoreDefaultDefinitionDeserializer(item);
|
|
3029
|
+
default:
|
|
3030
|
+
return memoryStoreDefinitionDeserializer(item);
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
export function memoryStoreDefaultDefinitionSerializer(item) {
|
|
2998
3034
|
return {
|
|
2999
|
-
|
|
3000
|
-
|
|
3035
|
+
kind: item["kind"],
|
|
3036
|
+
chat_model: item["chat_model"],
|
|
3037
|
+
embedding_model: item["embedding_model"],
|
|
3038
|
+
options: !item["options"]
|
|
3039
|
+
? item["options"]
|
|
3040
|
+
: memoryStoreDefaultOptionsSerializer(item["options"]),
|
|
3001
3041
|
};
|
|
3002
3042
|
}
|
|
3003
|
-
export function
|
|
3043
|
+
export function memoryStoreDefaultDefinitionDeserializer(item) {
|
|
3004
3044
|
return {
|
|
3005
|
-
|
|
3006
|
-
|
|
3045
|
+
kind: item["kind"],
|
|
3046
|
+
chat_model: item["chat_model"],
|
|
3047
|
+
embedding_model: item["embedding_model"],
|
|
3048
|
+
options: !item["options"]
|
|
3049
|
+
? item["options"]
|
|
3050
|
+
: memoryStoreDefaultOptionsDeserializer(item["options"]),
|
|
3007
3051
|
};
|
|
3008
3052
|
}
|
|
3009
|
-
export function
|
|
3053
|
+
export function memoryStoreDefaultOptionsSerializer(item) {
|
|
3010
3054
|
return {
|
|
3011
|
-
|
|
3012
|
-
|
|
3055
|
+
user_profile_enabled: item["user_profile_enabled"],
|
|
3056
|
+
user_profile_details: item["user_profile_details"],
|
|
3057
|
+
chat_summary_enabled: item["chat_summary_enabled"],
|
|
3013
3058
|
};
|
|
3014
3059
|
}
|
|
3015
|
-
export function
|
|
3016
|
-
switch (item.type) {
|
|
3017
|
-
case "ModelDeployment":
|
|
3018
|
-
return modelDeploymentDeserializer(item);
|
|
3019
|
-
default:
|
|
3020
|
-
return deploymentDeserializer(item);
|
|
3021
|
-
}
|
|
3022
|
-
}
|
|
3023
|
-
export function modelDeploymentDeserializer(item) {
|
|
3060
|
+
export function memoryStoreDefaultOptionsDeserializer(item) {
|
|
3024
3061
|
return {
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
modelVersion: item["modelVersion"],
|
|
3029
|
-
modelPublisher: item["modelPublisher"],
|
|
3030
|
-
capabilities: item["capabilities"],
|
|
3031
|
-
sku: modelDeploymentSkuDeserializer(item["sku"]),
|
|
3032
|
-
connectionName: item["connectionName"],
|
|
3062
|
+
user_profile_enabled: item["user_profile_enabled"],
|
|
3063
|
+
user_profile_details: item["user_profile_details"],
|
|
3064
|
+
chat_summary_enabled: item["chat_summary_enabled"],
|
|
3033
3065
|
};
|
|
3034
3066
|
}
|
|
3035
|
-
export function
|
|
3067
|
+
export function memoryStoreDeserializer(item) {
|
|
3036
3068
|
return {
|
|
3037
|
-
|
|
3038
|
-
|
|
3069
|
+
object: item["object"],
|
|
3070
|
+
id: item["id"],
|
|
3071
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
3072
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
3039
3073
|
name: item["name"],
|
|
3040
|
-
|
|
3041
|
-
|
|
3074
|
+
description: item["description"],
|
|
3075
|
+
metadata: !item["metadata"]
|
|
3076
|
+
? item["metadata"]
|
|
3077
|
+
: Object.fromEntries(Object.entries(item["metadata"]).map(([k, p]) => [k, p])),
|
|
3078
|
+
definition: memoryStoreDefinitionUnionDeserializer(item["definition"]),
|
|
3042
3079
|
};
|
|
3043
3080
|
}
|
|
3044
|
-
export function
|
|
3081
|
+
export function _agentsPagedResultMemoryStoreObjectDeserializer(item) {
|
|
3045
3082
|
return {
|
|
3046
|
-
|
|
3047
|
-
|
|
3083
|
+
data: memoryStoreArrayDeserializer(item["data"]),
|
|
3084
|
+
first_id: item["first_id"],
|
|
3085
|
+
last_id: item["last_id"],
|
|
3086
|
+
has_more: item["has_more"],
|
|
3048
3087
|
};
|
|
3049
3088
|
}
|
|
3050
|
-
export function
|
|
3089
|
+
export function memoryStoreArrayDeserializer(result) {
|
|
3051
3090
|
return result.map((item) => {
|
|
3052
|
-
return
|
|
3091
|
+
return memoryStoreDeserializer(item);
|
|
3053
3092
|
});
|
|
3054
3093
|
}
|
|
3055
|
-
export function
|
|
3056
|
-
return {
|
|
3057
|
-
displayName: item["displayName"],
|
|
3058
|
-
numTurns: item["numTurns"],
|
|
3059
|
-
attackStrategies: !item["attackStrategies"]
|
|
3060
|
-
? item["attackStrategies"]
|
|
3061
|
-
: item["attackStrategies"].map((p) => {
|
|
3062
|
-
return p;
|
|
3063
|
-
}),
|
|
3064
|
-
simulationOnly: item["simulationOnly"],
|
|
3065
|
-
riskCategories: !item["riskCategories"]
|
|
3066
|
-
? item["riskCategories"]
|
|
3067
|
-
: item["riskCategories"].map((p) => {
|
|
3068
|
-
return p;
|
|
3069
|
-
}),
|
|
3070
|
-
applicationScenario: item["applicationScenario"],
|
|
3071
|
-
tags: item["tags"],
|
|
3072
|
-
properties: item["properties"],
|
|
3073
|
-
target: targetConfigUnionSerializer(item["target"]),
|
|
3074
|
-
};
|
|
3075
|
-
}
|
|
3076
|
-
export function redTeamDeserializer(item) {
|
|
3094
|
+
export function deleteMemoryStoreResponseDeserializer(item) {
|
|
3077
3095
|
return {
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
attackStrategies: !item["attackStrategies"]
|
|
3082
|
-
? item["attackStrategies"]
|
|
3083
|
-
: item["attackStrategies"].map((p) => {
|
|
3084
|
-
return p;
|
|
3085
|
-
}),
|
|
3086
|
-
simulationOnly: item["simulationOnly"],
|
|
3087
|
-
riskCategories: !item["riskCategories"]
|
|
3088
|
-
? item["riskCategories"]
|
|
3089
|
-
: item["riskCategories"].map((p) => {
|
|
3090
|
-
return p;
|
|
3091
|
-
}),
|
|
3092
|
-
applicationScenario: item["applicationScenario"],
|
|
3093
|
-
tags: item["tags"],
|
|
3094
|
-
properties: item["properties"],
|
|
3095
|
-
status: item["status"],
|
|
3096
|
-
target: targetConfigUnionDeserializer(item["target"]),
|
|
3096
|
+
object: item["object"],
|
|
3097
|
+
name: item["name"],
|
|
3098
|
+
deleted: item["deleted"],
|
|
3097
3099
|
};
|
|
3098
3100
|
}
|
|
3099
|
-
export function
|
|
3101
|
+
export function inputItemSerializer(item) {
|
|
3100
3102
|
return { type: item["type"] };
|
|
3101
3103
|
}
|
|
3102
|
-
export function
|
|
3104
|
+
export function inputItemUnionSerializer(item) {
|
|
3105
|
+
switch (item.type) {
|
|
3106
|
+
case "message":
|
|
3107
|
+
return easyInputMessageSerializer(item);
|
|
3108
|
+
case "item_reference":
|
|
3109
|
+
return itemReferenceParamSerializer(item);
|
|
3110
|
+
case "output_message":
|
|
3111
|
+
return inputItemOutputMessageSerializer(item);
|
|
3112
|
+
case "file_search_call":
|
|
3113
|
+
return inputItemFileSearchToolCallSerializer(item);
|
|
3114
|
+
case "computer_call":
|
|
3115
|
+
return inputItemComputerToolCallSerializer(item);
|
|
3116
|
+
case "computer_call_output":
|
|
3117
|
+
return inputItemComputerCallOutputItemParamSerializer(item);
|
|
3118
|
+
case "web_search_call":
|
|
3119
|
+
return inputItemWebSearchToolCallSerializer(item);
|
|
3120
|
+
case "function_call":
|
|
3121
|
+
return inputItemFunctionToolCallSerializer(item);
|
|
3122
|
+
case "function_call_output":
|
|
3123
|
+
return inputItemFunctionCallOutputItemParamSerializer(item);
|
|
3124
|
+
case "reasoning":
|
|
3125
|
+
return inputItemReasoningItemSerializer(item);
|
|
3126
|
+
case "compaction":
|
|
3127
|
+
return inputItemCompactionSummaryItemParamSerializer(item);
|
|
3128
|
+
case "image_generation_call":
|
|
3129
|
+
return inputItemImageGenToolCallSerializer(item);
|
|
3130
|
+
case "code_interpreter_call":
|
|
3131
|
+
return inputItemCodeInterpreterToolCallSerializer(item);
|
|
3132
|
+
case "local_shell_call":
|
|
3133
|
+
return inputItemLocalShellToolCallSerializer(item);
|
|
3134
|
+
case "local_shell_call_output":
|
|
3135
|
+
return inputItemLocalShellToolCallOutputSerializer(item);
|
|
3136
|
+
case "shell_call":
|
|
3137
|
+
return inputItemFunctionShellCallItemParamSerializer(item);
|
|
3138
|
+
case "shell_call_output":
|
|
3139
|
+
return inputItemFunctionShellCallOutputItemParamSerializer(item);
|
|
3140
|
+
case "apply_patch_call":
|
|
3141
|
+
return inputItemApplyPatchToolCallItemParamSerializer(item);
|
|
3142
|
+
case "apply_patch_call_output":
|
|
3143
|
+
return inputItemApplyPatchToolCallOutputItemParamSerializer(item);
|
|
3144
|
+
case "mcp_list_tools":
|
|
3145
|
+
return inputItemMcpListToolsSerializer(item);
|
|
3146
|
+
case "mcp_approval_request":
|
|
3147
|
+
return inputItemMcpApprovalRequestSerializer(item);
|
|
3148
|
+
case "mcp_approval_response":
|
|
3149
|
+
return inputItemMcpApprovalResponseSerializer(item);
|
|
3150
|
+
case "mcp_call":
|
|
3151
|
+
return inputItemMcpToolCallSerializer(item);
|
|
3152
|
+
case "custom_tool_call_output":
|
|
3153
|
+
return inputItemCustomToolCallOutputSerializer(item);
|
|
3154
|
+
case "custom_tool_call":
|
|
3155
|
+
return inputItemCustomToolCallSerializer(item);
|
|
3156
|
+
default:
|
|
3157
|
+
return inputItemSerializer(item);
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
export function easyInputMessageSerializer(item) {
|
|
3103
3161
|
return {
|
|
3104
3162
|
type: item["type"],
|
|
3163
|
+
role: item["role"],
|
|
3164
|
+
content: _easyInputMessageContentSerializer(item["content"]),
|
|
3165
|
+
status: item["status"],
|
|
3105
3166
|
};
|
|
3106
3167
|
}
|
|
3107
|
-
export function
|
|
3108
|
-
|
|
3109
|
-
case "AzureOpenAIModel":
|
|
3110
|
-
return azureOpenAIModelConfigurationSerializer(item);
|
|
3111
|
-
default:
|
|
3112
|
-
return targetConfigSerializer(item);
|
|
3113
|
-
}
|
|
3168
|
+
export function _easyInputMessageContentSerializer(item) {
|
|
3169
|
+
return item;
|
|
3114
3170
|
}
|
|
3115
|
-
export function
|
|
3171
|
+
export function inputContentUnionArraySerializer(result) {
|
|
3172
|
+
return result.map((item) => {
|
|
3173
|
+
return inputContentUnionSerializer(item);
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
export function inputContentSerializer(item) {
|
|
3177
|
+
return { type: item["type"] };
|
|
3178
|
+
}
|
|
3179
|
+
export function inputContentUnionSerializer(item) {
|
|
3116
3180
|
switch (item.type) {
|
|
3117
|
-
case "
|
|
3118
|
-
return
|
|
3181
|
+
case "input_text":
|
|
3182
|
+
return inputContentInputTextContentSerializer(item);
|
|
3183
|
+
case "input_image":
|
|
3184
|
+
return inputContentInputImageContentSerializer(item);
|
|
3185
|
+
case "input_file":
|
|
3186
|
+
return inputContentInputFileContentSerializer(item);
|
|
3119
3187
|
default:
|
|
3120
|
-
return
|
|
3188
|
+
return inputContentSerializer(item);
|
|
3121
3189
|
}
|
|
3122
3190
|
}
|
|
3123
|
-
export function
|
|
3191
|
+
export function inputContentInputTextContentSerializer(item) {
|
|
3192
|
+
return { type: item["type"], text: item["text"] };
|
|
3193
|
+
}
|
|
3194
|
+
export function inputContentInputImageContentSerializer(item) {
|
|
3124
3195
|
return {
|
|
3125
3196
|
type: item["type"],
|
|
3126
|
-
|
|
3197
|
+
image_url: item["image_url"],
|
|
3198
|
+
file_id: item["file_id"],
|
|
3199
|
+
detail: item["detail"],
|
|
3127
3200
|
};
|
|
3128
3201
|
}
|
|
3129
|
-
export function
|
|
3202
|
+
export function inputContentInputFileContentSerializer(item) {
|
|
3130
3203
|
return {
|
|
3131
3204
|
type: item["type"],
|
|
3132
|
-
|
|
3205
|
+
file_id: item["file_id"],
|
|
3206
|
+
filename: item["filename"],
|
|
3207
|
+
file_url: item["file_url"],
|
|
3208
|
+
file_data: item["file_data"],
|
|
3133
3209
|
};
|
|
3134
3210
|
}
|
|
3135
|
-
export function
|
|
3211
|
+
export function itemReferenceParamSerializer(item) {
|
|
3212
|
+
return { type: item["type"], id: item["id"] };
|
|
3213
|
+
}
|
|
3214
|
+
export function inputItemOutputMessageSerializer(item) {
|
|
3136
3215
|
return {
|
|
3137
|
-
|
|
3138
|
-
|
|
3216
|
+
type: item["type"],
|
|
3217
|
+
id: item["id"],
|
|
3218
|
+
role: item["role"],
|
|
3219
|
+
content: outputMessageContentUnionArraySerializer(item["content"]),
|
|
3220
|
+
status: item["status"],
|
|
3139
3221
|
};
|
|
3140
3222
|
}
|
|
3141
|
-
export function
|
|
3142
|
-
return result.map((item) => {
|
|
3143
|
-
return redTeamSerializer(item);
|
|
3144
|
-
});
|
|
3145
|
-
}
|
|
3146
|
-
export function redTeamArrayDeserializer(result) {
|
|
3223
|
+
export function outputMessageContentUnionArraySerializer(result) {
|
|
3147
3224
|
return result.map((item) => {
|
|
3148
|
-
return
|
|
3225
|
+
return outputMessageContentUnionSerializer(item);
|
|
3149
3226
|
});
|
|
3150
3227
|
}
|
|
3151
|
-
export function
|
|
3152
|
-
return {
|
|
3153
|
-
displayName: item["displayName"],
|
|
3154
|
-
description: item["description"],
|
|
3155
|
-
action: evaluationRuleActionUnionSerializer(item["action"]),
|
|
3156
|
-
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterSerializer(item["filter"]),
|
|
3157
|
-
eventType: item["eventType"],
|
|
3158
|
-
enabled: item["enabled"],
|
|
3159
|
-
};
|
|
3160
|
-
}
|
|
3161
|
-
export function evaluationRuleDeserializer(item) {
|
|
3162
|
-
return {
|
|
3163
|
-
id: item["id"],
|
|
3164
|
-
displayName: item["displayName"],
|
|
3165
|
-
description: item["description"],
|
|
3166
|
-
action: evaluationRuleActionUnionDeserializer(item["action"]),
|
|
3167
|
-
filter: !item["filter"] ? item["filter"] : evaluationRuleFilterDeserializer(item["filter"]),
|
|
3168
|
-
eventType: item["eventType"],
|
|
3169
|
-
enabled: item["enabled"],
|
|
3170
|
-
systemData: item["systemData"],
|
|
3171
|
-
};
|
|
3172
|
-
}
|
|
3173
|
-
export function evaluationRuleActionSerializer(item) {
|
|
3228
|
+
export function outputMessageContentSerializer(item) {
|
|
3174
3229
|
return { type: item["type"] };
|
|
3175
3230
|
}
|
|
3176
|
-
export function
|
|
3231
|
+
export function outputMessageContentUnionSerializer(item) {
|
|
3232
|
+
switch (item.type) {
|
|
3233
|
+
case "output_text":
|
|
3234
|
+
return outputMessageContentOutputTextContentSerializer(item);
|
|
3235
|
+
case "refusal":
|
|
3236
|
+
return outputMessageContentRefusalContentSerializer(item);
|
|
3237
|
+
default:
|
|
3238
|
+
return outputMessageContentSerializer(item);
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
export function outputMessageContentOutputTextContentSerializer(item) {
|
|
3177
3242
|
return {
|
|
3178
3243
|
type: item["type"],
|
|
3244
|
+
text: item["text"],
|
|
3245
|
+
annotations: annotationUnionArraySerializer(item["annotations"]),
|
|
3246
|
+
logprobs: !item["logprobs"] ? item["logprobs"] : logProbArraySerializer(item["logprobs"]),
|
|
3179
3247
|
};
|
|
3180
3248
|
}
|
|
3181
|
-
export function
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
case "humanEvaluation":
|
|
3186
|
-
return humanEvaluationRuleActionSerializer(item);
|
|
3187
|
-
default:
|
|
3188
|
-
return evaluationRuleActionSerializer(item);
|
|
3189
|
-
}
|
|
3249
|
+
export function annotationUnionArraySerializer(result) {
|
|
3250
|
+
return result.map((item) => {
|
|
3251
|
+
return annotationUnionSerializer(item);
|
|
3252
|
+
});
|
|
3190
3253
|
}
|
|
3191
|
-
export function
|
|
3254
|
+
export function annotationSerializer(item) {
|
|
3255
|
+
return { type: item["type"] };
|
|
3256
|
+
}
|
|
3257
|
+
export function annotationUnionSerializer(item) {
|
|
3192
3258
|
switch (item.type) {
|
|
3193
|
-
case "
|
|
3194
|
-
return
|
|
3195
|
-
case "
|
|
3196
|
-
return
|
|
3259
|
+
case "file_citation":
|
|
3260
|
+
return fileCitationBodySerializer(item);
|
|
3261
|
+
case "url_citation":
|
|
3262
|
+
return urlCitationBodySerializer(item);
|
|
3263
|
+
case "container_file_citation":
|
|
3264
|
+
return containerFileCitationBodySerializer(item);
|
|
3265
|
+
case "file_path":
|
|
3266
|
+
return filePathSerializer(item);
|
|
3197
3267
|
default:
|
|
3198
|
-
return
|
|
3268
|
+
return annotationSerializer(item);
|
|
3199
3269
|
}
|
|
3200
3270
|
}
|
|
3201
|
-
export function
|
|
3271
|
+
export function fileCitationBodySerializer(item) {
|
|
3202
3272
|
return {
|
|
3203
3273
|
type: item["type"],
|
|
3204
|
-
|
|
3205
|
-
|
|
3274
|
+
file_id: item["file_id"],
|
|
3275
|
+
index: item["index"],
|
|
3276
|
+
filename: item["filename"],
|
|
3206
3277
|
};
|
|
3207
3278
|
}
|
|
3208
|
-
export function
|
|
3279
|
+
export function urlCitationBodySerializer(item) {
|
|
3209
3280
|
return {
|
|
3210
3281
|
type: item["type"],
|
|
3211
|
-
|
|
3212
|
-
|
|
3282
|
+
url: item["url"],
|
|
3283
|
+
start_index: item["start_index"],
|
|
3284
|
+
end_index: item["end_index"],
|
|
3285
|
+
title: item["title"],
|
|
3213
3286
|
};
|
|
3214
3287
|
}
|
|
3215
|
-
export function
|
|
3216
|
-
return { type: item["type"], templateId: item["templateId"] };
|
|
3217
|
-
}
|
|
3218
|
-
export function humanEvaluationRuleActionDeserializer(item) {
|
|
3288
|
+
export function containerFileCitationBodySerializer(item) {
|
|
3219
3289
|
return {
|
|
3220
3290
|
type: item["type"],
|
|
3221
|
-
|
|
3291
|
+
container_id: item["container_id"],
|
|
3292
|
+
file_id: item["file_id"],
|
|
3293
|
+
start_index: item["start_index"],
|
|
3294
|
+
end_index: item["end_index"],
|
|
3295
|
+
filename: item["filename"],
|
|
3222
3296
|
};
|
|
3223
3297
|
}
|
|
3224
|
-
export function
|
|
3225
|
-
return {
|
|
3298
|
+
export function filePathSerializer(item) {
|
|
3299
|
+
return { type: item["type"], file_id: item["file_id"], index: item["index"] };
|
|
3226
3300
|
}
|
|
3227
|
-
export function
|
|
3228
|
-
return {
|
|
3229
|
-
|
|
3230
|
-
};
|
|
3301
|
+
export function logProbArraySerializer(result) {
|
|
3302
|
+
return result.map((item) => {
|
|
3303
|
+
return logProbSerializer(item);
|
|
3304
|
+
});
|
|
3231
3305
|
}
|
|
3232
|
-
export function
|
|
3306
|
+
export function logProbSerializer(item) {
|
|
3233
3307
|
return {
|
|
3234
|
-
|
|
3235
|
-
|
|
3308
|
+
token: item["token"],
|
|
3309
|
+
logprob: item["logprob"],
|
|
3310
|
+
bytes: item["bytes"].map((p) => {
|
|
3311
|
+
return p;
|
|
3312
|
+
}),
|
|
3313
|
+
top_logprobs: topLogProbArraySerializer(item["top_logprobs"]),
|
|
3236
3314
|
};
|
|
3237
3315
|
}
|
|
3238
|
-
export function
|
|
3316
|
+
export function topLogProbArraySerializer(result) {
|
|
3239
3317
|
return result.map((item) => {
|
|
3240
|
-
return
|
|
3318
|
+
return topLogProbSerializer(item);
|
|
3241
3319
|
});
|
|
3242
3320
|
}
|
|
3243
|
-
export function
|
|
3321
|
+
export function topLogProbSerializer(item) {
|
|
3322
|
+
return {
|
|
3323
|
+
token: item["token"],
|
|
3324
|
+
logprob: item["logprob"],
|
|
3325
|
+
bytes: item["bytes"].map((p) => {
|
|
3326
|
+
return p;
|
|
3327
|
+
}),
|
|
3328
|
+
};
|
|
3329
|
+
}
|
|
3330
|
+
export function outputMessageContentRefusalContentSerializer(item) {
|
|
3331
|
+
return { type: item["type"], refusal: item["refusal"] };
|
|
3332
|
+
}
|
|
3333
|
+
export function inputItemFileSearchToolCallSerializer(item) {
|
|
3334
|
+
return {
|
|
3335
|
+
type: item["type"],
|
|
3336
|
+
id: item["id"],
|
|
3337
|
+
status: item["status"],
|
|
3338
|
+
queries: item["queries"].map((p) => {
|
|
3339
|
+
return p;
|
|
3340
|
+
}),
|
|
3341
|
+
results: !item["results"]
|
|
3342
|
+
? item["results"]
|
|
3343
|
+
: fileSearchToolCallResultsArraySerializer(item["results"]),
|
|
3344
|
+
};
|
|
3345
|
+
}
|
|
3346
|
+
export function fileSearchToolCallResultsArraySerializer(result) {
|
|
3244
3347
|
return result.map((item) => {
|
|
3245
|
-
return
|
|
3348
|
+
return fileSearchToolCallResultsSerializer(item);
|
|
3246
3349
|
});
|
|
3247
3350
|
}
|
|
3248
|
-
export function
|
|
3351
|
+
export function fileSearchToolCallResultsSerializer(item) {
|
|
3249
3352
|
return {
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
? item["
|
|
3255
|
-
:
|
|
3256
|
-
|
|
3353
|
+
file_id: item["file_id"],
|
|
3354
|
+
text: item["text"],
|
|
3355
|
+
filename: item["filename"],
|
|
3356
|
+
attributes: !item["attributes"]
|
|
3357
|
+
? item["attributes"]
|
|
3358
|
+
: vectorStoreFileAttributesSerializer(item["attributes"]),
|
|
3359
|
+
score: item["score"],
|
|
3257
3360
|
};
|
|
3258
3361
|
}
|
|
3259
|
-
export function
|
|
3362
|
+
export function vectorStoreFileAttributesSerializer(item) {
|
|
3260
3363
|
return {
|
|
3261
|
-
|
|
3262
|
-
name: item["name"],
|
|
3263
|
-
version: item["version"],
|
|
3264
|
-
description: item["description"],
|
|
3265
|
-
tags: item["tags"],
|
|
3266
|
-
taxonomyInput: evaluationTaxonomyInputUnionDeserializer(item["taxonomyInput"]),
|
|
3267
|
-
taxonomyCategories: !item["taxonomyCategories"]
|
|
3268
|
-
? item["taxonomyCategories"]
|
|
3269
|
-
: taxonomyCategoryArrayDeserializer(item["taxonomyCategories"]),
|
|
3270
|
-
properties: item["properties"],
|
|
3364
|
+
...serializeRecord(item.additionalProperties ?? {}, undefined, _vectorStoreFileAttributesAdditionalPropertySerializer),
|
|
3271
3365
|
};
|
|
3272
3366
|
}
|
|
3273
|
-
export function
|
|
3274
|
-
return
|
|
3367
|
+
export function _vectorStoreFileAttributesAdditionalPropertySerializer(item) {
|
|
3368
|
+
return item;
|
|
3275
3369
|
}
|
|
3276
|
-
export function
|
|
3370
|
+
export function inputItemComputerToolCallSerializer(item) {
|
|
3277
3371
|
return {
|
|
3278
3372
|
type: item["type"],
|
|
3373
|
+
id: item["id"],
|
|
3374
|
+
call_id: item["call_id"],
|
|
3375
|
+
action: computerActionUnionSerializer(item["action"]),
|
|
3376
|
+
pending_safety_checks: computerCallSafetyCheckParamArraySerializer(item["pending_safety_checks"]),
|
|
3377
|
+
status: item["status"],
|
|
3279
3378
|
};
|
|
3280
3379
|
}
|
|
3281
|
-
export function
|
|
3282
|
-
|
|
3283
|
-
case "agent":
|
|
3284
|
-
return agentTaxonomyInputSerializer(item);
|
|
3285
|
-
default:
|
|
3286
|
-
return evaluationTaxonomyInputSerializer(item);
|
|
3287
|
-
}
|
|
3380
|
+
export function computerActionSerializer(item) {
|
|
3381
|
+
return { type: item["type"] };
|
|
3288
3382
|
}
|
|
3289
|
-
export function
|
|
3383
|
+
export function computerActionUnionSerializer(item) {
|
|
3290
3384
|
switch (item.type) {
|
|
3291
|
-
case "
|
|
3292
|
-
return
|
|
3385
|
+
case "click":
|
|
3386
|
+
return clickParamSerializer(item);
|
|
3387
|
+
case "double_click":
|
|
3388
|
+
return doubleClickActionSerializer(item);
|
|
3389
|
+
case "drag":
|
|
3390
|
+
return dragSerializer(item);
|
|
3391
|
+
case "keypress":
|
|
3392
|
+
return keyPressActionSerializer(item);
|
|
3393
|
+
case "move":
|
|
3394
|
+
return moveSerializer(item);
|
|
3395
|
+
case "screenshot":
|
|
3396
|
+
return screenshotSerializer(item);
|
|
3397
|
+
case "scroll":
|
|
3398
|
+
return scrollSerializer(item);
|
|
3399
|
+
case "type":
|
|
3400
|
+
return typeSerializer(item);
|
|
3401
|
+
case "wait":
|
|
3402
|
+
return waitSerializer(item);
|
|
3293
3403
|
default:
|
|
3294
|
-
return
|
|
3404
|
+
return computerActionSerializer(item);
|
|
3295
3405
|
}
|
|
3296
3406
|
}
|
|
3297
|
-
export function
|
|
3298
|
-
return {
|
|
3299
|
-
type: item["type"],
|
|
3300
|
-
target: azureAIAgentTargetSerializer(item["target"]),
|
|
3301
|
-
riskCategories: item["riskCategories"].map((p) => {
|
|
3302
|
-
return p;
|
|
3303
|
-
}),
|
|
3304
|
-
};
|
|
3305
|
-
}
|
|
3306
|
-
export function agentTaxonomyInputDeserializer(item) {
|
|
3307
|
-
return {
|
|
3308
|
-
type: item["type"],
|
|
3309
|
-
target: azureAIAgentTargetDeserializer(item["target"]),
|
|
3310
|
-
riskCategories: item["riskCategories"].map((p) => {
|
|
3311
|
-
return p;
|
|
3312
|
-
}),
|
|
3313
|
-
};
|
|
3314
|
-
}
|
|
3315
|
-
export function azureAIAgentTargetSerializer(item) {
|
|
3316
|
-
return {
|
|
3317
|
-
type: item["type"],
|
|
3318
|
-
name: item["name"],
|
|
3319
|
-
version: item["version"],
|
|
3320
|
-
tool_descriptions: !item["tool_descriptions"]
|
|
3321
|
-
? item["tool_descriptions"]
|
|
3322
|
-
: toolDescriptionArraySerializer(item["tool_descriptions"]),
|
|
3323
|
-
};
|
|
3407
|
+
export function clickParamSerializer(item) {
|
|
3408
|
+
return { type: item["type"], button: item["button"], x: item["x"], y: item["y"] };
|
|
3324
3409
|
}
|
|
3325
|
-
export function
|
|
3326
|
-
return {
|
|
3327
|
-
type: item["type"],
|
|
3328
|
-
name: item["name"],
|
|
3329
|
-
version: item["version"],
|
|
3330
|
-
tool_descriptions: !item["tool_descriptions"]
|
|
3331
|
-
? item["tool_descriptions"]
|
|
3332
|
-
: toolDescriptionArrayDeserializer(item["tool_descriptions"]),
|
|
3333
|
-
};
|
|
3410
|
+
export function doubleClickActionSerializer(item) {
|
|
3411
|
+
return { type: item["type"], x: item["x"], y: item["y"] };
|
|
3334
3412
|
}
|
|
3335
|
-
export function
|
|
3336
|
-
return
|
|
3337
|
-
return toolDescriptionSerializer(item);
|
|
3338
|
-
});
|
|
3413
|
+
export function dragSerializer(item) {
|
|
3414
|
+
return { type: item["type"], path: dragPointArraySerializer(item["path"]) };
|
|
3339
3415
|
}
|
|
3340
|
-
export function
|
|
3416
|
+
export function dragPointArraySerializer(result) {
|
|
3341
3417
|
return result.map((item) => {
|
|
3342
|
-
return
|
|
3418
|
+
return dragPointSerializer(item);
|
|
3343
3419
|
});
|
|
3344
3420
|
}
|
|
3345
|
-
export function
|
|
3346
|
-
return {
|
|
3421
|
+
export function dragPointSerializer(item) {
|
|
3422
|
+
return { x: item["x"], y: item["y"] };
|
|
3347
3423
|
}
|
|
3348
|
-
export function
|
|
3424
|
+
export function keyPressActionSerializer(item) {
|
|
3349
3425
|
return {
|
|
3350
|
-
|
|
3351
|
-
|
|
3426
|
+
type: item["type"],
|
|
3427
|
+
keys: item["keys"].map((p) => {
|
|
3428
|
+
return p;
|
|
3429
|
+
}),
|
|
3352
3430
|
};
|
|
3353
3431
|
}
|
|
3354
|
-
export function
|
|
3355
|
-
return
|
|
3356
|
-
return taxonomyCategorySerializer(item);
|
|
3357
|
-
});
|
|
3432
|
+
export function moveSerializer(item) {
|
|
3433
|
+
return { type: item["type"], x: item["x"], y: item["y"] };
|
|
3358
3434
|
}
|
|
3359
|
-
export function
|
|
3360
|
-
return
|
|
3361
|
-
return taxonomyCategoryDeserializer(item);
|
|
3362
|
-
});
|
|
3435
|
+
export function screenshotSerializer(item) {
|
|
3436
|
+
return { type: item["type"] };
|
|
3363
3437
|
}
|
|
3364
|
-
export function
|
|
3438
|
+
export function scrollSerializer(item) {
|
|
3365
3439
|
return {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
properties: item["properties"],
|
|
3440
|
+
type: item["type"],
|
|
3441
|
+
x: item["x"],
|
|
3442
|
+
y: item["y"],
|
|
3443
|
+
scroll_x: item["scroll_x"],
|
|
3444
|
+
scroll_y: item["scroll_y"],
|
|
3372
3445
|
};
|
|
3373
3446
|
}
|
|
3374
|
-
export function
|
|
3375
|
-
return {
|
|
3376
|
-
id: item["id"],
|
|
3377
|
-
name: item["name"],
|
|
3378
|
-
description: item["description"],
|
|
3379
|
-
riskCategory: item["riskCategory"],
|
|
3380
|
-
subCategories: taxonomySubCategoryArrayDeserializer(item["subCategories"]),
|
|
3381
|
-
properties: item["properties"],
|
|
3382
|
-
};
|
|
3447
|
+
export function typeSerializer(item) {
|
|
3448
|
+
return { type: item["type"], text: item["text"] };
|
|
3383
3449
|
}
|
|
3384
|
-
export function
|
|
3385
|
-
return
|
|
3386
|
-
return taxonomySubCategorySerializer(item);
|
|
3387
|
-
});
|
|
3450
|
+
export function waitSerializer(item) {
|
|
3451
|
+
return { type: item["type"] };
|
|
3388
3452
|
}
|
|
3389
|
-
export function
|
|
3453
|
+
export function computerCallSafetyCheckParamArraySerializer(result) {
|
|
3390
3454
|
return result.map((item) => {
|
|
3391
|
-
return
|
|
3455
|
+
return computerCallSafetyCheckParamSerializer(item);
|
|
3392
3456
|
});
|
|
3393
3457
|
}
|
|
3394
|
-
export function
|
|
3395
|
-
return {
|
|
3396
|
-
id: item["id"],
|
|
3397
|
-
name: item["name"],
|
|
3398
|
-
description: item["description"],
|
|
3399
|
-
enabled: item["enabled"],
|
|
3400
|
-
properties: item["properties"],
|
|
3401
|
-
};
|
|
3458
|
+
export function computerCallSafetyCheckParamSerializer(item) {
|
|
3459
|
+
return { id: item["id"], code: item["code"], message: item["message"] };
|
|
3402
3460
|
}
|
|
3403
|
-
export function
|
|
3461
|
+
export function inputItemComputerCallOutputItemParamSerializer(item) {
|
|
3404
3462
|
return {
|
|
3463
|
+
type: item["type"],
|
|
3405
3464
|
id: item["id"],
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3465
|
+
call_id: item["call_id"],
|
|
3466
|
+
output: computerScreenshotImageSerializer(item["output"]),
|
|
3467
|
+
acknowledged_safety_checks: !item["acknowledged_safety_checks"]
|
|
3468
|
+
? item["acknowledged_safety_checks"]
|
|
3469
|
+
: computerCallSafetyCheckParamArraySerializer(item["acknowledged_safety_checks"]),
|
|
3470
|
+
status: item["status"],
|
|
3410
3471
|
};
|
|
3411
3472
|
}
|
|
3412
|
-
export function
|
|
3413
|
-
return { type: item["type"] };
|
|
3473
|
+
export function computerScreenshotImageSerializer(item) {
|
|
3474
|
+
return { type: item["type"], image_url: item["image_url"], file_id: item["file_id"] };
|
|
3414
3475
|
}
|
|
3415
|
-
export function
|
|
3476
|
+
export function inputItemWebSearchToolCallSerializer(item) {
|
|
3416
3477
|
return {
|
|
3417
3478
|
type: item["type"],
|
|
3479
|
+
id: item["id"],
|
|
3480
|
+
status: item["status"],
|
|
3481
|
+
action: _outputItemWebSearchToolCallActionSerializer(item["action"]),
|
|
3418
3482
|
};
|
|
3419
3483
|
}
|
|
3420
|
-
export function
|
|
3421
|
-
|
|
3422
|
-
case "azure_ai_agent":
|
|
3423
|
-
return azureAIAgentTargetSerializer(item);
|
|
3424
|
-
default:
|
|
3425
|
-
return targetSerializer(item);
|
|
3426
|
-
}
|
|
3427
|
-
}
|
|
3428
|
-
export function targetUnionDeserializer(item) {
|
|
3429
|
-
switch (item.type) {
|
|
3430
|
-
case "azure_ai_agent":
|
|
3431
|
-
return azureAIAgentTargetDeserializer(item);
|
|
3432
|
-
default:
|
|
3433
|
-
return targetDeserializer(item);
|
|
3434
|
-
}
|
|
3484
|
+
export function _outputItemWebSearchToolCallActionSerializer(item) {
|
|
3485
|
+
return item;
|
|
3435
3486
|
}
|
|
3436
|
-
export function
|
|
3487
|
+
export function webSearchActionSearchSerializer(item) {
|
|
3437
3488
|
return {
|
|
3438
|
-
|
|
3439
|
-
|
|
3489
|
+
type: item["type"],
|
|
3490
|
+
query: item["query"],
|
|
3491
|
+
queries: !item["queries"]
|
|
3492
|
+
? item["queries"]
|
|
3493
|
+
: item["queries"].map((p) => {
|
|
3494
|
+
return p;
|
|
3495
|
+
}),
|
|
3496
|
+
sources: !item["sources"]
|
|
3497
|
+
? item["sources"]
|
|
3498
|
+
: webSearchActionSearchSourcesArraySerializer(item["sources"]),
|
|
3440
3499
|
};
|
|
3441
3500
|
}
|
|
3442
|
-
export function
|
|
3501
|
+
export function webSearchActionSearchSourcesArraySerializer(result) {
|
|
3443
3502
|
return result.map((item) => {
|
|
3444
|
-
return
|
|
3503
|
+
return webSearchActionSearchSourcesSerializer(item);
|
|
3445
3504
|
});
|
|
3446
3505
|
}
|
|
3447
|
-
export function
|
|
3448
|
-
return
|
|
3449
|
-
return evaluationTaxonomyDeserializer(item);
|
|
3450
|
-
});
|
|
3506
|
+
export function webSearchActionSearchSourcesSerializer(item) {
|
|
3507
|
+
return { type: item["type"], url: item["url"] };
|
|
3451
3508
|
}
|
|
3452
|
-
export function
|
|
3509
|
+
export function webSearchActionOpenPageSerializer(item) {
|
|
3510
|
+
return { type: item["type"], url: item["url"] };
|
|
3511
|
+
}
|
|
3512
|
+
export function webSearchActionFindSerializer(item) {
|
|
3513
|
+
return { type: item["type"], url: item["url"], pattern: item["pattern"] };
|
|
3514
|
+
}
|
|
3515
|
+
export function inputItemFunctionToolCallSerializer(item) {
|
|
3453
3516
|
return {
|
|
3454
|
-
|
|
3455
|
-
|
|
3517
|
+
type: item["type"],
|
|
3518
|
+
id: item["id"],
|
|
3519
|
+
call_id: item["call_id"],
|
|
3520
|
+
name: item["name"],
|
|
3521
|
+
arguments: item["arguments"],
|
|
3522
|
+
status: item["status"],
|
|
3456
3523
|
};
|
|
3457
3524
|
}
|
|
3458
|
-
export function
|
|
3459
|
-
return
|
|
3460
|
-
|
|
3461
|
-
|
|
3525
|
+
export function inputItemFunctionCallOutputItemParamSerializer(item) {
|
|
3526
|
+
return {
|
|
3527
|
+
type: item["type"],
|
|
3528
|
+
id: item["id"],
|
|
3529
|
+
call_id: item["call_id"],
|
|
3530
|
+
output: _itemFunctionCallOutputItemParamOutputSerializer(item["output"]),
|
|
3531
|
+
status: item["status"],
|
|
3532
|
+
};
|
|
3462
3533
|
}
|
|
3463
|
-
export function
|
|
3534
|
+
export function _itemFunctionCallOutputItemParamOutputSerializer(item) {
|
|
3535
|
+
return item;
|
|
3536
|
+
}
|
|
3537
|
+
export function _itemFunctionCallOutputItemParamOutput1ArraySerializer(result) {
|
|
3464
3538
|
return result.map((item) => {
|
|
3465
|
-
return
|
|
3539
|
+
return _itemFunctionCallOutputItemParamOutput1Serializer(item);
|
|
3466
3540
|
});
|
|
3467
3541
|
}
|
|
3468
|
-
export function
|
|
3469
|
-
return
|
|
3470
|
-
display_name: item["display_name"],
|
|
3471
|
-
metadata: item["metadata"],
|
|
3472
|
-
evaluator_type: item["evaluator_type"],
|
|
3473
|
-
categories: item["categories"].map((p) => {
|
|
3474
|
-
return p;
|
|
3475
|
-
}),
|
|
3476
|
-
definition: evaluatorDefinitionUnionSerializer(item["definition"]),
|
|
3477
|
-
description: item["description"],
|
|
3478
|
-
tags: item["tags"],
|
|
3479
|
-
};
|
|
3542
|
+
export function _itemFunctionCallOutputItemParamOutput1Serializer(item) {
|
|
3543
|
+
return item;
|
|
3480
3544
|
}
|
|
3481
|
-
export function
|
|
3545
|
+
export function inputTextContentParamSerializer(item) {
|
|
3546
|
+
return { type: item["type"], text: item["text"] };
|
|
3547
|
+
}
|
|
3548
|
+
export function inputImageContentParamAutoParamSerializer(item) {
|
|
3482
3549
|
return {
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
return p;
|
|
3488
|
-
}),
|
|
3489
|
-
definition: evaluatorDefinitionUnionDeserializer(item["definition"]),
|
|
3490
|
-
created_by: item["created_by"],
|
|
3491
|
-
created_at: item["created_at"],
|
|
3492
|
-
modified_at: item["modified_at"],
|
|
3493
|
-
id: item["id"],
|
|
3494
|
-
name: item["name"],
|
|
3495
|
-
version: item["version"],
|
|
3496
|
-
description: item["description"],
|
|
3497
|
-
tags: item["tags"],
|
|
3550
|
+
type: item["type"],
|
|
3551
|
+
image_url: item["image_url"],
|
|
3552
|
+
file_id: item["file_id"],
|
|
3553
|
+
detail: item["detail"],
|
|
3498
3554
|
};
|
|
3499
3555
|
}
|
|
3500
|
-
export function
|
|
3556
|
+
export function inputFileContentParamSerializer(item) {
|
|
3501
3557
|
return {
|
|
3502
3558
|
type: item["type"],
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3559
|
+
file_id: item["file_id"],
|
|
3560
|
+
filename: item["filename"],
|
|
3561
|
+
file_data: item["file_data"],
|
|
3562
|
+
file_url: item["file_url"],
|
|
3506
3563
|
};
|
|
3507
3564
|
}
|
|
3508
|
-
export function
|
|
3565
|
+
export function inputItemReasoningItemSerializer(item) {
|
|
3509
3566
|
return {
|
|
3510
3567
|
type: item["type"],
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3568
|
+
id: item["id"],
|
|
3569
|
+
encrypted_content: item["encrypted_content"],
|
|
3570
|
+
summary: summaryArraySerializer(item["summary"]),
|
|
3571
|
+
content: !item["content"]
|
|
3572
|
+
? item["content"]
|
|
3573
|
+
: reasoningTextContentArraySerializer(item["content"]),
|
|
3574
|
+
status: item["status"],
|
|
3516
3575
|
};
|
|
3517
3576
|
}
|
|
3518
|
-
export function
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
case "prompt":
|
|
3523
|
-
return promptBasedEvaluatorDefinitionSerializer(item);
|
|
3524
|
-
default:
|
|
3525
|
-
return evaluatorDefinitionSerializer(item);
|
|
3526
|
-
}
|
|
3577
|
+
export function summaryArraySerializer(result) {
|
|
3578
|
+
return result.map((item) => {
|
|
3579
|
+
return summarySerializer(item);
|
|
3580
|
+
});
|
|
3527
3581
|
}
|
|
3528
|
-
export function
|
|
3529
|
-
|
|
3530
|
-
case "code":
|
|
3531
|
-
return codeBasedEvaluatorDefinitionDeserializer(item);
|
|
3532
|
-
case "prompt":
|
|
3533
|
-
return promptBasedEvaluatorDefinitionDeserializer(item);
|
|
3534
|
-
default:
|
|
3535
|
-
return evaluatorDefinitionDeserializer(item);
|
|
3536
|
-
}
|
|
3582
|
+
export function summarySerializer(item) {
|
|
3583
|
+
return { type: item["type"], text: item["text"] };
|
|
3537
3584
|
}
|
|
3538
|
-
export function
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
result[key] = !item[key] ? item[key] : evaluatorMetricSerializer(item[key]);
|
|
3585
|
+
export function reasoningTextContentArraySerializer(result) {
|
|
3586
|
+
return result.map((item) => {
|
|
3587
|
+
return reasoningTextContentSerializer(item);
|
|
3542
3588
|
});
|
|
3543
|
-
return result;
|
|
3544
3589
|
}
|
|
3545
|
-
export function
|
|
3546
|
-
|
|
3547
|
-
Object.keys(item).map((key) => {
|
|
3548
|
-
result[key] = !item[key] ? item[key] : evaluatorMetricDeserializer(item[key]);
|
|
3549
|
-
});
|
|
3550
|
-
return result;
|
|
3590
|
+
export function reasoningTextContentSerializer(item) {
|
|
3591
|
+
return { type: item["type"], text: item["text"] };
|
|
3551
3592
|
}
|
|
3552
|
-
export function
|
|
3553
|
-
return {
|
|
3554
|
-
type: item["type"],
|
|
3555
|
-
desirable_direction: item["desirable_direction"],
|
|
3556
|
-
min_value: item["min_value"],
|
|
3557
|
-
max_value: item["max_value"],
|
|
3558
|
-
is_primary: item["is_primary"],
|
|
3559
|
-
};
|
|
3593
|
+
export function inputItemCompactionSummaryItemParamSerializer(item) {
|
|
3594
|
+
return { type: item["type"], id: item["id"], encrypted_content: item["encrypted_content"] };
|
|
3560
3595
|
}
|
|
3561
|
-
export function
|
|
3562
|
-
return {
|
|
3563
|
-
type: item["type"],
|
|
3564
|
-
desirable_direction: item["desirable_direction"],
|
|
3565
|
-
min_value: item["min_value"],
|
|
3566
|
-
max_value: item["max_value"],
|
|
3567
|
-
is_primary: item["is_primary"],
|
|
3568
|
-
};
|
|
3596
|
+
export function inputItemImageGenToolCallSerializer(item) {
|
|
3597
|
+
return { type: item["type"], id: item["id"], status: item["status"], result: item["result"] };
|
|
3569
3598
|
}
|
|
3570
|
-
export function
|
|
3599
|
+
export function inputItemCodeInterpreterToolCallSerializer(item) {
|
|
3571
3600
|
return {
|
|
3572
3601
|
type: item["type"],
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3602
|
+
id: item["id"],
|
|
3603
|
+
status: item["status"],
|
|
3604
|
+
container_id: item["container_id"],
|
|
3605
|
+
code: item["code"],
|
|
3606
|
+
outputs: !item["outputs"]
|
|
3607
|
+
? item["outputs"]
|
|
3608
|
+
: _outputItemCodeInterpreterToolCallOutputArraySerializer(item["outputs"]),
|
|
3577
3609
|
};
|
|
3578
3610
|
}
|
|
3579
|
-
export function
|
|
3611
|
+
export function _outputItemCodeInterpreterToolCallOutputArraySerializer(result) {
|
|
3612
|
+
return result.map((item) => {
|
|
3613
|
+
return _outputItemCodeInterpreterToolCallOutputSerializer(item);
|
|
3614
|
+
});
|
|
3615
|
+
}
|
|
3616
|
+
export function _outputItemCodeInterpreterToolCallOutputSerializer(item) {
|
|
3617
|
+
return item;
|
|
3618
|
+
}
|
|
3619
|
+
export function codeInterpreterOutputLogsSerializer(item) {
|
|
3620
|
+
return { type: item["type"], logs: item["logs"] };
|
|
3621
|
+
}
|
|
3622
|
+
export function codeInterpreterOutputImageSerializer(item) {
|
|
3623
|
+
return { type: item["type"], url: item["url"] };
|
|
3624
|
+
}
|
|
3625
|
+
export function inputItemLocalShellToolCallSerializer(item) {
|
|
3580
3626
|
return {
|
|
3581
3627
|
type: item["type"],
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
3587
|
-
code_text: item["code_text"],
|
|
3628
|
+
id: item["id"],
|
|
3629
|
+
call_id: item["call_id"],
|
|
3630
|
+
action: localShellExecActionSerializer(item["action"]),
|
|
3631
|
+
status: item["status"],
|
|
3588
3632
|
};
|
|
3589
3633
|
}
|
|
3590
|
-
export function
|
|
3634
|
+
export function localShellExecActionSerializer(item) {
|
|
3591
3635
|
return {
|
|
3592
3636
|
type: item["type"],
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3637
|
+
command: item["command"].map((p) => {
|
|
3638
|
+
return p;
|
|
3639
|
+
}),
|
|
3640
|
+
timeout_ms: item["timeout_ms"],
|
|
3641
|
+
working_directory: item["working_directory"],
|
|
3642
|
+
env: item["env"],
|
|
3643
|
+
user: item["user"],
|
|
3597
3644
|
};
|
|
3598
3645
|
}
|
|
3599
|
-
export function
|
|
3646
|
+
export function inputItemLocalShellToolCallOutputSerializer(item) {
|
|
3647
|
+
return { type: item["type"], id: item["id"], output: item["output"], status: item["status"] };
|
|
3648
|
+
}
|
|
3649
|
+
export function inputItemFunctionShellCallItemParamSerializer(item) {
|
|
3600
3650
|
return {
|
|
3601
3651
|
type: item["type"],
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
3607
|
-
prompt_text: item["prompt_text"],
|
|
3652
|
+
id: item["id"],
|
|
3653
|
+
call_id: item["call_id"],
|
|
3654
|
+
action: functionShellActionParamSerializer(item["action"]),
|
|
3655
|
+
status: item["status"],
|
|
3608
3656
|
};
|
|
3609
3657
|
}
|
|
3610
|
-
export function
|
|
3658
|
+
export function functionShellActionParamSerializer(item) {
|
|
3611
3659
|
return {
|
|
3612
|
-
|
|
3613
|
-
|
|
3660
|
+
commands: item["commands"].map((p) => {
|
|
3661
|
+
return p;
|
|
3662
|
+
}),
|
|
3663
|
+
timeout_ms: item["timeout_ms"],
|
|
3664
|
+
max_output_length: item["max_output_length"],
|
|
3614
3665
|
};
|
|
3615
3666
|
}
|
|
3616
|
-
export function
|
|
3667
|
+
export function inputItemFunctionShellCallOutputItemParamSerializer(item) {
|
|
3617
3668
|
return {
|
|
3669
|
+
type: item["type"],
|
|
3618
3670
|
id: item["id"],
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
request: insightRequestUnionDeserializer(item["request"]),
|
|
3623
|
-
result: !item["result"] ? item["result"] : insightResultUnionDeserializer(item["result"]),
|
|
3671
|
+
call_id: item["call_id"],
|
|
3672
|
+
output: functionShellCallOutputContentParamArraySerializer(item["output"]),
|
|
3673
|
+
max_output_length: item["max_output_length"],
|
|
3624
3674
|
};
|
|
3625
3675
|
}
|
|
3626
|
-
export function
|
|
3676
|
+
export function functionShellCallOutputContentParamArraySerializer(result) {
|
|
3677
|
+
return result.map((item) => {
|
|
3678
|
+
return functionShellCallOutputContentParamSerializer(item);
|
|
3679
|
+
});
|
|
3680
|
+
}
|
|
3681
|
+
export function functionShellCallOutputContentParamSerializer(item) {
|
|
3627
3682
|
return {
|
|
3628
|
-
|
|
3629
|
-
|
|
3683
|
+
stdout: item["stdout"],
|
|
3684
|
+
stderr: item["stderr"],
|
|
3685
|
+
outcome: functionShellCallOutputOutcomeParamUnionSerializer(item["outcome"]),
|
|
3630
3686
|
};
|
|
3631
3687
|
}
|
|
3632
|
-
export function
|
|
3688
|
+
export function functionShellCallOutputOutcomeParamSerializer(item) {
|
|
3633
3689
|
return { type: item["type"] };
|
|
3634
3690
|
}
|
|
3635
|
-
export function
|
|
3691
|
+
export function functionShellCallOutputOutcomeParamUnionSerializer(item) {
|
|
3692
|
+
switch (item.type) {
|
|
3693
|
+
case "timeout":
|
|
3694
|
+
return functionShellCallOutputTimeoutOutcomeParamSerializer(item);
|
|
3695
|
+
case "exit":
|
|
3696
|
+
return functionShellCallOutputExitOutcomeParamSerializer(item);
|
|
3697
|
+
default:
|
|
3698
|
+
return functionShellCallOutputOutcomeParamSerializer(item);
|
|
3699
|
+
}
|
|
3700
|
+
}
|
|
3701
|
+
export function functionShellCallOutputTimeoutOutcomeParamSerializer(item) {
|
|
3702
|
+
return { type: item["type"] };
|
|
3703
|
+
}
|
|
3704
|
+
export function functionShellCallOutputExitOutcomeParamSerializer(item) {
|
|
3705
|
+
return { type: item["type"], exit_code: item["exit_code"] };
|
|
3706
|
+
}
|
|
3707
|
+
export function inputItemApplyPatchToolCallItemParamSerializer(item) {
|
|
3636
3708
|
return {
|
|
3637
3709
|
type: item["type"],
|
|
3710
|
+
id: item["id"],
|
|
3711
|
+
call_id: item["call_id"],
|
|
3712
|
+
status: item["status"],
|
|
3713
|
+
operation: applyPatchOperationParamUnionSerializer(item["operation"]),
|
|
3638
3714
|
};
|
|
3639
3715
|
}
|
|
3640
|
-
export function
|
|
3641
|
-
|
|
3642
|
-
case "EvaluationRunClusterInsight":
|
|
3643
|
-
return evaluationRunClusterInsightsRequestSerializer(item);
|
|
3644
|
-
case "AgentClusterInsight":
|
|
3645
|
-
return agentClusterInsightsRequestSerializer(item);
|
|
3646
|
-
case "EvaluationComparison":
|
|
3647
|
-
return evaluationComparisonRequestSerializer(item);
|
|
3648
|
-
default:
|
|
3649
|
-
return insightRequestSerializer(item);
|
|
3650
|
-
}
|
|
3716
|
+
export function applyPatchOperationParamSerializer(item) {
|
|
3717
|
+
return { type: item["type"] };
|
|
3651
3718
|
}
|
|
3652
|
-
export function
|
|
3719
|
+
export function applyPatchOperationParamUnionSerializer(item) {
|
|
3653
3720
|
switch (item.type) {
|
|
3654
|
-
case "
|
|
3655
|
-
return
|
|
3656
|
-
case "
|
|
3657
|
-
return
|
|
3658
|
-
case "
|
|
3659
|
-
return
|
|
3721
|
+
case "create_file":
|
|
3722
|
+
return applyPatchCreateFileOperationParamSerializer(item);
|
|
3723
|
+
case "delete_file":
|
|
3724
|
+
return applyPatchDeleteFileOperationParamSerializer(item);
|
|
3725
|
+
case "update_file":
|
|
3726
|
+
return applyPatchUpdateFileOperationParamSerializer(item);
|
|
3660
3727
|
default:
|
|
3661
|
-
return
|
|
3728
|
+
return applyPatchOperationParamSerializer(item);
|
|
3662
3729
|
}
|
|
3663
3730
|
}
|
|
3664
|
-
export function
|
|
3731
|
+
export function applyPatchCreateFileOperationParamSerializer(item) {
|
|
3732
|
+
return { type: item["type"], path: item["path"], diff: item["diff"] };
|
|
3733
|
+
}
|
|
3734
|
+
export function applyPatchDeleteFileOperationParamSerializer(item) {
|
|
3735
|
+
return { type: item["type"], path: item["path"] };
|
|
3736
|
+
}
|
|
3737
|
+
export function applyPatchUpdateFileOperationParamSerializer(item) {
|
|
3738
|
+
return { type: item["type"], path: item["path"], diff: item["diff"] };
|
|
3739
|
+
}
|
|
3740
|
+
export function inputItemApplyPatchToolCallOutputItemParamSerializer(item) {
|
|
3665
3741
|
return {
|
|
3666
3742
|
type: item["type"],
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
modelConfiguration: !item["modelConfiguration"]
|
|
3672
|
-
? item["modelConfiguration"]
|
|
3673
|
-
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
3743
|
+
id: item["id"],
|
|
3744
|
+
call_id: item["call_id"],
|
|
3745
|
+
status: item["status"],
|
|
3746
|
+
output: item["output"],
|
|
3674
3747
|
};
|
|
3675
3748
|
}
|
|
3676
|
-
export function
|
|
3749
|
+
export function inputItemMcpListToolsSerializer(item) {
|
|
3677
3750
|
return {
|
|
3678
3751
|
type: item["type"],
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
modelConfiguration: !item["modelConfiguration"]
|
|
3684
|
-
? item["modelConfiguration"]
|
|
3685
|
-
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
3752
|
+
id: item["id"],
|
|
3753
|
+
server_label: item["server_label"],
|
|
3754
|
+
tools: mcpListToolsToolArraySerializer(item["tools"]),
|
|
3755
|
+
error: item["error"],
|
|
3686
3756
|
};
|
|
3687
3757
|
}
|
|
3688
|
-
export function
|
|
3689
|
-
return
|
|
3758
|
+
export function mcpListToolsToolArraySerializer(result) {
|
|
3759
|
+
return result.map((item) => {
|
|
3760
|
+
return mcpListToolsToolSerializer(item);
|
|
3761
|
+
});
|
|
3690
3762
|
}
|
|
3691
|
-
export function
|
|
3763
|
+
export function mcpListToolsToolSerializer(item) {
|
|
3692
3764
|
return {
|
|
3693
|
-
|
|
3765
|
+
name: item["name"],
|
|
3766
|
+
description: item["description"],
|
|
3767
|
+
input_schema: mcpListToolsToolInputSchemaSerializer(item["input_schema"]),
|
|
3768
|
+
annotations: !item["annotations"]
|
|
3769
|
+
? item["annotations"]
|
|
3770
|
+
: mcpListToolsToolAnnotationsSerializer(item["annotations"]),
|
|
3694
3771
|
};
|
|
3695
3772
|
}
|
|
3696
|
-
export function
|
|
3697
|
-
return
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
? item["modelConfiguration"]
|
|
3702
|
-
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
3703
|
-
};
|
|
3773
|
+
export function mcpListToolsToolInputSchemaSerializer(item) {
|
|
3774
|
+
return item;
|
|
3775
|
+
}
|
|
3776
|
+
export function mcpListToolsToolAnnotationsSerializer(item) {
|
|
3777
|
+
return item;
|
|
3704
3778
|
}
|
|
3705
|
-
export function
|
|
3779
|
+
export function inputItemMcpApprovalRequestSerializer(item) {
|
|
3706
3780
|
return {
|
|
3707
3781
|
type: item["type"],
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3782
|
+
id: item["id"],
|
|
3783
|
+
server_label: item["server_label"],
|
|
3784
|
+
name: item["name"],
|
|
3785
|
+
arguments: item["arguments"],
|
|
3712
3786
|
};
|
|
3713
3787
|
}
|
|
3714
|
-
export function
|
|
3788
|
+
export function inputItemMcpApprovalResponseSerializer(item) {
|
|
3715
3789
|
return {
|
|
3716
3790
|
type: item["type"],
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
}),
|
|
3791
|
+
id: item["id"],
|
|
3792
|
+
approval_request_id: item["approval_request_id"],
|
|
3793
|
+
approve: item["approve"],
|
|
3794
|
+
reason: item["reason"],
|
|
3722
3795
|
};
|
|
3723
3796
|
}
|
|
3724
|
-
export function
|
|
3797
|
+
export function inputItemMcpToolCallSerializer(item) {
|
|
3725
3798
|
return {
|
|
3726
3799
|
type: item["type"],
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3800
|
+
id: item["id"],
|
|
3801
|
+
server_label: item["server_label"],
|
|
3802
|
+
name: item["name"],
|
|
3803
|
+
arguments: item["arguments"],
|
|
3804
|
+
output: item["output"],
|
|
3805
|
+
error: item["error"],
|
|
3806
|
+
status: item["status"],
|
|
3807
|
+
approval_request_id: item["approval_request_id"],
|
|
3732
3808
|
};
|
|
3733
3809
|
}
|
|
3734
|
-
export function
|
|
3810
|
+
export function inputItemCustomToolCallOutputSerializer(item) {
|
|
3735
3811
|
return {
|
|
3736
3812
|
type: item["type"],
|
|
3813
|
+
id: item["id"],
|
|
3814
|
+
call_id: item["call_id"],
|
|
3815
|
+
output: _itemCustomToolCallOutputOutputSerializer(item["output"]),
|
|
3737
3816
|
};
|
|
3738
3817
|
}
|
|
3739
|
-
export function
|
|
3818
|
+
export function _itemCustomToolCallOutputOutputSerializer(item) {
|
|
3819
|
+
return item;
|
|
3820
|
+
}
|
|
3821
|
+
export function functionAndCustomToolCallOutputUnionArraySerializer(result) {
|
|
3822
|
+
return result.map((item) => {
|
|
3823
|
+
return functionAndCustomToolCallOutputUnionSerializer(item);
|
|
3824
|
+
});
|
|
3825
|
+
}
|
|
3826
|
+
export function functionAndCustomToolCallOutputSerializer(item) {
|
|
3827
|
+
return { type: item["type"] };
|
|
3828
|
+
}
|
|
3829
|
+
export function functionAndCustomToolCallOutputUnionSerializer(item) {
|
|
3740
3830
|
switch (item.type) {
|
|
3741
|
-
case "
|
|
3742
|
-
return
|
|
3743
|
-
case "
|
|
3744
|
-
return
|
|
3745
|
-
case "
|
|
3746
|
-
return
|
|
3831
|
+
case "input_text":
|
|
3832
|
+
return functionAndCustomToolCallOutputInputTextContentSerializer(item);
|
|
3833
|
+
case "input_image":
|
|
3834
|
+
return functionAndCustomToolCallOutputInputImageContentSerializer(item);
|
|
3835
|
+
case "input_file":
|
|
3836
|
+
return functionAndCustomToolCallOutputInputFileContentSerializer(item);
|
|
3747
3837
|
default:
|
|
3748
|
-
return
|
|
3838
|
+
return functionAndCustomToolCallOutputSerializer(item);
|
|
3749
3839
|
}
|
|
3750
3840
|
}
|
|
3751
|
-
export function
|
|
3841
|
+
export function functionAndCustomToolCallOutputInputTextContentSerializer(item) {
|
|
3842
|
+
return { type: item["type"], text: item["text"] };
|
|
3843
|
+
}
|
|
3844
|
+
export function functionAndCustomToolCallOutputInputImageContentSerializer(item) {
|
|
3752
3845
|
return {
|
|
3753
3846
|
type: item["type"],
|
|
3754
|
-
|
|
3755
|
-
|
|
3847
|
+
image_url: item["image_url"],
|
|
3848
|
+
file_id: item["file_id"],
|
|
3849
|
+
detail: item["detail"],
|
|
3850
|
+
};
|
|
3851
|
+
}
|
|
3852
|
+
export function functionAndCustomToolCallOutputInputFileContentSerializer(item) {
|
|
3853
|
+
return {
|
|
3854
|
+
type: item["type"],
|
|
3855
|
+
file_id: item["file_id"],
|
|
3856
|
+
filename: item["filename"],
|
|
3857
|
+
file_url: item["file_url"],
|
|
3858
|
+
file_data: item["file_data"],
|
|
3859
|
+
};
|
|
3860
|
+
}
|
|
3861
|
+
export function inputItemCustomToolCallSerializer(item) {
|
|
3862
|
+
return {
|
|
3863
|
+
type: item["type"],
|
|
3864
|
+
id: item["id"],
|
|
3865
|
+
call_id: item["call_id"],
|
|
3866
|
+
name: item["name"],
|
|
3867
|
+
input: item["input"],
|
|
3868
|
+
};
|
|
3869
|
+
}
|
|
3870
|
+
export function inputItemUnionArraySerializer(result) {
|
|
3871
|
+
return result.map((item) => {
|
|
3872
|
+
return inputItemUnionSerializer(item);
|
|
3873
|
+
});
|
|
3874
|
+
}
|
|
3875
|
+
export function memoryStoreSearchResponseDeserializer(item) {
|
|
3876
|
+
return {
|
|
3877
|
+
search_id: item["search_id"],
|
|
3878
|
+
memories: memorySearchItemArrayDeserializer(item["memories"]),
|
|
3879
|
+
usage: memoryStoreOperationUsageDeserializer(item["usage"]),
|
|
3756
3880
|
};
|
|
3757
3881
|
}
|
|
3758
|
-
export function
|
|
3882
|
+
export function memorySearchItemArrayDeserializer(result) {
|
|
3759
3883
|
return result.map((item) => {
|
|
3760
|
-
return
|
|
3884
|
+
return memorySearchItemDeserializer(item);
|
|
3761
3885
|
});
|
|
3762
3886
|
}
|
|
3763
|
-
export function
|
|
3887
|
+
export function memorySearchItemDeserializer(item) {
|
|
3764
3888
|
return {
|
|
3765
|
-
|
|
3766
|
-
metric: item["metric"],
|
|
3767
|
-
evaluator: item["evaluator"],
|
|
3768
|
-
baselineRunSummary: evalRunResultSummaryDeserializer(item["baselineRunSummary"]),
|
|
3769
|
-
compareItems: evalRunResultCompareItemArrayDeserializer(item["compareItems"]),
|
|
3889
|
+
memory_item: memoryItemUnionDeserializer(item["memory_item"]),
|
|
3770
3890
|
};
|
|
3771
3891
|
}
|
|
3772
|
-
export function
|
|
3892
|
+
export function memoryItemDeserializer(item) {
|
|
3773
3893
|
return {
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3894
|
+
memory_id: item["memory_id"],
|
|
3895
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
3896
|
+
scope: item["scope"],
|
|
3897
|
+
content: item["content"],
|
|
3898
|
+
kind: item["kind"],
|
|
3778
3899
|
};
|
|
3779
3900
|
}
|
|
3780
|
-
export function
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3901
|
+
export function memoryItemUnionDeserializer(item) {
|
|
3902
|
+
switch (item.kind) {
|
|
3903
|
+
case "user_profile":
|
|
3904
|
+
return userProfileMemoryItemDeserializer(item);
|
|
3905
|
+
case "chat_summary":
|
|
3906
|
+
return chatSummaryMemoryItemDeserializer(item);
|
|
3907
|
+
default:
|
|
3908
|
+
return memoryItemDeserializer(item);
|
|
3909
|
+
}
|
|
3784
3910
|
}
|
|
3785
|
-
export function
|
|
3911
|
+
export function userProfileMemoryItemDeserializer(item) {
|
|
3786
3912
|
return {
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3913
|
+
memory_id: item["memory_id"],
|
|
3914
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
3915
|
+
scope: item["scope"],
|
|
3916
|
+
content: item["content"],
|
|
3917
|
+
kind: item["kind"],
|
|
3792
3918
|
};
|
|
3793
3919
|
}
|
|
3794
|
-
export function
|
|
3920
|
+
export function chatSummaryMemoryItemDeserializer(item) {
|
|
3795
3921
|
return {
|
|
3796
|
-
|
|
3797
|
-
|
|
3922
|
+
memory_id: item["memory_id"],
|
|
3923
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
3924
|
+
scope: item["scope"],
|
|
3925
|
+
content: item["content"],
|
|
3926
|
+
kind: item["kind"],
|
|
3798
3927
|
};
|
|
3799
3928
|
}
|
|
3800
|
-
export function
|
|
3929
|
+
export function memoryStoreOperationUsageDeserializer(item) {
|
|
3801
3930
|
return {
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3931
|
+
embedding_tokens: item["embedding_tokens"],
|
|
3932
|
+
input_tokens: item["input_tokens"],
|
|
3933
|
+
input_tokens_details: responseUsageInputTokensDetailsDeserializer(item["input_tokens_details"]),
|
|
3934
|
+
output_tokens: item["output_tokens"],
|
|
3935
|
+
output_tokens_details: responseUsageOutputTokensDetailsDeserializer(item["output_tokens_details"]),
|
|
3936
|
+
total_tokens: item["total_tokens"],
|
|
3807
3937
|
};
|
|
3808
3938
|
}
|
|
3809
|
-
export function
|
|
3939
|
+
export function responseUsageInputTokensDetailsDeserializer(item) {
|
|
3810
3940
|
return {
|
|
3811
|
-
|
|
3812
|
-
uniqueSubclusterCount: item["uniqueSubclusterCount"],
|
|
3813
|
-
uniqueClusterCount: item["uniqueClusterCount"],
|
|
3814
|
-
method: item["method"],
|
|
3815
|
-
usage: clusterTokenUsageDeserializer(item["usage"]),
|
|
3941
|
+
cached_tokens: item["cached_tokens"],
|
|
3816
3942
|
};
|
|
3817
3943
|
}
|
|
3818
|
-
export function
|
|
3944
|
+
export function responseUsageOutputTokensDetailsDeserializer(item) {
|
|
3819
3945
|
return {
|
|
3820
|
-
|
|
3821
|
-
outputTokenUsage: item["outputTokenUsage"],
|
|
3822
|
-
totalTokenUsage: item["totalTokenUsage"],
|
|
3946
|
+
reasoning_tokens: item["reasoning_tokens"],
|
|
3823
3947
|
};
|
|
3824
3948
|
}
|
|
3825
|
-
export function
|
|
3826
|
-
return
|
|
3827
|
-
|
|
3828
|
-
|
|
3949
|
+
export function memoryStoreUpdateResponseDeserializer(item) {
|
|
3950
|
+
return {
|
|
3951
|
+
update_id: item["update_id"],
|
|
3952
|
+
status: item["status"],
|
|
3953
|
+
superseded_by: item["superseded_by"],
|
|
3954
|
+
result: !item["result"]
|
|
3955
|
+
? item["result"]
|
|
3956
|
+
: memoryStoreUpdateCompletedResultDeserializer(item["result"]),
|
|
3957
|
+
error: !item["error"] ? item["error"] : errorDeserializer(item["error"]),
|
|
3958
|
+
};
|
|
3829
3959
|
}
|
|
3830
|
-
export function
|
|
3960
|
+
export function memoryStoreUpdateCompletedResultDeserializer(item) {
|
|
3831
3961
|
return {
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
suggestion: item["suggestion"],
|
|
3835
|
-
suggestionTitle: item["suggestionTitle"],
|
|
3836
|
-
description: item["description"],
|
|
3837
|
-
weight: item["weight"],
|
|
3838
|
-
subClusters: !item["subClusters"]
|
|
3839
|
-
? item["subClusters"]
|
|
3840
|
-
: insightClusterArrayDeserializer(item["subClusters"]),
|
|
3841
|
-
samples: !item["samples"]
|
|
3842
|
-
? item["samples"]
|
|
3843
|
-
: insightSampleUnionArrayDeserializer(item["samples"]),
|
|
3962
|
+
memory_operations: memoryOperationArrayDeserializer(item["memory_operations"]),
|
|
3963
|
+
usage: memoryStoreOperationUsageDeserializer(item["usage"]),
|
|
3844
3964
|
};
|
|
3845
3965
|
}
|
|
3846
|
-
export function
|
|
3966
|
+
export function memoryOperationArrayDeserializer(result) {
|
|
3847
3967
|
return result.map((item) => {
|
|
3848
|
-
return
|
|
3968
|
+
return memoryOperationDeserializer(item);
|
|
3849
3969
|
});
|
|
3850
3970
|
}
|
|
3851
|
-
export function
|
|
3971
|
+
export function memoryOperationDeserializer(item) {
|
|
3852
3972
|
return {
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
features: item["features"],
|
|
3856
|
-
correlationInfo: item["correlationInfo"],
|
|
3973
|
+
kind: item["kind"],
|
|
3974
|
+
memory_item: memoryItemUnionDeserializer(item["memory_item"]),
|
|
3857
3975
|
};
|
|
3858
3976
|
}
|
|
3859
|
-
export function
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
}
|
|
3977
|
+
export function memoryStoreDeleteScopeResponseDeserializer(item) {
|
|
3978
|
+
return {
|
|
3979
|
+
object: item["object"],
|
|
3980
|
+
name: item["name"],
|
|
3981
|
+
scope: item["scope"],
|
|
3982
|
+
deleted: item["deleted"],
|
|
3983
|
+
};
|
|
3866
3984
|
}
|
|
3867
|
-
export function
|
|
3985
|
+
export function redTeamSerializer(item) {
|
|
3868
3986
|
return {
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3987
|
+
displayName: item["displayName"],
|
|
3988
|
+
numTurns: item["numTurns"],
|
|
3989
|
+
attackStrategies: !item["attackStrategies"]
|
|
3990
|
+
? item["attackStrategies"]
|
|
3991
|
+
: item["attackStrategies"].map((p) => {
|
|
3992
|
+
return p;
|
|
3993
|
+
}),
|
|
3994
|
+
simulationOnly: item["simulationOnly"],
|
|
3995
|
+
riskCategories: !item["riskCategories"]
|
|
3996
|
+
? item["riskCategories"]
|
|
3997
|
+
: item["riskCategories"].map((p) => {
|
|
3998
|
+
return p;
|
|
3999
|
+
}),
|
|
4000
|
+
applicationScenario: item["applicationScenario"],
|
|
4001
|
+
tags: item["tags"],
|
|
4002
|
+
properties: item["properties"],
|
|
4003
|
+
target: targetConfigUnionSerializer(item["target"]),
|
|
3874
4004
|
};
|
|
3875
4005
|
}
|
|
3876
|
-
export function
|
|
4006
|
+
export function redTeamDeserializer(item) {
|
|
3877
4007
|
return {
|
|
3878
|
-
name: item["
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
4008
|
+
name: item["id"],
|
|
4009
|
+
displayName: item["displayName"],
|
|
4010
|
+
numTurns: item["numTurns"],
|
|
4011
|
+
attackStrategies: !item["attackStrategies"]
|
|
4012
|
+
? item["attackStrategies"]
|
|
4013
|
+
: item["attackStrategies"].map((p) => {
|
|
4014
|
+
return p;
|
|
4015
|
+
}),
|
|
4016
|
+
simulationOnly: item["simulationOnly"],
|
|
4017
|
+
riskCategories: !item["riskCategories"]
|
|
4018
|
+
? item["riskCategories"]
|
|
4019
|
+
: item["riskCategories"].map((p) => {
|
|
4020
|
+
return p;
|
|
4021
|
+
}),
|
|
4022
|
+
applicationScenario: item["applicationScenario"],
|
|
4023
|
+
tags: item["tags"],
|
|
4024
|
+
properties: item["properties"],
|
|
4025
|
+
status: item["status"],
|
|
4026
|
+
target: targetConfigUnionDeserializer(item["target"]),
|
|
3882
4027
|
};
|
|
3883
4028
|
}
|
|
3884
|
-
export function
|
|
3885
|
-
|
|
3886
|
-
Object.keys(item).map((key) => {
|
|
3887
|
-
result[key] = !item[key] ? item[key] : chartCoordinateDeserializer(item[key]);
|
|
3888
|
-
});
|
|
3889
|
-
return result;
|
|
4029
|
+
export function targetConfigSerializer(item) {
|
|
4030
|
+
return { type: item["type"] };
|
|
3890
4031
|
}
|
|
3891
|
-
export function
|
|
4032
|
+
export function targetConfigDeserializer(item) {
|
|
3892
4033
|
return {
|
|
3893
|
-
|
|
3894
|
-
y: item["y"],
|
|
3895
|
-
size: item["size"],
|
|
4034
|
+
type: item["type"],
|
|
3896
4035
|
};
|
|
3897
4036
|
}
|
|
3898
|
-
export function
|
|
4037
|
+
export function targetConfigUnionSerializer(item) {
|
|
4038
|
+
switch (item.type) {
|
|
4039
|
+
case "AzureOpenAIModel":
|
|
4040
|
+
return azureOpenAIModelConfigurationSerializer(item);
|
|
4041
|
+
default:
|
|
4042
|
+
return targetConfigSerializer(item);
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
export function targetConfigUnionDeserializer(item) {
|
|
4046
|
+
switch (item.type) {
|
|
4047
|
+
case "AzureOpenAIModel":
|
|
4048
|
+
return azureOpenAIModelConfigurationDeserializer(item);
|
|
4049
|
+
default:
|
|
4050
|
+
return targetConfigDeserializer(item);
|
|
4051
|
+
}
|
|
4052
|
+
}
|
|
4053
|
+
export function azureOpenAIModelConfigurationSerializer(item) {
|
|
4054
|
+
return { type: item["type"], modelDeploymentName: item["modelDeploymentName"] };
|
|
4055
|
+
}
|
|
4056
|
+
export function azureOpenAIModelConfigurationDeserializer(item) {
|
|
3899
4057
|
return {
|
|
3900
4058
|
type: item["type"],
|
|
3901
|
-
|
|
4059
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
3902
4060
|
};
|
|
3903
4061
|
}
|
|
3904
|
-
export function
|
|
4062
|
+
export function _pagedRedTeamDeserializer(item) {
|
|
3905
4063
|
return {
|
|
3906
|
-
value:
|
|
4064
|
+
value: redTeamArrayDeserializer(item["value"]),
|
|
3907
4065
|
nextLink: item["nextLink"],
|
|
3908
4066
|
};
|
|
3909
4067
|
}
|
|
3910
|
-
export function
|
|
4068
|
+
export function redTeamArraySerializer(result) {
|
|
3911
4069
|
return result.map((item) => {
|
|
3912
|
-
return
|
|
4070
|
+
return redTeamSerializer(item);
|
|
3913
4071
|
});
|
|
3914
4072
|
}
|
|
3915
|
-
export function
|
|
4073
|
+
export function redTeamArrayDeserializer(result) {
|
|
3916
4074
|
return result.map((item) => {
|
|
3917
|
-
return
|
|
4075
|
+
return redTeamDeserializer(item);
|
|
3918
4076
|
});
|
|
3919
4077
|
}
|
|
3920
4078
|
export function scheduleSerializer(item) {
|
|
@@ -4105,11 +4263,7 @@ export function monthlyRecurrenceScheduleDeserializer(item) {
|
|
|
4105
4263
|
};
|
|
4106
4264
|
}
|
|
4107
4265
|
export function oneTimeTriggerSerializer(item) {
|
|
4108
|
-
return {
|
|
4109
|
-
type: item["type"],
|
|
4110
|
-
triggerAt: item["triggerAt"],
|
|
4111
|
-
timeZone: item["timeZone"],
|
|
4112
|
-
};
|
|
4266
|
+
return { type: item["type"], triggerAt: item["triggerAt"], timeZone: item["timeZone"] };
|
|
4113
4267
|
}
|
|
4114
4268
|
export function oneTimeTriggerDeserializer(item) {
|
|
4115
4269
|
return {
|
|
@@ -4209,7 +4363,7 @@ export function scheduleRunDeserializer(item) {
|
|
|
4209
4363
|
properties: item["properties"],
|
|
4210
4364
|
};
|
|
4211
4365
|
}
|
|
4212
|
-
export function
|
|
4366
|
+
export function _pagedScheduleRunDeserializer(item) {
|
|
4213
4367
|
return {
|
|
4214
4368
|
value: scheduleRunArrayDeserializer(item["value"]),
|
|
4215
4369
|
nextLink: item["nextLink"],
|
|
@@ -4220,33 +4374,10 @@ export function scheduleRunArrayDeserializer(result) {
|
|
|
4220
4374
|
return scheduleRunDeserializer(item);
|
|
4221
4375
|
});
|
|
4222
4376
|
}
|
|
4223
|
-
|
|
4224
|
-
return result.map((item) => {
|
|
4225
|
-
return toolUnionSerializer(item);
|
|
4226
|
-
});
|
|
4227
|
-
}
|
|
4228
|
-
export function toolUnionArrayDeserializer_1(result) {
|
|
4229
|
-
return result.map((item) => {
|
|
4230
|
-
return toolUnionDeserializer(item);
|
|
4231
|
-
});
|
|
4232
|
-
}
|
|
4233
|
-
export function agentIdDeserializer(item) {
|
|
4234
|
-
return {
|
|
4235
|
-
type: item["type"],
|
|
4236
|
-
name: item["name"],
|
|
4237
|
-
version: item["version"],
|
|
4238
|
-
};
|
|
4239
|
-
}
|
|
4240
|
-
export function agentReferenceSerializer(item) {
|
|
4241
|
-
return { type: item["type"], name: item["name"], version: item["version"] };
|
|
4242
|
-
}
|
|
4243
|
-
export function _listVersionsRequestTypeSerializer(item) {
|
|
4244
|
-
return item;
|
|
4245
|
-
}
|
|
4246
|
-
/** Azure AI Projects API versions */
|
|
4377
|
+
/** Microsoft Foundry API versions */
|
|
4247
4378
|
export var KnownApiVersions;
|
|
4248
4379
|
(function (KnownApiVersions) {
|
|
4249
|
-
/**
|
|
4250
|
-
KnownApiVersions["
|
|
4380
|
+
/** Microsoft Foundry API version v1. */
|
|
4381
|
+
KnownApiVersions["v1"] = "v1";
|
|
4251
4382
|
})(KnownApiVersions || (KnownApiVersions = {}));
|
|
4252
4383
|
//# sourceMappingURL=models.js.map
|