diff --git a/app/MindWork AI Studio/Components/AssistantBase.razor.cs b/app/MindWork AI Studio/Components/AssistantBase.razor.cs index a15afe4a..dd99e08a 100644 --- a/app/MindWork AI Studio/Components/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Components/AssistantBase.razor.cs @@ -17,9 +17,9 @@ public abstract partial class AssistantBase : ComponentBase [Inject] protected Random RNG { get; set; } = null!; - protected string Title { get; init; } = string.Empty; + protected abstract string Title { get; } - protected string Description { get; init; } = string.Empty; + protected abstract string Description { get; } protected abstract string SystemPrompt { get; } diff --git a/app/MindWork AI Studio/Components/Pages/IconFinder/AssistantIconFinder.razor.cs b/app/MindWork AI Studio/Components/Pages/IconFinder/AssistantIconFinder.razor.cs index 5443cf80..2bfa826b 100644 --- a/app/MindWork AI Studio/Components/Pages/IconFinder/AssistantIconFinder.razor.cs +++ b/app/MindWork AI Studio/Components/Pages/IconFinder/AssistantIconFinder.razor.cs @@ -6,20 +6,18 @@ public partial class AssistantIconFinder : AssistantBaseCore { private string inputContext = string.Empty; private IconSources selectedIconSource; + + protected override string Title => "Icon Finder"; - public AssistantIconFinder() - { - this.Title = "Icon Finder"; - this.Description = - """ - Finding the right icon for a context, such as for a piece of text, is not easy. The first challenge: - You need to extract a concept from your context, such as from a text. Let's take an example where - your text contains statements about multiple departments. The sought-after concept could be "departments." - The next challenge is that we need to anticipate the bias of the icon designers: under the search term - "departments," there may be no relevant icons or only unsuitable ones. Depending on the icon source, - it might be more effective to search for "buildings," for instance. LLMs assist you with both steps. - """; - } + protected override string Description => + """ + Finding the right icon for a context, such as for a piece of text, is not easy. The first challenge: + You need to extract a concept from your context, such as from a text. Let's take an example where + your text contains statements about multiple departments. The sought-after concept could be "departments." + The next challenge is that we need to anticipate the bias of the icon designers: under the search term + "departments," there may be no relevant icons or only unsuitable ones. Depending on the icon source, + it might be more effective to search for "buildings," for instance. LLMs assist you with both steps. + """; private string? ValidatingContext(string context) {