using AIStudio.Tools.AssistantSessions;
using AIStudio.Tools.DocumentSegments;
namespace AIStudio.Assistants;
///
/// The keys under which an assistant which works on documents as well as on texts keeps its own state in its session.
///
///
/// They live outside of the generic DocumentAssistantBase, as the keys of AssistantBase live in AssistantLowerBase:
/// a static field of a generic type would exist once per assistant.
///
internal static class DocumentAssistantStateKeys
{
///
/// What the assistant works on, as the user chose it.
///
///
/// Kept out of drafts, so that the assistant starts as its settings say whenever the user comes back, e.g., asks
/// again what to work on. A run brings its mode along, or its progress and its result would stay hidden.
///
public static readonly AssistantSessionStateKey MODE = new("Mode", isKeptOutOfDrafts: true);
///
/// The document the user chose.
///
public static readonly AssistantSessionStateKey DOCUMENT_PATH = new("DocumentPath");
///
/// The result of the last run on a document, which the user may still save.
///
public static readonly AssistantSessionStateKey EDITED_DOCUMENT = new("EditedDocument");
///
/// How far a run on a document got.
///
///
/// Kept out of drafts, like other work in progress: a draft is stored only while no run goes on, and its
/// progress would mean nothing then.
///
public static readonly AssistantSessionStateKey DOCUMENT_PROGRESS = new("DocumentProgress", isKeptOutOfDrafts: true);
}