From 4fb2531e3c1772d885d66eb3a940c8a315f5848c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 17 Mar 2025 16:00:46 +0000 Subject: [PATCH] CodeGen from PR 33242 in Azure/azure-rest-api-specs Merge 25e4c702375dc393f61874d472449530221682d3 into f150e1bec3af8ff0fc242308c9a4e727bbdb3977 --- .../api/Azure.AI.Projects.net8.0.cs | 4 ++-- .../api/Azure.AI.Projects.netstandard2.0.cs | 4 ++-- .../src/Generated/AIProjectsModelFactory.cs | 2 +- .../Generated/AgentsNamedToolChoiceType.cs | 4 ++-- ...osoftFabricToolDefinition.Serialization.cs | 12 +++++------ .../MicrosoftFabricToolDefinition.cs | 20 +++++++++---------- ...epMicrosoftFabricToolCall.Serialization.cs | 10 +++++----- .../RunStepMicrosoftFabricToolCall.cs | 2 +- .../RunStepToolCall.Serialization.cs | 2 +- .../src/Generated/ToolConnectionList.cs | 2 +- .../Generated/ToolDefinition.Serialization.cs | 2 +- sdk/ai/Azure.AI.Projects/tsp-location.yaml | 2 +- 12 files changed, 33 insertions(+), 33 deletions(-) diff --git a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs index 423ed81081ef..de6dfd72f742 100644 --- a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs +++ b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs @@ -1637,8 +1637,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class MicrosoftFabricToolDefinition : Azure.AI.Projects.ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricAiskill) { } - public Azure.AI.Projects.ToolConnectionList FabricAiskill { get { throw null; } set { } } + public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricDataagent) { } + public Azure.AI.Projects.ToolConnectionList FabricDataagent { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Projects.MicrosoftFabricToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs index 423ed81081ef..de6dfd72f742 100644 --- a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs +++ b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs @@ -1637,8 +1637,8 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer } public partial class MicrosoftFabricToolDefinition : Azure.AI.Projects.ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricAiskill) { } - public Azure.AI.Projects.ToolConnectionList FabricAiskill { get { throw null; } set { } } + public MicrosoftFabricToolDefinition(Azure.AI.Projects.ToolConnectionList fabricDataagent) { } + public Azure.AI.Projects.ToolConnectionList FabricDataagent { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Projects.MicrosoftFabricToolDefinition System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs index 69d51bb078be..ed336da925ed 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AIProjectsModelFactory.cs @@ -451,7 +451,7 @@ public static RunStepMicrosoftFabricToolCall RunStepMicrosoftFabricToolCall(stri { microsoftFabric ??= new Dictionary(); - return new RunStepMicrosoftFabricToolCall("fabric_aiskill", id, serializedAdditionalRawData: null, microsoftFabric); + return new RunStepMicrosoftFabricToolCall("fabric_dataagent", id, serializedAdditionalRawData: null, microsoftFabric); } /// Initializes a new instance of . diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/AgentsNamedToolChoiceType.cs b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsNamedToolChoiceType.cs index e9371e9da058..8a5bfe61444d 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/AgentsNamedToolChoiceType.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/AgentsNamedToolChoiceType.cs @@ -26,7 +26,7 @@ public AgentsNamedToolChoiceType(string value) private const string CodeInterpreterValue = "code_interpreter"; private const string FileSearchValue = "file_search"; private const string BingGroundingValue = "bing_grounding"; - private const string MicrosoftFabricValue = "fabric_aiskill"; + private const string MicrosoftFabricValue = "fabric_dataagent"; private const string SharepointValue = "sharepoint_grounding"; private const string AzureAISearchValue = "azure_ai_search"; @@ -38,7 +38,7 @@ public AgentsNamedToolChoiceType(string value) public static AgentsNamedToolChoiceType FileSearch { get; } = new AgentsNamedToolChoiceType(FileSearchValue); /// Tool type `bing_grounding`. public static AgentsNamedToolChoiceType BingGrounding { get; } = new AgentsNamedToolChoiceType(BingGroundingValue); - /// Tool type `fabric_aiskill`. + /// Tool type `fabric_dataagent`. public static AgentsNamedToolChoiceType MicrosoftFabric { get; } = new AgentsNamedToolChoiceType(MicrosoftFabricValue); /// Tool type `sharepoint_grounding`. public static AgentsNamedToolChoiceType Sharepoint { get; } = new AgentsNamedToolChoiceType(SharepointValue); diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.Serialization.cs b/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.Serialization.cs index cf6fb006753b..ba149c303ba5 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.Serialization.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.Serialization.cs @@ -35,8 +35,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("fabric_aiskill"u8); - writer.WriteObjectValue(FabricAiskill, options); + writer.WritePropertyName("fabric_dataagent"u8); + writer.WriteObjectValue(FabricDataagent, options); } MicrosoftFabricToolDefinition IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) @@ -59,15 +59,15 @@ internal static MicrosoftFabricToolDefinition DeserializeMicrosoftFabricToolDefi { return null; } - ToolConnectionList fabricAiskill = default; + ToolConnectionList fabricDataagent = default; string type = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("fabric_aiskill"u8)) + if (property.NameEquals("fabric_dataagent"u8)) { - fabricAiskill = ToolConnectionList.DeserializeToolConnectionList(property.Value, options); + fabricDataagent = ToolConnectionList.DeserializeToolConnectionList(property.Value, options); continue; } if (property.NameEquals("type"u8)) @@ -81,7 +81,7 @@ internal static MicrosoftFabricToolDefinition DeserializeMicrosoftFabricToolDefi } } serializedAdditionalRawData = rawDataDictionary; - return new MicrosoftFabricToolDefinition(type, serializedAdditionalRawData, fabricAiskill); + return new MicrosoftFabricToolDefinition(type, serializedAdditionalRawData, fabricDataagent); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.cs b/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.cs index f62e63d2f7f0..abed6492094f 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/MicrosoftFabricToolDefinition.cs @@ -14,23 +14,23 @@ namespace Azure.AI.Projects public partial class MicrosoftFabricToolDefinition : ToolDefinition { /// Initializes a new instance of . - /// The list of connections used by the Microsoft Fabric tool. - /// is null. - public MicrosoftFabricToolDefinition(ToolConnectionList fabricAiskill) + /// The list of connections used by the Microsoft Fabric tool. + /// is null. + public MicrosoftFabricToolDefinition(ToolConnectionList fabricDataagent) { - Argument.AssertNotNull(fabricAiskill, nameof(fabricAiskill)); + Argument.AssertNotNull(fabricDataagent, nameof(fabricDataagent)); - Type = "fabric_aiskill"; - FabricAiskill = fabricAiskill; + Type = "fabric_dataagent"; + FabricDataagent = fabricDataagent; } /// Initializes a new instance of . /// The object type. /// Keeps track of any properties unknown to the library. - /// The list of connections used by the Microsoft Fabric tool. - internal MicrosoftFabricToolDefinition(string type, IDictionary serializedAdditionalRawData, ToolConnectionList fabricAiskill) : base(type, serializedAdditionalRawData) + /// The list of connections used by the Microsoft Fabric tool. + internal MicrosoftFabricToolDefinition(string type, IDictionary serializedAdditionalRawData, ToolConnectionList fabricDataagent) : base(type, serializedAdditionalRawData) { - FabricAiskill = fabricAiskill; + FabricDataagent = fabricDataagent; } /// Initializes a new instance of for deserialization. @@ -39,6 +39,6 @@ internal MicrosoftFabricToolDefinition() } /// The list of connections used by the Microsoft Fabric tool. - public ToolConnectionList FabricAiskill { get; set; } + public ToolConnectionList FabricDataagent { get; set; } } } diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.Serialization.cs b/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.Serialization.cs index bac1e00e5a67..8711de151705 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.Serialization.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.Serialization.cs @@ -35,7 +35,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("fabric_aiskill"u8); + writer.WritePropertyName("fabric_dataagent"u8); writer.WriteStartObject(); foreach (var item in MicrosoftFabric) { @@ -65,21 +65,21 @@ internal static RunStepMicrosoftFabricToolCall DeserializeRunStepMicrosoftFabric { return null; } - IReadOnlyDictionary fabricAiskill = default; + IReadOnlyDictionary fabricDataagent = default; string type = default; string id = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("fabric_aiskill"u8)) + if (property.NameEquals("fabric_dataagent"u8)) { Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { dictionary.Add(property0.Name, property0.Value.GetString()); } - fabricAiskill = dictionary; + fabricDataagent = dictionary; continue; } if (property.NameEquals("type"u8)) @@ -98,7 +98,7 @@ internal static RunStepMicrosoftFabricToolCall DeserializeRunStepMicrosoftFabric } } serializedAdditionalRawData = rawDataDictionary; - return new RunStepMicrosoftFabricToolCall(type, id, serializedAdditionalRawData, fabricAiskill); + return new RunStepMicrosoftFabricToolCall(type, id, serializedAdditionalRawData, fabricDataagent); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.cs b/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.cs index b212127c0605..9cd55706d646 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/RunStepMicrosoftFabricToolCall.cs @@ -25,7 +25,7 @@ internal RunStepMicrosoftFabricToolCall(string id, IReadOnlyDictionary A set of connection resources currently used by either the `bing_grounding`, `fabric_aiskill`, or `sharepoint_grounding` tools. + /// A set of connection resources currently used by either the `bing_grounding`, `fabric_dataagent`, or `sharepoint_grounding` tools. public partial class ToolConnectionList { /// diff --git a/sdk/ai/Azure.AI.Projects/src/Generated/ToolDefinition.Serialization.cs b/sdk/ai/Azure.AI.Projects/src/Generated/ToolDefinition.Serialization.cs index f4ad8d140422..cf029a42c888 100644 --- a/sdk/ai/Azure.AI.Projects/src/Generated/ToolDefinition.Serialization.cs +++ b/sdk/ai/Azure.AI.Projects/src/Generated/ToolDefinition.Serialization.cs @@ -81,7 +81,7 @@ internal static ToolDefinition DeserializeToolDefinition(JsonElement element, Mo case "azure_function": return AzureFunctionToolDefinition.DeserializeAzureFunctionToolDefinition(element, options); case "bing_grounding": return BingGroundingToolDefinition.DeserializeBingGroundingToolDefinition(element, options); case "code_interpreter": return CodeInterpreterToolDefinition.DeserializeCodeInterpreterToolDefinition(element, options); - case "fabric_aiskill": return MicrosoftFabricToolDefinition.DeserializeMicrosoftFabricToolDefinition(element, options); + case "fabric_dataagent": return MicrosoftFabricToolDefinition.DeserializeMicrosoftFabricToolDefinition(element, options); case "file_search": return FileSearchToolDefinition.DeserializeFileSearchToolDefinition(element, options); case "function": return FunctionToolDefinition.DeserializeFunctionToolDefinition(element, options); case "openapi": return OpenApiToolDefinition.DeserializeOpenApiToolDefinition(element, options); diff --git a/sdk/ai/Azure.AI.Projects/tsp-location.yaml b/sdk/ai/Azure.AI.Projects/tsp-location.yaml index ff0097afc661..7066aa33d5e4 100644 --- a/sdk/ai/Azure.AI.Projects/tsp-location.yaml +++ b/sdk/ai/Azure.AI.Projects/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/ai/Azure.AI.Projects -commit: f150e1bec3af8ff0fc242308c9a4e727bbdb3977 +commit: b7ac52361797662136f8830583f0b10ca4fba719 repo: Azure/azure-rest-api-specs additionalDirectories: