@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,9 +1,569 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import {
|
|
3
|
+
import { getBinaryStreamResponse } from "../../static-helpers/serialization/get-binary-stream-response.js";
|
|
4
|
+
import { agentDeserializer, agentVersionDeserializer, agentDefinitionUnionSerializer, agentBlueprintReferenceUnionSerializer, agentEndpointConfigSerializer, agentCardSerializer, apiErrorResponseDeserializer, deleteAgentResponseDeserializer, _agentsPagedResultAgentObjectDeserializer, deleteAgentVersionResponseDeserializer, _agentsPagedResultAgentVersionObjectDeserializer, createAgentVersionFromCodeContentSerializer, versionIndicatorUnionSerializer, agentSessionResourceDeserializer, _agentsPagedResultAgentSessionResourceDeserializer, sessionFileWriteResponseDeserializer, sessionDirectoryListResponseDeserializer, } from "../../models/models.js";
|
|
4
5
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
7
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
|
+
import { startSpan } from "../../tracing/tracingClient.js";
|
|
9
|
+
import { setAgentAttributes, setAgentVersionAttributes, setCommonAttributes, } from "../../tracing/attributes.js";
|
|
10
|
+
import { OperationName } from "../../tracing/constants.js";
|
|
11
|
+
export function _deleteSessionFileSend(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
12
|
+
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files{?path,recursive,api-version}", {
|
|
13
|
+
agent_name: agentName,
|
|
14
|
+
agent_session_id: agentSessionId,
|
|
15
|
+
path: path,
|
|
16
|
+
recursive: options?.recursive,
|
|
17
|
+
"api-version": context.apiVersion,
|
|
18
|
+
}, {
|
|
19
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
20
|
+
});
|
|
21
|
+
return context.path(path_1).delete({
|
|
22
|
+
...operationOptionsToRequestParameters(options),
|
|
23
|
+
headers: {
|
|
24
|
+
...options.requestOptions?.headers,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export async function _deleteSessionFileDeserialize(result) {
|
|
29
|
+
const expectedStatuses = ["204"];
|
|
30
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
31
|
+
const error = createRestError(result);
|
|
32
|
+
if (result.body) {
|
|
33
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
34
|
+
}
|
|
35
|
+
throw error;
|
|
36
|
+
}
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Deletes the specified file or directory from the session sandbox.
|
|
41
|
+
* When `recursive` is false, deleting a non-empty directory returns 409 Conflict.
|
|
42
|
+
*/
|
|
43
|
+
export async function deleteSessionFile(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
44
|
+
const result = await _deleteSessionFileSend(context, agentName, agentSessionId, path, options);
|
|
45
|
+
return _deleteSessionFileDeserialize(result);
|
|
46
|
+
}
|
|
47
|
+
export function _listSessionFilesSend(context, agentName, agentSessionId, options = { requestOptions: {} }) {
|
|
48
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files{?path,limit,order,after,before,api-version}", {
|
|
49
|
+
agent_name: agentName,
|
|
50
|
+
agent_session_id: agentSessionId,
|
|
51
|
+
path: options?.path,
|
|
52
|
+
limit: options?.limit,
|
|
53
|
+
order: options?.order,
|
|
54
|
+
after: options?.after,
|
|
55
|
+
before: options?.before,
|
|
56
|
+
"api-version": context.apiVersion,
|
|
57
|
+
}, {
|
|
58
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
59
|
+
});
|
|
60
|
+
return context.path(path).get({
|
|
61
|
+
...operationOptionsToRequestParameters(options),
|
|
62
|
+
headers: {
|
|
63
|
+
accept: "application/json",
|
|
64
|
+
...options.requestOptions?.headers,
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
export async function _listSessionFilesDeserialize(result) {
|
|
69
|
+
const expectedStatuses = ["200"];
|
|
70
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
71
|
+
const error = createRestError(result);
|
|
72
|
+
if (result.body) {
|
|
73
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
74
|
+
}
|
|
75
|
+
throw error;
|
|
76
|
+
}
|
|
77
|
+
return sessionDirectoryListResponseDeserializer(result.body);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Returns files and directories at the specified path in the session sandbox.
|
|
81
|
+
* The response includes only the immediate children of the target directory and defaults to the session home directory when no path is supplied.
|
|
82
|
+
*/
|
|
83
|
+
export function listSessionFiles(context, agentName, agentSessionId, options = { requestOptions: {} }) {
|
|
84
|
+
return buildPagedAsyncIterator(context, () => _listSessionFilesSend(context, agentName, agentSessionId, options), _listSessionFilesDeserialize, ["200"], {
|
|
85
|
+
itemName: "entries",
|
|
86
|
+
apiVersion: context.apiVersion,
|
|
87
|
+
cursorFieldName: "last_id",
|
|
88
|
+
hasMoreFieldName: "has_more",
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export function _downloadSessionFileSend(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
92
|
+
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content{?path,api-version}", {
|
|
93
|
+
agent_name: agentName,
|
|
94
|
+
agent_session_id: agentSessionId,
|
|
95
|
+
path: path,
|
|
96
|
+
"api-version": context.apiVersion,
|
|
97
|
+
}, {
|
|
98
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
99
|
+
});
|
|
100
|
+
return context.path(path_1).get({
|
|
101
|
+
...operationOptionsToRequestParameters(options),
|
|
102
|
+
headers: {
|
|
103
|
+
accept: "application/octet-stream",
|
|
104
|
+
...options.requestOptions?.headers,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
export async function _downloadSessionFileDeserialize(result) {
|
|
109
|
+
const expectedStatuses = ["200"];
|
|
110
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
111
|
+
const error = createRestError(result);
|
|
112
|
+
if (result.body) {
|
|
113
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
114
|
+
}
|
|
115
|
+
throw error;
|
|
116
|
+
}
|
|
117
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Downloads the file at the specified sandbox path as a binary stream.
|
|
121
|
+
* The path is resolved relative to the session home directory.
|
|
122
|
+
*/
|
|
123
|
+
export async function downloadSessionFile(context, agentName, agentSessionId, path, options = { requestOptions: {} }) {
|
|
124
|
+
const streamableMethod = _downloadSessionFileSend(context, agentName, agentSessionId, path, options);
|
|
125
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
126
|
+
return _downloadSessionFileDeserialize(result);
|
|
127
|
+
}
|
|
128
|
+
export function _uploadSessionFileSend(context, agentName, agentSessionId, path, content, options = { requestOptions: {} }) {
|
|
129
|
+
const path_1 = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{agent_session_id}/files/content{?path,api-version}", {
|
|
130
|
+
agent_name: agentName,
|
|
131
|
+
agent_session_id: agentSessionId,
|
|
132
|
+
path: path,
|
|
133
|
+
"api-version": context.apiVersion,
|
|
134
|
+
}, {
|
|
135
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
136
|
+
});
|
|
137
|
+
return context.path(path_1).put({
|
|
138
|
+
...operationOptionsToRequestParameters(options),
|
|
139
|
+
contentType: "application/octet-stream",
|
|
140
|
+
headers: {
|
|
141
|
+
accept: "application/json",
|
|
142
|
+
...options.requestOptions?.headers,
|
|
143
|
+
},
|
|
144
|
+
body: content,
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
export async function _uploadSessionFileDeserialize(result) {
|
|
148
|
+
const expectedStatuses = ["200", "201"];
|
|
149
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
150
|
+
const error = createRestError(result);
|
|
151
|
+
if (result.body) {
|
|
152
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
153
|
+
}
|
|
154
|
+
throw error;
|
|
155
|
+
}
|
|
156
|
+
return sessionFileWriteResponseDeserializer(result.body);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Uploads binary file content to the specified path in the session sandbox.
|
|
160
|
+
* The service stores the file relative to the session home directory and rejects payloads larger than 50 MB.
|
|
161
|
+
*/
|
|
162
|
+
export async function uploadSessionFile(context, agentName, agentSessionId, path, content, options = { requestOptions: {} }) {
|
|
163
|
+
const result = await _uploadSessionFileSend(context, agentName, agentSessionId, path, content, options);
|
|
164
|
+
return _uploadSessionFileDeserialize(result);
|
|
165
|
+
}
|
|
166
|
+
export function _getSessionLogStreamSend(context, agentName, agentVersion, sessionId, options = { requestOptions: {} }) {
|
|
167
|
+
const path = expandUrlTemplate("/agents/{agent_name}/versions/{agent_version}/sessions/{session_id}:logstream{?api-version}", {
|
|
168
|
+
agent_name: agentName,
|
|
169
|
+
agent_version: agentVersion,
|
|
170
|
+
session_id: sessionId,
|
|
171
|
+
"api-version": context.apiVersion,
|
|
172
|
+
}, {
|
|
173
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
174
|
+
});
|
|
175
|
+
return context.path(path).get({
|
|
176
|
+
...operationOptionsToRequestParameters(options),
|
|
177
|
+
headers: { accept: "text/event-stream", ...options.requestOptions?.headers },
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
export async function _getSessionLogStreamDeserialize(result) {
|
|
181
|
+
const expectedStatuses = ["200"];
|
|
182
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
183
|
+
throw createRestError(result);
|
|
184
|
+
}
|
|
185
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Streams console logs (stdout / stderr) for a specific hosted agent session
|
|
189
|
+
* as a Server-Sent Events (SSE) stream.
|
|
190
|
+
*
|
|
191
|
+
* Each SSE frame contains:
|
|
192
|
+
* - `event`: always `"log"`
|
|
193
|
+
* - `data`: a plain-text log line (currently JSON-formatted, but the schema
|
|
194
|
+
* is not contractual and may include additional keys or change format
|
|
195
|
+
* over time — clients should treat it as an opaque string)
|
|
196
|
+
*
|
|
197
|
+
* Example SSE frames:
|
|
198
|
+
* ```
|
|
199
|
+
* event: log
|
|
200
|
+
* data: {"timestamp":"2026-03-10T09:33:17.121Z","stream":"stdout","message":"Starting FoundryCBAgent server on port 8088"}
|
|
201
|
+
*
|
|
202
|
+
* event: log
|
|
203
|
+
* data: {"timestamp":"2026-03-10T09:33:17.130Z","stream":"stderr","message":"INFO: Application startup complete."}
|
|
204
|
+
*
|
|
205
|
+
* event: log
|
|
206
|
+
* data: {"timestamp":"2026-03-10T09:34:52.714Z","stream":"status","message":"Successfully connected to container"}
|
|
207
|
+
*
|
|
208
|
+
* event: log
|
|
209
|
+
* data: {"timestamp":"2026-03-10T09:35:52.714Z","stream":"status","message":"No logs since last 60 seconds"}
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* The stream remains open until the client disconnects or the server
|
|
213
|
+
* terminates the connection. Clients should handle reconnection as needed.
|
|
214
|
+
*/
|
|
215
|
+
export async function getSessionLogStream(context, agentName, agentVersion, sessionId, options = { requestOptions: {} }) {
|
|
216
|
+
const streamableMethod = _getSessionLogStreamSend(context, agentName, agentVersion, sessionId, options);
|
|
217
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
218
|
+
return _getSessionLogStreamDeserialize(result);
|
|
219
|
+
}
|
|
220
|
+
export function _listSessionsSend(context, agentName, options = { requestOptions: {} }) {
|
|
221
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions{?limit,order,after,before,api-version}", {
|
|
222
|
+
agent_name: agentName,
|
|
223
|
+
limit: options?.limit,
|
|
224
|
+
order: options?.order,
|
|
225
|
+
after: options?.after,
|
|
226
|
+
before: options?.before,
|
|
227
|
+
"api-version": context.apiVersion,
|
|
228
|
+
}, {
|
|
229
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
230
|
+
});
|
|
231
|
+
return context.path(path).get({
|
|
232
|
+
...operationOptionsToRequestParameters(options),
|
|
233
|
+
headers: {
|
|
234
|
+
accept: "application/json",
|
|
235
|
+
...options.requestOptions?.headers,
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
export async function _listSessionsDeserialize(result) {
|
|
240
|
+
const expectedStatuses = ["200"];
|
|
241
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
242
|
+
const error = createRestError(result);
|
|
243
|
+
if (result.body) {
|
|
244
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
245
|
+
}
|
|
246
|
+
throw error;
|
|
247
|
+
}
|
|
248
|
+
return _agentsPagedResultAgentSessionResourceDeserializer(result.body);
|
|
249
|
+
}
|
|
250
|
+
/** Returns a paged collection of sessions associated with the specified agent endpoint. */
|
|
251
|
+
export function listSessions(context, agentName, options = { requestOptions: {} }) {
|
|
252
|
+
return buildPagedAsyncIterator(context, () => _listSessionsSend(context, agentName, options), _listSessionsDeserialize, ["200"], {
|
|
253
|
+
itemName: "data",
|
|
254
|
+
apiVersion: context.apiVersion,
|
|
255
|
+
cursorFieldName: "last_id",
|
|
256
|
+
hasMoreFieldName: "has_more",
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
export function _stopSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
260
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}:stop{?api-version}", {
|
|
261
|
+
agent_name: agentName,
|
|
262
|
+
session_id: sessionId,
|
|
263
|
+
"api-version": context.apiVersion,
|
|
264
|
+
}, {
|
|
265
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
266
|
+
});
|
|
267
|
+
return context.path(path).post({
|
|
268
|
+
...operationOptionsToRequestParameters(options),
|
|
269
|
+
headers: { ...options.requestOptions?.headers },
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
export async function _stopSessionDeserialize(result) {
|
|
273
|
+
const expectedStatuses = ["204"];
|
|
274
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
275
|
+
const error = createRestError(result);
|
|
276
|
+
if (result.body) {
|
|
277
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
278
|
+
}
|
|
279
|
+
throw error;
|
|
280
|
+
}
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
/** Terminates the specified hosted agent session and returns 204 No Content when the request succeeds. */
|
|
284
|
+
export async function stopSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
285
|
+
const result = await _stopSessionSend(context, agentName, sessionId, options);
|
|
286
|
+
return _stopSessionDeserialize(result);
|
|
287
|
+
}
|
|
288
|
+
export function _deleteSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
289
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}{?api-version}", {
|
|
290
|
+
agent_name: agentName,
|
|
291
|
+
session_id: sessionId,
|
|
292
|
+
"api-version": context.apiVersion,
|
|
293
|
+
}, {
|
|
294
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
295
|
+
});
|
|
296
|
+
return context.path(path).delete({
|
|
297
|
+
...operationOptionsToRequestParameters(options),
|
|
298
|
+
headers: {
|
|
299
|
+
...options.requestOptions?.headers,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
export async function _deleteSessionDeserialize(result) {
|
|
304
|
+
const expectedStatuses = ["204"];
|
|
305
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
306
|
+
const error = createRestError(result);
|
|
307
|
+
if (result.body) {
|
|
308
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
309
|
+
}
|
|
310
|
+
throw error;
|
|
311
|
+
}
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Deletes a session synchronously.
|
|
316
|
+
* Returns 204 No Content when the session is deleted or does not exist.
|
|
317
|
+
*/
|
|
318
|
+
export async function deleteSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
319
|
+
const result = await _deleteSessionSend(context, agentName, sessionId, options);
|
|
320
|
+
return _deleteSessionDeserialize(result);
|
|
321
|
+
}
|
|
322
|
+
export function _getSessionSend(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
323
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions/{session_id}{?api-version}", {
|
|
324
|
+
agent_name: agentName,
|
|
325
|
+
session_id: sessionId,
|
|
326
|
+
"api-version": context.apiVersion,
|
|
327
|
+
}, {
|
|
328
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
329
|
+
});
|
|
330
|
+
return context.path(path).get({
|
|
331
|
+
...operationOptionsToRequestParameters(options),
|
|
332
|
+
headers: {
|
|
333
|
+
accept: "application/json",
|
|
334
|
+
...options.requestOptions?.headers,
|
|
335
|
+
},
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
export async function _getSessionDeserialize(result) {
|
|
339
|
+
const expectedStatuses = ["200"];
|
|
340
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
341
|
+
const error = createRestError(result);
|
|
342
|
+
if (result.body) {
|
|
343
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
344
|
+
}
|
|
345
|
+
throw error;
|
|
346
|
+
}
|
|
347
|
+
return agentSessionResourceDeserializer(result.body);
|
|
348
|
+
}
|
|
349
|
+
/** Retrieves the details of a hosted agent session by agent name and session identifier. */
|
|
350
|
+
export async function getSession(context, agentName, sessionId, options = { requestOptions: {} }) {
|
|
351
|
+
const result = await _getSessionSend(context, agentName, sessionId, options);
|
|
352
|
+
return _getSessionDeserialize(result);
|
|
353
|
+
}
|
|
354
|
+
export function _createSessionSend(context, agentName, versionIndicator, options = { requestOptions: {} }) {
|
|
355
|
+
const path = expandUrlTemplate("/agents/{agent_name}/endpoint/sessions{?api-version}", {
|
|
356
|
+
agent_name: agentName,
|
|
357
|
+
"api-version": context.apiVersion,
|
|
358
|
+
}, {
|
|
359
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
360
|
+
});
|
|
361
|
+
return context.path(path).post({
|
|
362
|
+
...operationOptionsToRequestParameters(options),
|
|
363
|
+
contentType: "application/json",
|
|
364
|
+
headers: {
|
|
365
|
+
accept: "application/json",
|
|
366
|
+
...options.requestOptions?.headers,
|
|
367
|
+
},
|
|
368
|
+
body: {
|
|
369
|
+
agent_session_id: options?.agentSessionId,
|
|
370
|
+
version_indicator: versionIndicatorUnionSerializer(versionIndicator),
|
|
371
|
+
},
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
export async function _createSessionDeserialize(result) {
|
|
375
|
+
const expectedStatuses = ["201"];
|
|
376
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
377
|
+
const error = createRestError(result);
|
|
378
|
+
if (result.body) {
|
|
379
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
380
|
+
}
|
|
381
|
+
throw error;
|
|
382
|
+
}
|
|
383
|
+
return agentSessionResourceDeserializer(result.body);
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Creates a new session for an agent endpoint.
|
|
387
|
+
* The endpoint resolves the backing agent version from `version_indicator` and
|
|
388
|
+
* enforces session ownership using the provided isolation key for session-mutating operations.
|
|
389
|
+
*/
|
|
390
|
+
export async function createSession(context, agentName, versionIndicator, options = { requestOptions: {} }) {
|
|
391
|
+
const result = await _createSessionSend(context, agentName, versionIndicator, options);
|
|
392
|
+
return _createSessionDeserialize(result);
|
|
393
|
+
}
|
|
394
|
+
export function _disableSend(context, agentName, options = { requestOptions: {} }) {
|
|
395
|
+
const path = expandUrlTemplate("/agents/{agent_name}:disable{?api-version}", {
|
|
396
|
+
agent_name: agentName,
|
|
397
|
+
"api-version": context.apiVersion,
|
|
398
|
+
}, {
|
|
399
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
400
|
+
});
|
|
401
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
402
|
+
}
|
|
403
|
+
export async function _disableDeserialize(result) {
|
|
404
|
+
const expectedStatuses = ["204"];
|
|
405
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
406
|
+
const error = createRestError(result);
|
|
407
|
+
if (result.body) {
|
|
408
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
409
|
+
}
|
|
410
|
+
throw error;
|
|
411
|
+
}
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Disables the specified agent, preventing it from accepting new sessions or processing requests.
|
|
416
|
+
* Existing active sessions are allowed to drain gracefully but no new sessions can be created.
|
|
417
|
+
* This operation is idempotent — disabling an already-disabled agent returns success with no side effects.
|
|
418
|
+
*/
|
|
419
|
+
export async function disable(context, agentName, options = { requestOptions: {} }) {
|
|
420
|
+
const result = await _disableSend(context, agentName, options);
|
|
421
|
+
return _disableDeserialize(result);
|
|
422
|
+
}
|
|
423
|
+
export function _enableSend(context, agentName, options = { requestOptions: {} }) {
|
|
424
|
+
const path = expandUrlTemplate("/agents/{agent_name}:enable{?api-version}", {
|
|
425
|
+
agent_name: agentName,
|
|
426
|
+
"api-version": context.apiVersion,
|
|
427
|
+
}, {
|
|
428
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
429
|
+
});
|
|
430
|
+
return context.path(path).post({ ...operationOptionsToRequestParameters(options) });
|
|
431
|
+
}
|
|
432
|
+
export async function _enableDeserialize(result) {
|
|
433
|
+
const expectedStatuses = ["204"];
|
|
434
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
435
|
+
const error = createRestError(result);
|
|
436
|
+
if (result.body) {
|
|
437
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
438
|
+
}
|
|
439
|
+
throw error;
|
|
440
|
+
}
|
|
441
|
+
return;
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Enables the specified agent, allowing it to accept new sessions and process requests.
|
|
445
|
+
* This operation is idempotent — enabling an already-enabled agent returns success with no side effects.
|
|
446
|
+
*/
|
|
447
|
+
export async function enable(context, agentName, options = { requestOptions: {} }) {
|
|
448
|
+
const result = await _enableSend(context, agentName, options);
|
|
449
|
+
return _enableDeserialize(result);
|
|
450
|
+
}
|
|
451
|
+
export function _downloadAgentCodeSend(context, agentName, options = { requestOptions: {} }) {
|
|
452
|
+
const path = expandUrlTemplate("/agents/{agent_name}/code:download{?agent_version,api-version}", {
|
|
453
|
+
agent_name: agentName,
|
|
454
|
+
agent_version: options?.agentVersion,
|
|
455
|
+
"api-version": context.apiVersion,
|
|
456
|
+
}, {
|
|
457
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
458
|
+
});
|
|
459
|
+
return context.path(path).get({
|
|
460
|
+
...operationOptionsToRequestParameters(options),
|
|
461
|
+
headers: { accept: "application/zip", ...options.requestOptions?.headers },
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
export async function _downloadAgentCodeDeserialize(result) {
|
|
465
|
+
const expectedStatuses = ["200"];
|
|
466
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
467
|
+
const error = createRestError(result);
|
|
468
|
+
if (result.body?.error) {
|
|
469
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
470
|
+
}
|
|
471
|
+
throw error;
|
|
472
|
+
}
|
|
473
|
+
return { blobBody: result.blobBody, readableStreamBody: result.readableStreamBody };
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Downloads the code zip for a code-based hosted agent.
|
|
477
|
+
* Returns the previously-uploaded zip (`application/zip`).
|
|
478
|
+
*
|
|
479
|
+
* If `agent_version` is supplied, returns that version's code zip; otherwise
|
|
480
|
+
* returns the latest version's code zip.
|
|
481
|
+
*
|
|
482
|
+
* The SHA-256 digest of the returned bytes matches the `content_hash` on the
|
|
483
|
+
* resolved version's `code_configuration`.
|
|
484
|
+
*/
|
|
485
|
+
export async function downloadAgentCode(context, agentName, options = { requestOptions: {} }) {
|
|
486
|
+
const streamableMethod = _downloadAgentCodeSend(context, agentName, options);
|
|
487
|
+
const result = await getBinaryStreamResponse(streamableMethod);
|
|
488
|
+
return _downloadAgentCodeDeserialize(result);
|
|
489
|
+
}
|
|
490
|
+
export function _createVersionFromCodeSend(context, agentName, codeZipSha256, content, options = { requestOptions: {} }) {
|
|
491
|
+
const path = expandUrlTemplate("/agents/{agent_name}/versions{?api-version}", {
|
|
492
|
+
agent_name: agentName,
|
|
493
|
+
"api-version": context.apiVersion,
|
|
494
|
+
}, {
|
|
495
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
496
|
+
});
|
|
497
|
+
return context.path(path).post({
|
|
498
|
+
...operationOptionsToRequestParameters(options),
|
|
499
|
+
contentType: "multipart/form-data",
|
|
500
|
+
headers: {
|
|
501
|
+
"x-ms-code-zip-sha256": codeZipSha256,
|
|
502
|
+
accept: "application/json",
|
|
503
|
+
...options.requestOptions?.headers,
|
|
504
|
+
},
|
|
505
|
+
body: createAgentVersionFromCodeContentSerializer(content),
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
export async function _createVersionFromCodeDeserialize(result) {
|
|
509
|
+
const expectedStatuses = ["200"];
|
|
510
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
511
|
+
const error = createRestError(result);
|
|
512
|
+
if (result.body) {
|
|
513
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
514
|
+
}
|
|
515
|
+
throw error;
|
|
516
|
+
}
|
|
517
|
+
return agentVersionDeserializer(result.body);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Creates a new agent version from code. Uploads the code zip and creates a new version
|
|
521
|
+
* for an existing agent. The SHA-256 hex digest of the zip is provided in the
|
|
522
|
+
* `x-ms-code-zip-sha256` header for integrity and dedup.
|
|
523
|
+
* The request body is multipart/form-data with a JSON metadata part and a binary code part (part order is irrelevant).
|
|
524
|
+
* Maximum upload size is 250 MB.
|
|
525
|
+
*/
|
|
526
|
+
export async function createVersionFromCode(context, agentName, codeZipSha256, content, options = { requestOptions: {} }) {
|
|
527
|
+
const result = await _createVersionFromCodeSend(context, agentName, codeZipSha256, content, options);
|
|
528
|
+
return _createVersionFromCodeDeserialize(result);
|
|
529
|
+
}
|
|
530
|
+
export function _patchAgentObjectSend(context, agentName, options = { requestOptions: {} }) {
|
|
531
|
+
const path = expandUrlTemplate("/agents/{agent_name}{?api-version}", {
|
|
532
|
+
agent_name: agentName,
|
|
533
|
+
"api-version": context.apiVersion,
|
|
534
|
+
}, {
|
|
535
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
536
|
+
});
|
|
537
|
+
return context.path(path).patch({
|
|
538
|
+
...operationOptionsToRequestParameters(options),
|
|
539
|
+
contentType: "application/merge-patch+json",
|
|
540
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
541
|
+
body: {
|
|
542
|
+
agent_endpoint: !options?.agentEndpoint
|
|
543
|
+
? options?.agentEndpoint
|
|
544
|
+
: agentEndpointConfigSerializer(options?.agentEndpoint),
|
|
545
|
+
agent_card: !options?.agentCard
|
|
546
|
+
? options?.agentCard
|
|
547
|
+
: agentCardSerializer(options?.agentCard),
|
|
548
|
+
},
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
export async function _patchAgentObjectDeserialize(result) {
|
|
552
|
+
const expectedStatuses = ["200"];
|
|
553
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
554
|
+
const error = createRestError(result);
|
|
555
|
+
if (result.body) {
|
|
556
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
557
|
+
}
|
|
558
|
+
throw error;
|
|
559
|
+
}
|
|
560
|
+
return agentDeserializer(result.body);
|
|
561
|
+
}
|
|
562
|
+
/** Applies a merge-patch update to the specified agent endpoint configuration. */
|
|
563
|
+
export async function updateAgentObject(context, agentName, options = { requestOptions: {} }) {
|
|
564
|
+
const result = await _patchAgentObjectSend(context, agentName, options);
|
|
565
|
+
return _patchAgentObjectDeserialize(result);
|
|
566
|
+
}
|
|
7
567
|
export function _listVersionsSend(context, agentName, options = { requestOptions: {} }) {
|
|
8
568
|
const path = expandUrlTemplate("/agents/{agent_name}/versions{?limit,order,after,before,api-version}", {
|
|
9
569
|
agent_name: agentName,
|
|
@@ -24,12 +584,14 @@ export async function _listVersionsDeserialize(result) {
|
|
|
24
584
|
const expectedStatuses = ["200"];
|
|
25
585
|
if (!expectedStatuses.includes(result.status)) {
|
|
26
586
|
const error = createRestError(result);
|
|
27
|
-
|
|
587
|
+
if (result.body) {
|
|
588
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
589
|
+
}
|
|
28
590
|
throw error;
|
|
29
591
|
}
|
|
30
592
|
return _agentsPagedResultAgentVersionObjectDeserializer(result.body);
|
|
31
593
|
}
|
|
32
|
-
/** Returns
|
|
594
|
+
/** Returns a paged collection of versions for the specified agent. */
|
|
33
595
|
export function listVersions(context, agentName, options = { requestOptions: {} }) {
|
|
34
596
|
return buildPagedAsyncIterator(context, () => _listVersionsSend(context, agentName, options), _listVersionsDeserialize, ["200"], {
|
|
35
597
|
itemName: "data",
|
|
@@ -56,7 +618,9 @@ export async function _deleteVersionDeserialize(result) {
|
|
|
56
618
|
const expectedStatuses = ["200"];
|
|
57
619
|
if (!expectedStatuses.includes(result.status)) {
|
|
58
620
|
const error = createRestError(result);
|
|
59
|
-
|
|
621
|
+
if (result.body) {
|
|
622
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
623
|
+
}
|
|
60
624
|
throw error;
|
|
61
625
|
}
|
|
62
626
|
return deleteAgentVersionResponseDeserializer(result.body);
|
|
@@ -87,12 +651,14 @@ export async function _getVersionDeserialize(result) {
|
|
|
87
651
|
const expectedStatuses = ["200"];
|
|
88
652
|
if (!expectedStatuses.includes(result.status)) {
|
|
89
653
|
const error = createRestError(result);
|
|
90
|
-
|
|
654
|
+
if (result.body) {
|
|
655
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
656
|
+
}
|
|
91
657
|
throw error;
|
|
92
658
|
}
|
|
93
659
|
return agentVersionDeserializer(result.body);
|
|
94
660
|
}
|
|
95
|
-
/** Retrieves
|
|
661
|
+
/** Retrieves the specified version of an agent by its agent name and version identifier. */
|
|
96
662
|
export async function getVersion(context, agentName, agentVersion, options = { requestOptions: {} }) {
|
|
97
663
|
const result = await _getVersionSend(context, agentName, agentVersion, options);
|
|
98
664
|
return _getVersionDeserialize(result);
|
|
@@ -120,15 +686,30 @@ export async function _createAgentVersionFromManifestDeserialize(result) {
|
|
|
120
686
|
const expectedStatuses = ["200"];
|
|
121
687
|
if (!expectedStatuses.includes(result.status)) {
|
|
122
688
|
const error = createRestError(result);
|
|
123
|
-
|
|
689
|
+
if (result.body) {
|
|
690
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
691
|
+
}
|
|
124
692
|
throw error;
|
|
125
693
|
}
|
|
126
694
|
return agentVersionDeserializer(result.body);
|
|
127
695
|
}
|
|
128
|
-
/**
|
|
129
|
-
export async function createAgentVersionFromManifest(context, agentName, manifestId, parameterValues, options = { requestOptions: {} }) {
|
|
130
|
-
|
|
131
|
-
|
|
696
|
+
/** Imports the provided manifest to create a new version for the specified agent. */
|
|
697
|
+
export async function createAgentVersionFromManifest(context, agentName, manifestId, parameterValues, options = { requestOptions: {} }, tracingConfig) {
|
|
698
|
+
if (!tracingConfig?.enabled) {
|
|
699
|
+
const result = await _createAgentVersionFromManifestSend(context, agentName, manifestId, parameterValues, options);
|
|
700
|
+
return _createAgentVersionFromManifestDeserialize(result);
|
|
701
|
+
}
|
|
702
|
+
const { span } = startSpan(`${OperationName.CREATE_AGENT} ${agentName}`);
|
|
703
|
+
try {
|
|
704
|
+
setCommonAttributes(span, OperationName.CREATE_AGENT, context.endpoint);
|
|
705
|
+
const result = await _createAgentVersionFromManifestSend(context, agentName, manifestId, parameterValues, options);
|
|
706
|
+
const version = await _createAgentVersionFromManifestDeserialize(result);
|
|
707
|
+
setAgentVersionAttributes(span, version, tracingConfig.contentRecording);
|
|
708
|
+
return version;
|
|
709
|
+
}
|
|
710
|
+
finally {
|
|
711
|
+
span.end();
|
|
712
|
+
}
|
|
132
713
|
}
|
|
133
714
|
export function _createVersionSend(context, agentName, definition, options = { requestOptions: {} }) {
|
|
134
715
|
const path = expandUrlTemplate("/agents/{agent_name}/versions{?api-version}", {
|
|
@@ -142,7 +723,7 @@ export function _createVersionSend(context, agentName, definition, options = { r
|
|
|
142
723
|
contentType: "application/json",
|
|
143
724
|
headers: {
|
|
144
725
|
...(options?.foundryFeatures !== undefined
|
|
145
|
-
? { "foundry-features": `${options?.foundryFeatures}
|
|
726
|
+
? { "foundry-features": `${options?.foundryFeatures}` }
|
|
146
727
|
: {}),
|
|
147
728
|
accept: "application/json",
|
|
148
729
|
...options.requestOptions?.headers,
|
|
@@ -161,15 +742,30 @@ export async function _createVersionDeserialize(result) {
|
|
|
161
742
|
const expectedStatuses = ["200"];
|
|
162
743
|
if (!expectedStatuses.includes(result.status)) {
|
|
163
744
|
const error = createRestError(result);
|
|
164
|
-
|
|
745
|
+
if (result.body) {
|
|
746
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
747
|
+
}
|
|
165
748
|
throw error;
|
|
166
749
|
}
|
|
167
750
|
return agentVersionDeserializer(result.body);
|
|
168
751
|
}
|
|
169
|
-
/**
|
|
170
|
-
export async function createVersion(context, agentName, definition, options = { requestOptions: {} }) {
|
|
171
|
-
|
|
172
|
-
|
|
752
|
+
/** Creates a new version for the specified agent and returns the created version resource. */
|
|
753
|
+
export async function createVersion(context, agentName, definition, options = { requestOptions: {} }, tracingConfig) {
|
|
754
|
+
if (!tracingConfig?.enabled) {
|
|
755
|
+
const result = await _createVersionSend(context, agentName, definition, options);
|
|
756
|
+
return _createVersionDeserialize(result);
|
|
757
|
+
}
|
|
758
|
+
const { span } = startSpan(`${OperationName.CREATE_AGENT} ${agentName}`);
|
|
759
|
+
try {
|
|
760
|
+
setCommonAttributes(span, OperationName.CREATE_AGENT, context.endpoint);
|
|
761
|
+
const result = await _createVersionSend(context, agentName, definition, options);
|
|
762
|
+
const version = await _createVersionDeserialize(result);
|
|
763
|
+
setAgentVersionAttributes(span, version, tracingConfig.contentRecording);
|
|
764
|
+
return version;
|
|
765
|
+
}
|
|
766
|
+
finally {
|
|
767
|
+
span.end();
|
|
768
|
+
}
|
|
173
769
|
}
|
|
174
770
|
export function _listSend(context, options = { requestOptions: {} }) {
|
|
175
771
|
const path = expandUrlTemplate("/agents{?kind,limit,order,after,before,api-version}", {
|
|
@@ -191,12 +787,14 @@ export async function _listDeserialize(result) {
|
|
|
191
787
|
const expectedStatuses = ["200"];
|
|
192
788
|
if (!expectedStatuses.includes(result.status)) {
|
|
193
789
|
const error = createRestError(result);
|
|
194
|
-
|
|
790
|
+
if (result.body) {
|
|
791
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
792
|
+
}
|
|
195
793
|
throw error;
|
|
196
794
|
}
|
|
197
795
|
return _agentsPagedResultAgentObjectDeserializer(result.body);
|
|
198
796
|
}
|
|
199
|
-
/** Returns
|
|
797
|
+
/** Returns a paged collection of agent resources. */
|
|
200
798
|
export function list(context, options = { requestOptions: {} }) {
|
|
201
799
|
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], {
|
|
202
800
|
itemName: "data",
|
|
@@ -205,7 +803,7 @@ export function list(context, options = { requestOptions: {} }) {
|
|
|
205
803
|
hasMoreFieldName: "has_more",
|
|
206
804
|
});
|
|
207
805
|
}
|
|
208
|
-
export function
|
|
806
|
+
export function _$deleteSend(context, agentName, options = { requestOptions: {} }) {
|
|
209
807
|
const path = expandUrlTemplate("/agents/{agent_name}{?force,api-version}", {
|
|
210
808
|
agent_name: agentName,
|
|
211
809
|
force: options?.force,
|
|
@@ -218,11 +816,13 @@ export function _deleteSend(context, agentName, options = { requestOptions: {} }
|
|
|
218
816
|
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
219
817
|
});
|
|
220
818
|
}
|
|
221
|
-
export async function
|
|
819
|
+
export async function _$deleteDeserialize(result) {
|
|
222
820
|
const expectedStatuses = ["200"];
|
|
223
821
|
if (!expectedStatuses.includes(result.status)) {
|
|
224
822
|
const error = createRestError(result);
|
|
225
|
-
|
|
823
|
+
if (result.body) {
|
|
824
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
825
|
+
}
|
|
226
826
|
throw error;
|
|
227
827
|
}
|
|
228
828
|
return deleteAgentResponseDeserializer(result.body);
|
|
@@ -233,8 +833,8 @@ export async function _deleteDeserialize(result) {
|
|
|
233
833
|
* associated sessions are cascade-deleted along with the agent and its versions.
|
|
234
834
|
*/
|
|
235
835
|
export async function $delete(context, agentName, options = { requestOptions: {} }) {
|
|
236
|
-
const result = await
|
|
237
|
-
return
|
|
836
|
+
const result = await _$deleteSend(context, agentName, options);
|
|
837
|
+
return _$deleteDeserialize(result);
|
|
238
838
|
}
|
|
239
839
|
export function _updateAgentFromManifestSend(context, agentName, manifestId, parameterValues, options = { requestOptions: {} }) {
|
|
240
840
|
const path = expandUrlTemplate("/agents/{agent_name}/import{?api-version}", {
|
|
@@ -259,7 +859,9 @@ export async function _updateAgentFromManifestDeserialize(result) {
|
|
|
259
859
|
const expectedStatuses = ["200"];
|
|
260
860
|
if (!expectedStatuses.includes(result.status)) {
|
|
261
861
|
const error = createRestError(result);
|
|
262
|
-
|
|
862
|
+
if (result.body) {
|
|
863
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
864
|
+
}
|
|
263
865
|
throw error;
|
|
264
866
|
}
|
|
265
867
|
return agentDeserializer(result.body);
|
|
@@ -268,7 +870,7 @@ export async function _updateAgentFromManifestDeserialize(result) {
|
|
|
268
870
|
* Updates the agent from a manifest by adding a new version if there are any changes to the agent definition.
|
|
269
871
|
* If no changes, returns the existing agent version.
|
|
270
872
|
*/
|
|
271
|
-
export async function updateAgentFromManifest(context, agentName, manifestId, parameterValues, options = { requestOptions: {} }) {
|
|
873
|
+
export async function updateAgentFromManifest(context, agentName, manifestId, parameterValues, options = { requestOptions: {} }, _tracingConfig) {
|
|
272
874
|
const result = await _updateAgentFromManifestSend(context, agentName, manifestId, parameterValues, options);
|
|
273
875
|
return _updateAgentFromManifestDeserialize(result);
|
|
274
876
|
}
|
|
@@ -295,15 +897,30 @@ export async function _createAgentFromManifestDeserialize(result) {
|
|
|
295
897
|
const expectedStatuses = ["200"];
|
|
296
898
|
if (!expectedStatuses.includes(result.status)) {
|
|
297
899
|
const error = createRestError(result);
|
|
298
|
-
|
|
900
|
+
if (result.body) {
|
|
901
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
902
|
+
}
|
|
299
903
|
throw error;
|
|
300
904
|
}
|
|
301
905
|
return agentDeserializer(result.body);
|
|
302
906
|
}
|
|
303
|
-
/**
|
|
304
|
-
export async function createAgentFromManifest(context, name, manifestId, parameterValues, options = { requestOptions: {} }) {
|
|
305
|
-
|
|
306
|
-
|
|
907
|
+
/** Imports the provided manifest to create an agent and returns the created resource. */
|
|
908
|
+
export async function createAgentFromManifest(context, name, manifestId, parameterValues, options = { requestOptions: {} }, tracingConfig) {
|
|
909
|
+
if (!tracingConfig?.enabled) {
|
|
910
|
+
const result = await _createAgentFromManifestSend(context, name, manifestId, parameterValues, options);
|
|
911
|
+
return _createAgentFromManifestDeserialize(result);
|
|
912
|
+
}
|
|
913
|
+
const { span } = startSpan(`${OperationName.CREATE_AGENT} ${name}`);
|
|
914
|
+
try {
|
|
915
|
+
setCommonAttributes(span, OperationName.CREATE_AGENT, context.endpoint);
|
|
916
|
+
const result = await _createAgentFromManifestSend(context, name, manifestId, parameterValues, options);
|
|
917
|
+
const agent = await _createAgentFromManifestDeserialize(result);
|
|
918
|
+
setAgentAttributes(span, agent, tracingConfig.contentRecording);
|
|
919
|
+
return agent;
|
|
920
|
+
}
|
|
921
|
+
finally {
|
|
922
|
+
span.end();
|
|
923
|
+
}
|
|
307
924
|
}
|
|
308
925
|
export function _updateSend(context, agentName, definition, options = { requestOptions: {} }) {
|
|
309
926
|
const path = expandUrlTemplate("/agents/{agent_name}{?api-version}", {
|
|
@@ -317,7 +934,7 @@ export function _updateSend(context, agentName, definition, options = { requestO
|
|
|
317
934
|
contentType: "application/json",
|
|
318
935
|
headers: {
|
|
319
936
|
...(options?.foundryFeatures !== undefined
|
|
320
|
-
? { "foundry-features": `${options?.foundryFeatures}
|
|
937
|
+
? { "foundry-features": `${options?.foundryFeatures}` }
|
|
321
938
|
: {}),
|
|
322
939
|
accept: "application/json",
|
|
323
940
|
...options.requestOptions?.headers,
|
|
@@ -336,7 +953,9 @@ export async function _updateDeserialize(result) {
|
|
|
336
953
|
const expectedStatuses = ["200"];
|
|
337
954
|
if (!expectedStatuses.includes(result.status)) {
|
|
338
955
|
const error = createRestError(result);
|
|
339
|
-
|
|
956
|
+
if (result.body) {
|
|
957
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
958
|
+
}
|
|
340
959
|
throw error;
|
|
341
960
|
}
|
|
342
961
|
return agentDeserializer(result.body);
|
|
@@ -345,7 +964,7 @@ export async function _updateDeserialize(result) {
|
|
|
345
964
|
* Updates the agent by adding a new version if there are any changes to the agent definition.
|
|
346
965
|
* If no changes, returns the existing agent version.
|
|
347
966
|
*/
|
|
348
|
-
export async function update(context, agentName, definition, options = { requestOptions: {} }) {
|
|
967
|
+
export async function update(context, agentName, definition, options = { requestOptions: {} }, _tracingConfig) {
|
|
349
968
|
const result = await _updateSend(context, agentName, definition, options);
|
|
350
969
|
return _updateDeserialize(result);
|
|
351
970
|
}
|
|
@@ -360,13 +979,14 @@ export function _createSend(context, name, definition, options = { requestOption
|
|
|
360
979
|
contentType: "application/json",
|
|
361
980
|
headers: {
|
|
362
981
|
...(options?.foundryFeatures !== undefined
|
|
363
|
-
? { "foundry-features": `${options?.foundryFeatures}
|
|
982
|
+
? { "foundry-features": `${options?.foundryFeatures}` }
|
|
364
983
|
: {}),
|
|
365
984
|
accept: "application/json",
|
|
366
985
|
...options.requestOptions?.headers,
|
|
367
986
|
},
|
|
368
987
|
body: {
|
|
369
988
|
name: name,
|
|
989
|
+
state: options?.state,
|
|
370
990
|
metadata: options?.metadata,
|
|
371
991
|
description: options?.description,
|
|
372
992
|
definition: agentDefinitionUnionSerializer(definition),
|
|
@@ -386,15 +1006,30 @@ export async function _createDeserialize(result) {
|
|
|
386
1006
|
const expectedStatuses = ["200"];
|
|
387
1007
|
if (!expectedStatuses.includes(result.status)) {
|
|
388
1008
|
const error = createRestError(result);
|
|
389
|
-
|
|
1009
|
+
if (result.body) {
|
|
1010
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
1011
|
+
}
|
|
390
1012
|
throw error;
|
|
391
1013
|
}
|
|
392
1014
|
return agentDeserializer(result.body);
|
|
393
1015
|
}
|
|
394
|
-
/** Creates
|
|
395
|
-
export async function create(context, name, definition, options = { requestOptions: {} }) {
|
|
396
|
-
|
|
397
|
-
|
|
1016
|
+
/** Creates a new agent or a new version of an existing agent. */
|
|
1017
|
+
export async function create(context, name, definition, options = { requestOptions: {} }, tracingConfig) {
|
|
1018
|
+
if (!tracingConfig?.enabled) {
|
|
1019
|
+
const result = await _createSend(context, name, definition, options);
|
|
1020
|
+
return _createDeserialize(result);
|
|
1021
|
+
}
|
|
1022
|
+
const { span } = startSpan(`${OperationName.CREATE_AGENT} ${name}`);
|
|
1023
|
+
try {
|
|
1024
|
+
setCommonAttributes(span, OperationName.CREATE_AGENT, context.endpoint);
|
|
1025
|
+
const result = await _createSend(context, name, definition, options);
|
|
1026
|
+
const agent = await _createDeserialize(result);
|
|
1027
|
+
setAgentAttributes(span, agent, tracingConfig.contentRecording);
|
|
1028
|
+
return agent;
|
|
1029
|
+
}
|
|
1030
|
+
finally {
|
|
1031
|
+
span.end();
|
|
1032
|
+
}
|
|
398
1033
|
}
|
|
399
1034
|
export function _getSend(context, agentName, options = { requestOptions: {} }) {
|
|
400
1035
|
const path = expandUrlTemplate("/agents/{agent_name}{?api-version}", {
|
|
@@ -412,12 +1047,14 @@ export async function _getDeserialize(result) {
|
|
|
412
1047
|
const expectedStatuses = ["200"];
|
|
413
1048
|
if (!expectedStatuses.includes(result.status)) {
|
|
414
1049
|
const error = createRestError(result);
|
|
415
|
-
|
|
1050
|
+
if (result.body) {
|
|
1051
|
+
error.details = apiErrorResponseDeserializer(result.body);
|
|
1052
|
+
}
|
|
416
1053
|
throw error;
|
|
417
1054
|
}
|
|
418
1055
|
return agentDeserializer(result.body);
|
|
419
1056
|
}
|
|
420
|
-
/** Retrieves
|
|
1057
|
+
/** Retrieves an agent definition by its unique name. */
|
|
421
1058
|
export async function get(context, agentName, options = { requestOptions: {} }) {
|
|
422
1059
|
const result = await _getSend(context, agentName, options);
|
|
423
1060
|
return _getDeserialize(result);
|