namespace AIStudio.Assistants.SWOTAnalysis; internal static class SwotAnalysisPromptInput { public static string BuildSections( string analysisSubject, string analysisGoal, string analysisFocus, SwotContextualKnowledge contextualKnowledge, string sharedResearch = "") => $""" {analysisSubject} {analysisGoal} {FocusOrDefault(analysisFocus)} {contextualKnowledge.Describe()} {SharedResearchSection(sharedResearch)} """; /// /// The analysis focus, or what stands in for a focus nobody gave. /// public static string FocusOrDefault(string analysisFocus) => string.IsNullOrWhiteSpace(analysisFocus) ? "No additional analysis focus was provided." : analysisFocus; /// /// The shared-research section, which follows the other sections; empty without research. /// public static string SharedResearchSection(string sharedResearch) => string.IsNullOrWhiteSpace(sharedResearch) ? string.Empty : $""" {sharedResearch.Trim()} """; }