BotSharp/src/Infrastructure/BotSharp.Abstraction/IChatCompletionHandler.cs

13 lines
303 B
C#
Raw Normal View History

2023-05-28 16:30:27 +00:00
using BotSharp.Abstraction.Models;
2023-05-27 01:58:31 +00:00
namespace BotSharp.Abstraction;
public interface IChatCompletionHandler
{
2023-05-29 01:06:05 +00:00
string GetInstruction();
List<RoleDialogModel> GetChatSamples();
Task GetChatCompletionsAsync(List<RoleDialogModel> conversations,
Func<string, Task> onChunkReceived);
2023-05-27 01:58:31 +00:00
}