-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Interface:
interface IChatService
{
IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
IEnumerable<ChatMessage> messages,
ChatOptions? options = null,
CancellationToken cancellationToken = default);
}
Class:
class ChatService(IChatClient chatClient, ILogger<ChatService> logger) : IChatService
{
public IAsyncEnumerable<ChatResponseUpdate> GetStreamingResponseAsync(
IEnumerable<ChatMessage> messages,
ChatOptions? options = null,
CancellationToken cancellationToken = default)
{
// TODO
}
}