using System.Text.Json.Serialization; namespace AIStudio.Assistants.VisualBriefing; /// /// Identifies a content-free reason why a structured model response could not be accepted. /// [JsonConverter(typeof(JsonStringEnumConverter))] public enum VisualBriefingStructuredResponseIssueKind { /// No structured-response issue occurred. NONE, /// The provider response was empty. EMPTY_RESPONSE, /// The JSON root was not an object. ROOT_NOT_OBJECT, /// The JSON response ended before the document was complete. UNEXPECTED_END, /// Non-whitespace content followed the JSON object. TRAILING_CONTENT, /// The candidate contained invalid JSON syntax. INVALID_SYNTAX, /// The response contained a field outside the strict contract. UNKNOWN_FIELD, /// The response omitted a required field. REQUIRED_FIELD_MISSING, /// A field value had the wrong JSON type. TYPE_MISMATCH, /// A string did not identify a supported enum value. ENUM_VALUE_INVALID, /// The parsed response violated a semantic stage contract. SEMANTIC_CONTRACT_INVALID, }