mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 16:27:21 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
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>
|
|
/// 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";
|
|
} |