From 8370b1d7f20d04e204c7c9d5412ffa0d60ce15f3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 10 Feb 2025 18:18:25 +0000 Subject: [PATCH] CodeGen from PR 32524 in Azure/azure-rest-api-specs Merge e8a40199e62adbb2d233742d6205b76f5f2db854 into 85b13254060355ccbad6317d33f647487dd57ced --- .../Azure.AI.Connections.sln | 56 + sdk/ai/Azure.AI.Connections/CHANGELOG.md | 11 + .../Directory.Build.props | 6 + sdk/ai/Azure.AI.Connections/README.md | 107 + .../api/Azure.AI.Connections.net8.0.cs | 41 + .../Azure.AI.Connections.netstandard2.0.cs | 41 + .../src/Azure.AI.Connections.csproj | 19 + .../src/Generated/AIConnectionsClient.cs | 598 + .../AIConnectionsClientBuilderExtensions.cs | 38 + .../Generated/AIConnectionsClientOptions.cs | 37 + .../AuthenticationType.Serialization.cs | 2 +- .../src/Generated/AuthenticationType.cs | 2 +- .../Generated/ConnectionType.Serialization.cs | 34 + .../src/Generated/ConnectionType.cs | 24 + .../CredentialsApiKeyAuth.Serialization.cs | 4 +- .../src/Generated/CredentialsApiKeyAuth.cs | 4 +- .../CredentialsSASAuth.Serialization.cs | 2 +- .../src/Generated/CredentialsSASAuth.cs | 2 +- .../GetConnectionResponse.Serialization.cs} | 48 +- .../src/Generated/GetConnectionResponse.cs} | 30 +- ...nectionWithSecretsRequest.Serialization.cs | 2 +- .../GetConnectionWithSecretsRequest.cs | 2 +- .../GetWorkspaceResponse.Serialization.cs | 4 +- .../src/Generated/GetWorkspaceResponse.cs | 4 +- .../src/Generated/Internal/Argument.cs | 129 + .../Internal/ModelSerializationExtensions.cs | 398 + .../Internal/Utf8JsonRequestContent.cs | 55 + ...rnalConnectionProperties.Serialization.cs} | 44 +- .../InternalConnectionProperties.cs} | 23 +- ...nnectionPropertiesAADAuth.Serialization.cs | 2 +- .../InternalConnectionPropertiesAADAuth.cs | 4 +- ...tionPropertiesApiKeyAuth.Serialization.cs} | 44 +- ...InternalConnectionPropertiesApiKeyAuth.cs} | 16 +- ...onnectionPropertiesNoAuth.Serialization.cs | 4 +- .../InternalConnectionPropertiesNoAuth.cs | 4 +- ...nnectionPropertiesSASAuth.Serialization.cs | 2 +- .../InternalConnectionPropertiesSASAuth.cs | 4 +- .../ListConnectionsResponse.Serialization.cs | 10 +- .../src/Generated/ListConnectionsResponse.cs | 10 +- ...ernalConnectionProperties.Serialization.cs | 38 +- .../UnknownInternalConnectionProperties.cs | 4 +- .../WorkspaceProperties.Serialization.cs | 4 +- .../src/Generated/WorkspaceProperties.cs | 4 +- .../src/Properties/AssemblyInfo.cs | 11 + .../tests/Azure.AI.Connections.Tests.csproj | 20 + sdk/ai/Azure.AI.Connections/tsp-location.yaml | 4 + .../Azure.AI.Evaluations.sln | 56 + sdk/ai/Azure.AI.Evaluations/CHANGELOG.md | 11 + .../Directory.Build.props | 6 + sdk/ai/Azure.AI.Evaluations/README.md | 107 + .../src/Azure.AI.Evaluations.csproj | 19 + .../src/Generated/AIEvaluationsClient.cs} | 56 +- .../AIEvaluationsClientBuilderExtensions.cs | 38 + .../Generated/AIEvaluationsClientOptions.cs | 37 + .../Generated/AIEvaluationsModelFactory.cs | 98 + ...tionInsightsConfiguration.Serialization.cs | 2 +- .../ApplicationInsightsConfiguration.cs | 2 +- .../Generated/CronTrigger.Serialization.cs | 2 +- .../src/Generated/CronTrigger.cs | 2 +- .../src/Generated/Dataset.Serialization.cs | 2 +- .../src/Generated/Dataset.cs | 2 +- .../src/Generated/Evaluation.Serialization.cs | 2 +- .../src/Generated/Evaluation.cs | 2 +- .../EvaluationSchedule.Serialization.cs | 2 +- .../src/Generated/EvaluationSchedule.cs | 8 +- .../src/Generated/Evaluations.cs} | 52 +- .../EvaluatorConfiguration.Serialization.cs | 2 +- .../src/Generated/EvaluatorConfiguration.cs | 2 +- .../src/Generated/Frequency.cs | 2 +- .../src/Generated/InputData.Serialization.cs | 2 +- .../src/Generated/InputData.cs | 2 +- .../src/Generated/Internal/Argument.cs | 129 + .../Internal/ChangeTrackingDictionary.cs | 167 + .../Generated/Internal/ChangeTrackingList.cs | 153 + .../Internal/ModelSerializationExtensions.cs | 398 + .../src/Generated/Internal/Optional.cs | 51 + .../Internal/Utf8JsonRequestContent.cs | 55 + .../RecurrenceSchedule.Serialization.cs | 2 +- .../src/Generated/RecurrenceSchedule.cs | 2 +- .../RecurrenceTrigger.Serialization.cs | 2 +- .../src/Generated/RecurrenceTrigger.cs | 2 +- .../src/Generated/SystemData.Serialization.cs | 2 +- .../src/Generated/SystemData.cs | 2 +- .../src/Generated/Trigger.Serialization.cs | 2 +- .../src/Generated/Trigger.cs | 2 +- .../UnknownInputData.Serialization.cs | 2 +- .../src/Generated/UnknownInputData.cs | 2 +- .../Generated/UnknownTrigger.Serialization.cs | 2 +- .../src/Generated/UnknownTrigger.cs | 2 +- .../src/Generated/WeekDays.cs | 2 +- .../src/Properties/AssemblyInfo.cs | 11 + .../tests/Azure.AI.Evaluations.Tests.csproj | 20 + sdk/ai/Azure.AI.Evaluations/tsp-location.yaml | 4 + sdk/ai/Azure.AI.Projects/Configuration.json | 13 + .../AIProjectsClientBuilderExtensions.cs | 14 +- .../src/Generated/AIProjectsModelFactory.cs | 159 - .../src/Generated/AgentsClient.cs | 31 +- ...lientOptions.cs => AgentsClientOptions.cs} | 8 +- .../Generated/ConnectionType.Serialization.cs | 15 - .../src/Generated/ConnectionsClient.cs | 55 - sdk/ai/Azure.AI.Projects/tsp-location.yaml | 6 +- sdk/ai/Azure.AI.Projects/tspCodeModel.json | 29038 ++++++++++++++++ .../Azure.AI.Telemetry/Azure.AI.Telemetry.sln | 56 + sdk/ai/Azure.AI.Telemetry/CHANGELOG.md | 11 + .../Azure.AI.Telemetry/Directory.Build.props | 6 + sdk/ai/Azure.AI.Telemetry/README.md | 107 + .../api/Azure.AI.Telemetry.net8.0.cs | 26 + .../api/Azure.AI.Telemetry.netstandard2.0.cs | 26 + .../src/Azure.AI.Telemetry.csproj | 19 + .../src/Generated/AITelemetryClient.cs} | 55 +- .../AITelemetryClientBuilderExtensions.cs | 38 + .../src/Generated/AITelemetryClientOptions.cs | 37 + .../AppInsightsProperties.Serialization.cs | 2 +- .../src/Generated/AppInsightsProperties.cs | 2 +- .../GetAppInsightsResponse.Serialization.cs | 2 +- .../src/Generated/GetAppInsightsResponse.cs | 2 +- .../src/Generated/Internal/Argument.cs | 129 + .../Internal/ModelSerializationExtensions.cs | 398 + .../Internal/Utf8JsonRequestContent.cs | 55 + .../src/Properties/AssemblyInfo.cs | 11 + .../tests/Azure.AI.Telemetry.Tests.csproj | 20 + sdk/ai/Azure.AI.Telemetry/tsp-location.yaml | 4 + sdk/ai/ci.yml | 35 + 123 files changed, 33327 insertions(+), 535 deletions(-) create mode 100644 sdk/ai/Azure.AI.Connections/Azure.AI.Connections.sln create mode 100644 sdk/ai/Azure.AI.Connections/CHANGELOG.md create mode 100644 sdk/ai/Azure.AI.Connections/Directory.Build.props create mode 100644 sdk/ai/Azure.AI.Connections/README.md create mode 100644 sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.net8.0.cs create mode 100644 sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.netstandard2.0.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Azure.AI.Connections.csproj create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClient.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientBuilderExtensions.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientOptions.cs rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/AuthenticationType.Serialization.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/AuthenticationType.cs (95%) create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.Serialization.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.cs rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/CredentialsApiKeyAuth.Serialization.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/CredentialsApiKeyAuth.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/CredentialsSASAuth.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/CredentialsSASAuth.cs (98%) rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionResponse.Serialization.cs => Azure.AI.Connections/src/Generated/GetConnectionResponse.Serialization.cs} (65%) rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionResponse.cs => Azure.AI.Connections/src/Generated/GetConnectionResponse.cs} (57%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/GetConnectionWithSecretsRequest.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/GetWorkspaceResponse.Serialization.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/GetWorkspaceResponse.cs (97%) create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/Internal/Argument.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/Internal/ModelSerializationExtensions.cs create mode 100644 sdk/ai/Azure.AI.Connections/src/Generated/Internal/Utf8JsonRequestContent.cs rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionProperties.Serialization.cs => Azure.AI.Connections/src/Generated/InternalConnectionProperties.Serialization.cs} (64%) rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionProperties.cs => Azure.AI.Connections/src/Generated/InternalConnectionProperties.cs} (67%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesAADAuth.cs (97%) rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.Serialization.cs => Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.Serialization.cs} (62%) rename sdk/ai/{Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.cs => Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.cs} (62%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesNoAuth.cs (93%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/InternalConnectionPropertiesSASAuth.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/ListConnectionsResponse.Serialization.cs (93%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/ListConnectionsResponse.cs (87%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/UnknownInternalConnectionProperties.Serialization.cs (68%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/UnknownInternalConnectionProperties.cs (95%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/WorkspaceProperties.Serialization.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Connections}/src/Generated/WorkspaceProperties.cs (97%) create mode 100644 sdk/ai/Azure.AI.Connections/src/Properties/AssemblyInfo.cs create mode 100644 sdk/ai/Azure.AI.Connections/tests/Azure.AI.Connections.Tests.csproj create mode 100644 sdk/ai/Azure.AI.Connections/tsp-location.yaml create mode 100644 sdk/ai/Azure.AI.Evaluations/Azure.AI.Evaluations.sln create mode 100644 sdk/ai/Azure.AI.Evaluations/CHANGELOG.md create mode 100644 sdk/ai/Azure.AI.Evaluations/Directory.Build.props create mode 100644 sdk/ai/Azure.AI.Evaluations/README.md create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Azure.AI.Evaluations.csproj rename sdk/ai/{Azure.AI.Projects/src/Generated/AIProjectClient.cs => Azure.AI.Evaluations/src/Generated/AIEvaluationsClient.cs} (60%) create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientBuilderExtensions.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientOptions.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsModelFactory.cs rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/ApplicationInsightsConfiguration.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/ApplicationInsightsConfiguration.cs (98%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/CronTrigger.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/CronTrigger.cs (98%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Dataset.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Dataset.cs (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Evaluation.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Evaluation.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/EvaluationSchedule.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/EvaluationSchedule.cs (90%) rename sdk/ai/{Azure.AI.Projects/src/Generated/EvaluationsClient.cs => Azure.AI.Evaluations/src/Generated/Evaluations.cs} (97%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/EvaluatorConfiguration.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/EvaluatorConfiguration.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Frequency.cs (98%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/InputData.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/InputData.cs (98%) create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Argument.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingDictionary.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingList.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ModelSerializationExtensions.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Optional.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Utf8JsonRequestContent.cs rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/RecurrenceSchedule.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/RecurrenceSchedule.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/RecurrenceTrigger.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/RecurrenceTrigger.cs (98%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/SystemData.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/SystemData.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Trigger.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/Trigger.cs (98%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/UnknownInputData.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/UnknownInputData.cs (96%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/UnknownTrigger.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/UnknownTrigger.cs (96%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Evaluations}/src/Generated/WeekDays.cs (99%) create mode 100644 sdk/ai/Azure.AI.Evaluations/src/Properties/AssemblyInfo.cs create mode 100644 sdk/ai/Azure.AI.Evaluations/tests/Azure.AI.Evaluations.Tests.csproj create mode 100644 sdk/ai/Azure.AI.Evaluations/tsp-location.yaml create mode 100644 sdk/ai/Azure.AI.Projects/Configuration.json rename sdk/ai/Azure.AI.Projects/src/Generated/{AIProjectClientOptions.cs => AgentsClientOptions.cs} (73%) delete mode 100644 sdk/ai/Azure.AI.Projects/src/Generated/ConnectionType.Serialization.cs delete mode 100644 sdk/ai/Azure.AI.Projects/src/Generated/ConnectionsClient.cs create mode 100644 sdk/ai/Azure.AI.Projects/tspCodeModel.json create mode 100644 sdk/ai/Azure.AI.Telemetry/Azure.AI.Telemetry.sln create mode 100644 sdk/ai/Azure.AI.Telemetry/CHANGELOG.md create mode 100644 sdk/ai/Azure.AI.Telemetry/Directory.Build.props create mode 100644 sdk/ai/Azure.AI.Telemetry/README.md create mode 100644 sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.net8.0.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.netstandard2.0.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Azure.AI.Telemetry.csproj rename sdk/ai/{Azure.AI.Projects/src/Generated/TelemetryClient.cs => Azure.AI.Telemetry/src/Generated/AITelemetryClient.cs} (73%) create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientBuilderExtensions.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientOptions.cs rename sdk/ai/{Azure.AI.Projects => Azure.AI.Telemetry}/src/Generated/AppInsightsProperties.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Telemetry}/src/Generated/AppInsightsProperties.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Telemetry}/src/Generated/GetAppInsightsResponse.Serialization.cs (99%) rename sdk/ai/{Azure.AI.Projects => Azure.AI.Telemetry}/src/Generated/GetAppInsightsResponse.cs (99%) create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Argument.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/ModelSerializationExtensions.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Utf8JsonRequestContent.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/src/Properties/AssemblyInfo.cs create mode 100644 sdk/ai/Azure.AI.Telemetry/tests/Azure.AI.Telemetry.Tests.csproj create mode 100644 sdk/ai/Azure.AI.Telemetry/tsp-location.yaml create mode 100644 sdk/ai/ci.yml diff --git a/sdk/ai/Azure.AI.Connections/Azure.AI.Connections.sln b/sdk/ai/Azure.AI.Connections/Azure.AI.Connections.sln new file mode 100644 index 000000000000..608fea111f94 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/Azure.AI.Connections.sln @@ -0,0 +1,56 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Connections", "src\Azure.AI.Connections.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Connections.Tests", "tests\Azure.AI.Connections.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/ai/Azure.AI.Connections/CHANGELOG.md b/sdk/ai/Azure.AI.Connections/CHANGELOG.md new file mode 100644 index 000000000000..8b33f0fedccc --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Connections/Directory.Build.props b/sdk/ai/Azure.AI.Connections/Directory.Build.props new file mode 100644 index 000000000000..63bd836ad44b --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/ai/Azure.AI.Connections/README.md b/sdk/ai/Azure.AI.Connections/README.md new file mode 100644 index 000000000000..7efefaa2c8fe --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/README.md @@ -0,0 +1,107 @@ +# Azure.AI.Connections client library for .NET + +Azure.AI.Connections is a managed service that helps developers get secret simply and securely. + +Use the client library for to: + +* [Get secret](https://docs.microsoft.com/azure) + +[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples] + + [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Connections/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure) + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository. + +Install the client library for .NET with [NuGet](https://www.nuget.org/ ): + +```dotnetcli +dotnet add package Azure.AI.Connections --prerelease +``` + +### Prerequisites + +Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +### Service API versions + +The client library targets the latest service API version by default. A client instance accepts an optional service API version parameter from its options to specify which API version service to communicate. + +#### Select a service API version + +You have the flexibility to explicitly select a supported service API version when instantiating a client by configuring its associated options. This ensures that the client can communicate with services using the specified API version. + +For example, + +```C# Snippet:CreateClientForSpecificApiVersion +Uri endpoint = new Uri(""); +DefaultAzureCredential credential = new DefaultAzureCredential(); +ClientOptions options = new ClientOptions(ClientOptions.ServiceVersion.) +var client = new Client(endpoint, credential, options); +``` + +When selecting an API version, it's important to verify that there are no breaking changes compared to the latest API version. If there are significant differences, API calls may fail due to incompatibility. + +Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of: + +### Thread safety + +We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. + +### Additional concepts + +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | +[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) + + +## Examples + +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Connections/samples). + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net/sdk/ai/Azure.AI.Connections/README.png) \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.net8.0.cs b/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.net8.0.cs new file mode 100644 index 000000000000..0a28f569fc98 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.net8.0.cs @@ -0,0 +1,41 @@ +namespace Azure.AI.Connections +{ + public partial class AIConnectionsClient + { + protected AIConnectionsClient() { } + public AIConnectionsClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential) { } + public AIConnectionsClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential, Azure.AI.Connections.AIConnectionsClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + } + public partial class AIConnectionsClientOptions : Azure.Core.ClientOptions + { + public AIConnectionsClientOptions(Azure.AI.Connections.AIConnectionsClientOptions.ServiceVersion version = Azure.AI.Connections.AIConnectionsClientOptions.ServiceVersion.V2024_07_01_Preview) { } + public enum ServiceVersion + { + V2024_07_01_Preview = 1, + } + } + public enum AuthenticationType + { + ApiKey = 0, + EntraId = 1, + SAS = 2, + None = 3, + } + public enum ConnectionType + { + AzureOpenAI = 0, + Serverless = 1, + AzureBlobStorage = 2, + AzureAIServices = 3, + AzureAISearch = 4, + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class AIConnectionsClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.netstandard2.0.cs b/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.netstandard2.0.cs new file mode 100644 index 000000000000..0a28f569fc98 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/api/Azure.AI.Connections.netstandard2.0.cs @@ -0,0 +1,41 @@ +namespace Azure.AI.Connections +{ + public partial class AIConnectionsClient + { + protected AIConnectionsClient() { } + public AIConnectionsClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential) { } + public AIConnectionsClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential, Azure.AI.Connections.AIConnectionsClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + } + public partial class AIConnectionsClientOptions : Azure.Core.ClientOptions + { + public AIConnectionsClientOptions(Azure.AI.Connections.AIConnectionsClientOptions.ServiceVersion version = Azure.AI.Connections.AIConnectionsClientOptions.ServiceVersion.V2024_07_01_Preview) { } + public enum ServiceVersion + { + V2024_07_01_Preview = 1, + } + } + public enum AuthenticationType + { + ApiKey = 0, + EntraId = 1, + SAS = 2, + None = 3, + } + public enum ConnectionType + { + AzureOpenAI = 0, + Serverless = 1, + AzureBlobStorage = 2, + AzureAIServices = 3, + AzureAISearch = 4, + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class AIConnectionsClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Azure.AI.Connections.csproj b/sdk/ai/Azure.AI.Connections/src/Azure.AI.Connections.csproj new file mode 100644 index 000000000000..20302902321b --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Azure.AI.Connections.csproj @@ -0,0 +1,19 @@ + + + This is the Azure.AI.Connections client library for developing .NET applications with rich experience. + Azure SDK Code Generation Azure.AI.Connections for Azure Data Plane + 1.0.0-beta.1 + Azure.AI.Connections + $(RequiredTargetFrameworks) + true + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClient.cs b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClient.cs new file mode 100644 index 000000000000..d63e12c54a1e --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClient.cs @@ -0,0 +1,598 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.AI.Connections +{ + // Data plane generated client. + /// The AIConnections service client. + public partial class AIConnectionsClient + { + private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; + private readonly TokenCredential _tokenCredential; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _subscriptionId; + private readonly string _resourceGroupName; + private readonly string _projectName; + private readonly string _apiVersion; + + /// The ClientDiagnostics is used to provide tracing support for the client library. + internal ClientDiagnostics ClientDiagnostics { get; } + + /// The HTTP pipeline for sending and receiving REST requests and responses. + public virtual HttpPipeline Pipeline => _pipeline; + + /// Initializes a new instance of AIConnectionsClient for mocking. + protected AIConnectionsClient() + { + } + + /// Initializes a new instance of AIConnectionsClient. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + /// A credential used to authenticate to an Azure Service. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public AIConnectionsClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential) : this(endpoint, subscriptionId, resourceGroupName, projectName, credential, new AIConnectionsClientOptions()) + { + } + + /// Initializes a new instance of AIConnectionsClient. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + /// A credential used to authenticate to an Azure Service. + /// The options for configuring the client. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public AIConnectionsClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential, AIConnectionsClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(credential, nameof(credential)); + options ??= new AIConnectionsClientOptions(); + + ClientDiagnostics = new ClientDiagnostics(options, true); + _tokenCredential = credential; + _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier()); + _endpoint = endpoint; + _subscriptionId = subscriptionId; + _resourceGroupName = resourceGroupName; + _projectName = projectName; + _apiVersion = options.Version; + } + + /// Gets the properties of the specified machine learning workspace. + /// The cancellation token to use. + internal virtual async Task> GetWorkspaceAsync(CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetWorkspaceAsync(context).ConfigureAwait(false); + return Response.FromValue(GetWorkspaceResponse.FromResponse(response), response); + } + + /// Gets the properties of the specified machine learning workspace. + /// The cancellation token to use. + internal virtual Response GetWorkspace(CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetWorkspace(context); + return Response.FromValue(GetWorkspaceResponse.FromResponse(response), response); + } + + /// + /// [Protocol Method] Gets the properties of the specified machine learning workspace. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual async Task GetWorkspaceAsync(RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetWorkspace"); + scope.Start(); + try + { + using HttpMessage message = CreateGetWorkspaceRequest(context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Gets the properties of the specified machine learning workspace. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual Response GetWorkspace(RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetWorkspace"); + scope.Start(); + try + { + using HttpMessage message = CreateGetWorkspaceRequest(context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// List the details of all the connections (not including their credentials). + /// Category of the workspace connection. + /// Indicates whether to list datastores. Service default: do not list datastores. + /// Target of the workspace connection. + /// The cancellation token to use. + internal virtual async Task> GetConnectionsAsync(ConnectionType? category = null, bool? includeAll = null, string target = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetConnectionsAsync(category?.ToSerialString(), includeAll, target, context).ConfigureAwait(false); + return Response.FromValue(ListConnectionsResponse.FromResponse(response), response); + } + + /// List the details of all the connections (not including their credentials). + /// Category of the workspace connection. + /// Indicates whether to list datastores. Service default: do not list datastores. + /// Target of the workspace connection. + /// The cancellation token to use. + internal virtual Response GetConnections(ConnectionType? category = null, bool? includeAll = null, string target = null, CancellationToken cancellationToken = default) + { + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetConnections(category?.ToSerialString(), includeAll, target, context); + return Response.FromValue(ListConnectionsResponse.FromResponse(response), response); + } + + /// + /// [Protocol Method] List the details of all the connections (not including their credentials) + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Category of the workspace connection. Allowed values: "AzureOpenAI" | "Serverless" | "AzureBlob" | "AIServices" | "CognitiveSearch". + /// Indicates whether to list datastores. Service default: do not list datastores. + /// Target of the workspace connection. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual async Task GetConnectionsAsync(string category, bool? includeAll, string target, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnections"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionsRequest(category, includeAll, target, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] List the details of all the connections (not including their credentials) + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Category of the workspace connection. Allowed values: "AzureOpenAI" | "Serverless" | "AzureBlob" | "AIServices" | "CognitiveSearch". + /// Indicates whether to list datastores. Service default: do not list datastores. + /// Target of the workspace connection. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual Response GetConnections(string category, bool? includeAll, string target, RequestContext context) + { + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnections"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionsRequest(category, includeAll, target, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get the details of a single connection, without credentials. + /// Connection Name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + internal virtual async Task> GetConnectionAsync(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetConnectionAsync(connectionName, context).ConfigureAwait(false); + return Response.FromValue(GetConnectionResponse.FromResponse(response), response); + } + + /// Get the details of a single connection, without credentials. + /// Connection Name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + internal virtual Response GetConnection(string connectionName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetConnection(connectionName, context); + return Response.FromValue(GetConnectionResponse.FromResponse(response), response); + } + + /// + /// [Protocol Method] Get the details of a single connection, without credentials. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Connection Name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual async Task GetConnectionAsync(string connectionName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnection"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionRequest(connectionName, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Get the details of a single connection, without credentials. + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Connection Name. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual Response GetConnection(string connectionName, RequestContext context) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnection"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionRequest(connectionName, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get the details of a single connection, including credentials (if available). + /// Connection Name. + /// The body is ignored. TODO: Can we remove this?. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + internal virtual async Task> GetConnectionWithSecretsAsync(string connectionName, string ignored, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(ignored, nameof(ignored)); + + GetConnectionWithSecretsRequest getConnectionWithSecretsRequest = new GetConnectionWithSecretsRequest(ignored, null); + RequestContext context = FromCancellationToken(cancellationToken); + Response response = await GetConnectionWithSecretsAsync(connectionName, getConnectionWithSecretsRequest.ToRequestContent(), context).ConfigureAwait(false); + return Response.FromValue(GetConnectionResponse.FromResponse(response), response); + } + + /// Get the details of a single connection, including credentials (if available). + /// Connection Name. + /// The body is ignored. TODO: Can we remove this?. + /// The cancellation token to use. + /// or is null. + /// is an empty string, and was expected to be non-empty. + internal virtual Response GetConnectionWithSecrets(string connectionName, string ignored, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(ignored, nameof(ignored)); + + GetConnectionWithSecretsRequest getConnectionWithSecretsRequest = new GetConnectionWithSecretsRequest(ignored, null); + RequestContext context = FromCancellationToken(cancellationToken); + Response response = GetConnectionWithSecrets(connectionName, getConnectionWithSecretsRequest.ToRequestContent(), context); + return Response.FromValue(GetConnectionResponse.FromResponse(response), response); + } + + /// + /// [Protocol Method] Get the details of a single connection, including credentials (if available). + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Connection Name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual async Task GetConnectionWithSecretsAsync(string connectionName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnectionWithSecrets"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionWithSecretsRequest(connectionName, content, context); + return await _pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// [Protocol Method] Get the details of a single connection, including credentials (if available). + /// + /// + /// + /// This protocol method allows explicit creation of the request and processing of the response for advanced scenarios. + /// + /// + /// + /// + /// Please try the simpler convenience overload with strongly typed models first. + /// + /// + /// + /// + /// Connection Name. + /// The content to send as the body of the request. + /// The request context, which can override default behaviors of the client pipeline on a per-call basis. + /// or is null. + /// is an empty string, and was expected to be non-empty. + /// Service returned a non-success status code. + /// The response returned from the service. + internal virtual Response GetConnectionWithSecrets(string connectionName, RequestContent content, RequestContext context = null) + { + Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); + Argument.AssertNotNull(content, nameof(content)); + + using var scope = ClientDiagnostics.CreateScope("AIConnectionsClient.GetConnectionWithSecrets"); + scope.Start(); + try + { + using HttpMessage message = CreateGetConnectionWithSecretsRequest(connectionName, content, context); + return _pipeline.ProcessMessage(message, context); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + internal HttpMessage CreateGetWorkspaceRequest(RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/agents/v1.0/subscriptions/", false); + uri.AppendRaw(_subscriptionId, true); + uri.AppendRaw("/resourceGroups/", false); + uri.AppendRaw(_resourceGroupName, true); + uri.AppendRaw("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendRaw(_projectName, true); + uri.AppendPath("/", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetConnectionsRequest(string category, bool? includeAll, string target, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/agents/v1.0/subscriptions/", false); + uri.AppendRaw(_subscriptionId, true); + uri.AppendRaw("/resourceGroups/", false); + uri.AppendRaw(_resourceGroupName, true); + uri.AppendRaw("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendRaw(_projectName, true); + uri.AppendPath("/connections", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (category != null) + { + uri.AppendQuery("category", category, true); + } + if (includeAll != null) + { + uri.AppendQuery("includeAll", includeAll.Value, true); + } + if (target != null) + { + uri.AppendQuery("target", target, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetConnectionRequest(string connectionName, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/agents/v1.0/subscriptions/", false); + uri.AppendRaw(_subscriptionId, true); + uri.AppendRaw("/resourceGroups/", false); + uri.AppendRaw(_resourceGroupName, true); + uri.AppendRaw("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendRaw(_projectName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + return message; + } + + internal HttpMessage CreateGetConnectionWithSecretsRequest(string connectionName, RequestContent content, RequestContext context) + { + var message = _pipeline.CreateMessage(context, ResponseClassifier200); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRaw("/agents/v1.0/subscriptions/", false); + uri.AppendRaw(_subscriptionId, true); + uri.AppendRaw("/resourceGroups/", false); + uri.AppendRaw(_resourceGroupName, true); + uri.AppendRaw("/providers/Microsoft.MachineLearningServices/workspaces/", false); + uri.AppendRaw(_projectName, true); + uri.AppendPath("/connections/", false); + uri.AppendPath(connectionName, true); + uri.AppendPath("/listsecrets", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + request.Content = content; + return message; + } + + private static RequestContext DefaultRequestContext = new RequestContext(); + internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) + { + if (!cancellationToken.CanBeCanceled) + { + return DefaultRequestContext; + } + + return new RequestContext() { CancellationToken = cancellationToken }; + } + + private static ResponseClassifier _responseClassifier200; + private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientBuilderExtensions.cs b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientBuilderExtensions.cs new file mode 100644 index 000000000000..5a598af2699c --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientBuilderExtensions.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.AI.Connections; +using Azure.Core.Extensions; + +namespace Microsoft.Extensions.Azure +{ + /// Extension methods to add to client builder. + public static partial class AIConnectionsClientBuilderExtensions + { + /// Registers a instance. + /// The builder to register with. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + public static IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) + where TBuilder : IAzureClientFactoryBuilderWithCredential + { + return builder.RegisterClientFactory((options, cred) => new AIConnectionsClient(endpoint, subscriptionId, resourceGroupName, projectName, cred, options)); + } + + /// Registers a instance. + /// The builder to register with. + /// The configuration values. + public static IAzureClientBuilder AddAIConnectionsClient(this TBuilder builder, TConfiguration configuration) + where TBuilder : IAzureClientFactoryBuilderWithConfiguration + { + return builder.RegisterClientFactory(configuration); + } + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientOptions.cs b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientOptions.cs new file mode 100644 index 000000000000..265f527e620e --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/AIConnectionsClientOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.AI.Connections +{ + /// Client options for AIConnectionsClient. + public partial class AIConnectionsClientOptions : ClientOptions + { + private const ServiceVersion LatestVersion = ServiceVersion.V2024_07_01_Preview; + + /// The version of the service to use. + public enum ServiceVersion + { + /// Service version "2024-07-01-preview". + V2024_07_01_Preview = 1, + } + + internal string Version { get; } + + /// Initializes new instance of AIConnectionsClientOptions. + public AIConnectionsClientOptions(ServiceVersion version = LatestVersion) + { + Version = version switch + { + ServiceVersion.V2024_07_01_Preview => "2024-07-01-preview", + _ => throw new NotSupportedException() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.Serialization.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.Serialization.cs index c64772bece56..ff23245a892f 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.Serialization.cs @@ -7,7 +7,7 @@ using System; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { internal static partial class AuthenticationTypeExtensions { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.cs b/sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.cs similarity index 95% rename from sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.cs index 70ef54413110..e538e6ba3725 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AuthenticationType.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/AuthenticationType.cs @@ -5,7 +5,7 @@ #nullable disable -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Authentication type used by Azure AI service to connect to another service. public enum AuthenticationType diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.Serialization.cs new file mode 100644 index 000000000000..dbed09712997 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.AI.Connections +{ + internal static partial class ConnectionTypeExtensions + { + public static string ToSerialString(this ConnectionType value) => value switch + { + ConnectionType.AzureOpenAI => "AzureOpenAI", + ConnectionType.Serverless => "Serverless", + ConnectionType.AzureBlobStorage => "AzureBlob", + ConnectionType.AzureAIServices => "AIServices", + ConnectionType.AzureAISearch => "CognitiveSearch", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectionType value.") + }; + + public static ConnectionType ToConnectionType(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureOpenAI")) return ConnectionType.AzureOpenAI; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Serverless")) return ConnectionType.Serverless; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AzureBlob")) return ConnectionType.AzureBlobStorage; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "AIServices")) return ConnectionType.AzureAIServices; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "CognitiveSearch")) return ConnectionType.AzureAISearch; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectionType value."); + } + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.cs b/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.cs new file mode 100644 index 000000000000..9b964fa77f18 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/ConnectionType.cs @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.AI.Connections +{ + /// The Type (or category) of the connection. + public enum ConnectionType + { + /// Azure OpenAI Service. + AzureOpenAI, + /// Serverless API Service. + Serverless, + /// Azure Blob Storage. + AzureBlobStorage, + /// Azure AI Services. + AzureAIServices, + /// Azure AI Search. + AzureAISearch + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.Serialization.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.Serialization.cs index 4be6577c2b04..af4c21d585a5 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.Serialization.cs @@ -11,9 +11,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class CredentialsApiKeyAuth : IUtf8JsonSerializable, IJsonModel + internal partial class CredentialsApiKeyAuth : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.cs index 97faa0c97097..1c92a2fc426f 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsApiKeyAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsApiKeyAuth.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// The credentials needed for API key authentication. - public partial class CredentialsApiKeyAuth + internal partial class CredentialsApiKeyAuth { /// /// Keeps track of any properties unknown to the library. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.Serialization.cs index 785bb62e41bb..d72935722d88 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { internal partial class CredentialsSASAuth : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.cs index 5bf56c6a308c..8e43fc060f0d 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CredentialsSASAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/CredentialsSASAuth.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// The credentials needed for Shared Access Signatures (SAS) authentication. internal partial class CredentialsSASAuth diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.Serialization.cs similarity index 65% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.Serialization.cs index 0b803a55213b..b63dbc87776b 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class ConnectionResponse : IUtf8JsonSerializable, IJsonModel + internal partial class GetConnectionResponse : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWrit /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionResponse)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(GetConnectionResponse)} does not support writing '{format}' format."); } writer.WritePropertyName("id"u8); @@ -57,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ConnectionResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + GetConnectionResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionResponse)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(GetConnectionResponse)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeConnectionResponse(document.RootElement, options); + return DeserializeGetConnectionResponse(document.RootElement, options); } - internal static ConnectionResponse DeserializeConnectionResponse(JsonElement element, ModelReaderWriterOptions options = null) + internal static GetConnectionResponse DeserializeGetConnectionResponse(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -79,7 +79,7 @@ internal static ConnectionResponse DeserializeConnectionResponse(JsonElement ele } string id = default; string name = default; - ConnectionProperties properties = default; + InternalConnectionProperties properties = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -96,7 +96,7 @@ internal static ConnectionResponse DeserializeConnectionResponse(JsonElement ele } if (property.NameEquals("properties"u8)) { - properties = ConnectionProperties.DeserializeConnectionProperties(property.Value, options); + properties = InternalConnectionProperties.DeserializeInternalConnectionProperties(property.Value, options); continue; } if (options.Format != "W") @@ -105,46 +105,46 @@ internal static ConnectionResponse DeserializeConnectionResponse(JsonElement ele } } serializedAdditionalRawData = rawDataDictionary; - return new ConnectionResponse(id, name, properties, serializedAdditionalRawData); + return new GetConnectionResponse(id, name, properties, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ConnectionResponse)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(GetConnectionResponse)} does not support writing '{options.Format}' format."); } } - ConnectionResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + GetConnectionResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeConnectionResponse(document.RootElement, options); + return DeserializeGetConnectionResponse(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ConnectionResponse)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(GetConnectionResponse)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static ConnectionResponse FromResponse(Response response) + internal static GetConnectionResponse FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeConnectionResponse(document.RootElement); + return DeserializeGetConnectionResponse(document.RootElement); } /// Convert into a . diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.cs similarity index 57% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.cs index 0197ccf697dc..44b2fb3f8d5d 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionResponse.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionResponse.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Response from the listSecrets operation. - public partial class ConnectionResponse + internal partial class GetConnectionResponse { /// /// Keeps track of any properties unknown to the library. @@ -45,16 +45,16 @@ public partial class ConnectionResponse /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// A unique identifier for the connection. /// The name of the resource. /// /// The properties of the resource - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . /// /// , or is null. - internal ConnectionResponse(string id, string name, ConnectionProperties properties) + internal GetConnectionResponse(string id, string name, InternalConnectionProperties properties) { Argument.AssertNotNull(id, nameof(id)); Argument.AssertNotNull(name, nameof(name)); @@ -65,16 +65,16 @@ internal ConnectionResponse(string id, string name, ConnectionProperties propert Properties = properties; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// A unique identifier for the connection. /// The name of the resource. /// /// The properties of the resource - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . /// /// Keeps track of any properties unknown to the library. - internal ConnectionResponse(string id, string name, ConnectionProperties properties, IDictionary serializedAdditionalRawData) + internal GetConnectionResponse(string id, string name, InternalConnectionProperties properties, IDictionary serializedAdditionalRawData) { Id = id; Name = name; @@ -82,8 +82,8 @@ internal ConnectionResponse(string id, string name, ConnectionProperties propert _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal ConnectionResponse() + /// Initializes a new instance of for deserialization. + internal GetConnectionResponse() { } @@ -93,9 +93,9 @@ internal ConnectionResponse() public string Name { get; } /// /// The properties of the resource - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . /// - public ConnectionProperties Properties { get; } + public InternalConnectionProperties Properties { get; } } } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs index 5b7ae79b07e0..299197cb8dd0 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { internal partial class GetConnectionWithSecretsRequest : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.cs index 24c528083985..6e81a3568864 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetConnectionWithSecretsRequest.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetConnectionWithSecretsRequest.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// The GetConnectionWithSecretsRequest. internal partial class GetConnectionWithSecretsRequest diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.Serialization.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.Serialization.cs index 475bf9c4e306..393deedb4530 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.Serialization.cs @@ -11,9 +11,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class GetWorkspaceResponse : IUtf8JsonSerializable, IJsonModel + internal partial class GetWorkspaceResponse : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.cs b/sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.cs index 856f903c20c9..542f30700165 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetWorkspaceResponse.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/GetWorkspaceResponse.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Response from the Workspace - Get operation. - public partial class GetWorkspaceResponse + internal partial class GetWorkspaceResponse { /// /// Keeps track of any properties unknown to the library. diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Argument.cs b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Argument.cs new file mode 100644 index 000000000000..1c64a4250887 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Argument.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.AI.Connections +{ + internal static class Argument + { + public static void AssertNotNull(T value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNull(T? value, string name) + where T : struct + { + if (!value.HasValue) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNullOrEmpty(IEnumerable value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value is ICollection collectionOfT && collectionOfT.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + if (value is ICollection collection && collection.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + using IEnumerator e = value.GetEnumerator(); + if (!e.MoveNext()) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + } + + public static void AssertNotNullOrEmpty(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value.Length == 0) + { + throw new ArgumentException("Value cannot be an empty string.", name); + } + } + + public static void AssertNotNullOrWhiteSpace(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); + } + } + + public static void AssertNotDefault(ref T value, string name) + where T : struct, IEquatable + { + if (value.Equals(default)) + { + throw new ArgumentException("Value cannot be empty.", name); + } + } + + public static void AssertInRange(T value, T minimum, T maximum, string name) + where T : notnull, IComparable + { + if (minimum.CompareTo(value) > 0) + { + throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); + } + if (maximum.CompareTo(value) < 0) + { + throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); + } + } + + public static void AssertEnumDefined(Type enumType, object value, string name) + { + if (!Enum.IsDefined(enumType, value)) + { + throw new ArgumentException($"Value not defined for {enumType.FullName}.", name); + } + } + + public static T CheckNotNull(T value, string name) + where T : class + { + AssertNotNull(value, name); + return value; + } + + public static string CheckNotNullOrEmpty(string value, string name) + { + AssertNotNullOrEmpty(value, name); + return value; + } + + public static void AssertNull(T value, string name, string message = null) + { + if (value != null) + { + throw new ArgumentException(message ?? "Value must be null.", name); + } + } + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/ModelSerializationExtensions.cs new file mode 100644 index 000000000000..2d96d6a8a2d8 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/ModelSerializationExtensions.cs @@ -0,0 +1,398 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Text.Json; +using System.Xml; +using Azure.Core; + +namespace Azure.AI.Connections +{ + internal static class ModelSerializationExtensions + { + internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); + + public static object GetObject(this JsonElement element) + { + switch (element.ValueKind) + { + case JsonValueKind.String: + return element.GetString(); + case JsonValueKind.Number: + if (element.TryGetInt32(out int intValue)) + { + return intValue; + } + if (element.TryGetInt64(out long longValue)) + { + return longValue; + } + return element.GetDouble(); + case JsonValueKind.True: + return true; + case JsonValueKind.False: + return false; + case JsonValueKind.Undefined: + case JsonValueKind.Null: + return null; + case JsonValueKind.Object: + var dictionary = new Dictionary(); + foreach (var jsonProperty in element.EnumerateObject()) + { + dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); + } + return dictionary; + case JsonValueKind.Array: + var list = new List(); + foreach (var item in element.EnumerateArray()) + { + list.Add(item.GetObject()); + } + return list.ToArray(); + default: + throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); + } + } + + public static byte[] GetBytesFromBase64(this JsonElement element, string format) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + + return format switch + { + "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), + "D" => element.GetBytesFromBase64(), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + } + + public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch + { + "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), + _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) + }; + + public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); + + public static char GetChar(this JsonElement element) + { + if (element.ValueKind == JsonValueKind.String) + { + var text = element.GetString(); + if (text == null || text.Length != 1) + { + throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); + } + return text[0]; + } + else + { + throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); + } + } + + [Conditional("DEBUG")] + public static void ThrowNonNullablePropertyIsNull(this JsonProperty property) + { + throw new JsonException($"A property '{property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + } + + public static string GetRequiredString(this JsonElement element) + { + var value = element.GetString(); + if (value == null) + { + throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); + } + return value; + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, char value) + { + writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); + } + + public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) + { + if (value == null) + { + writer.WriteNullValue(); + return; + } + switch (format) + { + case "U": + writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); + break; + case "D": + writer.WriteBase64StringValue(value); + break; + default: + throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); + } + } + + public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + if (format != "U") + { + throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); + } + writer.WriteNumberValue(value.ToUnixTimeSeconds()); + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) + { + switch (value) + { + case null: + writer.WriteNullValue(); + break; + case IJsonModel jsonModel: + jsonModel.Write(writer, options ?? WireOptions); + break; + case IUtf8JsonSerializable serializable: + serializable.Write(writer); + break; + case byte[] bytes: + writer.WriteBase64StringValue(bytes); + break; + case BinaryData bytes0: + writer.WriteBase64StringValue(bytes0); + break; + case JsonElement json: + json.WriteTo(writer); + break; + case int i: + writer.WriteNumberValue(i); + break; + case decimal d: + writer.WriteNumberValue(d); + break; + case double d0: + if (double.IsNaN(d0)) + { + writer.WriteStringValue("NaN"); + } + else + { + writer.WriteNumberValue(d0); + } + break; + case float f: + writer.WriteNumberValue(f); + break; + case long l: + writer.WriteNumberValue(l); + break; + case string s: + writer.WriteStringValue(s); + break; + case bool b: + writer.WriteBooleanValue(b); + break; + case Guid g: + writer.WriteStringValue(g); + break; + case DateTimeOffset dateTimeOffset: + writer.WriteStringValue(dateTimeOffset, "O"); + break; + case DateTime dateTime: + writer.WriteStringValue(dateTime, "O"); + break; + case IEnumerable> enumerable: + writer.WriteStartObject(); + foreach (var pair in enumerable) + { + writer.WritePropertyName(pair.Key); + writer.WriteObjectValue(pair.Value, options); + } + writer.WriteEndObject(); + break; + case IEnumerable objectEnumerable: + writer.WriteStartArray(); + foreach (var item in objectEnumerable) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + break; + case TimeSpan timeSpan: + writer.WriteStringValue(timeSpan, "P"); + break; + default: + throw new NotSupportedException($"Not supported type {value.GetType()}"); + } + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) + { + writer.WriteObjectValue(value, options); + } + + internal static class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Azure SDK requires it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked(value.Length + 2) / 3; + int size = checked(numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ConvertToString(object value, string format = null) => value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when format != null => ToString(b0, format), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when format != null => ToString(dateTime, format), + TimeSpan timeSpan when format != null => ToString(timeSpan, format), + TimeSpan timeSpan0 => XmlConvert.ToString(timeSpan0), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Utf8JsonRequestContent.cs b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Utf8JsonRequestContent.cs new file mode 100644 index 000000000000..76bbd661e00b --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Generated/Internal/Utf8JsonRequestContent.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.IO; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.AI.Connections +{ + internal class Utf8JsonRequestContent : RequestContent + { + private readonly MemoryStream _stream; + private readonly RequestContent _content; + + public Utf8JsonRequestContent() + { + _stream = new MemoryStream(); + _content = Create(_stream); + JsonWriter = new Utf8JsonWriter(_stream); + } + + public Utf8JsonWriter JsonWriter { get; } + + public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) + { + await JsonWriter.FlushAsync().ConfigureAwait(false); + await _content.WriteToAsync(stream, cancellationToken).ConfigureAwait(false); + } + + public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) + { + JsonWriter.Flush(); + _content.WriteTo(stream, cancellationToken); + } + + public override bool TryComputeLength(out long length) + { + length = JsonWriter.BytesCommitted + JsonWriter.BytesPending; + return true; + } + + public override void Dispose() + { + JsonWriter.Dispose(); + _content.Dispose(); + _stream.Dispose(); + } + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.Serialization.cs similarity index 64% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.Serialization.cs index 23ccdd4fff96..ffeb794e6fe7 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.Serialization.cs @@ -10,14 +10,14 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { [PersistableModelProxy(typeof(UnknownInternalConnectionProperties))] - public partial class ConnectionProperties : IUtf8JsonSerializable, IJsonModel + internal partial class InternalConnectionProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support writing '{format}' format."); } writer.WritePropertyName("authType"u8); @@ -57,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + InternalConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeConnectionProperties(document.RootElement, options); + return DeserializeInternalConnectionProperties(document.RootElement, options); } - internal static ConnectionProperties DeserializeConnectionProperties(JsonElement element, ModelReaderWriterOptions options = null) + internal static InternalConnectionProperties DeserializeInternalConnectionProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -82,7 +82,7 @@ internal static ConnectionProperties DeserializeConnectionProperties(JsonElement switch (discriminator.GetString()) { case "AAD": return InternalConnectionPropertiesAADAuth.DeserializeInternalConnectionPropertiesAADAuth(element, options); - case "ApiKey": return ConnectionPropertiesApiKeyAuth.DeserializeConnectionPropertiesApiKeyAuth(element, options); + case "ApiKey": return InternalConnectionPropertiesApiKeyAuth.DeserializeInternalConnectionPropertiesApiKeyAuth(element, options); case "None": return InternalConnectionPropertiesNoAuth.DeserializeInternalConnectionPropertiesNoAuth(element, options); case "SAS": return InternalConnectionPropertiesSASAuth.DeserializeInternalConnectionPropertiesSASAuth(element, options); } @@ -90,43 +90,43 @@ internal static ConnectionProperties DeserializeConnectionProperties(JsonElement return UnknownInternalConnectionProperties.DeserializeUnknownInternalConnectionProperties(element, options); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support writing '{options.Format}' format."); } } - ConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + InternalConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeConnectionProperties(document.RootElement, options); + return DeserializeInternalConnectionProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static ConnectionProperties FromResponse(Response response) + internal static InternalConnectionProperties FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeConnectionProperties(document.RootElement); + return DeserializeInternalConnectionProperties(document.RootElement); } /// Convert into a . diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.cs similarity index 67% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.cs index b3abf7895c7f..d305e0d1722d 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionProperties.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionProperties.cs @@ -8,14 +8,14 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// /// Connection properties - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , and . /// - public abstract partial class ConnectionProperties + internal abstract partial class InternalConnectionProperties { /// /// Keeps track of any properties unknown to the library. @@ -49,11 +49,11 @@ public abstract partial class ConnectionProperties /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// Category of the connection. /// The connection URL to be used for this service. /// is null. - protected ConnectionProperties(ConnectionType category, string target) + protected InternalConnectionProperties(ConnectionType category, string target) { Argument.AssertNotNull(target, nameof(target)); @@ -61,12 +61,12 @@ protected ConnectionProperties(ConnectionType category, string target) Target = target; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Authentication type of the connection target. /// Category of the connection. /// The connection URL to be used for this service. /// Keeps track of any properties unknown to the library. - internal ConnectionProperties(AuthenticationType authType, ConnectionType category, string target, IDictionary serializedAdditionalRawData) + internal InternalConnectionProperties(AuthenticationType authType, ConnectionType category, string target, IDictionary serializedAdditionalRawData) { AuthType = authType; Category = category; @@ -74,10 +74,13 @@ internal ConnectionProperties(AuthenticationType authType, ConnectionType catego _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal ConnectionProperties() + /// Initializes a new instance of for deserialization. + internal InternalConnectionProperties() { } + + /// Authentication type of the connection target. + internal AuthenticationType AuthType { get; set; } /// Category of the connection. public ConnectionType Category { get; } /// The connection URL to be used for this service. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs index 37945aadf3dc..e0ddd58cb92b 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { internal partial class InternalConnectionPropertiesAADAuth : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.cs index 8e5ae6c65b87..c1cd202b6b07 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesAADAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesAADAuth.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Connection properties for connections with AAD authentication (aka `Entra ID passthrough`). - internal partial class InternalConnectionPropertiesAADAuth : ConnectionProperties + internal partial class InternalConnectionPropertiesAADAuth : InternalConnectionProperties { /// Initializes a new instance of . /// Category of the connection. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.Serialization.cs similarity index 62% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.Serialization.cs index 505814971c43..3768393ad876 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class ConnectionPropertiesApiKeyAuth : IUtf8JsonSerializable, IJsonModel + internal partial class InternalConnectionPropertiesApiKeyAuth : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mod /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionPropertiesApiKeyAuth)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionPropertiesApiKeyAuth)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -39,19 +39,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteObjectValue(Credentials, options); } - ConnectionPropertiesApiKeyAuth IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + InternalConnectionPropertiesApiKeyAuth IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionPropertiesApiKeyAuth)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionPropertiesApiKeyAuth)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeConnectionPropertiesApiKeyAuth(document.RootElement, options); + return DeserializeInternalConnectionPropertiesApiKeyAuth(document.RootElement, options); } - internal static ConnectionPropertiesApiKeyAuth DeserializeConnectionPropertiesApiKeyAuth(JsonElement element, ModelReaderWriterOptions options = null) + internal static InternalConnectionPropertiesApiKeyAuth DeserializeInternalConnectionPropertiesApiKeyAuth(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -93,46 +93,46 @@ internal static ConnectionPropertiesApiKeyAuth DeserializeConnectionPropertiesAp } } serializedAdditionalRawData = rawDataDictionary; - return new ConnectionPropertiesApiKeyAuth(authType, category, target, serializedAdditionalRawData, credentials); + return new InternalConnectionPropertiesApiKeyAuth(authType, category, target, serializedAdditionalRawData, credentials); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ConnectionPropertiesApiKeyAuth)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionPropertiesApiKeyAuth)} does not support writing '{options.Format}' format."); } } - ConnectionPropertiesApiKeyAuth IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + InternalConnectionPropertiesApiKeyAuth IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeConnectionPropertiesApiKeyAuth(document.RootElement, options); + return DeserializeInternalConnectionPropertiesApiKeyAuth(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ConnectionPropertiesApiKeyAuth)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionPropertiesApiKeyAuth)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new ConnectionPropertiesApiKeyAuth FromResponse(Response response) + internal static new InternalConnectionPropertiesApiKeyAuth FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content); - return DeserializeConnectionPropertiesApiKeyAuth(document.RootElement); + return DeserializeInternalConnectionPropertiesApiKeyAuth(document.RootElement); } /// Convert into a . diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.cs similarity index 62% rename from sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.cs index 744b4576f2e1..c9834eb7d76f 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionPropertiesApiKeyAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesApiKeyAuth.cs @@ -8,17 +8,17 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Connection properties for connections with API key authentication. - public partial class ConnectionPropertiesApiKeyAuth : ConnectionProperties + internal partial class InternalConnectionPropertiesApiKeyAuth : InternalConnectionProperties { - /// Initializes a new instance of . + /// Initializes a new instance of . /// Category of the connection. /// The connection URL to be used for this service. /// Credentials will only be present for authType=ApiKey. /// or is null. - internal ConnectionPropertiesApiKeyAuth(ConnectionType category, string target, CredentialsApiKeyAuth credentials) : base(category, target) + internal InternalConnectionPropertiesApiKeyAuth(ConnectionType category, string target, CredentialsApiKeyAuth credentials) : base(category, target) { Argument.AssertNotNull(target, nameof(target)); Argument.AssertNotNull(credentials, nameof(credentials)); @@ -27,19 +27,19 @@ internal ConnectionPropertiesApiKeyAuth(ConnectionType category, string target, Credentials = credentials; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// Authentication type of the connection target. /// Category of the connection. /// The connection URL to be used for this service. /// Keeps track of any properties unknown to the library. /// Credentials will only be present for authType=ApiKey. - internal ConnectionPropertiesApiKeyAuth(AuthenticationType authType, ConnectionType category, string target, IDictionary serializedAdditionalRawData, CredentialsApiKeyAuth credentials) : base(authType, category, target, serializedAdditionalRawData) + internal InternalConnectionPropertiesApiKeyAuth(AuthenticationType authType, ConnectionType category, string target, IDictionary serializedAdditionalRawData, CredentialsApiKeyAuth credentials) : base(authType, category, target, serializedAdditionalRawData) { Credentials = credentials; } - /// Initializes a new instance of for deserialization. - internal ConnectionPropertiesApiKeyAuth() + /// Initializes a new instance of for deserialization. + internal InternalConnectionPropertiesApiKeyAuth() { } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs index 8eedad6d6280..a6a3b41ffbc9 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.Serialization.cs @@ -11,9 +11,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class InternalConnectionPropertiesNoAuth : IUtf8JsonSerializable, IJsonModel + internal partial class InternalConnectionPropertiesNoAuth : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.cs similarity index 93% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.cs index 75ba735d790d..f531b1ad6ef9 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesNoAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesNoAuth.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Connection properties for connections with no authentication. - public partial class InternalConnectionPropertiesNoAuth : ConnectionProperties + internal partial class InternalConnectionPropertiesNoAuth : InternalConnectionProperties { /// Initializes a new instance of . /// Category of the connection. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs index 68e3e717f99e..e7d35ac8864b 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { internal partial class InternalConnectionPropertiesSASAuth : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.cs b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.cs index cf7a52fbbe22..3399e06bc6fa 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InternalConnectionPropertiesSASAuth.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/InternalConnectionPropertiesSASAuth.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Connection properties for connections with SAS authentication. - internal partial class InternalConnectionPropertiesSASAuth : ConnectionProperties + internal partial class InternalConnectionPropertiesSASAuth : InternalConnectionProperties { /// Initializes a new instance of . /// Category of the connection. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.Serialization.cs similarity index 93% rename from sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.Serialization.cs index bafafaae4428..b05f2d0ee708 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.Serialization.cs @@ -11,9 +11,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class ListConnectionsResponse : IUtf8JsonSerializable, IJsonModel + internal partial class ListConnectionsResponse : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -78,17 +78,17 @@ internal static ListConnectionsResponse DeserializeListConnectionsResponse(JsonE { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ConnectionResponse.DeserializeConnectionResponse(item, options)); + array.Add(GetConnectionResponse.DeserializeGetConnectionResponse(item, options)); } value = array; continue; diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.cs b/sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.cs similarity index 87% rename from sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.cs index 7dd047b9eb69..fa1813dfb86c 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ListConnectionsResponse.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/ListConnectionsResponse.cs @@ -9,10 +9,10 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Response from the list operation. - public partial class ListConnectionsResponse + internal partial class ListConnectionsResponse { /// /// Keeps track of any properties unknown to the library. @@ -49,7 +49,7 @@ public partial class ListConnectionsResponse /// Initializes a new instance of . /// A list of connection list secrets. /// is null. - internal ListConnectionsResponse(IEnumerable value) + internal ListConnectionsResponse(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -59,7 +59,7 @@ internal ListConnectionsResponse(IEnumerable value) /// Initializes a new instance of . /// A list of connection list secrets. /// Keeps track of any properties unknown to the library. - internal ListConnectionsResponse(IReadOnlyList value, IDictionary serializedAdditionalRawData) + internal ListConnectionsResponse(IReadOnlyList value, IDictionary serializedAdditionalRawData) { Value = value; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -71,6 +71,6 @@ internal ListConnectionsResponse() } /// A list of connection list secrets. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.Serialization.cs similarity index 68% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.Serialization.cs index 3c8dc0d67ce0..8692b2a93fdd 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - internal partial class UnknownInternalConnectionProperties : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownInternalConnectionProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,25 +28,25 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - ConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + InternalConnectionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeConnectionProperties(document.RootElement, options); + return DeserializeInternalConnectionProperties(document.RootElement, options); } internal static UnknownInternalConnectionProperties DeserializeUnknownInternalConnectionProperties(JsonElement element, ModelReaderWriterOptions options = null) @@ -88,36 +88,36 @@ internal static UnknownInternalConnectionProperties DeserializeUnknownInternalCo return new UnknownInternalConnectionProperties(authType, category, target, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support writing '{options.Format}' format."); } } - ConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + InternalConnectionProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeConnectionProperties(document.RootElement, options); + return DeserializeInternalConnectionProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ConnectionProperties)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(InternalConnectionProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. @@ -131,7 +131,7 @@ ConnectionProperties IPersistableModel.Create(BinaryData d internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.cs b/sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.cs similarity index 95% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.cs index a17524ba6e77..c57ff58fb5b3 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInternalConnectionProperties.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/UnknownInternalConnectionProperties.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// Unknown version of InternalConnectionProperties. - internal partial class UnknownInternalConnectionProperties : ConnectionProperties + internal partial class UnknownInternalConnectionProperties : InternalConnectionProperties { /// Initializes a new instance of . /// Authentication type of the connection target. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.Serialization.cs b/sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.Serialization.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.Serialization.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.Serialization.cs index 809ddccb700c..3a224695054e 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.Serialization.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.Serialization.cs @@ -11,9 +11,9 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { - public partial class WorkspaceProperties : IUtf8JsonSerializable, IJsonModel + internal partial class WorkspaceProperties : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.cs b/sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.cs rename to sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.cs index b7f2db20ac2e..8df9b7f2111c 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/WorkspaceProperties.cs +++ b/sdk/ai/Azure.AI.Connections/src/Generated/WorkspaceProperties.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Connections { /// workspace properties. - public partial class WorkspaceProperties + internal partial class WorkspaceProperties { /// /// Keeps track of any properties unknown to the library. diff --git a/sdk/ai/Azure.AI.Connections/src/Properties/AssemblyInfo.cs b/sdk/ai/Azure.AI.Connections/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..0532865f4018 --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/src/Properties/AssemblyInfo.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Azure.AI.Connections.Tests, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] + +// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. +// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers +// for the list of possible values. +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")] diff --git a/sdk/ai/Azure.AI.Connections/tests/Azure.AI.Connections.Tests.csproj b/sdk/ai/Azure.AI.Connections/tests/Azure.AI.Connections.Tests.csproj new file mode 100644 index 000000000000..cc0ffb981d3d --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/tests/Azure.AI.Connections.Tests.csproj @@ -0,0 +1,20 @@ + + + $(RequiredTargetFrameworks) + + $(NoWarn);CS1591 + + + + + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Connections/tsp-location.yaml b/sdk/ai/Azure.AI.Connections/tsp-location.yaml new file mode 100644 index 000000000000..813d815220fc --- /dev/null +++ b/sdk/ai/Azure.AI.Connections/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/ai/Azure.AI.Connections +commit: 985d9a014e6eb451627aa82ae3071aaa5f8d6c93 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/ai/Azure.AI.Evaluations/Azure.AI.Evaluations.sln b/sdk/ai/Azure.AI.Evaluations/Azure.AI.Evaluations.sln new file mode 100644 index 000000000000..4897b29ddcbf --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/Azure.AI.Evaluations.sln @@ -0,0 +1,56 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Evaluations", "src\Azure.AI.Evaluations.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Evaluations.Tests", "tests\Azure.AI.Evaluations.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/ai/Azure.AI.Evaluations/CHANGELOG.md b/sdk/ai/Azure.AI.Evaluations/CHANGELOG.md new file mode 100644 index 000000000000..8b33f0fedccc --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Evaluations/Directory.Build.props b/sdk/ai/Azure.AI.Evaluations/Directory.Build.props new file mode 100644 index 000000000000..63bd836ad44b --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/ai/Azure.AI.Evaluations/README.md b/sdk/ai/Azure.AI.Evaluations/README.md new file mode 100644 index 000000000000..cf98e4b1d7b9 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/README.md @@ -0,0 +1,107 @@ +# Azure.AI.Evaluations client library for .NET + +Azure.AI.Evaluations is a managed service that helps developers get secret simply and securely. + +Use the client library for to: + +* [Get secret](https://docs.microsoft.com/azure) + +[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples] + + [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Evaluations/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure) + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository. + +Install the client library for .NET with [NuGet](https://www.nuget.org/ ): + +```dotnetcli +dotnet add package Azure.AI.Evaluations --prerelease +``` + +### Prerequisites + +Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +### Service API versions + +The client library targets the latest service API version by default. A client instance accepts an optional service API version parameter from its options to specify which API version service to communicate. + +#### Select a service API version + +You have the flexibility to explicitly select a supported service API version when instantiating a client by configuring its associated options. This ensures that the client can communicate with services using the specified API version. + +For example, + +```C# Snippet:CreateClientForSpecificApiVersion +Uri endpoint = new Uri(""); +DefaultAzureCredential credential = new DefaultAzureCredential(); +ClientOptions options = new ClientOptions(ClientOptions.ServiceVersion.) +var client = new Client(endpoint, credential, options); +``` + +When selecting an API version, it's important to verify that there are no breaking changes compared to the latest API version. If there are significant differences, API calls may fail due to incompatibility. + +Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of: + +### Thread safety + +We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. + +### Additional concepts + +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | +[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) + + +## Examples + +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Evaluations/samples). + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net/sdk/ai/Azure.AI.Evaluations/README.png) \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Evaluations/src/Azure.AI.Evaluations.csproj b/sdk/ai/Azure.AI.Evaluations/src/Azure.AI.Evaluations.csproj new file mode 100644 index 000000000000..8eccf59fa5fb --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Azure.AI.Evaluations.csproj @@ -0,0 +1,19 @@ + + + This is the Azure.AI.Evaluations client library for developing .NET applications with rich experience. + Azure SDK Code Generation Azure.AI.Evaluations for Azure Data Plane + 1.0.0-beta.1 + Azure.AI.Evaluations + $(RequiredTargetFrameworks) + true + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClient.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClient.cs similarity index 60% rename from sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClient.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClient.cs index 267dd3c78398..264e2ed705d4 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClient.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClient.cs @@ -9,11 +9,11 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { // Data plane generated client. - /// The AIProject service client. - public partial class AIProjectClient + /// The AIEvaluations service client. + public partial class AIEvaluationsClient { private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; private readonly TokenCredential _tokenCredential; @@ -29,12 +29,12 @@ public partial class AIProjectClient /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of AIProjectClient for mocking. - protected AIProjectClient() + /// Initializes a new instance of AIEvaluationsClient for mocking. + protected AIEvaluationsClient() { } - /// Initializes a new instance of AIProjectClient. + /// Initializes a new instance of AIEvaluationsClient. /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. /// The Azure subscription ID. /// The name of the Azure Resource Group. @@ -42,11 +42,11 @@ protected AIProjectClient() /// A credential used to authenticate to an Azure Service. /// , , , or is null. /// , or is an empty string, and was expected to be non-empty. - public AIProjectClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential) : this(endpoint, subscriptionId, resourceGroupName, projectName, credential, new AIProjectClientOptions()) + public AIEvaluationsClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential) : this(endpoint, subscriptionId, resourceGroupName, projectName, credential, new AIEvaluationsClientOptions()) { } - /// Initializes a new instance of AIProjectClient. + /// Initializes a new instance of AIEvaluationsClient. /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. /// The Azure subscription ID. /// The name of the Azure Resource Group. @@ -55,14 +55,14 @@ protected AIProjectClient() /// The options for configuring the client. /// , , , or is null. /// , or is an empty string, and was expected to be non-empty. - public AIProjectClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential, AIProjectClientOptions options) + public AIEvaluationsClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential, AIEvaluationsClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); Argument.AssertNotNull(credential, nameof(credential)); - options ??= new AIProjectClientOptions(); + options ??= new AIEvaluationsClientOptions(); ClientDiagnostics = new ClientDiagnostics(options, true); _tokenCredential = credential; @@ -73,44 +73,14 @@ public AIProjectClient(Uri endpoint, string subscriptionId, string resourceGroup _projectName = projectName; } - /// Initializes a new instance of AgentsClient. + /// Initializes a new instance of Evaluations. /// The API version to use for this operation. /// is null. - public virtual AgentsClient GetAgentsClient(string apiVersion = "2024-07-01-preview") + public virtual Evaluations GetEvaluationsClient(string apiVersion = "2024-07-01-preview") { Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - return new AgentsClient(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, _subscriptionId, _resourceGroupName, _projectName, apiVersion); - } - - /// Initializes a new instance of ConnectionsClient. - /// The API version to use for this operation. - /// is null. - public virtual ConnectionsClient GetConnectionsClient(string apiVersion = "2024-07-01-preview") - { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - - return new ConnectionsClient(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, _subscriptionId, _resourceGroupName, _projectName, apiVersion); - } - - /// Initializes a new instance of TelemetryClient. - /// The API version to use for this operation. - /// is null. - public virtual TelemetryClient GetTelemetryClient(string apiVersion = "2024-07-01-preview") - { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - - return new TelemetryClient(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, _subscriptionId, _resourceGroupName, _projectName, apiVersion); - } - - /// Initializes a new instance of EvaluationsClient. - /// The API version to use for this operation. - /// is null. - public virtual EvaluationsClient GetEvaluationsClient(string apiVersion = "2024-07-01-preview") - { - Argument.AssertNotNull(apiVersion, nameof(apiVersion)); - - return new EvaluationsClient(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, _subscriptionId, _resourceGroupName, _projectName, apiVersion); + return new Evaluations(ClientDiagnostics, _pipeline, _tokenCredential, _endpoint, _subscriptionId, _resourceGroupName, _projectName, apiVersion); } } } diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientBuilderExtensions.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientBuilderExtensions.cs new file mode 100644 index 000000000000..f6162dfaa2fd --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientBuilderExtensions.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.AI.Evaluations; +using Azure.Core.Extensions; + +namespace Microsoft.Extensions.Azure +{ + /// Extension methods to add to client builder. + public static partial class AIEvaluationsClientBuilderExtensions + { + /// Registers a instance. + /// The builder to register with. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + public static IAzureClientBuilder AddAIEvaluationsClient(this TBuilder builder, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) + where TBuilder : IAzureClientFactoryBuilderWithCredential + { + return builder.RegisterClientFactory((options, cred) => new AIEvaluationsClient(endpoint, subscriptionId, resourceGroupName, projectName, cred, options)); + } + + /// Registers a instance. + /// The builder to register with. + /// The configuration values. + public static IAzureClientBuilder AddAIEvaluationsClient(this TBuilder builder, TConfiguration configuration) + where TBuilder : IAzureClientFactoryBuilderWithConfiguration + { + return builder.RegisterClientFactory(configuration); + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientOptions.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientOptions.cs new file mode 100644 index 000000000000..6d683e16bde0 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsClientOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.AI.Evaluations +{ + /// Client options for AIEvaluationsClient. + public partial class AIEvaluationsClientOptions : ClientOptions + { + private const ServiceVersion LatestVersion = ServiceVersion.V2024_07_01_Preview; + + /// The version of the service to use. + public enum ServiceVersion + { + /// Service version "2024-07-01-preview". + V2024_07_01_Preview = 1, + } + + internal string Version { get; } + + /// Initializes new instance of AIEvaluationsClientOptions. + public AIEvaluationsClientOptions(ServiceVersion version = LatestVersion) + { + Version = version switch + { + ServiceVersion.V2024_07_01_Preview => "2024-07-01-preview", + _ => throw new NotSupportedException() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsModelFactory.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsModelFactory.cs new file mode 100644 index 000000000000..ee4db80b17da --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/AIEvaluationsModelFactory.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Evaluations +{ + /// Model factory for models. + public static partial class AIEvaluationsModelFactory + { + /// Initializes a new instance of . + /// Identifier of the evaluation. + /// + /// Data for evaluation. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique. + /// Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. + /// Metadata containing createdBy and modifiedBy information. + /// Status of the evaluation. It is set by service and is read-only. + /// Evaluation's tags. Unlike properties, tags are fully mutable. + /// Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. + /// Evaluators to be used for the evaluation. + /// A new instance for mocking. + public static Evaluation Evaluation(string id = null, InputData data = null, string displayName = null, string description = null, SystemData systemData = null, string status = null, IDictionary tags = null, IDictionary properties = null, IDictionary evaluators = null) + { + tags ??= new Dictionary(); + properties ??= new Dictionary(); + evaluators ??= new Dictionary(); + + return new Evaluation( + id, + data, + displayName, + description, + systemData, + status, + tags, + properties, + evaluators, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The timestamp the resource was created at. + /// The identity that created the resource. + /// The identity type that created the resource. + /// The timestamp of resource last modification (UTC). + /// A new instance for mocking. + public static SystemData SystemData(DateTimeOffset? createdAt = null, string createdBy = null, string createdByType = null, DateTimeOffset? lastModifiedAt = null) + { + return new SystemData(createdAt, createdBy, createdByType, lastModifiedAt, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Name of the schedule, which also serves as the unique identifier for the evaluation. + /// Data for evaluation. + /// Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. + /// Metadata containing createdBy and modifiedBy information. + /// Provisioning State of the evaluation. It is set by service and is read-only. + /// Evaluation's tags. Unlike properties, tags are fully mutable. + /// Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. + /// Enabled status of the evaluation. It is set by service and is read-only. + /// Evaluators to be used for the evaluation. + /// + /// Trigger for the evaluation. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// A new instance for mocking. + public static EvaluationSchedule EvaluationSchedule(string name = null, ApplicationInsightsConfiguration data = null, string description = null, SystemData systemData = null, string provisioningState = null, IDictionary tags = null, IDictionary properties = null, string isEnabled = null, IDictionary evaluators = null, Trigger trigger = null) + { + tags ??= new Dictionary(); + properties ??= new Dictionary(); + evaluators ??= new Dictionary(); + + return new EvaluationSchedule( + name, + data, + description, + systemData, + provisioningState, + tags, + properties, + isEnabled, + evaluators, + trigger, + serializedAdditionalRawData: null); + } + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.Serialization.cs index 29c711154545..51cd2a772389 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class ApplicationInsightsConfiguration : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.cs index 6658add0777d..7078146357c9 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ApplicationInsightsConfiguration.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/ApplicationInsightsConfiguration.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Data Source for Application Insights. public partial class ApplicationInsightsConfiguration : InputData diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.Serialization.cs index 7273861d1a3e..565f5eac9f67 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class CronTrigger : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.cs index f8e54d767f1e..c8b971828ddb 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/CronTrigger.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/CronTrigger.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Cron Trigger Definition. public partial class CronTrigger : Trigger diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Dataset.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/Dataset.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.Serialization.cs index c012a237d59b..61eb41f6edef 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Dataset.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class Dataset : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Dataset.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/Dataset.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.cs index e164284e2eee..43be250fb43a 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Dataset.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Dataset.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Dataset as source for evaluation. public partial class Dataset : InputData diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.Serialization.cs index c02fd6156664..20ea75cab296 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class Evaluation : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.cs index a5bb875ca420..c3dd2e731d9a 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Evaluation.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluation.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Evaluation Definition. public partial class Evaluation diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.Serialization.cs index e360c896eca0..c20a3c2255cd 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class EvaluationSchedule : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.cs similarity index 90% rename from sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.cs index ad1104435458..937bb87be167 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationSchedule.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluationSchedule.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Evaluation Schedule Definition. public partial class EvaluationSchedule @@ -50,7 +50,7 @@ public partial class EvaluationSchedule /// Evaluators to be used for the evaluation. /// /// Trigger for the evaluation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// , or is null. @@ -79,7 +79,7 @@ public EvaluationSchedule(ApplicationInsightsConfiguration data, IDictionary Evaluators to be used for the evaluation. /// /// Trigger for the evaluation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// /// Keeps track of any properties unknown to the library. @@ -123,7 +123,7 @@ internal EvaluationSchedule() public IDictionary Evaluators { get; } /// /// Trigger for the evaluation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// public Trigger Trigger { get; set; } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationsClient.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluations.cs similarity index 97% rename from sdk/ai/Azure.AI.Projects/src/Generated/EvaluationsClient.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluations.cs index 017c3b1d7274..31c5cf628d01 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluationsClient.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Evaluations.cs @@ -12,11 +12,11 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { // Data plane generated sub-client. /// The Evaluations sub-client. - public partial class EvaluationsClient + public partial class Evaluations { private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; private readonly TokenCredential _tokenCredential; @@ -33,12 +33,12 @@ public partial class EvaluationsClient /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of EvaluationsClient for mocking. - protected EvaluationsClient() + /// Initializes a new instance of Evaluations for mocking. + protected Evaluations() { } - /// Initializes a new instance of EvaluationsClient. + /// Initializes a new instance of Evaluations. /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The token credential to copy. @@ -47,7 +47,7 @@ protected EvaluationsClient() /// The name of the Azure Resource Group. /// The Azure AI Foundry project name. /// The API version to use for this operation. - internal EvaluationsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, string apiVersion) + internal Evaluations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, string apiVersion) { ClientDiagnostics = clientDiagnostics; _pipeline = pipeline; @@ -112,7 +112,7 @@ public virtual async Task GetEvaluationAsync(string id, RequestContext { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.GetEvaluation"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.GetEvaluation"); scope.Start(); try { @@ -151,7 +151,7 @@ public virtual Response GetEvaluation(string id, RequestContext context) { Argument.AssertNotNullOrEmpty(id, nameof(id)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.GetEvaluation"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.GetEvaluation"); scope.Start(); try { @@ -217,7 +217,7 @@ public virtual async Task CreateAsync(RequestContent content, RequestC { Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.Create"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.Create"); scope.Start(); try { @@ -255,7 +255,7 @@ public virtual Response Create(RequestContent content, RequestContext context = { Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.Create"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.Create"); scope.Start(); try { @@ -291,7 +291,7 @@ public virtual async Task UpdateAsync(string id, RequestContent conten Argument.AssertNotNullOrEmpty(id, nameof(id)); Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.Update"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.Update"); scope.Start(); try { @@ -327,7 +327,7 @@ public virtual Response Update(string id, RequestContent content, RequestContext Argument.AssertNotNullOrEmpty(id, nameof(id)); Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.Update"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.Update"); scope.Start(); try { @@ -394,7 +394,7 @@ public virtual async Task GetScheduleAsync(string name, RequestContext { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.GetSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.GetSchedule"); scope.Start(); try { @@ -433,7 +433,7 @@ public virtual Response GetSchedule(string name, RequestContext context) { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.GetSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.GetSchedule"); scope.Start(); try { @@ -508,7 +508,7 @@ public virtual async Task CreateOrReplaceScheduleAsync(string name, Re Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.CreateOrReplaceSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.CreateOrReplaceSchedule"); scope.Start(); try { @@ -549,7 +549,7 @@ public virtual Response CreateOrReplaceSchedule(string name, RequestContent cont Argument.AssertNotNullOrEmpty(name, nameof(name)); Argument.AssertNotNull(content, nameof(content)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.CreateOrReplaceSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.CreateOrReplaceSchedule"); scope.Start(); try { @@ -583,7 +583,7 @@ public virtual async Task DisableScheduleAsync(string name, RequestCon { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.DisableSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.DisableSchedule"); scope.Start(); try { @@ -617,7 +617,7 @@ public virtual Response DisableSchedule(string name, RequestContext context = nu { Argument.AssertNotNullOrEmpty(name, nameof(name)); - using var scope = ClientDiagnostics.CreateScope("EvaluationsClient.DisableSchedule"); + using var scope = ClientDiagnostics.CreateScope("Evaluations.DisableSchedule"); scope.Start(); try { @@ -641,7 +641,7 @@ public virtual AsyncPageable GetEvaluationsAsync(int? maxCount = nul RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEvaluationsRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEvaluationsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => Evaluation.DeserializeEvaluation(e), ClientDiagnostics, _pipeline, "EvaluationsClient.GetEvaluations", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => Evaluation.DeserializeEvaluation(e), ClientDiagnostics, _pipeline, "Evaluations.GetEvaluations", "value", "nextLink", maxpagesize, context); } /// Resource list operation template. @@ -654,7 +654,7 @@ public virtual Pageable GetEvaluations(int? maxCount = null, int? sk RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEvaluationsRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEvaluationsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Evaluation.DeserializeEvaluation(e), ClientDiagnostics, _pipeline, "EvaluationsClient.GetEvaluations", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => Evaluation.DeserializeEvaluation(e), ClientDiagnostics, _pipeline, "Evaluations.GetEvaluations", "value", "nextLink", maxpagesize, context); } /// @@ -682,7 +682,7 @@ public virtual AsyncPageable GetEvaluationsAsync(int? maxCount, int? { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEvaluationsRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEvaluationsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "EvaluationsClient.GetEvaluations", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Evaluations.GetEvaluations", "value", "nextLink", maxpagesize, context); } /// @@ -710,7 +710,7 @@ public virtual Pageable GetEvaluations(int? maxCount, int? skip, int { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetEvaluationsRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetEvaluationsNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "EvaluationsClient.GetEvaluations", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Evaluations.GetEvaluations", "value", "nextLink", maxpagesize, context); } /// Resource list operation template. @@ -723,7 +723,7 @@ public virtual AsyncPageable GetSchedulesAsync(int? maxCount RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSchedulesRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSchedulesNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => EvaluationSchedule.DeserializeEvaluationSchedule(e), ClientDiagnostics, _pipeline, "EvaluationsClient.GetSchedules", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => EvaluationSchedule.DeserializeEvaluationSchedule(e), ClientDiagnostics, _pipeline, "Evaluations.GetSchedules", "value", "nextLink", maxpagesize, context); } /// Resource list operation template. @@ -736,7 +736,7 @@ public virtual Pageable GetSchedules(int? maxCount = null, i RequestContext context = cancellationToken.CanBeCanceled ? new RequestContext { CancellationToken = cancellationToken } : null; HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSchedulesRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSchedulesNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => EvaluationSchedule.DeserializeEvaluationSchedule(e), ClientDiagnostics, _pipeline, "EvaluationsClient.GetSchedules", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => EvaluationSchedule.DeserializeEvaluationSchedule(e), ClientDiagnostics, _pipeline, "Evaluations.GetSchedules", "value", "nextLink", maxpagesize, context); } /// @@ -764,7 +764,7 @@ public virtual AsyncPageable GetSchedulesAsync(int? maxCount, int? s { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSchedulesRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSchedulesNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "EvaluationsClient.GetSchedules", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Evaluations.GetSchedules", "value", "nextLink", maxpagesize, context); } /// @@ -792,7 +792,7 @@ public virtual Pageable GetSchedules(int? maxCount, int? skip, int? { HttpMessage FirstPageRequest(int? pageSizeHint) => CreateGetSchedulesRequest(maxCount, skip, pageSizeHint, context); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => CreateGetSchedulesNextPageRequest(nextLink, maxCount, skip, pageSizeHint, context); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "EvaluationsClient.GetSchedules", "value", "nextLink", maxpagesize, context); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => BinaryData.FromString(e.GetRawText()), ClientDiagnostics, _pipeline, "Evaluations.GetSchedules", "value", "nextLink", maxpagesize, context); } internal HttpMessage CreateGetEvaluationRequest(string id, RequestContext context) diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.Serialization.cs index 9da075b8ecbd..53dbe99291d8 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class EvaluatorConfiguration : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.cs index a4a93e38cd49..5ab9c1e944d2 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/EvaluatorConfiguration.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/EvaluatorConfiguration.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Evaluator Configuration. public partial class EvaluatorConfiguration diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Frequency.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Frequency.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/Frequency.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Frequency.cs index 8482e6c67836..b65f99e06c7a 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Frequency.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Frequency.cs @@ -8,7 +8,7 @@ using System; using System.ComponentModel; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Frequency of the schedule - day, week, month, hour, minute. public readonly partial struct Frequency : IEquatable diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InputData.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/InputData.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.Serialization.cs index cf3f9bd446d9..42796d5bdf27 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InputData.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.Serialization.cs @@ -10,7 +10,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { [PersistableModelProxy(typeof(UnknownInputData))] public partial class InputData : IUtf8JsonSerializable, IJsonModel diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/InputData.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/InputData.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.cs index 0e7e1c295373..fb12342f542c 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/InputData.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/InputData.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// /// Abstract data class for input data configuration. diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Argument.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Argument.cs new file mode 100644 index 000000000000..8210c8f8b91f --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Argument.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.AI.Evaluations +{ + internal static class Argument + { + public static void AssertNotNull(T value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNull(T? value, string name) + where T : struct + { + if (!value.HasValue) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNullOrEmpty(IEnumerable value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value is ICollection collectionOfT && collectionOfT.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + if (value is ICollection collection && collection.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + using IEnumerator e = value.GetEnumerator(); + if (!e.MoveNext()) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + } + + public static void AssertNotNullOrEmpty(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value.Length == 0) + { + throw new ArgumentException("Value cannot be an empty string.", name); + } + } + + public static void AssertNotNullOrWhiteSpace(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); + } + } + + public static void AssertNotDefault(ref T value, string name) + where T : struct, IEquatable + { + if (value.Equals(default)) + { + throw new ArgumentException("Value cannot be empty.", name); + } + } + + public static void AssertInRange(T value, T minimum, T maximum, string name) + where T : notnull, IComparable + { + if (minimum.CompareTo(value) > 0) + { + throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); + } + if (maximum.CompareTo(value) < 0) + { + throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); + } + } + + public static void AssertEnumDefined(Type enumType, object value, string name) + { + if (!Enum.IsDefined(enumType, value)) + { + throw new ArgumentException($"Value not defined for {enumType.FullName}.", name); + } + } + + public static T CheckNotNull(T value, string name) + where T : class + { + AssertNotNull(value, name); + return value; + } + + public static string CheckNotNullOrEmpty(string value, string name) + { + AssertNotNullOrEmpty(value, name); + return value; + } + + public static void AssertNull(T value, string name, string message = null) + { + if (value != null) + { + throw new ArgumentException(message ?? "Value must be null.", name); + } + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingDictionary.cs new file mode 100644 index 000000000000..5f481c01a675 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingDictionary.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.AI.Evaluations +{ + internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull + { + private IDictionary _innerDictionary; + + public ChangeTrackingDictionary() + { + } + + public ChangeTrackingDictionary(IDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(dictionary); + } + + public ChangeTrackingDictionary(IReadOnlyDictionary dictionary) + { + if (dictionary == null) + { + return; + } + _innerDictionary = new Dictionary(); + foreach (var pair in dictionary) + { + _innerDictionary.Add(pair); + } + } + + public bool IsUndefined => _innerDictionary == null; + + public int Count => IsUndefined ? 0 : EnsureDictionary().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly; + + public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys; + + public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values; + + public TValue this[TKey key] + { + get + { + if (IsUndefined) + { + throw new KeyNotFoundException(nameof(key)); + } + return EnsureDictionary()[key]; + } + set + { + EnsureDictionary()[key] = value; + } + } + + IEnumerable IReadOnlyDictionary.Keys => Keys; + + IEnumerable IReadOnlyDictionary.Values => Values; + + public IEnumerator> GetEnumerator() + { + if (IsUndefined) + { + IEnumerator> enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureDictionary().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(KeyValuePair item) + { + EnsureDictionary().Add(item); + } + + public void Clear() + { + EnsureDictionary().Clear(); + } + + public bool Contains(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Contains(item); + } + + public void CopyTo(KeyValuePair[] array, int index) + { + if (IsUndefined) + { + return; + } + EnsureDictionary().CopyTo(array, index); + } + + public bool Remove(KeyValuePair item) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(item); + } + + public void Add(TKey key, TValue value) + { + EnsureDictionary().Add(key, value); + } + + public bool ContainsKey(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().ContainsKey(key); + } + + public bool Remove(TKey key) + { + if (IsUndefined) + { + return false; + } + return EnsureDictionary().Remove(key); + } + + public bool TryGetValue(TKey key, out TValue value) + { + if (IsUndefined) + { + value = default; + return false; + } + return EnsureDictionary().TryGetValue(key, out value); + } + + public IDictionary EnsureDictionary() + { + return _innerDictionary ??= new Dictionary(); + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingList.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingList.cs new file mode 100644 index 000000000000..0d448231b552 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ChangeTrackingList.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.AI.Evaluations +{ + internal class ChangeTrackingList : IList, IReadOnlyList + { + private IList _innerList; + + public ChangeTrackingList() + { + } + + public ChangeTrackingList(IList innerList) + { + if (innerList != null) + { + _innerList = innerList; + } + } + + public ChangeTrackingList(IReadOnlyList innerList) + { + if (innerList != null) + { + _innerList = innerList.ToList(); + } + } + + public bool IsUndefined => _innerList == null; + + public int Count => IsUndefined ? 0 : EnsureList().Count; + + public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly; + + public T this[int index] + { + get + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + return EnsureList()[index]; + } + set + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList()[index] = value; + } + } + + public void Reset() + { + _innerList = null; + } + + public IEnumerator GetEnumerator() + { + if (IsUndefined) + { + IEnumerator enumerateEmpty() + { + yield break; + } + return enumerateEmpty(); + } + return EnsureList().GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + public void Add(T item) + { + EnsureList().Add(item); + } + + public void Clear() + { + EnsureList().Clear(); + } + + public bool Contains(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Contains(item); + } + + public void CopyTo(T[] array, int arrayIndex) + { + if (IsUndefined) + { + return; + } + EnsureList().CopyTo(array, arrayIndex); + } + + public bool Remove(T item) + { + if (IsUndefined) + { + return false; + } + return EnsureList().Remove(item); + } + + public int IndexOf(T item) + { + if (IsUndefined) + { + return -1; + } + return EnsureList().IndexOf(item); + } + + public void Insert(int index, T item) + { + EnsureList().Insert(index, item); + } + + public void RemoveAt(int index) + { + if (IsUndefined) + { + throw new ArgumentOutOfRangeException(nameof(index)); + } + EnsureList().RemoveAt(index); + } + + public IList EnsureList() + { + return _innerList ??= new List(); + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ModelSerializationExtensions.cs new file mode 100644 index 000000000000..d6d6c893568a --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/ModelSerializationExtensions.cs @@ -0,0 +1,398 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Text.Json; +using System.Xml; +using Azure.Core; + +namespace Azure.AI.Evaluations +{ + internal static class ModelSerializationExtensions + { + internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); + + public static object GetObject(this JsonElement element) + { + switch (element.ValueKind) + { + case JsonValueKind.String: + return element.GetString(); + case JsonValueKind.Number: + if (element.TryGetInt32(out int intValue)) + { + return intValue; + } + if (element.TryGetInt64(out long longValue)) + { + return longValue; + } + return element.GetDouble(); + case JsonValueKind.True: + return true; + case JsonValueKind.False: + return false; + case JsonValueKind.Undefined: + case JsonValueKind.Null: + return null; + case JsonValueKind.Object: + var dictionary = new Dictionary(); + foreach (var jsonProperty in element.EnumerateObject()) + { + dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); + } + return dictionary; + case JsonValueKind.Array: + var list = new List(); + foreach (var item in element.EnumerateArray()) + { + list.Add(item.GetObject()); + } + return list.ToArray(); + default: + throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); + } + } + + public static byte[] GetBytesFromBase64(this JsonElement element, string format) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + + return format switch + { + "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), + "D" => element.GetBytesFromBase64(), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + } + + public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch + { + "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), + _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) + }; + + public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); + + public static char GetChar(this JsonElement element) + { + if (element.ValueKind == JsonValueKind.String) + { + var text = element.GetString(); + if (text == null || text.Length != 1) + { + throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); + } + return text[0]; + } + else + { + throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); + } + } + + [Conditional("DEBUG")] + public static void ThrowNonNullablePropertyIsNull(this JsonProperty property) + { + throw new JsonException($"A property '{property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + } + + public static string GetRequiredString(this JsonElement element) + { + var value = element.GetString(); + if (value == null) + { + throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); + } + return value; + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, char value) + { + writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); + } + + public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) + { + if (value == null) + { + writer.WriteNullValue(); + return; + } + switch (format) + { + case "U": + writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); + break; + case "D": + writer.WriteBase64StringValue(value); + break; + default: + throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); + } + } + + public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + if (format != "U") + { + throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); + } + writer.WriteNumberValue(value.ToUnixTimeSeconds()); + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) + { + switch (value) + { + case null: + writer.WriteNullValue(); + break; + case IJsonModel jsonModel: + jsonModel.Write(writer, options ?? WireOptions); + break; + case IUtf8JsonSerializable serializable: + serializable.Write(writer); + break; + case byte[] bytes: + writer.WriteBase64StringValue(bytes); + break; + case BinaryData bytes0: + writer.WriteBase64StringValue(bytes0); + break; + case JsonElement json: + json.WriteTo(writer); + break; + case int i: + writer.WriteNumberValue(i); + break; + case decimal d: + writer.WriteNumberValue(d); + break; + case double d0: + if (double.IsNaN(d0)) + { + writer.WriteStringValue("NaN"); + } + else + { + writer.WriteNumberValue(d0); + } + break; + case float f: + writer.WriteNumberValue(f); + break; + case long l: + writer.WriteNumberValue(l); + break; + case string s: + writer.WriteStringValue(s); + break; + case bool b: + writer.WriteBooleanValue(b); + break; + case Guid g: + writer.WriteStringValue(g); + break; + case DateTimeOffset dateTimeOffset: + writer.WriteStringValue(dateTimeOffset, "O"); + break; + case DateTime dateTime: + writer.WriteStringValue(dateTime, "O"); + break; + case IEnumerable> enumerable: + writer.WriteStartObject(); + foreach (var pair in enumerable) + { + writer.WritePropertyName(pair.Key); + writer.WriteObjectValue(pair.Value, options); + } + writer.WriteEndObject(); + break; + case IEnumerable objectEnumerable: + writer.WriteStartArray(); + foreach (var item in objectEnumerable) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + break; + case TimeSpan timeSpan: + writer.WriteStringValue(timeSpan, "P"); + break; + default: + throw new NotSupportedException($"Not supported type {value.GetType()}"); + } + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) + { + writer.WriteObjectValue(value, options); + } + + internal static class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Azure SDK requires it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked(value.Length + 2) / 3; + int size = checked(numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ConvertToString(object value, string format = null) => value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when format != null => ToString(b0, format), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when format != null => ToString(dateTime, format), + TimeSpan timeSpan when format != null => ToString(timeSpan, format), + TimeSpan timeSpan0 => XmlConvert.ToString(timeSpan0), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Optional.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Optional.cs new file mode 100644 index 000000000000..6962c397f901 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Optional.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; + +namespace Azure.AI.Evaluations +{ + internal static class Optional + { + public static bool IsCollectionDefined(IEnumerable collection) + { + return !(collection is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined); + } + + public static bool IsCollectionDefined(IDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsCollectionDefined(IReadOnlyDictionary collection) + { + return !(collection is ChangeTrackingDictionary changeTrackingDictionary && changeTrackingDictionary.IsUndefined); + } + + public static bool IsDefined(T? value) + where T : struct + { + return value.HasValue; + } + + public static bool IsDefined(object value) + { + return value != null; + } + + public static bool IsDefined(JsonElement value) + { + return value.ValueKind != JsonValueKind.Undefined; + } + + public static bool IsDefined(string value) + { + return value != null; + } + } +} diff --git a/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Utf8JsonRequestContent.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Utf8JsonRequestContent.cs new file mode 100644 index 000000000000..8f0ba5f7f2ad --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Internal/Utf8JsonRequestContent.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.IO; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.AI.Evaluations +{ + internal class Utf8JsonRequestContent : RequestContent + { + private readonly MemoryStream _stream; + private readonly RequestContent _content; + + public Utf8JsonRequestContent() + { + _stream = new MemoryStream(); + _content = Create(_stream); + JsonWriter = new Utf8JsonWriter(_stream); + } + + public Utf8JsonWriter JsonWriter { get; } + + public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) + { + await JsonWriter.FlushAsync().ConfigureAwait(false); + await _content.WriteToAsync(stream, cancellationToken).ConfigureAwait(false); + } + + public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) + { + JsonWriter.Flush(); + _content.WriteTo(stream, cancellationToken); + } + + public override bool TryComputeLength(out long length) + { + length = JsonWriter.BytesCommitted + JsonWriter.BytesPending; + return true; + } + + public override void Dispose() + { + JsonWriter.Dispose(); + _content.Dispose(); + _stream.Dispose(); + } + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.Serialization.cs index 23d4ddcceb47..3fd630dfbe2d 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class RecurrenceSchedule : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.cs index 5caa77ae3151..a9add9c2ea98 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceSchedule.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceSchedule.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// RecurrenceSchedule Definition. public partial class RecurrenceSchedule diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.Serialization.cs index 9d1bc1a229c9..7954d075bf75 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class RecurrenceTrigger : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.cs index 2d88ffb17eb1..e5d8d0589586 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RecurrenceTrigger.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/RecurrenceTrigger.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Recurrence Trigger Definition. public partial class RecurrenceTrigger : Trigger diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/SystemData.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/SystemData.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.Serialization.cs index 593ed654afd2..621cced72bfd 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/SystemData.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { public partial class SystemData : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/SystemData.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/SystemData.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.cs index b7ffe4c91fe8..22bca1f0d666 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/SystemData.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/SystemData.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Metadata pertaining to creation and last modification of the resource. public partial class SystemData diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Trigger.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/Trigger.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.Serialization.cs index 160dadab0dc3..9a2200622471 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Trigger.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.Serialization.cs @@ -10,7 +10,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { [PersistableModelProxy(typeof(UnknownTrigger))] public partial class Trigger : IUtf8JsonSerializable, IJsonModel diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/Trigger.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.cs similarity index 98% rename from sdk/ai/Azure.AI.Projects/src/Generated/Trigger.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.cs index 7b792ec9f5a0..2362290122f8 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/Trigger.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/Trigger.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// /// Abstract data class for input data configuration. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.Serialization.cs index 724465467b7d..77fe0355ff13 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { internal partial class UnknownInputData : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.cs similarity index 96% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.cs index 364f2199d0cb..8f7cc2343bb7 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownInputData.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownInputData.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Unknown version of InputData. internal partial class UnknownInputData : InputData diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.Serialization.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.Serialization.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.Serialization.cs index 59a0e5575d06..1e58a48637c5 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.Serialization.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { internal partial class UnknownTrigger : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.cs similarity index 96% rename from sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.cs index 61ca52ea3445..8d9b30df7ce0 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/UnknownTrigger.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/UnknownTrigger.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// Unknown version of Trigger. internal partial class UnknownTrigger : Trigger diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/WeekDays.cs b/sdk/ai/Azure.AI.Evaluations/src/Generated/WeekDays.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/WeekDays.cs rename to sdk/ai/Azure.AI.Evaluations/src/Generated/WeekDays.cs index 000ae68ad211..76cc344bc8ec 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/WeekDays.cs +++ b/sdk/ai/Azure.AI.Evaluations/src/Generated/WeekDays.cs @@ -8,7 +8,7 @@ using System; using System.ComponentModel; -namespace Azure.AI.Projects +namespace Azure.AI.Evaluations { /// WeekDay of the schedule - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday. public readonly partial struct WeekDays : IEquatable diff --git a/sdk/ai/Azure.AI.Evaluations/src/Properties/AssemblyInfo.cs b/sdk/ai/Azure.AI.Evaluations/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..ab9ea00587e3 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/src/Properties/AssemblyInfo.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Azure.AI.Evaluations.Tests, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] + +// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. +// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers +// for the list of possible values. +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")] diff --git a/sdk/ai/Azure.AI.Evaluations/tests/Azure.AI.Evaluations.Tests.csproj b/sdk/ai/Azure.AI.Evaluations/tests/Azure.AI.Evaluations.Tests.csproj new file mode 100644 index 000000000000..413ee2e8a40d --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/tests/Azure.AI.Evaluations.Tests.csproj @@ -0,0 +1,20 @@ + + + $(RequiredTargetFrameworks) + + $(NoWarn);CS1591 + + + + + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Evaluations/tsp-location.yaml b/sdk/ai/Azure.AI.Evaluations/tsp-location.yaml new file mode 100644 index 000000000000..138645f7d5c2 --- /dev/null +++ b/sdk/ai/Azure.AI.Evaluations/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/ai/Azure.AI.Evaluations +commit: 985d9a014e6eb451627aa82ae3071aaa5f8d6c93 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/ai/Azure.AI.Projects/Configuration.json b/sdk/ai/Azure.AI.Projects/Configuration.json new file mode 100644 index 000000000000..c2b8be108a7d --- /dev/null +++ b/sdk/ai/Azure.AI.Projects/Configuration.json @@ -0,0 +1,13 @@ +{ + "output-folder": ".", + "namespace": "Azure.AI.Projects", + "library-name": "Azure.AI.Projects", + "flavor": "azure", + "use-model-reader-writer": true, + "shared-source-folders": [ + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Generator.Shared", + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Azure.Core.Shared" + ], + "model-namespace": false, + "examples-dir": "TempTypeSpecFiles/Azure.AI.Projects/examples" +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsClientBuilderExtensions.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsClientBuilderExtensions.cs index acd83ee1a217..fab5e00423fe 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsClientBuilderExtensions.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsClientBuilderExtensions.cs @@ -11,28 +11,28 @@ namespace Microsoft.Extensions.Azure { - /// Extension methods to add to client builder. + /// Extension methods to add to client builder. public static partial class AIProjectsClientBuilderExtensions { - /// Registers a instance. + /// Registers a instance. /// The builder to register with. /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. /// The Azure subscription ID. /// The name of the Azure Resource Group. /// The Azure AI Foundry project name. - public static IAzureClientBuilder AddAIProjectClient(this TBuilder builder, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) + public static IAzureClientBuilder AddAgentsClient(this TBuilder builder, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) where TBuilder : IAzureClientFactoryBuilderWithCredential { - return builder.RegisterClientFactory((options, cred) => new AIProjectClient(endpoint, subscriptionId, resourceGroupName, projectName, cred, options)); + return builder.RegisterClientFactory((options, cred) => new AgentsClient(endpoint, subscriptionId, resourceGroupName, projectName, cred, options)); } - /// Registers a instance. + /// Registers a instance. /// The builder to register with. /// The configuration values. - public static IAzureClientBuilder AddAIProjectClient(this TBuilder builder, TConfiguration configuration) + public static IAzureClientBuilder AddAgentsClient(this TBuilder builder, TConfiguration configuration) where TBuilder : IAzureClientFactoryBuilderWithConfiguration { - return builder.RegisterClientFactory(configuration); + return builder.RegisterClientFactory(configuration); } } } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs index 546d614966d8..50e9adafaa4c 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs @@ -14,165 +14,6 @@ namespace Azure.AI.Projects /// Model factory for models. public static partial class AIProjectsModelFactory { - /// Initializes a new instance of . - /// Identifier of the evaluation. - /// - /// Data for evaluation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique. - /// Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. - /// Metadata containing createdBy and modifiedBy information. - /// Status of the evaluation. It is set by service and is read-only. - /// Evaluation's tags. Unlike properties, tags are fully mutable. - /// Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. - /// Evaluators to be used for the evaluation. - /// A new instance for mocking. - public static Evaluation Evaluation(string id = null, InputData data = null, string displayName = null, string description = null, SystemData systemData = null, string status = null, IDictionary tags = null, IDictionary properties = null, IDictionary evaluators = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - evaluators ??= new Dictionary(); - - return new Evaluation( - id, - data, - displayName, - description, - systemData, - status, - tags, - properties, - evaluators, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The timestamp the resource was created at. - /// The identity that created the resource. - /// The identity type that created the resource. - /// The timestamp of resource last modification (UTC). - /// A new instance for mocking. - public static SystemData SystemData(DateTimeOffset? createdAt = null, string createdBy = null, string createdByType = null, DateTimeOffset? lastModifiedAt = null) - { - return new SystemData(createdAt, createdBy, createdByType, lastModifiedAt, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Name of the schedule, which also serves as the unique identifier for the evaluation. - /// Data for evaluation. - /// Description of the evaluation. It can be used to store additional information about the evaluation and is mutable. - /// Metadata containing createdBy and modifiedBy information. - /// Provisioning State of the evaluation. It is set by service and is read-only. - /// Evaluation's tags. Unlike properties, tags are fully mutable. - /// Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed. - /// Enabled status of the evaluation. It is set by service and is read-only. - /// Evaluators to be used for the evaluation. - /// - /// Trigger for the evaluation. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// A new instance for mocking. - public static EvaluationSchedule EvaluationSchedule(string name = null, ApplicationInsightsConfiguration data = null, string description = null, SystemData systemData = null, string provisioningState = null, IDictionary tags = null, IDictionary properties = null, string isEnabled = null, IDictionary evaluators = null, Trigger trigger = null) - { - tags ??= new Dictionary(); - properties ??= new Dictionary(); - evaluators ??= new Dictionary(); - - return new EvaluationSchedule( - name, - data, - description, - systemData, - provisioningState, - tags, - properties, - isEnabled, - evaluators, - trigger, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A unique identifier for the resource. - /// The name of the resource. - /// The properties of the resource. - /// A new instance for mocking. - public static GetWorkspaceResponse GetWorkspaceResponse(string id = null, string name = null, WorkspaceProperties properties = null) - { - return new GetWorkspaceResponse(id, name, properties, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Authentication type of the connection target. - /// A new instance for mocking. - public static WorkspaceProperties WorkspaceProperties(string applicationInsights = null) - { - return new WorkspaceProperties(applicationInsights, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A list of connection list secrets. - /// A new instance for mocking. - public static ListConnectionsResponse ListConnectionsResponse(IEnumerable value = null) - { - value ??= new List(); - - return new ListConnectionsResponse(value?.ToList(), serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// A unique identifier for the connection. - /// The name of the resource. - /// - /// The properties of the resource - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// A new instance for mocking. - public static ConnectionResponse ConnectionResponse(string id = null, string name = null, ConnectionProperties properties = null) - { - return new ConnectionResponse(id, name, properties, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// The connection URL to be used for this service. - /// A new instance for mocking. - public static ConnectionProperties ConnectionProperties(ConnectionType category = default, string target = null) - { - return new UnknownInternalConnectionProperties(default, category, target, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// The connection URL to be used for this service. - /// Credentials will only be present for authType=ApiKey. - /// A new instance for mocking. - public static ConnectionPropertiesApiKeyAuth ConnectionPropertiesApiKeyAuth(ConnectionType category = default, string target = null, CredentialsApiKeyAuth credentials = null) - { - return new ConnectionPropertiesApiKeyAuth(AuthenticationType.ApiKey, category, target, serializedAdditionalRawData: null, credentials); - } - - /// Initializes a new instance of . - /// The API key. - /// A new instance for mocking. - public static CredentialsApiKeyAuth CredentialsApiKeyAuth(string key = null) - { - return new CredentialsApiKeyAuth(key, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Category of the connection. - /// The connection URL to be used for this service. - /// A new instance for mocking. - public static InternalConnectionPropertiesNoAuth InternalConnectionPropertiesNoAuth(ConnectionType category = default, string target = null) - { - return new InternalConnectionPropertiesNoAuth(AuthenticationType.None, category, target, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The type of binding, which is always 'storage_queue'. /// Storage queue. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClient.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClient.cs index 56679b3d00d5..9df8d73268e1 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClient.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClient.cs @@ -16,8 +16,8 @@ namespace Azure.AI.Projects { - // Data plane generated sub-client. - /// The Agents sub-client. + // Data plane generated client. + /// The Agents service client. public partial class AgentsClient { private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; @@ -41,24 +41,31 @@ protected AgentsClient() } /// Initializes a new instance of AgentsClient. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. /// The Azure subscription ID. /// The name of the Azure Resource Group. /// The Azure AI Foundry project name. - /// The API version to use for this operation. - internal AgentsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, string apiVersion) - { - ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; + /// A credential used to authenticate to an Azure Service. + /// The options for configuring the client. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public AgentsClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential, AgentsClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(credential, nameof(credential)); + options ??= new AgentsClientOptions(); + + ClientDiagnostics = new ClientDiagnostics(options, true); + _tokenCredential = credential; + _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier()); _endpoint = endpoint; _subscriptionId = subscriptionId; _resourceGroupName = resourceGroupName; _projectName = projectName; - _apiVersion = apiVersion; + _apiVersion = options.Version; } /// Creates a new agent. diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClientOptions.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClientOptions.cs similarity index 73% rename from sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClientOptions.cs rename to sdk/ai/Azure.AI.Projects/src/Generated/AgentsClientOptions.cs index ee91a3c1030c..dc1dba3d95b7 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectClientOptions.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsClientOptions.cs @@ -10,8 +10,8 @@ namespace Azure.AI.Projects { - /// Client options for AIProjectClient. - public partial class AIProjectClientOptions : ClientOptions + /// Client options for AgentsClient. + public partial class AgentsClientOptions : ClientOptions { private const ServiceVersion LatestVersion = ServiceVersion.V2024_07_01_Preview; @@ -24,8 +24,8 @@ public enum ServiceVersion internal string Version { get; } - /// Initializes new instance of AIProjectClientOptions. - public AIProjectClientOptions(ServiceVersion version = LatestVersion) + /// Initializes new instance of AgentsClientOptions. + public AgentsClientOptions(ServiceVersion version = LatestVersion) { Version = version switch { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionType.Serialization.cs b/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionType.Serialization.cs deleted file mode 100644 index d36c2d9ce9e1..000000000000 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionType.Serialization.cs +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.AI.Projects -{ - internal static partial class ConnectionTypeExtensions - { - } -} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionsClient.cs b/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionsClient.cs deleted file mode 100644 index a00d9049ec36..000000000000 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ConnectionsClient.cs +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.AI.Projects -{ - // Data plane generated sub-client. - /// The Connections sub-client. - public partial class ConnectionsClient - { - private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; - private readonly TokenCredential _tokenCredential; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _subscriptionId; - private readonly string _resourceGroupName; - private readonly string _projectName; - private readonly string _apiVersion; - - /// The ClientDiagnostics is used to provide tracing support for the client library. - internal ClientDiagnostics ClientDiagnostics { get; } - - /// The HTTP pipeline for sending and receiving REST requests and responses. - public virtual HttpPipeline Pipeline => _pipeline; - - /// Initializes a new instance of ConnectionsClient for mocking. - protected ConnectionsClient() - { - } - - private static RequestContext DefaultRequestContext = new RequestContext(); - internal static RequestContext FromCancellationToken(CancellationToken cancellationToken = default) - { - if (!cancellationToken.CanBeCanceled) - { - return DefaultRequestContext; - } - - return new RequestContext() { CancellationToken = cancellationToken }; - } - - private static ResponseClassifier _responseClassifier200; - private static ResponseClassifier ResponseClassifier200 => _responseClassifier200 ??= new StatusCodeClassifier(stackalloc ushort[] { 200 }); - } -} diff --git a/sdk/ai/Azure.AI.Projects/tsp-location.yaml b/sdk/ai/Azure.AI.Projects/tsp-location.yaml index 2e8d2adc8a0a..21dfc125884f 100644 --- a/sdk/ai/Azure.AI.Projects/tsp-location.yaml +++ b/sdk/ai/Azure.AI.Projects/tsp-location.yaml @@ -1,4 +1,8 @@ directory: specification/ai/Azure.AI.Projects -commit: 6e507701253408679175e95176995c437f8e00d4 +commit: 985d9a014e6eb451627aa82ae3071aaa5f8d6c93 repo: Azure/azure-rest-api-specs additionalDirectories: +- specification/ai/Azure.AI.Agents +- specification/ai/Azure.AI.Connections +- specification/ai/Azure.AI.Evaluations +- specification/ai/Azure.AI.Telemetry diff --git a/sdk/ai/Azure.AI.Projects/tspCodeModel.json b/sdk/ai/Azure.AI.Projects/tspCodeModel.json new file mode 100644 index 000000000000..1bfc5ab15875 --- /dev/null +++ b/sdk/ai/Azure.AI.Projects/tspCodeModel.json @@ -0,0 +1,29038 @@ +{ + "$id": "1", + "Name": "Azure.AI.Projects", + "ApiVersions": [ + "2024-07-01-preview" + ], + "Enums": [ + { + "$id": "2", + "kind": "enum", + "name": "OpenApiAuthType", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiAuthType", + "valueType": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4", + "kind": "enumvalue", + "name": "anonymous", + "value": "anonymous", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "connection", + "value": "connection", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "decorators": [] + }, + { + "$id": "8", + "kind": "enumvalue", + "name": "managedIdentity", + "value": "managed_identity", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": " Authentication type for OpenApi endpoint. Allowed types are:\n - Anonymous (no authentication required)\n - Connection (requires connection_id to endpoint, as setup in AI Foundry)\n - Managed_Identity (requires audience for identity based auth)", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "10", + "kind": "enum", + "name": "AzureFunctionBinding_type", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "12", + "kind": "enumvalue", + "name": "storage_queue", + "value": "storage_queue", + "doc": "storage_queue", + "valueType": { + "$ref": "11" + }, + "enumType": { + "$ref": "10" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The AzureFunctionBinding_type", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "13", + "kind": "enum", + "name": "VectorStoreDataSourceAssetType", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDataSourceAssetType", + "valueType": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "15", + "kind": "enumvalue", + "name": "uri_asset", + "value": "uri_asset", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "13" + }, + "doc": "Azure URI", + "decorators": [] + }, + { + "$id": "17", + "kind": "enumvalue", + "name": "id_asset", + "value": "id_asset", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "13" + }, + "doc": "The data ID", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Type of vector storage asset. Asset type may be a uri_asset, in this case it should contain asset URI ID,\nin the case of id_asset it should contain the data ID.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "19", + "kind": "enum", + "name": "AgentsApiResponseFormatMode", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsApiResponseFormatMode", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "21", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "19" + }, + "doc": "Default value. Let the model handle the return format.", + "decorators": [] + }, + { + "$id": "23", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "19" + }, + "doc": "Setting the value to `none`, will result in a 400 Bad request.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Represents the mode in which the model will handle the return format of a tool call.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "25", + "kind": "enum", + "name": "ResponseFormat", + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormat", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "27", + "kind": "enumvalue", + "name": "text", + "value": "text", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "25" + }, + "doc": "`text` format should be used for requests involving any sort of ToolCall.", + "decorators": [] + }, + { + "$id": "29", + "kind": "enumvalue", + "name": "jsonObject", + "value": "json_object", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "25" + }, + "doc": "Using `json_object` format will limit the usage of ToolCall to only functions.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Possible API response formats.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "31", + "kind": "enum", + "name": "ResponseFormatJsonSchemaType_type", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "33", + "kind": "enumvalue", + "name": "json_schema", + "value": "json_schema", + "doc": "json_schema", + "valueType": { + "$ref": "32" + }, + "enumType": { + "$ref": "31" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The ResponseFormatJsonSchemaType_type", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "34", + "kind": "enum", + "name": "Agent_object", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "36", + "kind": "enumvalue", + "name": "assistant", + "value": "assistant", + "doc": "assistant", + "valueType": { + "$ref": "35" + }, + "enumType": { + "$ref": "34" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The Agent_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "37", + "kind": "enum", + "name": "ListSortOrder", + "crossLanguageDefinitionId": "Azure.AI.Agents.ListSortOrder", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "39", + "kind": "enumvalue", + "name": "ascending", + "value": "asc", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "37" + }, + "doc": "Specifies an ascending sort order.", + "decorators": [] + }, + { + "$id": "41", + "kind": "enumvalue", + "name": "descending", + "value": "desc", + "valueType": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "37" + }, + "doc": "Specifies a descending sort order.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The available sorting options when requesting a list of response objects.", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "43", + "kind": "enum", + "name": "OpenAIPageableListOfAgent_object", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "45", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "44" + }, + "enumType": { + "$ref": "43" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfAgent_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "46", + "kind": "enum", + "name": "AgentDeletionStatus_object", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "48", + "kind": "enumvalue", + "name": "assistant.deleted", + "value": "assistant.deleted", + "doc": "assistant.deleted", + "valueType": { + "$ref": "47" + }, + "enumType": { + "$ref": "46" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The AgentDeletionStatus_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "49", + "kind": "enum", + "name": "MessageRole", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageRole", + "valueType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "51", + "kind": "enumvalue", + "name": "user", + "value": "user", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "49" + }, + "doc": "The role representing the end-user.", + "decorators": [] + }, + { + "$id": "53", + "kind": "enumvalue", + "name": "agent", + "value": "assistant", + "valueType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "49" + }, + "doc": "The role representing the agent.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The possible values for roles attributed to messages in a thread.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "55", + "kind": "enum", + "name": "AgentThread_object", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "57", + "kind": "enumvalue", + "name": "thread", + "value": "thread", + "doc": "thread", + "valueType": { + "$ref": "56" + }, + "enumType": { + "$ref": "55" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The AgentThread_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "58", + "kind": "enum", + "name": "ThreadDeletionStatus_object", + "valueType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "60", + "kind": "enumvalue", + "name": "thread.deleted", + "value": "thread.deleted", + "doc": "thread.deleted", + "valueType": { + "$ref": "59" + }, + "enumType": { + "$ref": "58" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The ThreadDeletionStatus_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "61", + "kind": "enum", + "name": "ThreadMessage_object", + "valueType": { + "$id": "62", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "63", + "kind": "enumvalue", + "name": "thread.message", + "value": "thread.message", + "doc": "thread.message", + "valueType": { + "$ref": "62" + }, + "enumType": { + "$ref": "61" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The ThreadMessage_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "64", + "kind": "enum", + "name": "MessageStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageStatus", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "66", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "doc": "A run is currently creating this message.", + "decorators": [] + }, + { + "$id": "68", + "kind": "enumvalue", + "name": "incomplete", + "value": "incomplete", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "doc": "This message is incomplete. See incomplete_details for more information.", + "decorators": [] + }, + { + "$id": "70", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "doc": "This message was successfully completed by a run.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The possible execution status values for a thread message.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "72", + "kind": "enum", + "name": "MessageIncompleteDetailsReason", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageIncompleteDetailsReason", + "valueType": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "74", + "kind": "enumvalue", + "name": "contentFilter", + "value": "content_filter", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "72" + }, + "doc": "The run generating the message was terminated due to content filter flagging.", + "decorators": [] + }, + { + "$id": "76", + "kind": "enumvalue", + "name": "maxTokens", + "value": "max_tokens", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "72" + }, + "doc": "The run generating the message exhausted available tokens before completion.", + "decorators": [] + }, + { + "$id": "78", + "kind": "enumvalue", + "name": "runCancelled", + "value": "run_cancelled", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "72" + }, + "doc": "The run generating the message was cancelled before completion.", + "decorators": [] + }, + { + "$id": "80", + "kind": "enumvalue", + "name": "runFailed", + "value": "run_failed", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "72" + }, + "doc": "The run generating the message failed.", + "decorators": [] + }, + { + "$id": "82", + "kind": "enumvalue", + "name": "runExpired", + "value": "run_expired", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "72" + }, + "doc": "The run generating the message expired.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "A set of reasons describing why a message is marked as incomplete.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "84", + "kind": "enum", + "name": "OpenAIPageableListOfThreadMessage_object", + "valueType": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "86", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "85" + }, + "enumType": { + "$ref": "84" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfThreadMessage_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "87", + "kind": "enum", + "name": "RunAdditionalFieldList", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunAdditionalFieldList", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "89", + "kind": "enumvalue", + "name": "FileSearchContents", + "value": "step_details.tool_calls[*].file_search.results[*].content", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "87" + }, + "doc": "File search result content.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "A list of additional fields to include in the response.", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "91", + "kind": "enum", + "name": "TruncationStrategy", + "crossLanguageDefinitionId": "Azure.AI.Agents.TruncationStrategy", + "valueType": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "93", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "91" + }, + "doc": "Default value. Messages in the middle of the thread will be dropped to fit the context length of the model.", + "decorators": [] + }, + { + "$id": "95", + "kind": "enumvalue", + "name": "lastMessages", + "value": "last_messages", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "91" + }, + "doc": "The thread will truncate to the `lastMessages` count of recent messages.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Possible truncation strategies for the thread.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "97", + "kind": "enum", + "name": "AgentsApiToolChoiceOptionMode", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsApiToolChoiceOptionMode", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "99", + "kind": "enumvalue", + "name": "none", + "value": "none", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "97" + }, + "doc": "The model will not call a function and instead generates a message.", + "decorators": [] + }, + { + "$id": "101", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "97" + }, + "doc": "The model can pick between generating a message or calling a function.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Specifies how the tool choice will be used", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "103", + "kind": "enum", + "name": "AgentsNamedToolChoiceType", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsNamedToolChoiceType", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "105", + "kind": "enumvalue", + "name": "function", + "value": "function", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `function`", + "decorators": [] + }, + { + "$id": "107", + "kind": "enumvalue", + "name": "codeInterpreter", + "value": "code_interpreter", + "valueType": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `code_interpreter`", + "decorators": [] + }, + { + "$id": "109", + "kind": "enumvalue", + "name": "fileSearch", + "value": "file_search", + "valueType": { + "$id": "110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `file_search`", + "decorators": [] + }, + { + "$id": "111", + "kind": "enumvalue", + "name": "bingGrounding", + "value": "bing_grounding", + "valueType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `bing_grounding`", + "decorators": [] + }, + { + "$id": "113", + "kind": "enumvalue", + "name": "microsoftFabric", + "value": "fabric_aiskill", + "valueType": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `fabric_aiskill`", + "decorators": [] + }, + { + "$id": "115", + "kind": "enumvalue", + "name": "sharepoint", + "value": "sharepoint_grounding", + "valueType": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `sharepoint_grounding`", + "decorators": [] + }, + { + "$id": "117", + "kind": "enumvalue", + "name": "azureAISearch", + "value": "azure_ai_search", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "103" + }, + "doc": "Tool type `azure_ai_search`", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Available tool types for agents named tools.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "119", + "kind": "enum", + "name": "ThreadRun_object", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "121", + "kind": "enumvalue", + "name": "thread.run", + "value": "thread.run", + "doc": "thread.run", + "valueType": { + "$ref": "120" + }, + "enumType": { + "$ref": "119" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The ThreadRun_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "122", + "kind": "enum", + "name": "RunStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStatus", + "valueType": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "124", + "kind": "enumvalue", + "name": "queued", + "value": "queued", + "valueType": { + "$id": "125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that is queued to start.", + "decorators": [] + }, + { + "$id": "126", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that is in progress.", + "decorators": [] + }, + { + "$id": "128", + "kind": "enumvalue", + "name": "requiresAction", + "value": "requires_action", + "valueType": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that needs another operation, such as tool output submission, to continue.", + "decorators": [] + }, + { + "$id": "130", + "kind": "enumvalue", + "name": "cancelling", + "value": "cancelling", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that is in the process of cancellation.", + "decorators": [] + }, + { + "$id": "132", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that has been cancelled.", + "decorators": [] + }, + { + "$id": "134", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that failed.", + "decorators": [] + }, + { + "$id": "136", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that successfully completed.", + "decorators": [] + }, + { + "$id": "138", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "122" + }, + "doc": "Represents a run that expired before it could otherwise finish.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Possible values for the status of an agent thread run.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "140", + "kind": "enum", + "name": "IncompleteDetailsReason", + "crossLanguageDefinitionId": "Azure.AI.Agents.IncompleteDetailsReason", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "142", + "kind": "enumvalue", + "name": "maxCompletionTokens", + "value": "max_completion_tokens", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "140" + }, + "doc": "Maximum completion tokens exceeded", + "decorators": [] + }, + { + "$id": "144", + "kind": "enumvalue", + "name": "maxPromptTokens", + "value": "max_prompt_tokens", + "valueType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "140" + }, + "doc": "Maximum prompt tokens exceeded", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The reason why the run is incomplete. This will point to which specific token limit was reached over the course of the run.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "146", + "kind": "enum", + "name": "OpenAIPageableListOfThreadRun_object", + "valueType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "148", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "147" + }, + "enumType": { + "$ref": "146" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfThreadRun_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "149", + "kind": "enum", + "name": "RunStep_object", + "valueType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "151", + "kind": "enumvalue", + "name": "thread.run.step", + "value": "thread.run.step", + "doc": "thread.run.step", + "valueType": { + "$ref": "150" + }, + "enumType": { + "$ref": "149" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The RunStep_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "152", + "kind": "enum", + "name": "RunStepType", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepType", + "valueType": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "154", + "kind": "enumvalue", + "name": "messageCreation", + "value": "message_creation", + "valueType": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "152" + }, + "doc": "Represents a run step to create a message.", + "decorators": [] + }, + { + "$id": "156", + "kind": "enumvalue", + "name": "toolCalls", + "value": "tool_calls", + "valueType": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "152" + }, + "doc": "Represents a run step that calls tools.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The possible types of run steps.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "158", + "kind": "enum", + "name": "RunStepStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepStatus", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "160", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "158" + }, + "doc": "Represents a run step still in progress.", + "decorators": [] + }, + { + "$id": "162", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$id": "163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "158" + }, + "doc": "Represents a run step that was cancelled.", + "decorators": [] + }, + { + "$id": "164", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "165", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "158" + }, + "doc": "Represents a run step that failed.", + "decorators": [] + }, + { + "$id": "166", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "158" + }, + "doc": "Represents a run step that successfully completed.", + "decorators": [] + }, + { + "$id": "168", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "158" + }, + "doc": "Represents a run step that expired before otherwise finishing.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Possible values for the status of a run step.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "170", + "kind": "enum", + "name": "FileSearchToolCallContent_type", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "172", + "kind": "enumvalue", + "name": "text", + "value": "text", + "doc": "text", + "valueType": { + "$ref": "171" + }, + "enumType": { + "$ref": "170" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The FileSearchToolCallContent_type", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "173", + "kind": "enum", + "name": "RunStepErrorCode", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepErrorCode", + "valueType": { + "$id": "174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "175", + "kind": "enumvalue", + "name": "serverError", + "value": "server_error", + "valueType": { + "$id": "176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "173" + }, + "doc": "Represents a server error.", + "decorators": [] + }, + { + "$id": "177", + "kind": "enumvalue", + "name": "rateLimitExceeded", + "value": "rate_limit_exceeded", + "valueType": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "173" + }, + "doc": "Represents an error indicating configured rate limits were exceeded.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Possible error code values attributable to a failed run step.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "179", + "kind": "enum", + "name": "OpenAIPageableListOfRunStep_object", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "181", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "180" + }, + "enumType": { + "$ref": "179" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfRunStep_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "182", + "kind": "enum", + "name": "FilePurpose", + "crossLanguageDefinitionId": "Azure.AI.Agents.FilePurpose", + "valueType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "184", + "kind": "enumvalue", + "name": "fineTune", + "value": "fine-tune", + "valueType": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used for fine tuning input.", + "decorators": [] + }, + { + "$id": "186", + "kind": "enumvalue", + "name": "fineTuneResults", + "value": "fine-tune-results", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used for fine tuning results.", + "decorators": [] + }, + { + "$id": "188", + "kind": "enumvalue", + "name": "agents", + "value": "assistants", + "valueType": { + "$id": "189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used as input to agents.", + "decorators": [] + }, + { + "$id": "190", + "kind": "enumvalue", + "name": "agentsOutput", + "value": "assistants_output", + "valueType": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used as output by agents.", + "decorators": [] + }, + { + "$id": "192", + "kind": "enumvalue", + "name": "batch", + "value": "batch", + "valueType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used as input to .", + "decorators": [] + }, + { + "$id": "194", + "kind": "enumvalue", + "name": "batchOutput", + "value": "batch_output", + "valueType": { + "$id": "195", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used as output by a vector store batch operation.", + "decorators": [] + }, + { + "$id": "196", + "kind": "enumvalue", + "name": "vision", + "value": "vision", + "valueType": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "182" + }, + "doc": "Indicates a file is used as input to a vision operation.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The possible values denoting the intended usage of a file.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "198", + "kind": "enum", + "name": "FileListResponse_object", + "valueType": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "200", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "199" + }, + "enumType": { + "$ref": "198" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The FileListResponse_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "201", + "kind": "enum", + "name": "OpenAIFile_object", + "valueType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "203", + "kind": "enumvalue", + "name": "file", + "value": "file", + "doc": "file", + "valueType": { + "$ref": "202" + }, + "enumType": { + "$ref": "201" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIFile_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "204", + "kind": "enum", + "name": "FileState", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileState", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "206", + "kind": "enumvalue", + "name": "uploaded", + "value": "uploaded", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The file has been uploaded but it's not yet processed. This state is not returned by Azure OpenAI and exposed only for\ncompatibility. It can be categorized as an inactive state.", + "decorators": [] + }, + { + "$id": "208", + "kind": "enumvalue", + "name": "pending", + "value": "pending", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The operation was created and is not queued to be processed in the future. It can be categorized as an inactive state.", + "decorators": [] + }, + { + "$id": "210", + "kind": "enumvalue", + "name": "running", + "value": "running", + "valueType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The operation has started to be processed. It can be categorized as an active state.", + "decorators": [] + }, + { + "$id": "212", + "kind": "enumvalue", + "name": "processed", + "value": "processed", + "valueType": { + "$id": "213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The operation has successfully processed and is ready for consumption. It can be categorized as a terminal state.", + "decorators": [] + }, + { + "$id": "214", + "kind": "enumvalue", + "name": "error", + "value": "error", + "valueType": { + "$id": "215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The operation has completed processing with a failure and cannot be further consumed. It can be categorized as a terminal state.", + "decorators": [] + }, + { + "$id": "216", + "kind": "enumvalue", + "name": "deleting", + "value": "deleting", + "valueType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The entity is in the process to be deleted. This state is not returned by Azure OpenAI and exposed only for compatibility.\nIt can be categorized as an active state.", + "decorators": [] + }, + { + "$id": "218", + "kind": "enumvalue", + "name": "deleted", + "value": "deleted", + "valueType": { + "$id": "219", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "204" + }, + "doc": "The entity has been deleted but may still be referenced by other entities predating the deletion. It can be categorized as a\nterminal state.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The state of the file.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "220", + "kind": "enum", + "name": "FileDeletionStatus_object", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "222", + "kind": "enumvalue", + "name": "file", + "value": "file", + "doc": "file", + "valueType": { + "$ref": "221" + }, + "enumType": { + "$ref": "220" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The FileDeletionStatus_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "223", + "kind": "enum", + "name": "OpenAIPageableListOfVectorStore_object", + "valueType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "225", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "224" + }, + "enumType": { + "$ref": "223" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfVectorStore_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "226", + "kind": "enum", + "name": "VectorStore_object", + "valueType": { + "$id": "227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "228", + "kind": "enumvalue", + "name": "vector_store", + "value": "vector_store", + "doc": "vector_store", + "valueType": { + "$ref": "227" + }, + "enumType": { + "$ref": "226" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The VectorStore_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "229", + "kind": "enum", + "name": "VectorStoreStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStatus", + "valueType": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "231", + "kind": "enumvalue", + "name": "expired", + "value": "expired", + "valueType": { + "$id": "232", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "229" + }, + "doc": "expired status indicates that this vector store has expired and is no longer available for use.", + "decorators": [] + }, + { + "$id": "233", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "229" + }, + "doc": "in_progress status indicates that this vector store is still processing files.", + "decorators": [] + }, + { + "$id": "235", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "229" + }, + "doc": "completed status indicates that this vector store is ready for use.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Vector store possible status", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "237", + "kind": "enum", + "name": "VectorStoreExpirationPolicyAnchor", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreExpirationPolicyAnchor", + "valueType": { + "$id": "238", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "239", + "kind": "enumvalue", + "name": "lastActiveAt", + "value": "last_active_at", + "valueType": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "237" + }, + "doc": "The expiration policy is based on the last time the vector store was active.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Describes the relationship between the days and the expiration of this vector store", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "241", + "kind": "enum", + "name": "VectorStoreChunkingStrategyRequestType", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyRequestType", + "valueType": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "243", + "kind": "enumvalue", + "name": "auto", + "value": "auto", + "valueType": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "241" + }, + "decorators": [] + }, + { + "$id": "245", + "kind": "enumvalue", + "name": "static", + "value": "static", + "valueType": { + "$id": "246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "241" + }, + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Type of chunking strategy", + "isFixed": false, + "isFlags": false, + "usage": "Input,Json", + "decorators": [] + }, + { + "$id": "247", + "kind": "enum", + "name": "VectorStoreDeletionStatus_object", + "valueType": { + "$id": "248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "249", + "kind": "enumvalue", + "name": "vector_store.deleted", + "value": "vector_store.deleted", + "doc": "vector_store.deleted", + "valueType": { + "$ref": "248" + }, + "enumType": { + "$ref": "247" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The VectorStoreDeletionStatus_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "250", + "kind": "enum", + "name": "VectorStoreFileStatusFilter", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileStatusFilter", + "valueType": { + "$id": "251", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "252", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "250" + }, + "doc": "Retrieve only files that are currently being processed", + "decorators": [] + }, + { + "$id": "254", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "255", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "250" + }, + "doc": "Retrieve only files that have been successfully processed", + "decorators": [] + }, + { + "$id": "256", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "250" + }, + "doc": "Retrieve only files that have failed to process", + "decorators": [] + }, + { + "$id": "258", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$id": "259", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "250" + }, + "doc": "Retrieve only files that were cancelled", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Query parameter filter for vector store file retrieval endpoint", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "260", + "kind": "enum", + "name": "OpenAIPageableListOfVectorStoreFile_object", + "valueType": { + "$id": "261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "262", + "kind": "enumvalue", + "name": "list", + "value": "list", + "doc": "list", + "valueType": { + "$ref": "261" + }, + "enumType": { + "$ref": "260" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The OpenAIPageableListOfVectorStoreFile_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "263", + "kind": "enum", + "name": "VectorStoreFile_object", + "valueType": { + "$id": "264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "265", + "kind": "enumvalue", + "name": "vector_store.file", + "value": "vector_store.file", + "doc": "vector_store.file", + "valueType": { + "$ref": "264" + }, + "enumType": { + "$ref": "263" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The VectorStoreFile_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "266", + "kind": "enum", + "name": "VectorStoreFileStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileStatus", + "valueType": { + "$id": "267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "268", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "266" + }, + "doc": "The file is currently being processed.", + "decorators": [] + }, + { + "$id": "270", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "271", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "266" + }, + "doc": "The file has been successfully processed.", + "decorators": [] + }, + { + "$id": "272", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "266" + }, + "doc": "The file has failed to process.", + "decorators": [] + }, + { + "$id": "274", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$id": "275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "266" + }, + "doc": "The file was cancelled.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Vector store file status", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "276", + "kind": "enum", + "name": "VectorStoreFileErrorCode", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileErrorCode", + "valueType": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "278", + "kind": "enumvalue", + "name": "serverError", + "value": "server_error", + "valueType": { + "$id": "279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "276" + }, + "doc": "An server error occurred.", + "decorators": [] + }, + { + "$id": "280", + "kind": "enumvalue", + "name": "invalidFile", + "value": "invalid_file", + "valueType": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "276" + }, + "doc": "The file is not valid.", + "decorators": [] + }, + { + "$id": "282", + "kind": "enumvalue", + "name": "unsupportedFile", + "value": "unsupported_file", + "valueType": { + "$id": "283", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "276" + }, + "doc": "The file is of unsupported type.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Error code variants for vector store file processing", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "284", + "kind": "enum", + "name": "VectorStoreChunkingStrategyResponseType", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyResponseType", + "valueType": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "286", + "kind": "enumvalue", + "name": "other", + "value": "other", + "valueType": { + "$id": "287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "284" + }, + "decorators": [] + }, + { + "$id": "288", + "kind": "enumvalue", + "name": "static", + "value": "static", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "284" + }, + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Type of chunking strategy", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "290", + "kind": "enum", + "name": "VectorStoreFileDeletionStatus_object", + "valueType": { + "$id": "291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "292", + "kind": "enumvalue", + "name": "vector_store.file.deleted", + "value": "vector_store.file.deleted", + "doc": "vector_store.file.deleted", + "valueType": { + "$ref": "291" + }, + "enumType": { + "$ref": "290" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The VectorStoreFileDeletionStatus_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "293", + "kind": "enum", + "name": "VectorStoreFileBatch_object", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "295", + "kind": "enumvalue", + "name": "vector_store.files_batch", + "value": "vector_store.files_batch", + "doc": "vector_store.files_batch", + "valueType": { + "$ref": "294" + }, + "enumType": { + "$ref": "293" + } + } + ], + "crossLanguageDefinitionId": "", + "clientNamespace": "Azure.AI.Agents", + "doc": "The VectorStoreFileBatch_object", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "296", + "kind": "enum", + "name": "VectorStoreFileBatchStatus", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatchStatus", + "valueType": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "298", + "kind": "enumvalue", + "name": "inProgress", + "value": "in_progress", + "valueType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "296" + }, + "doc": "The vector store is still processing this file batch.", + "decorators": [] + }, + { + "$id": "300", + "kind": "enumvalue", + "name": "completed", + "value": "completed", + "valueType": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "296" + }, + "doc": "the vector store file batch is ready for use.", + "decorators": [] + }, + { + "$id": "302", + "kind": "enumvalue", + "name": "cancelled", + "value": "cancelled", + "valueType": { + "$id": "303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "296" + }, + "doc": "The vector store file batch was cancelled.", + "decorators": [] + }, + { + "$id": "304", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "296" + }, + "doc": "The vector store file batch failed to process.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "The status of the vector store file batch.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "306", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "Azure.AI.Agents.Versions", + "valueType": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "308", + "kind": "enumvalue", + "name": "2024-07-01-preview", + "value": "2024-07-01-preview", + "valueType": { + "$id": "309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "306" + }, + "doc": "Azure AI API version 2024-07-01-preview.", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "doc": "Azure AI API versions", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", + "decorators": [] + }, + { + "$id": "310", + "kind": "enum", + "name": "ConnectionType", + "crossLanguageDefinitionId": "Azure.AI.Connections.ConnectionType", + "valueType": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "312", + "kind": "enumvalue", + "name": "AzureOpenAI", + "value": "AzureOpenAI", + "valueType": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "310" + }, + "doc": "Azure OpenAI Service", + "decorators": [] + }, + { + "$id": "314", + "kind": "enumvalue", + "name": "Serverless", + "value": "Serverless", + "valueType": { + "$id": "315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "310" + }, + "doc": "Serverless API Service", + "decorators": [] + }, + { + "$id": "316", + "kind": "enumvalue", + "name": "AzureBlobStorage", + "value": "AzureBlob", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "310" + }, + "doc": "Azure Blob Storage", + "decorators": [] + }, + { + "$id": "318", + "kind": "enumvalue", + "name": "AzureAIServices", + "value": "AIServices", + "valueType": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "310" + }, + "doc": "Azure AI Services", + "decorators": [] + }, + { + "$id": "320", + "kind": "enumvalue", + "name": "AzureAISearch", + "value": "CognitiveSearch", + "valueType": { + "$id": "321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "310" + }, + "doc": "Azure AI Search", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Connections", + "doc": "The Type (or category) of the connection", + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "322", + "kind": "enum", + "name": "AuthenticationType", + "crossLanguageDefinitionId": "Azure.AI.Connections.AuthenticationType", + "valueType": { + "$id": "323", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "324", + "kind": "enumvalue", + "name": "apiKey", + "value": "ApiKey", + "valueType": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "322" + }, + "doc": "API Key authentication", + "decorators": [] + }, + { + "$id": "326", + "kind": "enumvalue", + "name": "entraId", + "value": "AAD", + "valueType": { + "$id": "327", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "322" + }, + "doc": "Entra ID authentication (formerly known as AAD)", + "decorators": [] + }, + { + "$id": "328", + "kind": "enumvalue", + "name": "SAS", + "value": "SAS", + "valueType": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "322" + }, + "doc": "Shared Access Signature (SAS) authentication", + "decorators": [] + }, + { + "$id": "330", + "kind": "enumvalue", + "name": "None", + "value": "None", + "valueType": { + "$id": "331", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "322" + }, + "doc": "No authentication", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Connections", + "doc": "Authentication type used by Azure AI service to connect to another service", + "isFixed": true, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "332", + "kind": "enum", + "name": "Frequency", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Frequency", + "valueType": { + "$id": "333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "334", + "kind": "enumvalue", + "name": "Month", + "value": "Month", + "valueType": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "332" + }, + "decorators": [] + }, + { + "$id": "336", + "kind": "enumvalue", + "name": "Week", + "value": "Week", + "valueType": { + "$id": "337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "332" + }, + "decorators": [] + }, + { + "$id": "338", + "kind": "enumvalue", + "name": "Day", + "value": "Day", + "valueType": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "332" + }, + "decorators": [] + }, + { + "$id": "340", + "kind": "enumvalue", + "name": "Hour", + "value": "Hour", + "valueType": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "332" + }, + "decorators": [] + }, + { + "$id": "342", + "kind": "enumvalue", + "name": "Minute", + "value": "Minute", + "valueType": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "332" + }, + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Evaluations", + "doc": "Frequency of the schedule - day, week, month, hour, minute", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "344", + "kind": "enum", + "name": "WeekDays", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.WeekDays", + "valueType": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "346", + "kind": "enumvalue", + "name": "Monday", + "value": "Monday", + "valueType": { + "$id": "347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "348", + "kind": "enumvalue", + "name": "Tuesday", + "value": "Tuesday", + "valueType": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "350", + "kind": "enumvalue", + "name": "Wednesday", + "value": "Wednesday", + "valueType": { + "$id": "351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "352", + "kind": "enumvalue", + "name": "Thursday", + "value": "Thursday", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "354", + "kind": "enumvalue", + "name": "Friday", + "value": "Friday", + "valueType": { + "$id": "355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "356", + "kind": "enumvalue", + "name": "Saturday", + "value": "Saturday", + "valueType": { + "$id": "357", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + }, + { + "$id": "358", + "kind": "enumvalue", + "name": "Sunday", + "value": "Sunday", + "valueType": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "344" + }, + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Evaluations", + "doc": "WeekDay of the schedule - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + } + ], + "Models": [ + { + "$id": "360", + "kind": "model", + "name": "ToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolDefinition", + "usage": "Input,Output,Json", + "doc": "An abstract representation of an input tool definition that an agent can use.", + "decorators": [], + "discriminatorProperty": { + "$id": "361", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "362", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolDefinition.type", + "serializationOptions": { + "$id": "363", + "json": { + "$id": "364", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "361" + } + ], + "discriminatedSubtypes": { + "$id": "365", + "code_interpreter": { + "$id": "366", + "kind": "model", + "name": "CodeInterpreterToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.CodeInterpreterToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a code interpreter tool as used to configure an agent.", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "367", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'code_interpreter'.", + "type": { + "$id": "368", + "kind": "constant", + "valueType": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "code_interpreter", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.CodeInterpreterToolDefinition.type", + "serializationOptions": { + "$id": "370", + "json": { + "$id": "371", + "name": "type" + } + } + } + ] + }, + "file_search": { + "$id": "372", + "kind": "model", + "name": "FileSearchToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a file search tool as used to configure an agent.", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "373", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'file_search'.", + "type": { + "$id": "374", + "kind": "constant", + "valueType": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file_search", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinition.type", + "serializationOptions": { + "$id": "376", + "json": { + "$id": "377", + "name": "type" + } + } + }, + { + "$id": "378", + "kind": "property", + "name": "fileSearch", + "serializedName": "file_search", + "doc": "Options overrides for the file search tool.", + "type": { + "$id": "379", + "kind": "model", + "name": "FileSearchToolDefinitionDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinitionDetails", + "usage": "Input,Output,Json", + "doc": "Options overrides for the file search tool.", + "decorators": [], + "properties": [ + { + "$id": "380", + "kind": "property", + "name": "maxNumResults", + "serializedName": "max_num_results", + "doc": "The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive.\n\nNote that the file search tool may output fewer than `max_num_results` results. See the file search tool documentation for more information.", + "type": { + "$id": "381", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinitionDetails.maxNumResults", + "serializationOptions": { + "$id": "382", + "json": { + "$id": "383", + "name": "max_num_results" + } + } + }, + { + "$id": "384", + "kind": "property", + "name": "rankingOptions", + "serializedName": "ranking_options", + "doc": "Ranking options for file search.", + "type": { + "$id": "385", + "kind": "model", + "name": "FileSearchRankingOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchRankingOptions", + "usage": "Input,Output,Json", + "doc": "Ranking options for file search.", + "decorators": [], + "properties": [ + { + "$id": "386", + "kind": "property", + "name": "ranker", + "serializedName": "ranker", + "doc": "File search ranker.", + "type": { + "$id": "387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchRankingOptions.ranker", + "serializationOptions": { + "$id": "388", + "json": { + "$id": "389", + "name": "ranker" + } + } + }, + { + "$id": "390", + "kind": "property", + "name": "scoreThreshold", + "serializedName": "score_threshold", + "doc": "Ranker search threshold.", + "type": { + "$id": "391", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchRankingOptions.scoreThreshold", + "serializationOptions": { + "$id": "392", + "json": { + "$id": "393", + "name": "score_threshold" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinitionDetails.rankingOptions", + "serializationOptions": { + "$id": "394", + "json": { + "$id": "395", + "name": "ranking_options" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolDefinition.fileSearch", + "serializationOptions": { + "$id": "396", + "json": { + "$id": "397", + "name": "file_search" + } + } + } + ] + }, + "function": { + "$id": "398", + "kind": "model", + "name": "FunctionToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a function tool as used to configure an agent.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "399", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'function'.", + "type": { + "$id": "400", + "kind": "constant", + "valueType": { + "$id": "401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionToolDefinition.type", + "serializationOptions": { + "$id": "402", + "json": { + "$id": "403", + "name": "type" + } + } + }, + { + "$id": "404", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The definition of the concrete function that the function tool should call.", + "type": { + "$id": "405", + "kind": "model", + "name": "FunctionDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a function.", + "decorators": [], + "properties": [ + { + "$id": "406", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to be called.", + "type": { + "$id": "407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionDefinition.name", + "serializationOptions": { + "$id": "408", + "json": { + "$id": "409", + "name": "name" + } + } + }, + { + "$id": "410", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the function does, used by the model to choose when and how to call the function.", + "type": { + "$id": "411", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionDefinition.description", + "serializationOptions": { + "$id": "412", + "json": { + "$id": "413", + "name": "description" + } + } + }, + { + "$id": "414", + "kind": "property", + "name": "parameters", + "serializedName": "parameters", + "doc": "The parameters the functions accepts, described as a JSON Schema object.", + "type": { + "$id": "415", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionDefinition.parameters", + "serializationOptions": { + "$id": "416", + "json": { + "$id": "417", + "name": "parameters" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionToolDefinition.function", + "serializationOptions": { + "$id": "418", + "json": { + "$id": "419", + "name": "function" + } + } + } + ] + }, + "bing_grounding": { + "$id": "420", + "kind": "model", + "name": "BingGroundingToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.BingGroundingToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a bing grounding search tool as used to configure an agent.", + "discriminatorValue": "bing_grounding", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "421", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'bing_grounding'.", + "type": { + "$id": "422", + "kind": "constant", + "valueType": { + "$id": "423", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "bing_grounding", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.BingGroundingToolDefinition.type", + "serializationOptions": { + "$id": "424", + "json": { + "$id": "425", + "name": "type" + } + } + }, + { + "$id": "426", + "kind": "property", + "name": "bing_grounding", + "serializedName": "bing_grounding", + "doc": "The list of connections used by the bing grounding tool.", + "type": { + "$id": "427", + "kind": "model", + "name": "ToolConnectionList", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolConnectionList", + "usage": "Input,Output,Json", + "doc": "A set of connection resources currently used by either the `bing_grounding`, `fabric_aiskill`, or `sharepoint_grounding` tools.", + "decorators": [], + "properties": [ + { + "$id": "428", + "kind": "property", + "name": "connectionList", + "serializedName": "connections", + "doc": "The connections attached to this tool. There can be a maximum of 1 connection\nresource attached to the tool.", + "type": { + "$id": "429", + "kind": "array", + "name": "ArrayToolConnection", + "valueType": { + "$id": "430", + "kind": "model", + "name": "ToolConnection", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolConnection", + "usage": "Input,Output,Json", + "doc": "A connection resource.", + "decorators": [], + "properties": [ + { + "$id": "431", + "kind": "property", + "name": "connectionId", + "serializedName": "connection_id", + "doc": "A connection in a ToolConnectionList attached to this tool.", + "type": { + "$id": "432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolConnection.connectionId", + "serializationOptions": { + "$id": "433", + "json": { + "$id": "434", + "name": "connection_id" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolConnectionList.connectionList", + "serializationOptions": { + "$id": "435", + "json": { + "$id": "436", + "name": "connections" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.BingGroundingToolDefinition.bing_grounding", + "serializationOptions": { + "$id": "437", + "json": { + "$id": "438", + "name": "bing_grounding" + } + } + } + ] + }, + "fabric_aiskill": { + "$id": "439", + "kind": "model", + "name": "MicrosoftFabricToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MicrosoftFabricToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a Microsoft Fabric tool as used to configure an agent.", + "discriminatorValue": "fabric_aiskill", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "440", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'fabric_aiskill'.", + "type": { + "$id": "441", + "kind": "constant", + "valueType": { + "$id": "442", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "fabric_aiskill", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MicrosoftFabricToolDefinition.type", + "serializationOptions": { + "$id": "443", + "json": { + "$id": "444", + "name": "type" + } + } + }, + { + "$id": "445", + "kind": "property", + "name": "fabric_aiskill", + "serializedName": "fabric_aiskill", + "doc": "The list of connections used by the Microsoft Fabric tool.", + "type": { + "$ref": "427" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MicrosoftFabricToolDefinition.fabric_aiskill", + "serializationOptions": { + "$id": "446", + "json": { + "$id": "447", + "name": "fabric_aiskill" + } + } + } + ] + }, + "sharepoint_grounding": { + "$id": "448", + "kind": "model", + "name": "SharepointToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.SharepointToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a sharepoint tool as used to configure an agent.", + "discriminatorValue": "sharepoint_grounding", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "449", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'sharepoint_grounding'.", + "type": { + "$id": "450", + "kind": "constant", + "valueType": { + "$id": "451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "sharepoint_grounding", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.SharepointToolDefinition.type", + "serializationOptions": { + "$id": "452", + "json": { + "$id": "453", + "name": "type" + } + } + }, + { + "$id": "454", + "kind": "property", + "name": "sharepoint_grounding", + "serializedName": "sharepoint_grounding", + "doc": "The list of connections used by the SharePoint tool.", + "type": { + "$ref": "427" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.SharepointToolDefinition.sharepoint_grounding", + "serializationOptions": { + "$id": "455", + "json": { + "$id": "456", + "name": "sharepoint_grounding" + } + } + } + ] + }, + "azure_ai_search": { + "$id": "457", + "kind": "model", + "name": "AzureAISearchToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureAISearchToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for an Azure AI search tool as used to configure an agent.", + "discriminatorValue": "azure_ai_search", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "458", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'azure_ai_search'.", + "type": { + "$id": "459", + "kind": "constant", + "valueType": { + "$id": "460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "azure_ai_search", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureAISearchToolDefinition.type", + "serializationOptions": { + "$id": "461", + "json": { + "$id": "462", + "name": "type" + } + } + } + ] + }, + "openapi": { + "$id": "463", + "kind": "model", + "name": "OpenApiToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for an OpenAPI tool as used to configure an agent.", + "discriminatorValue": "openapi", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "464", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'openapi'.", + "type": { + "$id": "465", + "kind": "constant", + "valueType": { + "$id": "466", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "openapi", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiToolDefinition.type", + "serializationOptions": { + "$id": "467", + "json": { + "$id": "468", + "name": "type" + } + } + }, + { + "$id": "469", + "kind": "property", + "name": "openapi", + "serializedName": "openapi", + "doc": "The openapi function definition.", + "type": { + "$id": "470", + "kind": "model", + "name": "OpenApiFunctionDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiFunctionDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for an openapi function.", + "decorators": [], + "properties": [ + { + "$id": "471", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to be called.", + "type": { + "$id": "472", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiFunctionDefinition.name", + "serializationOptions": { + "$id": "473", + "json": { + "$id": "474", + "name": "name" + } + } + }, + { + "$id": "475", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the function does, used by the model to choose when and how to call the function.", + "type": { + "$id": "476", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiFunctionDefinition.description", + "serializationOptions": { + "$id": "477", + "json": { + "$id": "478", + "name": "description" + } + } + }, + { + "$id": "479", + "kind": "property", + "name": "spec", + "serializedName": "spec", + "doc": "The openapi function shape, described as a JSON Schema object.", + "type": { + "$id": "480", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiFunctionDefinition.spec", + "serializationOptions": { + "$id": "481", + "json": { + "$id": "482", + "name": "spec" + } + } + }, + { + "$id": "483", + "kind": "property", + "name": "auth", + "serializedName": "auth", + "doc": "Open API authentication details", + "type": { + "$id": "484", + "kind": "model", + "name": "OpenApiAuthDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiAuthDetails", + "usage": "Input,Output,Json", + "doc": "authentication details for OpenApiFunctionDefinition", + "decorators": [], + "discriminatorProperty": { + "$id": "485", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of authentication, must be anonymous/connection/managed_identity", + "type": { + "$ref": "2" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiAuthDetails.type", + "serializationOptions": { + "$id": "486", + "json": { + "$id": "487", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "485" + } + ], + "discriminatedSubtypes": { + "$id": "488", + "anonymous": { + "$id": "489", + "kind": "model", + "name": "OpenApiAnonymousAuthDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiAnonymousAuthDetails", + "usage": "Input,Output,Json", + "doc": "Security details for OpenApi anonymous authentication", + "discriminatorValue": "anonymous", + "decorators": [], + "baseModel": { + "$ref": "484" + }, + "properties": [ + { + "$id": "490", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'anonymous'.", + "type": { + "$id": "491", + "kind": "constant", + "valueType": { + "$id": "492", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "anonymous", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiAnonymousAuthDetails.type", + "serializationOptions": { + "$id": "493", + "json": { + "$id": "494", + "name": "type" + } + } + } + ] + }, + "connection": { + "$id": "495", + "kind": "model", + "name": "OpenApiConnectionAuthDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiConnectionAuthDetails", + "usage": "Input,Output,Json", + "doc": "Security details for OpenApi connection authentication", + "discriminatorValue": "connection", + "decorators": [], + "baseModel": { + "$ref": "484" + }, + "properties": [ + { + "$id": "496", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'connection'.", + "type": { + "$id": "497", + "kind": "constant", + "valueType": { + "$id": "498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "connection", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiConnectionAuthDetails.type", + "serializationOptions": { + "$id": "499", + "json": { + "$id": "500", + "name": "type" + } + } + }, + { + "$id": "501", + "kind": "property", + "name": "security_scheme", + "serializedName": "security_scheme", + "doc": "Connection auth security details", + "type": { + "$id": "502", + "kind": "model", + "name": "OpenApiConnectionSecurityScheme", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiConnectionSecurityScheme", + "usage": "Input,Output,Json", + "doc": "Security scheme for OpenApi managed_identity authentication", + "decorators": [], + "properties": [ + { + "$id": "503", + "kind": "property", + "name": "connection_id", + "serializedName": "connection_id", + "doc": "Connection id for Connection auth type", + "type": { + "$id": "504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiConnectionSecurityScheme.connection_id", + "serializationOptions": { + "$id": "505", + "json": { + "$id": "506", + "name": "connection_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiConnectionAuthDetails.security_scheme", + "serializationOptions": { + "$id": "507", + "json": { + "$id": "508", + "name": "security_scheme" + } + } + } + ] + }, + "managed_identity": { + "$id": "509", + "kind": "model", + "name": "OpenApiManagedAuthDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiManagedAuthDetails", + "usage": "Input,Output,Json", + "doc": "Security details for OpenApi managed_identity authentication", + "discriminatorValue": "managed_identity", + "decorators": [], + "baseModel": { + "$ref": "484" + }, + "properties": [ + { + "$id": "510", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'managed_identity'.", + "type": { + "$id": "511", + "kind": "constant", + "valueType": { + "$id": "512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "managed_identity", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiManagedAuthDetails.type", + "serializationOptions": { + "$id": "513", + "json": { + "$id": "514", + "name": "type" + } + } + }, + { + "$id": "515", + "kind": "property", + "name": "security_scheme", + "serializedName": "security_scheme", + "doc": "Connection auth security details", + "type": { + "$id": "516", + "kind": "model", + "name": "OpenApiManagedSecurityScheme", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiManagedSecurityScheme", + "usage": "Input,Output,Json", + "doc": "Security scheme for OpenApi managed_identity authentication", + "decorators": [], + "properties": [ + { + "$id": "517", + "kind": "property", + "name": "audience", + "serializedName": "audience", + "doc": "Authentication scope for managed_identity auth type", + "type": { + "$id": "518", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiManagedSecurityScheme.audience", + "serializationOptions": { + "$id": "519", + "json": { + "$id": "520", + "name": "audience" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiManagedAuthDetails.security_scheme", + "serializationOptions": { + "$id": "521", + "json": { + "$id": "522", + "name": "security_scheme" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiFunctionDefinition.auth", + "serializationOptions": { + "$id": "523", + "json": { + "$id": "524", + "name": "auth" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenApiToolDefinition.openapi", + "serializationOptions": { + "$id": "525", + "json": { + "$id": "526", + "name": "openapi" + } + } + } + ] + }, + "azure_function": { + "$id": "527", + "kind": "model", + "name": "AzureFunctionToolDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionToolDefinition", + "usage": "Input,Output,Json", + "doc": "The input definition information for a azure function tool as used to configure an agent.", + "discriminatorValue": "azure_function", + "decorators": [], + "baseModel": { + "$ref": "360" + }, + "properties": [ + { + "$id": "528", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'azure_function'.", + "type": { + "$id": "529", + "kind": "constant", + "valueType": { + "$id": "530", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "azure_function", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionToolDefinition.type", + "serializationOptions": { + "$id": "531", + "json": { + "$id": "532", + "name": "type" + } + } + }, + { + "$id": "533", + "kind": "property", + "name": "azureFunction", + "serializedName": "azure_function", + "doc": "The definition of the concrete function that the function tool should call.", + "type": { + "$id": "534", + "kind": "model", + "name": "AzureFunctionDefinition", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionDefinition", + "usage": "Input,Output,Json", + "doc": "The definition of Azure function.", + "decorators": [], + "properties": [ + { + "$id": "535", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The definition of azure function and its parameters.", + "type": { + "$ref": "405" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionDefinition.function", + "serializationOptions": { + "$id": "536", + "json": { + "$id": "537", + "name": "function" + } + } + }, + { + "$id": "538", + "kind": "property", + "name": "inputBinding", + "serializedName": "input_binding", + "doc": "Input storage queue. The queue storage trigger runs a function as messages are added to it.", + "type": { + "$id": "539", + "kind": "model", + "name": "AzureFunctionBinding", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionBinding", + "usage": "Input,Output,Json", + "doc": "The structure for keeping storage queue name and URI.", + "decorators": [], + "properties": [ + { + "$id": "540", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of binding, which is always 'storage_queue'.", + "type": { + "$id": "541", + "kind": "constant", + "valueType": { + "$ref": "10" + }, + "value": "storage_queue", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionBinding.type", + "serializationOptions": { + "$id": "542", + "json": { + "$id": "543", + "name": "type" + } + } + }, + { + "$id": "544", + "kind": "property", + "name": "storageQueue", + "serializedName": "storage_queue", + "doc": "Storage queue.", + "type": { + "$id": "545", + "kind": "model", + "name": "AzureFunctionStorageQueue", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionStorageQueue", + "usage": "Input,Output,Json", + "doc": "The structure for keeping storage queue name and URI.", + "decorators": [], + "properties": [ + { + "$id": "546", + "kind": "property", + "name": "storageServiceEndpoint", + "serializedName": "queue_service_endpoint", + "doc": "URI to the Azure Storage Queue service allowing you to manipulate a queue.", + "type": { + "$id": "547", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionStorageQueue.storageServiceEndpoint", + "serializationOptions": { + "$id": "548", + "json": { + "$id": "549", + "name": "queue_service_endpoint" + } + } + }, + { + "$id": "550", + "kind": "property", + "name": "queueName", + "serializedName": "queue_name", + "doc": "The name of an Azure function storage queue.", + "type": { + "$id": "551", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionStorageQueue.queueName", + "serializationOptions": { + "$id": "552", + "json": { + "$id": "553", + "name": "queue_name" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionBinding.storageQueue", + "serializationOptions": { + "$id": "554", + "json": { + "$id": "555", + "name": "storage_queue" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionDefinition.inputBinding", + "serializationOptions": { + "$id": "556", + "json": { + "$id": "557", + "name": "input_binding" + } + } + }, + { + "$id": "558", + "kind": "property", + "name": "outputBinding", + "serializedName": "output_binding", + "doc": "Output storage queue. The function writes output to this queue when the input items are processed.", + "type": { + "$ref": "539" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionDefinition.outputBinding", + "serializationOptions": { + "$id": "559", + "json": { + "$id": "560", + "name": "output_binding" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureFunctionToolDefinition.azureFunction", + "serializationOptions": { + "$id": "561", + "json": { + "$id": "562", + "name": "azure_function" + } + } + } + ] + } + } + }, + { + "$ref": "366" + }, + { + "$ref": "372" + }, + { + "$ref": "379" + }, + { + "$ref": "385" + }, + { + "$ref": "398" + }, + { + "$ref": "405" + }, + { + "$ref": "420" + }, + { + "$ref": "427" + }, + { + "$ref": "430" + }, + { + "$ref": "439" + }, + { + "$ref": "448" + }, + { + "$ref": "457" + }, + { + "$ref": "463" + }, + { + "$ref": "470" + }, + { + "$ref": "484" + }, + { + "$ref": "489" + }, + { + "$ref": "495" + }, + { + "$ref": "502" + }, + { + "$ref": "509" + }, + { + "$ref": "516" + }, + { + "$ref": "527" + }, + { + "$ref": "534" + }, + { + "$ref": "539" + }, + { + "$ref": "545" + }, + { + "$id": "563", + "kind": "model", + "name": "ToolResources", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolResources", + "usage": "Input,Output,Json", + "doc": "A set of resources that are used by the agent's tools. The resources are specific to the type of\ntool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search`\ntool requires a list of vector store IDs.", + "decorators": [], + "properties": [ + { + "$id": "564", + "kind": "property", + "name": "codeInterpreter", + "serializedName": "code_interpreter", + "doc": "Resources to be used by the `code_interpreter` tool consisting of file IDs.", + "type": { + "$id": "565", + "kind": "model", + "name": "CodeInterpreterToolResource", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.CodeInterpreterToolResource", + "usage": "Input,Output,Json", + "doc": "A set of resources that are used by the `code_interpreter` tool.", + "decorators": [], + "properties": [ + { + "$id": "566", + "kind": "property", + "name": "fileIds", + "serializedName": "file_ids", + "doc": "A list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files\nassociated with the tool.", + "type": { + "$id": "567", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "568", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.CodeInterpreterToolResource.fileIds", + "serializationOptions": { + "$id": "569", + "json": { + "$id": "570", + "name": "file_ids" + } + } + }, + { + "$id": "571", + "kind": "property", + "name": "dataSources", + "serializedName": "data_sources", + "doc": "The data sources to be used. This option is mutually exclusive with the `fileIds` property.", + "type": { + "$id": "572", + "kind": "array", + "name": "ArrayVectorStoreDataSource", + "valueType": { + "$id": "573", + "kind": "model", + "name": "VectorStoreDataSource", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDataSource", + "usage": "Input,Output,Json", + "doc": "The structure, containing Azure asset URI path and the asset type of the file used as a data source\nfor the enterprise file search.", + "decorators": [], + "properties": [ + { + "$id": "574", + "kind": "property", + "name": "assetIdentifier", + "serializedName": "uri", + "doc": "Asset URI.", + "type": { + "$id": "575", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDataSource.assetIdentifier", + "serializationOptions": { + "$id": "576", + "json": { + "$id": "577", + "name": "uri" + } + } + }, + { + "$id": "578", + "kind": "property", + "name": "assetType", + "serializedName": "type", + "doc": "The asset type", + "type": { + "$ref": "13" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDataSource.assetType", + "serializationOptions": { + "$id": "579", + "json": { + "$id": "580", + "name": "type" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.CodeInterpreterToolResource.dataSources", + "serializationOptions": { + "$id": "581", + "json": { + "$id": "582", + "name": "data_sources" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolResources.codeInterpreter", + "serializationOptions": { + "$id": "583", + "json": { + "$id": "584", + "name": "code_interpreter" + } + } + }, + { + "$id": "585", + "kind": "property", + "name": "fileSearch", + "serializedName": "file_search", + "doc": "Resources to be used by the `file_search` tool consisting of vector store IDs.", + "type": { + "$id": "586", + "kind": "model", + "name": "FileSearchToolResource", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolResource", + "usage": "Input,Output,Json", + "doc": "A set of resources that are used by the `file_search` tool.", + "decorators": [], + "properties": [ + { + "$id": "587", + "kind": "property", + "name": "vectorStoreIds", + "serializedName": "vector_store_ids", + "doc": "The ID of the vector store attached to this agent. There can be a maximum of 1 vector\nstore attached to the agent.", + "type": { + "$id": "588", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolResource.vectorStoreIds", + "serializationOptions": { + "$id": "590", + "json": { + "$id": "591", + "name": "vector_store_ids" + } + } + }, + { + "$id": "592", + "kind": "property", + "name": "vectorStores", + "serializedName": "vector_stores", + "doc": "The list of vector store configuration objects from Azure.\nThis list is limited to one element.\nThe only element of this list contains the list of azure asset IDs used by the search tool.", + "type": { + "$id": "593", + "kind": "array", + "name": "ArrayVectorStoreConfigurations", + "valueType": { + "$id": "594", + "kind": "model", + "name": "VectorStoreConfigurations", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreConfigurations", + "usage": "Input,Output,Json", + "doc": "The structure, containing the list of vector storage configurations i.e. the list of azure asset IDs.", + "decorators": [], + "properties": [ + { + "$id": "595", + "kind": "property", + "name": "storeName", + "serializedName": "name", + "doc": "Name", + "type": { + "$id": "596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreConfigurations.storeName", + "serializationOptions": { + "$id": "597", + "json": { + "$id": "598", + "name": "name" + } + } + }, + { + "$id": "599", + "kind": "property", + "name": "storeConfiguration", + "serializedName": "configuration", + "doc": "Configurations", + "type": { + "$id": "600", + "kind": "model", + "name": "VectorStoreConfiguration", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreConfiguration", + "usage": "Input,Output,Json", + "doc": "Vector storage configuration is the list of data sources, used when multiple\nfiles can be used for the enterprise file search.", + "decorators": [], + "properties": [ + { + "$id": "601", + "kind": "property", + "name": "dataSources", + "serializedName": "data_sources", + "doc": "Data sources", + "type": { + "$id": "602", + "kind": "array", + "name": "ArrayVectorStoreDataSource", + "valueType": { + "$ref": "573" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreConfiguration.dataSources", + "serializationOptions": { + "$id": "603", + "json": { + "$id": "604", + "name": "data_sources" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreConfigurations.storeConfiguration", + "serializationOptions": { + "$id": "605", + "json": { + "$id": "606", + "name": "configuration" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolResource.vectorStores", + "serializationOptions": { + "$id": "607", + "json": { + "$id": "608", + "name": "vector_stores" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolResources.fileSearch", + "serializationOptions": { + "$id": "609", + "json": { + "$id": "610", + "name": "file_search" + } + } + }, + { + "$id": "611", + "kind": "property", + "name": "azureAISearch", + "serializedName": "azure_ai_search", + "doc": "Resources to be used by the `azure_ai_search` tool consisting of index IDs and names.", + "type": { + "$id": "612", + "kind": "model", + "name": "AzureAISearchResource", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureAISearchResource", + "usage": "Input,Output,Json", + "doc": "A set of index resources used by the `azure_ai_search` tool.", + "decorators": [], + "properties": [ + { + "$id": "613", + "kind": "property", + "name": "indexList", + "serializedName": "indexes", + "doc": "The indices attached to this agent. There can be a maximum of 1 index\nresource attached to the agent.", + "type": { + "$id": "614", + "kind": "array", + "name": "ArrayIndexResource", + "valueType": { + "$id": "615", + "kind": "model", + "name": "IndexResource", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.IndexResource", + "usage": "Input,Output,Json", + "doc": "A Index resource.", + "decorators": [], + "properties": [ + { + "$id": "616", + "kind": "property", + "name": "indexConnectionId", + "serializedName": "index_connection_id", + "doc": "An index connection id in an IndexResource attached to this agent.", + "type": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.IndexResource.indexConnectionId", + "serializationOptions": { + "$id": "618", + "json": { + "$id": "619", + "name": "index_connection_id" + } + } + }, + { + "$id": "620", + "kind": "property", + "name": "indexName", + "serializedName": "index_name", + "doc": "The name of an index in an IndexResource attached to this agent.", + "type": { + "$id": "621", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.IndexResource.indexName", + "serializationOptions": { + "$id": "622", + "json": { + "$id": "623", + "name": "index_name" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AzureAISearchResource.indexList", + "serializationOptions": { + "$id": "624", + "json": { + "$id": "625", + "name": "indexes" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolResources.azureAISearch", + "serializationOptions": { + "$id": "626", + "json": { + "$id": "627", + "name": "azure_ai_search" + } + } + } + ] + }, + { + "$ref": "565" + }, + { + "$ref": "573" + }, + { + "$ref": "586" + }, + { + "$ref": "594" + }, + { + "$ref": "600" + }, + { + "$ref": "612" + }, + { + "$ref": "615" + }, + { + "$id": "628", + "kind": "model", + "name": "AgentsApiResponseFormat", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsApiResponseFormat", + "usage": "Input,Output,Json", + "doc": "An object describing the expected output of the model. If `json_object` only `function` type `tools` are allowed to be passed to the Run.\nIf `text` the model can return text or any value needed.", + "decorators": [], + "properties": [ + { + "$id": "629", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Must be one of `text` or `json_object`.", + "type": { + "$ref": "25" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsApiResponseFormat.type", + "serializationOptions": { + "$id": "630", + "json": { + "$id": "631", + "name": "type" + } + } + } + ] + }, + { + "$id": "632", + "kind": "model", + "name": "ResponseFormatJsonSchemaType", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchemaType", + "usage": "Input,Output,Json", + "doc": "The type of response format being defined: `json_schema`", + "decorators": [], + "properties": [ + { + "$id": "633", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type", + "type": { + "$id": "634", + "kind": "constant", + "valueType": { + "$ref": "31" + }, + "value": "json_schema", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchemaType.type", + "serializationOptions": { + "$id": "635", + "json": { + "$id": "636", + "name": "type" + } + } + }, + { + "$id": "637", + "kind": "property", + "name": "jsonSchema", + "serializedName": "json_schema", + "doc": "The JSON schema, describing response format.", + "type": { + "$id": "638", + "kind": "model", + "name": "ResponseFormatJsonSchema", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchema", + "usage": "Input,Output,Json", + "doc": "A description of what the response format is for, used by the model to determine how to respond in the format.", + "decorators": [], + "properties": [ + { + "$id": "639", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "A description of what the response format is for, used by the model to determine how to respond in the format.", + "type": { + "$id": "640", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchema.description", + "serializationOptions": { + "$id": "641", + "json": { + "$id": "642", + "name": "description" + } + } + }, + { + "$id": "643", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of a schema.", + "type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchema.name", + "serializationOptions": { + "$id": "645", + "json": { + "$id": "646", + "name": "name" + } + } + }, + { + "$id": "647", + "kind": "property", + "name": "schema", + "serializedName": "schema", + "doc": "The JSON schema object, describing the response format.", + "type": { + "$id": "648", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchema.schema", + "serializationOptions": { + "$id": "649", + "json": { + "$id": "650", + "name": "schema" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ResponseFormatJsonSchemaType.jsonSchema", + "serializationOptions": { + "$id": "651", + "json": { + "$id": "652", + "name": "json_schema" + } + } + } + ] + }, + { + "$ref": "638" + }, + { + "$id": "653", + "kind": "model", + "name": "CreateAgentRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createAgent.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "654", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the model to use.", + "type": { + "$id": "655", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.model", + "serializationOptions": { + "$id": "656", + "json": { + "$id": "657", + "name": "model" + } + } + }, + { + "$id": "658", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the new agent.", + "type": { + "$id": "659", + "kind": "nullable", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.name", + "serializationOptions": { + "$id": "661", + "json": { + "$id": "662", + "name": "name" + } + } + }, + { + "$id": "663", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the new agent.", + "type": { + "$id": "664", + "kind": "nullable", + "type": { + "$id": "665", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.description", + "serializationOptions": { + "$id": "666", + "json": { + "$id": "667", + "name": "description" + } + } + }, + { + "$id": "668", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The system instructions for the new agent to use.", + "type": { + "$id": "669", + "kind": "nullable", + "type": { + "$id": "670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.instructions", + "serializationOptions": { + "$id": "671", + "json": { + "$id": "672", + "name": "instructions" + } + } + }, + { + "$id": "673", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The collection of tools to enable for the new agent.", + "type": { + "$id": "674", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.tools", + "serializationOptions": { + "$id": "675", + "json": { + "$id": "676", + "name": "tools" + } + } + }, + { + "$id": "677", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter`\ntool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "678", + "kind": "nullable", + "type": { + "$ref": "563" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.toolResources", + "serializationOptions": { + "$id": "679", + "json": { + "$id": "680", + "name": "tool_resources" + } + } + }, + { + "$id": "681", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,\nwhile lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "682", + "kind": "nullable", + "type": { + "$id": "683", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.temperature", + "serializationOptions": { + "$id": "684", + "json": { + "$id": "685", + "name": "temperature" + } + } + }, + { + "$id": "686", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.\nSo 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "687", + "kind": "nullable", + "type": { + "$id": "688", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.topP", + "serializationOptions": { + "$id": "689", + "json": { + "$id": "690", + "name": "top_p" + } + } + }, + { + "$id": "691", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "The response format of the tool calls used by this agent.", + "type": { + "$id": "692", + "kind": "nullable", + "type": { + "$id": "693", + "kind": "union", + "name": "AgentsApiResponseFormatOption", + "variantTypes": [ + { + "$id": "694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "19" + }, + { + "$ref": "628" + }, + { + "$ref": "632" + } + ], + "clientNamespace": "Azure.AI.Agents", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.responseFormat", + "serializationOptions": { + "$id": "695", + "json": { + "$id": "696", + "name": "response_format" + } + } + }, + { + "$id": "697", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$id": "698", + "kind": "nullable", + "type": { + "$id": "699", + "kind": "dict", + "keyType": { + "$id": "700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "701", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createAgent.Request.anonymous.metadata", + "serializationOptions": { + "$id": "702", + "json": { + "$id": "703", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "704", + "kind": "model", + "name": "Agent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent", + "usage": "Output,Json", + "doc": "Represents an agent that can call the model and use tools.", + "decorators": [], + "properties": [ + { + "$id": "705", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "706", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.id", + "serializationOptions": { + "$id": "707", + "json": { + "$id": "708", + "name": "id" + } + } + }, + { + "$id": "709", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always assistant.", + "type": { + "$id": "710", + "kind": "constant", + "valueType": { + "$ref": "34" + }, + "value": "assistant", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.object", + "serializationOptions": { + "$id": "711", + "json": { + "$id": "712", + "name": "object" + } + } + }, + { + "$id": "713", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "714", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "715", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.createdAt", + "serializationOptions": { + "$id": "716", + "json": { + "$id": "717", + "name": "created_at" + } + } + }, + { + "$id": "718", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the agent.", + "type": { + "$id": "719", + "kind": "nullable", + "type": { + "$id": "720", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.name", + "serializationOptions": { + "$id": "721", + "json": { + "$id": "722", + "name": "name" + } + } + }, + { + "$id": "723", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The description of the agent.", + "type": { + "$id": "724", + "kind": "nullable", + "type": { + "$id": "725", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.description", + "serializationOptions": { + "$id": "726", + "json": { + "$id": "727", + "name": "description" + } + } + }, + { + "$id": "728", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the model to use.", + "type": { + "$id": "729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.model", + "serializationOptions": { + "$id": "730", + "json": { + "$id": "731", + "name": "model" + } + } + }, + { + "$id": "732", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The system instructions for the agent to use.", + "type": { + "$id": "733", + "kind": "nullable", + "type": { + "$id": "734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.instructions", + "serializationOptions": { + "$id": "735", + "json": { + "$id": "736", + "name": "instructions" + } + } + }, + { + "$id": "737", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The collection of tools enabled for the agent.", + "type": { + "$id": "738", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.tools", + "serializationOptions": { + "$id": "739", + "json": { + "$id": "740", + "name": "tools" + } + } + }, + { + "$id": "741", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example, the `code_interpreter`\ntool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$id": "742", + "kind": "nullable", + "type": { + "$ref": "563" + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.toolResources", + "serializationOptions": { + "$id": "743", + "json": { + "$id": "744", + "name": "tool_resources" + } + } + }, + { + "$id": "745", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,\nwhile lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "746", + "kind": "nullable", + "type": { + "$id": "747", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.temperature", + "serializationOptions": { + "$id": "748", + "json": { + "$id": "749", + "name": "temperature" + } + } + }, + { + "$id": "750", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.\nSo 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "751", + "kind": "nullable", + "type": { + "$id": "752", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.topP", + "serializationOptions": { + "$id": "753", + "json": { + "$id": "754", + "name": "top_p" + } + } + }, + { + "$id": "755", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "The response format of the tool calls used by this agent.", + "type": { + "$id": "756", + "kind": "nullable", + "type": { + "$ref": "693" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.responseFormat", + "serializationOptions": { + "$id": "757", + "json": { + "$id": "758", + "name": "response_format" + } + } + }, + { + "$id": "759", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$id": "760", + "kind": "nullable", + "type": { + "$id": "761", + "kind": "dict", + "keyType": { + "$id": "762", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "763", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.Agent.metadata", + "serializationOptions": { + "$id": "764", + "json": { + "$id": "765", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "766", + "kind": "model", + "name": "OpenAIPageableListOfAgent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "767", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "768", + "kind": "constant", + "valueType": { + "$ref": "43" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "769", + "json": { + "$id": "770", + "name": "object" + } + } + }, + { + "$id": "771", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "772", + "kind": "array", + "name": "ArrayAgent", + "valueType": { + "$ref": "704" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "773", + "json": { + "$id": "774", + "name": "data" + } + } + }, + { + "$id": "775", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "777", + "json": { + "$id": "778", + "name": "first_id" + } + } + }, + { + "$id": "779", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "780", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "781", + "json": { + "$id": "782", + "name": "last_id" + } + } + }, + { + "$id": "783", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "784", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "785", + "json": { + "$id": "786", + "name": "has_more" + } + } + } + ] + }, + { + "$id": "787", + "kind": "model", + "name": "UpdateAgentRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.updateAgent.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "788", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the model to use.", + "type": { + "$id": "789", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.model", + "serializationOptions": { + "$id": "790", + "json": { + "$id": "791", + "name": "model" + } + } + }, + { + "$id": "792", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The modified name for the agent to use.", + "type": { + "$id": "793", + "kind": "nullable", + "type": { + "$id": "794", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.name", + "serializationOptions": { + "$id": "795", + "json": { + "$id": "796", + "name": "name" + } + } + }, + { + "$id": "797", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "The modified description for the agent to use.", + "type": { + "$id": "798", + "kind": "nullable", + "type": { + "$id": "799", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.description", + "serializationOptions": { + "$id": "800", + "json": { + "$id": "801", + "name": "description" + } + } + }, + { + "$id": "802", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The modified system instructions for the new agent to use.", + "type": { + "$id": "803", + "kind": "nullable", + "type": { + "$id": "804", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.instructions", + "serializationOptions": { + "$id": "805", + "json": { + "$id": "806", + "name": "instructions" + } + } + }, + { + "$id": "807", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The modified collection of tools to enable for the agent.", + "type": { + "$id": "808", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.tools", + "serializationOptions": { + "$id": "809", + "json": { + "$id": "810", + "name": "tools" + } + } + }, + { + "$id": "811", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are used by the agent's tools. The resources are specific to the type of tool. For example,\nthe `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of vector store IDs.", + "type": { + "$ref": "563" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.toolResources", + "serializationOptions": { + "$id": "812", + "json": { + "$id": "813", + "name": "tool_resources" + } + } + }, + { + "$id": "814", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random,\nwhile lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "815", + "kind": "nullable", + "type": { + "$id": "816", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.temperature", + "serializationOptions": { + "$id": "817", + "json": { + "$id": "818", + "name": "temperature" + } + } + }, + { + "$id": "819", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.\nSo 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "820", + "kind": "nullable", + "type": { + "$id": "821", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.topP", + "serializationOptions": { + "$id": "822", + "json": { + "$id": "823", + "name": "top_p" + } + } + }, + { + "$id": "824", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "The response format of the tool calls used by this agent.", + "type": { + "$id": "825", + "kind": "nullable", + "type": { + "$ref": "693" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.responseFormat", + "serializationOptions": { + "$id": "826", + "json": { + "$id": "827", + "name": "response_format" + } + } + }, + { + "$id": "828", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateAgent.Request.anonymous.metadata", + "serializationOptions": { + "$id": "829", + "json": { + "$id": "830", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "831", + "kind": "model", + "name": "AgentDeletionStatus", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentDeletionStatus", + "usage": "Output,Json", + "doc": "The status of an agent deletion operation.", + "decorators": [], + "properties": [ + { + "$id": "832", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the resource specified for deletion.", + "type": { + "$id": "833", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentDeletionStatus.id", + "serializationOptions": { + "$id": "834", + "json": { + "$id": "835", + "name": "id" + } + } + }, + { + "$id": "836", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "A value indicating whether deletion was successful.", + "type": { + "$id": "837", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentDeletionStatus.deleted", + "serializationOptions": { + "$id": "838", + "json": { + "$id": "839", + "name": "deleted" + } + } + }, + { + "$id": "840", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'assistant.deleted'.", + "type": { + "$id": "841", + "kind": "constant", + "valueType": { + "$ref": "46" + }, + "value": "assistant.deleted", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentDeletionStatus.object", + "serializationOptions": { + "$id": "842", + "json": { + "$id": "843", + "name": "object" + } + } + } + ] + }, + { + "$id": "844", + "kind": "model", + "name": "ThreadMessageOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessageOptions", + "usage": "Input,Json", + "doc": "A single message within an agent thread, as provided during that thread's creation for its initial state.", + "decorators": [], + "properties": [ + { + "$id": "845", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most\ncases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the agent. Use this value to insert\nmessages from the agent into the\nconversation.", + "type": { + "$ref": "49" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessageOptions.role", + "serializationOptions": { + "$id": "846", + "json": { + "$id": "847", + "name": "role" + } + } + }, + { + "$id": "848", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The textual content of the initial message. Currently, robust input including images and annotated text may only be provided via\na separate call to the create message API.", + "type": { + "$id": "849", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessageOptions.content", + "serializationOptions": { + "$id": "850", + "json": { + "$id": "851", + "name": "content" + } + } + }, + { + "$id": "852", + "kind": "property", + "name": "attachments", + "serializedName": "attachments", + "doc": "A list of files attached to the message, and the tools they should be added to.", + "type": { + "$id": "853", + "kind": "nullable", + "type": { + "$id": "854", + "kind": "array", + "name": "ArrayMessageAttachment", + "valueType": { + "$id": "855", + "kind": "model", + "name": "MessageAttachment", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageAttachment", + "usage": "Input,Output,Json", + "doc": "This describes to which tools a file has been attached.", + "decorators": [], + "properties": [ + { + "$id": "856", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID of the file to attach to the message.", + "type": { + "$id": "857", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageAttachment.fileId", + "serializationOptions": { + "$id": "858", + "json": { + "$id": "859", + "name": "file_id" + } + } + }, + { + "$id": "860", + "kind": "property", + "name": "dataSource", + "serializedName": "data_source", + "doc": "Azure asset ID.", + "type": { + "$ref": "573" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageAttachment.dataSource", + "serializationOptions": { + "$id": "861", + "json": { + "$id": "862", + "name": "data_source" + } + } + }, + { + "$id": "863", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The tools to add to this file.", + "type": { + "$id": "864", + "kind": "array", + "name": "ArrayMessageAttachmentToolDefinition", + "valueType": { + "$id": "865", + "kind": "union", + "name": "MessageAttachmentToolDefinition", + "variantTypes": [ + { + "$id": "866", + "kind": "union", + "name": "MessageAttachmentTool", + "variantTypes": [ + { + "$ref": "366" + }, + { + "$ref": "372" + } + ], + "clientNamespace": "", + "decorators": [] + } + ], + "clientNamespace": "Azure.AI.Agents", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageAttachment.tools", + "serializationOptions": { + "$id": "867", + "json": { + "$id": "868", + "name": "tools" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessageOptions.attachments", + "serializationOptions": { + "$id": "869", + "json": { + "$id": "870", + "name": "attachments" + } + } + }, + { + "$id": "871", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessageOptions.metadata", + "serializationOptions": { + "$id": "872", + "json": { + "$id": "873", + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "855" + }, + { + "$id": "874", + "kind": "model", + "name": "CreateThreadRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createThread.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "875", + "kind": "property", + "name": "messages", + "serializedName": "messages", + "doc": "The initial messages to associate with the new thread.", + "type": { + "$id": "876", + "kind": "array", + "name": "ArrayThreadMessageOptions", + "valueType": { + "$ref": "844" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThread.Request.anonymous.messages", + "serializationOptions": { + "$id": "877", + "json": { + "$id": "878", + "name": "messages" + } + } + }, + { + "$id": "879", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the agent's tools in this thread. The resources are specific to the\ntype of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires\na list of vector store IDs.", + "type": { + "$id": "880", + "kind": "nullable", + "type": { + "$ref": "563" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThread.Request.anonymous.toolResources", + "serializationOptions": { + "$id": "881", + "json": { + "$id": "882", + "name": "tool_resources" + } + } + }, + { + "$id": "883", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThread.Request.anonymous.metadata", + "serializationOptions": { + "$id": "884", + "json": { + "$id": "885", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "886", + "kind": "model", + "name": "AgentThread", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread", + "usage": "Output,Json", + "doc": "Information about a single thread associated with an agent.", + "decorators": [], + "properties": [ + { + "$id": "887", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread.id", + "serializationOptions": { + "$id": "889", + "json": { + "$id": "890", + "name": "id" + } + } + }, + { + "$id": "891", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'thread'.", + "type": { + "$id": "892", + "kind": "constant", + "valueType": { + "$ref": "55" + }, + "value": "thread", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread.object", + "serializationOptions": { + "$id": "893", + "json": { + "$id": "894", + "name": "object" + } + } + }, + { + "$id": "895", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "896", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "897", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread.createdAt", + "serializationOptions": { + "$id": "898", + "json": { + "$id": "899", + "name": "created_at" + } + } + }, + { + "$id": "900", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the agent's tools in this thread. The resources are specific to the type\nof tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list\nof vector store IDs.", + "type": { + "$id": "901", + "kind": "nullable", + "type": { + "$ref": "563" + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread.toolResources", + "serializationOptions": { + "$id": "902", + "json": { + "$id": "903", + "name": "tool_resources" + } + } + }, + { + "$id": "904", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThread.metadata", + "serializationOptions": { + "$id": "905", + "json": { + "$id": "906", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "907", + "kind": "model", + "name": "UpdateThreadRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.updateThread.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "908", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the agent's tools in this thread. The resources are specific to the\ntype of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires\na list of vector store IDs", + "type": { + "$id": "909", + "kind": "nullable", + "type": { + "$ref": "563" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateThread.Request.anonymous.toolResources", + "serializationOptions": { + "$id": "910", + "json": { + "$id": "911", + "name": "tool_resources" + } + } + }, + { + "$id": "912", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateThread.Request.anonymous.metadata", + "serializationOptions": { + "$id": "913", + "json": { + "$id": "914", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "915", + "kind": "model", + "name": "ThreadDeletionStatus", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadDeletionStatus", + "usage": "Output,Json", + "doc": "The status of a thread deletion operation.", + "decorators": [], + "properties": [ + { + "$id": "916", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the resource specified for deletion.", + "type": { + "$id": "917", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadDeletionStatus.id", + "serializationOptions": { + "$id": "918", + "json": { + "$id": "919", + "name": "id" + } + } + }, + { + "$id": "920", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "A value indicating whether deletion was successful.", + "type": { + "$id": "921", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadDeletionStatus.deleted", + "serializationOptions": { + "$id": "922", + "json": { + "$id": "923", + "name": "deleted" + } + } + }, + { + "$id": "924", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'thread.deleted'.", + "type": { + "$id": "925", + "kind": "constant", + "valueType": { + "$ref": "58" + }, + "value": "thread.deleted", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadDeletionStatus.object", + "serializationOptions": { + "$id": "926", + "json": { + "$id": "927", + "name": "object" + } + } + } + ] + }, + { + "$id": "928", + "kind": "model", + "name": "CreateMessageRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createMessage.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "929", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role of the entity that is creating the message. Allowed values include:\n- `user`: Indicates the message is sent by an actual user and should be used in most\ncases to represent user-generated messages.\n- `assistant`: Indicates the message is generated by the agent. Use this value to insert\nmessages from the agent into the\nconversation.", + "type": { + "$ref": "49" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createMessage.Request.anonymous.role", + "serializationOptions": { + "$id": "930", + "json": { + "$id": "931", + "name": "role" + } + } + }, + { + "$id": "932", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The textual content of the initial message. Currently, robust input including images and annotated text may only be provided via\na separate call to the create message API.", + "type": { + "$id": "933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createMessage.Request.anonymous.content", + "serializationOptions": { + "$id": "934", + "json": { + "$id": "935", + "name": "content" + } + } + }, + { + "$id": "936", + "kind": "property", + "name": "attachments", + "serializedName": "attachments", + "doc": "A list of files attached to the message, and the tools they should be added to.", + "type": { + "$ref": "853" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createMessage.Request.anonymous.attachments", + "serializationOptions": { + "$id": "937", + "json": { + "$id": "938", + "name": "attachments" + } + } + }, + { + "$id": "939", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createMessage.Request.anonymous.metadata", + "serializationOptions": { + "$id": "940", + "json": { + "$id": "941", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "942", + "kind": "model", + "name": "ThreadMessage", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage", + "usage": "Output,Json", + "doc": "A single, existing message within an agent thread.", + "decorators": [], + "properties": [ + { + "$id": "943", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.id", + "serializationOptions": { + "$id": "945", + "json": { + "$id": "946", + "name": "id" + } + } + }, + { + "$id": "947", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'thread.message'.", + "type": { + "$id": "948", + "kind": "constant", + "valueType": { + "$ref": "61" + }, + "value": "thread.message", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.object", + "serializationOptions": { + "$id": "949", + "json": { + "$id": "950", + "name": "object" + } + } + }, + { + "$id": "951", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "952", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "953", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.createdAt", + "serializationOptions": { + "$id": "954", + "json": { + "$id": "955", + "name": "created_at" + } + } + }, + { + "$id": "956", + "kind": "property", + "name": "threadId", + "serializedName": "thread_id", + "doc": "The ID of the thread that this message belongs to.", + "type": { + "$id": "957", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.threadId", + "serializationOptions": { + "$id": "958", + "json": { + "$id": "959", + "name": "thread_id" + } + } + }, + { + "$id": "960", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the message.", + "type": { + "$ref": "64" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.status", + "serializationOptions": { + "$id": "961", + "json": { + "$id": "962", + "name": "status" + } + } + }, + { + "$id": "963", + "kind": "property", + "name": "incompleteDetails", + "serializedName": "incomplete_details", + "doc": "On an incomplete message, details about why the message is incomplete.", + "type": { + "$id": "964", + "kind": "nullable", + "type": { + "$id": "965", + "kind": "model", + "name": "MessageIncompleteDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageIncompleteDetails", + "usage": "Output,Json", + "doc": "Information providing additional detail about a message entering an incomplete status.", + "decorators": [], + "properties": [ + { + "$id": "966", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The provided reason describing why the message was marked as incomplete.", + "type": { + "$ref": "72" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageIncompleteDetails.reason", + "serializationOptions": { + "$id": "967", + "json": { + "$id": "968", + "name": "reason" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.incompleteDetails", + "serializationOptions": { + "$id": "969", + "json": { + "$id": "970", + "name": "incomplete_details" + } + } + }, + { + "$id": "971", + "kind": "property", + "name": "completedAt", + "serializedName": "completed_at", + "doc": "The Unix timestamp (in seconds) for when the message was completed.", + "type": { + "$id": "972", + "kind": "nullable", + "type": { + "$id": "973", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "974", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.completedAt", + "serializationOptions": { + "$id": "975", + "json": { + "$id": "976", + "name": "completed_at" + } + } + }, + { + "$id": "977", + "kind": "property", + "name": "incompleteAt", + "serializedName": "incomplete_at", + "doc": "The Unix timestamp (in seconds) for when the message was marked as incomplete.", + "type": { + "$id": "978", + "kind": "nullable", + "type": { + "$id": "979", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "980", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.incompleteAt", + "serializationOptions": { + "$id": "981", + "json": { + "$id": "982", + "name": "incomplete_at" + } + } + }, + { + "$id": "983", + "kind": "property", + "name": "role", + "serializedName": "role", + "doc": "The role associated with the agent thread message.", + "type": { + "$ref": "49" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.role", + "serializationOptions": { + "$id": "984", + "json": { + "$id": "985", + "name": "role" + } + } + }, + { + "$id": "986", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The list of content items associated with the agent thread message.", + "type": { + "$id": "987", + "kind": "array", + "name": "ArrayMessageContent", + "valueType": { + "$id": "988", + "kind": "model", + "name": "MessageContent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageContent", + "usage": "Output,Json", + "doc": "An abstract representation of a single item of thread message content.", + "decorators": [], + "discriminatorProperty": { + "$id": "989", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageContent.type", + "serializationOptions": { + "$id": "991", + "json": { + "$id": "992", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "989" + } + ], + "discriminatedSubtypes": { + "$id": "993", + "text": { + "$id": "994", + "kind": "model", + "name": "MessageTextContent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextContent", + "usage": "Output,Json", + "doc": "A representation of a textual item of thread message content.", + "discriminatorValue": "text", + "decorators": [], + "baseModel": { + "$ref": "988" + }, + "properties": [ + { + "$id": "995", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'text'.", + "type": { + "$id": "996", + "kind": "constant", + "valueType": { + "$id": "997", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextContent.type", + "serializationOptions": { + "$id": "998", + "json": { + "$id": "999", + "name": "type" + } + } + }, + { + "$id": "1000", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text and associated annotations for this thread message content item.", + "type": { + "$id": "1001", + "kind": "model", + "name": "MessageTextDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextDetails", + "usage": "Output,Json", + "doc": "The text and associated annotations for a single item of agent thread message content.", + "decorators": [], + "properties": [ + { + "$id": "1002", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The text data.", + "type": { + "$id": "1003", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextDetails.value", + "serializationOptions": { + "$id": "1004", + "json": { + "$id": "1005", + "name": "value" + } + } + }, + { + "$id": "1006", + "kind": "property", + "name": "annotations", + "serializedName": "annotations", + "doc": "A list of annotations associated with this text.", + "type": { + "$id": "1007", + "kind": "array", + "name": "ArrayMessageTextAnnotation", + "valueType": { + "$id": "1008", + "kind": "model", + "name": "MessageTextAnnotation", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextAnnotation", + "usage": "Output,Json", + "doc": "An abstract representation of an annotation to text thread message content.", + "decorators": [], + "discriminatorProperty": { + "$id": "1009", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "1010", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextAnnotation.type", + "serializationOptions": { + "$id": "1011", + "json": { + "$id": "1012", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1009" + }, + { + "$id": "1013", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The textual content associated with this text annotation item.", + "type": { + "$id": "1014", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextAnnotation.text", + "serializationOptions": { + "$id": "1015", + "json": { + "$id": "1016", + "name": "text" + } + } + } + ], + "discriminatedSubtypes": { + "$id": "1017", + "file_citation": { + "$id": "1018", + "kind": "model", + "name": "MessageTextFileCitationAnnotation", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationAnnotation", + "usage": "Output,Json", + "doc": "A citation within the message that points to a specific quote from a specific File associated with the agent or the message. Generated when the agent uses the 'file_search' tool to search files.", + "discriminatorValue": "file_citation", + "decorators": [], + "baseModel": { + "$ref": "1008" + }, + "properties": [ + { + "$id": "1019", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'file_citation'.", + "type": { + "$id": "1020", + "kind": "constant", + "valueType": { + "$id": "1021", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file_citation", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationAnnotation.type", + "serializationOptions": { + "$id": "1022", + "json": { + "$id": "1023", + "name": "type" + } + } + }, + { + "$id": "1024", + "kind": "property", + "name": "fileCitation", + "serializedName": "file_citation", + "doc": "A citation within the message that points to a specific quote from a specific file.\nGenerated when the agent uses the \"file_search\" tool to search files.", + "type": { + "$id": "1025", + "kind": "model", + "name": "MessageTextFileCitationDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationDetails", + "usage": "Output,Json", + "doc": "A representation of a file-based text citation, as used in a file-based annotation of text thread message content.", + "decorators": [], + "properties": [ + { + "$id": "1026", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID of the file associated with this citation.", + "type": { + "$id": "1027", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationDetails.fileId", + "serializationOptions": { + "$id": "1028", + "json": { + "$id": "1029", + "name": "file_id" + } + } + }, + { + "$id": "1030", + "kind": "property", + "name": "quote", + "serializedName": "quote", + "doc": "The specific quote cited in the associated file.", + "type": { + "$id": "1031", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationDetails.quote", + "serializationOptions": { + "$id": "1032", + "json": { + "$id": "1033", + "name": "quote" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationAnnotation.fileCitation", + "serializationOptions": { + "$id": "1034", + "json": { + "$id": "1035", + "name": "file_citation" + } + } + }, + { + "$id": "1036", + "kind": "property", + "name": "startIndex", + "serializedName": "start_index", + "doc": "The first text index associated with this text annotation.", + "type": { + "$id": "1037", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationAnnotation.startIndex", + "serializationOptions": { + "$id": "1038", + "json": { + "$id": "1039", + "name": "start_index" + } + } + }, + { + "$id": "1040", + "kind": "property", + "name": "endIndex", + "serializedName": "end_index", + "doc": "The last text index associated with this text annotation.", + "type": { + "$id": "1041", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFileCitationAnnotation.endIndex", + "serializationOptions": { + "$id": "1042", + "json": { + "$id": "1043", + "name": "end_index" + } + } + } + ] + }, + "file_path": { + "$id": "1044", + "kind": "model", + "name": "MessageTextFilePathAnnotation", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathAnnotation", + "usage": "Output,Json", + "doc": "A citation within the message that points to a file located at a specific path.", + "discriminatorValue": "file_path", + "decorators": [], + "baseModel": { + "$ref": "1008" + }, + "properties": [ + { + "$id": "1045", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'file_path'.", + "type": { + "$id": "1046", + "kind": "constant", + "valueType": { + "$id": "1047", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file_path", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathAnnotation.type", + "serializationOptions": { + "$id": "1048", + "json": { + "$id": "1049", + "name": "type" + } + } + }, + { + "$id": "1050", + "kind": "property", + "name": "filePath", + "serializedName": "file_path", + "doc": "A URL for the file that's generated when the agent used the code_interpreter tool to generate a file.", + "type": { + "$id": "1051", + "kind": "model", + "name": "MessageTextFilePathDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathDetails", + "usage": "Output,Json", + "doc": "An encapsulation of an image file ID, as used by message image content.", + "decorators": [], + "properties": [ + { + "$id": "1052", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID of the specific file that the citation is from.", + "type": { + "$id": "1053", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathDetails.fileId", + "serializationOptions": { + "$id": "1054", + "json": { + "$id": "1055", + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathAnnotation.filePath", + "serializationOptions": { + "$id": "1056", + "json": { + "$id": "1057", + "name": "file_path" + } + } + }, + { + "$id": "1058", + "kind": "property", + "name": "startIndex", + "serializedName": "start_index", + "doc": "The first text index associated with this text annotation.", + "type": { + "$id": "1059", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathAnnotation.startIndex", + "serializationOptions": { + "$id": "1060", + "json": { + "$id": "1061", + "name": "start_index" + } + } + }, + { + "$id": "1062", + "kind": "property", + "name": "endIndex", + "serializedName": "end_index", + "doc": "The last text index associated with this text annotation.", + "type": { + "$id": "1063", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextFilePathAnnotation.endIndex", + "serializationOptions": { + "$id": "1064", + "json": { + "$id": "1065", + "name": "end_index" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextDetails.annotations", + "serializationOptions": { + "$id": "1066", + "json": { + "$id": "1067", + "name": "annotations" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageTextContent.text", + "serializationOptions": { + "$id": "1068", + "json": { + "$id": "1069", + "name": "text" + } + } + } + ] + }, + "image_file": { + "$id": "1070", + "kind": "model", + "name": "MessageImageFileContent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageImageFileContent", + "usage": "Output,Json", + "doc": "A representation of image file content in a thread message.", + "discriminatorValue": "image_file", + "decorators": [], + "baseModel": { + "$ref": "988" + }, + "properties": [ + { + "$id": "1071", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'image_file'.", + "type": { + "$id": "1072", + "kind": "constant", + "valueType": { + "$id": "1073", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image_file", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageImageFileContent.type", + "serializationOptions": { + "$id": "1074", + "json": { + "$id": "1075", + "name": "type" + } + } + }, + { + "$id": "1076", + "kind": "property", + "name": "imageFile", + "serializedName": "image_file", + "doc": "The image file for this thread message content item.", + "type": { + "$id": "1077", + "kind": "model", + "name": "MessageImageFileDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageImageFileDetails", + "usage": "Output,Json", + "doc": "An image reference, as represented in thread message content.", + "decorators": [], + "properties": [ + { + "$id": "1078", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID for the file associated with this image.", + "type": { + "$id": "1079", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageImageFileDetails.fileId", + "serializationOptions": { + "$id": "1080", + "json": { + "$id": "1081", + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.MessageImageFileContent.imageFile", + "serializationOptions": { + "$id": "1082", + "json": { + "$id": "1083", + "name": "image_file" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.content", + "serializationOptions": { + "$id": "1084", + "json": { + "$id": "1085", + "name": "content" + } + } + }, + { + "$id": "1086", + "kind": "property", + "name": "assistantId", + "serializedName": "assistant_id", + "doc": "If applicable, the ID of the agent that authored this message.", + "type": { + "$id": "1087", + "kind": "nullable", + "type": { + "$id": "1088", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.assistantId", + "serializationOptions": { + "$id": "1089", + "json": { + "$id": "1090", + "name": "assistant_id" + } + } + }, + { + "$id": "1091", + "kind": "property", + "name": "runId", + "serializedName": "run_id", + "doc": "If applicable, the ID of the run associated with the authoring of this message.", + "type": { + "$id": "1092", + "kind": "nullable", + "type": { + "$id": "1093", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.runId", + "serializationOptions": { + "$id": "1094", + "json": { + "$id": "1095", + "name": "run_id" + } + } + }, + { + "$id": "1096", + "kind": "property", + "name": "attachments", + "serializedName": "attachments", + "doc": "A list of files attached to the message, and the tools they were added to.", + "type": { + "$id": "1097", + "kind": "nullable", + "type": { + "$id": "1098", + "kind": "array", + "name": "ArrayMessageAttachment", + "valueType": { + "$ref": "855" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.attachments", + "serializationOptions": { + "$id": "1099", + "json": { + "$id": "1100", + "name": "attachments" + } + } + }, + { + "$id": "1101", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadMessage.metadata", + "serializationOptions": { + "$id": "1102", + "json": { + "$id": "1103", + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "965" + }, + { + "$ref": "988" + }, + { + "$ref": "994" + }, + { + "$ref": "1001" + }, + { + "$ref": "1008" + }, + { + "$ref": "1018" + }, + { + "$ref": "1025" + }, + { + "$ref": "1044" + }, + { + "$ref": "1051" + }, + { + "$ref": "1070" + }, + { + "$ref": "1077" + }, + { + "$id": "1104", + "kind": "model", + "name": "OpenAIPageableListOfThreadMessage", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "1105", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "1106", + "kind": "constant", + "valueType": { + "$ref": "84" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "1107", + "json": { + "$id": "1108", + "name": "object" + } + } + }, + { + "$id": "1109", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "1110", + "kind": "array", + "name": "ArrayThreadMessage", + "valueType": { + "$ref": "942" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "1111", + "json": { + "$id": "1112", + "name": "data" + } + } + }, + { + "$id": "1113", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "1114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "1115", + "json": { + "$id": "1116", + "name": "first_id" + } + } + }, + { + "$id": "1117", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "1118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "1119", + "json": { + "$id": "1120", + "name": "last_id" + } + } + }, + { + "$id": "1121", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "1122", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "1123", + "json": { + "$id": "1124", + "name": "has_more" + } + } + } + ] + }, + { + "$id": "1125", + "kind": "model", + "name": "UpdateMessageRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.updateMessage.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "1126", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateMessage.Request.anonymous.metadata", + "serializationOptions": { + "$id": "1127", + "json": { + "$id": "1128", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "1129", + "kind": "model", + "name": "TruncationObject", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.TruncationObject", + "usage": "Input,Output,Json", + "doc": "Controls for how a thread will be truncated prior to the run. Use this to control the initial\ncontext window of the run.", + "decorators": [], + "properties": [ + { + "$id": "1130", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The truncation strategy to use for the thread. The default is `auto`. If set to `last_messages`, the thread will\nbe truncated to the `lastMessages` count most recent messages in the thread. When set to `auto`, messages in the middle of the thread\nwill be dropped to fit the context length of the model, `max_prompt_tokens`.", + "type": { + "$ref": "91" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.TruncationObject.type", + "serializationOptions": { + "$id": "1131", + "json": { + "$id": "1132", + "name": "type" + } + } + }, + { + "$id": "1133", + "kind": "property", + "name": "lastMessages", + "serializedName": "last_messages", + "doc": "The number of most recent messages from the thread when constructing the context for the run.", + "type": { + "$id": "1134", + "kind": "nullable", + "type": { + "$id": "1135", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.TruncationObject.lastMessages", + "serializationOptions": { + "$id": "1136", + "json": { + "$id": "1137", + "name": "last_messages" + } + } + } + ] + }, + { + "$id": "1138", + "kind": "model", + "name": "AgentsNamedToolChoice", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsNamedToolChoice", + "usage": "Input,Output,Json", + "doc": "Specifies a tool the model should use. Use to force the model to call a specific tool.", + "decorators": [], + "properties": [ + { + "$id": "1139", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "the type of tool. If type is `function`, the function name must be set.", + "type": { + "$ref": "103" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsNamedToolChoice.type", + "serializationOptions": { + "$id": "1140", + "json": { + "$id": "1141", + "name": "type" + } + } + }, + { + "$id": "1142", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The name of the function to call", + "type": { + "$id": "1143", + "kind": "model", + "name": "FunctionName", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionName", + "usage": "Input,Output,Json", + "doc": "The function name that will be used, if using the `function` tool", + "decorators": [], + "properties": [ + { + "$id": "1144", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function to call", + "type": { + "$id": "1145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FunctionName.name", + "serializationOptions": { + "$id": "1146", + "json": { + "$id": "1147", + "name": "name" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentsNamedToolChoice.function", + "serializationOptions": { + "$id": "1148", + "json": { + "$id": "1149", + "name": "function" + } + } + } + ] + }, + { + "$ref": "1143" + }, + { + "$id": "1150", + "kind": "model", + "name": "CreateRunRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createRun.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "1151", + "kind": "property", + "name": "assistantId", + "serializedName": "assistant_id", + "doc": "The ID of the agent that should run the thread.", + "type": { + "$id": "1152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.assistantId", + "serializationOptions": { + "$id": "1153", + "json": { + "$id": "1154", + "name": "assistant_id" + } + } + }, + { + "$id": "1155", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The overridden model name that the agent should use to run the thread.", + "type": { + "$id": "1156", + "kind": "nullable", + "type": { + "$id": "1157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.model", + "serializationOptions": { + "$id": "1158", + "json": { + "$id": "1159", + "name": "model" + } + } + }, + { + "$id": "1160", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The overridden system instructions that the agent should use to run the thread.", + "type": { + "$id": "1161", + "kind": "nullable", + "type": { + "$id": "1162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.instructions", + "serializationOptions": { + "$id": "1163", + "json": { + "$id": "1164", + "name": "instructions" + } + } + }, + { + "$id": "1165", + "kind": "property", + "name": "additionalInstructions", + "serializedName": "additional_instructions", + "doc": "Additional instructions to append at the end of the instructions for the run. This is useful for modifying the behavior\non a per-run basis without overriding other instructions.", + "type": { + "$id": "1166", + "kind": "nullable", + "type": { + "$id": "1167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.additionalInstructions", + "serializationOptions": { + "$id": "1168", + "json": { + "$id": "1169", + "name": "additional_instructions" + } + } + }, + { + "$id": "1170", + "kind": "property", + "name": "additionalMessages", + "serializedName": "additional_messages", + "doc": "Adds additional messages to the thread before creating the run.", + "type": { + "$id": "1171", + "kind": "nullable", + "type": { + "$id": "1172", + "kind": "array", + "name": "ArrayThreadMessageOptions", + "valueType": { + "$ref": "844" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.additionalMessages", + "serializationOptions": { + "$id": "1173", + "json": { + "$id": "1174", + "name": "additional_messages" + } + } + }, + { + "$id": "1175", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The overridden list of enabled tools that the agent should use to run the thread.", + "type": { + "$id": "1176", + "kind": "nullable", + "type": { + "$id": "1177", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.tools", + "serializationOptions": { + "$id": "1178", + "json": { + "$id": "1179", + "name": "tools" + } + } + }, + { + "$id": "1180", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If `true`, returns a stream of events that happen during the Run as server-sent events,\nterminating when the Run enters a terminal state with a `data: [DONE]` message.", + "type": { + "$id": "1181", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.stream", + "serializationOptions": { + "$id": "1182", + "json": { + "$id": "1183", + "name": "stream" + } + } + }, + { + "$id": "1184", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\nmore random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "1185", + "kind": "nullable", + "type": { + "$id": "1186", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.temperature", + "serializationOptions": { + "$id": "1187", + "json": { + "$id": "1188", + "name": "temperature" + } + } + }, + { + "$id": "1189", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model\nconsiders the results of the tokens with top_p probability mass. So 0.1 means only the tokens\ncomprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "1190", + "kind": "nullable", + "type": { + "$id": "1191", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.topP", + "serializationOptions": { + "$id": "1192", + "json": { + "$id": "1193", + "name": "top_p" + } + } + }, + { + "$id": "1194", + "kind": "property", + "name": "maxPromptTokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only\nthe number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,\nthe run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "1195", + "kind": "nullable", + "type": { + "$id": "1196", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.maxPromptTokens", + "serializationOptions": { + "$id": "1197", + "json": { + "$id": "1198", + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "1199", + "kind": "property", + "name": "maxCompletionTokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort\nto use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of\ncompletion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "1200", + "kind": "nullable", + "type": { + "$id": "1201", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.maxCompletionTokens", + "serializationOptions": { + "$id": "1202", + "json": { + "$id": "1203", + "name": "max_completion_tokens" + } + } + }, + { + "$id": "1204", + "kind": "property", + "name": "truncationStrategy", + "serializedName": "truncation_strategy", + "doc": "The strategy to use for dropping messages as the context windows moves forward.", + "type": { + "$id": "1205", + "kind": "nullable", + "type": { + "$ref": "1129" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.truncationStrategy", + "serializationOptions": { + "$id": "1206", + "json": { + "$id": "1207", + "name": "truncation_strategy" + } + } + }, + { + "$id": "1208", + "kind": "property", + "name": "toolChoice", + "serializedName": "tool_choice", + "doc": "Controls whether or not and which tool is called by the model.", + "type": { + "$id": "1209", + "kind": "nullable", + "type": { + "$id": "1210", + "kind": "union", + "name": "AgentsApiToolChoiceOption", + "variantTypes": [ + { + "$id": "1211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + { + "$ref": "97" + }, + { + "$ref": "1138" + } + ], + "clientNamespace": "Azure.AI.Agents", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.toolChoice", + "serializationOptions": { + "$id": "1212", + "json": { + "$id": "1213", + "name": "tool_choice" + } + } + }, + { + "$id": "1214", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "Specifies the format that the model must output.", + "type": { + "$id": "1215", + "kind": "nullable", + "type": { + "$ref": "693" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.responseFormat", + "serializationOptions": { + "$id": "1216", + "json": { + "$id": "1217", + "name": "response_format" + } + } + }, + { + "$id": "1218", + "kind": "property", + "name": "parallelToolCalls", + "serializedName": "parallel_tool_calls", + "doc": "If `true` functions will run in parallel during tool use.", + "type": { + "$id": "1219", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.parallelToolCalls", + "serializationOptions": { + "$id": "1220", + "json": { + "$id": "1221", + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "1222", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createRun.Request.anonymous.metadata", + "serializationOptions": { + "$id": "1223", + "json": { + "$id": "1224", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "1225", + "kind": "model", + "name": "ThreadRun", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun", + "usage": "Output,Json", + "doc": "Data representing a single evaluation run of an agent thread.", + "decorators": [], + "properties": [ + { + "$id": "1226", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "1227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.id", + "serializationOptions": { + "$id": "1228", + "json": { + "$id": "1229", + "name": "id" + } + } + }, + { + "$id": "1230", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'thread.run'.", + "type": { + "$id": "1231", + "kind": "constant", + "valueType": { + "$ref": "119" + }, + "value": "thread.run", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.object", + "serializationOptions": { + "$id": "1232", + "json": { + "$id": "1233", + "name": "object" + } + } + }, + { + "$id": "1234", + "kind": "property", + "name": "threadId", + "serializedName": "thread_id", + "doc": "The ID of the thread associated with this run.", + "type": { + "$id": "1235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.threadId", + "serializationOptions": { + "$id": "1236", + "json": { + "$id": "1237", + "name": "thread_id" + } + } + }, + { + "$id": "1238", + "kind": "property", + "name": "assistantId", + "serializedName": "assistant_id", + "doc": "The ID of the agent associated with the thread this run was performed against.", + "type": { + "$id": "1239", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.assistantId", + "serializationOptions": { + "$id": "1240", + "json": { + "$id": "1241", + "name": "assistant_id" + } + } + }, + { + "$id": "1242", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the agent thread run.", + "type": { + "$ref": "122" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.status", + "serializationOptions": { + "$id": "1243", + "json": { + "$id": "1244", + "name": "status" + } + } + }, + { + "$id": "1245", + "kind": "property", + "name": "requiredAction", + "serializedName": "required_action", + "doc": "The details of the action required for the agent thread run to continue.", + "type": { + "$id": "1246", + "kind": "nullable", + "type": { + "$id": "1247", + "kind": "model", + "name": "RequiredAction", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredAction", + "usage": "Output,Json", + "doc": "An abstract representation of a required action for an agent thread run to continue.", + "decorators": [], + "discriminatorProperty": { + "$id": "1248", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "1249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredAction.type", + "serializationOptions": { + "$id": "1250", + "json": { + "$id": "1251", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1248" + } + ], + "discriminatedSubtypes": { + "$id": "1252", + "submit_tool_outputs": { + "$id": "1253", + "kind": "model", + "name": "SubmitToolOutputsAction", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.SubmitToolOutputsAction", + "usage": "Output,Json", + "doc": "The details for required tool calls that must be submitted for an agent thread run to continue.", + "discriminatorValue": "submit_tool_outputs", + "decorators": [], + "baseModel": { + "$ref": "1247" + }, + "properties": [ + { + "$id": "1254", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'submit_tool_outputs'.", + "type": { + "$id": "1255", + "kind": "constant", + "valueType": { + "$id": "1256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "submit_tool_outputs", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.SubmitToolOutputsAction.type", + "serializationOptions": { + "$id": "1257", + "json": { + "$id": "1258", + "name": "type" + } + } + }, + { + "$id": "1259", + "kind": "property", + "name": "submitToolOutputs", + "serializedName": "submit_tool_outputs", + "doc": "The details describing tools that should be called to submit tool outputs.", + "type": { + "$id": "1260", + "kind": "model", + "name": "SubmitToolOutputsDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.SubmitToolOutputsDetails", + "usage": "Output,Json", + "doc": "The details describing tools that should be called to submit tool outputs.", + "decorators": [], + "properties": [ + { + "$id": "1261", + "kind": "property", + "name": "toolCalls", + "serializedName": "tool_calls", + "doc": "The list of tool calls that must be resolved for the agent thread run to continue.", + "type": { + "$id": "1262", + "kind": "array", + "name": "ArrayRequiredToolCall", + "valueType": { + "$id": "1263", + "kind": "model", + "name": "RequiredToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredToolCall", + "usage": "Output,Json", + "doc": "An abstract representation of a tool invocation needed by the model to continue a run.", + "decorators": [], + "discriminatorProperty": { + "$id": "1264", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type for the required tool call.", + "type": { + "$id": "1265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredToolCall.type", + "serializationOptions": { + "$id": "1266", + "json": { + "$id": "1267", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1264" + }, + { + "$id": "1268", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call. This ID must be referenced when submitting tool outputs.", + "type": { + "$id": "1269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredToolCall.id", + "serializationOptions": { + "$id": "1270", + "json": { + "$id": "1271", + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "$id": "1272", + "function": { + "$id": "1273", + "kind": "model", + "name": "RequiredFunctionToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCall", + "usage": "Output,Json", + "doc": "A representation of a requested call to a function tool, needed by the model to continue evaluation of a run.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "1263" + }, + "properties": [ + { + "$id": "1274", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type of the required tool call. Always 'function' for function tools.", + "type": { + "$id": "1275", + "kind": "constant", + "valueType": { + "$id": "1276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCall.type", + "serializationOptions": { + "$id": "1277", + "json": { + "$id": "1278", + "name": "type" + } + } + }, + { + "$id": "1279", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "Detailed information about the function to be executed by the tool that includes name and arguments.", + "type": { + "$id": "1280", + "kind": "model", + "name": "RequiredFunctionToolCallDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCallDetails", + "usage": "Output,Json", + "doc": "The detailed information for a function invocation, as provided by a required action invoking a function tool, that includes the name of and arguments to the function.", + "decorators": [], + "properties": [ + { + "$id": "1281", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function.", + "type": { + "$id": "1282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCallDetails.name", + "serializationOptions": { + "$id": "1283", + "json": { + "$id": "1284", + "name": "name" + } + } + }, + { + "$id": "1285", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments to use when invoking the named function, as provided by the model. Arguments are presented as a JSON document that should be validated and parsed for evaluation.", + "type": { + "$id": "1286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCallDetails.arguments", + "serializationOptions": { + "$id": "1287", + "json": { + "$id": "1288", + "name": "arguments" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RequiredFunctionToolCall.function", + "serializationOptions": { + "$id": "1289", + "json": { + "$id": "1290", + "name": "function" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.SubmitToolOutputsDetails.toolCalls", + "serializationOptions": { + "$id": "1291", + "json": { + "$id": "1292", + "name": "tool_calls" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.SubmitToolOutputsAction.submitToolOutputs", + "serializationOptions": { + "$id": "1293", + "json": { + "$id": "1294", + "name": "submit_tool_outputs" + } + } + } + ] + } + } + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.requiredAction", + "serializationOptions": { + "$id": "1295", + "json": { + "$id": "1296", + "name": "required_action" + } + } + }, + { + "$id": "1297", + "kind": "property", + "name": "lastError", + "serializedName": "last_error", + "doc": "The last error, if any, encountered by this agent thread run.", + "type": { + "$id": "1298", + "kind": "nullable", + "type": { + "$id": "1299", + "kind": "model", + "name": "RunError", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunError", + "usage": "Output,Json", + "doc": "The details of an error as encountered by an agent thread run.", + "decorators": [], + "properties": [ + { + "$id": "1300", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The status for the error.", + "type": { + "$id": "1301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunError.code", + "serializationOptions": { + "$id": "1302", + "json": { + "$id": "1303", + "name": "code" + } + } + }, + { + "$id": "1304", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The human-readable text associated with the error.", + "type": { + "$id": "1305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunError.message", + "serializationOptions": { + "$id": "1306", + "json": { + "$id": "1307", + "name": "message" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.lastError", + "serializationOptions": { + "$id": "1308", + "json": { + "$id": "1309", + "name": "last_error" + } + } + }, + { + "$id": "1310", + "kind": "property", + "name": "model", + "serializedName": "model", + "doc": "The ID of the model to use.", + "type": { + "$id": "1311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.model", + "serializationOptions": { + "$id": "1312", + "json": { + "$id": "1313", + "name": "model" + } + } + }, + { + "$id": "1314", + "kind": "property", + "name": "instructions", + "serializedName": "instructions", + "doc": "The overridden system instructions used for this agent thread run.", + "type": { + "$id": "1315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.instructions", + "serializationOptions": { + "$id": "1316", + "json": { + "$id": "1317", + "name": "instructions" + } + } + }, + { + "$id": "1318", + "kind": "property", + "name": "tools", + "serializedName": "tools", + "doc": "The overridden enabled tools used for this agent thread run.", + "type": { + "$id": "1319", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.tools", + "serializationOptions": { + "$id": "1320", + "json": { + "$id": "1321", + "name": "tools" + } + } + }, + { + "$id": "1322", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "1323", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1324", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.createdAt", + "serializationOptions": { + "$id": "1325", + "json": { + "$id": "1326", + "name": "created_at" + } + } + }, + { + "$id": "1327", + "kind": "property", + "name": "expiresAt", + "serializedName": "expires_at", + "doc": "The Unix timestamp, in seconds, representing when this item expires.", + "type": { + "$id": "1328", + "kind": "nullable", + "type": { + "$id": "1329", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1330", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.expiresAt", + "serializationOptions": { + "$id": "1331", + "json": { + "$id": "1332", + "name": "expires_at" + } + } + }, + { + "$id": "1333", + "kind": "property", + "name": "startedAt", + "serializedName": "started_at", + "doc": "The Unix timestamp, in seconds, representing when this item was started.", + "type": { + "$id": "1334", + "kind": "nullable", + "type": { + "$id": "1335", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1336", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.startedAt", + "serializationOptions": { + "$id": "1337", + "json": { + "$id": "1338", + "name": "started_at" + } + } + }, + { + "$id": "1339", + "kind": "property", + "name": "completedAt", + "serializedName": "completed_at", + "doc": "The Unix timestamp, in seconds, representing when this completed.", + "type": { + "$id": "1340", + "kind": "nullable", + "type": { + "$id": "1341", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1342", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.completedAt", + "serializationOptions": { + "$id": "1343", + "json": { + "$id": "1344", + "name": "completed_at" + } + } + }, + { + "$id": "1345", + "kind": "property", + "name": "cancelledAt", + "serializedName": "cancelled_at", + "doc": "The Unix timestamp, in seconds, representing when this was cancelled.", + "type": { + "$id": "1346", + "kind": "nullable", + "type": { + "$id": "1347", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1348", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.cancelledAt", + "serializationOptions": { + "$id": "1349", + "json": { + "$id": "1350", + "name": "cancelled_at" + } + } + }, + { + "$id": "1351", + "kind": "property", + "name": "failedAt", + "serializedName": "failed_at", + "doc": "The Unix timestamp, in seconds, representing when this failed.", + "type": { + "$id": "1352", + "kind": "nullable", + "type": { + "$id": "1353", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1354", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.failedAt", + "serializationOptions": { + "$id": "1355", + "json": { + "$id": "1356", + "name": "failed_at" + } + } + }, + { + "$id": "1357", + "kind": "property", + "name": "incompleteDetails", + "serializedName": "incomplete_details", + "doc": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.", + "type": { + "$id": "1358", + "kind": "nullable", + "type": { + "$id": "1359", + "kind": "model", + "name": "IncompleteRunDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.IncompleteRunDetails", + "usage": "Output,Json", + "doc": "Details on why the run is incomplete. Will be `null` if the run is not incomplete.", + "decorators": [], + "properties": [ + { + "$id": "1360", + "kind": "property", + "name": "reason", + "serializedName": "reason", + "doc": "The reason why the run is incomplete. This indicates which specific token limit was reached during the run.", + "type": { + "$ref": "140" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.IncompleteRunDetails.reason", + "serializationOptions": { + "$id": "1361", + "json": { + "$id": "1362", + "name": "reason" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.incompleteDetails", + "serializationOptions": { + "$id": "1363", + "json": { + "$id": "1364", + "name": "incomplete_details" + } + } + }, + { + "$id": "1365", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).", + "type": { + "$id": "1366", + "kind": "nullable", + "type": { + "$id": "1367", + "kind": "model", + "name": "RunCompletionUsage", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunCompletionUsage", + "usage": "Output,Json", + "doc": "Usage statistics related to the run. This value will be `null` if the run is not in a terminal state (i.e. `in_progress`, `queued`, etc.).", + "decorators": [], + "properties": [ + { + "$id": "1368", + "kind": "property", + "name": "completionTokens", + "serializedName": "completion_tokens", + "doc": "Number of completion tokens used over the course of the run.", + "type": { + "$id": "1369", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunCompletionUsage.completionTokens", + "serializationOptions": { + "$id": "1370", + "json": { + "$id": "1371", + "name": "completion_tokens" + } + } + }, + { + "$id": "1372", + "kind": "property", + "name": "promptTokens", + "serializedName": "prompt_tokens", + "doc": "Number of prompt tokens used over the course of the run.", + "type": { + "$id": "1373", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunCompletionUsage.promptTokens", + "serializationOptions": { + "$id": "1374", + "json": { + "$id": "1375", + "name": "prompt_tokens" + } + } + }, + { + "$id": "1376", + "kind": "property", + "name": "totalTokens", + "serializedName": "total_tokens", + "doc": "Total number of tokens used (prompt + completion).", + "type": { + "$id": "1377", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunCompletionUsage.totalTokens", + "serializationOptions": { + "$id": "1378", + "json": { + "$id": "1379", + "name": "total_tokens" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.usage", + "serializationOptions": { + "$id": "1380", + "json": { + "$id": "1381", + "name": "usage" + } + } + }, + { + "$id": "1382", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "The sampling temperature used for this run. If not set, defaults to 1.", + "type": { + "$id": "1383", + "kind": "nullable", + "type": { + "$id": "1384", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.temperature", + "serializationOptions": { + "$id": "1385", + "json": { + "$id": "1386", + "name": "temperature" + } + } + }, + { + "$id": "1387", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "The nucleus sampling value used for this run. If not set, defaults to 1.", + "type": { + "$id": "1388", + "kind": "nullable", + "type": { + "$id": "1389", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.topP", + "serializationOptions": { + "$id": "1390", + "json": { + "$id": "1391", + "name": "top_p" + } + } + }, + { + "$id": "1392", + "kind": "property", + "name": "maxPromptTokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens specified to have been used over the course of the run.", + "type": { + "$id": "1393", + "kind": "nullable", + "type": { + "$id": "1394", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.maxPromptTokens", + "serializationOptions": { + "$id": "1395", + "json": { + "$id": "1396", + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "1397", + "kind": "property", + "name": "maxCompletionTokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens specified to have been used over the course of the run.", + "type": { + "$id": "1398", + "kind": "nullable", + "type": { + "$id": "1399", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.maxCompletionTokens", + "serializationOptions": { + "$id": "1400", + "json": { + "$id": "1401", + "name": "max_completion_tokens" + } + } + }, + { + "$id": "1402", + "kind": "property", + "name": "truncationStrategy", + "serializedName": "truncation_strategy", + "doc": "The strategy to use for dropping messages as the context windows moves forward.", + "type": { + "$id": "1403", + "kind": "nullable", + "type": { + "$ref": "1129" + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.truncationStrategy", + "serializationOptions": { + "$id": "1404", + "json": { + "$id": "1405", + "name": "truncation_strategy" + } + } + }, + { + "$id": "1406", + "kind": "property", + "name": "toolChoice", + "serializedName": "tool_choice", + "doc": "Controls whether or not and which tool is called by the model.", + "type": { + "$id": "1407", + "kind": "nullable", + "type": { + "$ref": "1210" + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.toolChoice", + "serializationOptions": { + "$id": "1408", + "json": { + "$id": "1409", + "name": "tool_choice" + } + } + }, + { + "$id": "1410", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "The response format of the tool calls used in this run.", + "type": { + "$id": "1411", + "kind": "nullable", + "type": { + "$ref": "693" + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.responseFormat", + "serializationOptions": { + "$id": "1412", + "json": { + "$id": "1413", + "name": "response_format" + } + } + }, + { + "$id": "1414", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.metadata", + "serializationOptions": { + "$id": "1415", + "json": { + "$id": "1416", + "name": "metadata" + } + } + }, + { + "$id": "1417", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "Override the tools the agent can use for this run. This is useful for modifying the behavior on a per-run basis", + "type": { + "$id": "1418", + "kind": "nullable", + "type": { + "$id": "1419", + "kind": "model", + "name": "UpdateToolResourcesOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateToolResourcesOptions", + "usage": "Input,Output,Json", + "doc": "Request object. A set of resources that are used by the agent's tools. The resources are specific to the type of tool.\nFor example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires a list of\nvector store IDs.", + "decorators": [], + "properties": [ + { + "$id": "1420", + "kind": "property", + "name": "codeInterpreter", + "serializedName": "code_interpreter", + "doc": "Overrides the list of file IDs made available to the `code_interpreter` tool. There can be a maximum of 20 files\nassociated with the tool.", + "type": { + "$id": "1421", + "kind": "model", + "name": "UpdateCodeInterpreterToolResourceOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateCodeInterpreterToolResourceOptions", + "usage": "Input,Output,Json", + "doc": "Request object to update `code_interpreted` tool resources.", + "decorators": [], + "properties": [ + { + "$id": "1422", + "kind": "property", + "name": "fileIds", + "serializedName": "file_ids", + "doc": "A list of file IDs to override the current list of the agent.", + "type": { + "$id": "1423", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "1424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateCodeInterpreterToolResourceOptions.fileIds", + "serializationOptions": { + "$id": "1425", + "json": { + "$id": "1426", + "name": "file_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateToolResourcesOptions.codeInterpreter", + "serializationOptions": { + "$id": "1427", + "json": { + "$id": "1428", + "name": "code_interpreter" + } + } + }, + { + "$id": "1429", + "kind": "property", + "name": "fileSearch", + "serializedName": "file_search", + "doc": "Overrides the vector store attached to this agent. There can be a maximum of 1 vector store attached to the agent.", + "type": { + "$id": "1430", + "kind": "model", + "name": "UpdateFileSearchToolResourceOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateFileSearchToolResourceOptions", + "usage": "Input,Output,Json", + "doc": "Request object to update `file_search` tool resources.", + "decorators": [], + "properties": [ + { + "$id": "1431", + "kind": "property", + "name": "vectorStoreIds", + "serializedName": "vector_store_ids", + "doc": "A list of vector store IDs to override the current list of the agent.", + "type": { + "$id": "1432", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "1433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateFileSearchToolResourceOptions.vectorStoreIds", + "serializationOptions": { + "$id": "1434", + "json": { + "$id": "1435", + "name": "vector_store_ids" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateToolResourcesOptions.fileSearch", + "serializationOptions": { + "$id": "1436", + "json": { + "$id": "1437", + "name": "file_search" + } + } + }, + { + "$id": "1438", + "kind": "property", + "name": "azureAISearch", + "serializedName": "azure_ai_search", + "doc": "Overrides the resources to be used by the `azure_ai_search` tool consisting of index IDs and names.", + "type": { + "$ref": "612" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.UpdateToolResourcesOptions.azureAISearch", + "serializationOptions": { + "$id": "1439", + "json": { + "$id": "1440", + "name": "azure_ai_search" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.toolResources", + "serializationOptions": { + "$id": "1441", + "json": { + "$id": "1442", + "name": "tool_resources" + } + } + }, + { + "$id": "1443", + "kind": "property", + "name": "parallelToolCalls", + "serializedName": "parallel_tool_calls", + "doc": "Determines if tools can be executed in parallel within the run.", + "type": { + "$id": "1444", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ThreadRun.parallelToolCalls", + "serializationOptions": { + "$id": "1445", + "json": { + "$id": "1446", + "name": "parallel_tool_calls" + } + } + } + ] + }, + { + "$ref": "1247" + }, + { + "$ref": "1253" + }, + { + "$ref": "1260" + }, + { + "$ref": "1263" + }, + { + "$ref": "1273" + }, + { + "$ref": "1280" + }, + { + "$ref": "1299" + }, + { + "$ref": "1359" + }, + { + "$ref": "1367" + }, + { + "$ref": "1419" + }, + { + "$ref": "1421" + }, + { + "$ref": "1430" + }, + { + "$id": "1447", + "kind": "model", + "name": "OpenAIPageableListOfThreadRun", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "1448", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "1449", + "kind": "constant", + "valueType": { + "$ref": "146" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "1450", + "json": { + "$id": "1451", + "name": "object" + } + } + }, + { + "$id": "1452", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "1453", + "kind": "array", + "name": "ArrayThreadRun", + "valueType": { + "$ref": "1225" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "1454", + "json": { + "$id": "1455", + "name": "data" + } + } + }, + { + "$id": "1456", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "1457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "1458", + "json": { + "$id": "1459", + "name": "first_id" + } + } + }, + { + "$id": "1460", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "1461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "1462", + "json": { + "$id": "1463", + "name": "last_id" + } + } + }, + { + "$id": "1464", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "1465", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "1466", + "json": { + "$id": "1467", + "name": "has_more" + } + } + } + ] + }, + { + "$id": "1468", + "kind": "model", + "name": "UpdateRunRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.updateRun.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "1469", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "updateRun.Request.anonymous.metadata", + "serializationOptions": { + "$id": "1470", + "json": { + "$id": "1471", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "1472", + "kind": "model", + "name": "ToolOutput", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolOutput", + "usage": "Input,Json", + "doc": "The data provided during a tool outputs submission to resolve pending tool calls and allow the model to continue.", + "decorators": [], + "properties": [ + { + "$id": "1473", + "kind": "property", + "name": "toolCallId", + "serializedName": "tool_call_id", + "doc": "The ID of the tool call being resolved, as provided in the tool calls of a required action from a run.", + "type": { + "$id": "1474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolOutput.toolCallId", + "serializationOptions": { + "$id": "1475", + "json": { + "$id": "1476", + "name": "tool_call_id" + } + } + }, + { + "$id": "1477", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output from the tool to be submitted.", + "type": { + "$id": "1478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.ToolOutput.output", + "serializationOptions": { + "$id": "1479", + "json": { + "$id": "1480", + "name": "output" + } + } + } + ] + }, + { + "$id": "1481", + "kind": "model", + "name": "SubmitToolOutputsToRunRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.submitToolOutputsToRun.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "1482", + "kind": "property", + "name": "toolOutputs", + "serializedName": "tool_outputs", + "doc": "A list of tools for which the outputs are being submitted", + "type": { + "$id": "1483", + "kind": "array", + "name": "ArrayToolOutput", + "valueType": { + "$ref": "1472" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "submitToolOutputsToRun.Request.anonymous.toolOutputs", + "serializationOptions": { + "$id": "1484", + "json": { + "$id": "1485", + "name": "tool_outputs" + } + } + }, + { + "$id": "1486", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If true, returns a stream of events that happen during the Run as server-sent events, terminating when the run enters a terminal state.", + "type": { + "$id": "1487", + "kind": "nullable", + "type": { + "$id": "1488", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "submitToolOutputsToRun.Request.anonymous.stream", + "serializationOptions": { + "$id": "1489", + "json": { + "$id": "1490", + "name": "stream" + } + } + } + ] + }, + { + "$id": "1491", + "kind": "model", + "name": "AgentThreadCreationOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThreadCreationOptions", + "usage": "Input,Json", + "doc": "The details used to create a new agent thread.", + "decorators": [], + "properties": [ + { + "$id": "1492", + "kind": "property", + "name": "messages", + "serializedName": "messages", + "doc": "The initial messages to associate with the new thread.", + "type": { + "$id": "1493", + "kind": "array", + "name": "ArrayThreadMessageOptions", + "valueType": { + "$ref": "844" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThreadCreationOptions.messages", + "serializationOptions": { + "$id": "1494", + "json": { + "$id": "1495", + "name": "messages" + } + } + }, + { + "$id": "1496", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "A set of resources that are made available to the agent's tools in this thread. The resources are specific to the\ntype of tool. For example, the `code_interpreter` tool requires a list of file IDs, while the `file_search` tool requires\na list of vector store IDs.", + "type": { + "$ref": "880" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThreadCreationOptions.toolResources", + "serializationOptions": { + "$id": "1497", + "json": { + "$id": "1498", + "name": "tool_resources" + } + } + }, + { + "$id": "1499", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.AgentThreadCreationOptions.metadata", + "serializationOptions": { + "$id": "1500", + "json": { + "$id": "1501", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "1502", + "kind": "model", + "name": "CreateThreadAndRunRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createThreadAndRun.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "1503", + "kind": "property", + "name": "assistantId", + "serializedName": "assistant_id", + "doc": "The ID of the agent for which the thread should be created.", + "type": { + "$id": "1504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.assistantId", + "serializationOptions": { + "$id": "1505", + "json": { + "$id": "1506", + "name": "assistant_id" + } + } + }, + { + "$id": "1507", + "kind": "property", + "name": "thread", + "serializedName": "thread", + "doc": "The details used to create the new thread. If no thread is provided, an empty one will be created.", + "type": { + "$ref": "1491" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.thread", + "serializationOptions": { + "$id": "1508", + "json": { + "$id": "1509", + "name": "thread" + } + } + }, + { + "$id": "1510", + "kind": "property", + "name": "overrideModelName", + "serializedName": "model", + "doc": "The overridden model that the agent should use to run the thread.", + "type": { + "$id": "1511", + "kind": "nullable", + "type": { + "$id": "1512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.model", + "serializationOptions": { + "$id": "1513", + "json": { + "$id": "1514", + "name": "model" + } + } + }, + { + "$id": "1515", + "kind": "property", + "name": "overrideInstructions", + "serializedName": "instructions", + "doc": "The overridden system instructions the agent should use to run the thread.", + "type": { + "$id": "1516", + "kind": "nullable", + "type": { + "$id": "1517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.instructions", + "serializationOptions": { + "$id": "1518", + "json": { + "$id": "1519", + "name": "instructions" + } + } + }, + { + "$id": "1520", + "kind": "property", + "name": "overrideTools", + "serializedName": "tools", + "doc": "The overridden list of enabled tools the agent should use to run the thread.", + "type": { + "$id": "1521", + "kind": "nullable", + "type": { + "$id": "1522", + "kind": "array", + "name": "ArrayToolDefinition", + "valueType": { + "$ref": "360" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.tools", + "serializationOptions": { + "$id": "1523", + "json": { + "$id": "1524", + "name": "tools" + } + } + }, + { + "$id": "1525", + "kind": "property", + "name": "toolResources", + "serializedName": "tool_resources", + "doc": "Override the tools the agent can use for this run. This is useful for modifying the behavior on a per-run basis", + "type": { + "$id": "1526", + "kind": "nullable", + "type": { + "$ref": "1419" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.toolResources", + "serializationOptions": { + "$id": "1527", + "json": { + "$id": "1528", + "name": "tool_resources" + } + } + }, + { + "$id": "1529", + "kind": "property", + "name": "stream", + "serializedName": "stream", + "doc": "If `true`, returns a stream of events that happen during the Run as server-sent events,\nterminating when the Run enters a terminal state with a `data: [DONE]` message.", + "type": { + "$id": "1530", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.stream", + "serializationOptions": { + "$id": "1531", + "json": { + "$id": "1532", + "name": "stream" + } + } + }, + { + "$id": "1533", + "kind": "property", + "name": "temperature", + "serializedName": "temperature", + "doc": "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output\nmore random, while lower values like 0.2 will make it more focused and deterministic.", + "type": { + "$id": "1534", + "kind": "nullable", + "type": { + "$id": "1535", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.temperature", + "serializationOptions": { + "$id": "1536", + "json": { + "$id": "1537", + "name": "temperature" + } + } + }, + { + "$id": "1538", + "kind": "property", + "name": "topP", + "serializedName": "top_p", + "doc": "An alternative to sampling with temperature, called nucleus sampling, where the model\nconsiders the results of the tokens with top_p probability mass. So 0.1 means only the tokens\ncomprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or temperature but not both.", + "type": { + "$id": "1539", + "kind": "nullable", + "type": { + "$id": "1540", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.topP", + "serializationOptions": { + "$id": "1541", + "json": { + "$id": "1542", + "name": "top_p" + } + } + }, + { + "$id": "1543", + "kind": "property", + "name": "maxPromptTokens", + "serializedName": "max_prompt_tokens", + "doc": "The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only\nthe number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified,\nthe run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "1544", + "kind": "nullable", + "type": { + "$id": "1545", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.maxPromptTokens", + "serializationOptions": { + "$id": "1546", + "json": { + "$id": "1547", + "name": "max_prompt_tokens" + } + } + }, + { + "$id": "1548", + "kind": "property", + "name": "maxCompletionTokens", + "serializedName": "max_completion_tokens", + "doc": "The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only\nthe number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens\nspecified, the run will end with status `incomplete`. See `incomplete_details` for more info.", + "type": { + "$id": "1549", + "kind": "nullable", + "type": { + "$id": "1550", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.maxCompletionTokens", + "serializationOptions": { + "$id": "1551", + "json": { + "$id": "1552", + "name": "max_completion_tokens" + } + } + }, + { + "$id": "1553", + "kind": "property", + "name": "truncationStrategy", + "serializedName": "truncation_strategy", + "doc": "The strategy to use for dropping messages as the context windows moves forward.", + "type": { + "$id": "1554", + "kind": "nullable", + "type": { + "$ref": "1129" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.truncationStrategy", + "serializationOptions": { + "$id": "1555", + "json": { + "$id": "1556", + "name": "truncation_strategy" + } + } + }, + { + "$id": "1557", + "kind": "property", + "name": "toolChoice", + "serializedName": "tool_choice", + "doc": "Controls whether or not and which tool is called by the model.", + "type": { + "$id": "1558", + "kind": "nullable", + "type": { + "$ref": "1210" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.toolChoice", + "serializationOptions": { + "$id": "1559", + "json": { + "$id": "1560", + "name": "tool_choice" + } + } + }, + { + "$id": "1561", + "kind": "property", + "name": "responseFormat", + "serializedName": "response_format", + "doc": "Specifies the format that the model must output.", + "type": { + "$id": "1562", + "kind": "nullable", + "type": { + "$ref": "693" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.responseFormat", + "serializationOptions": { + "$id": "1563", + "json": { + "$id": "1564", + "name": "response_format" + } + } + }, + { + "$id": "1565", + "kind": "property", + "name": "parallelToolCalls", + "serializedName": "parallel_tool_calls", + "doc": "If `true` functions will run in parallel during tool use.", + "type": { + "$id": "1566", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.parallelToolCalls", + "serializationOptions": { + "$id": "1567", + "json": { + "$id": "1568", + "name": "parallel_tool_calls" + } + } + }, + { + "$id": "1569", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createThreadAndRun.Request.anonymous.metadata", + "serializationOptions": { + "$id": "1570", + "json": { + "$id": "1571", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "1572", + "kind": "model", + "name": "RunStep", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep", + "usage": "Output,Json", + "doc": "Detailed information about a single step of an agent thread run.", + "decorators": [], + "properties": [ + { + "$id": "1573", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "1574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.id", + "serializationOptions": { + "$id": "1575", + "json": { + "$id": "1576", + "name": "id" + } + } + }, + { + "$id": "1577", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'thread.run.step'.", + "type": { + "$id": "1578", + "kind": "constant", + "valueType": { + "$ref": "149" + }, + "value": "thread.run.step", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.object", + "serializationOptions": { + "$id": "1579", + "json": { + "$id": "1580", + "name": "object" + } + } + }, + { + "$id": "1581", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of run step, which can be either message_creation or tool_calls.", + "type": { + "$ref": "152" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.type", + "serializationOptions": { + "$id": "1582", + "json": { + "$id": "1583", + "name": "type" + } + } + }, + { + "$id": "1584", + "kind": "property", + "name": "assistantId", + "serializedName": "assistant_id", + "doc": "The ID of the agent associated with the run step.", + "type": { + "$id": "1585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.assistantId", + "serializationOptions": { + "$id": "1586", + "json": { + "$id": "1587", + "name": "assistant_id" + } + } + }, + { + "$id": "1588", + "kind": "property", + "name": "threadId", + "serializedName": "thread_id", + "doc": "The ID of the thread that was run.", + "type": { + "$id": "1589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.threadId", + "serializationOptions": { + "$id": "1590", + "json": { + "$id": "1591", + "name": "thread_id" + } + } + }, + { + "$id": "1592", + "kind": "property", + "name": "runId", + "serializedName": "run_id", + "doc": "The ID of the run that this run step is a part of.", + "type": { + "$id": "1593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.runId", + "serializationOptions": { + "$id": "1594", + "json": { + "$id": "1595", + "name": "run_id" + } + } + }, + { + "$id": "1596", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of this run step.", + "type": { + "$ref": "158" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.status", + "serializationOptions": { + "$id": "1597", + "json": { + "$id": "1598", + "name": "status" + } + } + }, + { + "$id": "1599", + "kind": "property", + "name": "stepDetails", + "serializedName": "step_details", + "doc": "The details for this run step.", + "type": { + "$id": "1600", + "kind": "model", + "name": "RunStepDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepDetails", + "usage": "Output,Json", + "doc": "An abstract representation of the details for a run step.", + "decorators": [], + "discriminatorProperty": { + "$id": "1601", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$ref": "152" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepDetails.type", + "serializationOptions": { + "$id": "1602", + "json": { + "$id": "1603", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1601" + } + ], + "discriminatedSubtypes": { + "$id": "1604", + "message_creation": { + "$id": "1605", + "kind": "model", + "name": "RunStepMessageCreationDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMessageCreationDetails", + "usage": "Output,Json", + "doc": "The detailed information associated with a message creation run step.", + "discriminatorValue": "message_creation", + "decorators": [], + "baseModel": { + "$ref": "1600" + }, + "properties": [ + { + "$id": "1606", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'message_creation'.", + "type": { + "$id": "1607", + "kind": "constant", + "valueType": { + "$id": "1608", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "message_creation", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMessageCreationDetails.type", + "serializationOptions": { + "$id": "1609", + "json": { + "$id": "1610", + "name": "type" + } + } + }, + { + "$id": "1611", + "kind": "property", + "name": "messageCreation", + "serializedName": "message_creation", + "doc": "Information about the message creation associated with this run step.", + "type": { + "$id": "1612", + "kind": "model", + "name": "RunStepMessageCreationReference", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMessageCreationReference", + "usage": "Output,Json", + "doc": "The details of a message created as a part of a run step.", + "decorators": [], + "properties": [ + { + "$id": "1613", + "kind": "property", + "name": "messageId", + "serializedName": "message_id", + "doc": "The ID of the message created by this run step.", + "type": { + "$id": "1614", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMessageCreationReference.messageId", + "serializationOptions": { + "$id": "1615", + "json": { + "$id": "1616", + "name": "message_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMessageCreationDetails.messageCreation", + "serializationOptions": { + "$id": "1617", + "json": { + "$id": "1618", + "name": "message_creation" + } + } + } + ] + }, + "tool_calls": { + "$id": "1619", + "kind": "model", + "name": "RunStepToolCallDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCallDetails", + "usage": "Output,Json", + "doc": "The detailed information associated with a run step calling tools.", + "discriminatorValue": "tool_calls", + "decorators": [], + "baseModel": { + "$ref": "1600" + }, + "properties": [ + { + "$id": "1620", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'tool_calls'.", + "type": { + "$id": "1621", + "kind": "constant", + "valueType": { + "$id": "1622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "tool_calls", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCallDetails.type", + "serializationOptions": { + "$id": "1623", + "json": { + "$id": "1624", + "name": "type" + } + } + }, + { + "$id": "1625", + "kind": "property", + "name": "toolCalls", + "serializedName": "tool_calls", + "doc": "A list of tool call details for this run step.", + "type": { + "$id": "1626", + "kind": "array", + "name": "ArrayRunStepToolCall", + "valueType": { + "$id": "1627", + "kind": "model", + "name": "RunStepToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCall", + "usage": "Output,Json", + "doc": "An abstract representation of a detailed tool call as recorded within a run step for an existing run.", + "decorators": [], + "discriminatorProperty": { + "$id": "1628", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "1629", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCall.type", + "serializationOptions": { + "$id": "1630", + "json": { + "$id": "1631", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1628" + }, + { + "$id": "1632", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call. This ID must be referenced when you submit tool outputs.", + "type": { + "$id": "1633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCall.id", + "serializationOptions": { + "$id": "1634", + "json": { + "$id": "1635", + "name": "id" + } + } + } + ], + "discriminatedSubtypes": { + "$id": "1636", + "code_interpreter": { + "$id": "1637", + "kind": "model", + "name": "RunStepCodeInterpreterToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a code interpreter tool, issued by the model in evaluation of a defined tool, that\nrepresents inputs and outputs consumed and emitted by the code interpreter.", + "discriminatorValue": "code_interpreter", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1638", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'code_interpreter'.", + "type": { + "$id": "1639", + "kind": "constant", + "valueType": { + "$id": "1640", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "code_interpreter", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCall.type", + "serializationOptions": { + "$id": "1641", + "json": { + "$id": "1642", + "name": "type" + } + } + }, + { + "$id": "1643", + "kind": "property", + "name": "codeInterpreter", + "serializedName": "code_interpreter", + "doc": "The details of the tool call to the code interpreter tool.", + "type": { + "$id": "1644", + "kind": "model", + "name": "RunStepCodeInterpreterToolCallDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCallDetails", + "usage": "Output,Json", + "doc": "The detailed information about a code interpreter invocation by the model.", + "decorators": [], + "properties": [ + { + "$id": "1645", + "kind": "property", + "name": "input", + "serializedName": "input", + "doc": "The input provided by the model to the code interpreter tool.", + "type": { + "$id": "1646", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCallDetails.input", + "serializationOptions": { + "$id": "1647", + "json": { + "$id": "1648", + "name": "input" + } + } + }, + { + "$id": "1649", + "kind": "property", + "name": "outputs", + "serializedName": "outputs", + "doc": "The outputs produced by the code interpreter tool back to the model in response to the tool call.", + "type": { + "$id": "1650", + "kind": "array", + "name": "ArrayRunStepCodeInterpreterToolCallOutput", + "valueType": { + "$id": "1651", + "kind": "model", + "name": "RunStepCodeInterpreterToolCallOutput", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCallOutput", + "usage": "Output,Json", + "doc": "An abstract representation of an emitted output from a code interpreter tool.", + "decorators": [], + "discriminatorProperty": { + "$id": "1652", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$id": "1653", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCallOutput.type", + "serializationOptions": { + "$id": "1654", + "json": { + "$id": "1655", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "1652" + } + ], + "discriminatedSubtypes": { + "$id": "1656", + "logs": { + "$id": "1657", + "kind": "model", + "name": "RunStepCodeInterpreterLogOutput", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterLogOutput", + "usage": "Output,Json", + "doc": "A representation of a log output emitted by a code interpreter tool in response to a tool call by the model.", + "discriminatorValue": "logs", + "decorators": [], + "baseModel": { + "$ref": "1651" + }, + "properties": [ + { + "$id": "1658", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'logs'.", + "type": { + "$id": "1659", + "kind": "constant", + "valueType": { + "$id": "1660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "logs", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterLogOutput.type", + "serializationOptions": { + "$id": "1661", + "json": { + "$id": "1662", + "name": "type" + } + } + }, + { + "$id": "1663", + "kind": "property", + "name": "logs", + "serializedName": "logs", + "doc": "The serialized log output emitted by the code interpreter.", + "type": { + "$id": "1664", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterLogOutput.logs", + "serializationOptions": { + "$id": "1665", + "json": { + "$id": "1666", + "name": "logs" + } + } + } + ] + }, + "image": { + "$id": "1667", + "kind": "model", + "name": "RunStepCodeInterpreterImageOutput", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterImageOutput", + "usage": "Output,Json", + "doc": "A representation of an image output emitted by a code interpreter tool in response to a tool call by the model.", + "discriminatorValue": "image", + "decorators": [], + "baseModel": { + "$ref": "1651" + }, + "properties": [ + { + "$id": "1668", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'image'.", + "type": { + "$id": "1669", + "kind": "constant", + "valueType": { + "$id": "1670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterImageOutput.type", + "serializationOptions": { + "$id": "1671", + "json": { + "$id": "1672", + "name": "type" + } + } + }, + { + "$id": "1673", + "kind": "property", + "name": "image", + "serializedName": "image", + "doc": "Referential information for the image associated with this output.", + "type": { + "$id": "1674", + "kind": "model", + "name": "RunStepCodeInterpreterImageReference", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterImageReference", + "usage": "Output,Json", + "doc": "An image reference emitted by a code interpreter tool in response to a tool call by the model.", + "decorators": [], + "properties": [ + { + "$id": "1675", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID of the file associated with this image.", + "type": { + "$id": "1676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterImageReference.fileId", + "serializationOptions": { + "$id": "1677", + "json": { + "$id": "1678", + "name": "file_id" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterImageOutput.image", + "serializationOptions": { + "$id": "1679", + "json": { + "$id": "1680", + "name": "image" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCallDetails.outputs", + "serializationOptions": { + "$id": "1681", + "json": { + "$id": "1682", + "name": "outputs" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCodeInterpreterToolCall.codeInterpreter", + "serializationOptions": { + "$id": "1683", + "json": { + "$id": "1684", + "name": "code_interpreter" + } + } + } + ] + }, + "file_search": { + "$id": "1685", + "kind": "model", + "name": "RunStepFileSearchToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a file search tool, issued by the model in evaluation of a defined tool, that represents\nexecuted file search.", + "discriminatorValue": "file_search", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1686", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'file_search'.", + "type": { + "$id": "1687", + "kind": "constant", + "valueType": { + "$id": "1688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "file_search", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCall.type", + "serializationOptions": { + "$id": "1689", + "json": { + "$id": "1690", + "name": "type" + } + } + }, + { + "$id": "1691", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the tool call. This ID must be referenced when you submit tool outputs.", + "type": { + "$id": "1692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCall.id", + "serializationOptions": { + "$id": "1693", + "json": { + "$id": "1694", + "name": "id" + } + } + }, + { + "$id": "1695", + "kind": "property", + "name": "fileSearch", + "serializedName": "file_search", + "doc": "For now, this is always going to be an empty object.", + "type": { + "$id": "1696", + "kind": "model", + "name": "RunStepFileSearchToolCallResults", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResults", + "usage": "Output,Json", + "doc": "The results of the file search.", + "decorators": [], + "properties": [ + { + "$id": "1697", + "kind": "property", + "name": "rankingOptions", + "serializedName": "ranking_options", + "doc": "Ranking options for file search.", + "type": { + "$ref": "385" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResults.rankingOptions", + "serializationOptions": { + "$id": "1698", + "json": { + "$id": "1699", + "name": "ranking_options" + } + } + }, + { + "$id": "1700", + "kind": "property", + "name": "results", + "serializedName": "results", + "doc": "The array of a file search results", + "type": { + "$id": "1701", + "kind": "array", + "name": "ArrayRunStepFileSearchToolCallResult", + "valueType": { + "$id": "1702", + "kind": "model", + "name": "RunStepFileSearchToolCallResult", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResult", + "usage": "Output,Json", + "doc": " File search tool call result.", + "decorators": [], + "properties": [ + { + "$id": "1703", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "The ID of the file that result was found in.", + "type": { + "$id": "1704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResult.fileId", + "serializationOptions": { + "$id": "1705", + "json": { + "$id": "1706", + "name": "file_id" + } + } + }, + { + "$id": "1707", + "kind": "property", + "name": "fileName", + "serializedName": "file_name", + "doc": "The name of the file that result was found in.", + "type": { + "$id": "1708", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResult.fileName", + "serializationOptions": { + "$id": "1709", + "json": { + "$id": "1710", + "name": "file_name" + } + } + }, + { + "$id": "1711", + "kind": "property", + "name": "score", + "serializedName": "score", + "doc": "The score of the result. All values must be a floating point number between 0 and 1.", + "type": { + "$id": "1712", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResult.score", + "serializationOptions": { + "$id": "1713", + "json": { + "$id": "1714", + "name": "score" + } + } + }, + { + "$id": "1715", + "kind": "property", + "name": "content", + "serializedName": "content", + "doc": "The content of the result that was found. The content is only included if requested via the include query parameter.", + "type": { + "$id": "1716", + "kind": "array", + "name": "ArrayFileSearchToolCallContent", + "valueType": { + "$id": "1717", + "kind": "model", + "name": "FileSearchToolCallContent", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolCallContent", + "usage": "Output,Json", + "doc": "The file search result content object.", + "decorators": [], + "properties": [ + { + "$id": "1718", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The type of the content.", + "type": { + "$id": "1719", + "kind": "constant", + "valueType": { + "$ref": "170" + }, + "value": "text", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolCallContent.type", + "serializationOptions": { + "$id": "1720", + "json": { + "$id": "1721", + "name": "type" + } + } + }, + { + "$id": "1722", + "kind": "property", + "name": "text", + "serializedName": "text", + "doc": "The text content of the file.", + "type": { + "$id": "1723", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileSearchToolCallContent.text", + "serializationOptions": { + "$id": "1724", + "json": { + "$id": "1725", + "name": "text" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResult.content", + "serializationOptions": { + "$id": "1726", + "json": { + "$id": "1727", + "name": "content" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCallResults.results", + "serializationOptions": { + "$id": "1728", + "json": { + "$id": "1729", + "name": "results" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFileSearchToolCall.fileSearch", + "serializationOptions": { + "$id": "1730", + "json": { + "$id": "1731", + "name": "file_search" + } + } + } + ] + }, + "bing_grounding": { + "$id": "1732", + "kind": "model", + "name": "RunStepBingGroundingToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepBingGroundingToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a bing grounding tool, issued by the model in evaluation of a defined tool, that represents\nexecuted search with bing grounding.", + "discriminatorValue": "bing_grounding", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1733", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'bing_grounding'.", + "type": { + "$id": "1734", + "kind": "constant", + "valueType": { + "$id": "1735", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "bing_grounding", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepBingGroundingToolCall.type", + "serializationOptions": { + "$id": "1736", + "json": { + "$id": "1737", + "name": "type" + } + } + }, + { + "$id": "1738", + "kind": "property", + "name": "bingGrounding", + "serializedName": "bing_grounding", + "doc": "Reserved for future use.", + "type": { + "$id": "1739", + "kind": "dict", + "keyType": { + "$id": "1740", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "1741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepBingGroundingToolCall.bingGrounding", + "serializationOptions": { + "$id": "1742", + "json": { + "$id": "1743", + "name": "bing_grounding" + } + } + } + ] + }, + "azure_ai_search": { + "$id": "1744", + "kind": "model", + "name": "RunStepAzureAISearchToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepAzureAISearchToolCall", + "usage": "Output,Json", + "doc": "A record of a call to an Azure AI Search tool, issued by the model in evaluation of a defined tool, that represents\nexecuted Azure AI search.", + "discriminatorValue": "azure_ai_search", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1745", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'azure_ai_search'.", + "type": { + "$id": "1746", + "kind": "constant", + "valueType": { + "$id": "1747", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "azure_ai_search", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepAzureAISearchToolCall.type", + "serializationOptions": { + "$id": "1748", + "json": { + "$id": "1749", + "name": "type" + } + } + }, + { + "$id": "1750", + "kind": "property", + "name": "azureAISearch", + "serializedName": "azure_ai_search", + "doc": "Reserved for future use.", + "type": { + "$id": "1751", + "kind": "dict", + "keyType": { + "$id": "1752", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "1753", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepAzureAISearchToolCall.azureAISearch", + "serializationOptions": { + "$id": "1754", + "json": { + "$id": "1755", + "name": "azure_ai_search" + } + } + } + ] + }, + "sharepoint_grounding": { + "$id": "1756", + "kind": "model", + "name": "RunStepSharepointToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepSharepointToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a SharePoint tool, issued by the model in evaluation of a defined tool, that represents\nexecuted SharePoint actions.", + "discriminatorValue": "sharepoint_grounding", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1757", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'sharepoint_grounding'.", + "type": { + "$id": "1758", + "kind": "constant", + "valueType": { + "$id": "1759", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "sharepoint_grounding", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepSharepointToolCall.type", + "serializationOptions": { + "$id": "1760", + "json": { + "$id": "1761", + "name": "type" + } + } + }, + { + "$id": "1762", + "kind": "property", + "name": "sharePoint", + "serializedName": "sharepoint_grounding", + "doc": "Reserved for future use.", + "type": { + "$id": "1763", + "kind": "dict", + "keyType": { + "$id": "1764", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "1765", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepSharepointToolCall.sharePoint", + "serializationOptions": { + "$id": "1766", + "json": { + "$id": "1767", + "name": "sharepoint_grounding" + } + } + } + ] + }, + "fabric_aiskill": { + "$id": "1768", + "kind": "model", + "name": "RunStepMicrosoftFabricToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMicrosoftFabricToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a Microsoft Fabric tool, issued by the model in evaluation of a defined tool, that represents\nexecuted Microsoft Fabric operations.", + "discriminatorValue": "fabric_aiskill", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1769", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'fabric_aiskill'.", + "type": { + "$id": "1770", + "kind": "constant", + "valueType": { + "$id": "1771", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "fabric_aiskill", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMicrosoftFabricToolCall.type", + "serializationOptions": { + "$id": "1772", + "json": { + "$id": "1773", + "name": "type" + } + } + }, + { + "$id": "1774", + "kind": "property", + "name": "microsoftFabric", + "serializedName": "fabric_aiskill", + "doc": "Reserved for future use.", + "type": { + "$id": "1775", + "kind": "dict", + "keyType": { + "$id": "1776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "1777", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepMicrosoftFabricToolCall.microsoftFabric", + "serializationOptions": { + "$id": "1778", + "json": { + "$id": "1779", + "name": "fabric_aiskill" + } + } + } + ] + }, + "function": { + "$id": "1780", + "kind": "model", + "name": "RunStepFunctionToolCall", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCall", + "usage": "Output,Json", + "doc": "A record of a call to a function tool, issued by the model in evaluation of a defined tool, that represents the inputs\nand output consumed and emitted by the specified function.", + "discriminatorValue": "function", + "decorators": [], + "baseModel": { + "$ref": "1627" + }, + "properties": [ + { + "$id": "1781", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'function'.", + "type": { + "$id": "1782", + "kind": "constant", + "valueType": { + "$id": "1783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "function", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCall.type", + "serializationOptions": { + "$id": "1784", + "json": { + "$id": "1785", + "name": "type" + } + } + }, + { + "$id": "1786", + "kind": "property", + "name": "function", + "serializedName": "function", + "doc": "The detailed information about the function called by the model.", + "type": { + "$id": "1787", + "kind": "model", + "name": "RunStepFunctionToolCallDetails", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCallDetails", + "usage": "Output,Json", + "doc": "The detailed information about the function called by the model.", + "decorators": [], + "properties": [ + { + "$id": "1788", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the function.", + "type": { + "$id": "1789", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCallDetails.name", + "serializationOptions": { + "$id": "1790", + "json": { + "$id": "1791", + "name": "name" + } + } + }, + { + "$id": "1792", + "kind": "property", + "name": "arguments", + "serializedName": "arguments", + "doc": "The arguments that the model requires are provided to the named function.", + "type": { + "$id": "1793", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCallDetails.arguments", + "serializationOptions": { + "$id": "1794", + "json": { + "$id": "1795", + "name": "arguments" + } + } + }, + { + "$id": "1796", + "kind": "property", + "name": "output", + "serializedName": "output", + "doc": "The output of the function, only populated for function calls that have already have had their outputs submitted.", + "type": { + "$id": "1797", + "kind": "nullable", + "type": { + "$id": "1798", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCallDetails.output", + "serializationOptions": { + "$id": "1799", + "json": { + "$id": "1800", + "name": "output" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepFunctionToolCall.function", + "serializationOptions": { + "$id": "1801", + "json": { + "$id": "1802", + "name": "function" + } + } + } + ] + } + } + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepToolCallDetails.toolCalls", + "serializationOptions": { + "$id": "1803", + "json": { + "$id": "1804", + "name": "tool_calls" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.stepDetails", + "serializationOptions": { + "$id": "1805", + "json": { + "$id": "1806", + "name": "step_details" + } + } + }, + { + "$id": "1807", + "kind": "property", + "name": "lastError", + "serializedName": "last_error", + "doc": "If applicable, information about the last error encountered by this run step.", + "type": { + "$id": "1808", + "kind": "nullable", + "type": { + "$id": "1809", + "kind": "model", + "name": "RunStepError", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepError", + "usage": "Output,Json", + "doc": "The error information associated with a failed run step.", + "decorators": [], + "properties": [ + { + "$id": "1810", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "The error code for this error.", + "type": { + "$ref": "173" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepError.code", + "serializationOptions": { + "$id": "1811", + "json": { + "$id": "1812", + "name": "code" + } + } + }, + { + "$id": "1813", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "The human-readable text associated with this error.", + "type": { + "$id": "1814", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepError.message", + "serializationOptions": { + "$id": "1815", + "json": { + "$id": "1816", + "name": "message" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.lastError", + "serializationOptions": { + "$id": "1817", + "json": { + "$id": "1818", + "name": "last_error" + } + } + }, + { + "$id": "1819", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "1820", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1821", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.createdAt", + "serializationOptions": { + "$id": "1822", + "json": { + "$id": "1823", + "name": "created_at" + } + } + }, + { + "$id": "1824", + "kind": "property", + "name": "expiredAt", + "serializedName": "expired_at", + "doc": "The Unix timestamp, in seconds, representing when this item expired.", + "type": { + "$id": "1825", + "kind": "nullable", + "type": { + "$id": "1826", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1827", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.expiredAt", + "serializationOptions": { + "$id": "1828", + "json": { + "$id": "1829", + "name": "expired_at" + } + } + }, + { + "$id": "1830", + "kind": "property", + "name": "completedAt", + "serializedName": "completed_at", + "doc": "The Unix timestamp, in seconds, representing when this completed.", + "type": { + "$id": "1831", + "kind": "nullable", + "type": { + "$id": "1832", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1833", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.completedAt", + "serializationOptions": { + "$id": "1834", + "json": { + "$id": "1835", + "name": "completed_at" + } + } + }, + { + "$id": "1836", + "kind": "property", + "name": "cancelledAt", + "serializedName": "cancelled_at", + "doc": "The Unix timestamp, in seconds, representing when this was cancelled.", + "type": { + "$id": "1837", + "kind": "nullable", + "type": { + "$id": "1838", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1839", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.cancelledAt", + "serializationOptions": { + "$id": "1840", + "json": { + "$id": "1841", + "name": "cancelled_at" + } + } + }, + { + "$id": "1842", + "kind": "property", + "name": "failedAt", + "serializedName": "failed_at", + "doc": "The Unix timestamp, in seconds, representing when this failed.", + "type": { + "$id": "1843", + "kind": "nullable", + "type": { + "$id": "1844", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1845", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.failedAt", + "serializationOptions": { + "$id": "1846", + "json": { + "$id": "1847", + "name": "failed_at" + } + } + }, + { + "$id": "1848", + "kind": "property", + "name": "usage", + "serializedName": "usage", + "doc": "Usage statistics related to the run step. This value will be `null` while the run step's status is `in_progress`.", + "type": { + "$id": "1849", + "kind": "nullable", + "type": { + "$id": "1850", + "kind": "model", + "name": "RunStepCompletionUsage", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCompletionUsage", + "usage": "Output,Json", + "doc": "Usage statistics related to the run step.", + "decorators": [], + "properties": [ + { + "$id": "1851", + "kind": "property", + "name": "completionTokens", + "serializedName": "completion_tokens", + "doc": "Number of completion tokens used over the course of the run step.", + "type": { + "$id": "1852", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCompletionUsage.completionTokens", + "serializationOptions": { + "$id": "1853", + "json": { + "$id": "1854", + "name": "completion_tokens" + } + } + }, + { + "$id": "1855", + "kind": "property", + "name": "promptTokens", + "serializedName": "prompt_tokens", + "doc": "Number of prompt tokens used over the course of the run step.", + "type": { + "$id": "1856", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCompletionUsage.promptTokens", + "serializationOptions": { + "$id": "1857", + "json": { + "$id": "1858", + "name": "prompt_tokens" + } + } + }, + { + "$id": "1859", + "kind": "property", + "name": "totalTokens", + "serializedName": "total_tokens", + "doc": "Total number of tokens used (prompt + completion).", + "type": { + "$id": "1860", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStepCompletionUsage.totalTokens", + "serializationOptions": { + "$id": "1861", + "json": { + "$id": "1862", + "name": "total_tokens" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.usage", + "serializationOptions": { + "$id": "1863", + "json": { + "$id": "1864", + "name": "usage" + } + } + }, + { + "$id": "1865", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.RunStep.metadata", + "serializationOptions": { + "$id": "1866", + "json": { + "$id": "1867", + "name": "metadata" + } + } + } + ] + }, + { + "$ref": "1600" + }, + { + "$ref": "1605" + }, + { + "$ref": "1612" + }, + { + "$ref": "1619" + }, + { + "$ref": "1627" + }, + { + "$ref": "1637" + }, + { + "$ref": "1644" + }, + { + "$ref": "1651" + }, + { + "$ref": "1657" + }, + { + "$ref": "1667" + }, + { + "$ref": "1674" + }, + { + "$ref": "1685" + }, + { + "$ref": "1696" + }, + { + "$ref": "1702" + }, + { + "$ref": "1717" + }, + { + "$ref": "1732" + }, + { + "$ref": "1744" + }, + { + "$ref": "1756" + }, + { + "$ref": "1768" + }, + { + "$ref": "1780" + }, + { + "$ref": "1787" + }, + { + "$ref": "1809" + }, + { + "$ref": "1850" + }, + { + "$id": "1868", + "kind": "model", + "name": "OpenAIPageableListOfRunStep", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "1869", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "1870", + "kind": "constant", + "valueType": { + "$ref": "179" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "1871", + "json": { + "$id": "1872", + "name": "object" + } + } + }, + { + "$id": "1873", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "1874", + "kind": "array", + "name": "ArrayRunStep", + "valueType": { + "$ref": "1572" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "1875", + "json": { + "$id": "1876", + "name": "data" + } + } + }, + { + "$id": "1877", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "1878", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "1879", + "json": { + "$id": "1880", + "name": "first_id" + } + } + }, + { + "$id": "1881", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "1882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "1883", + "json": { + "$id": "1884", + "name": "last_id" + } + } + }, + { + "$id": "1885", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "1886", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "1887", + "json": { + "$id": "1888", + "name": "has_more" + } + } + } + ] + }, + { + "$id": "1889", + "kind": "model", + "name": "FileListResponse", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileListResponse", + "usage": "Output,Json", + "doc": "The response data from a file list operation.", + "decorators": [], + "properties": [ + { + "$id": "1890", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'list'.", + "type": { + "$id": "1891", + "kind": "constant", + "valueType": { + "$ref": "198" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileListResponse.object", + "serializationOptions": { + "$id": "1892", + "json": { + "$id": "1893", + "name": "object" + } + } + }, + { + "$id": "1894", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The files returned for the request.", + "type": { + "$id": "1895", + "kind": "array", + "name": "ArrayOpenAiFile", + "valueType": { + "$id": "1896", + "kind": "model", + "name": "OpenAIFile", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile", + "usage": "Output,Json", + "doc": "Represents an agent that can call the model and use tools.", + "decorators": [], + "properties": [ + { + "$id": "1897", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'file'.", + "type": { + "$id": "1898", + "kind": "constant", + "valueType": { + "$ref": "201" + }, + "value": "file", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.object", + "serializationOptions": { + "$id": "1899", + "json": { + "$id": "1900", + "name": "object" + } + } + }, + { + "$id": "1901", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "1902", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.id", + "serializationOptions": { + "$id": "1903", + "json": { + "$id": "1904", + "name": "id" + } + } + }, + { + "$id": "1905", + "kind": "property", + "name": "bytes", + "serializedName": "bytes", + "doc": "The size of the file, in bytes.", + "type": { + "$id": "1906", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.bytes", + "serializationOptions": { + "$id": "1907", + "json": { + "$id": "1908", + "name": "bytes" + } + } + }, + { + "$id": "1909", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file.", + "type": { + "$id": "1910", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.filename", + "serializationOptions": { + "$id": "1911", + "json": { + "$id": "1912", + "name": "filename" + } + } + }, + { + "$id": "1913", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp, in seconds, representing when this object was created.", + "type": { + "$id": "1914", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1915", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.createdAt", + "serializationOptions": { + "$id": "1916", + "json": { + "$id": "1917", + "name": "created_at" + } + } + }, + { + "$id": "1918", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of a file.", + "type": { + "$ref": "182" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.purpose", + "serializationOptions": { + "$id": "1919", + "json": { + "$id": "1920", + "name": "purpose" + } + } + }, + { + "$id": "1921", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The state of the file. This field is available in Azure OpenAI only.", + "type": { + "$ref": "204" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.status", + "serializationOptions": { + "$id": "1922", + "json": { + "$id": "1923", + "name": "status" + } + } + }, + { + "$id": "1924", + "kind": "property", + "name": "statusDetails", + "serializedName": "status_details", + "doc": "The error message with details in case processing of this file failed. This field is available in Azure OpenAI only.", + "type": { + "$id": "1925", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIFile.statusDetails", + "serializationOptions": { + "$id": "1926", + "json": { + "$id": "1927", + "name": "status_details" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileListResponse.data", + "serializationOptions": { + "$id": "1928", + "json": { + "$id": "1929", + "name": "data" + } + } + } + ] + }, + { + "$ref": "1896" + }, + { + "$id": "1930", + "kind": "model", + "name": "UploadFileRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.uploadFile.Request.anonymous", + "usage": "MultipartFormData,Spread", + "decorators": [], + "properties": [ + { + "$id": "1931", + "kind": "property", + "name": "Data", + "serializedName": "file", + "doc": "The file data, in bytes.", + "type": { + "$id": "1932", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "uploadFile.Request.anonymous.file", + "serializationOptions": { + "$id": "1933", + "multipart": { + "$id": "1934", + "isFilePart": true, + "isMulti": false, + "defaultContentTypes": [], + "name": "Data" + } + } + }, + { + "$id": "1935", + "kind": "property", + "name": "purpose", + "serializedName": "purpose", + "doc": "The intended purpose of the uploaded file. Use `assistants` for Agents and Message files, `vision` for Agents image file inputs, `batch` for Batch API, and `fine-tune` for Fine-tuning.", + "type": { + "$ref": "182" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "uploadFile.Request.anonymous.purpose", + "serializationOptions": { + "$id": "1936", + "multipart": { + "$id": "1937", + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [], + "name": "purpose" + } + } + }, + { + "$id": "1938", + "kind": "property", + "name": "filename", + "serializedName": "filename", + "doc": "The name of the file.", + "type": { + "$id": "1939", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "uploadFile.Request.anonymous.filename", + "serializationOptions": { + "$id": "1940", + "multipart": { + "$id": "1941", + "isFilePart": false, + "isMulti": false, + "defaultContentTypes": [], + "name": "filename" + } + } + } + ] + }, + { + "$id": "1942", + "kind": "model", + "name": "FileDeletionStatus", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.FileDeletionStatus", + "usage": "Output,Json", + "doc": "A status response from a file deletion operation.", + "decorators": [], + "properties": [ + { + "$id": "1943", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the resource specified for deletion.", + "type": { + "$id": "1944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileDeletionStatus.id", + "serializationOptions": { + "$id": "1945", + "json": { + "$id": "1946", + "name": "id" + } + } + }, + { + "$id": "1947", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "A value indicating whether deletion was successful.", + "type": { + "$id": "1948", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileDeletionStatus.deleted", + "serializationOptions": { + "$id": "1949", + "json": { + "$id": "1950", + "name": "deleted" + } + } + }, + { + "$id": "1951", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'file'.", + "type": { + "$id": "1952", + "kind": "constant", + "valueType": { + "$ref": "220" + }, + "value": "file", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.FileDeletionStatus.object", + "serializationOptions": { + "$id": "1953", + "json": { + "$id": "1954", + "name": "object" + } + } + } + ] + }, + { + "$id": "1955", + "kind": "model", + "name": "OpenAIPageableListOfVectorStore", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "1956", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "1957", + "kind": "constant", + "valueType": { + "$ref": "223" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "1958", + "json": { + "$id": "1959", + "name": "object" + } + } + }, + { + "$id": "1960", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "1961", + "kind": "array", + "name": "ArrayVectorStore", + "valueType": { + "$id": "1962", + "kind": "model", + "name": "VectorStore", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore", + "usage": "Output,Json", + "doc": "A vector store is a collection of processed files can be used by the `file_search` tool.", + "decorators": [], + "properties": [ + { + "$id": "1963", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "1964", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.id", + "serializationOptions": { + "$id": "1965", + "json": { + "$id": "1966", + "name": "id" + } + } + }, + { + "$id": "1967", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store`", + "type": { + "$id": "1968", + "kind": "constant", + "valueType": { + "$ref": "226" + }, + "value": "vector_store", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.object", + "serializationOptions": { + "$id": "1969", + "json": { + "$id": "1970", + "name": "object" + } + } + }, + { + "$id": "1971", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store was created.", + "type": { + "$id": "1972", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "1973", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.createdAt", + "serializationOptions": { + "$id": "1974", + "json": { + "$id": "1975", + "name": "created_at" + } + } + }, + { + "$id": "1976", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "1977", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.name", + "serializationOptions": { + "$id": "1978", + "json": { + "$id": "1979", + "name": "name" + } + } + }, + { + "$id": "1980", + "kind": "property", + "name": "usageBytes", + "serializedName": "usage_bytes", + "doc": "The total number of bytes used by the files in the vector store.", + "type": { + "$id": "1981", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.usageBytes", + "serializationOptions": { + "$id": "1982", + "json": { + "$id": "1983", + "name": "usage_bytes" + } + } + }, + { + "$id": "1984", + "kind": "property", + "name": "fileCounts", + "serializedName": "file_counts", + "doc": "Files count grouped by status processed or being processed by this vector store.", + "type": { + "$id": "1985", + "kind": "model", + "name": "VectorStoreFileCount", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount", + "usage": "Output,Json", + "doc": "Counts of files processed or being processed by this vector store grouped by status.", + "decorators": [], + "properties": [ + { + "$id": "1986", + "kind": "property", + "name": "inProgress", + "serializedName": "in_progress", + "doc": "The number of files that are currently being processed.", + "type": { + "$id": "1987", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount.inProgress", + "serializationOptions": { + "$id": "1988", + "json": { + "$id": "1989", + "name": "in_progress" + } + } + }, + { + "$id": "1990", + "kind": "property", + "name": "completed", + "serializedName": "completed", + "doc": "The number of files that have been successfully processed.", + "type": { + "$id": "1991", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount.completed", + "serializationOptions": { + "$id": "1992", + "json": { + "$id": "1993", + "name": "completed" + } + } + }, + { + "$id": "1994", + "kind": "property", + "name": "failed", + "serializedName": "failed", + "doc": "The number of files that have failed to process.", + "type": { + "$id": "1995", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount.failed", + "serializationOptions": { + "$id": "1996", + "json": { + "$id": "1997", + "name": "failed" + } + } + }, + { + "$id": "1998", + "kind": "property", + "name": "cancelled", + "serializedName": "cancelled", + "doc": "The number of files that were cancelled.", + "type": { + "$id": "1999", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount.cancelled", + "serializationOptions": { + "$id": "2000", + "json": { + "$id": "2001", + "name": "cancelled" + } + } + }, + { + "$id": "2002", + "kind": "property", + "name": "total", + "serializedName": "total", + "doc": "The total number of files.", + "type": { + "$id": "2003", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileCount.total", + "serializationOptions": { + "$id": "2004", + "json": { + "$id": "2005", + "name": "total" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.fileCounts", + "serializationOptions": { + "$id": "2006", + "json": { + "$id": "2007", + "name": "file_counts" + } + } + }, + { + "$id": "2008", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store, which can be either `expired`, `in_progress`, or `completed`. A status of `completed` indicates that the vector store is ready for use.", + "type": { + "$ref": "229" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.status", + "serializationOptions": { + "$id": "2009", + "json": { + "$id": "2010", + "name": "status" + } + } + }, + { + "$id": "2011", + "kind": "property", + "name": "expiresAfter", + "serializedName": "expires_after", + "doc": "Details on when this vector store expires", + "type": { + "$id": "2012", + "kind": "model", + "name": "VectorStoreExpirationPolicy", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreExpirationPolicy", + "usage": "Input,Output,Json", + "doc": "The expiration policy for a vector store.", + "decorators": [], + "properties": [ + { + "$id": "2013", + "kind": "property", + "name": "anchor", + "serializedName": "anchor", + "doc": "Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.", + "type": { + "$ref": "237" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreExpirationPolicy.anchor", + "serializationOptions": { + "$id": "2014", + "json": { + "$id": "2015", + "name": "anchor" + } + } + }, + { + "$id": "2016", + "kind": "property", + "name": "days", + "serializedName": "days", + "doc": "The anchor timestamp after which the expiration policy applies.", + "type": { + "$id": "2017", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreExpirationPolicy.days", + "serializationOptions": { + "$id": "2018", + "json": { + "$id": "2019", + "name": "days" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.expiresAfter", + "serializationOptions": { + "$id": "2020", + "json": { + "$id": "2021", + "name": "expires_after" + } + } + }, + { + "$id": "2022", + "kind": "property", + "name": "expiresAt", + "serializedName": "expires_at", + "doc": "The Unix timestamp (in seconds) for when the vector store will expire.", + "type": { + "$id": "2023", + "kind": "nullable", + "type": { + "$id": "2024", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2025", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.expiresAt", + "serializationOptions": { + "$id": "2026", + "json": { + "$id": "2027", + "name": "expires_at" + } + } + }, + { + "$id": "2028", + "kind": "property", + "name": "lastActiveAt", + "serializedName": "last_active_at", + "doc": "The Unix timestamp (in seconds) for when the vector store was last active.", + "type": { + "$id": "2029", + "kind": "nullable", + "type": { + "$id": "2030", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2031", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.lastActiveAt", + "serializationOptions": { + "$id": "2032", + "json": { + "$id": "2033", + "name": "last_active_at" + } + } + }, + { + "$id": "2034", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "760" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStore.metadata", + "serializationOptions": { + "$id": "2035", + "json": { + "$id": "2036", + "name": "metadata" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "2037", + "json": { + "$id": "2038", + "name": "data" + } + } + }, + { + "$id": "2039", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "2040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "2041", + "json": { + "$id": "2042", + "name": "first_id" + } + } + }, + { + "$id": "2043", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "2044", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "2045", + "json": { + "$id": "2046", + "name": "last_id" + } + } + }, + { + "$id": "2047", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "2048", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "2049", + "json": { + "$id": "2050", + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "1962" + }, + { + "$ref": "1985" + }, + { + "$ref": "2012" + }, + { + "$id": "2051", + "kind": "model", + "name": "VectorStoreChunkingStrategyRequest", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyRequest", + "usage": "Input,Json", + "doc": "An abstract representation of a vector store chunking strategy configuration.", + "decorators": [], + "discriminatorProperty": { + "$id": "2052", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$ref": "241" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyRequest.type", + "serializationOptions": { + "$id": "2053", + "json": { + "$id": "2054", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2052" + } + ], + "discriminatedSubtypes": { + "$id": "2055", + "auto": { + "$id": "2056", + "kind": "model", + "name": "VectorStoreAutoChunkingStrategyRequest", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreAutoChunkingStrategyRequest", + "usage": "Input,Json", + "doc": "The default strategy. This strategy currently uses a max_chunk_size_tokens of 800 and chunk_overlap_tokens of 400.", + "discriminatorValue": "auto", + "decorators": [], + "baseModel": { + "$ref": "2051" + }, + "properties": [ + { + "$id": "2057", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'auto'.", + "type": { + "$id": "2058", + "kind": "constant", + "valueType": { + "$id": "2059", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "auto", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreAutoChunkingStrategyRequest.type", + "serializationOptions": { + "$id": "2060", + "json": { + "$id": "2061", + "name": "type" + } + } + } + ] + }, + "static": { + "$id": "2062", + "kind": "model", + "name": "VectorStoreStaticChunkingStrategyRequest", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyRequest", + "usage": "Input,Json", + "doc": "A statically configured chunking strategy.", + "discriminatorValue": "static", + "decorators": [], + "baseModel": { + "$ref": "2051" + }, + "properties": [ + { + "$id": "2063", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'static'.", + "type": { + "$id": "2064", + "kind": "constant", + "valueType": { + "$id": "2065", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "static", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyRequest.type", + "serializationOptions": { + "$id": "2066", + "json": { + "$id": "2067", + "name": "type" + } + } + }, + { + "$id": "2068", + "kind": "property", + "name": "static", + "serializedName": "static", + "doc": "The options for the static chunking strategy.", + "type": { + "$id": "2069", + "kind": "model", + "name": "VectorStoreStaticChunkingStrategyOptions", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyOptions", + "usage": "Input,Output,Json", + "doc": "Options to configure a vector store static chunking strategy.", + "decorators": [], + "properties": [ + { + "$id": "2070", + "kind": "property", + "name": "maxChunkSizeTokens", + "serializedName": "max_chunk_size_tokens", + "doc": "The maximum number of tokens in each chunk. The default value is 800. The minimum value is 100 and the maximum value is 4096.", + "type": { + "$id": "2071", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyOptions.maxChunkSizeTokens", + "serializationOptions": { + "$id": "2072", + "json": { + "$id": "2073", + "name": "max_chunk_size_tokens" + } + } + }, + { + "$id": "2074", + "kind": "property", + "name": "chunkOverlapTokens", + "serializedName": "chunk_overlap_tokens", + "doc": "The number of tokens that overlap between chunks. The default value is 400.\nNote that the overlap must not exceed half of max_chunk_size_tokens.", + "type": { + "$id": "2075", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyOptions.chunkOverlapTokens", + "serializationOptions": { + "$id": "2076", + "json": { + "$id": "2077", + "name": "chunk_overlap_tokens" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyRequest.static", + "serializationOptions": { + "$id": "2078", + "json": { + "$id": "2079", + "name": "static" + } + } + } + ] + } + } + }, + { + "$ref": "2056" + }, + { + "$ref": "2062" + }, + { + "$ref": "2069" + }, + { + "$id": "2080", + "kind": "model", + "name": "CreateVectorStoreRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createVectorStore.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2081", + "kind": "property", + "name": "fileIds", + "serializedName": "file_ids", + "doc": "A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files.", + "type": { + "$id": "2082", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2083", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.fileIds", + "serializationOptions": { + "$id": "2084", + "json": { + "$id": "2085", + "name": "file_ids" + } + } + }, + { + "$id": "2086", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "2087", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.name", + "serializationOptions": { + "$id": "2088", + "json": { + "$id": "2089", + "name": "name" + } + } + }, + { + "$id": "2090", + "kind": "property", + "name": "storeConfiguration", + "serializedName": "configuration", + "doc": "The vector store configuration, used when vector store is created from Azure asset URIs.", + "type": { + "$ref": "600" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.storeConfiguration", + "serializationOptions": { + "$id": "2091", + "json": { + "$id": "2092", + "name": "configuration" + } + } + }, + { + "$id": "2093", + "kind": "property", + "name": "expiresAfter", + "serializedName": "expires_after", + "doc": "Details on when this vector store expires", + "type": { + "$ref": "2012" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.expiresAfter", + "serializationOptions": { + "$id": "2094", + "json": { + "$id": "2095", + "name": "expires_after" + } + } + }, + { + "$id": "2096", + "kind": "property", + "name": "chunkingStrategy", + "serializedName": "chunking_strategy", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty.", + "type": { + "$ref": "2051" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.chunkingStrategy", + "serializationOptions": { + "$id": "2097", + "json": { + "$id": "2098", + "name": "chunking_strategy" + } + } + }, + { + "$id": "2099", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStore.Request.anonymous.metadata", + "serializationOptions": { + "$id": "2100", + "json": { + "$id": "2101", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "2102", + "kind": "model", + "name": "ModifyVectorStoreRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.modifyVectorStore.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2103", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the vector store.", + "type": { + "$id": "2104", + "kind": "nullable", + "type": { + "$id": "2105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "modifyVectorStore.Request.anonymous.name", + "serializationOptions": { + "$id": "2106", + "json": { + "$id": "2107", + "name": "name" + } + } + }, + { + "$id": "2108", + "kind": "property", + "name": "expiresAfter", + "serializedName": "expires_after", + "doc": "Details on when this vector store expires", + "type": { + "$id": "2109", + "kind": "nullable", + "type": { + "$ref": "2012" + }, + "clientNamespace": "" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "modifyVectorStore.Request.anonymous.expiresAfter", + "serializationOptions": { + "$id": "2110", + "json": { + "$id": "2111", + "name": "expires_after" + } + } + }, + { + "$id": "2112", + "kind": "property", + "name": "metadata", + "serializedName": "metadata", + "doc": "A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.", + "type": { + "$ref": "698" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "modifyVectorStore.Request.anonymous.metadata", + "serializationOptions": { + "$id": "2113", + "json": { + "$id": "2114", + "name": "metadata" + } + } + } + ] + }, + { + "$id": "2115", + "kind": "model", + "name": "VectorStoreDeletionStatus", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDeletionStatus", + "usage": "Output,Json", + "doc": "Response object for deleting a vector store.", + "decorators": [], + "properties": [ + { + "$id": "2116", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the resource specified for deletion.", + "type": { + "$id": "2117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDeletionStatus.id", + "serializationOptions": { + "$id": "2118", + "json": { + "$id": "2119", + "name": "id" + } + } + }, + { + "$id": "2120", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "A value indicating whether deletion was successful.", + "type": { + "$id": "2121", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDeletionStatus.deleted", + "serializationOptions": { + "$id": "2122", + "json": { + "$id": "2123", + "name": "deleted" + } + } + }, + { + "$id": "2124", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'vector_store.deleted'.", + "type": { + "$id": "2125", + "kind": "constant", + "valueType": { + "$ref": "247" + }, + "value": "vector_store.deleted", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreDeletionStatus.object", + "serializationOptions": { + "$id": "2126", + "json": { + "$id": "2127", + "name": "object" + } + } + } + ] + }, + { + "$id": "2128", + "kind": "model", + "name": "OpenAIPageableListOfVectorStoreFile", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf", + "usage": "Output,Json", + "doc": "The response data for a requested list of items.", + "decorators": [], + "properties": [ + { + "$id": "2129", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always list.", + "type": { + "$id": "2130", + "kind": "constant", + "valueType": { + "$ref": "260" + }, + "value": "list", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.object", + "serializationOptions": { + "$id": "2131", + "json": { + "$id": "2132", + "name": "object" + } + } + }, + { + "$id": "2133", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "The requested list of items.", + "type": { + "$id": "2134", + "kind": "array", + "name": "ArrayVectorStoreFile", + "valueType": { + "$id": "2135", + "kind": "model", + "name": "VectorStoreFile", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile", + "usage": "Output,Json", + "doc": "Description of a file attached to a vector store.", + "decorators": [], + "properties": [ + { + "$id": "2136", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "2137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.id", + "serializationOptions": { + "$id": "2138", + "json": { + "$id": "2139", + "name": "id" + } + } + }, + { + "$id": "2140", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.file`.", + "type": { + "$id": "2141", + "kind": "constant", + "valueType": { + "$ref": "263" + }, + "value": "vector_store.file", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.object", + "serializationOptions": { + "$id": "2142", + "json": { + "$id": "2143", + "name": "object" + } + } + }, + { + "$id": "2144", + "kind": "property", + "name": "usageBytes", + "serializedName": "usage_bytes", + "doc": "The total vector store usage in bytes. Note that this may be different from the original file\nsize.", + "type": { + "$id": "2145", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.usageBytes", + "serializationOptions": { + "$id": "2146", + "json": { + "$id": "2147", + "name": "usage_bytes" + } + } + }, + { + "$id": "2148", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store file was created.", + "type": { + "$id": "2149", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2150", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.createdAt", + "serializationOptions": { + "$id": "2151", + "json": { + "$id": "2152", + "name": "created_at" + } + } + }, + { + "$id": "2153", + "kind": "property", + "name": "vectorStoreId", + "serializedName": "vector_store_id", + "doc": "The ID of the vector store that the file is attached to.", + "type": { + "$id": "2154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.vectorStoreId", + "serializationOptions": { + "$id": "2155", + "json": { + "$id": "2156", + "name": "vector_store_id" + } + } + }, + { + "$id": "2157", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. The status `completed` indicates that the vector store file is ready for use.", + "type": { + "$ref": "266" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.status", + "serializationOptions": { + "$id": "2158", + "json": { + "$id": "2159", + "name": "status" + } + } + }, + { + "$id": "2160", + "kind": "property", + "name": "lastError", + "serializedName": "last_error", + "doc": "The last error associated with this vector store file. Will be `null` if there are no errors.", + "type": { + "$id": "2161", + "kind": "nullable", + "type": { + "$id": "2162", + "kind": "model", + "name": "VectorStoreFileError", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileError", + "usage": "Output,Json", + "doc": "Details on the error that may have occurred while processing a file for this vector store", + "decorators": [], + "properties": [ + { + "$id": "2163", + "kind": "property", + "name": "code", + "serializedName": "code", + "doc": "One of `server_error` or `rate_limit_exceeded`.", + "type": { + "$ref": "276" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileError.code", + "serializationOptions": { + "$id": "2164", + "json": { + "$id": "2165", + "name": "code" + } + } + }, + { + "$id": "2166", + "kind": "property", + "name": "message", + "serializedName": "message", + "doc": "A human-readable description of the error.", + "type": { + "$id": "2167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileError.message", + "serializationOptions": { + "$id": "2168", + "json": { + "$id": "2169", + "name": "message" + } + } + } + ] + }, + "clientNamespace": "" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.lastError", + "serializationOptions": { + "$id": "2170", + "json": { + "$id": "2171", + "name": "last_error" + } + } + }, + { + "$id": "2172", + "kind": "property", + "name": "chunkingStrategy", + "serializedName": "chunking_strategy", + "doc": "The strategy used to chunk the file.", + "type": { + "$id": "2173", + "kind": "model", + "name": "VectorStoreChunkingStrategyResponse", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyResponse", + "usage": "Output,Json", + "doc": "An abstract representation of a vector store chunking strategy configuration.", + "decorators": [], + "discriminatorProperty": { + "$id": "2174", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type.", + "type": { + "$ref": "284" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreChunkingStrategyResponse.type", + "serializationOptions": { + "$id": "2175", + "json": { + "$id": "2176", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2174" + } + ], + "discriminatedSubtypes": { + "$id": "2177", + "other": { + "$id": "2178", + "kind": "model", + "name": "VectorStoreAutoChunkingStrategyResponse", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreAutoChunkingStrategyResponse", + "usage": "Output,Json", + "doc": "This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the chunking_strategy concept was introduced in the API.", + "discriminatorValue": "other", + "decorators": [], + "baseModel": { + "$ref": "2173" + }, + "properties": [ + { + "$id": "2179", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'other'.", + "type": { + "$id": "2180", + "kind": "constant", + "valueType": { + "$id": "2181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "other", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreAutoChunkingStrategyResponse.type", + "serializationOptions": { + "$id": "2182", + "json": { + "$id": "2183", + "name": "type" + } + } + } + ] + }, + "static": { + "$id": "2184", + "kind": "model", + "name": "VectorStoreStaticChunkingStrategyResponse", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyResponse", + "usage": "Output,Json", + "doc": "A statically configured chunking strategy.", + "discriminatorValue": "static", + "decorators": [], + "baseModel": { + "$ref": "2173" + }, + "properties": [ + { + "$id": "2185", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "The object type, which is always 'static'.", + "type": { + "$id": "2186", + "kind": "constant", + "valueType": { + "$id": "2187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "static", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyResponse.type", + "serializationOptions": { + "$id": "2188", + "json": { + "$id": "2189", + "name": "type" + } + } + }, + { + "$id": "2190", + "kind": "property", + "name": "static", + "serializedName": "static", + "doc": "The options for the static chunking strategy.", + "type": { + "$ref": "2069" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreStaticChunkingStrategyResponse.static", + "serializationOptions": { + "$id": "2191", + "json": { + "$id": "2192", + "name": "static" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFile.chunkingStrategy", + "serializationOptions": { + "$id": "2193", + "json": { + "$id": "2194", + "name": "chunking_strategy" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.data", + "serializationOptions": { + "$id": "2195", + "json": { + "$id": "2196", + "name": "data" + } + } + }, + { + "$id": "2197", + "kind": "property", + "name": "firstId", + "serializedName": "first_id", + "doc": "The first ID represented in this list.", + "type": { + "$id": "2198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.firstId", + "serializationOptions": { + "$id": "2199", + "json": { + "$id": "2200", + "name": "first_id" + } + } + }, + { + "$id": "2201", + "kind": "property", + "name": "lastId", + "serializedName": "last_id", + "doc": "The last ID represented in this list.", + "type": { + "$id": "2202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.lastId", + "serializationOptions": { + "$id": "2203", + "json": { + "$id": "2204", + "name": "last_id" + } + } + }, + { + "$id": "2205", + "kind": "property", + "name": "hasMore", + "serializedName": "has_more", + "doc": "A value indicating whether there are additional values available not captured in this list.", + "type": { + "$id": "2206", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.OpenAIPageableListOf.hasMore", + "serializationOptions": { + "$id": "2207", + "json": { + "$id": "2208", + "name": "has_more" + } + } + } + ] + }, + { + "$ref": "2135" + }, + { + "$ref": "2162" + }, + { + "$ref": "2173" + }, + { + "$ref": "2178" + }, + { + "$ref": "2184" + }, + { + "$id": "2209", + "kind": "model", + "name": "CreateVectorStoreFileRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createVectorStoreFile.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2210", + "kind": "property", + "name": "fileId", + "serializedName": "file_id", + "doc": "Identifier of the file.", + "type": { + "$id": "2211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFile.Request.anonymous.fileId", + "serializationOptions": { + "$id": "2212", + "json": { + "$id": "2213", + "name": "file_id" + } + } + }, + { + "$id": "2214", + "kind": "property", + "name": "dataSource", + "serializedName": "data_source", + "doc": "Azure asset ID.", + "type": { + "$ref": "573" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFile.Request.anonymous.dataSource", + "serializationOptions": { + "$id": "2215", + "json": { + "$id": "2216", + "name": "data_source" + } + } + }, + { + "$id": "2217", + "kind": "property", + "name": "chunkingStrategy", + "serializedName": "chunking_strategy", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.", + "type": { + "$ref": "2051" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFile.Request.anonymous.chunkingStrategy", + "serializationOptions": { + "$id": "2218", + "json": { + "$id": "2219", + "name": "chunking_strategy" + } + } + } + ] + }, + { + "$id": "2220", + "kind": "model", + "name": "VectorStoreFileDeletionStatus", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileDeletionStatus", + "usage": "Output,Json", + "doc": "Response object for deleting a vector store file relationship.", + "decorators": [], + "properties": [ + { + "$id": "2221", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The ID of the resource specified for deletion.", + "type": { + "$id": "2222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileDeletionStatus.id", + "serializationOptions": { + "$id": "2223", + "json": { + "$id": "2224", + "name": "id" + } + } + }, + { + "$id": "2225", + "kind": "property", + "name": "deleted", + "serializedName": "deleted", + "doc": "A value indicating whether deletion was successful.", + "type": { + "$id": "2226", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileDeletionStatus.deleted", + "serializationOptions": { + "$id": "2227", + "json": { + "$id": "2228", + "name": "deleted" + } + } + }, + { + "$id": "2229", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always 'vector_store.deleted'.", + "type": { + "$id": "2230", + "kind": "constant", + "valueType": { + "$ref": "290" + }, + "value": "vector_store.file.deleted", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileDeletionStatus.object", + "serializationOptions": { + "$id": "2231", + "json": { + "$id": "2232", + "name": "object" + } + } + } + ] + }, + { + "$id": "2233", + "kind": "model", + "name": "CreateVectorStoreFileBatchRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Agents.createVectorStoreFileBatch.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2234", + "kind": "property", + "name": "fileIds", + "serializedName": "file_ids", + "doc": "List of file identifiers.", + "type": { + "$id": "2235", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFileBatch.Request.anonymous.fileIds", + "serializationOptions": { + "$id": "2237", + "json": { + "$id": "2238", + "name": "file_ids" + } + } + }, + { + "$id": "2239", + "kind": "property", + "name": "dataSources", + "serializedName": "data_sources", + "doc": "List of Azure assets.", + "type": { + "$id": "2240", + "kind": "array", + "name": "ArrayVectorStoreDataSource", + "valueType": { + "$ref": "573" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFileBatch.Request.anonymous.dataSources", + "serializationOptions": { + "$id": "2241", + "json": { + "$id": "2242", + "name": "data_sources" + } + } + }, + { + "$id": "2243", + "kind": "property", + "name": "chunkingStrategy", + "serializedName": "chunking_strategy", + "doc": "The chunking strategy used to chunk the file(s). If not set, will use the auto strategy.", + "type": { + "$ref": "2051" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "createVectorStoreFileBatch.Request.anonymous.chunkingStrategy", + "serializationOptions": { + "$id": "2244", + "json": { + "$id": "2245", + "name": "chunking_strategy" + } + } + } + ] + }, + { + "$id": "2246", + "kind": "model", + "name": "VectorStoreFileBatch", + "clientNamespace": "Azure.AI.Agents", + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch", + "usage": "Output,Json", + "doc": "A batch of files attached to a vector store.", + "decorators": [], + "properties": [ + { + "$id": "2247", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "The identifier, which can be referenced in API endpoints.", + "type": { + "$id": "2248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.id", + "serializationOptions": { + "$id": "2249", + "json": { + "$id": "2250", + "name": "id" + } + } + }, + { + "$id": "2251", + "kind": "property", + "name": "object", + "serializedName": "object", + "doc": "The object type, which is always `vector_store.file_batch`.", + "type": { + "$id": "2252", + "kind": "constant", + "valueType": { + "$ref": "293" + }, + "value": "vector_store.files_batch", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.object", + "serializationOptions": { + "$id": "2253", + "json": { + "$id": "2254", + "name": "object" + } + } + }, + { + "$id": "2255", + "kind": "property", + "name": "createdAt", + "serializedName": "created_at", + "doc": "The Unix timestamp (in seconds) for when the vector store files batch was created.", + "type": { + "$id": "2256", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "2257", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.createdAt", + "serializationOptions": { + "$id": "2258", + "json": { + "$id": "2259", + "name": "created_at" + } + } + }, + { + "$id": "2260", + "kind": "property", + "name": "vectorStoreId", + "serializedName": "vector_store_id", + "doc": "The ID of the vector store that the file is attached to.", + "type": { + "$id": "2261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.vectorStoreId", + "serializationOptions": { + "$id": "2262", + "json": { + "$id": "2263", + "name": "vector_store_id" + } + } + }, + { + "$id": "2264", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "The status of the vector store files batch, which can be either `in_progress`, `completed`, `cancelled` or `failed`.", + "type": { + "$ref": "296" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.status", + "serializationOptions": { + "$id": "2265", + "json": { + "$id": "2266", + "name": "status" + } + } + }, + { + "$id": "2267", + "kind": "property", + "name": "fileCounts", + "serializedName": "file_counts", + "doc": "Files count grouped by status processed or being processed by this vector store.", + "type": { + "$ref": "1985" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Agents.VectorStoreFileBatch.fileCounts", + "serializationOptions": { + "$id": "2268", + "json": { + "$id": "2269", + "name": "file_counts" + } + } + } + ] + }, + { + "$id": "2270", + "kind": "model", + "name": "GetWorkspaceResponse", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.GetWorkspaceResponse", + "usage": "Output,Json", + "doc": "Response from the Workspace - Get operation", + "decorators": [], + "properties": [ + { + "$id": "2271", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the resource", + "type": { + "$id": "2272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetWorkspaceResponse.id", + "serializationOptions": { + "$id": "2273", + "json": { + "$id": "2274", + "name": "id" + } + } + }, + { + "$id": "2275", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the resource", + "type": { + "$id": "2276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetWorkspaceResponse.name", + "serializationOptions": { + "$id": "2277", + "json": { + "$id": "2278", + "name": "name" + } + } + }, + { + "$id": "2279", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The properties of the resource", + "type": { + "$id": "2280", + "kind": "model", + "name": "WorkspaceProperties", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.WorkspaceProperties", + "usage": "Output,Json", + "doc": "workspace properties", + "decorators": [], + "properties": [ + { + "$id": "2281", + "kind": "property", + "name": "applicationInsights", + "serializedName": "applicationInsights", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.WorkspaceProperties.applicationInsights", + "serializationOptions": { + "$id": "2283", + "json": { + "$id": "2284", + "name": "applicationInsights" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetWorkspaceResponse.properties", + "serializationOptions": { + "$id": "2285", + "json": { + "$id": "2286", + "name": "properties" + } + } + } + ] + }, + { + "$ref": "2280" + }, + { + "$id": "2287", + "kind": "model", + "name": "ListConnectionsResponse", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.ListConnectionsResponse", + "usage": "Output,Json", + "doc": "Response from the list operation", + "decorators": [], + "properties": [ + { + "$id": "2288", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "A list of connection list secrets", + "type": { + "$id": "2289", + "kind": "array", + "name": "ArrayGetConnectionResponse", + "valueType": { + "$id": "2290", + "kind": "model", + "name": "GetConnectionResponse", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.GetConnectionResponse", + "usage": "Output,Json", + "doc": "Response from the listSecrets operation", + "decorators": [], + "properties": [ + { + "$id": "2291", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the connection", + "type": { + "$id": "2292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetConnectionResponse.id", + "serializationOptions": { + "$id": "2293", + "json": { + "$id": "2294", + "name": "id" + } + } + }, + { + "$id": "2295", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the resource", + "type": { + "$id": "2296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetConnectionResponse.name", + "serializationOptions": { + "$id": "2297", + "json": { + "$id": "2298", + "name": "name" + } + } + }, + { + "$id": "2299", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The properties of the resource", + "type": { + "$id": "2300", + "kind": "model", + "name": "InternalConnectionProperties", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionProperties", + "usage": "Output,Json", + "doc": "Connection properties", + "decorators": [], + "discriminatorProperty": { + "$id": "2301", + "kind": "property", + "name": "authType", + "serializedName": "authType", + "doc": "Authentication type of the connection target", + "type": { + "$ref": "322" + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionProperties.authType", + "serializationOptions": { + "$id": "2302", + "json": { + "$id": "2303", + "name": "authType" + } + } + }, + "properties": [ + { + "$ref": "2301" + }, + { + "$id": "2304", + "kind": "property", + "name": "category", + "serializedName": "category", + "doc": "Category of the connection", + "type": { + "$ref": "310" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionProperties.category", + "serializationOptions": { + "$id": "2305", + "json": { + "$id": "2306", + "name": "category" + } + } + }, + { + "$id": "2307", + "kind": "property", + "name": "target", + "serializedName": "target", + "doc": "The connection URL to be used for this service", + "type": { + "$id": "2308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionProperties.target", + "serializationOptions": { + "$id": "2309", + "json": { + "$id": "2310", + "name": "target" + } + } + } + ], + "discriminatedSubtypes": { + "$id": "2311", + "ApiKey": { + "$id": "2312", + "kind": "model", + "name": "InternalConnectionPropertiesApiKeyAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesApiKeyAuth", + "usage": "Output,Json", + "doc": "Connection properties for connections with API key authentication", + "discriminatorValue": "ApiKey", + "decorators": [], + "baseModel": { + "$ref": "2300" + }, + "properties": [ + { + "$id": "2313", + "kind": "property", + "name": "authType", + "serializedName": "authType", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2314", + "kind": "constant", + "valueType": { + "$id": "2315", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "ApiKey", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesApiKeyAuth.authType", + "serializationOptions": { + "$id": "2316", + "json": { + "$id": "2317", + "name": "authType" + } + } + }, + { + "$id": "2318", + "kind": "property", + "name": "credentials", + "serializedName": "credentials", + "doc": "Credentials will only be present for authType=ApiKey", + "type": { + "$id": "2319", + "kind": "model", + "name": "CredentialsApiKeyAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.CredentialsApiKeyAuth", + "usage": "Output,Json", + "doc": "The credentials needed for API key authentication", + "decorators": [], + "properties": [ + { + "$id": "2320", + "kind": "property", + "name": "key", + "serializedName": "key", + "doc": "The API key", + "type": { + "$id": "2321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.CredentialsApiKeyAuth.key", + "serializationOptions": { + "$id": "2322", + "json": { + "$id": "2323", + "name": "key" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesApiKeyAuth.credentials", + "serializationOptions": { + "$id": "2324", + "json": { + "$id": "2325", + "name": "credentials" + } + } + } + ] + }, + "AAD": { + "$id": "2326", + "kind": "model", + "name": "InternalConnectionPropertiesAADAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesAADAuth", + "usage": "Output,Json", + "doc": "Connection properties for connections with AAD authentication (aka `Entra ID passthrough`)", + "discriminatorValue": "AAD", + "decorators": [], + "baseModel": { + "$ref": "2300" + }, + "properties": [ + { + "$id": "2327", + "kind": "property", + "name": "authType", + "serializedName": "authType", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2328", + "kind": "constant", + "valueType": { + "$id": "2329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "AAD", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesAADAuth.authType", + "serializationOptions": { + "$id": "2330", + "json": { + "$id": "2331", + "name": "authType" + } + } + } + ] + }, + "SAS": { + "$id": "2332", + "kind": "model", + "name": "InternalConnectionPropertiesSASAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesSASAuth", + "usage": "Output,Json", + "doc": "Connection properties for connections with SAS authentication", + "discriminatorValue": "SAS", + "decorators": [], + "baseModel": { + "$ref": "2300" + }, + "properties": [ + { + "$id": "2333", + "kind": "property", + "name": "authType", + "serializedName": "authType", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2334", + "kind": "constant", + "valueType": { + "$id": "2335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "SAS", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesSASAuth.authType", + "serializationOptions": { + "$id": "2336", + "json": { + "$id": "2337", + "name": "authType" + } + } + }, + { + "$id": "2338", + "kind": "property", + "name": "credentials", + "serializedName": "credentials", + "doc": "Credentials will only be present for authType=ApiKey", + "type": { + "$id": "2339", + "kind": "model", + "name": "CredentialsSASAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.CredentialsSASAuth", + "usage": "Output,Json", + "doc": "The credentials needed for Shared Access Signatures (SAS) authentication", + "decorators": [], + "properties": [ + { + "$id": "2340", + "kind": "property", + "name": "SAS", + "serializedName": "SAS", + "doc": "The Shared Access Signatures (SAS) token", + "type": { + "$id": "2341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.CredentialsSASAuth.SAS", + "serializationOptions": { + "$id": "2342", + "json": { + "$id": "2343", + "name": "SAS" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesSASAuth.credentials", + "serializationOptions": { + "$id": "2344", + "json": { + "$id": "2345", + "name": "credentials" + } + } + } + ] + }, + "None": { + "$id": "2346", + "kind": "model", + "name": "InternalConnectionPropertiesNoAuth", + "clientNamespace": "Azure.AI.Connections", + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesNoAuth", + "usage": "Output,Json", + "doc": "Connection properties for connections with no authentication", + "discriminatorValue": "None", + "decorators": [], + "baseModel": { + "$ref": "2300" + }, + "properties": [ + { + "$id": "2347", + "kind": "property", + "name": "authType", + "serializedName": "authType", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2348", + "kind": "constant", + "valueType": { + "$id": "2349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "None", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.InternalConnectionPropertiesNoAuth.authType", + "serializationOptions": { + "$id": "2350", + "json": { + "$id": "2351", + "name": "authType" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.GetConnectionResponse.properties", + "serializationOptions": { + "$id": "2352", + "json": { + "$id": "2353", + "name": "properties" + } + } + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Connections.ListConnectionsResponse.value", + "serializationOptions": { + "$id": "2354", + "json": { + "$id": "2355", + "name": "value" + } + } + } + ] + }, + { + "$ref": "2290" + }, + { + "$ref": "2300" + }, + { + "$ref": "2312" + }, + { + "$ref": "2319" + }, + { + "$ref": "2326" + }, + { + "$ref": "2332" + }, + { + "$ref": "2339" + }, + { + "$ref": "2346" + }, + { + "$id": "2356", + "kind": "model", + "name": "GetConnectionWithSecretsRequest", + "clientNamespace": "", + "crossLanguageDefinitionId": "Azure.AI.Connections.getConnectionWithSecrets.Request.anonymous", + "usage": "Spread,Json", + "decorators": [], + "properties": [ + { + "$id": "2357", + "kind": "property", + "name": "ignored", + "serializedName": "ignored", + "doc": "The body is ignored. TODO: Can we remove this?", + "type": { + "$id": "2358", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "getConnectionWithSecrets.Request.anonymous.ignored", + "serializationOptions": { + "$id": "2359", + "json": { + "$id": "2360", + "name": "ignored" + } + } + } + ] + }, + { + "$id": "2361", + "kind": "model", + "name": "Evaluation", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Evaluation Definition", + "decorators": [], + "properties": [ + { + "$id": "2362", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Identifier of the evaluation.", + "type": { + "$id": "2363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.id", + "serializationOptions": { + "$id": "2364", + "json": { + "$id": "2365", + "name": "id" + } + } + }, + { + "$id": "2366", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Data for evaluation.", + "type": { + "$id": "2367", + "kind": "model", + "name": "InputData", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.InputData", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Abstract data class for input data configuration.", + "decorators": [], + "discriminatorProperty": { + "$id": "2368", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of the data.", + "type": { + "$id": "2369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.InputData.type", + "serializationOptions": { + "$id": "2370", + "json": { + "$id": "2371", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2368" + } + ], + "discriminatedSubtypes": { + "$id": "2372", + "app_insights": { + "$id": "2373", + "kind": "model", + "name": "ApplicationInsightsConfiguration", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Data Source for Application Insights.", + "discriminatorValue": "app_insights", + "decorators": [], + "baseModel": { + "$ref": "2367" + }, + "properties": [ + { + "$id": "2374", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "2375", + "kind": "constant", + "valueType": { + "$id": "2376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "app_insights", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration.type", + "serializationOptions": { + "$id": "2377", + "json": { + "$id": "2378", + "name": "type" + } + } + }, + { + "$id": "2379", + "kind": "property", + "name": "resourceId", + "serializedName": "resourceId", + "doc": "LogAnalytic Workspace resourceID associated with ApplicationInsights", + "type": { + "$id": "2380", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration.resourceId", + "serializationOptions": { + "$id": "2381", + "json": { + "$id": "2382", + "name": "resourceId" + } + } + }, + { + "$id": "2383", + "kind": "property", + "name": "query", + "serializedName": "query", + "doc": "Query to fetch the data.", + "type": { + "$id": "2384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration.query", + "serializationOptions": { + "$id": "2385", + "json": { + "$id": "2386", + "name": "query" + } + } + }, + { + "$id": "2387", + "kind": "property", + "name": "serviceName", + "serializedName": "serviceName", + "doc": "Service name.", + "type": { + "$id": "2388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration.serviceName", + "serializationOptions": { + "$id": "2389", + "json": { + "$id": "2390", + "name": "serviceName" + } + } + }, + { + "$id": "2391", + "kind": "property", + "name": "connectionString", + "serializedName": "connectionString", + "doc": "Connection String to connect to ApplicationInsights.", + "type": { + "$id": "2392", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.ApplicationInsightsConfiguration.connectionString", + "serializationOptions": { + "$id": "2393", + "json": { + "$id": "2394", + "name": "connectionString" + } + } + } + ] + }, + "dataset": { + "$id": "2395", + "kind": "model", + "name": "Dataset", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Dataset", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Dataset as source for evaluation.", + "discriminatorValue": "dataset", + "decorators": [], + "baseModel": { + "$ref": "2367" + }, + "properties": [ + { + "$id": "2396", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "2397", + "kind": "constant", + "valueType": { + "$id": "2398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "dataset", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Dataset.type", + "serializationOptions": { + "$id": "2399", + "json": { + "$id": "2400", + "name": "type" + } + } + }, + { + "$id": "2401", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Evaluation input data", + "type": { + "$id": "2402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Dataset.id", + "serializationOptions": { + "$id": "2403", + "json": { + "$id": "2404", + "name": "id" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.data", + "serializationOptions": { + "$id": "2405", + "json": { + "$id": "2406", + "name": "data" + } + } + }, + { + "$id": "2407", + "kind": "property", + "name": "displayName", + "serializedName": "displayName", + "doc": "Display Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique.", + "type": { + "$id": "2408", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.displayName", + "serializationOptions": { + "$id": "2409", + "json": { + "$id": "2410", + "name": "displayName" + } + } + }, + { + "$id": "2411", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "Description of the evaluation. It can be used to store additional information about the evaluation and is mutable.", + "type": { + "$id": "2412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.description", + "serializationOptions": { + "$id": "2413", + "json": { + "$id": "2414", + "name": "description" + } + } + }, + { + "$id": "2415", + "kind": "property", + "name": "systemData", + "serializedName": "systemData", + "doc": "Metadata containing createdBy and modifiedBy information.", + "type": { + "$id": "2416", + "kind": "model", + "name": "SystemData", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.SystemData", + "usage": "Output,JsonMergePatch,Json", + "doc": "Metadata pertaining to creation and last modification of the resource.", + "decorators": [], + "properties": [ + { + "$id": "2417", + "kind": "property", + "name": "createdAt", + "serializedName": "createdAt", + "doc": "The timestamp the resource was created at.", + "type": { + "$id": "2418", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "2419", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.SystemData.createdAt", + "serializationOptions": { + "$id": "2420", + "json": { + "$id": "2421", + "name": "createdAt" + } + } + }, + { + "$id": "2422", + "kind": "property", + "name": "createdBy", + "serializedName": "createdBy", + "doc": "The identity that created the resource.", + "type": { + "$id": "2423", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.SystemData.createdBy", + "serializationOptions": { + "$id": "2424", + "json": { + "$id": "2425", + "name": "createdBy" + } + } + }, + { + "$id": "2426", + "kind": "property", + "name": "createdByType", + "serializedName": "createdByType", + "doc": "The identity type that created the resource.", + "type": { + "$id": "2427", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.SystemData.createdByType", + "serializationOptions": { + "$id": "2428", + "json": { + "$id": "2429", + "name": "createdByType" + } + } + }, + { + "$id": "2430", + "kind": "property", + "name": "lastModifiedAt", + "serializedName": "lastModifiedAt", + "doc": "The timestamp of resource last modification (UTC)", + "type": { + "$id": "2431", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "2432", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.SystemData.lastModifiedAt", + "serializationOptions": { + "$id": "2433", + "json": { + "$id": "2434", + "name": "lastModifiedAt" + } + } + } + ] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.systemData", + "serializationOptions": { + "$id": "2435", + "json": { + "$id": "2436", + "name": "systemData" + } + } + }, + { + "$id": "2437", + "kind": "property", + "name": "status", + "serializedName": "status", + "doc": "Status of the evaluation. It is set by service and is read-only.", + "type": { + "$id": "2438", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.status", + "serializationOptions": { + "$id": "2439", + "json": { + "$id": "2440", + "name": "status" + } + } + }, + { + "$id": "2441", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "Evaluation's tags. Unlike properties, tags are fully mutable.", + "type": { + "$id": "2442", + "kind": "dict", + "keyType": { + "$id": "2443", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2444", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.tags", + "serializationOptions": { + "$id": "2445", + "json": { + "$id": "2446", + "name": "tags" + } + } + }, + { + "$id": "2447", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.", + "type": { + "$id": "2448", + "kind": "dict", + "keyType": { + "$id": "2449", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2450", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.properties", + "serializationOptions": { + "$id": "2451", + "json": { + "$id": "2452", + "name": "properties" + } + } + }, + { + "$id": "2453", + "kind": "property", + "name": "evaluators", + "serializedName": "evaluators", + "doc": "Evaluators to be used for the evaluation.", + "type": { + "$id": "2454", + "kind": "dict", + "keyType": { + "$id": "2455", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2456", + "kind": "model", + "name": "EvaluatorConfiguration", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluatorConfiguration", + "usage": "Input,Output,JsonMergePatch,Json", + "doc": "Evaluator Configuration", + "decorators": [], + "properties": [ + { + "$id": "2457", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "Identifier of the evaluator.", + "type": { + "$id": "2458", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluatorConfiguration.id", + "serializationOptions": { + "$id": "2459", + "json": { + "$id": "2460", + "name": "id" + } + } + }, + { + "$id": "2461", + "kind": "property", + "name": "initParams", + "serializedName": "initParams", + "doc": "Initialization parameters of the evaluator.", + "type": { + "$id": "2462", + "kind": "dict", + "keyType": { + "$id": "2463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2464", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluatorConfiguration.initParams", + "serializationOptions": { + "$id": "2465", + "json": { + "$id": "2466", + "name": "initParams" + } + } + }, + { + "$id": "2467", + "kind": "property", + "name": "dataMapping", + "serializedName": "dataMapping", + "doc": "Data parameters of the evaluator.", + "type": { + "$id": "2468", + "kind": "dict", + "keyType": { + "$id": "2469", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluatorConfiguration.dataMapping", + "serializationOptions": { + "$id": "2471", + "json": { + "$id": "2472", + "name": "dataMapping" + } + } + } + ] + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluation.evaluators", + "serializationOptions": { + "$id": "2473", + "json": { + "$id": "2474", + "name": "evaluators" + } + } + } + ] + }, + { + "$ref": "2367" + }, + { + "$ref": "2373" + }, + { + "$ref": "2395" + }, + { + "$ref": "2416" + }, + { + "$ref": "2456" + }, + { + "$id": "2475", + "kind": "model", + "name": "EvaluationSchedule", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule", + "usage": "Input,Output,Json", + "doc": "Evaluation Schedule Definition", + "decorators": [], + "properties": [ + { + "$id": "2476", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "Name of the schedule, which also serves as the unique identifier for the evaluation", + "type": { + "$id": "2477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.name", + "serializationOptions": { + "$id": "2478", + "json": { + "$id": "2479", + "name": "name" + } + } + }, + { + "$id": "2480", + "kind": "property", + "name": "data", + "serializedName": "data", + "doc": "Data for evaluation.", + "type": { + "$ref": "2373" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.data", + "serializationOptions": { + "$id": "2481", + "json": { + "$id": "2482", + "name": "data" + } + } + }, + { + "$id": "2483", + "kind": "property", + "name": "description", + "serializedName": "description", + "doc": "Description of the evaluation. It can be used to store additional information about the evaluation and is mutable.", + "type": { + "$id": "2484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.description", + "serializationOptions": { + "$id": "2485", + "json": { + "$id": "2486", + "name": "description" + } + } + }, + { + "$id": "2487", + "kind": "property", + "name": "systemData", + "serializedName": "systemData", + "doc": "Metadata containing createdBy and modifiedBy information.", + "type": { + "$ref": "2416" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.systemData", + "serializationOptions": { + "$id": "2488", + "json": { + "$id": "2489", + "name": "systemData" + } + } + }, + { + "$id": "2490", + "kind": "property", + "name": "provisioningState", + "serializedName": "provisioningState", + "doc": "Provisioning State of the evaluation. It is set by service and is read-only.", + "type": { + "$id": "2491", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.provisioningState", + "serializationOptions": { + "$id": "2492", + "json": { + "$id": "2493", + "name": "provisioningState" + } + } + }, + { + "$id": "2494", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "doc": "Evaluation's tags. Unlike properties, tags are fully mutable.", + "type": { + "$id": "2495", + "kind": "dict", + "keyType": { + "$id": "2496", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2497", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.tags", + "serializationOptions": { + "$id": "2498", + "json": { + "$id": "2499", + "name": "tags" + } + } + }, + { + "$id": "2500", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "Evaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.", + "type": { + "$id": "2501", + "kind": "dict", + "keyType": { + "$id": "2502", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "2503", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.properties", + "serializationOptions": { + "$id": "2504", + "json": { + "$id": "2505", + "name": "properties" + } + } + }, + { + "$id": "2506", + "kind": "property", + "name": "isEnabled", + "serializedName": "isEnabled", + "doc": "Enabled status of the evaluation. It is set by service and is read-only.", + "type": { + "$id": "2507", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.isEnabled", + "serializationOptions": { + "$id": "2508", + "json": { + "$id": "2509", + "name": "isEnabled" + } + } + }, + { + "$id": "2510", + "kind": "property", + "name": "evaluators", + "serializedName": "evaluators", + "doc": "Evaluators to be used for the evaluation.", + "type": { + "$id": "2511", + "kind": "dict", + "keyType": { + "$id": "2512", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2456" + }, + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.evaluators", + "serializationOptions": { + "$id": "2513", + "json": { + "$id": "2514", + "name": "evaluators" + } + } + }, + { + "$id": "2515", + "kind": "property", + "name": "trigger", + "serializedName": "trigger", + "doc": "Trigger for the evaluation.", + "type": { + "$id": "2516", + "kind": "model", + "name": "Trigger", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Trigger", + "usage": "Input,Output,Json", + "doc": "Abstract data class for input data configuration.", + "decorators": [], + "discriminatorProperty": { + "$id": "2517", + "kind": "property", + "name": "type", + "serializedName": "type", + "doc": "Type of the trigger.", + "type": { + "$id": "2518", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.Trigger.type", + "serializationOptions": { + "$id": "2519", + "json": { + "$id": "2520", + "name": "type" + } + } + }, + "properties": [ + { + "$ref": "2517" + } + ], + "discriminatedSubtypes": { + "$id": "2521", + "Recurrence": { + "$id": "2522", + "kind": "model", + "name": "RecurrenceTrigger", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceTrigger", + "usage": "Input,Output,Json", + "doc": "Recurrence Trigger Definition", + "discriminatorValue": "Recurrence", + "decorators": [], + "baseModel": { + "$ref": "2516" + }, + "properties": [ + { + "$id": "2523", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "2524", + "kind": "constant", + "valueType": { + "$id": "2525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "Recurrence", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceTrigger.type", + "serializationOptions": { + "$id": "2526", + "json": { + "$id": "2527", + "name": "type" + } + } + }, + { + "$id": "2528", + "kind": "property", + "name": "frequency", + "serializedName": "frequency", + "doc": "The frequency to trigger schedule.", + "type": { + "$ref": "332" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceTrigger.frequency", + "serializationOptions": { + "$id": "2529", + "json": { + "$id": "2530", + "name": "frequency" + } + } + }, + { + "$id": "2531", + "kind": "property", + "name": "interval", + "serializedName": "interval", + "doc": "Specifies schedule interval in conjunction with frequency", + "type": { + "$id": "2532", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceTrigger.interval", + "serializationOptions": { + "$id": "2533", + "json": { + "$id": "2534", + "name": "interval" + } + } + }, + { + "$id": "2535", + "kind": "property", + "name": "schedule", + "serializedName": "schedule", + "doc": "The recurrence schedule.", + "type": { + "$id": "2536", + "kind": "model", + "name": "RecurrenceSchedule", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceSchedule", + "usage": "Input,Output,Json", + "doc": "RecurrenceSchedule Definition", + "decorators": [], + "properties": [ + { + "$id": "2537", + "kind": "property", + "name": "hours", + "serializedName": "hours", + "doc": "List of hours for the schedule.", + "type": { + "$id": "2538", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2539", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceSchedule.hours", + "serializationOptions": { + "$id": "2540", + "json": { + "$id": "2541", + "name": "hours" + } + } + }, + { + "$id": "2542", + "kind": "property", + "name": "minutes", + "serializedName": "minutes", + "doc": "List of minutes for the schedule.", + "type": { + "$id": "2543", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2544", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceSchedule.minutes", + "serializationOptions": { + "$id": "2545", + "json": { + "$id": "2546", + "name": "minutes" + } + } + }, + { + "$id": "2547", + "kind": "property", + "name": "weekDays", + "serializedName": "weekDays", + "doc": "List of days for the schedule.", + "type": { + "$id": "2548", + "kind": "array", + "name": "ArrayWeekDays", + "valueType": { + "$ref": "344" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceSchedule.weekDays", + "serializationOptions": { + "$id": "2549", + "json": { + "$id": "2550", + "name": "weekDays" + } + } + }, + { + "$id": "2551", + "kind": "property", + "name": "monthDays", + "serializedName": "monthDays", + "doc": "List of month days for the schedule", + "type": { + "$id": "2552", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "2553", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceSchedule.monthDays", + "serializationOptions": { + "$id": "2554", + "json": { + "$id": "2555", + "name": "monthDays" + } + } + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.RecurrenceTrigger.schedule", + "serializationOptions": { + "$id": "2556", + "json": { + "$id": "2557", + "name": "schedule" + } + } + } + ] + }, + "Cron": { + "$id": "2558", + "kind": "model", + "name": "CronTrigger", + "clientNamespace": "Azure.AI.Evaluations", + "crossLanguageDefinitionId": "Azure.AI.Evaluations.CronTrigger", + "usage": "Input,Output,Json", + "doc": "Cron Trigger Definition", + "discriminatorValue": "Cron", + "decorators": [], + "baseModel": { + "$ref": "2516" + }, + "properties": [ + { + "$id": "2559", + "kind": "property", + "name": "type", + "serializedName": "type", + "type": { + "$id": "2560", + "kind": "constant", + "valueType": { + "$id": "2561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "Cron", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": true, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.CronTrigger.type", + "serializationOptions": { + "$id": "2562", + "json": { + "$id": "2563", + "name": "type" + } + } + }, + { + "$id": "2564", + "kind": "property", + "name": "expression", + "serializedName": "expression", + "doc": "Cron expression for the trigger.", + "type": { + "$id": "2565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.CronTrigger.expression", + "serializationOptions": { + "$id": "2566", + "json": { + "$id": "2567", + "name": "expression" + } + } + } + ] + } + } + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Evaluations.EvaluationSchedule.trigger", + "serializationOptions": { + "$id": "2568", + "json": { + "$id": "2569", + "name": "trigger" + } + } + } + ] + }, + { + "$ref": "2516" + }, + { + "$ref": "2522" + }, + { + "$ref": "2536" + }, + { + "$ref": "2558" + }, + { + "$id": "2570", + "kind": "model", + "name": "GetAppInsightsResponse", + "clientNamespace": "Azure.AI.Telemetry", + "crossLanguageDefinitionId": "Azure.AI.Telemetry.GetAppInsightsResponse", + "usage": "Output,Json", + "doc": "Response from getting properties of the Application Insights resource", + "decorators": [], + "properties": [ + { + "$id": "2571", + "kind": "property", + "name": "id", + "serializedName": "id", + "doc": "A unique identifier for the resource", + "type": { + "$id": "2572", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Telemetry.GetAppInsightsResponse.id", + "serializationOptions": { + "$id": "2573", + "json": { + "$id": "2574", + "name": "id" + } + } + }, + { + "$id": "2575", + "kind": "property", + "name": "name", + "serializedName": "name", + "doc": "The name of the resource", + "type": { + "$id": "2576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Telemetry.GetAppInsightsResponse.name", + "serializationOptions": { + "$id": "2577", + "json": { + "$id": "2578", + "name": "name" + } + } + }, + { + "$id": "2579", + "kind": "property", + "name": "properties", + "serializedName": "properties", + "doc": "The properties of the resource", + "type": { + "$id": "2580", + "kind": "model", + "name": "AppInsightsProperties", + "clientNamespace": "Azure.AI.Telemetry", + "crossLanguageDefinitionId": "Azure.AI.Telemetry.AppInsightsProperties", + "usage": "Output,Json", + "doc": "The properties of the Application Insights resource", + "decorators": [], + "properties": [ + { + "$id": "2581", + "kind": "property", + "name": "ConnectionString", + "serializedName": "ConnectionString", + "doc": "Authentication type of the connection target", + "type": { + "$id": "2582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Telemetry.AppInsightsProperties.ConnectionString", + "serializationOptions": { + "$id": "2583", + "json": { + "$id": "2584", + "name": "ConnectionString" + } + } + } + ] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.AI.Telemetry.GetAppInsightsResponse.properties", + "serializationOptions": { + "$id": "2585", + "json": { + "$id": "2586", + "name": "properties" + } + } + } + ] + }, + { + "$ref": "2580" + }, + { + "$id": "2587", + "kind": "model", + "name": "PagedEvaluation", + "clientNamespace": "Azure.Core.Foundations", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "usage": "Output,Json", + "doc": "Paged collection of Evaluation items", + "decorators": [], + "properties": [ + { + "$id": "2588", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The Evaluation items on this page", + "type": { + "$id": "2589", + "kind": "array", + "name": "ArrayEvaluation", + "valueType": { + "$ref": "2361" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", + "serializationOptions": { + "$id": "2590", + "json": { + "$id": "2591", + "name": "value" + } + } + }, + { + "$id": "2592", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "2593", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "2594", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", + "serializationOptions": { + "$id": "2595", + "json": { + "$id": "2596", + "name": "nextLink" + } + } + } + ] + }, + { + "$id": "2597", + "kind": "model", + "name": "PagedEvaluationSchedule", + "clientNamespace": "Azure.Core.Foundations", + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage", + "usage": "Output,Json", + "doc": "Paged collection of EvaluationSchedule items", + "decorators": [], + "properties": [ + { + "$id": "2598", + "kind": "property", + "name": "value", + "serializedName": "value", + "doc": "The EvaluationSchedule items on this page", + "type": { + "$id": "2599", + "kind": "array", + "name": "ArrayEvaluationSchedule", + "valueType": { + "$ref": "2475" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.value", + "serializationOptions": { + "$id": "2600", + "json": { + "$id": "2601", + "name": "value" + } + } + }, + { + "$id": "2602", + "kind": "property", + "name": "nextLink", + "serializedName": "nextLink", + "doc": "The link to the next page of items", + "type": { + "$id": "2603", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "2604", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.CustomPage.nextLink", + "serializationOptions": { + "$id": "2605", + "json": { + "$id": "2606", + "name": "nextLink" + } + } + } + ] + } + ], + "Clients": [ + { + "$id": "2607", + "Name": "AgentsClient", + "ClientNamespace": "Azure.AI.Agents", + "Operations": [ + { + "$id": "2608", + "Name": "createAgent", + "ResourceName": "Agents", + "Doc": "Creates a new agent.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2609", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2610", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2611", + "Type": { + "$id": "2612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2613", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2614", + "kind": "constant", + "valueType": { + "$id": "2615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2616", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2617", + "kind": "constant", + "valueType": { + "$id": "2618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2619", + "Name": "createAgentRequest", + "NameInRequest": "createAgentRequest", + "Type": { + "$ref": "653" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2620", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "704" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/assistants", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createAgent", + "Decorators": [] + }, + { + "$id": "2621", + "Name": "listAgents", + "ResourceName": "Agents", + "Doc": "Gets a list of agents that were previously created.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2622", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2624", + "Type": { + "$id": "2625", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2626", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "2627", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2628", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2629", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "2630", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2631", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "2632", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2633", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2634", + "kind": "constant", + "valueType": { + "$id": "2635", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2636", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "766" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/assistants", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listAgents", + "Decorators": [] + }, + { + "$id": "2637", + "Name": "getAgent", + "ResourceName": "Agents", + "Doc": "Retrieves an existing agent.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2638", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2639", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2640", + "Type": { + "$id": "2641", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2642", + "Name": "assistantId", + "NameInRequest": "assistantId", + "Doc": "Identifier of the agent.", + "Type": { + "$id": "2643", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2644", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2645", + "kind": "constant", + "valueType": { + "$id": "2646", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2647", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "704" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/assistants/{assistantId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getAgent", + "Decorators": [] + }, + { + "$id": "2648", + "Name": "updateAgent", + "ResourceName": "Agents", + "Doc": "Modifies an existing agent.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2649", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2650", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2651", + "Type": { + "$id": "2652", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2653", + "Name": "assistantId", + "NameInRequest": "assistantId", + "Doc": "The ID of the agent to modify.", + "Type": { + "$id": "2654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2655", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2656", + "kind": "constant", + "valueType": { + "$id": "2657", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2658", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2659", + "kind": "constant", + "valueType": { + "$id": "2660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2661", + "Name": "updateAgentRequest", + "NameInRequest": "updateAgentRequest", + "Type": { + "$ref": "787" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2662", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "704" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/assistants/{assistantId}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.updateAgent", + "Decorators": [] + }, + { + "$id": "2663", + "Name": "deleteAgent", + "ResourceName": "Agents", + "Doc": "Deletes an agent.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2664", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2665", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2666", + "Type": { + "$id": "2667", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2668", + "Name": "assistantId", + "NameInRequest": "assistantId", + "Doc": "Identifier of the agent.", + "Type": { + "$id": "2669", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2670", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2671", + "kind": "constant", + "valueType": { + "$id": "2672", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2673", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "831" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/assistants/{assistantId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.deleteAgent", + "Decorators": [] + }, + { + "$id": "2674", + "Name": "createThread", + "ResourceName": "Agents", + "Doc": "Creates a new thread. Threads contain messages and can be run by agents.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2675", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2677", + "Type": { + "$id": "2678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2679", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2680", + "kind": "constant", + "valueType": { + "$id": "2681", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2682", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2683", + "kind": "constant", + "valueType": { + "$id": "2684", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2685", + "Name": "createThreadRequest", + "NameInRequest": "createThreadRequest", + "Type": { + "$ref": "874" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2686", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "886" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createThread", + "Decorators": [] + }, + { + "$id": "2687", + "Name": "getThread", + "ResourceName": "Agents", + "Doc": "Gets information about an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2688", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2689", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2690", + "Type": { + "$id": "2691", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2692", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2693", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2694", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2695", + "kind": "constant", + "valueType": { + "$id": "2696", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2697", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "886" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getThread", + "Decorators": [] + }, + { + "$id": "2698", + "Name": "updateThread", + "ResourceName": "Agents", + "Doc": "Modifies an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2699", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2701", + "Type": { + "$id": "2702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2703", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "The ID of the thread to modify.", + "Type": { + "$id": "2704", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2705", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2706", + "kind": "constant", + "valueType": { + "$id": "2707", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2708", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2709", + "kind": "constant", + "valueType": { + "$id": "2710", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2711", + "Name": "updateThreadRequest", + "NameInRequest": "updateThreadRequest", + "Type": { + "$ref": "907" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2712", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "886" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.updateThread", + "Decorators": [] + }, + { + "$id": "2713", + "Name": "deleteThread", + "ResourceName": "Agents", + "Doc": "Deletes an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2714", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2715", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2716", + "Type": { + "$id": "2717", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2718", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2720", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2721", + "kind": "constant", + "valueType": { + "$id": "2722", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2723", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "915" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.deleteThread", + "Decorators": [] + }, + { + "$id": "2724", + "Name": "createMessage", + "ResourceName": "Agents", + "Doc": "Creates a new message on a specified thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2725", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2726", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2727", + "Type": { + "$id": "2728", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2729", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2730", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2731", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2732", + "kind": "constant", + "valueType": { + "$id": "2733", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2734", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2735", + "kind": "constant", + "valueType": { + "$id": "2736", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2737", + "Name": "createMessageRequest", + "NameInRequest": "createMessageRequest", + "Type": { + "$ref": "928" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2738", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "942" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/messages", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createMessage", + "Decorators": [] + }, + { + "$id": "2739", + "Name": "listMessages", + "ResourceName": "Agents", + "Doc": "Gets a list of messages that exist on a thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2740", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2741", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2742", + "Type": { + "$id": "2743", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2744", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2746", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Filter messages by the run ID that generated them.", + "Type": { + "$id": "2747", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2748", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "2749", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2750", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2751", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "2752", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2753", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "2754", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2755", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2756", + "kind": "constant", + "valueType": { + "$id": "2757", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2758", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1104" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/messages", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listMessages", + "Decorators": [] + }, + { + "$id": "2759", + "Name": "getMessage", + "ResourceName": "Agents", + "Doc": "Gets an existing message from an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2760", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2761", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2762", + "Type": { + "$id": "2763", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2764", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2765", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2766", + "Name": "messageId", + "NameInRequest": "messageId", + "Doc": "Identifier of the message.", + "Type": { + "$id": "2767", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2768", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2769", + "kind": "constant", + "valueType": { + "$id": "2770", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2771", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "942" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/messages/{messageId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getMessage", + "Decorators": [] + }, + { + "$id": "2772", + "Name": "updateMessage", + "ResourceName": "Agents", + "Doc": "Modifies an existing message on an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2773", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2774", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2775", + "Type": { + "$id": "2776", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2777", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2778", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2779", + "Name": "messageId", + "NameInRequest": "messageId", + "Doc": "Identifier of the message.", + "Type": { + "$id": "2780", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2781", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2782", + "kind": "constant", + "valueType": { + "$id": "2783", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2784", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2785", + "kind": "constant", + "valueType": { + "$id": "2786", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2787", + "Name": "updateMessageRequest", + "NameInRequest": "updateMessageRequest", + "Type": { + "$ref": "1125" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2788", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "942" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/messages/{messageId}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.updateMessage", + "Decorators": [] + }, + { + "$id": "2789", + "Name": "createRun", + "ResourceName": "Agents", + "Doc": "Creates a new run for an agent thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2790", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2791", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2792", + "Type": { + "$id": "2793", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2794", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2795", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2796", + "Name": "include", + "NameInRequest": "include[]", + "Doc": "A list of additional fields to include in the response.\nCurrently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.", + "Type": { + "$id": "2797", + "kind": "array", + "name": "ArrayRunAdditionalFieldList", + "valueType": { + "$ref": "87" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2798", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2799", + "kind": "constant", + "valueType": { + "$id": "2800", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2801", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2802", + "kind": "constant", + "valueType": { + "$id": "2803", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2804", + "Name": "createRunRequest", + "NameInRequest": "createRunRequest", + "Type": { + "$ref": "1150" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2805", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createRun", + "Decorators": [] + }, + { + "$id": "2806", + "Name": "listRuns", + "ResourceName": "Agents", + "Doc": "Gets a list of runs for a specified thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2807", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2808", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2809", + "Type": { + "$id": "2810", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2811", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2812", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2813", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "2814", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2815", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2816", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "2817", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2818", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "2819", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2820", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2821", + "kind": "constant", + "valueType": { + "$id": "2822", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2823", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1447" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listRuns", + "Decorators": [] + }, + { + "$id": "2824", + "Name": "getRun", + "ResourceName": "Agents", + "Doc": "Gets an existing run from an existing thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2825", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2826", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2827", + "Type": { + "$id": "2828", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2829", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2830", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2831", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2832", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2833", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2834", + "kind": "constant", + "valueType": { + "$id": "2835", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2836", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getRun", + "Decorators": [] + }, + { + "$id": "2837", + "Name": "updateRun", + "ResourceName": "Agents", + "Doc": "Modifies an existing thread run.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2838", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2839", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2840", + "Type": { + "$id": "2841", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2842", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2843", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2844", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2845", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2846", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2847", + "kind": "constant", + "valueType": { + "$id": "2848", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2849", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2850", + "kind": "constant", + "valueType": { + "$id": "2851", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2852", + "Name": "updateRunRequest", + "NameInRequest": "updateRunRequest", + "Type": { + "$ref": "1468" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2853", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.updateRun", + "Decorators": [] + }, + { + "$id": "2854", + "Name": "submitToolOutputsToRun", + "ResourceName": "Agents", + "Doc": "Submits outputs from tools as requested by tool calls in a run. Runs that need submitted tool outputs will have a status of 'requires_action' with a required_action.type of 'submit_tool_outputs'.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2855", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2856", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2857", + "Type": { + "$id": "2858", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2859", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2861", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2862", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2863", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2864", + "kind": "constant", + "valueType": { + "$id": "2865", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2866", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2867", + "kind": "constant", + "valueType": { + "$id": "2868", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2869", + "Name": "submitToolOutputsToRunRequest", + "NameInRequest": "submitToolOutputsToRunRequest", + "Type": { + "$ref": "1481" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2870", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}/submit_tool_outputs", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.submitToolOutputsToRun", + "Decorators": [] + }, + { + "$id": "2871", + "Name": "cancelRun", + "ResourceName": "Agents", + "Doc": "Cancels a run of an in progress thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2872", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2873", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2874", + "Type": { + "$id": "2875", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2876", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2877", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2878", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2879", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2880", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2881", + "kind": "constant", + "valueType": { + "$id": "2882", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2883", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}/cancel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.cancelRun", + "Decorators": [] + }, + { + "$id": "2884", + "Name": "createThreadAndRun", + "ResourceName": "Agents", + "Doc": "Creates a new agent thread and immediately starts a run using that new thread.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2885", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2886", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2887", + "Type": { + "$id": "2888", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2889", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "2890", + "kind": "constant", + "valueType": { + "$id": "2891", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2892", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2893", + "kind": "constant", + "valueType": { + "$id": "2894", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2895", + "Name": "createThreadAndRunRequest", + "NameInRequest": "createThreadAndRunRequest", + "Type": { + "$ref": "1502" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2896", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1225" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/runs", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createThreadAndRun", + "Decorators": [] + }, + { + "$id": "2897", + "Name": "getRunStep", + "ResourceName": "Agents", + "Doc": "Gets a single run step from a thread run.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2898", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2899", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2900", + "Type": { + "$id": "2901", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2902", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2903", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2904", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2905", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2906", + "Name": "stepId", + "NameInRequest": "stepId", + "Doc": "Identifier of the run step.", + "Type": { + "$id": "2907", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2908", + "Name": "include", + "NameInRequest": "include[]", + "Doc": "A list of additional fields to include in the response.\nCurrently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.", + "Type": { + "$id": "2909", + "kind": "array", + "name": "ArrayRunAdditionalFieldList", + "valueType": { + "$ref": "87" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2910", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2911", + "kind": "constant", + "valueType": { + "$id": "2912", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2913", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1572" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}/steps/{stepId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getRunStep", + "Decorators": [] + }, + { + "$id": "2914", + "Name": "listRunSteps", + "ResourceName": "Agents", + "Doc": "Gets a list of run steps from a thread run.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2915", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2916", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2917", + "Type": { + "$id": "2918", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2919", + "Name": "threadId", + "NameInRequest": "threadId", + "Doc": "Identifier of the thread.", + "Type": { + "$id": "2920", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2921", + "Name": "runId", + "NameInRequest": "runId", + "Doc": "Identifier of the run.", + "Type": { + "$id": "2922", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2923", + "Name": "include", + "NameInRequest": "include[]", + "Doc": "A list of additional fields to include in the response.\nCurrently the only supported value is `step_details.tool_calls[*].file_search.results[*].content` to fetch the file search result content.", + "Type": { + "$id": "2924", + "kind": "array", + "name": "ArrayRunAdditionalFieldList", + "valueType": { + "$ref": "87" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2925", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "2926", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2927", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2928", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "2929", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2930", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "2931", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2932", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2933", + "kind": "constant", + "valueType": { + "$id": "2934", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2935", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1868" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/threads/{threadId}/runs/{runId}/steps", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listRunSteps", + "Decorators": [] + }, + { + "$id": "2936", + "Name": "listFiles", + "ResourceName": "Agents", + "Doc": "Gets a list of previously uploaded files.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2937", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2938", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2939", + "Type": { + "$id": "2940", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2941", + "Name": "purpose", + "NameInRequest": "purpose", + "Doc": "The purpose of the file.", + "Type": { + "$ref": "182" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2942", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2943", + "kind": "constant", + "valueType": { + "$id": "2944", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2945", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1889" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/files", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listFiles", + "Decorators": [] + }, + { + "$id": "2946", + "Name": "uploadFile", + "ResourceName": "Agents", + "Doc": "Uploads a file for use by other operations.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2947", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2948", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2949", + "Type": { + "$id": "2950", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2951", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "The name of the file to upload.", + "Type": { + "$id": "2952", + "kind": "constant", + "valueType": { + "$id": "2953", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2954", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2955", + "kind": "constant", + "valueType": { + "$id": "2956", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2957", + "Name": "uploadFileRequest", + "NameInRequest": "uploadFileRequest", + "Type": { + "$ref": "1930" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2958", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1896" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/files", + "RequestMediaTypes": [ + "multipart/form-data" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.uploadFile", + "Decorators": [] + }, + { + "$id": "2959", + "Name": "deleteFile", + "ResourceName": "Agents", + "Doc": "Delete a previously uploaded file.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2960", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2961", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2962", + "Type": { + "$id": "2963", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2964", + "Name": "fileId", + "NameInRequest": "fileId", + "Doc": "The ID of the file to delete.", + "Type": { + "$id": "2965", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2966", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2967", + "kind": "constant", + "valueType": { + "$id": "2968", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2969", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1942" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/files/{fileId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.deleteFile", + "Decorators": [] + }, + { + "$id": "2970", + "Name": "getFile", + "ResourceName": "Agents", + "Doc": "Returns information about a specific file. Does not retrieve file content.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2971", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2972", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2973", + "Type": { + "$id": "2974", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2975", + "Name": "fileId", + "NameInRequest": "fileId", + "Doc": "The ID of the file to retrieve.", + "Type": { + "$id": "2976", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2977", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2978", + "kind": "constant", + "valueType": { + "$id": "2979", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2980", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1896" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/files/{fileId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getFile", + "Decorators": [] + }, + { + "$id": "2981", + "Name": "getFileContent", + "ResourceName": "Agents", + "Doc": "Retrieves the raw content of a specific file.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2982", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2983", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2984", + "Type": { + "$id": "2985", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2986", + "Name": "fileId", + "NameInRequest": "fileId", + "Doc": "The ID of the file to retrieve.", + "Type": { + "$id": "2987", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2988", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "2989", + "kind": "constant", + "valueType": { + "$id": "2990", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "2991", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$id": "2992", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/files/{fileId}/content", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getFileContent", + "Decorators": [] + }, + { + "$id": "2993", + "Name": "listVectorStores", + "ResourceName": "Agents", + "Doc": "Returns a list of vector stores.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "2994", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "2995", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "2996", + "Type": { + "$id": "2997", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "2998", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "2999", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3000", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3001", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "3002", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3003", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "3004", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3005", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3006", + "kind": "constant", + "valueType": { + "$id": "3007", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3008", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1955" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listVectorStores", + "Decorators": [] + }, + { + "$id": "3009", + "Name": "createVectorStore", + "ResourceName": "Agents", + "Doc": "Creates a vector store.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3010", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3011", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3012", + "Type": { + "$id": "3013", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3014", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3015", + "kind": "constant", + "valueType": { + "$id": "3016", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3017", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3018", + "kind": "constant", + "valueType": { + "$id": "3019", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3020", + "Name": "createVectorStoreRequest", + "NameInRequest": "createVectorStoreRequest", + "Type": { + "$ref": "2080" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3021", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1962" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createVectorStore", + "Decorators": [] + }, + { + "$id": "3022", + "Name": "getVectorStore", + "ResourceName": "Agents", + "Doc": "Returns the vector store object matching the specified ID.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3023", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3024", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3025", + "Type": { + "$id": "3026", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3027", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3028", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3029", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3030", + "kind": "constant", + "valueType": { + "$id": "3031", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3032", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1962" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getVectorStore", + "Decorators": [] + }, + { + "$id": "3033", + "Name": "modifyVectorStore", + "ResourceName": "Agents", + "Doc": "The ID of the vector store to modify.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3034", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3035", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3036", + "Type": { + "$id": "3037", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3038", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3039", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3040", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3041", + "kind": "constant", + "valueType": { + "$id": "3042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3043", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3044", + "kind": "constant", + "valueType": { + "$id": "3045", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3046", + "Name": "modifyVectorStoreRequest", + "NameInRequest": "modifyVectorStoreRequest", + "Type": { + "$ref": "2102" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3047", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "1962" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.modifyVectorStore", + "Decorators": [] + }, + { + "$id": "3048", + "Name": "deleteVectorStore", + "ResourceName": "Agents", + "Doc": "Deletes the vector store object matching the specified ID.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3049", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3050", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3051", + "Type": { + "$id": "3052", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3053", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3054", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3055", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3056", + "kind": "constant", + "valueType": { + "$id": "3057", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3058", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2115" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.deleteVectorStore", + "Decorators": [] + }, + { + "$id": "3059", + "Name": "listVectorStoreFiles", + "ResourceName": "Agents", + "Doc": "Returns a list of vector store files.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3060", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3061", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3062", + "Type": { + "$id": "3063", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3064", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3065", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3066", + "Name": "filter", + "NameInRequest": "filter", + "Doc": "Filter by file status.", + "Type": { + "$ref": "250" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3067", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "3068", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3069", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3070", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "3071", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3072", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "3073", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3074", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3075", + "kind": "constant", + "valueType": { + "$id": "3076", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3077", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2128" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/files", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listVectorStoreFiles", + "Decorators": [] + }, + { + "$id": "3078", + "Name": "createVectorStoreFile", + "ResourceName": "Agents", + "Doc": "Create a vector store file by attaching a file to a vector store.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3079", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3080", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3081", + "Type": { + "$id": "3082", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3083", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3084", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3085", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3086", + "kind": "constant", + "valueType": { + "$id": "3087", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3088", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3089", + "kind": "constant", + "valueType": { + "$id": "3090", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3091", + "Name": "createVectorStoreFileRequest", + "NameInRequest": "createVectorStoreFileRequest", + "Type": { + "$ref": "2209" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3092", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2135" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/files", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createVectorStoreFile", + "Decorators": [] + }, + { + "$id": "3093", + "Name": "getVectorStoreFile", + "ResourceName": "Agents", + "Doc": "Retrieves a vector store file.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3094", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3095", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3096", + "Type": { + "$id": "3097", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3098", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3099", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3100", + "Name": "fileId", + "NameInRequest": "fileId", + "Doc": "Identifier of the file.", + "Type": { + "$id": "3101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3102", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3103", + "kind": "constant", + "valueType": { + "$id": "3104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3105", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2135" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/files/{fileId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getVectorStoreFile", + "Decorators": [] + }, + { + "$id": "3106", + "Name": "deleteVectorStoreFile", + "ResourceName": "Agents", + "Doc": "Delete a vector store file. This will remove the file from the vector store but the file itself will not be deleted.\nTo delete the file, use the delete file endpoint.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3107", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3109", + "Type": { + "$id": "3110", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3111", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3113", + "Name": "fileId", + "NameInRequest": "fileId", + "Doc": "Identifier of the file.", + "Type": { + "$id": "3114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3115", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3116", + "kind": "constant", + "valueType": { + "$id": "3117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3118", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2220" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/files/{fileId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.deleteVectorStoreFile", + "Decorators": [] + }, + { + "$id": "3119", + "Name": "createVectorStoreFileBatch", + "ResourceName": "Agents", + "Doc": "Create a vector store file batch.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3120", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3122", + "Type": { + "$id": "3123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3124", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3126", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3127", + "kind": "constant", + "valueType": { + "$id": "3128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3129", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3130", + "kind": "constant", + "valueType": { + "$id": "3131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3132", + "Name": "createVectorStoreFileBatchRequest", + "NameInRequest": "createVectorStoreFileBatchRequest", + "Type": { + "$ref": "2233" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3133", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2246" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/file_batches", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.createVectorStoreFileBatch", + "Decorators": [] + }, + { + "$id": "3134", + "Name": "getVectorStoreFileBatch", + "ResourceName": "Agents", + "Doc": "Retrieve a vector store file batch.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3135", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3137", + "Type": { + "$id": "3138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3139", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3141", + "Name": "batchId", + "NameInRequest": "batchId", + "Doc": "Identifier of the file batch.", + "Type": { + "$id": "3142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3143", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3144", + "kind": "constant", + "valueType": { + "$id": "3145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3146", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2246" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/file_batches/{batchId}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.getVectorStoreFileBatch", + "Decorators": [] + }, + { + "$id": "3147", + "Name": "cancelVectorStoreFileBatch", + "ResourceName": "Agents", + "Doc": "Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3148", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3150", + "Type": { + "$id": "3151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3152", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3154", + "Name": "batchId", + "NameInRequest": "batchId", + "Doc": "Identifier of the file batch.", + "Type": { + "$id": "3155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3156", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3157", + "kind": "constant", + "valueType": { + "$id": "3158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3159", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2246" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/file_batches/{batchId}/cancel", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.cancelVectorStoreFileBatch", + "Decorators": [] + }, + { + "$id": "3160", + "Name": "listVectorStoreFileBatchFiles", + "ResourceName": "Agents", + "Doc": "Returns a list of vector store files in a batch.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3161", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3163", + "Type": { + "$id": "3164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3165", + "Name": "vectorStoreId", + "NameInRequest": "vectorStoreId", + "Doc": "Identifier of the vector store.", + "Type": { + "$id": "3166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3167", + "Name": "batchId", + "NameInRequest": "batchId", + "Doc": "Identifier of the file batch.", + "Type": { + "$id": "3168", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3169", + "Name": "filter", + "NameInRequest": "filter", + "Doc": "Filter by file status.", + "Type": { + "$ref": "250" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3170", + "Name": "limit", + "NameInRequest": "limit", + "Doc": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.", + "Type": { + "$id": "3171", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3172", + "Name": "order", + "NameInRequest": "order", + "Doc": "Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.", + "Type": { + "$ref": "37" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3173", + "Name": "after", + "NameInRequest": "after", + "Doc": "A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.", + "Type": { + "$id": "3174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3175", + "Name": "before", + "NameInRequest": "before", + "Doc": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.", + "Type": { + "$id": "3176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3177", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3178", + "kind": "constant", + "valueType": { + "$id": "3179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3180", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2128" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/vector_stores/{vectorStoreId}/file_batches/{batchId}/files", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Agents.listVectorStoreFileBatchFiles", + "Decorators": [] + } + ], + "Protocol": { + "$id": "3181" + }, + "Parameters": [ + { + "$id": "3182", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "The Azure AI Foundry project endpoint, in the form `https://.api.azureml.ms` or `https://..api.azureml.ms`, where is the Azure region where the project is deployed (e.g. westus) and is the GUID of the Enterprise private link.", + "Type": { + "$id": "3183", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3184", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The Azure subscription ID.", + "Type": { + "$id": "3185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3186", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the Azure Resource Group.", + "Type": { + "$id": "3187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3188", + "Name": "projectName", + "NameInRequest": "projectName", + "Doc": "The Azure AI Foundry project name.", + "Type": { + "$id": "3189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "Decorators": [] + }, + { + "$id": "3190", + "Name": "ConnectionsClient", + "ClientNamespace": "Azure.AI.Connections", + "Operations": [ + { + "$id": "3191", + "Name": "getWorkspace", + "ResourceName": "Connections", + "Doc": "Gets the properties of the specified machine learning workspace.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3192", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3194", + "Type": { + "$id": "3195", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3196", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3197", + "kind": "constant", + "valueType": { + "$id": "3198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3199", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2270" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Connections.getWorkspace", + "Decorators": [] + }, + { + "$id": "3200", + "Name": "listConnections", + "ResourceName": "Connections", + "Doc": "List the details of all the connections (not including their credentials)", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3201", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3203", + "Type": { + "$id": "3204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3205", + "Name": "category", + "NameInRequest": "category", + "Doc": "Category of the workspace connection.", + "Type": { + "$ref": "310" + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3206", + "Name": "includeAll", + "NameInRequest": "includeAll", + "Doc": "Indicates whether to list datastores. Service default: do not list datastores.", + "Type": { + "$id": "3207", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3208", + "Name": "target", + "NameInRequest": "target", + "Doc": "Target of the workspace connection.", + "Type": { + "$id": "3209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3210", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3211", + "kind": "constant", + "valueType": { + "$id": "3212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3213", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2287" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/connections", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Connections.listConnections", + "Decorators": [] + }, + { + "$id": "3214", + "Name": "getConnection", + "ResourceName": "Connections", + "Doc": "Get the details of a single connection, without credentials.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3215", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3217", + "Type": { + "$id": "3218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3219", + "Name": "connectionName", + "NameInRequest": "connectionName", + "Doc": "Connection Name", + "Type": { + "$id": "3220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3221", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3222", + "kind": "constant", + "valueType": { + "$id": "3223", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3224", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2290" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/connections/{connectionName}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Connections.getConnection", + "Decorators": [] + }, + { + "$id": "3225", + "Name": "getConnectionWithSecrets", + "ResourceName": "Connections", + "Doc": "Get the details of a single connection, including credentials (if available).", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3226", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3228", + "Type": { + "$id": "3229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3230", + "Name": "connectionName", + "NameInRequest": "connectionName", + "Doc": "Connection Name", + "Type": { + "$id": "3231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3232", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3233", + "kind": "constant", + "valueType": { + "$id": "3234", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3235", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3236", + "kind": "constant", + "valueType": { + "$id": "3237", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3238", + "Name": "getConnectionWithSecretsRequest", + "NameInRequest": "getConnectionWithSecretsRequest", + "Type": { + "$ref": "2356" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Spread", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3239", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2290" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/connections/{connectionName}/listsecrets", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Connections.getConnectionWithSecrets", + "Decorators": [] + } + ], + "Protocol": { + "$id": "3240" + }, + "Parameters": [ + { + "$id": "3241", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "The Azure AI Foundry project endpoint, in the form `https://.api.azureml.ms` or `https://..api.azureml.ms`, where is the Azure region where the project is deployed (e.g. westus) and is the GUID of the Enterprise private link.", + "Type": { + "$id": "3242", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3243", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The Azure subscription ID.", + "Type": { + "$id": "3244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3245", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the Azure Resource Group.", + "Type": { + "$id": "3246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3247", + "Name": "projectName", + "NameInRequest": "projectName", + "Doc": "The Azure AI Foundry project name.", + "Type": { + "$id": "3248", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "Decorators": [] + }, + { + "$id": "3249", + "Name": "EvaluationsClient", + "ClientNamespace": "Azure.AI.Evaluations", + "Operations": [], + "Protocol": { + "$id": "3250" + }, + "Parameters": [ + { + "$id": "3251", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "The Azure AI Foundry project endpoint, in the form `https://.api.azureml.ms` or `https://..api.azureml.ms`, where is the Azure region where the project is deployed (e.g. westus) and is the GUID of the Enterprise private link.", + "Type": { + "$id": "3252", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3253", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The Azure subscription ID.", + "Type": { + "$id": "3254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3255", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the Azure Resource Group.", + "Type": { + "$id": "3256", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3257", + "Name": "projectName", + "NameInRequest": "projectName", + "Doc": "The Azure AI Foundry project name.", + "Type": { + "$id": "3258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "Decorators": [] + }, + { + "$id": "3259", + "Name": "Evaluations", + "ClientNamespace": "Azure.AI.Evaluations", + "Operations": [ + { + "$id": "3260", + "Name": "get", + "ResourceName": "Evaluation", + "Doc": "Resource read operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3261", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3263", + "Type": { + "$id": "3264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3265", + "Name": "id", + "NameInRequest": "id", + "Doc": "Identifier of the evaluation.", + "Type": { + "$id": "3266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3267", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3268", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3270", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3271", + "kind": "constant", + "valueType": { + "$id": "3272", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3273", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2361" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3274", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3275", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/runs/{id}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.get", + "Decorators": [] + }, + { + "$id": "3277", + "Name": "create", + "ResourceName": "Evaluations", + "Doc": "Run the evaluation.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3278", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3280", + "Type": { + "$id": "3281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3282", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3283", + "kind": "constant", + "valueType": { + "$id": "3284", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3285", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3286", + "kind": "constant", + "valueType": { + "$id": "3287", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3288", + "Name": "evaluation", + "NameInRequest": "evaluation", + "Doc": "Evaluation to run.", + "Type": { + "$ref": "2361" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3289", + "StatusCodes": [ + 201 + ], + "BodyType": { + "$ref": "2361" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "POST", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/runs:run", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.create", + "Decorators": [] + }, + { + "$id": "3290", + "Name": "list", + "ResourceName": "Evaluation", + "Doc": "Resource list operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3291", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3293", + "Type": { + "$id": "3294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3295", + "Name": "top", + "NameInRequest": "top", + "Doc": "The number of result items to return.", + "Type": { + "$id": "3296", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3297", + "Name": "skip", + "NameInRequest": "skip", + "Doc": "The number of result items to skip.", + "Type": { + "$id": "3298", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3299", + "Name": "maxpagesize", + "NameInRequest": "maxpagesize", + "Doc": "The maximum number of result items per page.", + "Type": { + "$id": "3300", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3301", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3302", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3304", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3305", + "kind": "constant", + "valueType": { + "$id": "3306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3307", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2587" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3308", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3309", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/runs", + "BufferResponse": true, + "Paging": { + "$id": "3311", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.list", + "Decorators": [] + }, + { + "$id": "3312", + "Name": "update", + "ResourceName": "Evaluation", + "Doc": "Resource update operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3313", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3315", + "Type": { + "$id": "3316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3317", + "Name": "id", + "NameInRequest": "id", + "Doc": "Identifier of the evaluation.", + "Type": { + "$id": "3318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3319", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "This request has a JSON Merge Patch body.", + "Type": { + "$id": "3320", + "kind": "constant", + "valueType": { + "$id": "3321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3322", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3323", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3325", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3326", + "kind": "constant", + "valueType": { + "$id": "3327", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3328", + "Name": "resource", + "NameInRequest": "resource", + "Doc": "The resource instance.", + "Type": { + "$ref": "2361" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3329", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2361" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3330", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3331", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/runs/{id}", + "RequestMediaTypes": [ + "application/merge-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.update", + "Decorators": [] + }, + { + "$id": "3333", + "Name": "getSchedule", + "ResourceName": "EvaluationSchedule", + "Doc": "Resource read operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3334", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3336", + "Type": { + "$id": "3337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3338", + "Name": "name", + "NameInRequest": "name", + "Doc": "Name of the schedule, which also serves as the unique identifier for the evaluation", + "Type": { + "$id": "3339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3340", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3341", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3343", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3344", + "kind": "constant", + "valueType": { + "$id": "3345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3346", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2475" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3347", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3348", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/schedules/{name}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.getSchedule", + "Decorators": [] + }, + { + "$id": "3350", + "Name": "createOrReplaceSchedule", + "ResourceName": "EvaluationSchedule", + "Doc": "Create or replace operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3351", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3352", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3353", + "Type": { + "$id": "3354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3355", + "Name": "name", + "NameInRequest": "name", + "Doc": "Name of the schedule, which also serves as the unique identifier for the evaluation", + "Type": { + "$id": "3356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3357", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3358", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3360", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Doc": "Body parameter's content type. Known values are application/json", + "Type": { + "$id": "3361", + "kind": "constant", + "valueType": { + "$id": "3362", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3363", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3364", + "kind": "constant", + "valueType": { + "$id": "3365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3366", + "Name": "resource", + "NameInRequest": "resource", + "Doc": "The resource instance.", + "Type": { + "$ref": "2475" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3367", + "StatusCodes": [ + 201 + ], + "BodyType": { + "$ref": "2475" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3368", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3369", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3370", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + }, + { + "$id": "3371", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2475" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3372", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3373", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3374", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/schedules/{name}", + "RequestMediaTypes": [ + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.createOrReplaceSchedule", + "Decorators": [] + }, + { + "$id": "3375", + "Name": "listSchedule", + "ResourceName": "EvaluationSchedule", + "Doc": "Resource list operation template.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3376", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3378", + "Type": { + "$id": "3379", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3380", + "Name": "top", + "NameInRequest": "top", + "Doc": "The number of result items to return.", + "Type": { + "$id": "3381", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3382", + "Name": "skip", + "NameInRequest": "skip", + "Doc": "The number of result items to skip.", + "Type": { + "$id": "3383", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3384", + "Name": "maxpagesize", + "NameInRequest": "maxpagesize", + "Doc": "The maximum number of result items per page.", + "Type": { + "$id": "3385", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3386", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3387", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3389", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3390", + "kind": "constant", + "valueType": { + "$id": "3391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3392", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2597" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "3393", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Doc": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "3394", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "3395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/schedules", + "BufferResponse": true, + "Paging": { + "$id": "3396", + "ItemName": "value", + "NextLinkName": "nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.listSchedule", + "Decorators": [] + }, + { + "$id": "3397", + "Name": "disableSchedule", + "ResourceName": "Evaluations", + "Doc": "Disable the evaluation schedule.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3398", + "Name": "apiVersion", + "NameInRequest": "apiVersion", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3399", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3400", + "Type": { + "$id": "3401", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3402", + "Name": "name", + "NameInRequest": "name", + "Doc": "Name of the evaluation schedule.", + "Type": { + "$id": "3403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3404", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3405", + "kind": "constant", + "valueType": { + "$id": "3406", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3407", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/evaluations/schedules/{name}/disable", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "Azure.AI.Evaluations.Evaluations.disableSchedule", + "Decorators": [] + } + ], + "Protocol": { + "$id": "3408" + }, + "Parent": "EvaluationsClient", + "Parameters": [ + { + "$id": "3409", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "The Azure AI Foundry project endpoint, in the form `https://.api.azureml.ms` or `https://..api.azureml.ms`, where is the Azure region where the project is deployed (e.g. westus) and is the GUID of the Enterprise private link.", + "Type": { + "$id": "3410", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3411", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The Azure subscription ID.", + "Type": { + "$id": "3412", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3413", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the Azure Resource Group.", + "Type": { + "$id": "3414", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3415", + "Name": "projectName", + "NameInRequest": "projectName", + "Doc": "The Azure AI Foundry project name.", + "Type": { + "$id": "3416", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "Decorators": [] + }, + { + "$id": "3417", + "Name": "TelemetryClient", + "ClientNamespace": "Azure.AI.Telemetry", + "Operations": [ + { + "$id": "3418", + "Name": "getAppInsights", + "ResourceName": "Telemetry", + "Doc": "Gets the properties of the specified Application Insights resource", + "Accessibility": "public", + "Parameters": [ + { + "$id": "3419", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Doc": "The API version to use for this operation.", + "Type": { + "$id": "3420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "3421", + "Type": { + "$id": "3422", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2024-07-01-preview" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3423", + "Name": "appInsightsResourceUrl", + "NameInRequest": "appInsightsResourceUrl", + "Doc": "The AppInsights Azure resource Url. It should have the format: '/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/microsoft.insights/components/{resourcename}'", + "Type": { + "$id": "3424", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Path", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "3425", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "3426", + "kind": "constant", + "valueType": { + "$id": "3427", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "3428", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "2570" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}/agents/v1.0/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{projectName}", + "Path": "/{appInsightsResourceUrl}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "Azure.AI.Telemetry.getAppInsights", + "Decorators": [] + } + ], + "Protocol": { + "$id": "3429" + }, + "Parameters": [ + { + "$id": "3430", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Doc": "The Azure AI Foundry project endpoint, in the form `https://.api.azureml.ms` or `https://..api.azureml.ms`, where is the Azure region where the project is deployed (e.g. westus) and is the GUID of the Enterprise private link.", + "Type": { + "$id": "3431", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3432", + "Name": "subscriptionId", + "NameInRequest": "subscriptionId", + "Doc": "The Azure subscription ID.", + "Type": { + "$id": "3433", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3434", + "Name": "resourceGroupName", + "NameInRequest": "resourceGroupName", + "Doc": "The name of the Azure Resource Group.", + "Type": { + "$id": "3435", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "3436", + "Name": "projectName", + "NameInRequest": "projectName", + "Doc": "The Azure AI Foundry project name.", + "Type": { + "$id": "3437", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": false, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + } + ], + "Decorators": [] + } + ], + "Auth": { + "$id": "3438", + "OAuth2": { + "$id": "3439", + "Scopes": [ + "https://management.azure.com/.default" + ] + } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/Azure.AI.Telemetry.sln b/sdk/ai/Azure.AI.Telemetry/Azure.AI.Telemetry.sln new file mode 100644 index 000000000000..2c354dee769c --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/Azure.AI.Telemetry.sln @@ -0,0 +1,56 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Telemetry", "src\Azure.AI.Telemetry.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.AI.Telemetry.Tests", "tests\Azure.AI.Telemetry.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU + {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE} + EndGlobalSection +EndGlobal diff --git a/sdk/ai/Azure.AI.Telemetry/CHANGELOG.md b/sdk/ai/Azure.AI.Telemetry/CHANGELOG.md new file mode 100644 index 000000000000..8b33f0fedccc --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/CHANGELOG.md @@ -0,0 +1,11 @@ +# Release History + +## 1.0.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Telemetry/Directory.Build.props b/sdk/ai/Azure.AI.Telemetry/Directory.Build.props new file mode 100644 index 000000000000..63bd836ad44b --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/ai/Azure.AI.Telemetry/README.md b/sdk/ai/Azure.AI.Telemetry/README.md new file mode 100644 index 000000000000..69a70b880c63 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/README.md @@ -0,0 +1,107 @@ +# Azure.AI.Telemetry client library for .NET + +Azure.AI.Telemetry is a managed service that helps developers get secret simply and securely. + +Use the client library for to: + +* [Get secret](https://docs.microsoft.com/azure) + +[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples] + + [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/ai/Azure.AI.Telemetry/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure) + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository. + +Install the client library for .NET with [NuGet](https://www.nuget.org/ ): + +```dotnetcli +dotnet add package Azure.AI.Telemetry --prerelease +``` + +### Prerequisites + +Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +### Service API versions + +The client library targets the latest service API version by default. A client instance accepts an optional service API version parameter from its options to specify which API version service to communicate. + +#### Select a service API version + +You have the flexibility to explicitly select a supported service API version when instantiating a client by configuring its associated options. This ensures that the client can communicate with services using the specified API version. + +For example, + +```C# Snippet:CreateClientForSpecificApiVersion +Uri endpoint = new Uri(""); +DefaultAzureCredential credential = new DefaultAzureCredential(); +ClientOptions options = new ClientOptions(ClientOptions.ServiceVersion.) +var client = new Client(endpoint, credential, options); +``` + +When selecting an API version, it's important to verify that there are no breaking changes compared to the latest API version. If there are significant differences, API calls may fail due to incompatibility. + +Always ensure that the chosen API version is fully supported and operational for your specific use case and that it aligns with the service's versioning policy. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of: + +### Thread safety + +We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads. + +### Additional concepts + +[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) | +[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) | +[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) | +[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) | +[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) | +[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) | +[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/) + + +## Examples + +You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Telemetry/samples). + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net/sdk/ai/Azure.AI.Telemetry/README.png) \ No newline at end of file diff --git a/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.net8.0.cs b/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.net8.0.cs new file mode 100644 index 000000000000..a74be65b48a5 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.net8.0.cs @@ -0,0 +1,26 @@ +namespace Azure.AI.Telemetry +{ + public partial class AITelemetryClient + { + protected AITelemetryClient() { } + public AITelemetryClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential) { } + public AITelemetryClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential, Azure.AI.Telemetry.AITelemetryClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + } + public partial class AITelemetryClientOptions : Azure.Core.ClientOptions + { + public AITelemetryClientOptions(Azure.AI.Telemetry.AITelemetryClientOptions.ServiceVersion version = Azure.AI.Telemetry.AITelemetryClientOptions.ServiceVersion.V2024_07_01_Preview) { } + public enum ServiceVersion + { + V2024_07_01_Preview = 1, + } + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class AITelemetryClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.netstandard2.0.cs b/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.netstandard2.0.cs new file mode 100644 index 000000000000..a74be65b48a5 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/api/Azure.AI.Telemetry.netstandard2.0.cs @@ -0,0 +1,26 @@ +namespace Azure.AI.Telemetry +{ + public partial class AITelemetryClient + { + protected AITelemetryClient() { } + public AITelemetryClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential) { } + public AITelemetryClient(System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, Azure.Core.TokenCredential credential, Azure.AI.Telemetry.AITelemetryClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + } + public partial class AITelemetryClientOptions : Azure.Core.ClientOptions + { + public AITelemetryClientOptions(Azure.AI.Telemetry.AITelemetryClientOptions.ServiceVersion version = Azure.AI.Telemetry.AITelemetryClientOptions.ServiceVersion.V2024_07_01_Preview) { } + public enum ServiceVersion + { + V2024_07_01_Preview = 1, + } + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class AITelemetryClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, System.Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/src/Azure.AI.Telemetry.csproj b/sdk/ai/Azure.AI.Telemetry/src/Azure.AI.Telemetry.csproj new file mode 100644 index 000000000000..fbed82bfe404 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Azure.AI.Telemetry.csproj @@ -0,0 +1,19 @@ + + + This is the Azure.AI.Telemetry client library for developing .NET applications with rich experience. + Azure SDK Code Generation Azure.AI.Telemetry for Azure Data Plane + 1.0.0-beta.1 + Azure.AI.Telemetry + $(RequiredTargetFrameworks) + true + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/TelemetryClient.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClient.cs similarity index 73% rename from sdk/ai/Azure.AI.Projects/src/Generated/TelemetryClient.cs rename to sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClient.cs index 2732da6a60da..367d1fb7cf20 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/TelemetryClient.cs +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClient.cs @@ -11,11 +11,11 @@ using Azure.Core; using Azure.Core.Pipeline; -namespace Azure.AI.Projects +namespace Azure.AI.Telemetry { - // Data plane generated sub-client. - /// The Telemetry sub-client. - public partial class TelemetryClient + // Data plane generated client. + /// The AITelemetry service client. + public partial class AITelemetryClient { private static readonly string[] AuthorizationScopes = new string[] { "https://management.azure.com/.default" }; private readonly TokenCredential _tokenCredential; @@ -32,30 +32,49 @@ public partial class TelemetryClient /// The HTTP pipeline for sending and receiving REST requests and responses. public virtual HttpPipeline Pipeline => _pipeline; - /// Initializes a new instance of TelemetryClient for mocking. - protected TelemetryClient() + /// Initializes a new instance of AITelemetryClient for mocking. + protected AITelemetryClient() { } - /// Initializes a new instance of TelemetryClient. - /// The handler for diagnostic messaging in the client. - /// The HTTP pipeline for sending and receiving REST requests and responses. - /// The token credential to copy. + /// Initializes a new instance of AITelemetryClient. /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. /// The Azure subscription ID. /// The name of the Azure Resource Group. /// The Azure AI Foundry project name. - /// The API version to use for this operation. - internal TelemetryClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, TokenCredential tokenCredential, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, string apiVersion) + /// A credential used to authenticate to an Azure Service. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public AITelemetryClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential) : this(endpoint, subscriptionId, resourceGroupName, projectName, credential, new AITelemetryClientOptions()) { - ClientDiagnostics = clientDiagnostics; - _pipeline = pipeline; - _tokenCredential = tokenCredential; + } + + /// Initializes a new instance of AITelemetryClient. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + /// A credential used to authenticate to an Azure Service. + /// The options for configuring the client. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public AITelemetryClient(Uri endpoint, string subscriptionId, string resourceGroupName, string projectName, TokenCredential credential, AITelemetryClientOptions options) + { + Argument.AssertNotNull(endpoint, nameof(endpoint)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(projectName, nameof(projectName)); + Argument.AssertNotNull(credential, nameof(credential)); + options ??= new AITelemetryClientOptions(); + + ClientDiagnostics = new ClientDiagnostics(options, true); + _tokenCredential = credential; + _pipeline = HttpPipelineBuilder.Build(options, Array.Empty(), new HttpPipelinePolicy[] { new BearerTokenAuthenticationPolicy(_tokenCredential, AuthorizationScopes) }, new ResponseClassifier()); _endpoint = endpoint; _subscriptionId = subscriptionId; _resourceGroupName = resourceGroupName; _projectName = projectName; - _apiVersion = apiVersion; + _apiVersion = options.Version; } /// Gets the properties of the specified Application Insights resource. @@ -111,7 +130,7 @@ internal virtual async Task GetAppInsightsAsync(string appInsightsReso { Argument.AssertNotNullOrEmpty(appInsightsResourceUrl, nameof(appInsightsResourceUrl)); - using var scope = ClientDiagnostics.CreateScope("TelemetryClient.GetAppInsights"); + using var scope = ClientDiagnostics.CreateScope("AITelemetryClient.GetAppInsights"); scope.Start(); try { @@ -150,7 +169,7 @@ internal virtual Response GetAppInsights(string appInsightsResourceUrl, RequestC { Argument.AssertNotNullOrEmpty(appInsightsResourceUrl, nameof(appInsightsResourceUrl)); - using var scope = ClientDiagnostics.CreateScope("TelemetryClient.GetAppInsights"); + using var scope = ClientDiagnostics.CreateScope("AITelemetryClient.GetAppInsights"); scope.Start(); try { diff --git a/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientBuilderExtensions.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientBuilderExtensions.cs new file mode 100644 index 000000000000..4cdd010920aa --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientBuilderExtensions.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.AI.Telemetry; +using Azure.Core.Extensions; + +namespace Microsoft.Extensions.Azure +{ + /// Extension methods to add to client builder. + public static partial class AITelemetryClientBuilderExtensions + { + /// Registers a instance. + /// The builder to register with. + /// The Azure AI Foundry project endpoint, in the form `https://<azure-region>.api.azureml.ms` or `https://<private-link-guid>.<azure-region>.api.azureml.ms`, where <azure-region> is the Azure region where the project is deployed (e.g. westus) and <private-link-guid> is the GUID of the Enterprise private link. + /// The Azure subscription ID. + /// The name of the Azure Resource Group. + /// The Azure AI Foundry project name. + public static IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, Uri endpoint, string subscriptionId, string resourceGroupName, string projectName) + where TBuilder : IAzureClientFactoryBuilderWithCredential + { + return builder.RegisterClientFactory((options, cred) => new AITelemetryClient(endpoint, subscriptionId, resourceGroupName, projectName, cred, options)); + } + + /// Registers a instance. + /// The builder to register with. + /// The configuration values. + public static IAzureClientBuilder AddAITelemetryClient(this TBuilder builder, TConfiguration configuration) + where TBuilder : IAzureClientFactoryBuilderWithConfiguration + { + return builder.RegisterClientFactory(configuration); + } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientOptions.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientOptions.cs new file mode 100644 index 000000000000..f48c902d01a5 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/AITelemetryClientOptions.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.AI.Telemetry +{ + /// Client options for AITelemetryClient. + public partial class AITelemetryClientOptions : ClientOptions + { + private const ServiceVersion LatestVersion = ServiceVersion.V2024_07_01_Preview; + + /// The version of the service to use. + public enum ServiceVersion + { + /// Service version "2024-07-01-preview". + V2024_07_01_Preview = 1, + } + + internal string Version { get; } + + /// Initializes new instance of AITelemetryClientOptions. + public AITelemetryClientOptions(ServiceVersion version = LatestVersion) + { + Version = version switch + { + ServiceVersion.V2024_07_01_Preview => "2024-07-01-preview", + _ => throw new NotSupportedException() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.Serialization.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.Serialization.cs rename to sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.Serialization.cs index 881cb36022f6..541ae8acc895 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.Serialization.cs +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Telemetry { internal partial class AppInsightsProperties : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.cs rename to sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.cs index ce628644fcfa..7b4fb52b6bf3 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AppInsightsProperties.cs +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/AppInsightsProperties.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Telemetry { /// The properties of the Application Insights resource. internal partial class AppInsightsProperties diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.Serialization.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.Serialization.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.Serialization.cs rename to sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.Serialization.cs index 5b88cad78d86..074235c97ebb 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.Serialization.cs +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.Serialization.cs @@ -11,7 +11,7 @@ using System.Text.Json; using Azure.Core; -namespace Azure.AI.Projects +namespace Azure.AI.Telemetry { internal partial class GetAppInsightsResponse : IUtf8JsonSerializable, IJsonModel { diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.cs similarity index 99% rename from sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.cs rename to sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.cs index 2eeb98151a61..e6f3331648dd 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/GetAppInsightsResponse.cs +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/GetAppInsightsResponse.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; -namespace Azure.AI.Projects +namespace Azure.AI.Telemetry { /// Response from getting properties of the Application Insights resource. internal partial class GetAppInsightsResponse diff --git a/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Argument.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Argument.cs new file mode 100644 index 000000000000..acbf1a67ac4d --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Argument.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.AI.Telemetry +{ + internal static class Argument + { + public static void AssertNotNull(T value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNull(T? value, string name) + where T : struct + { + if (!value.HasValue) + { + throw new ArgumentNullException(name); + } + } + + public static void AssertNotNullOrEmpty(IEnumerable value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value is ICollection collectionOfT && collectionOfT.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + if (value is ICollection collection && collection.Count == 0) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + using IEnumerator e = value.GetEnumerator(); + if (!e.MoveNext()) + { + throw new ArgumentException("Value cannot be an empty collection.", name); + } + } + + public static void AssertNotNullOrEmpty(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (value.Length == 0) + { + throw new ArgumentException("Value cannot be an empty string.", name); + } + } + + public static void AssertNotNullOrWhiteSpace(string value, string name) + { + if (value is null) + { + throw new ArgumentNullException(name); + } + if (string.IsNullOrWhiteSpace(value)) + { + throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name); + } + } + + public static void AssertNotDefault(ref T value, string name) + where T : struct, IEquatable + { + if (value.Equals(default)) + { + throw new ArgumentException("Value cannot be empty.", name); + } + } + + public static void AssertInRange(T value, T minimum, T maximum, string name) + where T : notnull, IComparable + { + if (minimum.CompareTo(value) > 0) + { + throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed."); + } + if (maximum.CompareTo(value) < 0) + { + throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed."); + } + } + + public static void AssertEnumDefined(Type enumType, object value, string name) + { + if (!Enum.IsDefined(enumType, value)) + { + throw new ArgumentException($"Value not defined for {enumType.FullName}.", name); + } + } + + public static T CheckNotNull(T value, string name) + where T : class + { + AssertNotNull(value, name); + return value; + } + + public static string CheckNotNullOrEmpty(string value, string name) + { + AssertNotNullOrEmpty(value, name); + return value; + } + + public static void AssertNull(T value, string name, string message = null) + { + if (value != null) + { + throw new ArgumentException(message ?? "Value must be null.", name); + } + } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/ModelSerializationExtensions.cs new file mode 100644 index 000000000000..395ab93e8b59 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/ModelSerializationExtensions.cs @@ -0,0 +1,398 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Diagnostics; +using System.Globalization; +using System.Text.Json; +using System.Xml; +using Azure.Core; + +namespace Azure.AI.Telemetry +{ + internal static class ModelSerializationExtensions + { + internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W"); + + public static object GetObject(this JsonElement element) + { + switch (element.ValueKind) + { + case JsonValueKind.String: + return element.GetString(); + case JsonValueKind.Number: + if (element.TryGetInt32(out int intValue)) + { + return intValue; + } + if (element.TryGetInt64(out long longValue)) + { + return longValue; + } + return element.GetDouble(); + case JsonValueKind.True: + return true; + case JsonValueKind.False: + return false; + case JsonValueKind.Undefined: + case JsonValueKind.Null: + return null; + case JsonValueKind.Object: + var dictionary = new Dictionary(); + foreach (var jsonProperty in element.EnumerateObject()) + { + dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject()); + } + return dictionary; + case JsonValueKind.Array: + var list = new List(); + foreach (var item in element.EnumerateArray()) + { + list.Add(item.GetObject()); + } + return list.ToArray(); + default: + throw new NotSupportedException($"Not supported value kind {element.ValueKind}"); + } + } + + public static byte[] GetBytesFromBase64(this JsonElement element, string format) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + + return format switch + { + "U" => TypeFormatters.FromBase64UrlString(element.GetRequiredString()), + "D" => element.GetBytesFromBase64(), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + } + + public static DateTimeOffset GetDateTimeOffset(this JsonElement element, string format) => format switch + { + "U" when element.ValueKind == JsonValueKind.Number => DateTimeOffset.FromUnixTimeSeconds(element.GetInt64()), + _ => TypeFormatters.ParseDateTimeOffset(element.GetString(), format) + }; + + public static TimeSpan GetTimeSpan(this JsonElement element, string format) => TypeFormatters.ParseTimeSpan(element.GetString(), format); + + public static char GetChar(this JsonElement element) + { + if (element.ValueKind == JsonValueKind.String) + { + var text = element.GetString(); + if (text == null || text.Length != 1) + { + throw new NotSupportedException($"Cannot convert \"{text}\" to a char"); + } + return text[0]; + } + else + { + throw new NotSupportedException($"Cannot convert {element.ValueKind} to a char"); + } + } + + [Conditional("DEBUG")] + public static void ThrowNonNullablePropertyIsNull(this JsonProperty property) + { + throw new JsonException($"A property '{property.Name}' defined as non-nullable but received as null from the service. This exception only happens in DEBUG builds of the library and would be ignored in the release build"); + } + + public static string GetRequiredString(this JsonElement element) + { + var value = element.GetString(); + if (value == null) + { + throw new InvalidOperationException($"The requested operation requires an element of type 'String', but the target element has type '{element.ValueKind}'."); + } + return value; + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, DateTime value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, TimeSpan value, string format) + { + writer.WriteStringValue(TypeFormatters.ToString(value, format)); + } + + public static void WriteStringValue(this Utf8JsonWriter writer, char value) + { + writer.WriteStringValue(value.ToString(CultureInfo.InvariantCulture)); + } + + public static void WriteBase64StringValue(this Utf8JsonWriter writer, byte[] value, string format) + { + if (value == null) + { + writer.WriteNullValue(); + return; + } + switch (format) + { + case "U": + writer.WriteStringValue(TypeFormatters.ToBase64UrlString(value)); + break; + case "D": + writer.WriteBase64StringValue(value); + break; + default: + throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)); + } + } + + public static void WriteNumberValue(this Utf8JsonWriter writer, DateTimeOffset value, string format) + { + if (format != "U") + { + throw new ArgumentOutOfRangeException(nameof(format), "Only 'U' format is supported when writing a DateTimeOffset as a Number."); + } + writer.WriteNumberValue(value.ToUnixTimeSeconds()); + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, T value, ModelReaderWriterOptions options = null) + { + switch (value) + { + case null: + writer.WriteNullValue(); + break; + case IJsonModel jsonModel: + jsonModel.Write(writer, options ?? WireOptions); + break; + case IUtf8JsonSerializable serializable: + serializable.Write(writer); + break; + case byte[] bytes: + writer.WriteBase64StringValue(bytes); + break; + case BinaryData bytes0: + writer.WriteBase64StringValue(bytes0); + break; + case JsonElement json: + json.WriteTo(writer); + break; + case int i: + writer.WriteNumberValue(i); + break; + case decimal d: + writer.WriteNumberValue(d); + break; + case double d0: + if (double.IsNaN(d0)) + { + writer.WriteStringValue("NaN"); + } + else + { + writer.WriteNumberValue(d0); + } + break; + case float f: + writer.WriteNumberValue(f); + break; + case long l: + writer.WriteNumberValue(l); + break; + case string s: + writer.WriteStringValue(s); + break; + case bool b: + writer.WriteBooleanValue(b); + break; + case Guid g: + writer.WriteStringValue(g); + break; + case DateTimeOffset dateTimeOffset: + writer.WriteStringValue(dateTimeOffset, "O"); + break; + case DateTime dateTime: + writer.WriteStringValue(dateTime, "O"); + break; + case IEnumerable> enumerable: + writer.WriteStartObject(); + foreach (var pair in enumerable) + { + writer.WritePropertyName(pair.Key); + writer.WriteObjectValue(pair.Value, options); + } + writer.WriteEndObject(); + break; + case IEnumerable objectEnumerable: + writer.WriteStartArray(); + foreach (var item in objectEnumerable) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + break; + case TimeSpan timeSpan: + writer.WriteStringValue(timeSpan, "P"); + break; + default: + throw new NotSupportedException($"Not supported type {value.GetType()}"); + } + } + + public static void WriteObjectValue(this Utf8JsonWriter writer, object value, ModelReaderWriterOptions options = null) + { + writer.WriteObjectValue(value, options); + } + + internal static class TypeFormatters + { + private const string RoundtripZFormat = "yyyy-MM-ddTHH:mm:ss.fffffffZ"; + public const string DefaultNumberFormat = "G"; + + public static string ToString(bool value) => value ? "true" : "false"; + + public static string ToString(DateTime value, string format) => value.Kind switch + { + DateTimeKind.Utc => ToString((DateTimeOffset)value, format), + _ => throw new NotSupportedException($"DateTime {value} has a Kind of {value.Kind}. Azure SDK requires it to be UTC. You can call DateTime.SpecifyKind to change Kind property value to DateTimeKind.Utc.") + }; + + public static string ToString(DateTimeOffset value, string format) => format switch + { + "D" => value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture), + "U" => value.ToUnixTimeSeconds().ToString(CultureInfo.InvariantCulture), + "O" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "o" => value.ToUniversalTime().ToString(RoundtripZFormat, CultureInfo.InvariantCulture), + "R" => value.ToString("r", CultureInfo.InvariantCulture), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(TimeSpan value, string format) => format switch + { + "P" => XmlConvert.ToString(value), + _ => value.ToString(format, CultureInfo.InvariantCulture) + }; + + public static string ToString(byte[] value, string format) => format switch + { + "U" => ToBase64UrlString(value), + "D" => Convert.ToBase64String(value), + _ => throw new ArgumentException($"Format is not supported: '{format}'", nameof(format)) + }; + + public static string ToBase64UrlString(byte[] value) + { + int numWholeOrPartialInputBlocks = checked(value.Length + 2) / 3; + int size = checked(numWholeOrPartialInputBlocks * 4); + char[] output = new char[size]; + + int numBase64Chars = Convert.ToBase64CharArray(value, 0, value.Length, output, 0); + + int i = 0; + for (; i < numBase64Chars; i++) + { + char ch = output[i]; + if (ch == '+') + { + output[i] = '-'; + } + else + { + if (ch == '/') + { + output[i] = '_'; + } + else + { + if (ch == '=') + { + break; + } + } + } + } + + return new string(output, 0, i); + } + + public static byte[] FromBase64UrlString(string value) + { + int paddingCharsToAdd = (value.Length % 4) switch + { + 0 => 0, + 2 => 2, + 3 => 1, + _ => throw new InvalidOperationException("Malformed input") + }; + char[] output = new char[(value.Length + paddingCharsToAdd)]; + int i = 0; + for (; i < value.Length; i++) + { + char ch = value[i]; + if (ch == '-') + { + output[i] = '+'; + } + else + { + if (ch == '_') + { + output[i] = '/'; + } + else + { + output[i] = ch; + } + } + } + + for (; i < output.Length; i++) + { + output[i] = '='; + } + + return Convert.FromBase64CharArray(output, 0, output.Length); + } + + public static DateTimeOffset ParseDateTimeOffset(string value, string format) => format switch + { + "U" => DateTimeOffset.FromUnixTimeSeconds(long.Parse(value, CultureInfo.InvariantCulture)), + _ => DateTimeOffset.Parse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal) + }; + + public static TimeSpan ParseTimeSpan(string value, string format) => format switch + { + "P" => XmlConvert.ToTimeSpan(value), + _ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture) + }; + + public static string ConvertToString(object value, string format = null) => value switch + { + null => "null", + string s => s, + bool b => ToString(b), + int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture), + byte[] b0 when format != null => ToString(b0, format), + IEnumerable s0 => string.Join(",", s0), + DateTimeOffset dateTime when format != null => ToString(dateTime, format), + TimeSpan timeSpan when format != null => ToString(timeSpan, format), + TimeSpan timeSpan0 => XmlConvert.ToString(timeSpan0), + Guid guid => guid.ToString(), + BinaryData binaryData => ConvertToString(binaryData.ToArray(), format), + _ => value.ToString() + }; + } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Utf8JsonRequestContent.cs b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Utf8JsonRequestContent.cs new file mode 100644 index 000000000000..96c4a159ee1e --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Generated/Internal/Utf8JsonRequestContent.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.IO; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.AI.Telemetry +{ + internal class Utf8JsonRequestContent : RequestContent + { + private readonly MemoryStream _stream; + private readonly RequestContent _content; + + public Utf8JsonRequestContent() + { + _stream = new MemoryStream(); + _content = Create(_stream); + JsonWriter = new Utf8JsonWriter(_stream); + } + + public Utf8JsonWriter JsonWriter { get; } + + public override async Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) + { + await JsonWriter.FlushAsync().ConfigureAwait(false); + await _content.WriteToAsync(stream, cancellationToken).ConfigureAwait(false); + } + + public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) + { + JsonWriter.Flush(); + _content.WriteTo(stream, cancellationToken); + } + + public override bool TryComputeLength(out long length) + { + length = JsonWriter.BytesCommitted + JsonWriter.BytesPending; + return true; + } + + public override void Dispose() + { + JsonWriter.Dispose(); + _content.Dispose(); + _stream.Dispose(); + } + } +} diff --git a/sdk/ai/Azure.AI.Telemetry/src/Properties/AssemblyInfo.cs b/sdk/ai/Azure.AI.Telemetry/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..9e4cf05d318b --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/src/Properties/AssemblyInfo.cs @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Azure.AI.Telemetry.Tests, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] + +// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment. +// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers +// for the list of possible values. +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")] diff --git a/sdk/ai/Azure.AI.Telemetry/tests/Azure.AI.Telemetry.Tests.csproj b/sdk/ai/Azure.AI.Telemetry/tests/Azure.AI.Telemetry.Tests.csproj new file mode 100644 index 000000000000..064fe60db1c4 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/tests/Azure.AI.Telemetry.Tests.csproj @@ -0,0 +1,20 @@ + + + $(RequiredTargetFrameworks) + + $(NoWarn);CS1591 + + + + + + + + + + + + + + + diff --git a/sdk/ai/Azure.AI.Telemetry/tsp-location.yaml b/sdk/ai/Azure.AI.Telemetry/tsp-location.yaml new file mode 100644 index 000000000000..c11e6873ec93 --- /dev/null +++ b/sdk/ai/Azure.AI.Telemetry/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/ai/Azure.AI.Telemetry +commit: 985d9a014e6eb451627aa82ae3071aaa5f8d6c93 +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/ai/ci.yml b/sdk/ai/ci.yml new file mode 100644 index 000000000000..1b68669e8900 --- /dev/null +++ b/sdk/ai/ci.yml @@ -0,0 +1,35 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. + +trigger: + branches: + include: + - main + - hotfix/* + - release/* + paths: + include: + - sdk/ai + - sdk/ai/ci.yml + - sdk/ai/Azure.AI.Connections + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/ai + - sdk/ai/ci.yml + - sdk/ai/Azure.AI.Connections + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-client.yml + parameters: + ServiceDirectory: ai + ArtifactName: packages + Artifacts: + - name: Azure.AI.Connections + safeName: AzureAIConnections