14 lines
487 B
C#
14 lines
487 B
C#
using BotSharp.Abstraction.Conversations.Models;
|
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
public interface IChatCompletion
|
|
{
|
|
Task<bool> GetChatCompletionsAsync(Agent agent,
|
|
List<RoleDialogModel> conversations,
|
|
Func<RoleDialogModel, Task> onMessageReceived,
|
|
Func<RoleDialogModel, Task> onFunctionExecuting);
|
|
|
|
Task<bool> GetChatCompletionsStreamingAsync(Agent agent, List<RoleDialogModel> conversations, Func<RoleDialogModel, Task> onMessageReceived);
|
|
}
|