From 746b421e2f3daa69f905ef0bf75579ce0eeb58a5 Mon Sep 17 00:00:00 2001 From: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:42:19 +0000 Subject: [PATCH] .Net: Reduce visibility of two fields from public to private (#3354) ### Motivation and Context Two properties were inadvertently made public and should be private ### Contribution Checklist - [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 :smile: --- dotnet/src/SemanticKernel.Core/Functions/SemanticFunction.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotnet/src/SemanticKernel.Core/Functions/SemanticFunction.cs b/dotnet/src/SemanticKernel.Core/Functions/SemanticFunction.cs index 8c14419c1761..3f28915cb615 100644 --- a/dotnet/src/SemanticKernel.Core/Functions/SemanticFunction.cs +++ b/dotnet/src/SemanticKernel.Core/Functions/SemanticFunction.cs @@ -144,9 +144,9 @@ internal SemanticFunction( private static readonly JsonSerializerOptions s_toStringIndentedSerialization = new() { WriteIndented = true }; private readonly ILogger _logger; private IAIServiceSelector? _serviceSelector; - public List? _modelSettings; + private List? _modelSettings; private readonly Lazy _view; - public IPromptTemplate _promptTemplate { get; } + private readonly IPromptTemplate _promptTemplate; private static async Task GetCompletionsResultContentAsync(IReadOnlyList completions, CancellationToken cancellationToken = default) {