mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-22 22:11:36 +00:00
28 lines
1.4 KiB
C#
28 lines
1.4 KiB
C#
|
|
namespace AIStudio.Assistants.SlideBuilder;
|
||
|
|
|
||
|
|
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
|
||
|
|
{
|
||
|
|
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"),
|
||
|
|
};
|
||
|
|
|
||
|
|
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.",
|
||
|
|
|
||
|
|
_ => "Do not tailor the text to a specific expertise level.",
|
||
|
|
};
|
||
|
|
}
|