mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 20:47:22 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
39 lines
1.8 KiB
C#
39 lines
1.8 KiB
C#
using AIStudio.Tools.Databases.ProvenanceStore;
|
|
using AIStudio.Tools.DataBackup;
|
|
|
|
namespace AIStudio.Tools.ChatArchive;
|
|
|
|
/// <summary>
|
|
/// Where a backup keeps its chats, for adding them to the chats there are.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// A backup holds the chats in the layout of the data folder, cf. DataBackupFormat: every chat in a
|
|
/// directory of its own, below its workspace or among the temporary chats.
|
|
/// </remarks>
|
|
public static class ChatArchiveFormat
|
|
{
|
|
/// <summary>
|
|
/// Where a backup keeps the workspaces, each in a directory named after its ID.
|
|
/// </summary>
|
|
public static readonly string WORKSPACES_PREFIX = DataBackupFormat.DATA_ROOT + DataBackupContents.ENTRIES.First(entry => entry.Kind is DataBackupEntryKind.WORKSPACES).RelativePath;
|
|
|
|
/// <summary>
|
|
/// Where a backup keeps the temporary chats, each in a directory named after its ID.
|
|
/// </summary>
|
|
public static readonly string TEMPORARY_CHATS_PREFIX = DataBackupFormat.DATA_ROOT + DataBackupContents.ENTRIES.First(entry => entry.Kind is DataBackupEntryKind.TEMPORARY_CHATS).RelativePath;
|
|
|
|
/// <summary>
|
|
/// Where a backup keeps the provenance store, which holds what the chats received besides their messages.
|
|
/// </summary>
|
|
public static readonly string PROVENANCE_STORE_ENTRY = DataBackupFormat.DATA_ROOT + DataBackupContents.ENTRIES.First(entry => entry.Kind is DataBackupEntryKind.CHAT_PROVENANCE).RelativePath + SqliteProvenanceStoreClientImplementation.DATABASE_FILENAME;
|
|
|
|
/// <summary>
|
|
/// The file storing the workspace or chat name.
|
|
/// </summary>
|
|
public const string NAME_FILE_NAME = "name";
|
|
|
|
/// <summary>
|
|
/// The file storing the serialized chat thread.
|
|
/// </summary>
|
|
public const string THREAD_FILE_NAME = "thread.json";
|
|
} |