Skip to content

.Net: Remove experimental flags for stable items #11346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public class OpenAIPromptExecutionSettings : PromptExecutionSettings
/// <para>- <see cref="string"/> values: <c>"low"</c>, <c>"medium"</c>, <c>"high"</c>;</para>
/// <para>- <see cref="ChatReasoningEffortLevel"/> object;</para>
/// </remarks>
[Experimental("SKEXP0010")]
[JsonPropertyName("reasoning_effort")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? ReasoningEffort
Expand Down Expand Up @@ -175,7 +174,6 @@ public long? Seed
/// <para>- <see cref="ChatResponseFormat"/> object;</para>
/// <para>- <see cref="Type"/> object, which will be used to automatically create a JSON schema.</para>
/// </remarks>
[Experimental("SKEXP0010")]
[JsonPropertyName("response_format")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public object? ResponseFormat
Expand Down Expand Up @@ -299,7 +297,6 @@ public string? User
/// Whether to return log probabilities of the output tokens or not.
/// If true, returns the log probabilities of each output token returned in the `content` of `message`.
/// </summary>
[Experimental("SKEXP0010")]
[JsonPropertyName("logprobs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Logprobs
Expand All @@ -316,7 +313,6 @@ public bool? Logprobs
/// <summary>
/// An integer specifying the number of most likely tokens to return at each token position, each with an associated log probability.
/// </summary>
[Experimental("SKEXP0010")]
[JsonPropertyName("top_logprobs")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? TopLogprobs
Expand All @@ -333,7 +329,6 @@ public int? TopLogprobs
/// <summary>
/// Developer-defined tags and values used for filtering completions in the OpenAI dashboard.
/// </summary>
[Experimental("SKEXP0010")]
[JsonPropertyName("metadata")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IDictionary<string, string>? Metadata
Expand All @@ -350,7 +345,6 @@ public IDictionary<string, string>? Metadata
/// <summary>
/// Whether or not to store the output of this chat completion request for use in the OpenAI model distillation or evals products.
/// </summary>
[Experimental("SKEXP0010")]
[JsonPropertyName("store")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public bool? Store
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -11,7 +10,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
/// <summary>
/// Extension methods for chat history.
/// </summary>
[Experimental("SKEXP0001")]
public static class ChatHistoryExtensions
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;

Expand All @@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
/// <summary>
/// Interface for reducing the chat history.
/// </summary>
[Experimental("SKEXP0001")]
public interface IChatHistoryReducer
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using Microsoft.SemanticKernel.ChatCompletion;
using Microsoft.SemanticKernel.TextGeneration;
Expand Down Expand Up @@ -36,7 +35,6 @@ public class PromptExecutionSettings
/// When provided, this service identifier will be the key in a dictionary collection of execution settings for both <see cref="KernelArguments"/> and <see cref="PromptTemplateConfig"/>.
/// If not provided the service identifier will be the default value in <see cref="DefaultServiceId"/>.
/// </remarks>
[Experimental("SKEXP0001")]
[JsonPropertyName("service_id")]
public string? ServiceId
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;
using System.Threading;
using System.Threading.Tasks;

Expand All @@ -9,7 +8,6 @@ namespace Microsoft.SemanticKernel.Data;
/// <summary>
/// Interface for text based search queries for use with Semantic Kernel prompts and automatic function calling.
/// </summary>
[Experimental("SKEXP0001")]
public interface ITextSearch
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

/// <summary>
/// Interface for mapping between a <see cref="ITextSearch" /> implementation result value, and a <see cref="TextSearchResult" /> instance.
/// </summary>
[Experimental("SKEXP0001")]
public interface ITextSearchResultMapper
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

/// <summary>
/// Interface for mapping between a <see cref="ITextSearch" /> implementation result value, and a <see cref="string" /> instance.
/// </summary>
[Experimental("SKEXP0001")]
public interface ITextSearchStringMapper
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

Expand All @@ -13,7 +12,6 @@ namespace Microsoft.SemanticKernel.Data;
/// <param name="results">The search results.</param>
/// <param name="totalCount">The total count of results found by the search operation, or null if the count was not requested.</param>
/// <param name="metadata">Metadata associated with the search results.</param>
[Experimental("SKEXP0001")]
public sealed class KernelSearchResults<T>(IAsyncEnumerable<T> results, long? totalCount = null, IReadOnlyDictionary<string, object?>? metadata = null)
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// Copyright (c) Microsoft. All rights reserved.
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

/// <summary>
/// Options which can be applied when using <see cref="ITextSearch"/>.
/// </summary>
[Experimental("SKEXP0001")]
public sealed class TextSearchOptions
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

/// <summary>
Expand All @@ -14,7 +12,6 @@ namespace Microsoft.SemanticKernel.Data;
/// - Link reference associated with the search result
/// </remarks>
/// <param name="value">The text search result value.</param>
[Experimental("SKEXP0001")]
public sealed class TextSearchResult(string value)
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

Expand All @@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.Data;
/// <remarks>
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
/// </remarks>
[Experimental("SKEXP0001")]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TextSearchResultLinkAttribute : Attribute
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft. All rights reserved.

using System;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

Expand All @@ -11,7 +10,6 @@ namespace Microsoft.SemanticKernel.Data;
/// <remarks>
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
/// </remarks>
[Experimental("SKEXP0001")]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TextSearchResultNameAttribute : Attribute
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.
using System;
using System.Diagnostics.CodeAnalysis;

namespace Microsoft.SemanticKernel.Data;

Expand All @@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.Data;
/// <remarks>
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
/// </remarks>
[Experimental("SKEXP0001")]
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class TextSearchResultValueAttribute : Attribute
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;
using System.Threading;
using Microsoft.SemanticKernel.ChatCompletion;

Expand Down Expand Up @@ -83,7 +82,6 @@ public AutoFunctionInvocationContext(
/// <summary>
/// The execution settings associated with the operation.
/// </summary>
[Experimental("SKEXP0001")]
public PromptExecutionSettings? ExecutionSettings { get; init; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) Microsoft. All rights reserved.

using System.Diagnostics.CodeAnalysis;
using System.Threading;

namespace Microsoft.SemanticKernel;
Expand Down Expand Up @@ -58,7 +57,6 @@ internal PromptRenderContext(Kernel kernel, KernelFunction function, KernelArgum
/// <summary>
/// The execution settings associated with the operation.
/// </summary>
[Experimental("SKEXP0001")]
public PromptExecutionSettings? ExecutionSettings { get; init; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ private void LogFunctionResult(ILogger logger, string? pluginName, string functi
/// The <see cref="Kernel"/> instance to pass to the <see cref="KernelFunction"/> when it's invoked as part of the <see cref="AIFunction"/>'s invocation.
/// </param>
/// <returns>An instance of <see cref="AIFunction"/> that, when invoked, will in turn invoke the current <see cref="KernelFunction"/>.</returns>
[Experimental("SKEXP0001")]
public AIFunction AsAIFunction(Kernel? kernel = null)
{
return new KernelAIFunction(this, kernel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public sealed class KernelParameterMetadata
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
/// <exception cref="ArgumentNullException">The <paramref name="name"/> was null.</exception>
/// <exception cref="ArgumentException">The <paramref name="name"/> was empty or composed entirely of whitespace.</exception>
[Experimental("SKEXP0120")]
public KernelParameterMetadata(string name, JsonSerializerOptions jsonSerializerOptions)
{
this.Name = name;
Expand Down Expand Up @@ -66,7 +65,6 @@ public KernelParameterMetadata(KernelParameterMetadata metadata)
/// <param name="metadata">The metadata to copy.</param>
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
/// <remarks>This creates a shallow clone of <paramref name="metadata"/>.</remarks>
[Experimental("SKEXP0120")]
public KernelParameterMetadata(KernelParameterMetadata metadata, JsonSerializerOptions jsonSerializerOptions)
{
Verify.NotNull(metadata);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public IList<KernelFunctionMetadata> GetFunctionsMetadata()
/// The <see cref="Kernel"/> instance to pass to the <see cref="KernelFunction"/>s when invoked as part of the <see cref="AIFunction"/>'s invocation.
/// </param>
/// <returns>An enumerable of <see cref="AIFunction"/> instances, one for each <see cref="KernelFunction"/> in this plugin.</returns>
[Experimental("SKEXP0001")]
public IEnumerable<AIFunction> AsAIFunctions(Kernel? kernel = null)
{
foreach (KernelFunction function in this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public KernelReturnParameterMetadata() { }

/// <summary>Initializes the <see cref="KernelReturnParameterMetadata"/>.</summary>
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
[Experimental("SKEXP0120")]
public KernelReturnParameterMetadata(JsonSerializerOptions jsonSerializerOptions)
{
this._jsonSerializerOptions = jsonSerializerOptions;
Expand All @@ -60,7 +59,6 @@ public KernelReturnParameterMetadata(KernelReturnParameterMetadata metadata)
/// <summary>Initializes a <see cref="KernelReturnParameterMetadata"/> as a copy of another <see cref="KernelReturnParameterMetadata"/>.</summary>
/// <param name="metadata">The metadata to copy.</param>
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
[Experimental("SKEXP0120")]
public KernelReturnParameterMetadata(KernelReturnParameterMetadata metadata, JsonSerializerOptions jsonSerializerOptions)
{
this._description = metadata._description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;

namespace Microsoft.SemanticKernel;
Expand Down Expand Up @@ -53,7 +52,6 @@ public sealed class RestApiOperationResponse
/// <summary>
/// Gets a dictionary for ambient data associated with the response.
/// </summary>
[Experimental("SKEXP0040")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IDictionary<string, object?>? Data { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -18,7 +17,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
/// is provided (recommended), reduction will scan within the threshold window in an attempt to
/// avoid orphaning a user message from an assistant response.
/// </remarks>
[Experimental("SKEXP0001")]
public class ChatHistorySummarizationReducer : IChatHistoryReducer
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
Expand All @@ -18,7 +17,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
/// is provided (recommended), reduction will scan within the threshold window in an attempt to
/// avoid orphaning a user message from an assistant response.
/// </remarks>
[Experimental("SKEXP0001")]
public class ChatHistoryTruncationReducer : IChatHistoryReducer
{
/// <summary>
Expand Down
Loading
Loading