Skip to content

Commit e65a0ab

Browse files
authored
.Net: Removed experimental flags for stable items (#13013)
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> Resolves: #12982 Removed experimental flags in following items: 1. `ChatClientExtensions` 2. `ChatClientBuilderExtensions` 3. `AIFunctionExtensions` 4. `ChatCompletionServiceExtensions` 5. `AuthorName` property in `ChatMessageContent` and `StreamingChatMessageContent` models. 6. `KernelFunctionExtensions` 7. `KernelPlugin` ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [x] The code builds clean without any errors or warnings - [x] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [x] All unit tests pass, and I have added new tests where possible - [x] I didn't break anyone 😄
1 parent a7d82ec commit e65a0ab

File tree

8 files changed

+0
-16
lines changed

8 files changed

+0
-16
lines changed

dotnet/src/SemanticKernel.Abstractions/AI/ChatClient/ChatClientExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
using System;
44
using System.Collections.Generic;
5-
using System.Diagnostics.CodeAnalysis;
65
using System.Threading;
76
using System.Threading.Tasks;
87
using Microsoft.Extensions.AI;
@@ -88,7 +87,6 @@ internal static IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
8887
/// The <see cref="IChatCompletionService"/>. If <paramref name="client"/> is an <see cref="IChatCompletionService"/>, <paramref name="client"/> will
8988
/// be returned. Otherwise, a new <see cref="IChatCompletionService"/> will be created that wraps <paramref name="client"/>.
9089
/// </returns>
91-
[Experimental("SKEXP0001")]
9290
public static IChatCompletionService AsChatCompletionService(this IChatClient client, IServiceProvider? serviceProvider = null)
9391
{
9492
Verify.NotNull(client);
@@ -101,7 +99,6 @@ public static IChatCompletionService AsChatCompletionService(this IChatClient cl
10199
/// <summary>
102100
/// Get the model identifier for the specified <see cref="IChatClient"/>.
103101
/// </summary>
104-
[Experimental("SKEXP0001")]
105102
public static string? GetModelId(this IChatClient client)
106103
{
107104
Verify.NotNull(client);

dotnet/src/SemanticKernel.Abstractions/AI/ChatClient/KernelFunctionInvokingChatClientBuilderExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

33
using System;
4-
using System.Diagnostics.CodeAnalysis;
54
using Microsoft.Extensions.AI;
65
using Microsoft.Extensions.DependencyInjection;
76
using Microsoft.Extensions.Logging;
87

98
namespace Microsoft.SemanticKernel;
109

1110
/// <summary>Provides extensions for configuring <see cref="KernelFunctionInvokingChatClient"/> instances.</summary>
12-
[Experimental("SKEXP0001")]
1311
public static class KernelFunctionInvokingChatClientBuilderExtensions
1412
{
1513
/// <summary>

dotnet/src/SemanticKernel.Abstractions/AI/ChatCompletion/AIFunctionExtensions.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System.Diagnostics.CodeAnalysis;
43
using System.Threading;
54
using System.Threading.Tasks;
65
using Microsoft.Extensions.AI;
@@ -18,7 +17,6 @@ public static class AIFunctionExtensions
1817
/// </summary>
1918
/// <param name="aiFunction">The AI function to convert.</param>
2019
/// <returns>The converted <see cref="KernelFunction"/>.</returns>
21-
[Experimental("SKEXP0001")]
2220
public static KernelFunction AsKernelFunction(this AIFunction aiFunction)
2321
{
2422
Verify.NotNull(aiFunction);
@@ -35,7 +33,6 @@ public static KernelFunction AsKernelFunction(this AIFunction aiFunction)
3533
/// <param name="functionArguments">Contains the arguments required for the AI function execution.</param>
3634
/// <param name="cancellationToken">Allows for the operation to be canceled if needed.</param>
3735
/// <returns>The result of the function execution.</returns>
38-
[Experimental("SKEXP0001")]
3936
public static ValueTask<object?> InvokeAsync(this AIFunction aiFunction, Kernel kernel, AIFunctionArguments? functionArguments = null, CancellationToken cancellationToken = default)
4037
{
4138
Verify.NotNull(aiFunction);

dotnet/src/SemanticKernel.Abstractions/AI/ChatCompletion/ChatCompletionServiceExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
using System;
44
using System.Collections.Generic;
5-
using System.Diagnostics.CodeAnalysis;
65
using System.Linq;
76
using System.Threading;
87
using System.Threading.Tasks;
@@ -119,7 +118,6 @@ public static IAsyncEnumerable<StreamingChatMessageContent> GetStreamingChatMess
119118
/// The <see cref="IChatClient"/>. If the <paramref name="service"/> is an <see cref="IChatClient"/>, the <paramref name="service"/>
120119
/// will be returned. Otherwise, a new <see cref="IChatClient"/> will be created that wraps <paramref name="service"/>.
121120
/// </returns>
122-
[Experimental("SKEXP0001")]
123121
public static IChatClient AsChatClient(this IChatCompletionService service)
124122
{
125123
Verify.NotNull(service);

dotnet/src/SemanticKernel.Abstractions/Contents/ChatMessageContent.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public class ChatMessageContent : KernelContent
1717
/// <summary>
1818
/// Name of the author of the message
1919
/// </summary>
20-
[Experimental("SKEXP0001")]
2120
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
2221
public string? AuthorName
2322
{

dotnet/src/SemanticKernel.Abstractions/Contents/StreamingChatMessageContent.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

33
using System.Collections.Generic;
4-
using System.Diagnostics.CodeAnalysis;
54
using System.Linq;
65
using System.Text;
76
using System.Text.Json.Serialization;
@@ -62,7 +61,6 @@ public StreamingKernelContentItemCollection Items
6261
/// Name of the author of the message
6362
/// </summary>
6463
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
65-
[Experimental("SKEXP0001")]
6664
public string? AuthorName
6765
{
6866
get => this._authorName;

dotnet/src/SemanticKernel.Abstractions/Functions/KernelFunctionExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System.Diagnostics.CodeAnalysis;
43
using Microsoft.Extensions.AI;
54

65
namespace Microsoft.SemanticKernel;
@@ -17,7 +16,6 @@ public static class KernelFunctionExtensions
1716
/// <param name="kernelFunction">The <see cref="KernelFunction"/> to clone with a default <see cref="Kernel"/>.</param>
1817
/// <param name="kernel">The <see cref="Kernel"/> to use as the default option.</param>
1918
/// <param name="pluginName">Optional plugin name to use for the new kernel cloned function.</param>
20-
[Experimental("SKEXP0001")]
2119
public static KernelFunction WithKernel(this KernelFunction kernelFunction, Kernel? kernel = null, string? pluginName = null)
2220
{
2321
var clone = kernelFunction.Clone(pluginName ?? kernelFunction.PluginName);

dotnet/src/SemanticKernel.Abstractions/Functions/KernelPlugin.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public IList<KernelFunctionMetadata> GetFunctionsMetadata()
9999
/// </remarks>
100100
/// <param name="kernel">The default <see cref="Kernel"/> to be used when the <see cref="AIFunction"/> is invoked.</param>
101101
/// <returns>An enumerable clone of <see cref="AIFunction"/> instances, for each <see cref="KernelFunction"/> in this plugin.</returns>
102-
[Experimental("SKEXP0001")]
103102
public IEnumerable<AIFunction> AsAIFunctions(Kernel? kernel = null)
104103
{
105104
foreach (KernelFunction function in this)

0 commit comments

Comments
 (0)