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, [])
{
}
[JsonExtensionData]
public Dictionary? AdditionalApiParameters { get; init; }
}