mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 05:27:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -4,25 +4,28 @@ public static class AudienceExpertiseExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(AudienceExpertiseExtensions).Namespace, nameof(AudienceExpertiseExtensions));
|
||||
|
||||
public static string Name(this AudienceExpertise expertise) => expertise switch
|
||||
extension(AudienceExpertise expertise)
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => TB("Unspecified expertise"),
|
||||
AudienceExpertise.NON_EXPERTS => TB("No expertise"),
|
||||
AudienceExpertise.BASIC => TB("Basic expertise"),
|
||||
AudienceExpertise.INTERMEDIATE => TB("Intermediate expertise"),
|
||||
AudienceExpertise.EXPERTS => TB("Experts"),
|
||||
public string Name() => expertise switch
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => TB("Unspecified expertise"),
|
||||
AudienceExpertise.NON_EXPERTS => TB("No expertise"),
|
||||
AudienceExpertise.BASIC => TB("Basic expertise"),
|
||||
AudienceExpertise.INTERMEDIATE => TB("Intermediate expertise"),
|
||||
AudienceExpertise.EXPERTS => TB("Experts"),
|
||||
|
||||
_ => TB("Unspecified expertise"),
|
||||
};
|
||||
_ => TB("Unspecified expertise"),
|
||||
};
|
||||
|
||||
public static string Prompt(this AudienceExpertise expertise) => expertise switch
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => "Do not tailor the text to a specific expertise level.",
|
||||
AudienceExpertise.NON_EXPERTS => "Avoid jargon and explain specialized concepts plainly.",
|
||||
AudienceExpertise.BASIC => "Use simple terminology and briefly explain important technical terms.",
|
||||
AudienceExpertise.INTERMEDIATE => "Assume some familiarity with the topic, but still explain important details clearly.",
|
||||
AudienceExpertise.EXPERTS => "Assume deep familiarity with the topic and use precise domain-specific terminology.",
|
||||
public string Prompt() => expertise switch
|
||||
{
|
||||
AudienceExpertise.UNSPECIFIED => "Do not tailor the text to a specific expertise level.",
|
||||
AudienceExpertise.NON_EXPERTS => "Avoid jargon and explain specialized concepts plainly.",
|
||||
AudienceExpertise.BASIC => "Use simple terminology and briefly explain important technical terms.",
|
||||
AudienceExpertise.INTERMEDIATE => "Assume some familiarity with the topic, but still explain important details clearly.",
|
||||
AudienceExpertise.EXPERTS => "Assume deep familiarity with the topic and use precise domain-specific terminology.",
|
||||
|
||||
_ => "Do not tailor the text to a specific expertise level.",
|
||||
};
|
||||
_ => "Do not tailor the text to a specific expertise level.",
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user