using System.Text.Json.Serialization; namespace AIStudio.Provider.OpenAI; /// /// The request body for the Responses API. /// /// Which model to use. /// The chat messages. /// Whether to stream the response. /// Whether to store the response on the server (usually OpenAI's infrastructure). /// The tools to use for the request. public record ResponsesAPIRequest( string Model, IList Input, bool Stream, bool Store, IList Tools) { public ResponsesAPIRequest() : this(string.Empty, [], true, false, []) { } // Attention: The "required" modifier is not supported for [JsonExtensionData]. [JsonExtensionData] public IDictionary AdditionalApiParameters { get; init; } = new Dictionary(); }