mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-04 07:52:01 +00:00
Kept the inputs of assistants when you leave them (#1209)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
1fbc1f4796
commit
7e2f83b19b
83 files changed
+1924
-347
No files matched your search
@@ -0,0 +1,18 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
/// <summary>
|
||||
/// What happens to the inputs of an assistant when the user leaves it, e.g., for the chat or for another assistant.
|
||||
/// </summary>
|
||||
public enum AssistantInputsWhenLeaving
|
||||
{
|
||||
/// <summary>
|
||||
/// The assistant keeps the inputs, the options, and its last result in memory until the user resets it, sends
|
||||
/// a new text to it, or quits AI Studio.
|
||||
/// </summary>
|
||||
KEEP_INPUTS,
|
||||
|
||||
/// <summary>
|
||||
/// The assistant starts anew when the user opens it again. A run which goes on keeps its state all the same.
|
||||
/// </summary>
|
||||
DISCARD_INPUTS,
|
||||
}
|
||||
@@ -5,14 +5,15 @@ using AIStudio.Tools.PluginSystem;
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
/// <summary>
|
||||
/// The settings of the assistants page: the categories the user collapsed or hid, and what that means for
|
||||
/// their assistants.
|
||||
/// The settings of the assistants page: the categories the user collapsed or hid, what that means for their
|
||||
/// assistants, and whether assistants keep the inputs of the user when the user leaves them.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 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.<br/><br/>
|
||||
/// collapsed and hidden categories, e.g., in the "Send to ..." menu, and the option which decides whether
|
||||
/// assistants keep the inputs of the user when the user leaves them.<br/><br/>
|
||||
/// Ask AssistantCategoryRules instead of reading the categories: CORE counts as COMMON there, and custom
|
||||
/// categories are compared without regard to case.
|
||||
/// </remarks>
|
||||
@@ -62,4 +63,14 @@ public sealed class DataAssistantsPage(Expression<Func<Data, DataAssistantsPage>
|
||||
/// they did not exist by default.
|
||||
/// </remarks>
|
||||
public AssistantOfferBehavior HiddenCategoryAssistants { get; set; } = ManagedConfiguration.Register(configSelection, n => n.HiddenCategoryAssistants, AssistantOfferBehavior.TREAT_AS_ABSENT);
|
||||
|
||||
/// <summary>
|
||||
/// What happens to the inputs of an assistant when the user leaves it, e.g., for the chat or for another assistant.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// By default, an assistant keeps them in memory, so that a look into the chat loses nothing. Users and
|
||||
/// organizations who prefer an assistant which starts anew whenever it opens, as before v26.11.2, choose
|
||||
/// DISCARD_INPUTS. See AssistantBase.KeepsInputsWhenLeaving.
|
||||
/// </remarks>
|
||||
public AssistantInputsWhenLeaving InputsWhenLeaving { get; set; } = ManagedConfiguration.Register(configSelection, n => n.InputsWhenLeaving, AssistantInputsWhenLeaving.KEEP_INPUTS);
|
||||
}
|
||||
Reference in new issue
Block a user