Add mail assistant (#84)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-22 15:41:35 +02:00
1 parent 50bf0baff7
commit 34884859d7
17 files changed
+428 -37

No files matched your search

@@ -303,7 +303,7 @@ public partial class AssistantAgenda : AssistantBaseCore
if(string.IsNullOrWhiteSpace(content))
return "Please provide some content for the agenda. What are the main points of the meeting or the seminar?";
var lines = content.Split('\n');
var lines = content.Split('\n', StringSplitOptions.RemoveEmptyEntries);
foreach (var line in lines)
if(!line.TrimStart().StartsWith('-'))
return "Please start each line of your content list with a dash (-) to create a bullet point list.";
@@ -363,6 +363,9 @@ public partial class AssistantAgenda : AssistantBaseCore
private string PromptLanguage()
{
if(this.selectedTargetLanguage is CommonLanguages.AS_IS)
return "Use the same language as the input.";
if(this.selectedTargetLanguage is CommonLanguages.OTHER)
return this.customTargetLanguage;