Response Request
constructor(model: ChatModel, input: ResponseInput? = null, instructions: String? = null, reasoning: ReasoningConfig? = null, maxOutputTokens: Int? = null, stream: Boolean? = null, temperature: Double? = null, topP: Double? = null, text: TextConfig? = null, tools: List<ResponseTool>? = null, toolChoice: ResponseToolChoice? = null, topLogprobs: Int? = null, user: String? = null)
constructor(model: ChatModel, input: String, instructions: String? = null, reasoning: ReasoningConfig? = null, maxOutputTokens: Int? = null, stream: Boolean? = null, temperature: Double? = null, topP: Double? = null, text: TextConfig? = null, tools: List<ResponseTool>? = null, toolChoice: ResponseToolChoice? = null, topLogprobs: Int? = null, user: String? = null)
Creates a request whose input is a single user message.
Parameters
model
ID of the model to use
input
Text of the user's message
constructor(model: ChatModel, input: List<ResponseItem>, instructions: String? = null, reasoning: ReasoningConfig? = null, maxOutputTokens: Int? = null, stream: Boolean? = null, temperature: Double? = null, topP: Double? = null, text: TextConfig? = null, tools: List<ResponseTool>? = null, toolChoice: ResponseToolChoice? = null, topLogprobs: Int? = null, user: String? = null)
Creates a request whose input is a list of conversation items.
Parameters
model
ID of the model to use
input
Conversation so far, in the order the model should see it