Skip to content

Commit dea6982

Browse files
Merge branch 'expose-native-method' of https://github.com/SergeyMenshykh/semantic-kernel into expose-native-method
2 parents bc85c7b + dfbde0a commit dea6982

31 files changed

+0
-92
lines changed

dotnet/src/Connectors/Connectors.OpenAI/Extensions/OpenAIKernelBuilderExtensions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ OpenAIChatCompletionService Factory(IServiceProvider serviceProvider, object? _)
340340
/// <param name="serviceId">A local identifier for the given AI service</param>
341341
/// <param name="httpClient">The HttpClient to use with this service.</param>
342342
/// <returns>The same instance as <paramref name="builder"/>.</returns>
343-
[Experimental("SKEXP0010")]
344343
public static IKernelBuilder AddOpenAIChatCompletion(
345344
this IKernelBuilder builder,
346345
string modelId,

dotnet/src/Connectors/Connectors.OpenAI/Extensions/OpenAIServiceCollectionExtensions.cs

-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ OpenAIChatCompletionService Factory(IServiceProvider serviceProvider, object? _)
315315
/// <param name="orgId">OpenAI organization id. This is usually optional unless your account belongs to multiple organizations.</param>
316316
/// <param name="serviceId">A local identifier for the given AI service</param>
317317
/// <returns>The same instance as <paramref name="services"/>.</returns>
318-
[Experimental("SKEXP0010")]
319318
public static IServiceCollection AddOpenAIChatCompletion(
320319
this IServiceCollection services,
321320
string modelId,

dotnet/src/Connectors/Connectors.OpenAI/Settings/OpenAIPromptExecutionSettings.cs

-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public class OpenAIPromptExecutionSettings : PromptExecutionSettings
2828
/// <para>- <see cref="string"/> values: <c>"low"</c>, <c>"medium"</c>, <c>"high"</c>;</para>
2929
/// <para>- <see cref="ChatReasoningEffortLevel"/> object;</para>
3030
/// </remarks>
31-
[Experimental("SKEXP0010")]
3231
[JsonPropertyName("reasoning_effort")]
3332
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
3433
public object? ReasoningEffort
@@ -175,7 +174,6 @@ public long? Seed
175174
/// <para>- <see cref="ChatResponseFormat"/> object;</para>
176175
/// <para>- <see cref="Type"/> object, which will be used to automatically create a JSON schema.</para>
177176
/// </remarks>
178-
[Experimental("SKEXP0010")]
179177
[JsonPropertyName("response_format")]
180178
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
181179
public object? ResponseFormat
@@ -299,7 +297,6 @@ public string? User
299297
/// Whether to return log probabilities of the output tokens or not.
300298
/// If true, returns the log probabilities of each output token returned in the `content` of `message`.
301299
/// </summary>
302-
[Experimental("SKEXP0010")]
303300
[JsonPropertyName("logprobs")]
304301
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
305302
public bool? Logprobs
@@ -316,7 +313,6 @@ public bool? Logprobs
316313
/// <summary>
317314
/// An integer specifying the number of most likely tokens to return at each token position, each with an associated log probability.
318315
/// </summary>
319-
[Experimental("SKEXP0010")]
320316
[JsonPropertyName("top_logprobs")]
321317
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
322318
public int? TopLogprobs
@@ -333,7 +329,6 @@ public int? TopLogprobs
333329
/// <summary>
334330
/// Developer-defined tags and values used for filtering completions in the OpenAI dashboard.
335331
/// </summary>
336-
[Experimental("SKEXP0010")]
337332
[JsonPropertyName("metadata")]
338333
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
339334
public IDictionary<string, string>? Metadata
@@ -350,7 +345,6 @@ public IDictionary<string, string>? Metadata
350345
/// <summary>
351346
/// Whether or not to store the output of this chat completion request for use in the OpenAI model distillation or evals products.
352347
/// </summary>
353-
[Experimental("SKEXP0010")]
354348
[JsonPropertyName("store")]
355349
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
356350
public bool? Store

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

-2
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.Threading;
76
using System.Threading.Tasks;
@@ -11,7 +10,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
1110
/// <summary>
1211
/// Extension methods for chat history.
1312
/// </summary>
14-
[Experimental("SKEXP0001")]
1513
public static class ChatHistoryExtensions
1614
{
1715
/// <summary>

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

-2
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.Threading;
65
using System.Threading.Tasks;
76

@@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
109
/// <summary>
1110
/// Interface for reducing the chat history.
1211
/// </summary>
13-
[Experimental("SKEXP0001")]
1412
public interface IChatHistoryReducer
1513
{
1614
/// <summary>

dotnet/src/SemanticKernel.Abstractions/AI/PromptExecutionSettings.cs

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Collections.ObjectModel;
6-
using System.Diagnostics.CodeAnalysis;
76
using System.Text.Json.Serialization;
87
using Microsoft.SemanticKernel.ChatCompletion;
98
using Microsoft.SemanticKernel.TextGeneration;
@@ -36,7 +35,6 @@ public class PromptExecutionSettings
3635
/// 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"/>.
3736
/// If not provided the service identifier will be the default value in <see cref="DefaultServiceId"/>.
3837
/// </remarks>
39-
[Experimental("SKEXP0001")]
4038
[JsonPropertyName("service_id")]
4139
public string? ServiceId
4240
{

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearch.cs

-2
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

@@ -9,7 +8,6 @@ namespace Microsoft.SemanticKernel.Data;
98
/// <summary>
109
/// Interface for text based search queries for use with Semantic Kernel prompts and automatic function calling.
1110
/// </summary>
12-
[Experimental("SKEXP0001")]
1311
public interface ITextSearch
1412
{
1513
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearchResultMapper.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System.Diagnostics.CodeAnalysis;
4-
53
namespace Microsoft.SemanticKernel.Data;
64

75
/// <summary>
86
/// Interface for mapping between a <see cref="ITextSearch" /> implementation result value, and a <see cref="TextSearchResult" /> instance.
97
/// </summary>
10-
[Experimental("SKEXP0001")]
118
public interface ITextSearchResultMapper
129
{
1310
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/ITextSearchStringMapper.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System.Diagnostics.CodeAnalysis;
4-
53
namespace Microsoft.SemanticKernel.Data;
64

75
/// <summary>
86
/// Interface for mapping between a <see cref="ITextSearch" /> implementation result value, and a <see cref="string" /> instance.
97
/// </summary>
10-
[Experimental("SKEXP0001")]
118
public interface ITextSearchStringMapper
129
{
1310
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/KernelSearchResults.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
43

54
namespace Microsoft.SemanticKernel.Data;
65

@@ -13,7 +12,6 @@ namespace Microsoft.SemanticKernel.Data;
1312
/// <param name="results">The search results.</param>
1413
/// <param name="totalCount">The total count of results found by the search operation, or null if the count was not requested.</param>
1514
/// <param name="metadata">Metadata associated with the search results.</param>
16-
[Experimental("SKEXP0001")]
1715
public sealed class KernelSearchResults<T>(IAsyncEnumerable<T> results, long? totalCount = null, IReadOnlyDictionary<string, object?>? metadata = null)
1816
{
1917
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/TextSearchOptions.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Copyright (c) Microsoft. All rights reserved.
2-
using System.Diagnostics.CodeAnalysis;
3-
42
namespace Microsoft.SemanticKernel.Data;
53

64
/// <summary>
75
/// Options which can be applied when using <see cref="ITextSearch"/>.
86
/// </summary>
9-
[Experimental("SKEXP0001")]
107
public sealed class TextSearchOptions
118
{
129
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/TextSearchResult.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

3-
using System.Diagnostics.CodeAnalysis;
4-
53
namespace Microsoft.SemanticKernel.Data;
64

75
/// <summary>
@@ -14,7 +12,6 @@ namespace Microsoft.SemanticKernel.Data;
1412
/// - Link reference associated with the search result
1513
/// </remarks>
1614
/// <param name="value">The text search result value.</param>
17-
[Experimental("SKEXP0001")]
1815
public sealed class TextSearchResult(string value)
1916
{
2017
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/TextSearchResultLinkAttribute.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
using System;
3-
using System.Diagnostics.CodeAnalysis;
43

54
namespace Microsoft.SemanticKernel.Data;
65

@@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.Data;
109
/// <remarks>
1110
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
1211
/// </remarks>
13-
[Experimental("SKEXP0001")]
1412
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
1513
public sealed class TextSearchResultLinkAttribute : Attribute
1614
{

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/TextSearchResultNameAttribute.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Microsoft. All rights reserved.
22

33
using System;
4-
using System.Diagnostics.CodeAnalysis;
54

65
namespace Microsoft.SemanticKernel.Data;
76

@@ -11,7 +10,6 @@ namespace Microsoft.SemanticKernel.Data;
1110
/// <remarks>
1211
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
1312
/// </remarks>
14-
[Experimental("SKEXP0001")]
1513
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
1614
public sealed class TextSearchResultNameAttribute : Attribute
1715
{

dotnet/src/SemanticKernel.Abstractions/Data/TextSearch/TextSearchResultValueAttribute.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
using System;
3-
using System.Diagnostics.CodeAnalysis;
43

54
namespace Microsoft.SemanticKernel.Data;
65

@@ -10,7 +9,6 @@ namespace Microsoft.SemanticKernel.Data;
109
/// <remarks>
1110
/// The characteristics defined here will influence how the property is treated when converting a record to a <see cref="TextSearchResult"/>.
1211
/// </remarks>
13-
[Experimental("SKEXP0001")]
1412
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
1513
public sealed class TextSearchResultValueAttribute : Attribute
1614
{

dotnet/src/SemanticKernel.Abstractions/Filters/AutoFunctionInvocation/AutoFunctionInvocationContext.cs

-2
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 Microsoft.SemanticKernel.ChatCompletion;
65

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

8987
/// <summary>

dotnet/src/SemanticKernel.Abstractions/Filters/Prompt/PromptRenderContext.cs

-2
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

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

6462
/// <summary>

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

-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public sealed class KernelParameterMetadata
3737
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
3838
/// <exception cref="ArgumentNullException">The <paramref name="name"/> was null.</exception>
3939
/// <exception cref="ArgumentException">The <paramref name="name"/> was empty or composed entirely of whitespace.</exception>
40-
[Experimental("SKEXP0120")]
4140
public KernelParameterMetadata(string name, JsonSerializerOptions jsonSerializerOptions)
4241
{
4342
this.Name = name;
@@ -66,7 +65,6 @@ public KernelParameterMetadata(KernelParameterMetadata metadata)
6665
/// <param name="metadata">The metadata to copy.</param>
6766
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
6867
/// <remarks>This creates a shallow clone of <paramref name="metadata"/>.</remarks>
69-
[Experimental("SKEXP0120")]
7068
public KernelParameterMetadata(KernelParameterMetadata metadata, JsonSerializerOptions jsonSerializerOptions)
7169
{
7270
Verify.NotNull(metadata);

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

-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public KernelReturnParameterMetadata() { }
4040

4141
/// <summary>Initializes the <see cref="KernelReturnParameterMetadata"/>.</summary>
4242
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
43-
[Experimental("SKEXP0120")]
4443
public KernelReturnParameterMetadata(JsonSerializerOptions jsonSerializerOptions)
4544
{
4645
this._jsonSerializerOptions = jsonSerializerOptions;
@@ -60,7 +59,6 @@ public KernelReturnParameterMetadata(KernelReturnParameterMetadata metadata)
6059
/// <summary>Initializes a <see cref="KernelReturnParameterMetadata"/> as a copy of another <see cref="KernelReturnParameterMetadata"/>.</summary>
6160
/// <param name="metadata">The metadata to copy.</param>
6261
/// <param name="jsonSerializerOptions">The <see cref="JsonSerializerOptions"/> to generate JSON schema.</param>
63-
[Experimental("SKEXP0120")]
6462
public KernelReturnParameterMetadata(KernelReturnParameterMetadata metadata, JsonSerializerOptions jsonSerializerOptions)
6563
{
6664
this._description = metadata._description;

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

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System;
44
using System.Collections.Generic;
55
using System.ComponentModel;
6-
using System.Diagnostics.CodeAnalysis;
76
using System.Text.Json.Serialization;
87

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

dotnet/src/SemanticKernel.Core/AI/ChatCompletion/ChatHistorySummarizationReducer.cs

-2
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;
@@ -18,7 +17,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
1817
/// is provided (recommended), reduction will scan within the threshold window in an attempt to
1918
/// avoid orphaning a user message from an assistant response.
2019
/// </remarks>
21-
[Experimental("SKEXP0001")]
2220
public class ChatHistorySummarizationReducer : IChatHistoryReducer
2321
{
2422
/// <summary>

dotnet/src/SemanticKernel.Core/AI/ChatCompletion/ChatHistoryTruncationReducer.cs

-2
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;
@@ -18,7 +17,6 @@ namespace Microsoft.SemanticKernel.ChatCompletion;
1817
/// is provided (recommended), reduction will scan within the threshold window in an attempt to
1918
/// avoid orphaning a user message from an assistant response.
2019
/// </remarks>
21-
[Experimental("SKEXP0001")]
2220
public class ChatHistoryTruncationReducer : IChatHistoryReducer
2321
{
2422
/// <summary>

0 commit comments

Comments
 (0)