namespace AIStudio.Provider.OpenAI; /// /// Text sub-content for multimodal messages. /// public record SubContentText(SubContentType Type, string Text) : ISubContent { // // The properties of the parameters, declared again to be settable. The source generation of System.Text.Json // sets every init-only property while it creates the object, also one missing in the JSON, so its value from // the parameterless constructor would get lost. Keep them first and in the order of the parameters, which is // the order they get written in: // public SubContentType Type { get; set; } = Type; public string Text { get; set; } = Text; public SubContentText() : this(SubContentType.TEXT, string.Empty) { } }