mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 19:11:38 +00:00
moved installed assistants into own section on assistant overview page
This commit is contained in:
parent
12881e33b0
commit
003c97f3ad
@ -4531,6 +4531,9 @@ UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2830810750"] = "AI Studio Develop
|
||||
-- Generate a job posting for a given job description.
|
||||
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T2831103254"] = "Generate a job posting for a given job description."
|
||||
|
||||
-- Installed Assistants
|
||||
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T295232966"] = "Installed Assistants"
|
||||
|
||||
-- My Tasks
|
||||
UI_TEXT_CONTENT["AISTUDIO::PAGES::ASSISTANTS::T3011450657"] = "My Tasks"
|
||||
|
||||
|
||||
@ -34,10 +34,15 @@
|
||||
<AssistantBlock TSettings="SettingsDialogJobPostings" Name="@T("Job Posting")" Description="@T("Generate a job posting for a given job description.")" Icon="@Icons.Material.Filled.Work" Link="@Routes.ASSISTANT_JOB_POSTING"/>
|
||||
<AssistantBlock TSettings="SettingsDialogLegalCheck" Name="@T("Legal Check")" Description="@T("Ask a question about a legal document.")" Icon="@Icons.Material.Filled.Gavel" Link="@Routes.ASSISTANT_LEGAL_CHECK"/>
|
||||
<AssistantBlock TSettings="SettingsDialogIconFinder" Name="@T("Icon Finder")" Description="@T("Use an LLM to find an icon for a given context.")" Icon="@Icons.Material.Filled.FindInPage" Link="@Routes.ASSISTANT_ICON_FINDER"/>
|
||||
</MudStack>
|
||||
|
||||
@foreach (var assistant in PluginFactory.RunningPlugins.Where(e => e.Type == PluginType.ASSISTANT))
|
||||
@if (this.AssistantPlugins.Count > 0)
|
||||
{
|
||||
if (assistant is PluginAssistants assistantPlugin)
|
||||
<MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
|
||||
@T("Installed Assistants")
|
||||
</MudText>
|
||||
<MudStack Row="@true" Wrap="@Wrap.Wrap" Class="mb-3">
|
||||
@foreach (var assistantPlugin in this.AssistantPlugins)
|
||||
{
|
||||
<AssistantBlock TSettings="SettingsDialogTranslation"
|
||||
Name="@T(assistantPlugin.AssistantTitle)"
|
||||
@ -45,8 +50,8 @@
|
||||
Icon="@Icons.Material.Filled.FindInPage"
|
||||
Link="@($"{Routes.ASSISTANT_DYNAMIC}?assistantId={assistantPlugin.Id}")"/>
|
||||
}
|
||||
}
|
||||
</MudStack>
|
||||
}
|
||||
|
||||
<MudText Typo="Typo.h4" Class="mb-2 mr-3 mt-6">
|
||||
@T("Learning")
|
||||
|
||||
@ -1,5 +1,12 @@
|
||||
using AIStudio.Components;
|
||||
using AIStudio.Tools.PluginSystem;
|
||||
using AIStudio.Tools.PluginSystem.Assistants;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace AIStudio.Pages;
|
||||
|
||||
public partial class Assistants : MSGComponentBase;
|
||||
public partial class Assistants : MSGComponentBase
|
||||
{
|
||||
private IReadOnlyCollection<PluginAssistants> AssistantPlugins => PluginFactory.RunningPlugins.OfType<PluginAssistants>().ToList();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user