Add agenda assistant (#69)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-08-05 21:12:52 +02:00
1 parent 1ec86ec1a6
commit 6b7800b615
60 files changed
+1873 -582

No files matched your search

@@ -19,4 +19,27 @@ public static class CommonLanguageExtensions
_ => "Other",
};
public static string PromptSummarizing(this CommonLanguages language, string customLanguage) => language switch
{
CommonLanguages.AS_IS => "Do not change the language of the text.",
CommonLanguages.OTHER => $"Output your summary in {customLanguage}.",
_ => $"Output your summary in {language.Name()} ({language}).",
};
public static string PromptTranslation(this CommonLanguages language, string customLanguage) => language switch
{
CommonLanguages.OTHER => $"Translate the text in {customLanguage}.",
_ => $"Translate the given text in {language.Name()} ({language}).",
};
public static string NameSelecting(this CommonLanguages language)
{
if(language is CommonLanguages.AS_IS)
return "Please select the target language";
return language.Name();
}
}