mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-15 12:13:48 +00:00
Added configuration settings concerning workspaces
This commit is contained in:
5 files changed
+50
No files matched your search
@@ -41,4 +41,14 @@ public sealed class Data
|
||||
/// If and when we should look for updates.
|
||||
/// </summary>
|
||||
public UpdateBehavior UpdateBehavior { get; set; } = UpdateBehavior.ONCE_STARTUP;
|
||||
|
||||
/// <summary>
|
||||
/// The chat storage behavior.
|
||||
/// </summary>
|
||||
public WorkspaceStorageBehavior WorkspaceStorageBehavior { get; set; } = WorkspaceStorageBehavior.STORE_CHATS_AUTOMATICALLY;
|
||||
|
||||
/// <summary>
|
||||
/// The chat storage maintenance behavior.
|
||||
/// </summary>
|
||||
public WorkspaceStorageTemporaryMaintenancePolicy WorkspaceStorageTemporaryMaintenancePolicy { get; set; } = WorkspaceStorageTemporaryMaintenancePolicy.DELETE_OLDER_THAN_90_DAYS;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace AIStudio.Settings;
|
||||
|
||||
public enum WorkspaceStorageBehavior
|
||||
{
|
||||
DISABLE_WORKSPACES,
|
||||
|
||||
STORE_CHATS_AUTOMATICALLY,
|
||||
STORE_CHATS_MANUALLY,
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace AIStudio.Settings;
|
||||
|
||||
public enum WorkspaceStorageTemporaryMaintenancePolicy
|
||||
{
|
||||
NO_AUTOMATIC_MAINTENANCE,
|
||||
|
||||
DELETE_OLDER_THAN_7_DAYS,
|
||||
DELETE_OLDER_THAN_30_DAYS,
|
||||
DELETE_OLDER_THAN_90_DAYS,
|
||||
DELETE_OLDER_THAN_180_DAYS,
|
||||
DELETE_OLDER_THAN_365_DAYS,
|
||||
}
|
||||
Reference in new issue
Block a user