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]
 | 
					    [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; }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
				
			|||||||
@ -6,20 +6,18 @@ public partial class AssistantIconFinder : AssistantBaseCore
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
    private string inputContext = string.Empty;
 | 
					    private string inputContext = string.Empty;
 | 
				
			||||||
    private IconSources selectedIconSource;
 | 
					    private IconSources selectedIconSource;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    protected override string Title => "Icon Finder";
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    public AssistantIconFinder()
 | 
					    protected override string Description =>
 | 
				
			||||||
    {
 | 
					        """
 | 
				
			||||||
        this.Title = "Icon Finder";
 | 
					        Finding the right icon for a context, such as for a piece of text, is not easy. The first challenge:
 | 
				
			||||||
        this.Description =
 | 
					        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."
 | 
				
			||||||
            Finding the right icon for a context, such as for a piece of text, is not easy. The first challenge:
 | 
					        The next challenge is that we need to anticipate the bias of the icon designers: under the search term
 | 
				
			||||||
            You need to extract a concept from your context, such as from a text. Let's take an example where
 | 
					        "departments," there may be no relevant icons or only unsuitable ones. Depending on the icon source,
 | 
				
			||||||
            your text contains statements about multiple departments. The sought-after concept could be "departments."
 | 
					        it might be more effective to search for "buildings," for instance. LLMs assist you with both steps.
 | 
				
			||||||
            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)
 | 
					    private string? ValidatingContext(string context)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user