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

13 lines
332 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-28 16:30:27 +00:00
Task GetChatCompletionsAsync(string text,
Func<string> GetInstruction,
Func<List<RoleDialogModel>> GetChatHistory,
Func<string, Task> onChunkReceived,
Func<Task> onChunkCompleted);
2023-05-27 01:58:31 +00:00
}