2023-06-27 18:31:13 +00:00
|
|
|
using BotSharp.Abstraction.Conversations.Models;
|
2023-06-19 18:32:49 +00:00
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
|
|
|
|
|
|
public interface IChatCompletion
|
|
|
|
|
{
|
2023-08-18 04:27:07 +00:00
|
|
|
Task<bool> GetChatCompletionsAsync(Agent agent,
|
|
|
|
|
List<RoleDialogModel> conversations,
|
|
|
|
|
Func<RoleDialogModel, Task> onMessageReceived,
|
|
|
|
|
Func<RoleDialogModel, Task> onFunctionExecuting);
|
|
|
|
|
|
2023-07-27 15:07:39 +00:00
|
|
|
Task<bool> GetChatCompletionsStreamingAsync(Agent agent, List<RoleDialogModel> conversations, Func<RoleDialogModel, Task> onMessageReceived);
|
2023-06-19 18:32:49 +00:00
|
|
|
}
|