@azure/ai-projects 2.2.0 → 2.3.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 +180 -37
- package/dist/browser/aiProjectClient.d.ts +5 -2
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +13 -8
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/agents/index.d.ts +2 -2
- package/dist/browser/api/agents/index.d.ts.map +1 -1
- package/dist/browser/api/agents/index.js +1 -1
- package/dist/browser/api/agents/index.js.map +1 -1
- package/dist/browser/api/agents/operations.d.ts +147 -18
- package/dist/browser/api/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/agents/operations.js +679 -42
- package/dist/browser/api/agents/operations.js.map +1 -1
- package/dist/browser/api/agents/options.d.ts +109 -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.d.ts +9 -0
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
- package/dist/browser/api/aiProjectContext.js +1 -1
- 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 +8 -139
- package/dist/browser/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/operations.js +30 -750
- package/dist/browser/api/beta/agents/operations.js.map +1 -1
- package/dist/browser/api/beta/agents/options.d.ts +6 -200
- package/dist/browser/api/beta/agents/options.d.ts.map +1 -1
- package/dist/browser/api/beta/agents/options.js.map +1 -1
- package/dist/browser/api/beta/datasets/operations.d.ts +4 -4
- package/dist/browser/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/datasets/operations.js +19 -9
- package/dist/browser/api/beta/datasets/operations.js.map +1 -1
- 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 +4 -13
- package/dist/browser/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts +0 -6
- package/dist/browser/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluationTaxonomies/options.js.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.d.ts +14 -9
- package/dist/browser/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/evaluators/operations.js +35 -16
- package/dist/browser/api/beta/evaluators/operations.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 +13 -13
- package/dist/browser/api/beta/insights/operations.js.map +1 -1
- package/dist/browser/api/beta/insights/options.d.ts +0 -4
- 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/operations.d.ts +17 -14
- package/dist/browser/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/memoryStores/operations.js +59 -28
- package/dist/browser/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/browser/api/beta/models/operations.d.ts +6 -6
- package/dist/browser/api/beta/models/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/models/operations.js +8 -8
- package/dist/browser/api/beta/models/operations.js.map +1 -1
- package/dist/browser/api/beta/redTeams/operations.d.ts +3 -3
- package/dist/browser/api/beta/redTeams/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/redTeams/operations.js +6 -10
- package/dist/browser/api/beta/redTeams/operations.js.map +1 -1
- package/dist/browser/api/beta/redTeams/options.d.ts +0 -4
- package/dist/browser/api/beta/redTeams/options.d.ts.map +1 -1
- package/dist/browser/api/beta/redTeams/options.js.map +1 -1
- package/dist/browser/api/beta/routines/operations.d.ts +8 -8
- package/dist/browser/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/routines/operations.js +55 -44
- package/dist/browser/api/beta/routines/operations.js.map +1 -1
- package/dist/browser/api/beta/schedules/operations.d.ts +6 -6
- package/dist/browser/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/schedules/operations.js +9 -22
- package/dist/browser/api/beta/schedules/operations.js.map +1 -1
- package/dist/browser/api/beta/schedules/options.d.ts +0 -10
- package/dist/browser/api/beta/schedules/options.d.ts.map +1 -1
- package/dist/browser/api/beta/schedules/options.js.map +1 -1
- package/dist/browser/api/beta/skills/operations.d.ts +24 -24
- package/dist/browser/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/skills/operations.js +154 -132
- package/dist/browser/api/beta/skills/operations.js.map +1 -1
- package/dist/browser/api/beta/skills/options.d.ts +6 -6
- 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/connections/options.d.ts +2 -2
- package/dist/browser/api/connections/options.d.ts.map +1 -1
- package/dist/browser/api/connections/options.js.map +1 -1
- package/dist/browser/api/deployments/operations.d.ts +1 -1
- package/dist/browser/api/deployments/operations.d.ts.map +1 -1
- package/dist/browser/api/deployments/operations.js +1 -1
- package/dist/browser/api/deployments/operations.js.map +1 -1
- package/dist/browser/api/evaluationRules/operations.d.ts +4 -4
- package/dist/browser/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/browser/api/evaluationRules/operations.js +4 -4
- package/dist/browser/api/evaluationRules/operations.js.map +1 -1
- package/dist/browser/api/toolboxes/index.d.ts +3 -0
- package/dist/browser/api/toolboxes/index.d.ts.map +1 -0
- package/dist/browser/api/toolboxes/index.js.map +1 -0
- package/dist/browser/api/{beta/toolboxes → toolboxes}/operations.d.ts +21 -21
- package/dist/browser/api/toolboxes/operations.d.ts.map +1 -0
- package/dist/browser/api/{beta/toolboxes → toolboxes}/operations.js +44 -62
- package/dist/browser/api/toolboxes/operations.js.map +1 -0
- package/dist/browser/api/{beta/toolboxes → toolboxes}/options.d.ts +5 -5
- package/dist/browser/api/toolboxes/options.d.ts.map +1 -0
- package/dist/browser/api/toolboxes/options.js.map +1 -0
- package/dist/browser/classic/agents/index.d.ts +102 -3
- package/dist/browser/classic/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/agents/index.js +25 -10
- package/dist/browser/classic/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/agents/index.d.ts +6 -103
- package/dist/browser/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/agents/index.js +2 -21
- package/dist/browser/classic/beta/agents/index.js.map +1 -1
- package/dist/browser/classic/beta/datasets/index.d.ts +4 -4
- package/dist/browser/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/datasets/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
- package/dist/browser/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.d.ts +14 -9
- package/dist/browser/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/evaluators/index.js.map +1 -1
- package/dist/browser/classic/beta/index.d.ts +0 -3
- package/dist/browser/classic/beta/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/index.js +0 -3
- package/dist/browser/classic/beta/index.js.map +1 -1
- package/dist/browser/classic/beta/insights/index.d.ts +3 -3
- 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 +17 -14
- package/dist/browser/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/browser/classic/beta/models/index.d.ts +4 -4
- package/dist/browser/classic/beta/models/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/models/index.js +1 -1
- package/dist/browser/classic/beta/models/index.js.map +1 -1
- package/dist/browser/classic/beta/redTeams/index.d.ts +3 -3
- package/dist/browser/classic/beta/redTeams/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/redTeams/index.js.map +1 -1
- package/dist/browser/classic/beta/routines/index.d.ts +8 -8
- package/dist/browser/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/browser/classic/beta/routines/index.js.map +1 -1
- package/dist/browser/classic/deployments/index.d.ts +1 -1
- package/dist/browser/classic/deployments/index.d.ts.map +1 -1
- package/dist/browser/classic/deployments/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +1 -1
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/toolboxes/index.d.ts +25 -0
- package/dist/browser/classic/toolboxes/index.d.ts.map +1 -0
- package/dist/{esm/classic/beta → browser/classic}/toolboxes/index.js +4 -4
- package/dist/browser/classic/toolboxes/index.js.map +1 -0
- 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 +11 -7
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -0
- 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 +648 -654
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +953 -584
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/overwriteOpenAIClient.d.ts +2 -1
- package/dist/browser/overwriteOpenAIClient.d.ts.map +1 -1
- package/dist/browser/overwriteOpenAIClient.js +48 -4
- package/dist/browser/overwriteOpenAIClient.js.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts +2 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/browser/static-helpers/platform-types-browser.d.mts +6 -0
- package/dist/browser/static-helpers/platform-types-browser.d.mts.map +1 -0
- package/dist/browser/static-helpers/platform-types-browser.mjs +4 -0
- package/dist/browser/static-helpers/platform-types-browser.mjs.map +1 -0
- package/dist/browser/static-helpers/platform-types.d.ts +6 -0
- package/dist/browser/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/browser/static-helpers/platform-types.js +4 -0
- package/dist/browser/static-helpers/platform-types.js.map +1 -0
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/browser/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
- package/dist/browser/static-helpers/serialization/serialize-record.js +2 -2
- package/dist/browser/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +7 -7
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/tracing/attributes.d.ts +62 -0
- package/dist/browser/tracing/attributes.d.ts.map +1 -0
- package/dist/browser/tracing/attributes.js +230 -0
- package/dist/browser/tracing/attributes.js.map +1 -0
- package/dist/browser/tracing/configuration.d.ts +60 -0
- package/dist/browser/tracing/configuration.d.ts.map +1 -0
- package/dist/browser/tracing/configuration.js +67 -0
- package/dist/browser/tracing/configuration.js.map +1 -0
- package/dist/browser/tracing/constants.d.ts +55 -0
- package/dist/browser/tracing/constants.d.ts.map +1 -0
- package/dist/browser/tracing/constants.js +75 -0
- package/dist/browser/tracing/constants.js.map +1 -0
- package/dist/browser/tracing/formatters.d.ts +11 -0
- package/dist/browser/tracing/formatters.d.ts.map +1 -0
- package/dist/browser/tracing/formatters.js +251 -0
- package/dist/browser/tracing/formatters.js.map +1 -0
- package/dist/browser/tracing/metrics.d.ts +22 -0
- package/dist/browser/tracing/metrics.d.ts.map +1 -0
- package/dist/browser/tracing/metrics.js +77 -0
- package/dist/browser/tracing/metrics.js.map +1 -0
- package/dist/browser/tracing/responseTracing.d.ts +4 -0
- package/dist/browser/tracing/responseTracing.d.ts.map +1 -0
- package/dist/browser/tracing/responseTracing.js +223 -0
- package/dist/browser/tracing/responseTracing.js.map +1 -0
- package/dist/browser/tracing/tracingClient.d.ts +22 -0
- package/dist/browser/tracing/tracingClient.d.ts.map +1 -0
- package/dist/browser/tracing/tracingClient.js +37 -0
- package/dist/browser/tracing/tracingClient.js.map +1 -0
- package/dist/browser/tracing/tracingFetch.d.ts +14 -0
- package/dist/browser/tracing/tracingFetch.d.ts.map +1 -0
- package/dist/browser/tracing/tracingFetch.js +30 -0
- package/dist/browser/tracing/tracingFetch.js.map +1 -0
- package/dist/commonjs/aiProjectClient.d.ts +5 -2
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +11 -6
- package/dist/commonjs/aiProjectClient.js.map +2 -2
- package/dist/commonjs/api/agents/index.d.ts +2 -2
- package/dist/commonjs/api/agents/index.d.ts.map +1 -1
- package/dist/commonjs/api/agents/index.js +32 -2
- package/dist/commonjs/api/agents/index.js.map +2 -2
- package/dist/commonjs/api/agents/operations.d.ts +147 -18
- package/dist/commonjs/api/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/agents/operations.js +796 -51
- package/dist/commonjs/api/agents/operations.js.map +2 -2
- package/dist/commonjs/api/agents/options.d.ts +109 -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.d.ts +9 -0
- package/dist/commonjs/api/aiProjectContext.d.ts.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 +2 -40
- package/dist/commonjs/api/beta/agents/index.js.map +2 -2
- package/dist/commonjs/api/beta/agents/operations.d.ts +8 -139
- package/dist/commonjs/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/operations.js +29 -888
- package/dist/commonjs/api/beta/agents/operations.js.map +2 -2
- package/dist/commonjs/api/beta/agents/options.d.ts +6 -200
- package/dist/commonjs/api/beta/agents/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/agents/options.js.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.d.ts +4 -4
- package/dist/commonjs/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/datasets/operations.js +15 -5
- package/dist/commonjs/api/beta/datasets/operations.js.map +2 -2
- 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 +0 -3
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +2 -2
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts +0 -6
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.js.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.d.ts +14 -9
- package/dist/commonjs/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.js +21 -7
- package/dist/commonjs/api/beta/evaluators/operations.js.map +2 -2
- 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 +10 -6
- package/dist/commonjs/api/beta/insights/operations.js.map +2 -2
- package/dist/commonjs/api/beta/insights/options.d.ts +0 -4
- 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/operations.d.ts +17 -14
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/operations.js +42 -14
- package/dist/commonjs/api/beta/memoryStores/operations.js.map +2 -2
- package/dist/commonjs/api/beta/models/operations.d.ts +6 -6
- package/dist/commonjs/api/beta/models/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/models/operations.js +4 -4
- package/dist/commonjs/api/beta/models/operations.js.map +2 -2
- package/dist/commonjs/api/beta/redTeams/operations.d.ts +3 -3
- package/dist/commonjs/api/beta/redTeams/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/redTeams/operations.js +3 -3
- package/dist/commonjs/api/beta/redTeams/operations.js.map +2 -2
- package/dist/commonjs/api/beta/redTeams/options.d.ts +0 -4
- package/dist/commonjs/api/beta/redTeams/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/redTeams/options.js.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.d.ts +8 -8
- package/dist/commonjs/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/routines/operations.js +47 -20
- package/dist/commonjs/api/beta/routines/operations.js.map +2 -2
- package/dist/commonjs/api/beta/schedules/operations.d.ts +6 -6
- package/dist/commonjs/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/schedules/operations.js +3 -6
- package/dist/commonjs/api/beta/schedules/operations.js.map +2 -2
- package/dist/commonjs/api/beta/schedules/options.d.ts +0 -10
- package/dist/commonjs/api/beta/schedules/options.d.ts.map +1 -1
- package/dist/commonjs/api/beta/schedules/options.js.map +1 -1
- package/dist/commonjs/api/beta/skills/operations.d.ts +24 -24
- package/dist/commonjs/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/skills/operations.js +159 -137
- package/dist/commonjs/api/beta/skills/operations.js.map +2 -2
- package/dist/commonjs/api/beta/skills/options.d.ts +6 -6
- 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/connections/options.d.ts +2 -2
- package/dist/commonjs/api/connections/options.d.ts.map +1 -1
- package/dist/commonjs/api/connections/options.js.map +1 -1
- package/dist/commonjs/api/deployments/operations.d.ts +1 -1
- package/dist/commonjs/api/deployments/operations.d.ts.map +1 -1
- package/dist/commonjs/api/deployments/operations.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.d.ts +4 -4
- package/dist/commonjs/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.js.map +1 -1
- package/dist/commonjs/api/toolboxes/index.d.ts +3 -0
- package/dist/commonjs/api/toolboxes/index.d.ts.map +1 -0
- package/dist/commonjs/api/{beta/toolboxes → toolboxes}/index.js.map +2 -2
- package/dist/{esm/api/beta → commonjs/api}/toolboxes/operations.d.ts +21 -21
- package/dist/commonjs/api/toolboxes/operations.d.ts.map +1 -0
- package/dist/commonjs/api/{beta/toolboxes → toolboxes}/operations.js +36 -54
- package/dist/commonjs/api/toolboxes/operations.js.map +7 -0
- package/dist/{react-native/api/beta → commonjs/api}/toolboxes/options.d.ts +5 -5
- package/dist/commonjs/api/toolboxes/options.d.ts.map +1 -0
- package/dist/commonjs/api/toolboxes/options.js.map +7 -0
- package/dist/commonjs/classic/agents/index.d.ts +102 -3
- package/dist/commonjs/classic/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/agents/index.js +30 -9
- package/dist/commonjs/classic/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/agents/index.d.ts +6 -103
- package/dist/commonjs/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/agents/index.js +1 -20
- package/dist/commonjs/classic/beta/agents/index.js.map +2 -2
- package/dist/commonjs/classic/beta/datasets/index.d.ts +4 -4
- package/dist/commonjs/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/datasets/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.d.ts +14 -9
- package/dist/commonjs/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.js.map +2 -2
- package/dist/commonjs/classic/beta/index.d.ts +0 -3
- package/dist/commonjs/classic/beta/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/index.js +0 -3
- package/dist/commonjs/classic/beta/index.js.map +2 -2
- package/dist/commonjs/classic/beta/insights/index.d.ts +3 -3
- package/dist/commonjs/classic/beta/insights/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/insights/index.js.map +1 -1
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts +17 -14
- package/dist/commonjs/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/memoryStores/index.js.map +2 -2
- package/dist/commonjs/classic/beta/models/index.d.ts +4 -4
- package/dist/commonjs/classic/beta/models/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/models/index.js +1 -1
- package/dist/commonjs/classic/beta/models/index.js.map +2 -2
- package/dist/commonjs/classic/beta/redTeams/index.d.ts +3 -3
- package/dist/commonjs/classic/beta/redTeams/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/redTeams/index.js.map +1 -1
- package/dist/commonjs/classic/beta/routines/index.d.ts +8 -8
- package/dist/commonjs/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/commonjs/classic/beta/routines/index.js.map +1 -1
- package/dist/commonjs/classic/deployments/index.d.ts +1 -1
- package/dist/commonjs/classic/deployments/index.d.ts.map +1 -1
- package/dist/commonjs/classic/deployments/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +1 -1
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/toolboxes/index.d.ts +25 -0
- package/dist/commonjs/classic/toolboxes/index.d.ts.map +1 -0
- package/dist/commonjs/classic/{beta/toolboxes → toolboxes}/index.js +6 -6
- package/dist/commonjs/classic/toolboxes/index.js.map +7 -0
- 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 +11 -7
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -2
- package/dist/commonjs/index.js.map +3 -3
- 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 +648 -654
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +1014 -587
- package/dist/commonjs/models/models.js.map +2 -2
- package/dist/commonjs/overwriteOpenAIClient.d.ts +2 -1
- package/dist/commonjs/overwriteOpenAIClient.d.ts.map +1 -1
- package/dist/commonjs/overwriteOpenAIClient.js +58 -4
- package/dist/commonjs/overwriteOpenAIClient.js.map +2 -2
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts +2 -1
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/platform-types.d.ts +8 -0
- package/dist/commonjs/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/platform-types.js +16 -0
- package/dist/commonjs/static-helpers/platform-types.js.map +7 -0
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/serialization/get-binary-stream-response.js.map +2 -2
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +2 -2
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js +7 -7
- package/dist/commonjs/static-helpers/urlTemplate.js.map +2 -2
- package/dist/commonjs/tracing/attributes.d.ts +62 -0
- package/dist/commonjs/tracing/attributes.d.ts.map +1 -0
- package/dist/commonjs/tracing/attributes.js +226 -0
- package/dist/commonjs/tracing/attributes.js.map +7 -0
- package/dist/commonjs/tracing/configuration.d.ts +60 -0
- package/dist/commonjs/tracing/configuration.d.ts.map +1 -0
- package/dist/commonjs/tracing/configuration.js +68 -0
- package/dist/commonjs/tracing/configuration.js.map +7 -0
- package/dist/commonjs/tracing/constants.d.ts +55 -0
- package/dist/commonjs/tracing/constants.d.ts.map +1 -0
- package/dist/commonjs/tracing/constants.js +177 -0
- package/dist/commonjs/tracing/constants.js.map +7 -0
- package/dist/commonjs/tracing/formatters.d.ts +11 -0
- package/dist/commonjs/tracing/formatters.d.ts.map +1 -0
- package/dist/commonjs/tracing/formatters.js +213 -0
- package/dist/commonjs/tracing/formatters.js.map +7 -0
- package/dist/commonjs/tracing/metrics.d.ts +22 -0
- package/dist/commonjs/tracing/metrics.d.ts.map +1 -0
- package/dist/commonjs/tracing/metrics.js +86 -0
- package/dist/commonjs/tracing/metrics.js.map +7 -0
- package/dist/commonjs/tracing/responseTracing.d.ts +4 -0
- package/dist/commonjs/tracing/responseTracing.d.ts.map +1 -0
- package/dist/commonjs/tracing/responseTracing.js +267 -0
- package/dist/commonjs/tracing/responseTracing.js.map +7 -0
- package/dist/commonjs/tracing/tracingClient.d.ts +22 -0
- package/dist/commonjs/tracing/tracingClient.d.ts.map +1 -0
- package/dist/commonjs/tracing/tracingClient.js +51 -0
- package/dist/commonjs/tracing/tracingClient.js.map +7 -0
- package/dist/commonjs/tracing/tracingFetch.d.ts +14 -0
- package/dist/commonjs/tracing/tracingFetch.d.ts.map +1 -0
- package/dist/commonjs/tracing/tracingFetch.js +45 -0
- package/dist/commonjs/tracing/tracingFetch.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/aiProjectClient.d.ts +5 -2
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +13 -8
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/agents/index.d.ts +2 -2
- package/dist/esm/api/agents/index.d.ts.map +1 -1
- package/dist/esm/api/agents/index.js +1 -1
- package/dist/esm/api/agents/index.js.map +1 -1
- package/dist/esm/api/agents/operations.d.ts +147 -18
- package/dist/esm/api/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/agents/operations.js +679 -42
- package/dist/esm/api/agents/operations.js.map +1 -1
- package/dist/esm/api/agents/options.d.ts +109 -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.d.ts +9 -0
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
- package/dist/esm/api/aiProjectContext.js +1 -1
- 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 +8 -139
- package/dist/esm/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/operations.js +30 -750
- package/dist/esm/api/beta/agents/operations.js.map +1 -1
- package/dist/esm/api/beta/agents/options.d.ts +6 -200
- package/dist/esm/api/beta/agents/options.d.ts.map +1 -1
- package/dist/esm/api/beta/agents/options.js.map +1 -1
- package/dist/esm/api/beta/datasets/operations.d.ts +4 -4
- package/dist/esm/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/datasets/operations.js +19 -9
- package/dist/esm/api/beta/datasets/operations.js.map +1 -1
- 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 +4 -13
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts +0 -6
- package/dist/esm/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluationTaxonomies/options.js.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.d.ts +14 -9
- package/dist/esm/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/evaluators/operations.js +35 -16
- package/dist/esm/api/beta/evaluators/operations.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 +13 -13
- package/dist/esm/api/beta/insights/operations.js.map +1 -1
- package/dist/esm/api/beta/insights/options.d.ts +0 -4
- 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/operations.d.ts +17 -14
- package/dist/esm/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/memoryStores/operations.js +59 -28
- package/dist/esm/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/esm/api/beta/models/operations.d.ts +6 -6
- package/dist/esm/api/beta/models/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/models/operations.js +8 -8
- package/dist/esm/api/beta/models/operations.js.map +1 -1
- package/dist/esm/api/beta/redTeams/operations.d.ts +3 -3
- package/dist/esm/api/beta/redTeams/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/redTeams/operations.js +6 -10
- package/dist/esm/api/beta/redTeams/operations.js.map +1 -1
- package/dist/esm/api/beta/redTeams/options.d.ts +0 -4
- package/dist/esm/api/beta/redTeams/options.d.ts.map +1 -1
- package/dist/esm/api/beta/redTeams/options.js.map +1 -1
- package/dist/esm/api/beta/routines/operations.d.ts +8 -8
- package/dist/esm/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/routines/operations.js +55 -44
- package/dist/esm/api/beta/routines/operations.js.map +1 -1
- package/dist/esm/api/beta/schedules/operations.d.ts +6 -6
- package/dist/esm/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/schedules/operations.js +9 -22
- package/dist/esm/api/beta/schedules/operations.js.map +1 -1
- package/dist/esm/api/beta/schedules/options.d.ts +0 -10
- package/dist/esm/api/beta/schedules/options.d.ts.map +1 -1
- package/dist/esm/api/beta/schedules/options.js.map +1 -1
- package/dist/esm/api/beta/skills/operations.d.ts +24 -24
- package/dist/esm/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/skills/operations.js +154 -132
- package/dist/esm/api/beta/skills/operations.js.map +1 -1
- package/dist/esm/api/beta/skills/options.d.ts +6 -6
- 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/connections/options.d.ts +2 -2
- package/dist/esm/api/connections/options.d.ts.map +1 -1
- package/dist/esm/api/connections/options.js.map +1 -1
- package/dist/esm/api/deployments/operations.d.ts +1 -1
- package/dist/esm/api/deployments/operations.d.ts.map +1 -1
- package/dist/esm/api/deployments/operations.js +1 -1
- package/dist/esm/api/deployments/operations.js.map +1 -1
- package/dist/esm/api/evaluationRules/operations.d.ts +4 -4
- package/dist/esm/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/esm/api/evaluationRules/operations.js +4 -4
- package/dist/esm/api/evaluationRules/operations.js.map +1 -1
- package/dist/esm/api/toolboxes/index.d.ts +3 -0
- package/dist/esm/api/toolboxes/index.d.ts.map +1 -0
- package/dist/esm/api/toolboxes/index.js.map +1 -0
- package/dist/{commonjs/api/beta → esm/api}/toolboxes/operations.d.ts +21 -21
- package/dist/esm/api/toolboxes/operations.d.ts.map +1 -0
- package/dist/{react-native/api/beta → esm/api}/toolboxes/operations.js +44 -62
- package/dist/esm/api/toolboxes/operations.js.map +1 -0
- package/dist/{commonjs/api/beta → esm/api}/toolboxes/options.d.ts +5 -5
- package/dist/esm/api/toolboxes/options.d.ts.map +1 -0
- package/dist/esm/api/toolboxes/options.js.map +1 -0
- package/dist/esm/classic/agents/index.d.ts +102 -3
- package/dist/esm/classic/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/agents/index.js +25 -10
- package/dist/esm/classic/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/agents/index.d.ts +6 -103
- package/dist/esm/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/agents/index.js +2 -21
- package/dist/esm/classic/beta/agents/index.js.map +1 -1
- package/dist/esm/classic/beta/datasets/index.d.ts +4 -4
- package/dist/esm/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/datasets/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
- package/dist/esm/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.d.ts +14 -9
- package/dist/esm/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/evaluators/index.js.map +1 -1
- package/dist/esm/classic/beta/index.d.ts +0 -3
- package/dist/esm/classic/beta/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/index.js +0 -3
- package/dist/esm/classic/beta/index.js.map +1 -1
- package/dist/esm/classic/beta/insights/index.d.ts +3 -3
- 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 +17 -14
- package/dist/esm/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/esm/classic/beta/models/index.d.ts +4 -4
- package/dist/esm/classic/beta/models/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/models/index.js +1 -1
- package/dist/esm/classic/beta/models/index.js.map +1 -1
- package/dist/esm/classic/beta/redTeams/index.d.ts +3 -3
- package/dist/esm/classic/beta/redTeams/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/redTeams/index.js.map +1 -1
- package/dist/esm/classic/beta/routines/index.d.ts +8 -8
- package/dist/esm/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/esm/classic/beta/routines/index.js.map +1 -1
- package/dist/esm/classic/deployments/index.d.ts +1 -1
- package/dist/esm/classic/deployments/index.d.ts.map +1 -1
- package/dist/esm/classic/deployments/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +1 -1
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/toolboxes/index.d.ts +25 -0
- package/dist/esm/classic/toolboxes/index.d.ts.map +1 -0
- package/dist/{browser/classic/beta → esm/classic}/toolboxes/index.js +4 -4
- package/dist/esm/classic/toolboxes/index.js.map +1 -0
- 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 +11 -7
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- 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 +648 -654
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +953 -584
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/overwriteOpenAIClient.d.ts +2 -1
- package/dist/esm/overwriteOpenAIClient.d.ts.map +1 -1
- package/dist/esm/overwriteOpenAIClient.js +48 -4
- package/dist/esm/overwriteOpenAIClient.js.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts +2 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/esm/static-helpers/platform-types.d.ts +8 -0
- package/dist/esm/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/esm/static-helpers/platform-types.js +4 -0
- package/dist/esm/static-helpers/platform-types.js.map +1 -0
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts +2 -1
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/esm/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
- package/dist/esm/static-helpers/serialization/serialize-record.js +2 -2
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +7 -7
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/tracing/attributes.d.ts +62 -0
- package/dist/esm/tracing/attributes.d.ts.map +1 -0
- package/dist/esm/tracing/attributes.js +230 -0
- package/dist/esm/tracing/attributes.js.map +1 -0
- package/dist/esm/tracing/configuration.d.ts +60 -0
- package/dist/esm/tracing/configuration.d.ts.map +1 -0
- package/dist/esm/tracing/configuration.js +67 -0
- package/dist/esm/tracing/configuration.js.map +1 -0
- package/dist/esm/tracing/constants.d.ts +55 -0
- package/dist/esm/tracing/constants.d.ts.map +1 -0
- package/dist/esm/tracing/constants.js +75 -0
- package/dist/esm/tracing/constants.js.map +1 -0
- package/dist/esm/tracing/formatters.d.ts +11 -0
- package/dist/esm/tracing/formatters.d.ts.map +1 -0
- package/dist/esm/tracing/formatters.js +251 -0
- package/dist/esm/tracing/formatters.js.map +1 -0
- package/dist/esm/tracing/metrics.d.ts +22 -0
- package/dist/esm/tracing/metrics.d.ts.map +1 -0
- package/dist/esm/tracing/metrics.js +77 -0
- package/dist/esm/tracing/metrics.js.map +1 -0
- package/dist/esm/tracing/responseTracing.d.ts +4 -0
- package/dist/esm/tracing/responseTracing.d.ts.map +1 -0
- package/dist/esm/tracing/responseTracing.js +223 -0
- package/dist/esm/tracing/responseTracing.js.map +1 -0
- package/dist/esm/tracing/tracingClient.d.ts +22 -0
- package/dist/esm/tracing/tracingClient.d.ts.map +1 -0
- package/dist/esm/tracing/tracingClient.js +37 -0
- package/dist/esm/tracing/tracingClient.js.map +1 -0
- package/dist/esm/tracing/tracingFetch.d.ts +14 -0
- package/dist/esm/tracing/tracingFetch.d.ts.map +1 -0
- package/dist/esm/tracing/tracingFetch.js +30 -0
- package/dist/esm/tracing/tracingFetch.js.map +1 -0
- package/dist/react-native/aiProjectClient.d.ts +5 -2
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +13 -8
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/agents/index.d.ts +2 -2
- package/dist/react-native/api/agents/index.d.ts.map +1 -1
- package/dist/react-native/api/agents/index.js +1 -1
- package/dist/react-native/api/agents/index.js.map +1 -1
- package/dist/react-native/api/agents/operations.d.ts +147 -18
- package/dist/react-native/api/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/agents/operations.js +679 -42
- package/dist/react-native/api/agents/operations.js.map +1 -1
- package/dist/react-native/api/agents/options.d.ts +109 -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.d.ts +9 -0
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
- package/dist/react-native/api/aiProjectContext.js +1 -1
- 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 +8 -139
- package/dist/react-native/api/beta/agents/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/operations.js +30 -750
- package/dist/react-native/api/beta/agents/operations.js.map +1 -1
- package/dist/react-native/api/beta/agents/options.d.ts +6 -200
- package/dist/react-native/api/beta/agents/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/agents/options.js.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.d.ts +4 -4
- package/dist/react-native/api/beta/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/datasets/operations.js +19 -9
- package/dist/react-native/api/beta/datasets/operations.js.map +1 -1
- 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 +4 -13
- package/dist/react-native/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts +0 -6
- package/dist/react-native/api/beta/evaluationTaxonomies/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluationTaxonomies/options.js.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.d.ts +14 -9
- package/dist/react-native/api/beta/evaluators/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/evaluators/operations.js +35 -16
- package/dist/react-native/api/beta/evaluators/operations.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 +13 -13
- package/dist/react-native/api/beta/insights/operations.js.map +1 -1
- package/dist/react-native/api/beta/insights/options.d.ts +0 -4
- 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/operations.d.ts +17 -14
- package/dist/react-native/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/memoryStores/operations.js +59 -28
- package/dist/react-native/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/react-native/api/beta/models/operations.d.ts +6 -6
- package/dist/react-native/api/beta/models/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/models/operations.js +8 -8
- package/dist/react-native/api/beta/models/operations.js.map +1 -1
- package/dist/react-native/api/beta/redTeams/operations.d.ts +3 -3
- package/dist/react-native/api/beta/redTeams/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/redTeams/operations.js +6 -10
- package/dist/react-native/api/beta/redTeams/operations.js.map +1 -1
- package/dist/react-native/api/beta/redTeams/options.d.ts +0 -4
- package/dist/react-native/api/beta/redTeams/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/redTeams/options.js.map +1 -1
- package/dist/react-native/api/beta/routines/operations.d.ts +8 -8
- package/dist/react-native/api/beta/routines/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/routines/operations.js +55 -44
- package/dist/react-native/api/beta/routines/operations.js.map +1 -1
- package/dist/react-native/api/beta/schedules/operations.d.ts +6 -6
- package/dist/react-native/api/beta/schedules/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/schedules/operations.js +9 -22
- package/dist/react-native/api/beta/schedules/operations.js.map +1 -1
- package/dist/react-native/api/beta/schedules/options.d.ts +0 -10
- package/dist/react-native/api/beta/schedules/options.d.ts.map +1 -1
- package/dist/react-native/api/beta/schedules/options.js.map +1 -1
- package/dist/react-native/api/beta/skills/operations.d.ts +24 -24
- package/dist/react-native/api/beta/skills/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/skills/operations.js +154 -132
- package/dist/react-native/api/beta/skills/operations.js.map +1 -1
- package/dist/react-native/api/beta/skills/options.d.ts +6 -6
- 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/connections/options.d.ts +2 -2
- package/dist/react-native/api/connections/options.d.ts.map +1 -1
- package/dist/react-native/api/connections/options.js.map +1 -1
- package/dist/react-native/api/deployments/operations.d.ts +1 -1
- package/dist/react-native/api/deployments/operations.d.ts.map +1 -1
- package/dist/react-native/api/deployments/operations.js +1 -1
- package/dist/react-native/api/deployments/operations.js.map +1 -1
- package/dist/react-native/api/evaluationRules/operations.d.ts +4 -4
- package/dist/react-native/api/evaluationRules/operations.d.ts.map +1 -1
- package/dist/react-native/api/evaluationRules/operations.js +4 -4
- package/dist/react-native/api/evaluationRules/operations.js.map +1 -1
- package/dist/react-native/api/toolboxes/index.d.ts +3 -0
- package/dist/react-native/api/toolboxes/index.d.ts.map +1 -0
- package/dist/react-native/api/toolboxes/index.js.map +1 -0
- package/dist/react-native/api/{beta/toolboxes → toolboxes}/operations.d.ts +21 -21
- package/dist/react-native/api/toolboxes/operations.d.ts.map +1 -0
- package/dist/{esm/api/beta → react-native/api}/toolboxes/operations.js +44 -62
- package/dist/react-native/api/toolboxes/operations.js.map +1 -0
- package/dist/{esm/api/beta → react-native/api}/toolboxes/options.d.ts +5 -5
- package/dist/react-native/api/toolboxes/options.d.ts.map +1 -0
- package/dist/react-native/api/toolboxes/options.js.map +1 -0
- package/dist/react-native/classic/agents/index.d.ts +102 -3
- package/dist/react-native/classic/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/agents/index.js +25 -10
- package/dist/react-native/classic/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/agents/index.d.ts +6 -103
- package/dist/react-native/classic/beta/agents/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/agents/index.js +2 -21
- package/dist/react-native/classic/beta/agents/index.js.map +1 -1
- package/dist/react-native/classic/beta/datasets/index.d.ts +4 -4
- package/dist/react-native/classic/beta/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/datasets/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts +4 -4
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.d.ts +14 -9
- package/dist/react-native/classic/beta/evaluators/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/evaluators/index.js.map +1 -1
- package/dist/react-native/classic/beta/index.d.ts +0 -3
- package/dist/react-native/classic/beta/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/index.js +0 -3
- package/dist/react-native/classic/beta/index.js.map +1 -1
- package/dist/react-native/classic/beta/insights/index.d.ts +3 -3
- 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 +17 -14
- package/dist/react-native/classic/beta/memoryStores/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/react-native/classic/beta/models/index.d.ts +4 -4
- package/dist/react-native/classic/beta/models/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/models/index.js +1 -1
- package/dist/react-native/classic/beta/models/index.js.map +1 -1
- package/dist/react-native/classic/beta/redTeams/index.d.ts +3 -3
- package/dist/react-native/classic/beta/redTeams/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/redTeams/index.js.map +1 -1
- package/dist/react-native/classic/beta/routines/index.d.ts +8 -8
- package/dist/react-native/classic/beta/routines/index.d.ts.map +1 -1
- package/dist/react-native/classic/beta/routines/index.js.map +1 -1
- package/dist/react-native/classic/deployments/index.d.ts +1 -1
- package/dist/react-native/classic/deployments/index.d.ts.map +1 -1
- package/dist/react-native/classic/deployments/index.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +1 -1
- package/dist/react-native/classic/index.d.ts.map +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/toolboxes/index.d.ts +25 -0
- package/dist/react-native/classic/toolboxes/index.d.ts.map +1 -0
- package/dist/react-native/classic/{beta/toolboxes → toolboxes}/index.js +4 -4
- package/dist/react-native/classic/toolboxes/index.js.map +1 -0
- 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 +11 -7
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -0
- 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 +648 -654
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +953 -584
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/overwriteOpenAIClient.d.ts +2 -1
- package/dist/react-native/overwriteOpenAIClient.d.ts.map +1 -1
- package/dist/react-native/overwriteOpenAIClient.js +48 -4
- package/dist/react-native/overwriteOpenAIClient.js.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts +2 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/platform-types-browser.d.mts +6 -0
- package/dist/react-native/static-helpers/platform-types-browser.d.mts.map +1 -0
- package/dist/react-native/static-helpers/platform-types-browser.mjs +4 -0
- package/dist/react-native/static-helpers/platform-types-browser.mjs.map +1 -0
- package/dist/react-native/static-helpers/platform-types.d.ts +6 -0
- package/dist/react-native/static-helpers/platform-types.d.ts.map +1 -0
- package/dist/react-native/static-helpers/platform-types.js +4 -0
- package/dist/react-native/static-helpers/platform-types.js.map +1 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts +13 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.d.mts.map +1 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs +17 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response-browser.mjs.map +1 -0
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response.d.ts +1 -11
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response.d.ts.map +1 -1
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response.js +1 -14
- package/dist/react-native/static-helpers/serialization/get-binary-stream-response.js.map +1 -1
- package/dist/react-native/static-helpers/serialization/serialize-record.js +2 -2
- package/dist/react-native/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +7 -7
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/tracing/attributes.d.ts +62 -0
- package/dist/react-native/tracing/attributes.d.ts.map +1 -0
- package/dist/react-native/tracing/attributes.js +230 -0
- package/dist/react-native/tracing/attributes.js.map +1 -0
- package/dist/react-native/tracing/configuration.d.ts +60 -0
- package/dist/react-native/tracing/configuration.d.ts.map +1 -0
- package/dist/react-native/tracing/configuration.js +67 -0
- package/dist/react-native/tracing/configuration.js.map +1 -0
- package/dist/react-native/tracing/constants.d.ts +55 -0
- package/dist/react-native/tracing/constants.d.ts.map +1 -0
- package/dist/react-native/tracing/constants.js +75 -0
- package/dist/react-native/tracing/constants.js.map +1 -0
- package/dist/react-native/tracing/formatters.d.ts +11 -0
- package/dist/react-native/tracing/formatters.d.ts.map +1 -0
- package/dist/react-native/tracing/formatters.js +251 -0
- package/dist/react-native/tracing/formatters.js.map +1 -0
- package/dist/react-native/tracing/metrics.d.ts +22 -0
- package/dist/react-native/tracing/metrics.d.ts.map +1 -0
- package/dist/react-native/tracing/metrics.js +77 -0
- package/dist/react-native/tracing/metrics.js.map +1 -0
- package/dist/react-native/tracing/responseTracing.d.ts +4 -0
- package/dist/react-native/tracing/responseTracing.d.ts.map +1 -0
- package/dist/react-native/tracing/responseTracing.js +223 -0
- package/dist/react-native/tracing/responseTracing.js.map +1 -0
- package/dist/react-native/tracing/tracingClient.d.ts +22 -0
- package/dist/react-native/tracing/tracingClient.d.ts.map +1 -0
- package/dist/react-native/tracing/tracingClient.js +37 -0
- package/dist/react-native/tracing/tracingClient.js.map +1 -0
- package/dist/react-native/tracing/tracingFetch.d.ts +14 -0
- package/dist/react-native/tracing/tracingFetch.d.ts.map +1 -0
- package/dist/react-native/tracing/tracingFetch.js +30 -0
- package/dist/react-native/tracing/tracingFetch.js.map +1 -0
- package/package.json +9 -7
- package/dist/browser/api/beta/toolboxes/index.d.ts +0 -3
- package/dist/browser/api/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/browser/api/beta/toolboxes/index.js.map +0 -1
- package/dist/browser/api/beta/toolboxes/operations.d.ts.map +0 -1
- package/dist/browser/api/beta/toolboxes/operations.js.map +0 -1
- package/dist/browser/api/beta/toolboxes/options.d.ts.map +0 -1
- package/dist/browser/api/beta/toolboxes/options.js.map +0 -1
- package/dist/browser/classic/beta/toolboxes/index.d.ts +0 -25
- package/dist/browser/classic/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/browser/classic/beta/toolboxes/index.js.map +0 -1
- package/dist/commonjs/api/beta/toolboxes/index.d.ts +0 -3
- package/dist/commonjs/api/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/commonjs/api/beta/toolboxes/operations.d.ts.map +0 -1
- package/dist/commonjs/api/beta/toolboxes/operations.js.map +0 -7
- package/dist/commonjs/api/beta/toolboxes/options.d.ts.map +0 -1
- package/dist/commonjs/api/beta/toolboxes/options.js.map +0 -7
- package/dist/commonjs/classic/beta/toolboxes/index.d.ts +0 -25
- package/dist/commonjs/classic/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/commonjs/classic/beta/toolboxes/index.js.map +0 -7
- package/dist/esm/api/beta/toolboxes/index.d.ts +0 -3
- package/dist/esm/api/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/esm/api/beta/toolboxes/index.js.map +0 -1
- package/dist/esm/api/beta/toolboxes/operations.d.ts.map +0 -1
- package/dist/esm/api/beta/toolboxes/operations.js.map +0 -1
- package/dist/esm/api/beta/toolboxes/options.d.ts.map +0 -1
- package/dist/esm/api/beta/toolboxes/options.js.map +0 -1
- package/dist/esm/classic/beta/toolboxes/index.d.ts +0 -25
- package/dist/esm/classic/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/esm/classic/beta/toolboxes/index.js.map +0 -1
- package/dist/react-native/api/beta/toolboxes/index.d.ts +0 -3
- package/dist/react-native/api/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/react-native/api/beta/toolboxes/index.js.map +0 -1
- package/dist/react-native/api/beta/toolboxes/operations.d.ts.map +0 -1
- package/dist/react-native/api/beta/toolboxes/operations.js.map +0 -1
- package/dist/react-native/api/beta/toolboxes/options.d.ts.map +0 -1
- package/dist/react-native/api/beta/toolboxes/options.js.map +0 -1
- package/dist/react-native/classic/beta/toolboxes/index.d.ts +0 -25
- package/dist/react-native/classic/beta/toolboxes/index.d.ts.map +0 -1
- package/dist/react-native/classic/beta/toolboxes/index.js.map +0 -1
- /package/dist/browser/api/{beta/toolboxes → toolboxes}/index.js +0 -0
- /package/dist/browser/api/{beta/toolboxes → toolboxes}/options.js +0 -0
- /package/dist/commonjs/api/{beta/toolboxes → toolboxes}/index.js +0 -0
- /package/dist/commonjs/api/{beta/toolboxes → toolboxes}/options.js +0 -0
- /package/dist/esm/api/{beta/toolboxes → toolboxes}/index.js +0 -0
- /package/dist/esm/api/{beta/toolboxes → toolboxes}/options.js +0 -0
- /package/dist/react-native/api/{beta/toolboxes → toolboxes}/index.js +0 -0
- /package/dist/react-native/api/{beta/toolboxes → toolboxes}/options.js +0 -0
|
@@ -1,208 +1,13 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
3
|
+
import { apiErrorResponseDeserializer, optimizationJobSerializer, optimizationJobDeserializer, _agentsPagedResultOptimizationJobListItemDeserializer, } from "../../../models/models.js";
|
|
4
4
|
import { buildPagedAsyncIterator } from "../../../static-helpers/pagingHelpers.js";
|
|
5
|
-
import { getBinaryStreamResponse } from "../../../static-helpers/serialization/get-binary-stream-response.js";
|
|
6
5
|
import { expandUrlTemplate } from "../../../static-helpers/urlTemplate.js";
|
|
7
6
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
|
-
export function _promoteCandidateSend(context, jobId, candidateId, candidateRequest, options = { requestOptions: {} }) {
|
|
9
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
10
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates/{candidateId}:promote{?api-version}", {
|
|
11
|
-
jobId: jobId,
|
|
12
|
-
candidateId: candidateId,
|
|
13
|
-
"api-version": context.apiVersion,
|
|
14
|
-
}, {
|
|
15
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
16
|
-
});
|
|
17
|
-
return context.path(path).post({
|
|
18
|
-
...operationOptionsToRequestParameters(options),
|
|
19
|
-
contentType: "application/json",
|
|
20
|
-
headers: {
|
|
21
|
-
"foundry-features": foundryFeatures,
|
|
22
|
-
accept: "application/json",
|
|
23
|
-
...options.requestOptions?.headers,
|
|
24
|
-
},
|
|
25
|
-
body: promoteCandidateRequestSerializer(candidateRequest),
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export async function _promoteCandidateDeserialize(result) {
|
|
29
|
-
const expectedStatuses = ["200"];
|
|
30
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
31
|
-
const error = createRestError(result);
|
|
32
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
33
|
-
throw error;
|
|
34
|
-
}
|
|
35
|
-
return promoteCandidateResponseDeserializer(result.body);
|
|
36
|
-
}
|
|
37
|
-
/** Promotes a candidate, recording the deployment timestamp and target agent version. */
|
|
38
|
-
export async function promoteCandidate(context, jobId, candidateId, candidateRequest, options = { requestOptions: {} }) {
|
|
39
|
-
const result = await _promoteCandidateSend(context, jobId, candidateId, candidateRequest, options);
|
|
40
|
-
return _promoteCandidateDeserialize(result);
|
|
41
|
-
}
|
|
42
|
-
export function _getCandidateFileSend(context, jobId, candidateId, path, options = { requestOptions: {} }) {
|
|
43
|
-
const path_1 = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates/{candidateId}/files{?path,api-version}", {
|
|
44
|
-
jobId: jobId,
|
|
45
|
-
candidateId: candidateId,
|
|
46
|
-
path: path,
|
|
47
|
-
"api-version": context.apiVersion,
|
|
48
|
-
}, {
|
|
49
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
50
|
-
});
|
|
51
|
-
return context.path(path_1).get({
|
|
52
|
-
...operationOptionsToRequestParameters(options),
|
|
53
|
-
headers: {
|
|
54
|
-
"foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview",
|
|
55
|
-
accept: "application/octet-stream",
|
|
56
|
-
...options.requestOptions?.headers,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
export async function _getCandidateFileDeserialize(result) {
|
|
61
|
-
const expectedStatuses = ["200"];
|
|
62
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
63
|
-
const error = createRestError(result);
|
|
64
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
68
|
-
}
|
|
69
|
-
/** Stream a specific file from the candidate's blob directory. */
|
|
70
|
-
export async function getCandidateFile(context, jobId, candidateId, path, options = { requestOptions: {} }) {
|
|
71
|
-
const result = await _getCandidateFileSend(context, jobId, candidateId, path, options);
|
|
72
|
-
return _getCandidateFileDeserialize(result);
|
|
73
|
-
}
|
|
74
|
-
export function _getOptimizationCandidateResultsSend(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
75
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates/{candidateId}/results{?api-version}", {
|
|
76
|
-
jobId: jobId,
|
|
77
|
-
candidateId: candidateId,
|
|
78
|
-
"api-version": context.apiVersion,
|
|
79
|
-
}, {
|
|
80
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
81
|
-
});
|
|
82
|
-
return context.path(path).get({
|
|
83
|
-
...operationOptionsToRequestParameters(options),
|
|
84
|
-
headers: {
|
|
85
|
-
"foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview",
|
|
86
|
-
accept: "application/json",
|
|
87
|
-
...options.requestOptions?.headers,
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
export async function _getOptimizationCandidateResultsDeserialize(result) {
|
|
92
|
-
const expectedStatuses = ["200"];
|
|
93
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
94
|
-
const error = createRestError(result);
|
|
95
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
96
|
-
throw error;
|
|
97
|
-
}
|
|
98
|
-
return candidateResultsDeserializer(result.body);
|
|
99
|
-
}
|
|
100
|
-
/** Get full per-task evaluation results for a candidate. */
|
|
101
|
-
export async function getOptimizationCandidateResults(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
102
|
-
const result = await _getOptimizationCandidateResultsSend(context, jobId, candidateId, options);
|
|
103
|
-
return _getOptimizationCandidateResultsDeserialize(result);
|
|
104
|
-
}
|
|
105
|
-
export function _getOptimizationCandidateConfigSend(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
106
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates/{candidateId}/config{?api-version}", {
|
|
107
|
-
jobId: jobId,
|
|
108
|
-
candidateId: candidateId,
|
|
109
|
-
"api-version": context.apiVersion,
|
|
110
|
-
}, {
|
|
111
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
112
|
-
});
|
|
113
|
-
return context.path(path).get({
|
|
114
|
-
...operationOptionsToRequestParameters(options),
|
|
115
|
-
headers: {
|
|
116
|
-
"foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview",
|
|
117
|
-
accept: "application/json",
|
|
118
|
-
...options.requestOptions?.headers,
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
export async function _getOptimizationCandidateConfigDeserialize(result) {
|
|
123
|
-
const expectedStatuses = ["200"];
|
|
124
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
125
|
-
const error = createRestError(result);
|
|
126
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
127
|
-
throw error;
|
|
128
|
-
}
|
|
129
|
-
return candidateDeployConfigDeserializer(result.body);
|
|
130
|
-
}
|
|
131
|
-
/** Get the candidate's deploy config JSON. Used to compose `agents.create_version(...)` from a candidate. */
|
|
132
|
-
export async function getOptimizationCandidateConfig(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
133
|
-
const result = await _getOptimizationCandidateConfigSend(context, jobId, candidateId, options);
|
|
134
|
-
return _getOptimizationCandidateConfigDeserialize(result);
|
|
135
|
-
}
|
|
136
|
-
export function _getOptimizationCandidateSend(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
137
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates/{candidateId}{?api-version}", {
|
|
138
|
-
jobId: jobId,
|
|
139
|
-
candidateId: candidateId,
|
|
140
|
-
"api-version": context.apiVersion,
|
|
141
|
-
}, {
|
|
142
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
143
|
-
});
|
|
144
|
-
return context.path(path).get({
|
|
145
|
-
...operationOptionsToRequestParameters(options),
|
|
146
|
-
headers: {
|
|
147
|
-
"foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview",
|
|
148
|
-
accept: "application/json",
|
|
149
|
-
...options.requestOptions?.headers,
|
|
150
|
-
},
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
export async function _getOptimizationCandidateDeserialize(result) {
|
|
154
|
-
const expectedStatuses = ["200"];
|
|
155
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
156
|
-
const error = createRestError(result);
|
|
157
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
158
|
-
throw error;
|
|
159
|
-
}
|
|
160
|
-
return candidateMetadataDeserializer(result.body);
|
|
161
|
-
}
|
|
162
|
-
/** Get a single candidate's metadata, manifest, and promotion info. */
|
|
163
|
-
export async function getOptimizationCandidate(context, jobId, candidateId, options = { requestOptions: {} }) {
|
|
164
|
-
const result = await _getOptimizationCandidateSend(context, jobId, candidateId, options);
|
|
165
|
-
return _getOptimizationCandidateDeserialize(result);
|
|
166
|
-
}
|
|
167
|
-
export function _listOptimizationCandidatesSend(context, jobId, options = { requestOptions: {} }) {
|
|
168
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}/candidates{?limit,order,after,before,api-version}", {
|
|
169
|
-
jobId: jobId,
|
|
170
|
-
limit: options?.limit,
|
|
171
|
-
order: options?.order,
|
|
172
|
-
after: options?.after,
|
|
173
|
-
before: options?.before,
|
|
174
|
-
"api-version": context.apiVersion,
|
|
175
|
-
}, {
|
|
176
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
177
|
-
});
|
|
178
|
-
return context.path(path).get({
|
|
179
|
-
...operationOptionsToRequestParameters(options),
|
|
180
|
-
headers: {
|
|
181
|
-
"foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview",
|
|
182
|
-
accept: "application/json",
|
|
183
|
-
...options.requestOptions?.headers,
|
|
184
|
-
},
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
export async function _listOptimizationCandidatesDeserialize(result) {
|
|
188
|
-
const expectedStatuses = ["200"];
|
|
189
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
190
|
-
const error = createRestError(result);
|
|
191
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
192
|
-
throw error;
|
|
193
|
-
}
|
|
194
|
-
return agentsPagedResultOptimizationCandidateDeserializer(result.body);
|
|
195
|
-
}
|
|
196
|
-
/** List candidates produced by a job. */
|
|
197
|
-
export async function listOptimizationCandidates(context, jobId, options = { requestOptions: {} }) {
|
|
198
|
-
const result = await _listOptimizationCandidatesSend(context, jobId, options);
|
|
199
|
-
return _listOptimizationCandidatesDeserialize(result);
|
|
200
|
-
}
|
|
201
7
|
export function _deleteOptimizationJobSend(context, jobId, options = { requestOptions: {} }) {
|
|
202
|
-
const foundryFeatures = "
|
|
203
|
-
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}{?
|
|
8
|
+
const foundryFeatures = "AgentsOptimization=V2Preview";
|
|
9
|
+
const path = expandUrlTemplate("/agent_optimization_jobs/{jobId}{?api-version}", {
|
|
204
10
|
jobId: jobId,
|
|
205
|
-
force: options?.force,
|
|
206
11
|
"api-version": context.apiVersion,
|
|
207
12
|
}, {
|
|
208
13
|
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
@@ -219,7 +24,9 @@ export async function _deleteOptimizationJobDeserialize(result) {
|
|
|
219
24
|
const expectedStatuses = ["204"];
|
|
220
25
|
if (!expectedStatuses.includes(result.status)) {
|
|
221
26
|
const error = createRestError(result);
|
|
222
|
-
|
|
27
|
+
if (result.body) {
|
|
28
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
29
|
+
}
|
|
223
30
|
throw error;
|
|
224
31
|
}
|
|
225
32
|
return;
|
|
@@ -239,7 +46,7 @@ export function _cancelOptimizationJobSend(context, jobId, options = { requestOp
|
|
|
239
46
|
return context.path(path).post({
|
|
240
47
|
...operationOptionsToRequestParameters(options),
|
|
241
48
|
headers: {
|
|
242
|
-
"foundry-features": "
|
|
49
|
+
"foundry-features": "AgentsOptimization=V2Preview",
|
|
243
50
|
accept: "application/json",
|
|
244
51
|
...options.requestOptions?.headers,
|
|
245
52
|
},
|
|
@@ -249,12 +56,14 @@ export async function _cancelOptimizationJobDeserialize(result) {
|
|
|
249
56
|
const expectedStatuses = ["200"];
|
|
250
57
|
if (!expectedStatuses.includes(result.status)) {
|
|
251
58
|
const error = createRestError(result);
|
|
252
|
-
|
|
59
|
+
if (result.body) {
|
|
60
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
61
|
+
}
|
|
253
62
|
throw error;
|
|
254
63
|
}
|
|
255
64
|
return optimizationJobDeserializer(result.body);
|
|
256
65
|
}
|
|
257
|
-
/** Request cancellation.
|
|
66
|
+
/** Request cancellation of a running or queued job. Returns an error if the job is already in a terminal state. */
|
|
258
67
|
export async function cancelOptimizationJob(context, jobId, options = { requestOptions: {} }) {
|
|
259
68
|
const result = await _cancelOptimizationJobSend(context, jobId, options);
|
|
260
69
|
return _cancelOptimizationJobDeserialize(result);
|
|
@@ -274,7 +83,7 @@ export function _listOptimizationJobsSend(context, options = { requestOptions: {
|
|
|
274
83
|
return context.path(path).get({
|
|
275
84
|
...operationOptionsToRequestParameters(options),
|
|
276
85
|
headers: {
|
|
277
|
-
"foundry-features": "
|
|
86
|
+
"foundry-features": "AgentsOptimization=V2Preview",
|
|
278
87
|
accept: "application/json",
|
|
279
88
|
...options.requestOptions?.headers,
|
|
280
89
|
},
|
|
@@ -284,10 +93,12 @@ export async function _listOptimizationJobsDeserialize(result) {
|
|
|
284
93
|
const expectedStatuses = ["200"];
|
|
285
94
|
if (!expectedStatuses.includes(result.status)) {
|
|
286
95
|
const error = createRestError(result);
|
|
287
|
-
|
|
96
|
+
if (result.body) {
|
|
97
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
98
|
+
}
|
|
288
99
|
throw error;
|
|
289
100
|
}
|
|
290
|
-
return
|
|
101
|
+
return _agentsPagedResultOptimizationJobListItemDeserializer(result.body);
|
|
291
102
|
}
|
|
292
103
|
/** List optimization jobs. Supports cursor pagination and optional status / agent_name filters. */
|
|
293
104
|
export function listOptimizationJobs(context, options = { requestOptions: {} }) {
|
|
@@ -303,28 +114,30 @@ export function _getOptimizationJobSend(context, jobId, options = { requestOptio
|
|
|
303
114
|
return context.path(path).get({
|
|
304
115
|
...operationOptionsToRequestParameters(options),
|
|
305
116
|
headers: {
|
|
306
|
-
"foundry-features": "
|
|
117
|
+
"foundry-features": "AgentsOptimization=V2Preview",
|
|
307
118
|
accept: "application/json",
|
|
308
119
|
...options.requestOptions?.headers,
|
|
309
120
|
},
|
|
310
121
|
});
|
|
311
122
|
}
|
|
312
123
|
export async function _getOptimizationJobDeserialize(result) {
|
|
313
|
-
const expectedStatuses = ["200"
|
|
124
|
+
const expectedStatuses = ["200"];
|
|
314
125
|
if (!expectedStatuses.includes(result.status)) {
|
|
315
126
|
const error = createRestError(result);
|
|
316
|
-
|
|
127
|
+
if (result.body) {
|
|
128
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
129
|
+
}
|
|
317
130
|
throw error;
|
|
318
131
|
}
|
|
319
132
|
return optimizationJobDeserializer(result.body);
|
|
320
133
|
}
|
|
321
|
-
/** Get an optimization job by id.
|
|
134
|
+
/** Get an optimization job by id. */
|
|
322
135
|
export async function getOptimizationJob(context, jobId, options = { requestOptions: {} }) {
|
|
323
136
|
const result = await _getOptimizationJobSend(context, jobId, options);
|
|
324
137
|
return _getOptimizationJobDeserialize(result);
|
|
325
138
|
}
|
|
326
|
-
export function _createOptimizationJobSend(context,
|
|
327
|
-
const foundryFeatures = "
|
|
139
|
+
export function _createOptimizationJobSend(context, job, options = { requestOptions: {} }) {
|
|
140
|
+
const foundryFeatures = "AgentsOptimization=V2Preview";
|
|
328
141
|
const path = expandUrlTemplate("/agent_optimization_jobs{?api-version}", {
|
|
329
142
|
"api-version": context.apiVersion,
|
|
330
143
|
}, {
|
|
@@ -339,556 +152,23 @@ export function _createOptimizationJobSend(context, inputs, options = { requestO
|
|
|
339
152
|
accept: "application/json",
|
|
340
153
|
...options.requestOptions?.headers,
|
|
341
154
|
},
|
|
342
|
-
body:
|
|
155
|
+
body: optimizationJobSerializer(job),
|
|
343
156
|
});
|
|
344
157
|
}
|
|
345
158
|
export async function _createOptimizationJobDeserialize(result) {
|
|
346
159
|
const expectedStatuses = ["201"];
|
|
347
160
|
if (!expectedStatuses.includes(result.status)) {
|
|
348
161
|
const error = createRestError(result);
|
|
349
|
-
|
|
162
|
+
if (result.body) {
|
|
163
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
164
|
+
}
|
|
350
165
|
throw error;
|
|
351
166
|
}
|
|
352
167
|
return optimizationJobDeserializer(result.body);
|
|
353
168
|
}
|
|
354
169
|
/** Create an optimization job. Returns 201 with the queued job. Honours `Operation-Id` for idempotent retry. */
|
|
355
|
-
export async function createOptimizationJob(context,
|
|
356
|
-
const result = await _createOptimizationJobSend(context,
|
|
170
|
+
export async function createOptimizationJob(context, job, options = { requestOptions: {} }) {
|
|
171
|
+
const result = await _createOptimizationJobSend(context, job, options);
|
|
357
172
|
return _createOptimizationJobDeserialize(result);
|
|
358
173
|
}
|
|
359
|
-
export function _deleteSessionFileSend(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
360
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
361
|
-
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files{?path,recursive,api-version}", {
|
|
362
|
-
agent_name: agentName,
|
|
363
|
-
agent_session_id: agentSessionId,
|
|
364
|
-
path: path,
|
|
365
|
-
recursive: options?.recursive,
|
|
366
|
-
"api-version": context.apiVersion,
|
|
367
|
-
}, {
|
|
368
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
369
|
-
});
|
|
370
|
-
return context.path(path_1).delete({
|
|
371
|
-
...operationOptionsToRequestParameters(options),
|
|
372
|
-
headers: {
|
|
373
|
-
"foundry-features": foundryFeatures,
|
|
374
|
-
...(options?.userIsolationKey !== undefined
|
|
375
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
376
|
-
: {}),
|
|
377
|
-
...options.requestOptions?.headers,
|
|
378
|
-
},
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
export async function _deleteSessionFileDeserialize(result) {
|
|
382
|
-
const expectedStatuses = ["204"];
|
|
383
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
384
|
-
const error = createRestError(result);
|
|
385
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
386
|
-
throw error;
|
|
387
|
-
}
|
|
388
|
-
return;
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* Delete a file or directory from the session sandbox.
|
|
392
|
-
* If `recursive` is false (default) and the target is a non-empty directory, the API returns 409 Conflict.
|
|
393
|
-
*/
|
|
394
|
-
export async function deleteSessionFile(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
395
|
-
const result = await _deleteSessionFileSend(context, agentName, agentSessionId, path, options);
|
|
396
|
-
return _deleteSessionFileDeserialize(result);
|
|
397
|
-
}
|
|
398
|
-
export function _listSessionFilesSend(context, agentName, agentSessionId, options = { requestOptions: {} }) {
|
|
399
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
400
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files{?path,limit,order,after,before,api-version}", {
|
|
401
|
-
agent_name: agentName,
|
|
402
|
-
agent_session_id: agentSessionId,
|
|
403
|
-
path: options?.path,
|
|
404
|
-
limit: options?.limit,
|
|
405
|
-
order: options?.order,
|
|
406
|
-
after: options?.after,
|
|
407
|
-
before: options?.before,
|
|
408
|
-
"api-version": context.apiVersion,
|
|
409
|
-
}, {
|
|
410
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
411
|
-
});
|
|
412
|
-
return context.path(path).get({
|
|
413
|
-
...operationOptionsToRequestParameters(options),
|
|
414
|
-
headers: {
|
|
415
|
-
"foundry-features": foundryFeatures,
|
|
416
|
-
...(options?.userIsolationKey !== undefined
|
|
417
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
418
|
-
: {}),
|
|
419
|
-
accept: "application/json",
|
|
420
|
-
...options.requestOptions?.headers,
|
|
421
|
-
},
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
export async function _listSessionFilesDeserialize(result) {
|
|
425
|
-
const expectedStatuses = ["200"];
|
|
426
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
427
|
-
const error = createRestError(result);
|
|
428
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
429
|
-
throw error;
|
|
430
|
-
}
|
|
431
|
-
return sessionDirectoryListResponseDeserializer(result.body);
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* List files and directories at a given path in the session sandbox.
|
|
435
|
-
* Returns only the immediate children of the specified directory (non-recursive).
|
|
436
|
-
* If path is not provided, lists the session home directory.
|
|
437
|
-
*/
|
|
438
|
-
export function listSessionFiles(context, agentName, agentSessionId, options = { requestOptions: {} }) {
|
|
439
|
-
return buildPagedAsyncIterator(context, () => _listSessionFilesSend(context, agentName, agentSessionId, options), _listSessionFilesDeserialize, ["200"], {
|
|
440
|
-
itemName: "entries",
|
|
441
|
-
apiVersion: context.apiVersion,
|
|
442
|
-
cursorFieldName: "last_id",
|
|
443
|
-
hasMoreFieldName: "has_more",
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
export function _downloadSessionFileSend(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
447
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
448
|
-
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content{?path,api-version}", {
|
|
449
|
-
agent_name: agentName,
|
|
450
|
-
agent_session_id: agentSessionId,
|
|
451
|
-
path: path,
|
|
452
|
-
"api-version": context.apiVersion,
|
|
453
|
-
}, {
|
|
454
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
455
|
-
});
|
|
456
|
-
return context.path(path_1).get({
|
|
457
|
-
...operationOptionsToRequestParameters(options),
|
|
458
|
-
headers: {
|
|
459
|
-
"foundry-features": foundryFeatures,
|
|
460
|
-
...(options?.userIsolationKey !== undefined
|
|
461
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
462
|
-
: {}),
|
|
463
|
-
accept: "application/octet-stream",
|
|
464
|
-
...options.requestOptions?.headers,
|
|
465
|
-
},
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
export async function _downloadSessionFileDeserialize(result) {
|
|
469
|
-
const expectedStatuses = ["200"];
|
|
470
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
471
|
-
const error = createRestError(result);
|
|
472
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
473
|
-
throw error;
|
|
474
|
-
}
|
|
475
|
-
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
476
|
-
}
|
|
477
|
-
/** Download a file from the session sandbox as a binary stream. */
|
|
478
|
-
export async function downloadSessionFile(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
479
|
-
const streamableMethod = _downloadSessionFileSend(context, agentName, agentSessionId, path, options);
|
|
480
|
-
const result = await getBinaryStreamResponse(streamableMethod);
|
|
481
|
-
return _downloadSessionFileDeserialize(result);
|
|
482
|
-
}
|
|
483
|
-
export function _uploadSessionFileSend(context, agentName, agentSessionId, path, content, options = { requestOptions: {} }) {
|
|
484
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
485
|
-
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content{?path,api-version}", {
|
|
486
|
-
agent_name: agentName,
|
|
487
|
-
agent_session_id: agentSessionId,
|
|
488
|
-
path: path,
|
|
489
|
-
"api-version": context.apiVersion,
|
|
490
|
-
}, {
|
|
491
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
492
|
-
});
|
|
493
|
-
return context.path(path_1).put({
|
|
494
|
-
...operationOptionsToRequestParameters(options),
|
|
495
|
-
contentType: "application/octet-stream",
|
|
496
|
-
headers: {
|
|
497
|
-
"foundry-features": foundryFeatures,
|
|
498
|
-
...(options?.userIsolationKey !== undefined
|
|
499
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
500
|
-
: {}),
|
|
501
|
-
accept: "application/json",
|
|
502
|
-
...options.requestOptions?.headers,
|
|
503
|
-
},
|
|
504
|
-
body: content,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
export async function _uploadSessionFileDeserialize(result) {
|
|
508
|
-
const expectedStatuses = ["200", "201"];
|
|
509
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
510
|
-
const error = createRestError(result);
|
|
511
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
512
|
-
throw error;
|
|
513
|
-
}
|
|
514
|
-
return sessionFileWriteResponseDeserializer(result.body);
|
|
515
|
-
}
|
|
516
|
-
/**
|
|
517
|
-
* Upload a file to the session sandbox via binary stream.
|
|
518
|
-
* Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large.
|
|
519
|
-
*/
|
|
520
|
-
export async function uploadSessionFile(context, agentName, agentSessionId, path, content, options = { requestOptions: {} }) {
|
|
521
|
-
const result = await _uploadSessionFileSend(context, agentName, agentSessionId, path, content, options);
|
|
522
|
-
return _uploadSessionFileDeserialize(result);
|
|
523
|
-
}
|
|
524
|
-
export function _getSessionLogStreamSend(context, agentName, agentVersion, sessionId, options = { requestOptions: {} }) {
|
|
525
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
526
|
-
const path = expandUrlTemplate("/agents/{agent_name}/versions/{agent_version}/sessions/{session_id}:logstream{?api-version}", {
|
|
527
|
-
agent_name: agentName,
|
|
528
|
-
agent_version: agentVersion,
|
|
529
|
-
session_id: sessionId,
|
|
530
|
-
"api-version": context.apiVersion,
|
|
531
|
-
}, {
|
|
532
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
533
|
-
});
|
|
534
|
-
return context.path(path).get({
|
|
535
|
-
...operationOptionsToRequestParameters(options),
|
|
536
|
-
headers: {
|
|
537
|
-
"foundry-features": foundryFeatures,
|
|
538
|
-
accept: "text/event-stream",
|
|
539
|
-
...options.requestOptions?.headers,
|
|
540
|
-
},
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
export async function _getSessionLogStreamDeserialize(result) {
|
|
544
|
-
const expectedStatuses = ["200"];
|
|
545
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
546
|
-
throw createRestError(result);
|
|
547
|
-
}
|
|
548
|
-
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Streams console logs (stdout / stderr) for a specific hosted agent session
|
|
552
|
-
* as a Server-Sent Events (SSE) stream.
|
|
553
|
-
*
|
|
554
|
-
* Each SSE frame contains:
|
|
555
|
-
* - `event`: always `"log"`
|
|
556
|
-
* - `data`: a plain-text log line (currently JSON-formatted, but the schema
|
|
557
|
-
* is not contractual and may include additional keys or change format
|
|
558
|
-
* over time — clients should treat it as an opaque string)
|
|
559
|
-
*
|
|
560
|
-
* Example SSE frames:
|
|
561
|
-
* ```
|
|
562
|
-
* event: log
|
|
563
|
-
* data: {"timestamp":"2026-03-10T09:33:17.121Z","stream":"stdout","message":"Starting FoundryCBAgent server on port 8088"}
|
|
564
|
-
*
|
|
565
|
-
* event: log
|
|
566
|
-
* data: {"timestamp":"2026-03-10T09:33:17.130Z","stream":"stderr","message":"INFO: Application startup complete."}
|
|
567
|
-
*
|
|
568
|
-
* event: log
|
|
569
|
-
* data: {"timestamp":"2026-03-10T09:34:52.714Z","stream":"status","message":"Successfully connected to container"}
|
|
570
|
-
*
|
|
571
|
-
* event: log
|
|
572
|
-
* data: {"timestamp":"2026-03-10T09:35:52.714Z","stream":"status","message":"No logs since last 60 seconds"}
|
|
573
|
-
* ```
|
|
574
|
-
*
|
|
575
|
-
* The stream remains open until the client disconnects or the server
|
|
576
|
-
* terminates the connection. Clients should handle reconnection as needed.
|
|
577
|
-
*/
|
|
578
|
-
export async function getSessionLogStream(context, agentName, agentVersion, sessionId, options = { requestOptions: {} }) {
|
|
579
|
-
const streamableMethod = _getSessionLogStreamSend(context, agentName, agentVersion, sessionId, options);
|
|
580
|
-
const result = await getBinaryStreamResponse(streamableMethod);
|
|
581
|
-
return _getSessionLogStreamDeserialize(result);
|
|
582
|
-
}
|
|
583
|
-
export function _listSessionsSend(context, agentName, options = { requestOptions: {} }) {
|
|
584
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
585
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions{?limit,order,after,before,api-version}", {
|
|
586
|
-
agent_name: agentName,
|
|
587
|
-
limit: options?.limit,
|
|
588
|
-
order: options?.order,
|
|
589
|
-
after: options?.after,
|
|
590
|
-
before: options?.before,
|
|
591
|
-
"api-version": context.apiVersion,
|
|
592
|
-
}, {
|
|
593
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
594
|
-
});
|
|
595
|
-
return context.path(path).get({
|
|
596
|
-
...operationOptionsToRequestParameters(options),
|
|
597
|
-
headers: {
|
|
598
|
-
"foundry-features": foundryFeatures,
|
|
599
|
-
...(options?.userIsolationKey !== undefined
|
|
600
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
601
|
-
: {}),
|
|
602
|
-
accept: "application/json",
|
|
603
|
-
...options.requestOptions?.headers,
|
|
604
|
-
},
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
export async function _listSessionsDeserialize(result) {
|
|
608
|
-
const expectedStatuses = ["200"];
|
|
609
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
610
|
-
const error = createRestError(result);
|
|
611
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
612
|
-
throw error;
|
|
613
|
-
}
|
|
614
|
-
return _agentsPagedResultAgentSessionResourceDeserializer(result.body);
|
|
615
|
-
}
|
|
616
|
-
/** Returns a list of sessions for the specified agent. */
|
|
617
|
-
export function listSessions(context, agentName, options = { requestOptions: {} }) {
|
|
618
|
-
return buildPagedAsyncIterator(context, () => _listSessionsSend(context, agentName, options), _listSessionsDeserialize, ["200"], {
|
|
619
|
-
itemName: "data",
|
|
620
|
-
apiVersion: context.apiVersion,
|
|
621
|
-
nextPageRequestOptions: {
|
|
622
|
-
headers: { "foundry-features": "HostedAgents=V1Preview,AgentEndpoints=V1Preview" },
|
|
623
|
-
},
|
|
624
|
-
cursorFieldName: "last_id",
|
|
625
|
-
hasMoreFieldName: "has_more",
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
export function _stopSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
629
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
630
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}:stop{?api-version}", {
|
|
631
|
-
agent_name: agentName,
|
|
632
|
-
session_id: sessionId,
|
|
633
|
-
"api-version": context.apiVersion,
|
|
634
|
-
}, {
|
|
635
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
636
|
-
});
|
|
637
|
-
return context.path(path).post({
|
|
638
|
-
...operationOptionsToRequestParameters(options),
|
|
639
|
-
headers: {
|
|
640
|
-
"foundry-features": foundryFeatures,
|
|
641
|
-
...options.requestOptions?.headers,
|
|
642
|
-
},
|
|
643
|
-
});
|
|
644
|
-
}
|
|
645
|
-
export async function _stopSessionDeserialize(result) {
|
|
646
|
-
const expectedStatuses = ["204"];
|
|
647
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
648
|
-
const error = createRestError(result);
|
|
649
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
650
|
-
throw error;
|
|
651
|
-
}
|
|
652
|
-
return;
|
|
653
|
-
}
|
|
654
|
-
/**
|
|
655
|
-
* Stops a session.
|
|
656
|
-
* Returns 204 No Content when the stop succeeds.
|
|
657
|
-
*/
|
|
658
|
-
export async function stopSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
659
|
-
const result = await _stopSessionSend(context, agentName, sessionId, options);
|
|
660
|
-
return _stopSessionDeserialize(result);
|
|
661
|
-
}
|
|
662
|
-
export function _deleteSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
663
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
664
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}{?api-version}", {
|
|
665
|
-
agent_name: agentName,
|
|
666
|
-
session_id: sessionId,
|
|
667
|
-
"api-version": context.apiVersion,
|
|
668
|
-
}, {
|
|
669
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
670
|
-
});
|
|
671
|
-
return context.path(path).delete({
|
|
672
|
-
...operationOptionsToRequestParameters(options),
|
|
673
|
-
headers: {
|
|
674
|
-
"foundry-features": foundryFeatures,
|
|
675
|
-
...(options?.userIsolationKey !== undefined
|
|
676
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
677
|
-
: {}),
|
|
678
|
-
...options.requestOptions?.headers,
|
|
679
|
-
},
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
export async function _deleteSessionDeserialize(result) {
|
|
683
|
-
const expectedStatuses = ["204"];
|
|
684
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
685
|
-
const error = createRestError(result);
|
|
686
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
687
|
-
throw error;
|
|
688
|
-
}
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* Deletes a session synchronously.
|
|
693
|
-
* Returns 204 No Content when the session is deleted or does not exist.
|
|
694
|
-
*/
|
|
695
|
-
export async function deleteSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
696
|
-
const result = await _deleteSessionSend(context, agentName, sessionId, options);
|
|
697
|
-
return _deleteSessionDeserialize(result);
|
|
698
|
-
}
|
|
699
|
-
export function _getSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
700
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
701
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}{?api-version}", {
|
|
702
|
-
agent_name: agentName,
|
|
703
|
-
session_id: sessionId,
|
|
704
|
-
"api-version": context.apiVersion,
|
|
705
|
-
}, {
|
|
706
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
707
|
-
});
|
|
708
|
-
return context.path(path).get({
|
|
709
|
-
...operationOptionsToRequestParameters(options),
|
|
710
|
-
headers: {
|
|
711
|
-
"foundry-features": foundryFeatures,
|
|
712
|
-
...(options?.userIsolationKey !== undefined
|
|
713
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
714
|
-
: {}),
|
|
715
|
-
accept: "application/json",
|
|
716
|
-
...options.requestOptions?.headers,
|
|
717
|
-
},
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
export async function _getSessionDeserialize(result) {
|
|
721
|
-
const expectedStatuses = ["200"];
|
|
722
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
723
|
-
const error = createRestError(result);
|
|
724
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
725
|
-
throw error;
|
|
726
|
-
}
|
|
727
|
-
return agentSessionResourceDeserializer(result.body);
|
|
728
|
-
}
|
|
729
|
-
/** Retrieves a session by ID. */
|
|
730
|
-
export async function getSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
731
|
-
const result = await _getSessionSend(context, agentName, sessionId, options);
|
|
732
|
-
return _getSessionDeserialize(result);
|
|
733
|
-
}
|
|
734
|
-
export function _createSessionSend(context, agentName, versionIndicator, options = { requestOptions: {} }) {
|
|
735
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
736
|
-
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions{?api-version}", {
|
|
737
|
-
agent_name: agentName,
|
|
738
|
-
"api-version": context.apiVersion,
|
|
739
|
-
}, {
|
|
740
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
741
|
-
});
|
|
742
|
-
return context.path(path).post({
|
|
743
|
-
...operationOptionsToRequestParameters(options),
|
|
744
|
-
contentType: "application/json",
|
|
745
|
-
headers: {
|
|
746
|
-
"foundry-features": foundryFeatures,
|
|
747
|
-
...(options?.userIsolationKey !== undefined
|
|
748
|
-
? { "x-ms-user-isolation-key": options?.userIsolationKey }
|
|
749
|
-
: {}),
|
|
750
|
-
accept: "application/json",
|
|
751
|
-
...options.requestOptions?.headers,
|
|
752
|
-
},
|
|
753
|
-
body: {
|
|
754
|
-
agent_session_id: options?.agentSessionId,
|
|
755
|
-
version_indicator: versionIndicatorUnionSerializer(versionIndicator),
|
|
756
|
-
},
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
export async function _createSessionDeserialize(result) {
|
|
760
|
-
const expectedStatuses = ["201"];
|
|
761
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
762
|
-
const error = createRestError(result);
|
|
763
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
764
|
-
throw error;
|
|
765
|
-
}
|
|
766
|
-
return agentSessionResourceDeserializer(result.body);
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* Creates a new session for an agent endpoint.
|
|
770
|
-
* The endpoint resolves the backing agent version from `version_indicator` and
|
|
771
|
-
* enforces session ownership using the provided isolation key for session-mutating operations.
|
|
772
|
-
*/
|
|
773
|
-
export async function createSession(context, agentName, versionIndicator, options = { requestOptions: {} }) {
|
|
774
|
-
const result = await _createSessionSend(context, agentName, versionIndicator, options);
|
|
775
|
-
return _createSessionDeserialize(result);
|
|
776
|
-
}
|
|
777
|
-
export function _downloadAgentCodeSend(context, agentName, options = { requestOptions: {} }) {
|
|
778
|
-
const foundryFeatures = "HostedAgents=V1Preview,CodeAgents=V1Preview";
|
|
779
|
-
const path = expandUrlTemplate("/agents/{agent_name}/code:download{?agent_version,api-version}", {
|
|
780
|
-
agent_name: agentName,
|
|
781
|
-
agent_version: options?.agentVersion,
|
|
782
|
-
"api-version": context.apiVersion,
|
|
783
|
-
}, {
|
|
784
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
785
|
-
});
|
|
786
|
-
return context.path(path).get({
|
|
787
|
-
...operationOptionsToRequestParameters(options),
|
|
788
|
-
headers: {
|
|
789
|
-
"foundry-features": foundryFeatures,
|
|
790
|
-
accept: "application/zip",
|
|
791
|
-
...options.requestOptions?.headers,
|
|
792
|
-
},
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
export async function _downloadAgentCodeDeserialize(result) {
|
|
796
|
-
const expectedStatuses = ["200"];
|
|
797
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
798
|
-
const error = createRestError(result);
|
|
799
|
-
if (result.body?.error) {
|
|
800
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
801
|
-
}
|
|
802
|
-
throw error;
|
|
803
|
-
}
|
|
804
|
-
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* Download the code zip for a code-based hosted agent.
|
|
808
|
-
* Returns the previously-uploaded zip (`application/zip`).
|
|
809
|
-
*
|
|
810
|
-
* If `agent_version` is supplied, returns that version's code zip; otherwise
|
|
811
|
-
* returns the latest version's code zip.
|
|
812
|
-
*
|
|
813
|
-
* The SHA-256 digest of the returned bytes matches the `content_hash` on the
|
|
814
|
-
* resolved version's `code_configuration`.
|
|
815
|
-
*/
|
|
816
|
-
export async function downloadAgentCode(context, agentName, options = { requestOptions: {} }) {
|
|
817
|
-
const streamableMethod = _downloadAgentCodeSend(context, agentName, options);
|
|
818
|
-
const result = await getBinaryStreamResponse(streamableMethod);
|
|
819
|
-
return _downloadAgentCodeDeserialize(result);
|
|
820
|
-
}
|
|
821
|
-
export function _createAgentVersionFromCodeSend(context, agentName, codeZipSha256, content, options = { requestOptions: {} }) {
|
|
822
|
-
const foundryFeatures = "HostedAgents=V1Preview,CodeAgents=V1Preview";
|
|
823
|
-
const path = expandUrlTemplate("/agents/{agent_name}/versions{?api-version}", {
|
|
824
|
-
agent_name: agentName,
|
|
825
|
-
"api-version": context.apiVersion,
|
|
826
|
-
}, {
|
|
827
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
828
|
-
});
|
|
829
|
-
return context.path(path).post({
|
|
830
|
-
...operationOptionsToRequestParameters(options),
|
|
831
|
-
contentType: "multipart/form-data",
|
|
832
|
-
headers: {
|
|
833
|
-
"foundry-features": foundryFeatures,
|
|
834
|
-
"x-ms-code-zip-sha256": codeZipSha256,
|
|
835
|
-
accept: "application/json",
|
|
836
|
-
...options.requestOptions?.headers,
|
|
837
|
-
},
|
|
838
|
-
body: createAgentVersionFromCodeContentSerializer(content),
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
export async function _createAgentVersionFromCodeDeserialize(result) {
|
|
842
|
-
const expectedStatuses = ["200"];
|
|
843
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
844
|
-
const error = createRestError(result);
|
|
845
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
846
|
-
throw error;
|
|
847
|
-
}
|
|
848
|
-
return agentVersionDeserializer(result.body);
|
|
849
|
-
}
|
|
850
|
-
export async function createVersionFromCode(context, agentName, codeZipSha256, content, options = { requestOptions: {} }) {
|
|
851
|
-
const result = await _createAgentVersionFromCodeSend(context, agentName, codeZipSha256, content, options);
|
|
852
|
-
return _createAgentVersionFromCodeDeserialize(result);
|
|
853
|
-
}
|
|
854
|
-
export function _patchAgentObjectSend(context, agentName, options = { requestOptions: {} }) {
|
|
855
|
-
const foundryFeatures = "HostedAgents=V1Preview,AgentEndpoints=V1Preview";
|
|
856
|
-
const path = expandUrlTemplate("/agents/{agent_name}{?api-version}", {
|
|
857
|
-
agent_name: agentName,
|
|
858
|
-
"api-version": context.apiVersion,
|
|
859
|
-
}, {
|
|
860
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
861
|
-
});
|
|
862
|
-
return context.path(path).patch({
|
|
863
|
-
...operationOptionsToRequestParameters(options),
|
|
864
|
-
contentType: "application/merge-patch+json",
|
|
865
|
-
headers: {
|
|
866
|
-
"foundry-features": foundryFeatures,
|
|
867
|
-
accept: "application/json",
|
|
868
|
-
...options.requestOptions?.headers,
|
|
869
|
-
},
|
|
870
|
-
body: {
|
|
871
|
-
agent_endpoint: !options?.agentEndpoint
|
|
872
|
-
? options?.agentEndpoint
|
|
873
|
-
: agentEndpointConfigSerializer(options?.agentEndpoint),
|
|
874
|
-
agent_card: !options?.agentCard
|
|
875
|
-
? options?.agentCard
|
|
876
|
-
: agentCardSerializer(options?.agentCard),
|
|
877
|
-
},
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
export async function _patchAgentObjectDeserialize(result) {
|
|
881
|
-
const expectedStatuses = ["200"];
|
|
882
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
883
|
-
const error = createRestError(result);
|
|
884
|
-
error.details = apiErrorResponseDeserializer(result.body);
|
|
885
|
-
throw error;
|
|
886
|
-
}
|
|
887
|
-
return agentDeserializer(result.body);
|
|
888
|
-
}
|
|
889
|
-
/** Updates an agent endpoint. */
|
|
890
|
-
export async function updateAgentObject(context, agentName, options = { requestOptions: {} }) {
|
|
891
|
-
const result = await _patchAgentObjectSend(context, agentName, options);
|
|
892
|
-
return _patchAgentObjectDeserialize(result);
|
|
893
|
-
}
|
|
894
174
|
//# sourceMappingURL=operations.js.map
|