Made description and title abstract

This commit is contained in:
Thorsten Sommer 2024-07-14 18:49:57 +02:00
parent f5cb574be8
commit 8a65469096
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 13 additions and 15 deletions

View File

@ -17,9 +17,9 @@ public abstract partial class AssistantBase : ComponentBase
[Inject] [Inject]
protected Random RNG { get; set; } = null!; 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; } protected abstract string SystemPrompt { get; }

View File

@ -7,10 +7,9 @@ public partial class AssistantIconFinder : AssistantBaseCore
private string inputContext = string.Empty; private string inputContext = string.Empty;
private IconSources selectedIconSource; private IconSources selectedIconSource;
public AssistantIconFinder() protected override string Title => "Icon Finder";
{
this.Title = "Icon Finder"; protected override string Description =>
this.Description =
""" """
Finding the right icon for a context, such as for a piece of text, is not easy. The first challenge: 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 You need to extract a concept from your context, such as from a text. Let's take an example where
@ -19,7 +18,6 @@ public partial class AssistantIconFinder : AssistantBaseCore
"departments," there may be no relevant icons or only unsuitable ones. Depending on the icon source, "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. it might be more effective to search for "buildings," for instance. LLMs assist you with both steps.
"""; """;
}
private string? ValidatingContext(string context) private string? ValidatingContext(string context)
{ {