@azure/ai-projects 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -4
- package/dist/browser/aiProjectClient.d.ts +4 -0
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +7 -1
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/agents/operations.d.ts +10 -2
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +28 -8
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +7 -3
- 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.js +2 -2
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/beta/agents/index.d.ts +2 -2
- package/dist/browser/api/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/index.js +1 -1
- package/dist/browser/api/beta/agents/index.js.map +1 -1
- package/dist/browser/api/beta/agents/operations.d.ts +114 -15
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +590 -36
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/options.d.ts +174 -2
- package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/options.js.map +1 -1
- package/dist/browser/api/beta/datasets/index.d.ts +3 -0
- package/dist/browser/api/beta/datasets/index.d.ts.map +1 -0
- package/dist/browser/api/beta/datasets/index.js +4 -0
- package/dist/browser/api/beta/datasets/index.js.map +1 -0
- package/dist/browser/api/beta/datasets/operations.d.ts +26 -0
- package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/datasets/operations.js +170 -0
- package/dist/browser/api/beta/datasets/operations.js.map +1 -0
- package/dist/browser/api/beta/datasets/options.d.ts +56 -0
- package/dist/browser/api/beta/datasets/options.d.ts.map +1 -0
- package/dist/browser/api/beta/datasets/options.js +4 -0
- package/dist/browser/api/beta/datasets/options.js.map +1 -0
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
- package/dist/browser/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js +8 -8
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluators/index.d.ts +2 -2
- package/dist/browser/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/index.js +1 -1
- package/dist/browser/api/beta/evaluators/index.js.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.d.ts +37 -3
- package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.js +226 -1
- package/dist/browser/api/beta/evaluators/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluators/options.d.ts +62 -1
- package/dist/browser/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/options.js.map +1 -1
- package/dist/browser/api/beta/insights/index.d.ts +1 -1
- package/dist/browser/api/beta/insights/index.d.ts.map +1 -1
- package/dist/browser/api/beta/insights/index.js.map +1 -1
- package/dist/browser/api/beta/insights/operations.d.ts +3 -3
- package/dist/browser/api/beta/insights/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/insights/operations.js +5 -2
- package/dist/browser/api/beta/insights/operations.js.map +1 -1
- package/dist/browser/api/beta/insights/options.d.ts +14 -1
- package/dist/browser/api/beta/insights/options.d.ts.map +1 -1
- package/dist/browser/api/beta/insights/options.js.map +1 -1
- package/dist/browser/api/beta/memoryStores/index.d.ts +2 -2
- package/dist/browser/api/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/browser/api/beta/memoryStores/index.js +1 -1
- package/dist/browser/api/beta/memoryStores/index.js.map +1 -1
- package/dist/browser/api/beta/memoryStores/operations.d.ts +22 -2
- package/dist/browser/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/memoryStores/operations.js +176 -2
- package/dist/browser/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/browser/api/beta/memoryStores/options.d.ts +40 -1
- package/dist/browser/api/beta/memoryStores/options.d.ts.map +1 -1
- package/dist/browser/api/beta/memoryStores/options.js.map +1 -1
- package/dist/browser/api/beta/models/index.d.ts +3 -0
- package/dist/browser/api/beta/models/index.d.ts.map +1 -0
- package/dist/browser/api/beta/models/index.js +4 -0
- package/dist/browser/api/beta/models/index.js.map +1 -0
- package/dist/browser/api/beta/models/operations.d.ts +45 -0
- package/dist/browser/api/beta/models/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/models/operations.js +305 -0
- package/dist/browser/api/beta/models/operations.js.map +1 -0
- package/dist/browser/api/beta/models/options.d.ts +42 -0
- package/dist/browser/api/beta/models/options.d.ts.map +1 -0
- package/dist/browser/api/beta/models/options.js +4 -0
- package/dist/browser/api/beta/models/options.js.map +1 -0
- package/dist/browser/api/beta/routines/index.d.ts +3 -0
- package/dist/browser/api/beta/routines/index.d.ts.map +1 -0
- package/dist/browser/api/beta/routines/index.js +4 -0
- package/dist/browser/api/beta/routines/index.js.map +1 -0
- package/dist/browser/api/beta/routines/operations.d.ts +38 -0
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -0
- package/dist/browser/api/beta/routines/operations.js +293 -0
- package/dist/browser/api/beta/routines/operations.js.map +1 -0
- package/dist/browser/api/beta/routines/options.d.ts +71 -0
- package/dist/browser/api/beta/routines/options.d.ts.map +1 -0
- package/dist/browser/api/beta/routines/options.js +4 -0
- package/dist/browser/api/beta/routines/options.js.map +1 -0
- package/dist/browser/api/beta/schedules/operations.d.ts +8 -8
- package/dist/browser/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/schedules/operations.js +16 -16
- package/dist/browser/api/beta/schedules/operations.js.map +1 -1
- package/dist/browser/api/beta/skills/index.d.ts +2 -2
- package/dist/browser/api/beta/skills/index.d.ts.map +1 -1
- package/dist/browser/api/beta/skills/index.js +1 -1
- package/dist/browser/api/beta/skills/index.js.map +1 -1
- package/dist/browser/api/beta/skills/operations.d.ts +38 -22
- package/dist/browser/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/skills/operations.js +180 -49
- package/dist/browser/api/beta/skills/operations.js.map +1 -1
- package/dist/browser/api/beta/skills/options.d.ts +44 -32
- package/dist/browser/api/beta/skills/options.d.ts.map +1 -1
- package/dist/browser/api/beta/skills/options.js.map +1 -1
- package/dist/browser/api/beta/toolboxes/index.d.ts +1 -1
- package/dist/browser/api/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/browser/api/beta/toolboxes/index.js.map +1 -1
- package/dist/browser/api/beta/toolboxes/operations.d.ts +15 -15
- package/dist/browser/api/beta/toolboxes/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/toolboxes/operations.js +43 -36
- package/dist/browser/api/beta/toolboxes/operations.js.map +1 -1
- package/dist/browser/api/beta/toolboxes/options.d.ts +7 -5
- package/dist/browser/api/beta/toolboxes/options.d.ts.map +1 -1
- package/dist/browser/api/beta/toolboxes/options.js.map +1 -1
- package/dist/browser/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/browser/api/evaluationRules/operations.js +3 -0
- package/dist/browser/api/evaluationRules/operations.js.map +1 -1
- package/dist/browser/api/evaluationRules/options.d.ts +2 -0
- package/dist/browser/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/browser/api/evaluationRules/options.js.map +1 -1
- package/dist/browser/classic/agents/index.d.ts +12 -4
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +82 -9
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js +23 -8
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/datasets/index.d.ts +19 -0
- package/dist/browser/classic/beta/datasets/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/datasets/index.js +18 -0
- package/dist/browser/classic/beta/datasets/index.js.map +1 -0
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts +2 -2
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js +2 -2
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.d.ts +22 -2
- package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.js +8 -1
- package/dist/browser/classic/beta/evaluators/index.js.map +1 -1
- package/dist/browser/classic/beta/index.d.ts +9 -0
- package/dist/browser/classic/beta/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/index.js +9 -0
- package/dist/browser/classic/beta/index.js.map +1 -1
- package/dist/browser/classic/beta/insights/index.d.ts +2 -2
- package/dist/browser/classic/beta/insights/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/insights/index.js.map +1 -1
- package/dist/browser/classic/beta/memoryStores/index.d.ts +12 -2
- package/dist/browser/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/memoryStores/index.js +6 -1
- package/dist/browser/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/browser/classic/beta/models/index.d.ts +27 -0
- package/dist/browser/classic/beta/models/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/models/index.js +21 -0
- package/dist/browser/classic/beta/models/index.js.map +1 -0
- package/dist/browser/classic/beta/routines/index.d.ts +25 -0
- package/dist/browser/classic/beta/routines/index.d.ts.map +1 -0
- package/dist/browser/classic/beta/routines/index.js +21 -0
- package/dist/browser/classic/beta/routines/index.js.map +1 -0
- package/dist/browser/classic/beta/schedules/index.d.ts +4 -4
- package/dist/browser/classic/beta/schedules/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/schedules/index.js +4 -4
- package/dist/browser/classic/beta/schedules/index.js.map +1 -1
- package/dist/browser/classic/beta/skills/index.d.ts +21 -13
- package/dist/browser/classic/beta/skills/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/skills/index.js +11 -7
- package/dist/browser/classic/beta/skills/index.js.map +1 -1
- package/dist/browser/classic/beta/toolboxes/index.d.ts +8 -8
- package/dist/browser/classic/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/toolboxes/index.js +7 -7
- package/dist/browser/classic/beta/toolboxes/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/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 +16 -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 +1817 -157
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +2013 -197
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts +17 -0
- package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/multipartHelpers.js +20 -0
- package/dist/browser/static-helpers/multipartHelpers.js.map +1 -0
- 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 +15 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/aiProjectClient.d.ts +4 -0
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +3 -1
- package/dist/commonjs/aiProjectClient.js.map +2 -2
- package/dist/commonjs/api/agents/operations.d.ts +10 -2
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +17 -5
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/agents/options.d.ts +7 -3
- 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.js +1 -1
- package/dist/commonjs/api/aiProjectContext.js.map +2 -2
- package/dist/commonjs/api/beta/agents/index.d.ts +2 -2
- package/dist/commonjs/api/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/index.js +32 -2
- package/dist/commonjs/api/beta/agents/index.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +114 -15
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +706 -42
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/options.d.ts +174 -2
- package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/options.js.map +1 -1
- package/dist/commonjs/api/beta/datasets/index.d.ts +3 -0
- package/dist/commonjs/api/beta/datasets/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/datasets/index.js +36 -0
- package/dist/commonjs/api/beta/datasets/index.js.map +7 -0
- package/dist/commonjs/api/beta/datasets/operations.d.ts +26 -0
- package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/datasets/operations.js +233 -0
- package/dist/commonjs/api/beta/datasets/operations.js.map +7 -0
- package/dist/commonjs/api/beta/datasets/options.d.ts +56 -0
- package/dist/commonjs/api/beta/datasets/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/datasets/options.js +16 -0
- package/dist/commonjs/api/beta/datasets/options.js.map +7 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js +8 -8
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/index.d.ts +2 -2
- package/dist/commonjs/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/index.js +14 -0
- package/dist/commonjs/api/beta/evaluators/index.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/operations.d.ts +37 -3
- package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.js +288 -0
- package/dist/commonjs/api/beta/evaluators/operations.js.map +2 -2
- package/dist/commonjs/api/beta/evaluators/options.d.ts +62 -1
- package/dist/commonjs/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/options.js.map +1 -1
- package/dist/commonjs/api/beta/insights/index.d.ts +1 -1
- package/dist/commonjs/api/beta/insights/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/insights/index.js.map +1 -1
- package/dist/commonjs/api/beta/insights/operations.d.ts +3 -3
- package/dist/commonjs/api/beta/insights/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/insights/operations.js +4 -1
- package/dist/commonjs/api/beta/insights/operations.js.map +2 -2
- package/dist/commonjs/api/beta/insights/options.d.ts +14 -1
- package/dist/commonjs/api/beta/insights/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/insights/options.js.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/index.d.ts +2 -2
- package/dist/commonjs/api/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/index.js +12 -2
- package/dist/commonjs/api/beta/memoryStores/index.js.map +2 -2
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts +22 -2
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/operations.js +227 -4
- package/dist/commonjs/api/beta/memoryStores/operations.js.map +2 -2
- package/dist/commonjs/api/beta/memoryStores/options.d.ts +40 -1
- package/dist/commonjs/api/beta/memoryStores/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/options.js.map +1 -1
- package/dist/commonjs/api/beta/models/index.d.ts +3 -0
- package/dist/commonjs/api/beta/models/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/models/index.js +42 -0
- package/dist/commonjs/api/beta/models/index.js.map +7 -0
- package/dist/commonjs/api/beta/models/operations.d.ts +45 -0
- package/dist/commonjs/api/beta/models/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/models/operations.js +420 -0
- package/dist/commonjs/api/beta/models/operations.js.map +7 -0
- package/dist/commonjs/api/beta/models/options.d.ts +42 -0
- package/dist/commonjs/api/beta/models/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/models/options.js +16 -0
- package/dist/commonjs/api/beta/models/options.js.map +7 -0
- package/dist/commonjs/api/beta/routines/index.d.ts +3 -0
- package/dist/commonjs/api/beta/routines/index.d.ts.map +1 -0
- package/dist/commonjs/api/beta/routines/index.js +42 -0
- package/dist/commonjs/api/beta/routines/index.js.map +7 -0
- package/dist/commonjs/api/beta/routines/operations.d.ts +38 -0
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -0
- package/dist/commonjs/api/beta/routines/operations.js +379 -0
- package/dist/commonjs/api/beta/routines/operations.js.map +7 -0
- package/dist/commonjs/api/beta/routines/options.d.ts +71 -0
- package/dist/commonjs/api/beta/routines/options.d.ts.map +1 -0
- package/dist/commonjs/api/beta/routines/options.js +16 -0
- package/dist/commonjs/api/beta/routines/options.js.map +7 -0
- package/dist/commonjs/api/beta/schedules/operations.d.ts +8 -8
- package/dist/commonjs/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/schedules/operations.js +16 -16
- package/dist/commonjs/api/beta/schedules/operations.js.map +2 -2
- package/dist/commonjs/api/beta/skills/index.d.ts +2 -2
- package/dist/commonjs/api/beta/skills/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/skills/index.js +10 -2
- package/dist/commonjs/api/beta/skills/index.js.map +2 -2
- package/dist/commonjs/api/beta/skills/operations.d.ts +38 -22
- package/dist/commonjs/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/skills/operations.js +223 -52
- package/dist/commonjs/api/beta/skills/operations.js.map +2 -2
- package/dist/commonjs/api/beta/skills/options.d.ts +44 -32
- package/dist/commonjs/api/beta/skills/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/skills/options.js.map +1 -1
- package/dist/commonjs/api/beta/toolboxes/index.d.ts +1 -1
- package/dist/commonjs/api/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/commonjs/api/beta/toolboxes/index.js.map +1 -1
- package/dist/commonjs/api/beta/toolboxes/operations.d.ts +15 -15
- package/dist/commonjs/api/beta/toolboxes/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/toolboxes/operations.js +42 -37
- package/dist/commonjs/api/beta/toolboxes/operations.js.map +2 -2
- package/dist/commonjs/api/beta/toolboxes/options.d.ts +7 -5
- package/dist/commonjs/api/beta/toolboxes/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/toolboxes/options.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.js +1 -0
- package/dist/commonjs/api/evaluationRules/operations.js.map +2 -2
- package/dist/commonjs/api/evaluationRules/options.d.ts +2 -0
- package/dist/commonjs/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/commonjs/api/evaluationRules/options.js.map +1 -1
- package/dist/commonjs/classic/agents/index.d.ts +12 -4
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/agents/index.d.ts +82 -9
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js +22 -7
- package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/datasets/index.d.ts +19 -0
- package/dist/commonjs/classic/beta/datasets/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/datasets/index.js +42 -0
- package/dist/commonjs/classic/beta/datasets/index.js.map +7 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts +2 -2
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js +2 -2
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +2 -2
- package/dist/commonjs/classic/beta/evaluators/index.d.ts +22 -2
- package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.js +7 -0
- package/dist/commonjs/classic/beta/evaluators/index.js.map +2 -2
- package/dist/commonjs/classic/beta/index.d.ts +9 -0
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/index.js +9 -0
- package/dist/commonjs/classic/beta/index.js.map +2 -2
- package/dist/commonjs/classic/beta/insights/index.d.ts +2 -2
- package/dist/commonjs/classic/beta/insights/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/insights/index.js.map +2 -2
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts +12 -2
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/memoryStores/index.js +5 -0
- package/dist/commonjs/classic/beta/memoryStores/index.js.map +2 -2
- package/dist/commonjs/classic/beta/models/index.d.ts +27 -0
- package/dist/commonjs/classic/beta/models/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/models/index.js +45 -0
- package/dist/commonjs/classic/beta/models/index.js.map +7 -0
- package/dist/commonjs/classic/beta/routines/index.d.ts +25 -0
- package/dist/commonjs/classic/beta/routines/index.d.ts.map +1 -0
- package/dist/commonjs/classic/beta/routines/index.js +45 -0
- package/dist/commonjs/classic/beta/routines/index.js.map +7 -0
- package/dist/commonjs/classic/beta/schedules/index.d.ts +4 -4
- package/dist/commonjs/classic/beta/schedules/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/schedules/index.js +4 -4
- package/dist/commonjs/classic/beta/schedules/index.js.map +2 -2
- package/dist/commonjs/classic/beta/skills/index.d.ts +21 -13
- package/dist/commonjs/classic/beta/skills/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/skills/index.js +10 -6
- package/dist/commonjs/classic/beta/skills/index.js.map +2 -2
- package/dist/commonjs/classic/beta/toolboxes/index.d.ts +8 -8
- package/dist/commonjs/classic/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/toolboxes/index.js +7 -7
- package/dist/commonjs/classic/beta/toolboxes/index.js.map +2 -2
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/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 +16 -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 +1817 -157
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +2309 -255
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts +17 -0
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/multipartHelpers.js +43 -0
- package/dist/commonjs/static-helpers/multipartHelpers.js.map +7 -0
- 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 +15 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/aiProjectClient.d.ts +4 -0
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +7 -1
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/agents/operations.d.ts +10 -2
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +28 -8
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +7 -3
- 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.js +2 -2
- package/dist/esm/api/aiProjectContext.js.map +1 -1
- package/dist/esm/api/beta/agents/index.d.ts +2 -2
- package/dist/esm/api/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/index.js +1 -1
- package/dist/esm/api/beta/agents/index.js.map +1 -1
- package/dist/esm/api/beta/agents/operations.d.ts +114 -15
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +590 -36
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/options.d.ts +174 -2
- package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/options.js.map +1 -1
- package/dist/esm/api/beta/datasets/index.d.ts +3 -0
- package/dist/esm/api/beta/datasets/index.d.ts.map +1 -0
- package/dist/esm/api/beta/datasets/index.js +4 -0
- package/dist/esm/api/beta/datasets/index.js.map +1 -0
- package/dist/esm/api/beta/datasets/operations.d.ts +26 -0
- package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/datasets/operations.js +170 -0
- package/dist/esm/api/beta/datasets/operations.js.map +1 -0
- package/dist/esm/api/beta/datasets/options.d.ts +56 -0
- package/dist/esm/api/beta/datasets/options.d.ts.map +1 -0
- package/dist/esm/api/beta/datasets/options.js +4 -0
- package/dist/esm/api/beta/datasets/options.js.map +1 -0
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
- package/dist/esm/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js +8 -8
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluators/index.d.ts +2 -2
- package/dist/esm/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/index.js +1 -1
- package/dist/esm/api/beta/evaluators/index.js.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.d.ts +37 -3
- package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.js +226 -1
- package/dist/esm/api/beta/evaluators/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluators/options.d.ts +62 -1
- package/dist/esm/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/options.js.map +1 -1
- package/dist/esm/api/beta/insights/index.d.ts +1 -1
- package/dist/esm/api/beta/insights/index.d.ts.map +1 -1
- package/dist/esm/api/beta/insights/index.js.map +1 -1
- package/dist/esm/api/beta/insights/operations.d.ts +3 -3
- package/dist/esm/api/beta/insights/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/insights/operations.js +5 -2
- package/dist/esm/api/beta/insights/operations.js.map +1 -1
- package/dist/esm/api/beta/insights/options.d.ts +14 -1
- package/dist/esm/api/beta/insights/options.d.ts.map +1 -1
- package/dist/esm/api/beta/insights/options.js.map +1 -1
- package/dist/esm/api/beta/memoryStores/index.d.ts +2 -2
- package/dist/esm/api/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/esm/api/beta/memoryStores/index.js +1 -1
- package/dist/esm/api/beta/memoryStores/index.js.map +1 -1
- package/dist/esm/api/beta/memoryStores/operations.d.ts +22 -2
- package/dist/esm/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/memoryStores/operations.js +176 -2
- package/dist/esm/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/esm/api/beta/memoryStores/options.d.ts +40 -1
- package/dist/esm/api/beta/memoryStores/options.d.ts.map +1 -1
- package/dist/esm/api/beta/memoryStores/options.js.map +1 -1
- package/dist/esm/api/beta/models/index.d.ts +3 -0
- package/dist/esm/api/beta/models/index.d.ts.map +1 -0
- package/dist/esm/api/beta/models/index.js +4 -0
- package/dist/esm/api/beta/models/index.js.map +1 -0
- package/dist/esm/api/beta/models/operations.d.ts +45 -0
- package/dist/esm/api/beta/models/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/models/operations.js +305 -0
- package/dist/esm/api/beta/models/operations.js.map +1 -0
- package/dist/esm/api/beta/models/options.d.ts +42 -0
- package/dist/esm/api/beta/models/options.d.ts.map +1 -0
- package/dist/esm/api/beta/models/options.js +4 -0
- package/dist/esm/api/beta/models/options.js.map +1 -0
- package/dist/esm/api/beta/routines/index.d.ts +3 -0
- package/dist/esm/api/beta/routines/index.d.ts.map +1 -0
- package/dist/esm/api/beta/routines/index.js +4 -0
- package/dist/esm/api/beta/routines/index.js.map +1 -0
- package/dist/esm/api/beta/routines/operations.d.ts +38 -0
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -0
- package/dist/esm/api/beta/routines/operations.js +293 -0
- package/dist/esm/api/beta/routines/operations.js.map +1 -0
- package/dist/esm/api/beta/routines/options.d.ts +71 -0
- package/dist/esm/api/beta/routines/options.d.ts.map +1 -0
- package/dist/esm/api/beta/routines/options.js +4 -0
- package/dist/esm/api/beta/routines/options.js.map +1 -0
- package/dist/esm/api/beta/schedules/operations.d.ts +8 -8
- package/dist/esm/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/schedules/operations.js +16 -16
- package/dist/esm/api/beta/schedules/operations.js.map +1 -1
- package/dist/esm/api/beta/skills/index.d.ts +2 -2
- package/dist/esm/api/beta/skills/index.d.ts.map +1 -1
- package/dist/esm/api/beta/skills/index.js +1 -1
- package/dist/esm/api/beta/skills/index.js.map +1 -1
- package/dist/esm/api/beta/skills/operations.d.ts +38 -22
- package/dist/esm/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/skills/operations.js +180 -49
- package/dist/esm/api/beta/skills/operations.js.map +1 -1
- package/dist/esm/api/beta/skills/options.d.ts +44 -32
- package/dist/esm/api/beta/skills/options.d.ts.map +1 -1
- package/dist/esm/api/beta/skills/options.js.map +1 -1
- package/dist/esm/api/beta/toolboxes/index.d.ts +1 -1
- package/dist/esm/api/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/esm/api/beta/toolboxes/index.js.map +1 -1
- package/dist/esm/api/beta/toolboxes/operations.d.ts +15 -15
- package/dist/esm/api/beta/toolboxes/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/toolboxes/operations.js +43 -36
- package/dist/esm/api/beta/toolboxes/operations.js.map +1 -1
- package/dist/esm/api/beta/toolboxes/options.d.ts +7 -5
- package/dist/esm/api/beta/toolboxes/options.d.ts.map +1 -1
- package/dist/esm/api/beta/toolboxes/options.js.map +1 -1
- package/dist/esm/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/esm/api/evaluationRules/operations.js +3 -0
- package/dist/esm/api/evaluationRules/operations.js.map +1 -1
- package/dist/esm/api/evaluationRules/options.d.ts +2 -0
- package/dist/esm/api/evaluationRules/options.d.ts.map +1 -1
- package/dist/esm/api/evaluationRules/options.js.map +1 -1
- package/dist/esm/classic/agents/index.d.ts +12 -4
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +82 -9
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js +23 -8
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/datasets/index.d.ts +19 -0
- package/dist/esm/classic/beta/datasets/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/datasets/index.js +18 -0
- package/dist/esm/classic/beta/datasets/index.js.map +1 -0
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts +2 -2
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js +2 -2
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.d.ts +22 -2
- package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.js +8 -1
- package/dist/esm/classic/beta/evaluators/index.js.map +1 -1
- package/dist/esm/classic/beta/index.d.ts +9 -0
- package/dist/esm/classic/beta/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/index.js +9 -0
- package/dist/esm/classic/beta/index.js.map +1 -1
- package/dist/esm/classic/beta/insights/index.d.ts +2 -2
- package/dist/esm/classic/beta/insights/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/insights/index.js.map +1 -1
- package/dist/esm/classic/beta/memoryStores/index.d.ts +12 -2
- package/dist/esm/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/memoryStores/index.js +6 -1
- package/dist/esm/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/esm/classic/beta/models/index.d.ts +27 -0
- package/dist/esm/classic/beta/models/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/models/index.js +21 -0
- package/dist/esm/classic/beta/models/index.js.map +1 -0
- package/dist/esm/classic/beta/routines/index.d.ts +25 -0
- package/dist/esm/classic/beta/routines/index.d.ts.map +1 -0
- package/dist/esm/classic/beta/routines/index.js +21 -0
- package/dist/esm/classic/beta/routines/index.js.map +1 -0
- package/dist/esm/classic/beta/schedules/index.d.ts +4 -4
- package/dist/esm/classic/beta/schedules/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/schedules/index.js +4 -4
- package/dist/esm/classic/beta/schedules/index.js.map +1 -1
- package/dist/esm/classic/beta/skills/index.d.ts +21 -13
- package/dist/esm/classic/beta/skills/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/skills/index.js +11 -7
- package/dist/esm/classic/beta/skills/index.js.map +1 -1
- package/dist/esm/classic/beta/toolboxes/index.d.ts +8 -8
- package/dist/esm/classic/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/toolboxes/index.js +7 -7
- package/dist/esm/classic/beta/toolboxes/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/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 +16 -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 +1817 -157
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +2013 -197
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts +17 -0
- package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/multipartHelpers.js +20 -0
- package/dist/esm/static-helpers/multipartHelpers.js.map +1 -0
- 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 +15 -1
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/aiProjectClient.d.ts +4 -0
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +7 -1
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts +10 -2
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +28 -8
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +7 -3
- 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.js +2 -2
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/beta/agents/index.d.ts +2 -2
- package/dist/react-native/api/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/index.js +1 -1
- package/dist/react-native/api/beta/agents/index.js.map +1 -1
- package/dist/react-native/api/beta/agents/operations.d.ts +114 -15
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +590 -36
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/options.d.ts +174 -2
- package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/options.js.map +1 -1
- package/dist/react-native/api/beta/datasets/index.d.ts +3 -0
- package/dist/react-native/api/beta/datasets/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/datasets/index.js +4 -0
- package/dist/react-native/api/beta/datasets/index.js.map +1 -0
- package/dist/react-native/api/beta/datasets/operations.d.ts +26 -0
- package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/datasets/operations.js +170 -0
- package/dist/react-native/api/beta/datasets/operations.js.map +1 -0
- package/dist/react-native/api/beta/datasets/options.d.ts +56 -0
- package/dist/react-native/api/beta/datasets/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/datasets/options.js +4 -0
- package/dist/react-native/api/beta/datasets/options.js.map +1 -0
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts +4 -4
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js +8 -8
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/index.d.ts +2 -2
- package/dist/react-native/api/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/index.js +1 -1
- package/dist/react-native/api/beta/evaluators/index.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.d.ts +37 -3
- package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.js +226 -1
- package/dist/react-native/api/beta/evaluators/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.d.ts +62 -1
- package/dist/react-native/api/beta/evaluators/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/options.js.map +1 -1
- package/dist/react-native/api/beta/insights/index.d.ts +1 -1
- package/dist/react-native/api/beta/insights/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/insights/index.js.map +1 -1
- package/dist/react-native/api/beta/insights/operations.d.ts +3 -3
- package/dist/react-native/api/beta/insights/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/insights/operations.js +5 -2
- package/dist/react-native/api/beta/insights/operations.js.map +1 -1
- package/dist/react-native/api/beta/insights/options.d.ts +14 -1
- package/dist/react-native/api/beta/insights/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/insights/options.js.map +1 -1
- package/dist/react-native/api/beta/memoryStores/index.d.ts +2 -2
- package/dist/react-native/api/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/memoryStores/index.js +1 -1
- package/dist/react-native/api/beta/memoryStores/index.js.map +1 -1
- package/dist/react-native/api/beta/memoryStores/operations.d.ts +22 -2
- package/dist/react-native/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/memoryStores/operations.js +176 -2
- package/dist/react-native/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/react-native/api/beta/memoryStores/options.d.ts +40 -1
- package/dist/react-native/api/beta/memoryStores/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/memoryStores/options.js.map +1 -1
- package/dist/react-native/api/beta/models/index.d.ts +3 -0
- package/dist/react-native/api/beta/models/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/models/index.js +4 -0
- package/dist/react-native/api/beta/models/index.js.map +1 -0
- package/dist/react-native/api/beta/models/operations.d.ts +45 -0
- package/dist/react-native/api/beta/models/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/models/operations.js +305 -0
- package/dist/react-native/api/beta/models/operations.js.map +1 -0
- package/dist/react-native/api/beta/models/options.d.ts +42 -0
- package/dist/react-native/api/beta/models/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/models/options.js +4 -0
- package/dist/react-native/api/beta/models/options.js.map +1 -0
- package/dist/react-native/api/beta/routines/index.d.ts +3 -0
- package/dist/react-native/api/beta/routines/index.d.ts.map +1 -0
- package/dist/react-native/api/beta/routines/index.js +4 -0
- package/dist/react-native/api/beta/routines/index.js.map +1 -0
- package/dist/react-native/api/beta/routines/operations.d.ts +38 -0
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -0
- package/dist/react-native/api/beta/routines/operations.js +293 -0
- package/dist/react-native/api/beta/routines/operations.js.map +1 -0
- package/dist/react-native/api/beta/routines/options.d.ts +71 -0
- package/dist/react-native/api/beta/routines/options.d.ts.map +1 -0
- package/dist/react-native/api/beta/routines/options.js +4 -0
- package/dist/react-native/api/beta/routines/options.js.map +1 -0
- package/dist/react-native/api/beta/schedules/operations.d.ts +8 -8
- package/dist/react-native/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/schedules/operations.js +16 -16
- package/dist/react-native/api/beta/schedules/operations.js.map +1 -1
- package/dist/react-native/api/beta/skills/index.d.ts +2 -2
- package/dist/react-native/api/beta/skills/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/skills/index.js +1 -1
- package/dist/react-native/api/beta/skills/index.js.map +1 -1
- package/dist/react-native/api/beta/skills/operations.d.ts +38 -22
- package/dist/react-native/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/skills/operations.js +180 -49
- package/dist/react-native/api/beta/skills/operations.js.map +1 -1
- package/dist/react-native/api/beta/skills/options.d.ts +44 -32
- package/dist/react-native/api/beta/skills/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/skills/options.js.map +1 -1
- package/dist/react-native/api/beta/toolboxes/index.d.ts +1 -1
- package/dist/react-native/api/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/react-native/api/beta/toolboxes/index.js.map +1 -1
- package/dist/react-native/api/beta/toolboxes/operations.d.ts +15 -15
- package/dist/react-native/api/beta/toolboxes/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/toolboxes/operations.js +43 -36
- package/dist/react-native/api/beta/toolboxes/operations.js.map +1 -1
- package/dist/react-native/api/beta/toolboxes/options.d.ts +7 -5
- package/dist/react-native/api/beta/toolboxes/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/toolboxes/options.js.map +1 -1
- package/dist/react-native/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/react-native/api/evaluationRules/operations.js +3 -0
- package/dist/react-native/api/evaluationRules/operations.js.map +1 -1
- package/dist/react-native/api/evaluationRules/options.d.ts +2 -0
- 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/classic/agents/index.d.ts +12 -4
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +82 -9
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js +23 -8
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/datasets/index.d.ts +19 -0
- package/dist/react-native/classic/beta/datasets/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/datasets/index.js +18 -0
- package/dist/react-native/classic/beta/datasets/index.js.map +1 -0
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts +2 -2
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js +2 -2
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.d.ts +22 -2
- package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.js +8 -1
- package/dist/react-native/classic/beta/evaluators/index.js.map +1 -1
- package/dist/react-native/classic/beta/index.d.ts +9 -0
- package/dist/react-native/classic/beta/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/index.js +9 -0
- package/dist/react-native/classic/beta/index.js.map +1 -1
- package/dist/react-native/classic/beta/insights/index.d.ts +2 -2
- package/dist/react-native/classic/beta/insights/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/insights/index.js.map +1 -1
- package/dist/react-native/classic/beta/memoryStores/index.d.ts +12 -2
- package/dist/react-native/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/memoryStores/index.js +6 -1
- package/dist/react-native/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/react-native/classic/beta/models/index.d.ts +27 -0
- package/dist/react-native/classic/beta/models/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/models/index.js +21 -0
- package/dist/react-native/classic/beta/models/index.js.map +1 -0
- package/dist/react-native/classic/beta/routines/index.d.ts +25 -0
- package/dist/react-native/classic/beta/routines/index.d.ts.map +1 -0
- package/dist/react-native/classic/beta/routines/index.js +21 -0
- package/dist/react-native/classic/beta/routines/index.js.map +1 -0
- package/dist/react-native/classic/beta/schedules/index.d.ts +4 -4
- package/dist/react-native/classic/beta/schedules/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/schedules/index.js +4 -4
- package/dist/react-native/classic/beta/schedules/index.js.map +1 -1
- package/dist/react-native/classic/beta/skills/index.d.ts +21 -13
- package/dist/react-native/classic/beta/skills/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/skills/index.js +11 -7
- package/dist/react-native/classic/beta/skills/index.js.map +1 -1
- package/dist/react-native/classic/beta/toolboxes/index.d.ts +8 -8
- package/dist/react-native/classic/beta/toolboxes/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/toolboxes/index.js +7 -7
- package/dist/react-native/classic/beta/toolboxes/index.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +3 -0
- 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/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 +16 -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 +1817 -157
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +2013 -197
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts +17 -0
- package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/multipartHelpers.js +20 -0
- package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -0
- 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 +15 -1
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/package.json +21 -10
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
import { createFilePartDescriptor } from "../static-helpers/multipartHelpers.js";
|
|
3
4
|
import { serializeRecord } from "../static-helpers/serialization/serialize-record.js";
|
|
4
5
|
export function agentDeserializer(item) {
|
|
5
6
|
return {
|
|
@@ -9,7 +10,7 @@ export function agentDeserializer(item) {
|
|
|
9
10
|
versions: _agentVersionsDeserializer(item["versions"]),
|
|
10
11
|
agent_endpoint: !item["agent_endpoint"]
|
|
11
12
|
? item["agent_endpoint"]
|
|
12
|
-
:
|
|
13
|
+
: agentEndpointConfigDeserializer(item["agent_endpoint"]),
|
|
13
14
|
instance_identity: !item["instance_identity"]
|
|
14
15
|
? item["instance_identity"]
|
|
15
16
|
: agentIdentityDeserializer(item["instance_identity"]),
|
|
@@ -74,6 +75,8 @@ export function agentDefinitionUnionSerializer(item) {
|
|
|
74
75
|
return promptAgentDefinitionSerializer(item);
|
|
75
76
|
case "workflow":
|
|
76
77
|
return workflowAgentDefinitionSerializer(item);
|
|
78
|
+
case "external":
|
|
79
|
+
return externalAgentDefinitionSerializer(item);
|
|
77
80
|
default:
|
|
78
81
|
return agentDefinitionSerializer(item);
|
|
79
82
|
}
|
|
@@ -86,6 +89,8 @@ export function agentDefinitionUnionDeserializer(item) {
|
|
|
86
89
|
return promptAgentDefinitionDeserializer(item);
|
|
87
90
|
case "workflow":
|
|
88
91
|
return workflowAgentDefinitionDeserializer(item);
|
|
92
|
+
case "external":
|
|
93
|
+
return externalAgentDefinitionDeserializer(item);
|
|
89
94
|
default:
|
|
90
95
|
return agentDefinitionDeserializer(item);
|
|
91
96
|
}
|
|
@@ -103,13 +108,9 @@ export function hostedAgentDefinitionSerializer(item) {
|
|
|
103
108
|
kind: item["kind"],
|
|
104
109
|
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
105
110
|
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
106
|
-
container_protocol_versions: !item["container_protocol_versions"]
|
|
107
|
-
? item["container_protocol_versions"]
|
|
108
|
-
: protocolVersionRecordArraySerializer(item["container_protocol_versions"]),
|
|
109
111
|
cpu: item["cpu"],
|
|
110
112
|
memory: item["memory"],
|
|
111
113
|
environment_variables: item["environment_variables"],
|
|
112
|
-
image: item["image"],
|
|
113
114
|
container_configuration: !item["container_configuration"]
|
|
114
115
|
? item["container_configuration"]
|
|
115
116
|
: containerConfigurationSerializer(item["container_configuration"]),
|
|
@@ -119,6 +120,9 @@ export function hostedAgentDefinitionSerializer(item) {
|
|
|
119
120
|
code_configuration: !item["code_configuration"]
|
|
120
121
|
? item["code_configuration"]
|
|
121
122
|
: codeConfigurationSerializer(item["code_configuration"]),
|
|
123
|
+
telemetry_config: !item["telemetry_config"]
|
|
124
|
+
? item["telemetry_config"]
|
|
125
|
+
: telemetryConfigSerializer(item["telemetry_config"]),
|
|
122
126
|
};
|
|
123
127
|
}
|
|
124
128
|
export function hostedAgentDefinitionDeserializer(item) {
|
|
@@ -128,15 +132,11 @@ export function hostedAgentDefinitionDeserializer(item) {
|
|
|
128
132
|
? item["rai_config"]
|
|
129
133
|
: raiConfigDeserializer(item["rai_config"]),
|
|
130
134
|
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
131
|
-
container_protocol_versions: !item["container_protocol_versions"]
|
|
132
|
-
? item["container_protocol_versions"]
|
|
133
|
-
: protocolVersionRecordArrayDeserializer(item["container_protocol_versions"]),
|
|
134
135
|
cpu: item["cpu"],
|
|
135
136
|
memory: item["memory"],
|
|
136
137
|
environment_variables: !item["environment_variables"]
|
|
137
138
|
? item["environment_variables"]
|
|
138
139
|
: Object.fromEntries(Object.entries(item["environment_variables"]).map(([k, p]) => [k, p])),
|
|
139
|
-
image: item["image"],
|
|
140
140
|
container_configuration: !item["container_configuration"]
|
|
141
141
|
? item["container_configuration"]
|
|
142
142
|
: containerConfigurationDeserializer(item["container_configuration"]),
|
|
@@ -146,6 +146,9 @@ export function hostedAgentDefinitionDeserializer(item) {
|
|
|
146
146
|
code_configuration: !item["code_configuration"]
|
|
147
147
|
? item["code_configuration"]
|
|
148
148
|
: codeConfigurationDeserializer(item["code_configuration"]),
|
|
149
|
+
telemetry_config: !item["telemetry_config"]
|
|
150
|
+
? item["telemetry_config"]
|
|
151
|
+
: telemetryConfigDeserializer(item["telemetry_config"]),
|
|
149
152
|
};
|
|
150
153
|
}
|
|
151
154
|
export function toolUnionArraySerializer(result) {
|
|
@@ -190,8 +193,12 @@ export function toolUnionSerializer(item) {
|
|
|
190
193
|
return a2APreviewToolSerializer(item);
|
|
191
194
|
case "work_iq_preview":
|
|
192
195
|
return workIQPreviewToolSerializer(item);
|
|
196
|
+
case "fabric_iq_preview":
|
|
197
|
+
return fabricIQPreviewToolSerializer(item);
|
|
193
198
|
case "memory_search_preview":
|
|
194
199
|
return memorySearchPreviewToolSerializer(item);
|
|
200
|
+
case "toolbox_search_preview":
|
|
201
|
+
return toolboxSearchPreviewToolSerializer(item);
|
|
195
202
|
case "code_interpreter":
|
|
196
203
|
return codeInterpreterToolSerializer(item);
|
|
197
204
|
case "function":
|
|
@@ -250,8 +257,12 @@ export function toolUnionDeserializer(item) {
|
|
|
250
257
|
return a2APreviewToolDeserializer(item);
|
|
251
258
|
case "work_iq_preview":
|
|
252
259
|
return workIQPreviewToolDeserializer(item);
|
|
260
|
+
case "fabric_iq_preview":
|
|
261
|
+
return fabricIQPreviewToolDeserializer(item);
|
|
253
262
|
case "memory_search_preview":
|
|
254
263
|
return memorySearchPreviewToolDeserializer(item);
|
|
264
|
+
case "toolbox_search_preview":
|
|
265
|
+
return toolboxSearchPreviewToolDeserializer(item);
|
|
255
266
|
case "code_interpreter":
|
|
256
267
|
return codeInterpreterToolDeserializer(item);
|
|
257
268
|
case "function":
|
|
@@ -289,15 +300,48 @@ export function toolUnionDeserializer(item) {
|
|
|
289
300
|
export function bingGroundingToolSerializer(item) {
|
|
290
301
|
return {
|
|
291
302
|
type: item["type"],
|
|
303
|
+
name: item["name"],
|
|
304
|
+
description: item["description"],
|
|
305
|
+
tool_configs: !item["tool_configs"]
|
|
306
|
+
? item["tool_configs"]
|
|
307
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
292
308
|
bing_grounding: bingGroundingSearchToolParametersSerializer(item["bing_grounding"]),
|
|
293
309
|
};
|
|
294
310
|
}
|
|
295
311
|
export function bingGroundingToolDeserializer(item) {
|
|
296
312
|
return {
|
|
297
313
|
type: item["type"],
|
|
314
|
+
name: item["name"],
|
|
315
|
+
description: item["description"],
|
|
316
|
+
tool_configs: !item["tool_configs"]
|
|
317
|
+
? item["tool_configs"]
|
|
318
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
298
319
|
bing_grounding: bingGroundingSearchToolParametersDeserializer(item["bing_grounding"]),
|
|
299
320
|
};
|
|
300
321
|
}
|
|
322
|
+
export function toolConfigRecordSerializer(item) {
|
|
323
|
+
const result = {};
|
|
324
|
+
Object.keys(item).map((key) => {
|
|
325
|
+
result[key] = !item[key] ? item[key] : toolConfigSerializer(item[key]);
|
|
326
|
+
});
|
|
327
|
+
return result;
|
|
328
|
+
}
|
|
329
|
+
export function toolConfigRecordDeserializer(item) {
|
|
330
|
+
const result = {};
|
|
331
|
+
Object.keys(item).map((key) => {
|
|
332
|
+
result[key] = !item[key] ? item[key] : toolConfigDeserializer(item[key]);
|
|
333
|
+
});
|
|
334
|
+
return result;
|
|
335
|
+
}
|
|
336
|
+
export function toolConfigSerializer(item) {
|
|
337
|
+
return { pin: item["pin"], additional_search_text: item["additional_search_text"] };
|
|
338
|
+
}
|
|
339
|
+
export function toolConfigDeserializer(item) {
|
|
340
|
+
return {
|
|
341
|
+
pin: item["pin"],
|
|
342
|
+
additional_search_text: item["additional_search_text"],
|
|
343
|
+
};
|
|
344
|
+
}
|
|
301
345
|
export function bingGroundingSearchToolParametersSerializer(item) {
|
|
302
346
|
return {
|
|
303
347
|
search_configurations: bingGroundingSearchConfigurationArraySerializer(item["search_configurations"]),
|
|
@@ -339,12 +383,22 @@ export function bingGroundingSearchConfigurationDeserializer(item) {
|
|
|
339
383
|
export function microsoftFabricPreviewToolSerializer(item) {
|
|
340
384
|
return {
|
|
341
385
|
type: item["type"],
|
|
386
|
+
name: item["name"],
|
|
387
|
+
description: item["description"],
|
|
388
|
+
tool_configs: !item["tool_configs"]
|
|
389
|
+
? item["tool_configs"]
|
|
390
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
342
391
|
fabric_dataagent_preview: fabricDataAgentToolParametersSerializer(item["fabric_dataagent_preview"]),
|
|
343
392
|
};
|
|
344
393
|
}
|
|
345
394
|
export function microsoftFabricPreviewToolDeserializer(item) {
|
|
346
395
|
return {
|
|
347
396
|
type: item["type"],
|
|
397
|
+
name: item["name"],
|
|
398
|
+
description: item["description"],
|
|
399
|
+
tool_configs: !item["tool_configs"]
|
|
400
|
+
? item["tool_configs"]
|
|
401
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
348
402
|
fabric_dataagent_preview: fabricDataAgentToolParametersDeserializer(item["fabric_dataagent_preview"]),
|
|
349
403
|
};
|
|
350
404
|
}
|
|
@@ -383,12 +437,22 @@ export function toolProjectConnectionDeserializer(item) {
|
|
|
383
437
|
export function sharepointPreviewToolSerializer(item) {
|
|
384
438
|
return {
|
|
385
439
|
type: item["type"],
|
|
440
|
+
name: item["name"],
|
|
441
|
+
description: item["description"],
|
|
442
|
+
tool_configs: !item["tool_configs"]
|
|
443
|
+
? item["tool_configs"]
|
|
444
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
386
445
|
sharepoint_grounding_preview: sharepointGroundingToolParametersSerializer(item["sharepoint_grounding_preview"]),
|
|
387
446
|
};
|
|
388
447
|
}
|
|
389
448
|
export function sharepointPreviewToolDeserializer(item) {
|
|
390
449
|
return {
|
|
391
450
|
type: item["type"],
|
|
451
|
+
name: item["name"],
|
|
452
|
+
description: item["description"],
|
|
453
|
+
tool_configs: !item["tool_configs"]
|
|
454
|
+
? item["tool_configs"]
|
|
455
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
392
456
|
sharepoint_grounding_preview: sharepointGroundingToolParametersDeserializer(item["sharepoint_grounding_preview"]),
|
|
393
457
|
};
|
|
394
458
|
}
|
|
@@ -409,12 +473,22 @@ export function sharepointGroundingToolParametersDeserializer(item) {
|
|
|
409
473
|
export function azureAISearchToolSerializer(item) {
|
|
410
474
|
return {
|
|
411
475
|
type: item["type"],
|
|
476
|
+
name: item["name"],
|
|
477
|
+
description: item["description"],
|
|
478
|
+
tool_configs: !item["tool_configs"]
|
|
479
|
+
? item["tool_configs"]
|
|
480
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
412
481
|
azure_ai_search: azureAISearchToolResourceSerializer(item["azure_ai_search"]),
|
|
413
482
|
};
|
|
414
483
|
}
|
|
415
484
|
export function azureAISearchToolDeserializer(item) {
|
|
416
485
|
return {
|
|
417
486
|
type: item["type"],
|
|
487
|
+
name: item["name"],
|
|
488
|
+
description: item["description"],
|
|
489
|
+
tool_configs: !item["tool_configs"]
|
|
490
|
+
? item["tool_configs"]
|
|
491
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
418
492
|
azure_ai_search: azureAISearchToolResourceDeserializer(item["azure_ai_search"]),
|
|
419
493
|
};
|
|
420
494
|
}
|
|
@@ -457,12 +531,21 @@ export function aiSearchIndexResourceDeserializer(item) {
|
|
|
457
531
|
};
|
|
458
532
|
}
|
|
459
533
|
export function openApiToolSerializer(item) {
|
|
460
|
-
return {
|
|
534
|
+
return {
|
|
535
|
+
type: item["type"],
|
|
536
|
+
openapi: openApiFunctionDefinitionSerializer(item["openapi"]),
|
|
537
|
+
tool_configs: !item["tool_configs"]
|
|
538
|
+
? item["tool_configs"]
|
|
539
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
540
|
+
};
|
|
461
541
|
}
|
|
462
542
|
export function openApiToolDeserializer(item) {
|
|
463
543
|
return {
|
|
464
544
|
type: item["type"],
|
|
465
545
|
openapi: openApiFunctionDefinitionDeserializer(item["openapi"]),
|
|
546
|
+
tool_configs: !item["tool_configs"]
|
|
547
|
+
? item["tool_configs"]
|
|
548
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
466
549
|
};
|
|
467
550
|
}
|
|
468
551
|
export function openApiFunctionDefinitionSerializer(item) {
|
|
@@ -585,12 +668,22 @@ export function _openApiFunctionDefinitionFunctionDeserializer(item) {
|
|
|
585
668
|
export function bingCustomSearchPreviewToolSerializer(item) {
|
|
586
669
|
return {
|
|
587
670
|
type: item["type"],
|
|
671
|
+
name: item["name"],
|
|
672
|
+
description: item["description"],
|
|
673
|
+
tool_configs: !item["tool_configs"]
|
|
674
|
+
? item["tool_configs"]
|
|
675
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
588
676
|
bing_custom_search_preview: bingCustomSearchToolParametersSerializer(item["bing_custom_search_preview"]),
|
|
589
677
|
};
|
|
590
678
|
}
|
|
591
679
|
export function bingCustomSearchPreviewToolDeserializer(item) {
|
|
592
680
|
return {
|
|
593
681
|
type: item["type"],
|
|
682
|
+
name: item["name"],
|
|
683
|
+
description: item["description"],
|
|
684
|
+
tool_configs: !item["tool_configs"]
|
|
685
|
+
? item["tool_configs"]
|
|
686
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
594
687
|
bing_custom_search_preview: bingCustomSearchToolParametersDeserializer(item["bing_custom_search_preview"]),
|
|
595
688
|
};
|
|
596
689
|
}
|
|
@@ -637,12 +730,22 @@ export function bingCustomSearchConfigurationDeserializer(item) {
|
|
|
637
730
|
export function browserAutomationPreviewToolSerializer(item) {
|
|
638
731
|
return {
|
|
639
732
|
type: item["type"],
|
|
733
|
+
name: item["name"],
|
|
734
|
+
description: item["description"],
|
|
735
|
+
tool_configs: !item["tool_configs"]
|
|
736
|
+
? item["tool_configs"]
|
|
737
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
640
738
|
browser_automation_preview: browserAutomationToolParametersSerializer(item["browser_automation_preview"]),
|
|
641
739
|
};
|
|
642
740
|
}
|
|
643
741
|
export function browserAutomationPreviewToolDeserializer(item) {
|
|
644
742
|
return {
|
|
645
743
|
type: item["type"],
|
|
744
|
+
name: item["name"],
|
|
745
|
+
description: item["description"],
|
|
746
|
+
tool_configs: !item["tool_configs"]
|
|
747
|
+
? item["tool_configs"]
|
|
748
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
646
749
|
browser_automation_preview: browserAutomationToolParametersDeserializer(item["browser_automation_preview"]),
|
|
647
750
|
};
|
|
648
751
|
}
|
|
@@ -666,12 +769,18 @@ export function azureFunctionToolSerializer(item) {
|
|
|
666
769
|
return {
|
|
667
770
|
type: item["type"],
|
|
668
771
|
azure_function: azureFunctionDefinitionSerializer(item["azure_function"]),
|
|
772
|
+
tool_configs: !item["tool_configs"]
|
|
773
|
+
? item["tool_configs"]
|
|
774
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
669
775
|
};
|
|
670
776
|
}
|
|
671
777
|
export function azureFunctionToolDeserializer(item) {
|
|
672
778
|
return {
|
|
673
779
|
type: item["type"],
|
|
674
780
|
azure_function: azureFunctionDefinitionDeserializer(item["azure_function"]),
|
|
781
|
+
tool_configs: !item["tool_configs"]
|
|
782
|
+
? item["tool_configs"]
|
|
783
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
675
784
|
};
|
|
676
785
|
}
|
|
677
786
|
export function azureFunctionDefinitionSerializer(item) {
|
|
@@ -724,6 +833,9 @@ export function captureStructuredOutputsToolSerializer(item) {
|
|
|
724
833
|
type: item["type"],
|
|
725
834
|
name: item["name"],
|
|
726
835
|
description: item["description"],
|
|
836
|
+
tool_configs: !item["tool_configs"]
|
|
837
|
+
? item["tool_configs"]
|
|
838
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
727
839
|
outputs: structuredOutputDefinitionSerializer(item["outputs"]),
|
|
728
840
|
};
|
|
729
841
|
}
|
|
@@ -732,6 +844,9 @@ export function captureStructuredOutputsToolDeserializer(item) {
|
|
|
732
844
|
type: item["type"],
|
|
733
845
|
name: item["name"],
|
|
734
846
|
description: item["description"],
|
|
847
|
+
tool_configs: !item["tool_configs"]
|
|
848
|
+
? item["tool_configs"]
|
|
849
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
735
850
|
outputs: structuredOutputDefinitionDeserializer(item["outputs"]),
|
|
736
851
|
};
|
|
737
852
|
}
|
|
@@ -754,6 +869,11 @@ export function structuredOutputDefinitionDeserializer(item) {
|
|
|
754
869
|
export function a2APreviewToolSerializer(item) {
|
|
755
870
|
return {
|
|
756
871
|
type: item["type"],
|
|
872
|
+
name: item["name"],
|
|
873
|
+
description: item["description"],
|
|
874
|
+
tool_configs: !item["tool_configs"]
|
|
875
|
+
? item["tool_configs"]
|
|
876
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
757
877
|
base_url: item["base_url"],
|
|
758
878
|
agent_card_path: item["agent_card_path"],
|
|
759
879
|
project_connection_id: item["project_connection_id"],
|
|
@@ -762,6 +882,11 @@ export function a2APreviewToolSerializer(item) {
|
|
|
762
882
|
export function a2APreviewToolDeserializer(item) {
|
|
763
883
|
return {
|
|
764
884
|
type: item["type"],
|
|
885
|
+
name: item["name"],
|
|
886
|
+
description: item["description"],
|
|
887
|
+
tool_configs: !item["tool_configs"]
|
|
888
|
+
? item["tool_configs"]
|
|
889
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
765
890
|
base_url: item["base_url"],
|
|
766
891
|
agent_card_path: item["agent_card_path"],
|
|
767
892
|
project_connection_id: item["project_connection_id"],
|
|
@@ -770,30 +895,103 @@ export function a2APreviewToolDeserializer(item) {
|
|
|
770
895
|
export function workIQPreviewToolSerializer(item) {
|
|
771
896
|
return {
|
|
772
897
|
type: item["type"],
|
|
898
|
+
project_connection_id: item["project_connection_id"],
|
|
773
899
|
name: item["name"],
|
|
774
900
|
description: item["description"],
|
|
775
|
-
|
|
901
|
+
tool_configs: !item["tool_configs"]
|
|
902
|
+
? item["tool_configs"]
|
|
903
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
776
904
|
};
|
|
777
905
|
}
|
|
778
906
|
export function workIQPreviewToolDeserializer(item) {
|
|
779
907
|
return {
|
|
780
908
|
type: item["type"],
|
|
909
|
+
project_connection_id: item["project_connection_id"],
|
|
781
910
|
name: item["name"],
|
|
782
911
|
description: item["description"],
|
|
783
|
-
|
|
912
|
+
tool_configs: !item["tool_configs"]
|
|
913
|
+
? item["tool_configs"]
|
|
914
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
784
915
|
};
|
|
785
916
|
}
|
|
786
|
-
export function
|
|
787
|
-
return {
|
|
917
|
+
export function fabricIQPreviewToolSerializer(item) {
|
|
918
|
+
return {
|
|
919
|
+
type: item["type"],
|
|
920
|
+
project_connection_id: item["project_connection_id"],
|
|
921
|
+
server_label: item["server_label"],
|
|
922
|
+
server_url: item["server_url"],
|
|
923
|
+
require_approval: !item["require_approval"]
|
|
924
|
+
? item["require_approval"]
|
|
925
|
+
: _fabricIQPreviewToolRequireApprovalSerializer(item["require_approval"]),
|
|
926
|
+
name: item["name"],
|
|
927
|
+
description: item["description"],
|
|
928
|
+
tool_configs: !item["tool_configs"]
|
|
929
|
+
? item["tool_configs"]
|
|
930
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
931
|
+
};
|
|
788
932
|
}
|
|
789
|
-
export function
|
|
933
|
+
export function fabricIQPreviewToolDeserializer(item) {
|
|
790
934
|
return {
|
|
935
|
+
type: item["type"],
|
|
791
936
|
project_connection_id: item["project_connection_id"],
|
|
937
|
+
server_label: item["server_label"],
|
|
938
|
+
server_url: item["server_url"],
|
|
939
|
+
require_approval: !item["require_approval"]
|
|
940
|
+
? item["require_approval"]
|
|
941
|
+
: _fabricIQPreviewToolRequireApprovalDeserializer(item["require_approval"]),
|
|
942
|
+
name: item["name"],
|
|
943
|
+
description: item["description"],
|
|
944
|
+
tool_configs: !item["tool_configs"]
|
|
945
|
+
? item["tool_configs"]
|
|
946
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
947
|
+
};
|
|
948
|
+
}
|
|
949
|
+
export function _fabricIQPreviewToolRequireApprovalSerializer(item) {
|
|
950
|
+
return item;
|
|
951
|
+
}
|
|
952
|
+
export function _fabricIQPreviewToolRequireApprovalDeserializer(item) {
|
|
953
|
+
return item;
|
|
954
|
+
}
|
|
955
|
+
export function mcpToolRequireApprovalSerializer(item) {
|
|
956
|
+
return {
|
|
957
|
+
always: !item["always"] ? item["always"] : mcpToolFilterSerializer(item["always"]),
|
|
958
|
+
never: !item["never"] ? item["never"] : mcpToolFilterSerializer(item["never"]),
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
export function mcpToolRequireApprovalDeserializer(item) {
|
|
962
|
+
return {
|
|
963
|
+
always: !item["always"] ? item["always"] : mcpToolFilterDeserializer(item["always"]),
|
|
964
|
+
never: !item["never"] ? item["never"] : mcpToolFilterDeserializer(item["never"]),
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
export function mcpToolFilterSerializer(item) {
|
|
968
|
+
return {
|
|
969
|
+
tool_names: !item["tool_names"]
|
|
970
|
+
? item["tool_names"]
|
|
971
|
+
: item["tool_names"].map((p) => {
|
|
972
|
+
return p;
|
|
973
|
+
}),
|
|
974
|
+
read_only: item["read_only"],
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
export function mcpToolFilterDeserializer(item) {
|
|
978
|
+
return {
|
|
979
|
+
tool_names: !item["tool_names"]
|
|
980
|
+
? item["tool_names"]
|
|
981
|
+
: item["tool_names"].map((p) => {
|
|
982
|
+
return p;
|
|
983
|
+
}),
|
|
984
|
+
read_only: item["read_only"],
|
|
792
985
|
};
|
|
793
986
|
}
|
|
794
987
|
export function memorySearchPreviewToolSerializer(item) {
|
|
795
988
|
return {
|
|
796
989
|
type: item["type"],
|
|
990
|
+
name: item["name"],
|
|
991
|
+
description: item["description"],
|
|
992
|
+
tool_configs: !item["tool_configs"]
|
|
993
|
+
? item["tool_configs"]
|
|
994
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
797
995
|
memory_store_name: item["memory_store_name"],
|
|
798
996
|
scope: item["scope"],
|
|
799
997
|
search_options: !item["search_options"]
|
|
@@ -805,6 +1003,11 @@ export function memorySearchPreviewToolSerializer(item) {
|
|
|
805
1003
|
export function memorySearchPreviewToolDeserializer(item) {
|
|
806
1004
|
return {
|
|
807
1005
|
type: item["type"],
|
|
1006
|
+
name: item["name"],
|
|
1007
|
+
description: item["description"],
|
|
1008
|
+
tool_configs: !item["tool_configs"]
|
|
1009
|
+
? item["tool_configs"]
|
|
1010
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
808
1011
|
memory_store_name: item["memory_store_name"],
|
|
809
1012
|
scope: item["scope"],
|
|
810
1013
|
search_options: !item["search_options"]
|
|
@@ -821,11 +1024,34 @@ export function memorySearchOptionsDeserializer(item) {
|
|
|
821
1024
|
max_memories: item["max_memories"],
|
|
822
1025
|
};
|
|
823
1026
|
}
|
|
1027
|
+
export function toolboxSearchPreviewToolSerializer(item) {
|
|
1028
|
+
return {
|
|
1029
|
+
type: item["type"],
|
|
1030
|
+
name: item["name"],
|
|
1031
|
+
description: item["description"],
|
|
1032
|
+
tool_configs: !item["tool_configs"]
|
|
1033
|
+
? item["tool_configs"]
|
|
1034
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1035
|
+
};
|
|
1036
|
+
}
|
|
1037
|
+
export function toolboxSearchPreviewToolDeserializer(item) {
|
|
1038
|
+
return {
|
|
1039
|
+
type: item["type"],
|
|
1040
|
+
name: item["name"],
|
|
1041
|
+
description: item["description"],
|
|
1042
|
+
tool_configs: !item["tool_configs"]
|
|
1043
|
+
? item["tool_configs"]
|
|
1044
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
824
1047
|
export function codeInterpreterToolSerializer(item) {
|
|
825
1048
|
return {
|
|
826
1049
|
type: item["type"],
|
|
827
1050
|
name: item["name"],
|
|
828
1051
|
description: item["description"],
|
|
1052
|
+
tool_configs: !item["tool_configs"]
|
|
1053
|
+
? item["tool_configs"]
|
|
1054
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
829
1055
|
container: !item["container"]
|
|
830
1056
|
? item["container"]
|
|
831
1057
|
: _codeInterpreterToolContainerSerializer(item["container"]),
|
|
@@ -836,6 +1062,9 @@ export function codeInterpreterToolDeserializer(item) {
|
|
|
836
1062
|
type: item["type"],
|
|
837
1063
|
name: item["name"],
|
|
838
1064
|
description: item["description"],
|
|
1065
|
+
tool_configs: !item["tool_configs"]
|
|
1066
|
+
? item["tool_configs"]
|
|
1067
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
839
1068
|
container: !item["container"]
|
|
840
1069
|
? item["container"]
|
|
841
1070
|
: _codeInterpreterToolContainerDeserializer(item["container"]),
|
|
@@ -980,6 +1209,9 @@ export function fileSearchToolSerializer(item) {
|
|
|
980
1209
|
filters: !item["filters"] ? item["filters"] : filtersSerializer(item["filters"]),
|
|
981
1210
|
name: item["name"],
|
|
982
1211
|
description: item["description"],
|
|
1212
|
+
tool_configs: !item["tool_configs"]
|
|
1213
|
+
? item["tool_configs"]
|
|
1214
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
983
1215
|
};
|
|
984
1216
|
}
|
|
985
1217
|
export function fileSearchToolDeserializer(item) {
|
|
@@ -993,6 +1225,9 @@ export function fileSearchToolDeserializer(item) {
|
|
|
993
1225
|
filters: !item["filters"] ? item["filters"] : filtersDeserializer(item["filters"]),
|
|
994
1226
|
name: item["name"],
|
|
995
1227
|
description: item["description"],
|
|
1228
|
+
tool_configs: !item["tool_configs"]
|
|
1229
|
+
? item["tool_configs"]
|
|
1230
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
996
1231
|
};
|
|
997
1232
|
}
|
|
998
1233
|
export function rankingOptionsSerializer(item) {
|
|
@@ -1032,61 +1267,64 @@ export function comparisonFilterSerializer(item) {
|
|
|
1032
1267
|
return {
|
|
1033
1268
|
type: item["type"],
|
|
1034
1269
|
key: item["key"],
|
|
1035
|
-
value:
|
|
1270
|
+
value: _fileSearchToolFiltersValueSerializer(item["value"]),
|
|
1036
1271
|
};
|
|
1037
1272
|
}
|
|
1038
1273
|
export function comparisonFilterDeserializer(item) {
|
|
1039
1274
|
return {
|
|
1040
1275
|
type: item["type"],
|
|
1041
1276
|
key: item["key"],
|
|
1042
|
-
value:
|
|
1277
|
+
value: _fileSearchToolFiltersValueDeserializer(item["value"]),
|
|
1043
1278
|
};
|
|
1044
1279
|
}
|
|
1045
|
-
export function
|
|
1280
|
+
export function _fileSearchToolFiltersValueSerializer(item) {
|
|
1046
1281
|
return item;
|
|
1047
1282
|
}
|
|
1048
|
-
export function
|
|
1283
|
+
export function _fileSearchToolFiltersValueDeserializer(item) {
|
|
1049
1284
|
return item;
|
|
1050
1285
|
}
|
|
1051
|
-
export function
|
|
1286
|
+
export function _fileSearchToolFiltersValue1ArraySerializer(result) {
|
|
1052
1287
|
return result.map((item) => {
|
|
1053
|
-
return
|
|
1288
|
+
return _fileSearchToolFiltersValue1Serializer(item);
|
|
1054
1289
|
});
|
|
1055
1290
|
}
|
|
1056
|
-
export function
|
|
1291
|
+
export function _fileSearchToolFiltersValue1ArrayDeserializer(result) {
|
|
1057
1292
|
return result.map((item) => {
|
|
1058
|
-
return
|
|
1293
|
+
return _fileSearchToolFiltersValue1Deserializer(item);
|
|
1059
1294
|
});
|
|
1060
1295
|
}
|
|
1061
|
-
export function
|
|
1296
|
+
export function _fileSearchToolFiltersValue1Serializer(item) {
|
|
1062
1297
|
return item;
|
|
1063
1298
|
}
|
|
1064
|
-
export function
|
|
1299
|
+
export function _fileSearchToolFiltersValue1Deserializer(item) {
|
|
1065
1300
|
return item;
|
|
1066
1301
|
}
|
|
1067
1302
|
export function compoundFilterSerializer(item) {
|
|
1068
|
-
return {
|
|
1303
|
+
return {
|
|
1304
|
+
type: item["type"],
|
|
1305
|
+
filters: _fileSearchToolFiltersFilterArraySerializer(item["filters"]),
|
|
1306
|
+
};
|
|
1069
1307
|
}
|
|
1070
1308
|
export function compoundFilterDeserializer(item) {
|
|
1071
1309
|
return {
|
|
1072
1310
|
type: item["type"],
|
|
1073
|
-
filters:
|
|
1311
|
+
filters: _fileSearchToolFiltersFilterArrayDeserializer(item["filters"]),
|
|
1074
1312
|
};
|
|
1075
1313
|
}
|
|
1076
|
-
export function
|
|
1314
|
+
export function _fileSearchToolFiltersFilterArraySerializer(result) {
|
|
1077
1315
|
return result.map((item) => {
|
|
1078
|
-
return
|
|
1316
|
+
return _fileSearchToolFiltersFilterSerializer(item);
|
|
1079
1317
|
});
|
|
1080
1318
|
}
|
|
1081
|
-
export function
|
|
1319
|
+
export function _fileSearchToolFiltersFilterArrayDeserializer(result) {
|
|
1082
1320
|
return result.map((item) => {
|
|
1083
|
-
return
|
|
1321
|
+
return _fileSearchToolFiltersFilterDeserializer(item);
|
|
1084
1322
|
});
|
|
1085
1323
|
}
|
|
1086
|
-
export function
|
|
1324
|
+
export function _fileSearchToolFiltersFilterSerializer(item) {
|
|
1087
1325
|
return item;
|
|
1088
1326
|
}
|
|
1089
|
-
export function
|
|
1327
|
+
export function _fileSearchToolFiltersFilterDeserializer(item) {
|
|
1090
1328
|
return item;
|
|
1091
1329
|
}
|
|
1092
1330
|
export function computerUsePreviewToolSerializer(item) {
|
|
@@ -1115,6 +1353,9 @@ export function webSearchToolSerializer(item) {
|
|
|
1115
1353
|
search_context_size: item["search_context_size"],
|
|
1116
1354
|
name: item["name"],
|
|
1117
1355
|
description: item["description"],
|
|
1356
|
+
tool_configs: !item["tool_configs"]
|
|
1357
|
+
? item["tool_configs"]
|
|
1358
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1118
1359
|
custom_search_configuration: !item["custom_search_configuration"]
|
|
1119
1360
|
? item["custom_search_configuration"]
|
|
1120
1361
|
: webSearchConfigurationSerializer(item["custom_search_configuration"]),
|
|
@@ -1130,6 +1371,9 @@ export function webSearchToolDeserializer(item) {
|
|
|
1130
1371
|
search_context_size: item["search_context_size"],
|
|
1131
1372
|
name: item["name"],
|
|
1132
1373
|
description: item["description"],
|
|
1374
|
+
tool_configs: !item["tool_configs"]
|
|
1375
|
+
? item["tool_configs"]
|
|
1376
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1133
1377
|
custom_search_configuration: !item["custom_search_configuration"]
|
|
1134
1378
|
? item["custom_search_configuration"]
|
|
1135
1379
|
: webSearchConfigurationDeserializer(item["custom_search_configuration"]),
|
|
@@ -1192,6 +1436,9 @@ export function mcpToolSerializer(item) {
|
|
|
1192
1436
|
: _mcpToolRequireApprovalSerializer(item["require_approval"]),
|
|
1193
1437
|
defer_loading: item["defer_loading"],
|
|
1194
1438
|
project_connection_id: item["project_connection_id"],
|
|
1439
|
+
tool_configs: !item["tool_configs"]
|
|
1440
|
+
? item["tool_configs"]
|
|
1441
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1195
1442
|
};
|
|
1196
1443
|
}
|
|
1197
1444
|
export function mcpToolDeserializer(item) {
|
|
@@ -1211,6 +1458,9 @@ export function mcpToolDeserializer(item) {
|
|
|
1211
1458
|
: _mcpToolRequireApprovalDeserializer(item["require_approval"]),
|
|
1212
1459
|
defer_loading: item["defer_loading"],
|
|
1213
1460
|
project_connection_id: item["project_connection_id"],
|
|
1461
|
+
tool_configs: !item["tool_configs"]
|
|
1462
|
+
? item["tool_configs"]
|
|
1463
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1214
1464
|
};
|
|
1215
1465
|
}
|
|
1216
1466
|
export function _mcpToolAllowedToolsSerializer(item) {
|
|
@@ -1219,36 +1469,12 @@ export function _mcpToolAllowedToolsSerializer(item) {
|
|
|
1219
1469
|
export function _mcpToolAllowedToolsDeserializer(item) {
|
|
1220
1470
|
return item;
|
|
1221
1471
|
}
|
|
1222
|
-
export function mcpToolFilterSerializer(item) {
|
|
1223
|
-
return {
|
|
1224
|
-
tool_names: item["tool_names"],
|
|
1225
|
-
read_only: item["read_only"],
|
|
1226
|
-
};
|
|
1227
|
-
}
|
|
1228
|
-
export function mcpToolFilterDeserializer(item) {
|
|
1229
|
-
return {
|
|
1230
|
-
tool_names: item["tool_names"],
|
|
1231
|
-
read_only: item["read_only"],
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1234
1472
|
export function _mcpToolRequireApprovalSerializer(item) {
|
|
1235
1473
|
return item;
|
|
1236
1474
|
}
|
|
1237
1475
|
export function _mcpToolRequireApprovalDeserializer(item) {
|
|
1238
1476
|
return item;
|
|
1239
1477
|
}
|
|
1240
|
-
export function mcpToolRequireApprovalSerializer(item) {
|
|
1241
|
-
return {
|
|
1242
|
-
always: !item["always"] ? item["always"] : mcpToolFilterSerializer(item["always"]),
|
|
1243
|
-
never: !item["never"] ? item["never"] : mcpToolFilterSerializer(item["never"]),
|
|
1244
|
-
};
|
|
1245
|
-
}
|
|
1246
|
-
export function mcpToolRequireApprovalDeserializer(item) {
|
|
1247
|
-
return {
|
|
1248
|
-
always: !item["always"] ? item["always"] : mcpToolFilterDeserializer(item["always"]),
|
|
1249
|
-
never: !item["never"] ? item["never"] : mcpToolFilterDeserializer(item["never"]),
|
|
1250
|
-
};
|
|
1251
|
-
}
|
|
1252
1478
|
export function imageGenToolSerializer(item) {
|
|
1253
1479
|
return {
|
|
1254
1480
|
type: item["type"],
|
|
@@ -1267,6 +1493,9 @@ export function imageGenToolSerializer(item) {
|
|
|
1267
1493
|
action: item["action"],
|
|
1268
1494
|
name: item["name"],
|
|
1269
1495
|
description: item["description"],
|
|
1496
|
+
tool_configs: !item["tool_configs"]
|
|
1497
|
+
? item["tool_configs"]
|
|
1498
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1270
1499
|
};
|
|
1271
1500
|
}
|
|
1272
1501
|
export function imageGenToolDeserializer(item) {
|
|
@@ -1287,6 +1516,9 @@ export function imageGenToolDeserializer(item) {
|
|
|
1287
1516
|
action: item["action"],
|
|
1288
1517
|
name: item["name"],
|
|
1289
1518
|
description: item["description"],
|
|
1519
|
+
tool_configs: !item["tool_configs"]
|
|
1520
|
+
? item["tool_configs"]
|
|
1521
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1290
1522
|
};
|
|
1291
1523
|
}
|
|
1292
1524
|
export function imageGenToolInputImageMaskSerializer(item) {
|
|
@@ -1299,13 +1531,23 @@ export function imageGenToolInputImageMaskDeserializer(item) {
|
|
|
1299
1531
|
};
|
|
1300
1532
|
}
|
|
1301
1533
|
export function localShellToolParamSerializer(item) {
|
|
1302
|
-
return {
|
|
1534
|
+
return {
|
|
1535
|
+
type: item["type"],
|
|
1536
|
+
name: item["name"],
|
|
1537
|
+
description: item["description"],
|
|
1538
|
+
tool_configs: !item["tool_configs"]
|
|
1539
|
+
? item["tool_configs"]
|
|
1540
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1541
|
+
};
|
|
1303
1542
|
}
|
|
1304
1543
|
export function localShellToolParamDeserializer(item) {
|
|
1305
1544
|
return {
|
|
1306
1545
|
type: item["type"],
|
|
1307
1546
|
name: item["name"],
|
|
1308
1547
|
description: item["description"],
|
|
1548
|
+
tool_configs: !item["tool_configs"]
|
|
1549
|
+
? item["tool_configs"]
|
|
1550
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1309
1551
|
};
|
|
1310
1552
|
}
|
|
1311
1553
|
export function functionShellToolParamSerializer(item) {
|
|
@@ -1316,6 +1558,9 @@ export function functionShellToolParamSerializer(item) {
|
|
|
1316
1558
|
: functionShellToolParamEnvironmentUnionSerializer(item["environment"]),
|
|
1317
1559
|
name: item["name"],
|
|
1318
1560
|
description: item["description"],
|
|
1561
|
+
tool_configs: !item["tool_configs"]
|
|
1562
|
+
? item["tool_configs"]
|
|
1563
|
+
: toolConfigRecordSerializer(item["tool_configs"]),
|
|
1319
1564
|
};
|
|
1320
1565
|
}
|
|
1321
1566
|
export function functionShellToolParamDeserializer(item) {
|
|
@@ -1326,6 +1571,9 @@ export function functionShellToolParamDeserializer(item) {
|
|
|
1326
1571
|
: functionShellToolParamEnvironmentUnionDeserializer(item["environment"]),
|
|
1327
1572
|
name: item["name"],
|
|
1328
1573
|
description: item["description"],
|
|
1574
|
+
tool_configs: !item["tool_configs"]
|
|
1575
|
+
? item["tool_configs"]
|
|
1576
|
+
: toolConfigRecordDeserializer(item["tool_configs"]),
|
|
1329
1577
|
};
|
|
1330
1578
|
}
|
|
1331
1579
|
export function functionShellToolParamEnvironmentSerializer(item) {
|
|
@@ -1707,6 +1955,14 @@ export function toolSearchToolParamDeserializer(item) {
|
|
|
1707
1955
|
: emptyModelParamDeserializer(item["parameters"]),
|
|
1708
1956
|
};
|
|
1709
1957
|
}
|
|
1958
|
+
export function containerConfigurationSerializer(item) {
|
|
1959
|
+
return { image: item["image"] };
|
|
1960
|
+
}
|
|
1961
|
+
export function containerConfigurationDeserializer(item) {
|
|
1962
|
+
return {
|
|
1963
|
+
image: item["image"],
|
|
1964
|
+
};
|
|
1965
|
+
}
|
|
1710
1966
|
export function protocolVersionRecordArraySerializer(result) {
|
|
1711
1967
|
return result.map((item) => {
|
|
1712
1968
|
return protocolVersionRecordSerializer(item);
|
|
@@ -1726,20 +1982,13 @@ export function protocolVersionRecordDeserializer(item) {
|
|
|
1726
1982
|
version: item["version"],
|
|
1727
1983
|
};
|
|
1728
1984
|
}
|
|
1729
|
-
export function containerConfigurationSerializer(item) {
|
|
1730
|
-
return { image: item["image"] };
|
|
1731
|
-
}
|
|
1732
|
-
export function containerConfigurationDeserializer(item) {
|
|
1733
|
-
return {
|
|
1734
|
-
image: item["image"],
|
|
1735
|
-
};
|
|
1736
|
-
}
|
|
1737
1985
|
export function codeConfigurationSerializer(item) {
|
|
1738
1986
|
return {
|
|
1739
1987
|
runtime: item["runtime"],
|
|
1740
1988
|
entry_point: item["entry_point"].map((p) => {
|
|
1741
1989
|
return p;
|
|
1742
1990
|
}),
|
|
1991
|
+
dependency_resolution: item["dependency_resolution"],
|
|
1743
1992
|
};
|
|
1744
1993
|
}
|
|
1745
1994
|
export function codeConfigurationDeserializer(item) {
|
|
@@ -1748,6 +1997,122 @@ export function codeConfigurationDeserializer(item) {
|
|
|
1748
1997
|
entry_point: item["entry_point"].map((p) => {
|
|
1749
1998
|
return p;
|
|
1750
1999
|
}),
|
|
2000
|
+
dependency_resolution: item["dependency_resolution"],
|
|
2001
|
+
content_hash: item["content_hash"],
|
|
2002
|
+
};
|
|
2003
|
+
}
|
|
2004
|
+
export function telemetryConfigSerializer(item) {
|
|
2005
|
+
return { endpoints: telemetryEndpointUnionArraySerializer(item["endpoints"]) };
|
|
2006
|
+
}
|
|
2007
|
+
export function telemetryConfigDeserializer(item) {
|
|
2008
|
+
return {
|
|
2009
|
+
endpoints: telemetryEndpointUnionArrayDeserializer(item["endpoints"]),
|
|
2010
|
+
};
|
|
2011
|
+
}
|
|
2012
|
+
export function telemetryEndpointUnionArraySerializer(result) {
|
|
2013
|
+
return result.map((item) => {
|
|
2014
|
+
return telemetryEndpointUnionSerializer(item);
|
|
2015
|
+
});
|
|
2016
|
+
}
|
|
2017
|
+
export function telemetryEndpointUnionArrayDeserializer(result) {
|
|
2018
|
+
return result.map((item) => {
|
|
2019
|
+
return telemetryEndpointUnionDeserializer(item);
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
export function telemetryEndpointSerializer(item) {
|
|
2023
|
+
return {
|
|
2024
|
+
kind: item["kind"],
|
|
2025
|
+
data: item["data"].map((p) => {
|
|
2026
|
+
return p;
|
|
2027
|
+
}),
|
|
2028
|
+
auth: !item["auth"] ? item["auth"] : telemetryEndpointAuthUnionSerializer(item["auth"]),
|
|
2029
|
+
};
|
|
2030
|
+
}
|
|
2031
|
+
export function telemetryEndpointDeserializer(item) {
|
|
2032
|
+
return {
|
|
2033
|
+
kind: item["kind"],
|
|
2034
|
+
data: item["data"].map((p) => {
|
|
2035
|
+
return p;
|
|
2036
|
+
}),
|
|
2037
|
+
auth: !item["auth"] ? item["auth"] : telemetryEndpointAuthUnionDeserializer(item["auth"]),
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
export function telemetryEndpointUnionSerializer(item) {
|
|
2041
|
+
switch (item.kind) {
|
|
2042
|
+
case "OTLP":
|
|
2043
|
+
return otlpTelemetryEndpointSerializer(item);
|
|
2044
|
+
default:
|
|
2045
|
+
return telemetryEndpointSerializer(item);
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
export function telemetryEndpointUnionDeserializer(item) {
|
|
2049
|
+
switch (item["kind"]) {
|
|
2050
|
+
case "OTLP":
|
|
2051
|
+
return otlpTelemetryEndpointDeserializer(item);
|
|
2052
|
+
default:
|
|
2053
|
+
return telemetryEndpointDeserializer(item);
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
export function telemetryEndpointAuthSerializer(item) {
|
|
2057
|
+
return { type: item["type"] };
|
|
2058
|
+
}
|
|
2059
|
+
export function telemetryEndpointAuthDeserializer(item) {
|
|
2060
|
+
return {
|
|
2061
|
+
type: item["type"],
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
export function telemetryEndpointAuthUnionSerializer(item) {
|
|
2065
|
+
switch (item.type) {
|
|
2066
|
+
case "header":
|
|
2067
|
+
return headerTelemetryEndpointAuthSerializer(item);
|
|
2068
|
+
default:
|
|
2069
|
+
return telemetryEndpointAuthSerializer(item);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
export function telemetryEndpointAuthUnionDeserializer(item) {
|
|
2073
|
+
switch (item["type"]) {
|
|
2074
|
+
case "header":
|
|
2075
|
+
return headerTelemetryEndpointAuthDeserializer(item);
|
|
2076
|
+
default:
|
|
2077
|
+
return telemetryEndpointAuthDeserializer(item);
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
export function headerTelemetryEndpointAuthSerializer(item) {
|
|
2081
|
+
return {
|
|
2082
|
+
type: item["type"],
|
|
2083
|
+
header_name: item["header_name"],
|
|
2084
|
+
secret_id: item["secret_id"],
|
|
2085
|
+
secret_key: item["secret_key"],
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
export function headerTelemetryEndpointAuthDeserializer(item) {
|
|
2089
|
+
return {
|
|
2090
|
+
type: item["type"],
|
|
2091
|
+
header_name: item["header_name"],
|
|
2092
|
+
secret_id: item["secret_id"],
|
|
2093
|
+
secret_key: item["secret_key"],
|
|
2094
|
+
};
|
|
2095
|
+
}
|
|
2096
|
+
export function otlpTelemetryEndpointSerializer(item) {
|
|
2097
|
+
return {
|
|
2098
|
+
kind: item["kind"],
|
|
2099
|
+
data: item["data"].map((p) => {
|
|
2100
|
+
return p;
|
|
2101
|
+
}),
|
|
2102
|
+
auth: !item["auth"] ? item["auth"] : telemetryEndpointAuthUnionSerializer(item["auth"]),
|
|
2103
|
+
endpoint: item["endpoint"],
|
|
2104
|
+
protocol: item["protocol"],
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
export function otlpTelemetryEndpointDeserializer(item) {
|
|
2108
|
+
return {
|
|
2109
|
+
kind: item["kind"],
|
|
2110
|
+
data: item["data"].map((p) => {
|
|
2111
|
+
return p;
|
|
2112
|
+
}),
|
|
2113
|
+
auth: !item["auth"] ? item["auth"] : telemetryEndpointAuthUnionDeserializer(item["auth"]),
|
|
2114
|
+
endpoint: item["endpoint"],
|
|
2115
|
+
protocol: item["protocol"],
|
|
1751
2116
|
};
|
|
1752
2117
|
}
|
|
1753
2118
|
export function promptAgentDefinitionSerializer(item) {
|
|
@@ -2136,6 +2501,22 @@ export function workflowAgentDefinitionDeserializer(item) {
|
|
|
2136
2501
|
workflow: item["workflow"],
|
|
2137
2502
|
};
|
|
2138
2503
|
}
|
|
2504
|
+
export function externalAgentDefinitionSerializer(item) {
|
|
2505
|
+
return {
|
|
2506
|
+
kind: item["kind"],
|
|
2507
|
+
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
2508
|
+
otel_agent_id: item["otel_agent_id"],
|
|
2509
|
+
};
|
|
2510
|
+
}
|
|
2511
|
+
export function externalAgentDefinitionDeserializer(item) {
|
|
2512
|
+
return {
|
|
2513
|
+
kind: item["kind"],
|
|
2514
|
+
rai_config: !item["rai_config"]
|
|
2515
|
+
? item["rai_config"]
|
|
2516
|
+
: raiConfigDeserializer(item["rai_config"]),
|
|
2517
|
+
otel_agent_id: item["otel_agent_id"],
|
|
2518
|
+
};
|
|
2519
|
+
}
|
|
2139
2520
|
export function agentIdentityDeserializer(item) {
|
|
2140
2521
|
return {
|
|
2141
2522
|
principal_id: item["principal_id"],
|
|
@@ -2175,7 +2556,7 @@ export function managedAgentIdentityBlueprintReferenceDeserializer(item) {
|
|
|
2175
2556
|
blueprint_id: item["blueprint_id"],
|
|
2176
2557
|
};
|
|
2177
2558
|
}
|
|
2178
|
-
export function
|
|
2559
|
+
export function agentEndpointConfigSerializer(item) {
|
|
2179
2560
|
return {
|
|
2180
2561
|
version_selector: !item["version_selector"]
|
|
2181
2562
|
? item["version_selector"]
|
|
@@ -2190,7 +2571,7 @@ export function agentEndpointSerializer(item) {
|
|
|
2190
2571
|
: agentEndpointAuthorizationSchemeUnionArraySerializer(item["authorization_schemes"]),
|
|
2191
2572
|
};
|
|
2192
2573
|
}
|
|
2193
|
-
export function
|
|
2574
|
+
export function agentEndpointConfigDeserializer(item) {
|
|
2194
2575
|
return {
|
|
2195
2576
|
version_selector: !item["version_selector"]
|
|
2196
2577
|
? item["version_selector"]
|
|
@@ -2309,13 +2690,17 @@ export function agentEndpointAuthorizationSchemeUnionDeserializer(item) {
|
|
|
2309
2690
|
export function entraAuthorizationSchemeSerializer(item) {
|
|
2310
2691
|
return {
|
|
2311
2692
|
type: item["type"],
|
|
2312
|
-
isolation_key_source:
|
|
2693
|
+
isolation_key_source: !item["isolation_key_source"]
|
|
2694
|
+
? item["isolation_key_source"]
|
|
2695
|
+
: isolationKeySourceUnionSerializer(item["isolation_key_source"]),
|
|
2313
2696
|
};
|
|
2314
2697
|
}
|
|
2315
2698
|
export function entraAuthorizationSchemeDeserializer(item) {
|
|
2316
2699
|
return {
|
|
2317
2700
|
type: item["type"],
|
|
2318
|
-
isolation_key_source:
|
|
2701
|
+
isolation_key_source: !item["isolation_key_source"]
|
|
2702
|
+
? item["isolation_key_source"]
|
|
2703
|
+
: isolationKeySourceUnionDeserializer(item["isolation_key_source"]),
|
|
2319
2704
|
};
|
|
2320
2705
|
}
|
|
2321
2706
|
export function isolationKeySourceSerializer(item) {
|
|
@@ -2355,17 +2740,11 @@ export function entraIsolationKeySourceDeserializer(item) {
|
|
|
2355
2740
|
};
|
|
2356
2741
|
}
|
|
2357
2742
|
export function headerIsolationKeySourceSerializer(item) {
|
|
2358
|
-
return {
|
|
2359
|
-
kind: item["kind"],
|
|
2360
|
-
user_isolation_key: item["user_isolation_key"],
|
|
2361
|
-
chat_isolation_key: item["chat_isolation_key"],
|
|
2362
|
-
};
|
|
2743
|
+
return { kind: item["kind"] };
|
|
2363
2744
|
}
|
|
2364
2745
|
export function headerIsolationKeySourceDeserializer(item) {
|
|
2365
2746
|
return {
|
|
2366
2747
|
kind: item["kind"],
|
|
2367
|
-
user_isolation_key: item["user_isolation_key"],
|
|
2368
|
-
chat_isolation_key: item["chat_isolation_key"],
|
|
2369
2748
|
};
|
|
2370
2749
|
}
|
|
2371
2750
|
export function botServiceAuthorizationSchemeSerializer(item) {
|
|
@@ -2444,23 +2823,23 @@ export function agentCardSkillDeserializer(item) {
|
|
|
2444
2823
|
}
|
|
2445
2824
|
export function apiErrorResponseDeserializer(item) {
|
|
2446
2825
|
return {
|
|
2447
|
-
error:
|
|
2826
|
+
error: apiErrorDeserializer(item["error"]),
|
|
2448
2827
|
};
|
|
2449
2828
|
}
|
|
2450
|
-
export function
|
|
2829
|
+
export function apiErrorDeserializer(item) {
|
|
2451
2830
|
return {
|
|
2452
2831
|
code: item["code"],
|
|
2453
2832
|
message: item["message"],
|
|
2454
2833
|
param: item["param"],
|
|
2455
2834
|
type: item["type"],
|
|
2456
|
-
details: !item["details"] ? item["details"] :
|
|
2835
|
+
details: !item["details"] ? item["details"] : apiErrorArrayDeserializer(item["details"]),
|
|
2457
2836
|
additionalInfo: item["additionalInfo"],
|
|
2458
2837
|
debugInfo: item["debugInfo"],
|
|
2459
2838
|
};
|
|
2460
2839
|
}
|
|
2461
|
-
export function
|
|
2840
|
+
export function apiErrorArrayDeserializer(result) {
|
|
2462
2841
|
return result.map((item) => {
|
|
2463
|
-
return
|
|
2842
|
+
return apiErrorDeserializer(item);
|
|
2464
2843
|
});
|
|
2465
2844
|
}
|
|
2466
2845
|
export function deleteAgentResponseDeserializer(item) {
|
|
@@ -2802,7 +3181,7 @@ export function blobReferenceDeserializer(item) {
|
|
|
2802
3181
|
export function blobReferenceSasCredentialDeserializer(item) {
|
|
2803
3182
|
return {
|
|
2804
3183
|
sasUri: item["sasUri"],
|
|
2805
|
-
type: item["type"],
|
|
3184
|
+
type: item["credentialType"] ?? item["type"],
|
|
2806
3185
|
};
|
|
2807
3186
|
}
|
|
2808
3187
|
export function datasetCredentialDeserializer(item) {
|
|
@@ -3014,6 +3393,19 @@ export function embeddingConfigurationDeserializer(item) {
|
|
|
3014
3393
|
embeddingField: item["embeddingField"],
|
|
3015
3394
|
};
|
|
3016
3395
|
}
|
|
3396
|
+
export function createAgentVersionFromCodeContentSerializer(item) {
|
|
3397
|
+
return [
|
|
3398
|
+
{ name: "metadata", body: createAgentVersionFromCodeMetadataSerializer(item["metadata"]) },
|
|
3399
|
+
createFilePartDescriptor("code", item["code"], "application/octet-stream"),
|
|
3400
|
+
];
|
|
3401
|
+
}
|
|
3402
|
+
export function createAgentVersionFromCodeMetadataSerializer(item) {
|
|
3403
|
+
return {
|
|
3404
|
+
description: item["description"],
|
|
3405
|
+
metadata: item["metadata"],
|
|
3406
|
+
definition: hostedAgentDefinitionSerializer(item["definition"]),
|
|
3407
|
+
};
|
|
3408
|
+
}
|
|
3017
3409
|
export function versionIndicatorSerializer(item) {
|
|
3018
3410
|
return { type: item["type"] };
|
|
3019
3411
|
}
|
|
@@ -3070,6 +3462,12 @@ export function agentSessionResourceArrayDeserializer(result) {
|
|
|
3070
3462
|
return agentSessionResourceDeserializer(item);
|
|
3071
3463
|
});
|
|
3072
3464
|
}
|
|
3465
|
+
export function sessionLogEventDeserializer(item) {
|
|
3466
|
+
return {
|
|
3467
|
+
event: item["event"],
|
|
3468
|
+
data: item["data"],
|
|
3469
|
+
};
|
|
3470
|
+
}
|
|
3073
3471
|
export function sessionFileWriteResponseDeserializer(item) {
|
|
3074
3472
|
return {
|
|
3075
3473
|
path: item["path"],
|
|
@@ -3078,6 +3476,9 @@ export function sessionFileWriteResponseDeserializer(item) {
|
|
|
3078
3476
|
}
|
|
3079
3477
|
export function sessionDirectoryListResponseDeserializer(item) {
|
|
3080
3478
|
return {
|
|
3479
|
+
first_id: item["first_id"],
|
|
3480
|
+
last_id: item["last_id"],
|
|
3481
|
+
has_more: item["has_more"],
|
|
3081
3482
|
path: item["path"],
|
|
3082
3483
|
entries: sessionDirectoryEntryArrayDeserializer(item["entries"]),
|
|
3083
3484
|
};
|
|
@@ -3092,10 +3493,280 @@ export function sessionDirectoryEntryDeserializer(item) {
|
|
|
3092
3493
|
name: item["name"],
|
|
3093
3494
|
size: item["size"],
|
|
3094
3495
|
is_directory: item["is_directory"],
|
|
3095
|
-
modified_time: new Date(item["modified_time"]),
|
|
3496
|
+
modified_time: new Date(item["modified_time"] * 1000),
|
|
3096
3497
|
};
|
|
3097
3498
|
}
|
|
3098
|
-
export function
|
|
3499
|
+
export function optimizationJobInputsSerializer(item) {
|
|
3500
|
+
return {
|
|
3501
|
+
agent: agentIdentifierSerializer(item["agent"]),
|
|
3502
|
+
train_dataset_reference: datasetRefSerializer(item["train_dataset_reference"]),
|
|
3503
|
+
validation_dataset_reference: !item["validation_dataset_reference"]
|
|
3504
|
+
? item["validation_dataset_reference"]
|
|
3505
|
+
: datasetRefSerializer(item["validation_dataset_reference"]),
|
|
3506
|
+
evaluators: !item["evaluators"]
|
|
3507
|
+
? item["evaluators"]
|
|
3508
|
+
: item["evaluators"].map((p) => {
|
|
3509
|
+
return p;
|
|
3510
|
+
}),
|
|
3511
|
+
options: !item["options"] ? item["options"] : optimizationOptionsSerializer(item["options"]),
|
|
3512
|
+
};
|
|
3513
|
+
}
|
|
3514
|
+
export function optimizationJobInputsDeserializer(item) {
|
|
3515
|
+
return {
|
|
3516
|
+
agent: agentIdentifierDeserializer(item["agent"]),
|
|
3517
|
+
train_dataset_reference: datasetRefDeserializer(item["train_dataset_reference"]),
|
|
3518
|
+
validation_dataset_reference: !item["validation_dataset_reference"]
|
|
3519
|
+
? item["validation_dataset_reference"]
|
|
3520
|
+
: datasetRefDeserializer(item["validation_dataset_reference"]),
|
|
3521
|
+
evaluators: !item["evaluators"]
|
|
3522
|
+
? item["evaluators"]
|
|
3523
|
+
: item["evaluators"].map((p) => {
|
|
3524
|
+
return p;
|
|
3525
|
+
}),
|
|
3526
|
+
options: !item["options"] ? item["options"] : optimizationOptionsDeserializer(item["options"]),
|
|
3527
|
+
};
|
|
3528
|
+
}
|
|
3529
|
+
export function agentIdentifierSerializer(item) {
|
|
3530
|
+
return { agent_name: item["agent_name"], agent_version: item["agent_version"] };
|
|
3531
|
+
}
|
|
3532
|
+
export function agentIdentifierDeserializer(item) {
|
|
3533
|
+
return {
|
|
3534
|
+
agent_name: item["agent_name"],
|
|
3535
|
+
agent_version: item["agent_version"],
|
|
3536
|
+
};
|
|
3537
|
+
}
|
|
3538
|
+
export function datasetRefSerializer(item) {
|
|
3539
|
+
return { name: item["name"], version: item["version"] };
|
|
3540
|
+
}
|
|
3541
|
+
export function datasetRefDeserializer(item) {
|
|
3542
|
+
return {
|
|
3543
|
+
name: item["name"],
|
|
3544
|
+
version: item["version"],
|
|
3545
|
+
};
|
|
3546
|
+
}
|
|
3547
|
+
export function optimizationOptionsSerializer(item) {
|
|
3548
|
+
return {
|
|
3549
|
+
max_iterations: item["max_iterations"],
|
|
3550
|
+
optimization_config: item["optimization_config"],
|
|
3551
|
+
eval_model: item["eval_model"],
|
|
3552
|
+
optimization_model: item["optimization_model"],
|
|
3553
|
+
evaluation_level: item["evaluation_level"],
|
|
3554
|
+
};
|
|
3555
|
+
}
|
|
3556
|
+
export function optimizationOptionsDeserializer(item) {
|
|
3557
|
+
return {
|
|
3558
|
+
max_iterations: item["max_iterations"],
|
|
3559
|
+
optimization_config: !item["optimization_config"]
|
|
3560
|
+
? item["optimization_config"]
|
|
3561
|
+
: Object.fromEntries(Object.entries(item["optimization_config"]).map(([k, p]) => [k, p])),
|
|
3562
|
+
eval_model: item["eval_model"],
|
|
3563
|
+
optimization_model: item["optimization_model"],
|
|
3564
|
+
evaluation_level: item["evaluation_level"],
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
export function optimizationJobDeserializer(item) {
|
|
3568
|
+
return {
|
|
3569
|
+
id: item["id"],
|
|
3570
|
+
status: item["status"],
|
|
3571
|
+
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
3572
|
+
result: !item["result"] ? item["result"] : optimizationJobResultDeserializer(item["result"]),
|
|
3573
|
+
inputs: !item["inputs"] ? item["inputs"] : optimizationJobInputsDeserializer(item["inputs"]),
|
|
3574
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
3575
|
+
updated_at: !item["updated_at"] ? item["updated_at"] : new Date(item["updated_at"] * 1000),
|
|
3576
|
+
progress: !item["progress"]
|
|
3577
|
+
? item["progress"]
|
|
3578
|
+
: optimizationJobProgressDeserializer(item["progress"]),
|
|
3579
|
+
dataset: !item["dataset"] ? item["dataset"] : datasetInfoDeserializer(item["dataset"]),
|
|
3580
|
+
};
|
|
3581
|
+
}
|
|
3582
|
+
export function optimizationJobResultDeserializer(item) {
|
|
3583
|
+
return {
|
|
3584
|
+
baseline: !item["baseline"]
|
|
3585
|
+
? item["baseline"]
|
|
3586
|
+
: optimizationCandidateDeserializer(item["baseline"]),
|
|
3587
|
+
best: !item["best"] ? item["best"] : optimizationCandidateDeserializer(item["best"]),
|
|
3588
|
+
candidates: !item["candidates"]
|
|
3589
|
+
? item["candidates"]
|
|
3590
|
+
: optimizationCandidateArrayDeserializer(item["candidates"]),
|
|
3591
|
+
options: !item["options"] ? item["options"] : optimizationOptionsDeserializer(item["options"]),
|
|
3592
|
+
warnings: !item["warnings"]
|
|
3593
|
+
? item["warnings"]
|
|
3594
|
+
: item["warnings"].map((p) => {
|
|
3595
|
+
return p;
|
|
3596
|
+
}),
|
|
3597
|
+
all_target_attributes_failed: item["all_target_attributes_failed"],
|
|
3598
|
+
};
|
|
3599
|
+
}
|
|
3600
|
+
export function optimizationCandidateDeserializer(item) {
|
|
3601
|
+
return {
|
|
3602
|
+
candidate_id: item["candidate_id"],
|
|
3603
|
+
name: item["name"],
|
|
3604
|
+
config: optimizationAgentDefinitionDeserializer(item["config"]),
|
|
3605
|
+
mutations: Object.fromEntries(Object.entries(item["mutations"]).map(([k, p]) => [k, p])),
|
|
3606
|
+
avg_score: item["avg_score"],
|
|
3607
|
+
avg_tokens: item["avg_tokens"],
|
|
3608
|
+
pass_rate: item["pass_rate"],
|
|
3609
|
+
task_scores: optimizationTaskResultArrayDeserializer(item["task_scores"]),
|
|
3610
|
+
is_pareto_optimal: item["is_pareto_optimal"],
|
|
3611
|
+
eval_id: item["eval_id"],
|
|
3612
|
+
eval_run_id: item["eval_run_id"],
|
|
3613
|
+
promotion: !item["promotion"]
|
|
3614
|
+
? item["promotion"]
|
|
3615
|
+
: promotionInfoDeserializer(item["promotion"]),
|
|
3616
|
+
};
|
|
3617
|
+
}
|
|
3618
|
+
export function optimizationAgentDefinitionDeserializer(item) {
|
|
3619
|
+
return {
|
|
3620
|
+
agent_name: item["agent_name"],
|
|
3621
|
+
agent_version: item["agent_version"],
|
|
3622
|
+
model: item["model"],
|
|
3623
|
+
system_prompt: item["system_prompt"],
|
|
3624
|
+
skills: !item["skills"]
|
|
3625
|
+
? item["skills"]
|
|
3626
|
+
: item["skills"].map((p) => {
|
|
3627
|
+
return Object.fromEntries(Object.entries(p).map(([k1, p1]) => [k1, p1]));
|
|
3628
|
+
}),
|
|
3629
|
+
tools: !item["tools"]
|
|
3630
|
+
? item["tools"]
|
|
3631
|
+
: item["tools"].map((p) => {
|
|
3632
|
+
return Object.fromEntries(Object.entries(p).map(([k1, p1]) => [k1, p1]));
|
|
3633
|
+
}),
|
|
3634
|
+
};
|
|
3635
|
+
}
|
|
3636
|
+
export function optimizationTaskResultArrayDeserializer(result) {
|
|
3637
|
+
return result.map((item) => {
|
|
3638
|
+
return optimizationTaskResultDeserializer(item);
|
|
3639
|
+
});
|
|
3640
|
+
}
|
|
3641
|
+
export function optimizationTaskResultDeserializer(item) {
|
|
3642
|
+
return {
|
|
3643
|
+
task_name: item["task_name"],
|
|
3644
|
+
query: item["query"],
|
|
3645
|
+
scores: Object.fromEntries(Object.entries(item["scores"]).map(([k, p]) => [k, p])),
|
|
3646
|
+
composite_score: item["composite_score"],
|
|
3647
|
+
tokens: item["tokens"],
|
|
3648
|
+
duration_seconds: item["duration_seconds"],
|
|
3649
|
+
passed: item["passed"],
|
|
3650
|
+
error_message: item["error_message"],
|
|
3651
|
+
rationales: !item["rationales"]
|
|
3652
|
+
? item["rationales"]
|
|
3653
|
+
: Object.fromEntries(Object.entries(item["rationales"]).map(([k, p]) => [k, p])),
|
|
3654
|
+
response: item["response"],
|
|
3655
|
+
run_id: item["run_id"],
|
|
3656
|
+
};
|
|
3657
|
+
}
|
|
3658
|
+
export function promotionInfoDeserializer(item) {
|
|
3659
|
+
return {
|
|
3660
|
+
promoted_at: new Date(item["promoted_at"] * 1000),
|
|
3661
|
+
agent_name: item["agent_name"],
|
|
3662
|
+
agent_version: item["agent_version"],
|
|
3663
|
+
};
|
|
3664
|
+
}
|
|
3665
|
+
export function optimizationCandidateArrayDeserializer(result) {
|
|
3666
|
+
return result.map((item) => {
|
|
3667
|
+
return optimizationCandidateDeserializer(item);
|
|
3668
|
+
});
|
|
3669
|
+
}
|
|
3670
|
+
export function optimizationJobProgressDeserializer(item) {
|
|
3671
|
+
return {
|
|
3672
|
+
current_iteration: item["current_iteration"],
|
|
3673
|
+
best_score: item["best_score"],
|
|
3674
|
+
elapsed_seconds: item["elapsed_seconds"],
|
|
3675
|
+
};
|
|
3676
|
+
}
|
|
3677
|
+
export function datasetInfoDeserializer(item) {
|
|
3678
|
+
return {
|
|
3679
|
+
name: item["name"],
|
|
3680
|
+
version: item["version"],
|
|
3681
|
+
task_count: item["task_count"],
|
|
3682
|
+
is_inline: item["is_inline"],
|
|
3683
|
+
};
|
|
3684
|
+
}
|
|
3685
|
+
export function _agentsPagedResultOptimizationJobDeserializer(item) {
|
|
3686
|
+
return {
|
|
3687
|
+
data: optimizationJobArrayDeserializer(item["data"]),
|
|
3688
|
+
first_id: item["first_id"],
|
|
3689
|
+
last_id: item["last_id"],
|
|
3690
|
+
has_more: item["has_more"],
|
|
3691
|
+
};
|
|
3692
|
+
}
|
|
3693
|
+
export function optimizationJobArrayDeserializer(result) {
|
|
3694
|
+
return result.map((item) => {
|
|
3695
|
+
return optimizationJobDeserializer(item);
|
|
3696
|
+
});
|
|
3697
|
+
}
|
|
3698
|
+
export function agentsPagedResultOptimizationCandidateDeserializer(item) {
|
|
3699
|
+
return {
|
|
3700
|
+
data: optimizationCandidateArrayDeserializer(item["data"]),
|
|
3701
|
+
first_id: item["first_id"],
|
|
3702
|
+
last_id: item["last_id"],
|
|
3703
|
+
has_more: item["has_more"],
|
|
3704
|
+
};
|
|
3705
|
+
}
|
|
3706
|
+
export function candidateMetadataDeserializer(item) {
|
|
3707
|
+
return {
|
|
3708
|
+
candidate_id: item["candidate_id"],
|
|
3709
|
+
job_id: item["job_id"],
|
|
3710
|
+
candidate_name: item["candidate_name"],
|
|
3711
|
+
status: item["status"],
|
|
3712
|
+
score: item["score"],
|
|
3713
|
+
has_results: item["has_results"],
|
|
3714
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
3715
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
3716
|
+
promotion: !item["promotion"]
|
|
3717
|
+
? item["promotion"]
|
|
3718
|
+
: promotionInfoDeserializer(item["promotion"]),
|
|
3719
|
+
files: candidateFileInfoArrayDeserializer(item["files"]),
|
|
3720
|
+
};
|
|
3721
|
+
}
|
|
3722
|
+
export function candidateFileInfoArrayDeserializer(result) {
|
|
3723
|
+
return result.map((item) => {
|
|
3724
|
+
return candidateFileInfoDeserializer(item);
|
|
3725
|
+
});
|
|
3726
|
+
}
|
|
3727
|
+
export function candidateFileInfoDeserializer(item) {
|
|
3728
|
+
return {
|
|
3729
|
+
path: item["path"],
|
|
3730
|
+
type: item["type"],
|
|
3731
|
+
size_bytes: item["size_bytes"],
|
|
3732
|
+
};
|
|
3733
|
+
}
|
|
3734
|
+
export function candidateDeployConfigDeserializer(item) {
|
|
3735
|
+
return {
|
|
3736
|
+
instructions: item["instructions"],
|
|
3737
|
+
model: item["model"],
|
|
3738
|
+
temperature: item["temperature"],
|
|
3739
|
+
skills: !item["skills"]
|
|
3740
|
+
? item["skills"]
|
|
3741
|
+
: item["skills"].map((p) => {
|
|
3742
|
+
return Object.fromEntries(Object.entries(p).map(([k1, p1]) => [k1, p1]));
|
|
3743
|
+
}),
|
|
3744
|
+
tools: !item["tools"]
|
|
3745
|
+
? item["tools"]
|
|
3746
|
+
: item["tools"].map((p) => {
|
|
3747
|
+
return Object.fromEntries(Object.entries(p).map(([k1, p1]) => [k1, p1]));
|
|
3748
|
+
}),
|
|
3749
|
+
};
|
|
3750
|
+
}
|
|
3751
|
+
export function candidateResultsDeserializer(item) {
|
|
3752
|
+
return {
|
|
3753
|
+
candidate_id: item["candidate_id"],
|
|
3754
|
+
results: optimizationTaskResultArrayDeserializer(item["results"]),
|
|
3755
|
+
};
|
|
3756
|
+
}
|
|
3757
|
+
export function promoteCandidateRequestSerializer(item) {
|
|
3758
|
+
return { agent_name: item["agent_name"], agent_version: item["agent_version"] };
|
|
3759
|
+
}
|
|
3760
|
+
export function promoteCandidateResponseDeserializer(item) {
|
|
3761
|
+
return {
|
|
3762
|
+
candidate_id: item["candidate_id"],
|
|
3763
|
+
status: item["status"],
|
|
3764
|
+
promoted_at: new Date(item["promoted_at"] * 1000),
|
|
3765
|
+
agent_name: item["agent_name"],
|
|
3766
|
+
agent_version: item["agent_version"],
|
|
3767
|
+
};
|
|
3768
|
+
}
|
|
3769
|
+
export function evaluationTaxonomySerializer(item) {
|
|
3099
3770
|
return {
|
|
3100
3771
|
description: item["description"],
|
|
3101
3772
|
tags: item["tags"],
|
|
@@ -3147,43 +3818,43 @@ export function evaluationTaxonomyInputUnionDeserializer(item) {
|
|
|
3147
3818
|
export function agentTaxonomyInputSerializer(item) {
|
|
3148
3819
|
return {
|
|
3149
3820
|
type: item["type"],
|
|
3150
|
-
target:
|
|
3821
|
+
target: evaluationTargetUnionSerializer(item["target"]),
|
|
3151
3822
|
riskCategories: item["riskCategories"],
|
|
3152
3823
|
};
|
|
3153
3824
|
}
|
|
3154
3825
|
export function agentTaxonomyInputDeserializer(item) {
|
|
3155
3826
|
return {
|
|
3156
3827
|
type: item["type"],
|
|
3157
|
-
target:
|
|
3828
|
+
target: evaluationTargetUnionDeserializer(item["target"]),
|
|
3158
3829
|
riskCategories: item["riskCategories"],
|
|
3159
3830
|
};
|
|
3160
3831
|
}
|
|
3161
|
-
export function
|
|
3832
|
+
export function evaluationTargetSerializer(item) {
|
|
3162
3833
|
return { type: item["type"] };
|
|
3163
3834
|
}
|
|
3164
|
-
export function
|
|
3835
|
+
export function evaluationTargetDeserializer(item) {
|
|
3165
3836
|
return {
|
|
3166
3837
|
type: item["type"],
|
|
3167
3838
|
};
|
|
3168
3839
|
}
|
|
3169
|
-
export function
|
|
3840
|
+
export function evaluationTargetUnionSerializer(item) {
|
|
3170
3841
|
switch (item.type) {
|
|
3171
3842
|
case "azure_ai_model":
|
|
3172
3843
|
return azureAIModelTargetSerializer(item);
|
|
3173
3844
|
case "azure_ai_agent":
|
|
3174
3845
|
return azureAIAgentTargetSerializer(item);
|
|
3175
3846
|
default:
|
|
3176
|
-
return
|
|
3847
|
+
return evaluationTargetSerializer(item);
|
|
3177
3848
|
}
|
|
3178
3849
|
}
|
|
3179
|
-
export function
|
|
3850
|
+
export function evaluationTargetUnionDeserializer(item) {
|
|
3180
3851
|
switch (item.type) {
|
|
3181
3852
|
case "azure_ai_model":
|
|
3182
3853
|
return azureAIModelTargetDeserializer(item);
|
|
3183
3854
|
case "azure_ai_agent":
|
|
3184
3855
|
return azureAIAgentTargetDeserializer(item);
|
|
3185
3856
|
default:
|
|
3186
|
-
return
|
|
3857
|
+
return evaluationTargetDeserializer(item);
|
|
3187
3858
|
}
|
|
3188
3859
|
}
|
|
3189
3860
|
export function azureAIModelTargetSerializer(item) {
|
|
@@ -3228,6 +3899,7 @@ export function azureAIAgentTargetSerializer(item) {
|
|
|
3228
3899
|
tool_descriptions: !item["tool_descriptions"]
|
|
3229
3900
|
? item["tool_descriptions"]
|
|
3230
3901
|
: toolDescriptionArraySerializer(item["tool_descriptions"]),
|
|
3902
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArraySerializer(item["tools"]),
|
|
3231
3903
|
};
|
|
3232
3904
|
}
|
|
3233
3905
|
export function azureAIAgentTargetDeserializer(item) {
|
|
@@ -3238,6 +3910,7 @@ export function azureAIAgentTargetDeserializer(item) {
|
|
|
3238
3910
|
tool_descriptions: !item["tool_descriptions"]
|
|
3239
3911
|
? item["tool_descriptions"]
|
|
3240
3912
|
: toolDescriptionArrayDeserializer(item["tool_descriptions"]),
|
|
3913
|
+
tools: !item["tools"] ? item["tools"] : toolUnionArrayDeserializer(item["tools"]),
|
|
3241
3914
|
};
|
|
3242
3915
|
}
|
|
3243
3916
|
export function toolDescriptionArraySerializer(result) {
|
|
@@ -3367,6 +4040,9 @@ export function evaluatorVersionDeserializer(item) {
|
|
|
3367
4040
|
evaluator_type: item["evaluator_type"],
|
|
3368
4041
|
categories: item["categories"],
|
|
3369
4042
|
definition: evaluatorDefinitionUnionDeserializer(item["definition"]),
|
|
4043
|
+
generation_artifacts: !item["generation_artifacts"]
|
|
4044
|
+
? item["generation_artifacts"]
|
|
4045
|
+
: evaluatorGenerationArtifactsDeserializer(item["generation_artifacts"]),
|
|
3370
4046
|
created_by: item["created_by"],
|
|
3371
4047
|
created_at: item["created_at"],
|
|
3372
4048
|
modified_at: item["modified_at"],
|
|
@@ -3401,6 +4077,8 @@ export function evaluatorDefinitionUnionSerializer(item) {
|
|
|
3401
4077
|
return codeBasedEvaluatorDefinitionSerializer(item);
|
|
3402
4078
|
case "prompt":
|
|
3403
4079
|
return promptBasedEvaluatorDefinitionSerializer(item);
|
|
4080
|
+
case "rubric":
|
|
4081
|
+
return rubricBasedEvaluatorDefinitionSerializer(item);
|
|
3404
4082
|
default:
|
|
3405
4083
|
return evaluatorDefinitionSerializer(item);
|
|
3406
4084
|
}
|
|
@@ -3411,6 +4089,8 @@ export function evaluatorDefinitionUnionDeserializer(item) {
|
|
|
3411
4089
|
return codeBasedEvaluatorDefinitionDeserializer(item);
|
|
3412
4090
|
case "prompt":
|
|
3413
4091
|
return promptBasedEvaluatorDefinitionDeserializer(item);
|
|
4092
|
+
case "rubric":
|
|
4093
|
+
return rubricBasedEvaluatorDefinitionDeserializer(item);
|
|
3414
4094
|
default:
|
|
3415
4095
|
return evaluatorDefinitionDeserializer(item);
|
|
3416
4096
|
}
|
|
@@ -3495,119 +4175,365 @@ export function promptBasedEvaluatorDefinitionDeserializer(item) {
|
|
|
3495
4175
|
prompt_text: item["prompt_text"],
|
|
3496
4176
|
};
|
|
3497
4177
|
}
|
|
3498
|
-
export function
|
|
4178
|
+
export function rubricBasedEvaluatorDefinitionSerializer(item) {
|
|
3499
4179
|
return {
|
|
3500
|
-
|
|
3501
|
-
|
|
4180
|
+
type: item["type"],
|
|
4181
|
+
init_parameters: item["init_parameters"],
|
|
4182
|
+
data_schema: item["data_schema"],
|
|
4183
|
+
metrics: !item["metrics"] ? item["metrics"] : evaluatorMetricRecordSerializer(item["metrics"]),
|
|
4184
|
+
dimensions: dimensionArraySerializer(item["dimensions"]),
|
|
4185
|
+
pass_threshold: item["pass_threshold"],
|
|
3502
4186
|
};
|
|
3503
4187
|
}
|
|
3504
|
-
export function
|
|
4188
|
+
export function rubricBasedEvaluatorDefinitionDeserializer(item) {
|
|
3505
4189
|
return {
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
4190
|
+
type: item["type"],
|
|
4191
|
+
init_parameters: !item["init_parameters"]
|
|
4192
|
+
? item["init_parameters"]
|
|
4193
|
+
: Object.fromEntries(Object.entries(item["init_parameters"]).map(([k, p]) => [k, p])),
|
|
4194
|
+
data_schema: !item["data_schema"]
|
|
4195
|
+
? item["data_schema"]
|
|
4196
|
+
: Object.fromEntries(Object.entries(item["data_schema"]).map(([k, p]) => [k, p])),
|
|
4197
|
+
metrics: !item["metrics"]
|
|
4198
|
+
? item["metrics"]
|
|
4199
|
+
: evaluatorMetricRecordDeserializer(item["metrics"]),
|
|
4200
|
+
dimensions: dimensionArrayDeserializer(item["dimensions"]),
|
|
4201
|
+
pass_threshold: item["pass_threshold"],
|
|
3512
4202
|
};
|
|
3513
4203
|
}
|
|
3514
|
-
export function
|
|
4204
|
+
export function dimensionArraySerializer(result) {
|
|
4205
|
+
return result.map((item) => {
|
|
4206
|
+
return dimensionSerializer(item);
|
|
4207
|
+
});
|
|
4208
|
+
}
|
|
4209
|
+
export function dimensionArrayDeserializer(result) {
|
|
4210
|
+
return result.map((item) => {
|
|
4211
|
+
return dimensionDeserializer(item);
|
|
4212
|
+
});
|
|
4213
|
+
}
|
|
4214
|
+
export function dimensionSerializer(item) {
|
|
3515
4215
|
return {
|
|
3516
|
-
|
|
3517
|
-
|
|
4216
|
+
id: item["id"],
|
|
4217
|
+
description: item["description"],
|
|
4218
|
+
weight: item["weight"],
|
|
4219
|
+
always_applicable: item["always_applicable"],
|
|
3518
4220
|
};
|
|
3519
4221
|
}
|
|
3520
|
-
export function
|
|
4222
|
+
export function dimensionDeserializer(item) {
|
|
4223
|
+
return {
|
|
4224
|
+
id: item["id"],
|
|
4225
|
+
description: item["description"],
|
|
4226
|
+
weight: item["weight"],
|
|
4227
|
+
always_applicable: item["always_applicable"],
|
|
4228
|
+
};
|
|
4229
|
+
}
|
|
4230
|
+
export function evaluatorGenerationArtifactsDeserializer(item) {
|
|
4231
|
+
return {
|
|
4232
|
+
dataset: datasetReferenceDeserializer(item["dataset"]),
|
|
4233
|
+
kinds: item["kinds"].map((p) => {
|
|
4234
|
+
return p;
|
|
4235
|
+
}),
|
|
4236
|
+
};
|
|
4237
|
+
}
|
|
4238
|
+
export function datasetReferenceDeserializer(item) {
|
|
4239
|
+
return {
|
|
4240
|
+
name: item["name"],
|
|
4241
|
+
version: item["version"],
|
|
4242
|
+
};
|
|
4243
|
+
}
|
|
4244
|
+
export function evaluatorCredentialRequestSerializer(item) {
|
|
4245
|
+
return { blob_uri: item["blob_uri"] };
|
|
4246
|
+
}
|
|
4247
|
+
export function evaluatorGenerationJobSerializer(item) {
|
|
4248
|
+
if (!item["inputs"]) {
|
|
4249
|
+
return {};
|
|
4250
|
+
}
|
|
4251
|
+
return evaluatorGenerationInputsSerializer(item["inputs"]);
|
|
4252
|
+
}
|
|
4253
|
+
export function evaluatorGenerationJobDeserializer(item) {
|
|
4254
|
+
return {
|
|
4255
|
+
id: item["id"],
|
|
4256
|
+
inputs: !item["inputs"]
|
|
4257
|
+
? item["inputs"]
|
|
4258
|
+
: evaluatorGenerationInputsDeserializer(item["inputs"]),
|
|
4259
|
+
result: !item["result"] ? item["result"] : evaluatorVersionDeserializer(item["result"]),
|
|
4260
|
+
status: item["status"],
|
|
4261
|
+
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
4262
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
4263
|
+
finished_at: !item["finished_at"] ? item["finished_at"] : new Date(item["finished_at"] * 1000),
|
|
4264
|
+
usage: !item["usage"]
|
|
4265
|
+
? item["usage"]
|
|
4266
|
+
: evaluatorGenerationTokenUsageDeserializer(item["usage"]),
|
|
4267
|
+
};
|
|
4268
|
+
}
|
|
4269
|
+
export function evaluatorGenerationInputsSerializer(item) {
|
|
4270
|
+
return {
|
|
4271
|
+
sources: evaluatorGenerationJobSourceUnionArraySerializer(item["sources"]),
|
|
4272
|
+
model: item["model"],
|
|
4273
|
+
evaluator_name: item["evaluator_name"],
|
|
4274
|
+
evaluator_display_name: item["evaluator_display_name"],
|
|
4275
|
+
evaluator_description: item["evaluator_description"],
|
|
4276
|
+
};
|
|
4277
|
+
}
|
|
4278
|
+
export function evaluatorGenerationInputsDeserializer(item) {
|
|
4279
|
+
return {
|
|
4280
|
+
sources: evaluatorGenerationJobSourceUnionArrayDeserializer(item["sources"]),
|
|
4281
|
+
model: item["model"],
|
|
4282
|
+
evaluator_name: item["evaluator_name"],
|
|
4283
|
+
evaluator_display_name: item["evaluator_display_name"],
|
|
4284
|
+
evaluator_description: item["evaluator_description"],
|
|
4285
|
+
};
|
|
4286
|
+
}
|
|
4287
|
+
export function evaluatorGenerationJobSourceUnionArraySerializer(result) {
|
|
4288
|
+
return result.map((item) => {
|
|
4289
|
+
return evaluatorGenerationJobSourceUnionSerializer(item);
|
|
4290
|
+
});
|
|
4291
|
+
}
|
|
4292
|
+
export function evaluatorGenerationJobSourceUnionArrayDeserializer(result) {
|
|
4293
|
+
return result.map((item) => {
|
|
4294
|
+
return evaluatorGenerationJobSourceUnionDeserializer(item);
|
|
4295
|
+
});
|
|
4296
|
+
}
|
|
4297
|
+
export function evaluatorGenerationJobSourceSerializer(item) {
|
|
3521
4298
|
return { type: item["type"] };
|
|
3522
4299
|
}
|
|
3523
|
-
export function
|
|
4300
|
+
export function evaluatorGenerationJobSourceDeserializer(item) {
|
|
3524
4301
|
return {
|
|
3525
4302
|
type: item["type"],
|
|
3526
4303
|
};
|
|
3527
4304
|
}
|
|
3528
|
-
export function
|
|
4305
|
+
export function evaluatorGenerationJobSourceUnionSerializer(item) {
|
|
3529
4306
|
switch (item.type) {
|
|
3530
|
-
case "
|
|
3531
|
-
return
|
|
3532
|
-
case "
|
|
3533
|
-
return
|
|
3534
|
-
case "
|
|
3535
|
-
return
|
|
4307
|
+
case "prompt":
|
|
4308
|
+
return promptEvaluatorGenerationJobSourceSerializer(item);
|
|
4309
|
+
case "agent":
|
|
4310
|
+
return agentEvaluatorGenerationJobSourceSerializer(item);
|
|
4311
|
+
case "traces":
|
|
4312
|
+
return tracesEvaluatorGenerationJobSourceSerializer(item);
|
|
4313
|
+
case "dataset":
|
|
4314
|
+
return datasetEvaluatorGenerationJobSourceSerializer(item);
|
|
3536
4315
|
default:
|
|
3537
|
-
return
|
|
4316
|
+
return evaluatorGenerationJobSourceSerializer(item);
|
|
3538
4317
|
}
|
|
3539
4318
|
}
|
|
3540
|
-
export function
|
|
3541
|
-
switch (item
|
|
3542
|
-
case "
|
|
3543
|
-
return
|
|
3544
|
-
case "
|
|
3545
|
-
return
|
|
3546
|
-
case "
|
|
3547
|
-
return
|
|
4319
|
+
export function evaluatorGenerationJobSourceUnionDeserializer(item) {
|
|
4320
|
+
switch (item["type"]) {
|
|
4321
|
+
case "prompt":
|
|
4322
|
+
return promptEvaluatorGenerationJobSourceDeserializer(item);
|
|
4323
|
+
case "agent":
|
|
4324
|
+
return agentEvaluatorGenerationJobSourceDeserializer(item);
|
|
4325
|
+
case "traces":
|
|
4326
|
+
return tracesEvaluatorGenerationJobSourceDeserializer(item);
|
|
4327
|
+
case "dataset":
|
|
4328
|
+
return datasetEvaluatorGenerationJobSourceDeserializer(item);
|
|
3548
4329
|
default:
|
|
3549
|
-
return
|
|
4330
|
+
return evaluatorGenerationJobSourceDeserializer(item);
|
|
3550
4331
|
}
|
|
3551
4332
|
}
|
|
3552
|
-
export function
|
|
4333
|
+
export function promptEvaluatorGenerationJobSourceSerializer(item) {
|
|
4334
|
+
return { type: item["type"], description: item["description"], prompt: item["prompt"] };
|
|
4335
|
+
}
|
|
4336
|
+
export function promptEvaluatorGenerationJobSourceDeserializer(item) {
|
|
3553
4337
|
return {
|
|
3554
4338
|
type: item["type"],
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
modelConfiguration: !item["modelConfiguration"]
|
|
3558
|
-
? item["modelConfiguration"]
|
|
3559
|
-
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
4339
|
+
description: item["description"],
|
|
4340
|
+
prompt: item["prompt"],
|
|
3560
4341
|
};
|
|
3561
4342
|
}
|
|
3562
|
-
export function
|
|
4343
|
+
export function agentEvaluatorGenerationJobSourceSerializer(item) {
|
|
3563
4344
|
return {
|
|
3564
4345
|
type: item["type"],
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
? item["modelConfiguration"]
|
|
3569
|
-
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
4346
|
+
description: item["description"],
|
|
4347
|
+
agent_name: item["agent_name"],
|
|
4348
|
+
agent_version: item["agent_version"],
|
|
3570
4349
|
};
|
|
3571
4350
|
}
|
|
3572
|
-
export function
|
|
3573
|
-
return { modelDeploymentName: item["modelDeploymentName"] };
|
|
3574
|
-
}
|
|
3575
|
-
export function insightModelConfigurationDeserializer(item) {
|
|
4351
|
+
export function agentEvaluatorGenerationJobSourceDeserializer(item) {
|
|
3576
4352
|
return {
|
|
3577
|
-
|
|
4353
|
+
type: item["type"],
|
|
4354
|
+
description: item["description"],
|
|
4355
|
+
agent_name: item["agent_name"],
|
|
4356
|
+
agent_version: item["agent_version"],
|
|
3578
4357
|
};
|
|
3579
4358
|
}
|
|
3580
|
-
export function
|
|
4359
|
+
export function tracesEvaluatorGenerationJobSourceSerializer(item) {
|
|
3581
4360
|
return {
|
|
3582
4361
|
type: item["type"],
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
4362
|
+
description: item["description"],
|
|
4363
|
+
agent_id: item["agent_id"],
|
|
4364
|
+
agent_name: item["agent_name"],
|
|
4365
|
+
agent_version: item["agent_version"],
|
|
4366
|
+
start_time: !item["start_time"]
|
|
4367
|
+
? item["start_time"]
|
|
4368
|
+
: (item["start_time"].getTime() / 1000) | 0,
|
|
4369
|
+
end_time: !item["end_time"] ? item["end_time"] : (item["end_time"].getTime() / 1000) | 0,
|
|
3587
4370
|
};
|
|
3588
4371
|
}
|
|
3589
|
-
export function
|
|
4372
|
+
export function tracesEvaluatorGenerationJobSourceDeserializer(item) {
|
|
3590
4373
|
return {
|
|
3591
4374
|
type: item["type"],
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
4375
|
+
description: item["description"],
|
|
4376
|
+
agent_id: item["agent_id"],
|
|
4377
|
+
agent_name: item["agent_name"],
|
|
4378
|
+
agent_version: item["agent_version"],
|
|
4379
|
+
start_time: !item["start_time"] ? item["start_time"] : new Date(item["start_time"] * 1000),
|
|
4380
|
+
end_time: !item["end_time"] ? item["end_time"] : new Date(item["end_time"] * 1000),
|
|
3596
4381
|
};
|
|
3597
4382
|
}
|
|
3598
|
-
export function
|
|
4383
|
+
export function datasetEvaluatorGenerationJobSourceSerializer(item) {
|
|
3599
4384
|
return {
|
|
3600
4385
|
type: item["type"],
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
4386
|
+
description: item["description"],
|
|
4387
|
+
name: item["name"],
|
|
4388
|
+
version: item["version"],
|
|
3604
4389
|
};
|
|
3605
4390
|
}
|
|
3606
|
-
export function
|
|
4391
|
+
export function datasetEvaluatorGenerationJobSourceDeserializer(item) {
|
|
3607
4392
|
return {
|
|
3608
4393
|
type: item["type"],
|
|
3609
|
-
|
|
3610
|
-
|
|
4394
|
+
description: item["description"],
|
|
4395
|
+
name: item["name"],
|
|
4396
|
+
version: item["version"],
|
|
4397
|
+
};
|
|
4398
|
+
}
|
|
4399
|
+
export function evaluatorGenerationTokenUsageDeserializer(item) {
|
|
4400
|
+
return {
|
|
4401
|
+
input_tokens: item["input_tokens"],
|
|
4402
|
+
output_tokens: item["output_tokens"],
|
|
4403
|
+
total_tokens: item["total_tokens"],
|
|
4404
|
+
};
|
|
4405
|
+
}
|
|
4406
|
+
export function _agentsPagedResultEvaluatorGenerationJobDeserializer(item) {
|
|
4407
|
+
return {
|
|
4408
|
+
data: evaluatorGenerationJobArrayDeserializer(item["value"] ?? item["data"] ?? []),
|
|
4409
|
+
first_id: item["first_id"],
|
|
4410
|
+
last_id: item["last_id"],
|
|
4411
|
+
has_more: item["has_more"] ?? false,
|
|
4412
|
+
};
|
|
4413
|
+
}
|
|
4414
|
+
export function evaluatorGenerationJobArraySerializer(result) {
|
|
4415
|
+
return result.map((item) => {
|
|
4416
|
+
return evaluatorGenerationJobSerializer(item);
|
|
4417
|
+
});
|
|
4418
|
+
}
|
|
4419
|
+
export function evaluatorGenerationJobArrayDeserializer(result) {
|
|
4420
|
+
return result.map((item) => {
|
|
4421
|
+
return evaluatorGenerationJobDeserializer(item);
|
|
4422
|
+
});
|
|
4423
|
+
}
|
|
4424
|
+
export function insightSerializer(item) {
|
|
4425
|
+
return {
|
|
4426
|
+
displayName: item["displayName"],
|
|
4427
|
+
request: insightRequestUnionSerializer(item["request"]),
|
|
4428
|
+
};
|
|
4429
|
+
}
|
|
4430
|
+
export function insightDeserializer(item) {
|
|
4431
|
+
return {
|
|
4432
|
+
insight_id: item["id"],
|
|
4433
|
+
metadata: insightsMetadataDeserializer(item["metadata"]),
|
|
4434
|
+
state: item["state"],
|
|
4435
|
+
displayName: item["displayName"],
|
|
4436
|
+
request: insightRequestUnionDeserializer(item["request"]),
|
|
4437
|
+
result: !item["result"] ? item["result"] : insightResultUnionDeserializer(item["result"]),
|
|
4438
|
+
};
|
|
4439
|
+
}
|
|
4440
|
+
export function insightsMetadataDeserializer(item) {
|
|
4441
|
+
return {
|
|
4442
|
+
createdAt: new Date(item["createdAt"]),
|
|
4443
|
+
completedAt: !item["completedAt"] ? item["completedAt"] : new Date(item["completedAt"]),
|
|
4444
|
+
};
|
|
4445
|
+
}
|
|
4446
|
+
export function insightRequestSerializer(item) {
|
|
4447
|
+
return { type: item["type"] };
|
|
4448
|
+
}
|
|
4449
|
+
export function insightRequestDeserializer(item) {
|
|
4450
|
+
return {
|
|
4451
|
+
type: item["type"],
|
|
4452
|
+
};
|
|
4453
|
+
}
|
|
4454
|
+
export function insightRequestUnionSerializer(item) {
|
|
4455
|
+
switch (item.type) {
|
|
4456
|
+
case "EvaluationRunClusterInsight":
|
|
4457
|
+
return evaluationRunClusterInsightRequestSerializer(item);
|
|
4458
|
+
case "AgentClusterInsight":
|
|
4459
|
+
return agentClusterInsightRequestSerializer(item);
|
|
4460
|
+
case "EvaluationComparison":
|
|
4461
|
+
return evaluationComparisonInsightRequestSerializer(item);
|
|
4462
|
+
default:
|
|
4463
|
+
return insightRequestSerializer(item);
|
|
4464
|
+
}
|
|
4465
|
+
}
|
|
4466
|
+
export function insightRequestUnionDeserializer(item) {
|
|
4467
|
+
switch (item["type"]) {
|
|
4468
|
+
case "EvaluationRunClusterInsight":
|
|
4469
|
+
return evaluationRunClusterInsightRequestDeserializer(item);
|
|
4470
|
+
case "AgentClusterInsight":
|
|
4471
|
+
return agentClusterInsightRequestDeserializer(item);
|
|
4472
|
+
case "EvaluationComparison":
|
|
4473
|
+
return evaluationComparisonInsightRequestDeserializer(item);
|
|
4474
|
+
default:
|
|
4475
|
+
return insightRequestDeserializer(item);
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
export function evaluationRunClusterInsightRequestSerializer(item) {
|
|
4479
|
+
return {
|
|
4480
|
+
type: item["type"],
|
|
4481
|
+
evalId: item["evalId"],
|
|
4482
|
+
runIds: item["runIds"],
|
|
4483
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
4484
|
+
? item["modelConfiguration"]
|
|
4485
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
4486
|
+
};
|
|
4487
|
+
}
|
|
4488
|
+
export function evaluationRunClusterInsightRequestDeserializer(item) {
|
|
4489
|
+
return {
|
|
4490
|
+
type: item["type"],
|
|
4491
|
+
evalId: item["evalId"],
|
|
4492
|
+
runIds: item["runIds"],
|
|
4493
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
4494
|
+
? item["modelConfiguration"]
|
|
4495
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
4496
|
+
};
|
|
4497
|
+
}
|
|
4498
|
+
export function insightModelConfigurationSerializer(item) {
|
|
4499
|
+
return { modelDeploymentName: item["modelDeploymentName"] };
|
|
4500
|
+
}
|
|
4501
|
+
export function insightModelConfigurationDeserializer(item) {
|
|
4502
|
+
return {
|
|
4503
|
+
modelDeploymentName: item["modelDeploymentName"],
|
|
4504
|
+
};
|
|
4505
|
+
}
|
|
4506
|
+
export function agentClusterInsightRequestSerializer(item) {
|
|
4507
|
+
return {
|
|
4508
|
+
type: item["type"],
|
|
4509
|
+
agentName: item["agentName"],
|
|
4510
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
4511
|
+
? item["modelConfiguration"]
|
|
4512
|
+
: insightModelConfigurationSerializer(item["modelConfiguration"]),
|
|
4513
|
+
};
|
|
4514
|
+
}
|
|
4515
|
+
export function agentClusterInsightRequestDeserializer(item) {
|
|
4516
|
+
return {
|
|
4517
|
+
type: item["type"],
|
|
4518
|
+
agentName: item["agentName"],
|
|
4519
|
+
modelConfiguration: !item["modelConfiguration"]
|
|
4520
|
+
? item["modelConfiguration"]
|
|
4521
|
+
: insightModelConfigurationDeserializer(item["modelConfiguration"]),
|
|
4522
|
+
};
|
|
4523
|
+
}
|
|
4524
|
+
export function evaluationComparisonInsightRequestSerializer(item) {
|
|
4525
|
+
return {
|
|
4526
|
+
type: item["type"],
|
|
4527
|
+
evalId: item["evalId"],
|
|
4528
|
+
baselineRunId: item["baselineRunId"],
|
|
4529
|
+
treatmentRunIds: item["treatmentRunIds"],
|
|
4530
|
+
};
|
|
4531
|
+
}
|
|
4532
|
+
export function evaluationComparisonInsightRequestDeserializer(item) {
|
|
4533
|
+
return {
|
|
4534
|
+
type: item["type"],
|
|
4535
|
+
evalId: item["evalId"],
|
|
4536
|
+
baselineRunId: item["baselineRunId"],
|
|
3611
4537
|
treatmentRunIds: item["treatmentRunIds"],
|
|
3612
4538
|
};
|
|
3613
4539
|
}
|
|
@@ -3846,6 +4772,8 @@ export function memoryStoreDefaultOptionsSerializer(item) {
|
|
|
3846
4772
|
user_profile_enabled: item["user_profile_enabled"],
|
|
3847
4773
|
user_profile_details: item["user_profile_details"],
|
|
3848
4774
|
chat_summary_enabled: item["chat_summary_enabled"],
|
|
4775
|
+
procedural_memory_enabled: item["procedural_memory_enabled"],
|
|
4776
|
+
default_ttl_seconds: item["default_ttl_seconds"],
|
|
3849
4777
|
};
|
|
3850
4778
|
}
|
|
3851
4779
|
export function memoryStoreDefaultOptionsDeserializer(item) {
|
|
@@ -3853,6 +4781,8 @@ export function memoryStoreDefaultOptionsDeserializer(item) {
|
|
|
3853
4781
|
user_profile_enabled: item["user_profile_enabled"],
|
|
3854
4782
|
user_profile_details: item["user_profile_details"],
|
|
3855
4783
|
chat_summary_enabled: item["chat_summary_enabled"],
|
|
4784
|
+
procedural_memory_enabled: item["procedural_memory_enabled"],
|
|
4785
|
+
default_ttl_seconds: item["default_ttl_seconds"],
|
|
3856
4786
|
};
|
|
3857
4787
|
}
|
|
3858
4788
|
export function memoryStoreDeserializer(item) {
|
|
@@ -3919,6 +4849,8 @@ export function memoryItemUnionDeserializer(item) {
|
|
|
3919
4849
|
return userProfileMemoryItemDeserializer(item);
|
|
3920
4850
|
case "chat_summary":
|
|
3921
4851
|
return chatSummaryMemoryItemDeserializer(item);
|
|
4852
|
+
case "procedural":
|
|
4853
|
+
return proceduralMemoryItemDeserializer(item);
|
|
3922
4854
|
default:
|
|
3923
4855
|
return memoryItemDeserializer(item);
|
|
3924
4856
|
}
|
|
@@ -3941,6 +4873,15 @@ export function chatSummaryMemoryItemDeserializer(item) {
|
|
|
3941
4873
|
kind: item["kind"],
|
|
3942
4874
|
};
|
|
3943
4875
|
}
|
|
4876
|
+
export function proceduralMemoryItemDeserializer(item) {
|
|
4877
|
+
return {
|
|
4878
|
+
memory_id: item["memory_id"],
|
|
4879
|
+
updated_at: new Date(item["updated_at"] * 1000),
|
|
4880
|
+
scope: item["scope"],
|
|
4881
|
+
content: item["content"],
|
|
4882
|
+
kind: item["kind"],
|
|
4883
|
+
};
|
|
4884
|
+
}
|
|
3944
4885
|
export function memoryStoreOperationUsageDeserializer(item) {
|
|
3945
4886
|
return {
|
|
3946
4887
|
embedding_tokens: item["embedding_tokens"],
|
|
@@ -3969,7 +4910,7 @@ export function memoryStoreUpdateResponseDeserializer(item) {
|
|
|
3969
4910
|
result: !item["result"]
|
|
3970
4911
|
? item["result"]
|
|
3971
4912
|
: memoryStoreUpdateCompletedResultDeserializer(item["result"]),
|
|
3972
|
-
error: !item["error"] ? item["error"] :
|
|
4913
|
+
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
3973
4914
|
};
|
|
3974
4915
|
}
|
|
3975
4916
|
export function memoryStoreUpdateCompletedResultDeserializer(item) {
|
|
@@ -3997,6 +4938,171 @@ export function memoryStoreDeleteScopeResponseDeserializer(item) {
|
|
|
3997
4938
|
deleted: item["deleted"],
|
|
3998
4939
|
};
|
|
3999
4940
|
}
|
|
4941
|
+
export function _agentsPagedResultMemoryItemDeserializer(item) {
|
|
4942
|
+
return {
|
|
4943
|
+
data: memoryItemUnionArrayDeserializer(item["data"]),
|
|
4944
|
+
first_id: item["first_id"],
|
|
4945
|
+
last_id: item["last_id"],
|
|
4946
|
+
has_more: item["has_more"],
|
|
4947
|
+
};
|
|
4948
|
+
}
|
|
4949
|
+
export function memoryItemUnionArrayDeserializer(result) {
|
|
4950
|
+
return result.map((item) => {
|
|
4951
|
+
return memoryItemUnionDeserializer(item);
|
|
4952
|
+
});
|
|
4953
|
+
}
|
|
4954
|
+
export function deleteMemoryResponseDeserializer(item) {
|
|
4955
|
+
return {
|
|
4956
|
+
object: item["object"],
|
|
4957
|
+
memory_id: item["memory_id"],
|
|
4958
|
+
deleted: item["deleted"],
|
|
4959
|
+
};
|
|
4960
|
+
}
|
|
4961
|
+
export function _pagedModelVersionDeserializer(item) {
|
|
4962
|
+
return {
|
|
4963
|
+
value: modelVersionArrayDeserializer(item["value"]),
|
|
4964
|
+
nextLink: item["nextLink"],
|
|
4965
|
+
};
|
|
4966
|
+
}
|
|
4967
|
+
export function modelVersionArraySerializer(result) {
|
|
4968
|
+
return result.map((item) => {
|
|
4969
|
+
return modelVersionSerializer(item);
|
|
4970
|
+
});
|
|
4971
|
+
}
|
|
4972
|
+
export function modelVersionArrayDeserializer(result) {
|
|
4973
|
+
return result.map((item) => {
|
|
4974
|
+
return modelVersionDeserializer(item);
|
|
4975
|
+
});
|
|
4976
|
+
}
|
|
4977
|
+
export function modelVersionSerializer(item) {
|
|
4978
|
+
return {
|
|
4979
|
+
blobUri: item["blobUri"],
|
|
4980
|
+
weightType: item["weightType"],
|
|
4981
|
+
baseModel: item["baseModel"],
|
|
4982
|
+
source: !item["source"] ? item["source"] : modelSourceDataSerializer(item["source"]),
|
|
4983
|
+
loraConfig: !item["loraConfig"] ? item["loraConfig"] : loraConfigSerializer(item["loraConfig"]),
|
|
4984
|
+
description: item["description"],
|
|
4985
|
+
tags: item["tags"],
|
|
4986
|
+
};
|
|
4987
|
+
}
|
|
4988
|
+
export function modelVersionDeserializer(item) {
|
|
4989
|
+
return {
|
|
4990
|
+
systemData: !item["systemData"]
|
|
4991
|
+
? item["systemData"]
|
|
4992
|
+
: systemDataV3Deserializer(item["systemData"]),
|
|
4993
|
+
blobUri: item["blobUri"],
|
|
4994
|
+
weightType: item["weightType"],
|
|
4995
|
+
baseModel: item["baseModel"],
|
|
4996
|
+
source: !item["source"] ? item["source"] : modelSourceDataDeserializer(item["source"]),
|
|
4997
|
+
loraConfig: !item["loraConfig"]
|
|
4998
|
+
? item["loraConfig"]
|
|
4999
|
+
: loraConfigDeserializer(item["loraConfig"]),
|
|
5000
|
+
artifactProfile: !item["artifactProfile"]
|
|
5001
|
+
? item["artifactProfile"]
|
|
5002
|
+
: artifactProfileDeserializer(item["artifactProfile"]),
|
|
5003
|
+
warnings: !item["warnings"]
|
|
5004
|
+
? item["warnings"]
|
|
5005
|
+
: foundryModelWarningArrayDeserializer(item["warnings"]),
|
|
5006
|
+
id: item["id"],
|
|
5007
|
+
name: item["name"],
|
|
5008
|
+
version: item["version"],
|
|
5009
|
+
description: item["description"],
|
|
5010
|
+
tags: !item["tags"]
|
|
5011
|
+
? item["tags"]
|
|
5012
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
5013
|
+
};
|
|
5014
|
+
}
|
|
5015
|
+
export function systemDataV3Deserializer(item) {
|
|
5016
|
+
return {
|
|
5017
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"] * 1000),
|
|
5018
|
+
createdBy: item["createdBy"],
|
|
5019
|
+
createdByType: item["createdByType"],
|
|
5020
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
5021
|
+
? item["lastModifiedAt"]
|
|
5022
|
+
: new Date(item["lastModifiedAt"] * 1000),
|
|
5023
|
+
};
|
|
5024
|
+
}
|
|
5025
|
+
export function modelSourceDataSerializer(item) {
|
|
5026
|
+
return { sourceType: item["sourceType"], jobId: item["jobId"] };
|
|
5027
|
+
}
|
|
5028
|
+
export function modelSourceDataDeserializer(item) {
|
|
5029
|
+
return {
|
|
5030
|
+
sourceType: item["sourceType"],
|
|
5031
|
+
jobId: item["jobId"],
|
|
5032
|
+
};
|
|
5033
|
+
}
|
|
5034
|
+
export function loraConfigSerializer(item) {
|
|
5035
|
+
return {
|
|
5036
|
+
rank: item["rank"],
|
|
5037
|
+
alpha: item["alpha"],
|
|
5038
|
+
targetModules: !item["targetModules"]
|
|
5039
|
+
? item["targetModules"]
|
|
5040
|
+
: item["targetModules"].map((p) => {
|
|
5041
|
+
return p;
|
|
5042
|
+
}),
|
|
5043
|
+
dropout: item["dropout"],
|
|
5044
|
+
};
|
|
5045
|
+
}
|
|
5046
|
+
export function loraConfigDeserializer(item) {
|
|
5047
|
+
return {
|
|
5048
|
+
rank: item["rank"],
|
|
5049
|
+
alpha: item["alpha"],
|
|
5050
|
+
targetModules: !item["targetModules"]
|
|
5051
|
+
? item["targetModules"]
|
|
5052
|
+
: item["targetModules"].map((p) => {
|
|
5053
|
+
return p;
|
|
5054
|
+
}),
|
|
5055
|
+
dropout: item["dropout"],
|
|
5056
|
+
};
|
|
5057
|
+
}
|
|
5058
|
+
export function artifactProfileDeserializer(item) {
|
|
5059
|
+
return {
|
|
5060
|
+
category: item["category"],
|
|
5061
|
+
signals: !item["signals"]
|
|
5062
|
+
? item["signals"]
|
|
5063
|
+
: item["signals"].map((p) => {
|
|
5064
|
+
return p;
|
|
5065
|
+
}),
|
|
5066
|
+
};
|
|
5067
|
+
}
|
|
5068
|
+
export function foundryModelWarningArrayDeserializer(result) {
|
|
5069
|
+
return result.map((item) => {
|
|
5070
|
+
return foundryModelWarningDeserializer(item);
|
|
5071
|
+
});
|
|
5072
|
+
}
|
|
5073
|
+
export function foundryModelWarningDeserializer(item) {
|
|
5074
|
+
return {
|
|
5075
|
+
code: item["code"],
|
|
5076
|
+
message: item["message"],
|
|
5077
|
+
};
|
|
5078
|
+
}
|
|
5079
|
+
export function updateModelVersionRequestSerializer(item) {
|
|
5080
|
+
return { description: item["description"], tags: item["tags"] };
|
|
5081
|
+
}
|
|
5082
|
+
export function _createAsyncResponseDeserializer(item) {
|
|
5083
|
+
return {
|
|
5084
|
+
location: item["location"],
|
|
5085
|
+
operationResult: item["operationResult"],
|
|
5086
|
+
};
|
|
5087
|
+
}
|
|
5088
|
+
export function modelPendingUploadRequestSerializer(item) {
|
|
5089
|
+
return {
|
|
5090
|
+
pendingUploadId: item["pendingUploadId"],
|
|
5091
|
+
connectionName: item["connectionName"],
|
|
5092
|
+
pendingUploadType: item["pendingUploadType"],
|
|
5093
|
+
};
|
|
5094
|
+
}
|
|
5095
|
+
export function modelPendingUploadResponseDeserializer(item) {
|
|
5096
|
+
return {
|
|
5097
|
+
blobReference: blobReferenceDeserializer(item["blobReference"]),
|
|
5098
|
+
pendingUploadId: item["pendingUploadId"],
|
|
5099
|
+
version: item["version"],
|
|
5100
|
+
pendingUploadType: item["pendingUploadType"],
|
|
5101
|
+
};
|
|
5102
|
+
}
|
|
5103
|
+
export function modelCredentialRequestSerializer(item) {
|
|
5104
|
+
return { blobUri: item["blobUri"] };
|
|
5105
|
+
}
|
|
4000
5106
|
export function redTeamSerializer(item) {
|
|
4001
5107
|
return {
|
|
4002
5108
|
displayName: item["displayName"],
|
|
@@ -4007,7 +5113,7 @@ export function redTeamSerializer(item) {
|
|
|
4007
5113
|
applicationScenario: item["applicationScenario"],
|
|
4008
5114
|
tags: item["tags"],
|
|
4009
5115
|
properties: item["properties"],
|
|
4010
|
-
target: item["target"] ?
|
|
5116
|
+
target: item["target"] ? redTeamTargetConfigUnionSerializer(item["target"]) : undefined,
|
|
4011
5117
|
};
|
|
4012
5118
|
}
|
|
4013
5119
|
export function redTeamDeserializer(item) {
|
|
@@ -4022,31 +5128,31 @@ export function redTeamDeserializer(item) {
|
|
|
4022
5128
|
tags: item["tags"],
|
|
4023
5129
|
properties: item["properties"],
|
|
4024
5130
|
status: item["status"],
|
|
4025
|
-
target: item["target"] ?
|
|
5131
|
+
target: item["target"] ? redTeamTargetConfigUnionDeserializer(item["target"]) : undefined,
|
|
4026
5132
|
};
|
|
4027
5133
|
}
|
|
4028
|
-
export function
|
|
5134
|
+
export function redTeamTargetConfigSerializer(item) {
|
|
4029
5135
|
return { type: item["type"] };
|
|
4030
5136
|
}
|
|
4031
|
-
export function
|
|
5137
|
+
export function redTeamTargetConfigDeserializer(item) {
|
|
4032
5138
|
return {
|
|
4033
5139
|
type: item["type"],
|
|
4034
5140
|
};
|
|
4035
5141
|
}
|
|
4036
|
-
export function
|
|
5142
|
+
export function redTeamTargetConfigUnionSerializer(item) {
|
|
4037
5143
|
switch (item.type) {
|
|
4038
5144
|
case "AzureOpenAIModel":
|
|
4039
5145
|
return azureOpenAIModelConfigurationSerializer(item);
|
|
4040
5146
|
default:
|
|
4041
|
-
return
|
|
5147
|
+
return redTeamTargetConfigSerializer(item);
|
|
4042
5148
|
}
|
|
4043
5149
|
}
|
|
4044
|
-
export function
|
|
5150
|
+
export function redTeamTargetConfigUnionDeserializer(item) {
|
|
4045
5151
|
switch (item.type) {
|
|
4046
5152
|
case "AzureOpenAIModel":
|
|
4047
5153
|
return azureOpenAIModelConfigurationDeserializer(item);
|
|
4048
5154
|
default:
|
|
4049
|
-
return
|
|
5155
|
+
return redTeamTargetConfigDeserializer(item);
|
|
4050
5156
|
}
|
|
4051
5157
|
}
|
|
4052
5158
|
export function azureOpenAIModelConfigurationSerializer(item) {
|
|
@@ -4074,20 +5180,286 @@ export function redTeamArrayDeserializer(result) {
|
|
|
4074
5180
|
return redTeamDeserializer(item);
|
|
4075
5181
|
});
|
|
4076
5182
|
}
|
|
4077
|
-
export function
|
|
5183
|
+
export function routineTriggerUnionRecordSerializer(item) {
|
|
5184
|
+
const result = {};
|
|
5185
|
+
Object.keys(item).map((key) => {
|
|
5186
|
+
result[key] = !item[key] ? item[key] : routineTriggerUnionSerializer(item[key]);
|
|
5187
|
+
});
|
|
5188
|
+
return result;
|
|
5189
|
+
}
|
|
5190
|
+
export function routineTriggerUnionRecordDeserializer(item) {
|
|
5191
|
+
const result = {};
|
|
5192
|
+
Object.keys(item).map((key) => {
|
|
5193
|
+
result[key] = !item[key] ? item[key] : routineTriggerUnionDeserializer(item[key]);
|
|
5194
|
+
});
|
|
5195
|
+
return result;
|
|
5196
|
+
}
|
|
5197
|
+
export function routineTriggerSerializer(item) {
|
|
5198
|
+
return { type: item["type"] };
|
|
5199
|
+
}
|
|
5200
|
+
export function routineTriggerDeserializer(item) {
|
|
4078
5201
|
return {
|
|
4079
|
-
|
|
4080
|
-
description: item["description"],
|
|
4081
|
-
enabled: item["enabled"],
|
|
4082
|
-
trigger: triggerUnionSerializer(item["trigger"]),
|
|
4083
|
-
task: scheduleTaskUnionSerializer(item["task"]),
|
|
4084
|
-
tags: item["tags"],
|
|
4085
|
-
properties: item["properties"],
|
|
5202
|
+
type: item["type"],
|
|
4086
5203
|
};
|
|
4087
5204
|
}
|
|
4088
|
-
export function
|
|
4089
|
-
|
|
4090
|
-
|
|
5205
|
+
export function routineTriggerUnionSerializer(item) {
|
|
5206
|
+
switch (item.type) {
|
|
5207
|
+
case "schedule":
|
|
5208
|
+
return scheduleRoutineTriggerSerializer(item);
|
|
5209
|
+
case "timer":
|
|
5210
|
+
return timerRoutineTriggerSerializer(item);
|
|
5211
|
+
case "github_issue":
|
|
5212
|
+
return gitHubIssueRoutineTriggerSerializer(item);
|
|
5213
|
+
case "custom":
|
|
5214
|
+
return customRoutineTriggerSerializer(item);
|
|
5215
|
+
default:
|
|
5216
|
+
return routineTriggerSerializer(item);
|
|
5217
|
+
}
|
|
5218
|
+
}
|
|
5219
|
+
export function routineTriggerUnionDeserializer(item) {
|
|
5220
|
+
switch (item["type"]) {
|
|
5221
|
+
case "schedule":
|
|
5222
|
+
return scheduleRoutineTriggerDeserializer(item);
|
|
5223
|
+
case "timer":
|
|
5224
|
+
return timerRoutineTriggerDeserializer(item);
|
|
5225
|
+
case "github_issue":
|
|
5226
|
+
return gitHubIssueRoutineTriggerDeserializer(item);
|
|
5227
|
+
case "custom":
|
|
5228
|
+
return customRoutineTriggerDeserializer(item);
|
|
5229
|
+
default:
|
|
5230
|
+
return routineTriggerDeserializer(item);
|
|
5231
|
+
}
|
|
5232
|
+
}
|
|
5233
|
+
export function scheduleRoutineTriggerSerializer(item) {
|
|
5234
|
+
return {
|
|
5235
|
+
type: item["type"],
|
|
5236
|
+
cron_expression: item["cron_expression"],
|
|
5237
|
+
time_zone: item["time_zone"],
|
|
5238
|
+
};
|
|
5239
|
+
}
|
|
5240
|
+
export function scheduleRoutineTriggerDeserializer(item) {
|
|
5241
|
+
return {
|
|
5242
|
+
type: item["type"],
|
|
5243
|
+
cron_expression: item["cron_expression"],
|
|
5244
|
+
time_zone: item["time_zone"],
|
|
5245
|
+
};
|
|
5246
|
+
}
|
|
5247
|
+
export function timerRoutineTriggerSerializer(item) {
|
|
5248
|
+
return { type: item["type"], at: !item["at"] ? item["at"] : item["at"].toISOString() };
|
|
5249
|
+
}
|
|
5250
|
+
export function timerRoutineTriggerDeserializer(item) {
|
|
5251
|
+
return {
|
|
5252
|
+
type: item["type"],
|
|
5253
|
+
at: !item["at"] ? item["at"] : new Date(item["at"]),
|
|
5254
|
+
};
|
|
5255
|
+
}
|
|
5256
|
+
export function gitHubIssueRoutineTriggerSerializer(item) {
|
|
5257
|
+
return {
|
|
5258
|
+
type: item["type"],
|
|
5259
|
+
connection_id: item["connection_id"],
|
|
5260
|
+
owner: item["owner"],
|
|
5261
|
+
repository: item["repository"],
|
|
5262
|
+
issue_event: item["issue_event"],
|
|
5263
|
+
};
|
|
5264
|
+
}
|
|
5265
|
+
export function gitHubIssueRoutineTriggerDeserializer(item) {
|
|
5266
|
+
return {
|
|
5267
|
+
type: item["type"],
|
|
5268
|
+
connection_id: item["connection_id"],
|
|
5269
|
+
owner: item["owner"],
|
|
5270
|
+
repository: item["repository"],
|
|
5271
|
+
issue_event: item["issue_event"],
|
|
5272
|
+
};
|
|
5273
|
+
}
|
|
5274
|
+
export function customRoutineTriggerSerializer(item) {
|
|
5275
|
+
return {
|
|
5276
|
+
type: item["type"],
|
|
5277
|
+
provider: item["provider"],
|
|
5278
|
+
event_name: item["event_name"],
|
|
5279
|
+
parameters: item["parameters"],
|
|
5280
|
+
};
|
|
5281
|
+
}
|
|
5282
|
+
export function customRoutineTriggerDeserializer(item) {
|
|
5283
|
+
return {
|
|
5284
|
+
type: item["type"],
|
|
5285
|
+
provider: item["provider"],
|
|
5286
|
+
event_name: item["event_name"],
|
|
5287
|
+
parameters: Object.fromEntries(Object.entries(item["parameters"]).map(([k, p]) => [k, p])),
|
|
5288
|
+
};
|
|
5289
|
+
}
|
|
5290
|
+
export function routineActionSerializer(item) {
|
|
5291
|
+
return { type: item["type"] };
|
|
5292
|
+
}
|
|
5293
|
+
export function routineActionDeserializer(item) {
|
|
5294
|
+
return {
|
|
5295
|
+
type: item["type"],
|
|
5296
|
+
};
|
|
5297
|
+
}
|
|
5298
|
+
export function routineActionUnionSerializer(item) {
|
|
5299
|
+
switch (item.type) {
|
|
5300
|
+
case "invoke_agent_responses_api":
|
|
5301
|
+
return invokeAgentResponsesApiRoutineActionSerializer(item);
|
|
5302
|
+
case "invoke_agent_invocations_api":
|
|
5303
|
+
return invokeAgentInvocationsApiRoutineActionSerializer(item);
|
|
5304
|
+
default:
|
|
5305
|
+
return routineActionSerializer(item);
|
|
5306
|
+
}
|
|
5307
|
+
}
|
|
5308
|
+
export function routineActionUnionDeserializer(item) {
|
|
5309
|
+
switch (item["type"]) {
|
|
5310
|
+
case "invoke_agent_responses_api":
|
|
5311
|
+
return invokeAgentResponsesApiRoutineActionDeserializer(item);
|
|
5312
|
+
case "invoke_agent_invocations_api":
|
|
5313
|
+
return invokeAgentInvocationsApiRoutineActionDeserializer(item);
|
|
5314
|
+
default:
|
|
5315
|
+
return routineActionDeserializer(item);
|
|
5316
|
+
}
|
|
5317
|
+
}
|
|
5318
|
+
export function invokeAgentResponsesApiRoutineActionSerializer(item) {
|
|
5319
|
+
return {
|
|
5320
|
+
type: item["type"],
|
|
5321
|
+
agent_name: item["agent_name"],
|
|
5322
|
+
agent_endpoint_id: item["agent_endpoint_id"],
|
|
5323
|
+
input: item["input"],
|
|
5324
|
+
conversation: item["conversation"],
|
|
5325
|
+
};
|
|
5326
|
+
}
|
|
5327
|
+
export function invokeAgentResponsesApiRoutineActionDeserializer(item) {
|
|
5328
|
+
return {
|
|
5329
|
+
type: item["type"],
|
|
5330
|
+
agent_name: item["agent_name"],
|
|
5331
|
+
agent_endpoint_id: item["agent_endpoint_id"],
|
|
5332
|
+
input: item["input"],
|
|
5333
|
+
conversation: item["conversation"],
|
|
5334
|
+
};
|
|
5335
|
+
}
|
|
5336
|
+
export function invokeAgentInvocationsApiRoutineActionSerializer(item) {
|
|
5337
|
+
return {
|
|
5338
|
+
type: item["type"],
|
|
5339
|
+
agent_name: item["agent_name"],
|
|
5340
|
+
agent_endpoint_id: item["agent_endpoint_id"],
|
|
5341
|
+
input: item["input"],
|
|
5342
|
+
session_id: item["session_id"],
|
|
5343
|
+
};
|
|
5344
|
+
}
|
|
5345
|
+
export function invokeAgentInvocationsApiRoutineActionDeserializer(item) {
|
|
5346
|
+
return {
|
|
5347
|
+
type: item["type"],
|
|
5348
|
+
agent_name: item["agent_name"],
|
|
5349
|
+
agent_endpoint_id: item["agent_endpoint_id"],
|
|
5350
|
+
input: item["input"],
|
|
5351
|
+
session_id: item["session_id"],
|
|
5352
|
+
};
|
|
5353
|
+
}
|
|
5354
|
+
export function routineDeserializer(item) {
|
|
5355
|
+
return {
|
|
5356
|
+
name: item["name"],
|
|
5357
|
+
description: item["description"],
|
|
5358
|
+
enabled: item["enabled"],
|
|
5359
|
+
triggers: !item["triggers"]
|
|
5360
|
+
? item["triggers"]
|
|
5361
|
+
: routineTriggerUnionRecordDeserializer(item["triggers"]),
|
|
5362
|
+
action: !item["action"] ? item["action"] : routineActionUnionDeserializer(item["action"]),
|
|
5363
|
+
created_at: !item["created_at"] ? item["created_at"] : new Date(item["created_at"] * 1000),
|
|
5364
|
+
updated_at: !item["updated_at"] ? item["updated_at"] : new Date(item["updated_at"] * 1000),
|
|
5365
|
+
};
|
|
5366
|
+
}
|
|
5367
|
+
export function _agentsPagedResultRoutineDeserializer(item) {
|
|
5368
|
+
return {
|
|
5369
|
+
data: routineArrayDeserializer(item["data"]),
|
|
5370
|
+
first_id: item["first_id"],
|
|
5371
|
+
last_id: item["last_id"],
|
|
5372
|
+
has_more: item["has_more"],
|
|
5373
|
+
};
|
|
5374
|
+
}
|
|
5375
|
+
export function routineArrayDeserializer(result) {
|
|
5376
|
+
return (result ?? []).map((item) => {
|
|
5377
|
+
return routineDeserializer(item);
|
|
5378
|
+
});
|
|
5379
|
+
}
|
|
5380
|
+
export function _agentsPagedResultRoutineRunDeserializer(item) {
|
|
5381
|
+
return {
|
|
5382
|
+
data: routineRunArrayDeserializer(item["data"]),
|
|
5383
|
+
first_id: item["first_id"],
|
|
5384
|
+
last_id: item["last_id"],
|
|
5385
|
+
has_more: item["has_more"],
|
|
5386
|
+
};
|
|
5387
|
+
}
|
|
5388
|
+
export function routineRunArrayDeserializer(result) {
|
|
5389
|
+
return result.map((item) => {
|
|
5390
|
+
return routineRunDeserializer(item);
|
|
5391
|
+
});
|
|
5392
|
+
}
|
|
5393
|
+
export function routineRunDeserializer(item) {
|
|
5394
|
+
return {
|
|
5395
|
+
id: item["id"],
|
|
5396
|
+
status: item["status"],
|
|
5397
|
+
phase: item["phase"],
|
|
5398
|
+
trigger_type: item["trigger_type"],
|
|
5399
|
+
trigger_name: item["trigger_name"],
|
|
5400
|
+
attempt_source: item["attempt_source"],
|
|
5401
|
+
action_type: item["action_type"],
|
|
5402
|
+
agent_id: item["agent_id"],
|
|
5403
|
+
agent_endpoint_id: item["agent_endpoint_id"],
|
|
5404
|
+
conversation_id: item["conversation_id"],
|
|
5405
|
+
session_id: item["session_id"],
|
|
5406
|
+
triggered_at: !item["triggered_at"]
|
|
5407
|
+
? item["triggered_at"]
|
|
5408
|
+
: new Date(item["triggered_at"] * 1000),
|
|
5409
|
+
scheduled_fire_at: !item["scheduled_fire_at"]
|
|
5410
|
+
? item["scheduled_fire_at"]
|
|
5411
|
+
: new Date(item["scheduled_fire_at"] * 1000),
|
|
5412
|
+
started_at: !item["started_at"] ? item["started_at"] : new Date(item["started_at"] * 1000),
|
|
5413
|
+
ended_at: !item["ended_at"] ? item["ended_at"] : new Date(item["ended_at"] * 1000),
|
|
5414
|
+
dispatch_id: item["dispatch_id"],
|
|
5415
|
+
action_correlation_id: item["action_correlation_id"],
|
|
5416
|
+
response_id: item["response_id"],
|
|
5417
|
+
task_id: item["task_id"],
|
|
5418
|
+
error_status_code: item["error_status_code"],
|
|
5419
|
+
error_type: item["error_type"],
|
|
5420
|
+
error_message: item["error_message"],
|
|
5421
|
+
};
|
|
5422
|
+
}
|
|
5423
|
+
export function routineDispatchPayloadSerializer(item) {
|
|
5424
|
+
return { type: item["type"] };
|
|
5425
|
+
}
|
|
5426
|
+
export function routineDispatchPayloadUnionSerializer(item) {
|
|
5427
|
+
switch (item.type) {
|
|
5428
|
+
case "invoke_agent_responses_api":
|
|
5429
|
+
return invokeAgentResponsesApiDispatchPayloadSerializer(item);
|
|
5430
|
+
case "invoke_agent_invocations_api":
|
|
5431
|
+
return invokeAgentInvocationsApiDispatchPayloadSerializer(item);
|
|
5432
|
+
default:
|
|
5433
|
+
return routineDispatchPayloadSerializer(item);
|
|
5434
|
+
}
|
|
5435
|
+
}
|
|
5436
|
+
export function invokeAgentResponsesApiDispatchPayloadSerializer(item) {
|
|
5437
|
+
return { type: item["type"], input: item["input"] };
|
|
5438
|
+
}
|
|
5439
|
+
export function invokeAgentInvocationsApiDispatchPayloadSerializer(item) {
|
|
5440
|
+
return { type: item["type"], input: item["input"] };
|
|
5441
|
+
}
|
|
5442
|
+
export function dispatchRoutineResponseDeserializer(item) {
|
|
5443
|
+
return {
|
|
5444
|
+
dispatch_id: item["dispatch_id"],
|
|
5445
|
+
action_correlation_id: item["action_correlation_id"],
|
|
5446
|
+
task_id: item["task_id"],
|
|
5447
|
+
};
|
|
5448
|
+
}
|
|
5449
|
+
export function scheduleSerializer(item) {
|
|
5450
|
+
return {
|
|
5451
|
+
displayName: item["displayName"],
|
|
5452
|
+
description: item["description"],
|
|
5453
|
+
enabled: item["enabled"],
|
|
5454
|
+
trigger: triggerUnionSerializer(item["trigger"]),
|
|
5455
|
+
task: scheduleTaskUnionSerializer(item["task"]),
|
|
5456
|
+
tags: item["tags"],
|
|
5457
|
+
properties: item["properties"],
|
|
5458
|
+
};
|
|
5459
|
+
}
|
|
5460
|
+
export function scheduleDeserializer(item) {
|
|
5461
|
+
return {
|
|
5462
|
+
schedule_id: item["id"],
|
|
4091
5463
|
displayName: item["displayName"],
|
|
4092
5464
|
description: item["description"],
|
|
4093
5465
|
enabled: item["enabled"],
|
|
@@ -4293,7 +5665,7 @@ export function evaluationScheduleTaskSerializer(item) {
|
|
|
4293
5665
|
type: item["type"],
|
|
4294
5666
|
configuration: item["configuration"],
|
|
4295
5667
|
evalId: item["evalId"],
|
|
4296
|
-
evalRun:
|
|
5668
|
+
evalRun: item["evalRun"],
|
|
4297
5669
|
};
|
|
4298
5670
|
}
|
|
4299
5671
|
export function evaluationScheduleTaskDeserializer(item) {
|
|
@@ -4301,15 +5673,9 @@ export function evaluationScheduleTaskDeserializer(item) {
|
|
|
4301
5673
|
type: item["type"],
|
|
4302
5674
|
configuration: item["configuration"],
|
|
4303
5675
|
evalId: item["evalId"],
|
|
4304
|
-
evalRun:
|
|
5676
|
+
evalRun: item["evalRun"],
|
|
4305
5677
|
};
|
|
4306
5678
|
}
|
|
4307
|
-
export function _evaluationScheduleTaskEvalRunSerializer(_item) {
|
|
4308
|
-
return {};
|
|
4309
|
-
}
|
|
4310
|
-
export function _evaluationScheduleTaskEvalRunDeserializer(item) {
|
|
4311
|
-
return item;
|
|
4312
|
-
}
|
|
4313
5679
|
export function insightScheduleTaskSerializer(item) {
|
|
4314
5680
|
return {
|
|
4315
5681
|
type: item["type"],
|
|
@@ -4361,6 +5727,50 @@ export function scheduleRunArrayDeserializer(result) {
|
|
|
4361
5727
|
return scheduleRunDeserializer(item);
|
|
4362
5728
|
});
|
|
4363
5729
|
}
|
|
5730
|
+
export function toolboxSkillUnionArraySerializer(result) {
|
|
5731
|
+
return result.map((item) => {
|
|
5732
|
+
return toolboxSkillUnionSerializer(item);
|
|
5733
|
+
});
|
|
5734
|
+
}
|
|
5735
|
+
export function toolboxSkillUnionArrayDeserializer(result) {
|
|
5736
|
+
return result.map((item) => {
|
|
5737
|
+
return toolboxSkillUnionDeserializer(item);
|
|
5738
|
+
});
|
|
5739
|
+
}
|
|
5740
|
+
export function toolboxSkillSerializer(item) {
|
|
5741
|
+
return { type: item["type"] };
|
|
5742
|
+
}
|
|
5743
|
+
export function toolboxSkillDeserializer(item) {
|
|
5744
|
+
return {
|
|
5745
|
+
type: item["type"],
|
|
5746
|
+
};
|
|
5747
|
+
}
|
|
5748
|
+
export function toolboxSkillUnionSerializer(item) {
|
|
5749
|
+
switch (item.type) {
|
|
5750
|
+
case "skill_reference":
|
|
5751
|
+
return toolboxSkillReferenceSerializer(item);
|
|
5752
|
+
default:
|
|
5753
|
+
return toolboxSkillSerializer(item);
|
|
5754
|
+
}
|
|
5755
|
+
}
|
|
5756
|
+
export function toolboxSkillUnionDeserializer(item) {
|
|
5757
|
+
switch (item["type"]) {
|
|
5758
|
+
case "skill_reference":
|
|
5759
|
+
return toolboxSkillReferenceDeserializer(item);
|
|
5760
|
+
default:
|
|
5761
|
+
return toolboxSkillDeserializer(item);
|
|
5762
|
+
}
|
|
5763
|
+
}
|
|
5764
|
+
export function toolboxSkillReferenceSerializer(item) {
|
|
5765
|
+
return { type: item["type"], name: item["name"], version: item["version"] };
|
|
5766
|
+
}
|
|
5767
|
+
export function toolboxSkillReferenceDeserializer(item) {
|
|
5768
|
+
return {
|
|
5769
|
+
type: item["type"],
|
|
5770
|
+
name: item["name"],
|
|
5771
|
+
version: item["version"],
|
|
5772
|
+
};
|
|
5773
|
+
}
|
|
4364
5774
|
export function toolboxPoliciesSerializer(item) {
|
|
4365
5775
|
return {
|
|
4366
5776
|
rai_config: !item["rai_config"] ? item["rai_config"] : raiConfigSerializer(item["rai_config"]),
|
|
@@ -4384,6 +5794,7 @@ export function toolboxVersionObjectDeserializer(item) {
|
|
|
4384
5794
|
description: item["description"],
|
|
4385
5795
|
created_at: new Date(item["created_at"] * 1000),
|
|
4386
5796
|
tools: toolUnionArrayDeserializer(item["tools"]),
|
|
5797
|
+
skills: !item["skills"] ? item["skills"] : toolboxSkillUnionArrayDeserializer(item["skills"]),
|
|
4387
5798
|
policies: !item["policies"] ? item["policies"] : toolboxPoliciesDeserializer(item["policies"]),
|
|
4388
5799
|
};
|
|
4389
5800
|
}
|
|
@@ -4420,36 +5831,441 @@ export function toolboxVersionObjectArrayDeserializer(result) {
|
|
|
4420
5831
|
return toolboxVersionObjectDeserializer(item);
|
|
4421
5832
|
});
|
|
4422
5833
|
}
|
|
4423
|
-
export function
|
|
5834
|
+
export function skillDeserializer(item) {
|
|
4424
5835
|
return {
|
|
4425
|
-
|
|
4426
|
-
has_blob: item["has_blob"],
|
|
5836
|
+
id: item["id"],
|
|
4427
5837
|
name: item["name"],
|
|
4428
5838
|
description: item["description"],
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
5839
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
5840
|
+
default_version: item["default_version"],
|
|
5841
|
+
latest_version: item["latest_version"],
|
|
4432
5842
|
};
|
|
4433
5843
|
}
|
|
4434
|
-
export function
|
|
5844
|
+
export function _agentsPagedResultSkillDeserializer(item) {
|
|
4435
5845
|
return {
|
|
4436
|
-
data:
|
|
5846
|
+
data: skillArrayDeserializer(item["data"]),
|
|
4437
5847
|
first_id: item["first_id"],
|
|
4438
5848
|
last_id: item["last_id"],
|
|
4439
5849
|
has_more: item["has_more"],
|
|
4440
5850
|
};
|
|
4441
5851
|
}
|
|
4442
|
-
export function
|
|
5852
|
+
export function skillArrayDeserializer(result) {
|
|
4443
5853
|
return result.map((item) => {
|
|
4444
|
-
return
|
|
5854
|
+
return skillDeserializer(item);
|
|
4445
5855
|
});
|
|
4446
5856
|
}
|
|
4447
5857
|
export function deleteSkillResponseDeserializer(item) {
|
|
4448
5858
|
return {
|
|
5859
|
+
id: item["id"],
|
|
4449
5860
|
name: item["name"],
|
|
4450
5861
|
deleted: item["deleted"],
|
|
4451
5862
|
};
|
|
4452
5863
|
}
|
|
5864
|
+
export function skillInlineContentSerializer(item) {
|
|
5865
|
+
return {
|
|
5866
|
+
description: item["description"],
|
|
5867
|
+
instructions: item["instructions"],
|
|
5868
|
+
license: item["license"],
|
|
5869
|
+
compatibility: item["compatibility"],
|
|
5870
|
+
metadata: item["metadata"],
|
|
5871
|
+
allowed_tools: !item["allowed_tools"]
|
|
5872
|
+
? item["allowed_tools"]
|
|
5873
|
+
: item["allowed_tools"].map((p) => {
|
|
5874
|
+
return p;
|
|
5875
|
+
}),
|
|
5876
|
+
};
|
|
5877
|
+
}
|
|
5878
|
+
export function skillVersionDeserializer(item) {
|
|
5879
|
+
return {
|
|
5880
|
+
id: item["id"],
|
|
5881
|
+
skill_id: item["skill_id"],
|
|
5882
|
+
name: item["name"],
|
|
5883
|
+
version: item["version"],
|
|
5884
|
+
description: item["description"],
|
|
5885
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
5886
|
+
};
|
|
5887
|
+
}
|
|
5888
|
+
export function createSkillVersionFromFilesBodySerializer(item) {
|
|
5889
|
+
return [
|
|
5890
|
+
...item["files"].map((x) => createFilePartDescriptor("files", x)),
|
|
5891
|
+
...(item["default"] === undefined ? [] : [{ name: "default", body: item["default"] }]),
|
|
5892
|
+
];
|
|
5893
|
+
}
|
|
5894
|
+
export function _agentsPagedResultSkillVersionDeserializer(item) {
|
|
5895
|
+
return {
|
|
5896
|
+
data: skillVersionArrayDeserializer(item["data"]),
|
|
5897
|
+
first_id: item["first_id"],
|
|
5898
|
+
last_id: item["last_id"],
|
|
5899
|
+
has_more: item["has_more"],
|
|
5900
|
+
};
|
|
5901
|
+
}
|
|
5902
|
+
export function skillVersionArrayDeserializer(result) {
|
|
5903
|
+
return result.map((item) => {
|
|
5904
|
+
return skillVersionDeserializer(item);
|
|
5905
|
+
});
|
|
5906
|
+
}
|
|
5907
|
+
export function deleteSkillVersionResponseDeserializer(item) {
|
|
5908
|
+
return {
|
|
5909
|
+
id: item["id"],
|
|
5910
|
+
name: item["name"],
|
|
5911
|
+
deleted: item["deleted"],
|
|
5912
|
+
version: item["version"],
|
|
5913
|
+
};
|
|
5914
|
+
}
|
|
5915
|
+
export function dataGenerationJobSerializer(item) {
|
|
5916
|
+
return {
|
|
5917
|
+
inputs: !item["inputs"] ? item["inputs"] : dataGenerationJobInputsSerializer(item["inputs"]),
|
|
5918
|
+
};
|
|
5919
|
+
}
|
|
5920
|
+
export function dataGenerationJobDeserializer(item) {
|
|
5921
|
+
return {
|
|
5922
|
+
id: item["id"],
|
|
5923
|
+
inputs: !item["inputs"] ? item["inputs"] : dataGenerationJobInputsDeserializer(item["inputs"]),
|
|
5924
|
+
result: !item["result"] ? item["result"] : dataGenerationJobResultDeserializer(item["result"]),
|
|
5925
|
+
status: item["status"],
|
|
5926
|
+
error: !item["error"] ? item["error"] : apiErrorDeserializer(item["error"]),
|
|
5927
|
+
created_at: new Date(item["created_at"] * 1000),
|
|
5928
|
+
finished_at: !item["finished_at"] ? item["finished_at"] : new Date(item["finished_at"] * 1000),
|
|
5929
|
+
};
|
|
5930
|
+
}
|
|
5931
|
+
export function dataGenerationJobInputsSerializer(item) {
|
|
5932
|
+
return {
|
|
5933
|
+
name: item["name"],
|
|
5934
|
+
sources: dataGenerationJobSourceUnionArraySerializer(item["sources"]),
|
|
5935
|
+
options: dataGenerationJobOptionsUnionSerializer(item["options"]),
|
|
5936
|
+
scenario: item["scenario"],
|
|
5937
|
+
output_options: !item["output_options"]
|
|
5938
|
+
? item["output_options"]
|
|
5939
|
+
: dataGenerationJobOutputOptionsSerializer(item["output_options"]),
|
|
5940
|
+
};
|
|
5941
|
+
}
|
|
5942
|
+
export function dataGenerationJobInputsDeserializer(item) {
|
|
5943
|
+
return {
|
|
5944
|
+
name: item["name"],
|
|
5945
|
+
sources: dataGenerationJobSourceUnionArrayDeserializer(item["sources"]),
|
|
5946
|
+
options: dataGenerationJobOptionsUnionDeserializer(item["options"]),
|
|
5947
|
+
scenario: item["scenario"],
|
|
5948
|
+
output_options: !item["output_options"]
|
|
5949
|
+
? item["output_options"]
|
|
5950
|
+
: dataGenerationJobOutputOptionsDeserializer(item["output_options"]),
|
|
5951
|
+
};
|
|
5952
|
+
}
|
|
5953
|
+
export function dataGenerationJobSourceUnionArraySerializer(result) {
|
|
5954
|
+
return result.map((item) => {
|
|
5955
|
+
return dataGenerationJobSourceUnionSerializer(item);
|
|
5956
|
+
});
|
|
5957
|
+
}
|
|
5958
|
+
export function dataGenerationJobSourceUnionArrayDeserializer(result) {
|
|
5959
|
+
return result.map((item) => {
|
|
5960
|
+
return dataGenerationJobSourceUnionDeserializer(item);
|
|
5961
|
+
});
|
|
5962
|
+
}
|
|
5963
|
+
export function dataGenerationJobSourceSerializer(item) {
|
|
5964
|
+
return { type: item["type"], description: item["description"] };
|
|
5965
|
+
}
|
|
5966
|
+
export function dataGenerationJobSourceDeserializer(item) {
|
|
5967
|
+
return {
|
|
5968
|
+
type: item["type"],
|
|
5969
|
+
description: item["description"],
|
|
5970
|
+
};
|
|
5971
|
+
}
|
|
5972
|
+
export function dataGenerationJobSourceUnionSerializer(item) {
|
|
5973
|
+
switch (item.type) {
|
|
5974
|
+
case "prompt":
|
|
5975
|
+
return promptDataGenerationJobSourceSerializer(item);
|
|
5976
|
+
case "agent":
|
|
5977
|
+
return agentDataGenerationJobSourceSerializer(item);
|
|
5978
|
+
case "traces":
|
|
5979
|
+
return tracesDataGenerationJobSourceSerializer(item);
|
|
5980
|
+
case "file":
|
|
5981
|
+
return fileDataGenerationJobSourceSerializer(item);
|
|
5982
|
+
default:
|
|
5983
|
+
return dataGenerationJobSourceSerializer(item);
|
|
5984
|
+
}
|
|
5985
|
+
}
|
|
5986
|
+
export function dataGenerationJobSourceUnionDeserializer(item) {
|
|
5987
|
+
switch (item["type"]) {
|
|
5988
|
+
case "prompt":
|
|
5989
|
+
return promptDataGenerationJobSourceDeserializer(item);
|
|
5990
|
+
case "agent":
|
|
5991
|
+
return agentDataGenerationJobSourceDeserializer(item);
|
|
5992
|
+
case "traces":
|
|
5993
|
+
return tracesDataGenerationJobSourceDeserializer(item);
|
|
5994
|
+
case "file":
|
|
5995
|
+
return fileDataGenerationJobSourceDeserializer(item);
|
|
5996
|
+
default:
|
|
5997
|
+
return dataGenerationJobSourceDeserializer(item);
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
export function promptDataGenerationJobSourceSerializer(item) {
|
|
6001
|
+
return { type: item["type"], description: item["description"], prompt: item["prompt"] };
|
|
6002
|
+
}
|
|
6003
|
+
export function promptDataGenerationJobSourceDeserializer(item) {
|
|
6004
|
+
return {
|
|
6005
|
+
type: item["type"],
|
|
6006
|
+
description: item["description"],
|
|
6007
|
+
prompt: item["prompt"],
|
|
6008
|
+
};
|
|
6009
|
+
}
|
|
6010
|
+
export function agentDataGenerationJobSourceSerializer(item) {
|
|
6011
|
+
return {
|
|
6012
|
+
type: item["type"],
|
|
6013
|
+
description: item["description"],
|
|
6014
|
+
agent_name: item["agent_name"],
|
|
6015
|
+
agent_version: item["agent_version"],
|
|
6016
|
+
};
|
|
6017
|
+
}
|
|
6018
|
+
export function agentDataGenerationJobSourceDeserializer(item) {
|
|
6019
|
+
return {
|
|
6020
|
+
type: item["type"],
|
|
6021
|
+
description: item["description"],
|
|
6022
|
+
agent_name: item["agent_name"],
|
|
6023
|
+
agent_version: item["agent_version"],
|
|
6024
|
+
};
|
|
6025
|
+
}
|
|
6026
|
+
export function tracesDataGenerationJobSourceSerializer(item) {
|
|
6027
|
+
return {
|
|
6028
|
+
type: item["type"],
|
|
6029
|
+
description: item["description"],
|
|
6030
|
+
agent_id: item["agent_id"],
|
|
6031
|
+
agent_name: item["agent_name"],
|
|
6032
|
+
agent_version: item["agent_version"],
|
|
6033
|
+
start_time: !item["start_time"]
|
|
6034
|
+
? item["start_time"]
|
|
6035
|
+
: (item["start_time"].getTime() / 1000) | 0,
|
|
6036
|
+
end_time: !item["end_time"] ? item["end_time"] : (item["end_time"].getTime() / 1000) | 0,
|
|
6037
|
+
};
|
|
6038
|
+
}
|
|
6039
|
+
export function tracesDataGenerationJobSourceDeserializer(item) {
|
|
6040
|
+
return {
|
|
6041
|
+
type: item["type"],
|
|
6042
|
+
description: item["description"],
|
|
6043
|
+
agent_id: item["agent_id"],
|
|
6044
|
+
agent_name: item["agent_name"],
|
|
6045
|
+
agent_version: item["agent_version"],
|
|
6046
|
+
start_time: new Date(item["start_time"] * 1000),
|
|
6047
|
+
end_time: !item["end_time"] ? item["end_time"] : new Date(item["end_time"] * 1000),
|
|
6048
|
+
};
|
|
6049
|
+
}
|
|
6050
|
+
export function fileDataGenerationJobSourceSerializer(item) {
|
|
6051
|
+
return { type: item["type"], description: item["description"], id: item["id"] };
|
|
6052
|
+
}
|
|
6053
|
+
export function fileDataGenerationJobSourceDeserializer(item) {
|
|
6054
|
+
return {
|
|
6055
|
+
type: item["type"],
|
|
6056
|
+
description: item["description"],
|
|
6057
|
+
id: item["id"],
|
|
6058
|
+
};
|
|
6059
|
+
}
|
|
6060
|
+
export function dataGenerationJobOptionsSerializer(item) {
|
|
6061
|
+
return {
|
|
6062
|
+
type: item["type"],
|
|
6063
|
+
max_samples: item["max_samples"],
|
|
6064
|
+
train_split: item["train_split"],
|
|
6065
|
+
model_options: !item["model_options"]
|
|
6066
|
+
? item["model_options"]
|
|
6067
|
+
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6068
|
+
};
|
|
6069
|
+
}
|
|
6070
|
+
export function dataGenerationJobOptionsDeserializer(item) {
|
|
6071
|
+
return {
|
|
6072
|
+
type: item["type"],
|
|
6073
|
+
max_samples: item["max_samples"],
|
|
6074
|
+
train_split: item["train_split"],
|
|
6075
|
+
model_options: !item["model_options"]
|
|
6076
|
+
? item["model_options"]
|
|
6077
|
+
: dataGenerationModelOptionsDeserializer(item["model_options"]),
|
|
6078
|
+
};
|
|
6079
|
+
}
|
|
6080
|
+
export function dataGenerationJobOptionsUnionSerializer(item) {
|
|
6081
|
+
switch (item.type) {
|
|
6082
|
+
case "simple_qna":
|
|
6083
|
+
return simpleQnADataGenerationJobOptionsSerializer(item);
|
|
6084
|
+
case "traces":
|
|
6085
|
+
return tracesDataGenerationJobOptionsSerializer(item);
|
|
6086
|
+
case "tool_use":
|
|
6087
|
+
return toolUseFineTuningDataGenerationJobOptionsSerializer(item);
|
|
6088
|
+
default:
|
|
6089
|
+
return dataGenerationJobOptionsSerializer(item);
|
|
6090
|
+
}
|
|
6091
|
+
}
|
|
6092
|
+
export function dataGenerationJobOptionsUnionDeserializer(item) {
|
|
6093
|
+
switch (item["type"]) {
|
|
6094
|
+
case "simple_qna":
|
|
6095
|
+
return simpleQnADataGenerationJobOptionsDeserializer(item);
|
|
6096
|
+
case "traces":
|
|
6097
|
+
return tracesDataGenerationJobOptionsDeserializer(item);
|
|
6098
|
+
case "tool_use":
|
|
6099
|
+
return toolUseFineTuningDataGenerationJobOptionsDeserializer(item);
|
|
6100
|
+
default:
|
|
6101
|
+
return dataGenerationJobOptionsDeserializer(item);
|
|
6102
|
+
}
|
|
6103
|
+
}
|
|
6104
|
+
export function dataGenerationModelOptionsSerializer(item) {
|
|
6105
|
+
return { model: item["model"] };
|
|
6106
|
+
}
|
|
6107
|
+
export function dataGenerationModelOptionsDeserializer(item) {
|
|
6108
|
+
return {
|
|
6109
|
+
model: item["model"],
|
|
6110
|
+
};
|
|
6111
|
+
}
|
|
6112
|
+
export function simpleQnADataGenerationJobOptionsSerializer(item) {
|
|
6113
|
+
return {
|
|
6114
|
+
type: item["type"],
|
|
6115
|
+
max_samples: item["max_samples"],
|
|
6116
|
+
train_split: item["train_split"],
|
|
6117
|
+
model_options: !item["model_options"]
|
|
6118
|
+
? item["model_options"]
|
|
6119
|
+
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6120
|
+
question_types: !item["question_types"]
|
|
6121
|
+
? item["question_types"]
|
|
6122
|
+
: item["question_types"].map((p) => {
|
|
6123
|
+
return p;
|
|
6124
|
+
}),
|
|
6125
|
+
};
|
|
6126
|
+
}
|
|
6127
|
+
export function simpleQnADataGenerationJobOptionsDeserializer(item) {
|
|
6128
|
+
return {
|
|
6129
|
+
type: item["type"],
|
|
6130
|
+
max_samples: item["max_samples"],
|
|
6131
|
+
train_split: item["train_split"],
|
|
6132
|
+
model_options: !item["model_options"]
|
|
6133
|
+
? item["model_options"]
|
|
6134
|
+
: dataGenerationModelOptionsDeserializer(item["model_options"]),
|
|
6135
|
+
question_types: !item["question_types"]
|
|
6136
|
+
? item["question_types"]
|
|
6137
|
+
: item["question_types"].map((p) => {
|
|
6138
|
+
return p;
|
|
6139
|
+
}),
|
|
6140
|
+
};
|
|
6141
|
+
}
|
|
6142
|
+
export function tracesDataGenerationJobOptionsSerializer(item) {
|
|
6143
|
+
return {
|
|
6144
|
+
type: item["type"],
|
|
6145
|
+
max_samples: item["max_samples"],
|
|
6146
|
+
train_split: item["train_split"],
|
|
6147
|
+
model_options: !item["model_options"]
|
|
6148
|
+
? item["model_options"]
|
|
6149
|
+
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6150
|
+
};
|
|
6151
|
+
}
|
|
6152
|
+
export function tracesDataGenerationJobOptionsDeserializer(item) {
|
|
6153
|
+
return {
|
|
6154
|
+
type: item["type"],
|
|
6155
|
+
max_samples: item["max_samples"],
|
|
6156
|
+
train_split: item["train_split"],
|
|
6157
|
+
model_options: !item["model_options"]
|
|
6158
|
+
? item["model_options"]
|
|
6159
|
+
: dataGenerationModelOptionsDeserializer(item["model_options"]),
|
|
6160
|
+
};
|
|
6161
|
+
}
|
|
6162
|
+
export function toolUseFineTuningDataGenerationJobOptionsSerializer(item) {
|
|
6163
|
+
return {
|
|
6164
|
+
type: item["type"],
|
|
6165
|
+
max_samples: item["max_samples"],
|
|
6166
|
+
train_split: item["train_split"],
|
|
6167
|
+
model_options: !item["model_options"]
|
|
6168
|
+
? item["model_options"]
|
|
6169
|
+
: dataGenerationModelOptionsSerializer(item["model_options"]),
|
|
6170
|
+
};
|
|
6171
|
+
}
|
|
6172
|
+
export function toolUseFineTuningDataGenerationJobOptionsDeserializer(item) {
|
|
6173
|
+
return {
|
|
6174
|
+
type: item["type"],
|
|
6175
|
+
max_samples: item["max_samples"],
|
|
6176
|
+
train_split: item["train_split"],
|
|
6177
|
+
model_options: !item["model_options"]
|
|
6178
|
+
? item["model_options"]
|
|
6179
|
+
: dataGenerationModelOptionsDeserializer(item["model_options"]),
|
|
6180
|
+
};
|
|
6181
|
+
}
|
|
6182
|
+
export function dataGenerationJobOutputOptionsSerializer(item) {
|
|
6183
|
+
return { name: item["name"], description: item["description"], tags: item["tags"] };
|
|
6184
|
+
}
|
|
6185
|
+
export function dataGenerationJobOutputOptionsDeserializer(item) {
|
|
6186
|
+
return {
|
|
6187
|
+
name: item["name"],
|
|
6188
|
+
description: item["description"],
|
|
6189
|
+
tags: !item["tags"]
|
|
6190
|
+
? item["tags"]
|
|
6191
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
6192
|
+
};
|
|
6193
|
+
}
|
|
6194
|
+
export function dataGenerationJobResultDeserializer(item) {
|
|
6195
|
+
return {
|
|
6196
|
+
outputs: !item["outputs"]
|
|
6197
|
+
? item["outputs"]
|
|
6198
|
+
: dataGenerationJobOutputUnionArrayDeserializer(item["outputs"]),
|
|
6199
|
+
generated_samples: item["generated_samples"],
|
|
6200
|
+
token_usage: !item["token_usage"]
|
|
6201
|
+
? item["token_usage"]
|
|
6202
|
+
: dataGenerationTokenUsageDeserializer(item["token_usage"]),
|
|
6203
|
+
};
|
|
6204
|
+
}
|
|
6205
|
+
export function dataGenerationJobOutputUnionArrayDeserializer(result) {
|
|
6206
|
+
return result.map((item) => {
|
|
6207
|
+
return dataGenerationJobOutputUnionDeserializer(item);
|
|
6208
|
+
});
|
|
6209
|
+
}
|
|
6210
|
+
export function dataGenerationJobOutputDeserializer(item) {
|
|
6211
|
+
return {
|
|
6212
|
+
type: item["type"],
|
|
6213
|
+
};
|
|
6214
|
+
}
|
|
6215
|
+
export function dataGenerationJobOutputUnionDeserializer(item) {
|
|
6216
|
+
switch (item["type"]) {
|
|
6217
|
+
case "file":
|
|
6218
|
+
return fileDataGenerationJobOutputDeserializer(item);
|
|
6219
|
+
case "dataset":
|
|
6220
|
+
return datasetDataGenerationJobOutputDeserializer(item);
|
|
6221
|
+
default:
|
|
6222
|
+
return dataGenerationJobOutputDeserializer(item);
|
|
6223
|
+
}
|
|
6224
|
+
}
|
|
6225
|
+
export function fileDataGenerationJobOutputDeserializer(item) {
|
|
6226
|
+
return {
|
|
6227
|
+
type: item["type"],
|
|
6228
|
+
id: item["id"],
|
|
6229
|
+
filename: item["filename"],
|
|
6230
|
+
};
|
|
6231
|
+
}
|
|
6232
|
+
export function datasetDataGenerationJobOutputDeserializer(item) {
|
|
6233
|
+
return {
|
|
6234
|
+
type: item["type"],
|
|
6235
|
+
id: item["id"],
|
|
6236
|
+
name: item["name"],
|
|
6237
|
+
version: item["version"],
|
|
6238
|
+
description: item["description"],
|
|
6239
|
+
tags: !item["tags"]
|
|
6240
|
+
? item["tags"]
|
|
6241
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
6242
|
+
};
|
|
6243
|
+
}
|
|
6244
|
+
export function dataGenerationTokenUsageDeserializer(item) {
|
|
6245
|
+
return {
|
|
6246
|
+
prompt_tokens: item["prompt_tokens"],
|
|
6247
|
+
completion_tokens: item["completion_tokens"],
|
|
6248
|
+
total_tokens: item["total_tokens"],
|
|
6249
|
+
};
|
|
6250
|
+
}
|
|
6251
|
+
export function _agentsPagedResultDataGenerationJobDeserializer(item) {
|
|
6252
|
+
return {
|
|
6253
|
+
data: dataGenerationJobArrayDeserializer(item["data"]),
|
|
6254
|
+
first_id: item["first_id"],
|
|
6255
|
+
last_id: item["last_id"],
|
|
6256
|
+
has_more: item["has_more"],
|
|
6257
|
+
};
|
|
6258
|
+
}
|
|
6259
|
+
export function dataGenerationJobArraySerializer(result) {
|
|
6260
|
+
return result.map((item) => {
|
|
6261
|
+
return dataGenerationJobSerializer(item);
|
|
6262
|
+
});
|
|
6263
|
+
}
|
|
6264
|
+
export function dataGenerationJobArrayDeserializer(result) {
|
|
6265
|
+
return result.map((item) => {
|
|
6266
|
+
return dataGenerationJobDeserializer(item);
|
|
6267
|
+
});
|
|
6268
|
+
}
|
|
4453
6269
|
export function updateToolboxRequestSerializer(item) {
|
|
4454
6270
|
return { default_version: item["default_version"] };
|
|
4455
6271
|
}
|