BotSharp/tests/BotSharp.Plugin.SemanticKernel.UnitTests/Helpers/ResultHelper.cs

34 lines
1 KiB
C#
Raw Normal View History

2024-01-30 11:04:22 +00:00
using Microsoft.SemanticKernel;
using Microsoft.SemanticKernel.ChatCompletion;
2023-11-12 14:04:00 +00:00
2024-01-30 11:04:22 +00:00
//namespace BotSharp.Plugin.SemanticKernel.UnitTests.Helpers
//{
// public class ResultHelper : KernelContent
// {
// public TextContent ModelResult { get; set; }
// private string _response;
2023-11-12 14:04:00 +00:00
2024-01-30 11:04:22 +00:00
// public ResultHelper(string response)
// {
// ModelResult = new TextContent(response);
// _response = response;
// }
2023-11-12 14:04:00 +00:00
2024-01-30 11:04:22 +00:00
// public async Task<ChatMessageContent> GetChatMessageAsync(CancellationToken cancellationToken = default)
// {
// return await Task.FromResult(new MockModelResult(_response));
// }
2023-11-12 14:04:00 +00:00
2024-01-30 11:04:22 +00:00
// public Task<string> GetCompletionAsync(CancellationToken cancellationToken = default)
// {
// return Task.FromResult(_response);
// }
2023-11-13 15:11:49 +00:00
2024-01-30 11:04:22 +00:00
// public class MockModelResult : ChatMessageContent
// {
// public MockModelResult(string content) : base(AuthorRole.Assistant, content, null)
// {
// }
// }
// }
//}