diff --git a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelChatCompletionProvider.cs b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelChatCompletionProvider.cs index 1d65ee45..1b5298fc 100644 --- a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelChatCompletionProvider.cs +++ b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelChatCompletionProvider.cs @@ -13,6 +13,9 @@ using System.Threading.Tasks; namespace BotSharp.Plugin.SemanticKernel { + /// + /// Use Semantic Kernel as chat completion provider + /// public class SemanticKernelChatCompletionProvider : IChatCompletion { private IKernel _kernel; @@ -20,8 +23,15 @@ namespace BotSharp.Plugin.SemanticKernel private ITokenStatistics _tokenStatistics; private string? _model = null; + /// public string Provider => "semantic-kernel"; + /// + /// Create a new instance of + /// + /// + /// + /// public SemanticKernelChatCompletionProvider(IKernel kernel, IServiceProvider services, ITokenStatistics tokenStatistics) @@ -30,7 +40,7 @@ namespace BotSharp.Plugin.SemanticKernel this._services = services; this._tokenStatistics = tokenStatistics; } - + /// public RoleDialogModel GetChatCompletions(Agent agent, List conversations) { var hooks = _services.GetServices().ToList(); @@ -81,18 +91,18 @@ namespace BotSharp.Plugin.SemanticKernel return msg; } - + /// public Task GetChatCompletionsAsync(Agent agent, List conversations, Func onMessageReceived, Func onFunctionExecuting) { throw new NotImplementedException(); } - + /// public Task GetChatCompletionsStreamingAsync(Agent agent, List conversations, Func onMessageReceived) { throw new NotImplementedException(); } - + /// public void SetModelName(string model) { if (!string.IsNullOrWhiteSpace(model)) diff --git a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelTextCompletionProvider.cs b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelTextCompletionProvider.cs index 07b6749a..d222e850 100644 --- a/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelTextCompletionProvider.cs +++ b/src/Plugins/BotSharp.Plugin.SemanticKernel/SemanticKernelTextCompletionProvider.cs @@ -24,9 +24,15 @@ namespace BotSharp.Plugin.SemanticKernel private readonly ITokenStatistics _tokenStatistics; private string? _model = null; - // + /// public string Provider => "semantic-kernel"; + /// + /// Create a new instance of + /// + /// + /// + /// public SemanticKernelTextCompletionProvider(IKernel kernel, IServiceProvider services, ITokenStatistics tokenStatistics)