ResponseResult
data class ResponseResult(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<ResponseResultItem> = emptyList(), val parallelToolCalls: Boolean? = null, val previousResponseId: ResponseId? = null, val reasoning: ResponseReasoningOptions? = 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, val background: Boolean? = null, val conversation: JsonObject? = null, val serviceTier: String? = null, val completedAt: Long? = null, val maxToolCalls: Int? = null, val promptCacheKey: String? = null, val promptCacheOptions: ResponsePromptCacheOptions? = null, val contextManagement: List<ResponseContextManagement>? = null, val accessPrograms: ResponseAccessPrograms? = null, val safetyIdentifier: String? = null, val topLogprobs: Int? = null, val moderation: JsonElement? = null, val rawData: JsonObject? = 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<ResponseResultItem> = emptyList(), parallelToolCalls: Boolean? = null, previousResponseId: ResponseId? = null, reasoning: ResponseReasoningOptions? = 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, background: Boolean? = null, conversation: JsonObject? = null, serviceTier: String? = null, completedAt: Long? = null, maxToolCalls: Int? = null, promptCacheKey: String? = null, promptCacheOptions: ResponsePromptCacheOptions? = null, contextManagement: List<ResponseContextManagement>? = null, accessPrograms: ResponseAccessPrograms? = null, safetyIdentifier: String? = null, topLogprobs: Int? = null, moderation: JsonElement? = null, rawData: JsonObject? = null)
Properties
Link copied to clipboard
Effective restricted access program configuration.
Link copied to clipboard
Whether processing runs in the background.
Link copied to clipboard
Completion timestamp.
Link copied to clipboard
@SerialName(value = "context_management")
Context management settings.
Link copied to clipboard
Conversation associated with this response.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Hosted tool call limit.
Link copied to clipboard
Input/output moderation results.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Cache routing key.
Link copied to clipboard
@SerialName(value = "prompt_cache_options")
Effective cache options.
Link copied to clipboard
Original decoded payload, including unknown fields. This snapshot is unchanged by copy. Encoding a ResponseResult writes its typed properties only; encode this snapshot directly to export every original field or reuse the original output as continuation input.
Link copied to clipboard
Link copied to clipboard
End-user safety identifier.
Link copied to clipboard
Actual processing tier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Requested token log probability count.
Link copied to clipboard
Link copied to clipboard