AI-Studio/app/MindWork AI Studio/Chat/ChatThread.cs

42 lines
1.2 KiB
C#
Raw Normal View History

2024-05-04 09:11:09 +00:00
namespace AIStudio.Chat;
/// <summary>
/// Data structure for a chat thread.
/// </summary>
2024-08-18 19:48:35 +00:00
public sealed record ChatThread
2024-05-04 09:11:09 +00:00
{
/// <summary>
/// The unique identifier of the chat thread.
/// </summary>
public Guid ChatId { get; init; }
/// <summary>
/// The unique identifier of the workspace.
/// </summary>
public Guid WorkspaceId { get; set; }
2024-11-23 12:04:02 +00:00
/// <summary>
/// Specifies the provider selected for the chat thread.
/// </summary>
public string SelectedProvider { get; set; } = string.Empty;
2024-05-04 09:11:09 +00:00
/// <summary>
/// The name of the chat thread. Usually generated by an AI model or manually edited by the user.
/// </summary>
public string Name { get; set; } = string.Empty;
2024-05-04 09:11:09 +00:00
/// <summary>
/// The seed for the chat thread. Some providers use this to generate deterministic results.
/// </summary>
public int Seed { get; init; }
2024-05-04 09:11:09 +00:00
/// <summary>
/// The current system prompt for the chat thread.
/// </summary>
public string SystemPrompt { get; init; } = string.Empty;
2024-05-04 09:11:09 +00:00
/// <summary>
/// The content blocks of the chat thread.
/// </summary>
public List<ContentBlock> Blocks { get; init; } = [];
2024-05-04 09:11:09 +00:00
}