mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 11:40:21 +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]
 | 
			
		||||
    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; }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -7,10 +7,9 @@ public partial class AssistantIconFinder : AssistantBaseCore
 | 
			
		||||
    private string inputContext = string.Empty;
 | 
			
		||||
    private IconSources selectedIconSource;
 | 
			
		||||
 | 
			
		||||
    public AssistantIconFinder()
 | 
			
		||||
    {
 | 
			
		||||
        this.Title = "Icon Finder";
 | 
			
		||||
        this.Description =
 | 
			
		||||
    protected override string Title => "Icon Finder";
 | 
			
		||||
    
 | 
			
		||||
    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
 | 
			
		||||
@ -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,
 | 
			
		||||
        it might be more effective to search for "buildings," for instance. LLMs assist you with both steps.
 | 
			
		||||
        """;
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    private string? ValidatingContext(string context)
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user