using System.Text.Json.Serialization; namespace AIStudio.Assistants.SWOTAnalysis; /// /// The overall assessment of a SWOT analysis, which weighs the four categories against each other. /// public sealed class SwotOverallAssessment { [JsonPropertyName("label")] public string Label { get; set; } = string.Empty; [JsonPropertyName("text")] public string Text { get; set; } = string.Empty; /// /// The paragraphs of the text, one per line the model wrote. /// [JsonIgnore] public IReadOnlyList Paragraphs => this.Text.ReplaceLineEndings("\n").Split('\n', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries); }