mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:59:48 +00:00
Made description and title abstract
This commit is contained in:
parent
f5cb574be8
commit
8a65469096
@ -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; }
|
||||||
|
|
||||||
|
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user