namespace AIStudio.Assistants.ModelComparison; public static class ModelComparisonModeExtensions { private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(ModelComparisonModeExtensions).Namespace, nameof(ModelComparisonModeExtensions)); /// The mode of the Model Comparison assistant. extension(ModelComparisonMode mode) { /// /// The short name of the mode, which tells the user in which of the two modes they are. /// public string Name => mode switch { ModelComparisonMode.TASKS => TB("Everyday Tasks"), _ => TB("Answer Variance"), }; /// /// The title of the page of the mode, which names the assistant together with the mode. /// public string PageTitle => string.Format(TB("Model Comparison: {0}"), mode.Name); /// /// The page of the mode. /// public string Route => mode switch { ModelComparisonMode.TASKS => Routes.ASSISTANT_MODEL_COMPARISON_TASKS, _ => Routes.ASSISTANT_MODEL_COMPARISON_STABILITY, }; /// /// The icon of the mode. /// public string Icon => mode switch { ModelComparisonMode.TASKS => AppIcons.COMPARISON_TASKS, _ => AppIcons.COMPARISON_STABILITY, }; } }