-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathChat.cs
More file actions
25 lines (21 loc) · 906 Bytes
/
Chat.cs
File metadata and controls
25 lines (21 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using LLama.Batched;
using MaIN.Domain.Configuration;
namespace MaIN.Domain.Entities;
public class Chat
{
public string Id { get; init; } = string.Empty;
public required string Name { get; init; }
public required string Model { get; set; }
public List<Message> Messages { get; set; } = [];
public ChatType Type { get; set; } = ChatType.Conversation;
public bool Visual { get; set; }
public InferenceParams InterferenceParams { get; set; } = new();
public MemoryParams MemoryParams { get; set; } = new();
public TextToSpeechParams? TextToSpeechParams { get; set; }
public Dictionary<string, string> Properties { get; init; } = [];
public List<string> Memory { get; } = [];
public BackendType? Backend { get; set; }
public Conversation.State? ConversationState { get; set; }
public bool Interactive = false;
public bool Translate = false;
}