namespace AIStudio.Assistants.VisualBriefing; /// /// Stores safe details about one failed visual briefing operation. /// public sealed class VisualBriefingFailure { /// /// Gets or sets the stable failure code. /// public VisualBriefingFailureCode Code { get; set; } /// /// Gets or sets the stage that failed. /// public VisualBriefingBuildStage Stage { get; set; } /// /// Gets or sets the user-safe issue text in stable English. /// /// /// This text is never localized: it is sent back to the model as a repair instruction and it is /// persisted with the build record, so both a translation and a later language switch would break /// it. Use to /// obtain the text shown to the user. /// public string UserMessage { get; set; } = string.Empty; /// /// Gets or sets technical details that contain no user content. /// public string TechnicalDetails { get; set; } = string.Empty; /// /// Gets or sets the stable validation rule without user data. /// public VisualBriefingValidationRule ValidationRule { get; set; } /// /// Gets or sets the safe structured-response diagnostic. /// public VisualBriefingStructuredResponseDiagnostic? StructuredResponse { get; set; } }