mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-15 22:13:48 +00:00
Add agenda assistant (#69)
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user