Response

@Serializable
data class Response(val id: ResponseId, val objectType: String? = null, val createdAt: Long? = null, val status: String? = null, val error: OpenAIErrorDetails? = null, val incompleteDetails: JsonObject? = null, val instructions: String? = null, val maxOutputTokens: Int? = null, val model: ModelId? = null, val output: List<ResponseOutputItem> = emptyList(), val parallelToolCalls: Boolean? = null, val previousResponseId: ResponseId? = null, val reasoning: ResponseReasoning? = null, val store: Boolean? = null, val temperature: Double? = null, val text: JsonObject? = null, val toolChoice: JsonElement? = null, val tools: JsonElement? = null, val topP: Double? = null, val truncation: String? = null, val usage: ResponseUsage? = null, val user: String? = null, val metadata: Map<String, String>? = null, val outputText: String? = null)

A model response object.

Constructors

Link copied to clipboard
constructor(id: ResponseId, objectType: String? = null, createdAt: Long? = null, status: String? = null, error: OpenAIErrorDetails? = null, incompleteDetails: JsonObject? = null, instructions: String? = null, maxOutputTokens: Int? = null, model: ModelId? = null, output: List<ResponseOutputItem> = emptyList(), parallelToolCalls: Boolean? = null, previousResponseId: ResponseId? = null, reasoning: ResponseReasoning? = null, store: Boolean? = null, temperature: Double? = null, text: JsonObject? = null, toolChoice: JsonElement? = null, tools: JsonElement? = null, topP: Double? = null, truncation: String? = null, usage: ResponseUsage? = null, user: String? = null, metadata: Map<String, String>? = null, outputText: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: Long? = null
Link copied to clipboard
@SerialName(value = "error")
val error: OpenAIErrorDetails? = null
Link copied to clipboard
@SerialName(value = "id")
val id: ResponseId
Link copied to clipboard
@SerialName(value = "incomplete_details")
val incompleteDetails: JsonObject? = null
Link copied to clipboard
@SerialName(value = "instructions")
val instructions: String? = null
Link copied to clipboard
@SerialName(value = "max_output_tokens")
val maxOutputTokens: Int? = null
Link copied to clipboard
@SerialName(value = "metadata")
val metadata: Map<String, String>? = null
Link copied to clipboard
@SerialName(value = "model")
val model: ModelId? = null
Link copied to clipboard
@SerialName(value = "object")
val objectType: String? = null
Link copied to clipboard
@SerialName(value = "output")
val output: List<ResponseOutputItem>
Link copied to clipboard
@SerialName(value = "output_text")
val outputText: String? = null
Link copied to clipboard
@SerialName(value = "parallel_tool_calls")
val parallelToolCalls: Boolean? = null
Link copied to clipboard
@SerialName(value = "previous_response_id")
val previousResponseId: ResponseId? = null
Link copied to clipboard
@SerialName(value = "reasoning")
val reasoning: ResponseReasoning? = null
Link copied to clipboard
@SerialName(value = "status")
val status: String? = null
Link copied to clipboard
@SerialName(value = "store")
val store: Boolean? = null
Link copied to clipboard
@SerialName(value = "temperature")
val temperature: Double? = null
Link copied to clipboard
@SerialName(value = "text")
val text: JsonObject? = null
Link copied to clipboard
@SerialName(value = "tool_choice")
val toolChoice: JsonElement? = null
Link copied to clipboard
@SerialName(value = "tools")
val tools: JsonElement? = null
Link copied to clipboard
@SerialName(value = "top_p")
val topP: Double? = null
Link copied to clipboard
@SerialName(value = "truncation")
val truncation: String? = null
Link copied to clipboard
@SerialName(value = "usage")
val usage: ResponseUsage? = null
Link copied to clipboard
@SerialName(value = "user")
val user: String? = null