mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-21 02:13:49 +00:00
Improved the assistants page with categories for assistant plugins (#1211)
This commit is contained in:
1 parent
ef059ffd15
commit
1db0f85898
74 files changed
+3392
-380
No files matched your search
@@ -27,6 +27,51 @@ public static class ComponentsExtensions
|
||||
_ => PreviewFeatures.NONE,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets the category a built-in assistant belongs to, the same categories assistant plugins name.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This is the single place that maps a built-in assistant to its category. The assistants page
|
||||
/// shows the assistant in the section of this category, and whatever offers assistants elsewhere
|
||||
/// asks it, too. Components which are no assistant of their own, such as the chat or the agents,
|
||||
/// return PluginCategory.NONE.
|
||||
/// </remarks>
|
||||
/// <value>The category of the assistant.</value>
|
||||
public PluginCategory Category => component switch
|
||||
{
|
||||
Components.TEXT_SUMMARIZER_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.TRANSLATION_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.GRAMMAR_SPELLING_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.REWRITE_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.PROMPT_OPTIMIZER_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.SYNONYMS_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.MODEL_COMPARISON_ASSISTANT => PluginCategory.COMMON,
|
||||
Components.META_ASSISTANT => PluginCategory.COMMON,
|
||||
|
||||
Components.EMAIL_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.SWOT_ANALYSIS_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.DOCUMENT_ANALYSIS_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.BATCH_PROCESSING_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.MY_TASKS_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.AGENDA_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.JOB_POSTING_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.LEGAL_CHECK_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.ICON_FINDER_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.SLIDE_BUILDER_ASSISTANT => PluginCategory.BUSINESS,
|
||||
Components.VISUAL_BRIEFING_ASSISTANT => PluginCategory.BUSINESS,
|
||||
|
||||
Components.BIAS_DAY_ASSISTANT => PluginCategory.EDUCATION,
|
||||
Components.BEYOND_FACTS_LAB_ASSISTANT => PluginCategory.EDUCATION,
|
||||
|
||||
Components.CODING_ASSISTANT => PluginCategory.SOFTWARE_DEVELOPMENT,
|
||||
Components.ERI_ASSISTANT => PluginCategory.SOFTWARE_DEVELOPMENT,
|
||||
|
||||
Components.I18N_ASSISTANT => PluginCategory.AI_STUDIO_DEVELOPMENT,
|
||||
Components.LOG_VIEWER_ASSISTANT => PluginCategory.AI_STUDIO_DEVELOPMENT,
|
||||
|
||||
_ => PluginCategory.NONE,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether a component owns exactly one assistant session slot, so that a running session
|
||||
/// blocks starting another one and inactive sessions can be cleared as a group.
|
||||
|
||||
Reference in new issue
Block a user