using System.Linq.Expressions; using AIStudio.Tools.PluginSystem; namespace AIStudio.Settings.DataModel; /// /// The settings of the assistants page: the categories the user collapsed or hid, and what that means for /// their assistants. /// /// /// Collapsing and hiding are choices of the user alone and never managed: both only take something out of /// sight. Your organization disables categories elsewhere, see DataApp.DisabledAssistantCategories. It may, /// however, preset or lock the two options which decide whether AI Studio keeps offering the assistants of /// collapsed and hidden categories, e.g., in the "Send to ..." menu.

/// Ask AssistantCategoryRules instead of reading the categories: CORE counts as COMMON there, and custom /// categories are compared without regard to case. ///
/// The managed-configuration selector. public sealed class DataAssistantsPage(Expression>? configSelection = null) { /// /// The default constructor for the JSON deserializer. /// public DataAssistantsPage() : this(null) { } /// /// The categories of AI Studio the user collapsed on the assistants page. /// public HashSet CollapsedCategories { get; set; } = []; /// /// The custom categories the user collapsed on the assistants page, by their names. /// public HashSet CollapsedCustomCategories { get; set; } = []; /// /// The categories of AI Studio the user hid on the assistants page. /// public HashSet HiddenCategories { get; set; } = []; /// /// The custom categories the user hid on the assistants page, by their names. /// public HashSet HiddenCustomCategories { get; set; } = []; /// /// What happens to the assistants of collapsed categories outside of the assistants page. /// /// /// Collapsing a category is about a tidy page, so AI Studio keeps offering its assistants by default. /// public AssistantOfferBehavior CollapsedCategoryAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.CollapsedCategoryAssistants, AssistantOfferBehavior.KEEP_OFFERING); /// /// What happens to the assistants of hidden categories outside of the assistants page. /// /// /// Hiding a category says that its assistants do not matter to the user, so AI Studio treats them as if /// they did not exist by default. /// public AssistantOfferBehavior HiddenCategoryAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.HiddenCategoryAssistants, AssistantOfferBehavior.TREAT_AS_ABSENT); }