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