← Back to Files
IChatService.cs
namespace KaiChat.Services;
public interface IChatService
{
IAsyncEnumerable<string> StreamChatAsync(
List<Models.ChatMessage> messages,
CancellationToken cancellationToken = default,
int? maxTokens = null,
bool enableTools = false,
bool requireToolCall = false,
bool enableThinking = true,
bool enableAutonomyTools = false);
Task<string> ChatAsync(
List<Models.ChatMessage> messages,
CancellationToken cancellationToken = default,
int? maxTokens = null,
bool enableTools = false,
bool requireToolCall = false,
bool enableThinking = true,
bool enableAutonomyTools = false);
}