OpenAIResponsesCodeInterpreterCall

@Serializable
@SerialName(value = "code_interpreter_call")
data class OpenAIResponsesCodeInterpreterCall(val id: String, val status: OpenAICodeInterpreterStatus, val containerId: String, val code: String? = null, val outputs: List<OpenAIResponsesCodeInterpreterOutput>? = null) : OpenAIResponseInputItem, OpenAIResponseOutputItem

A code interpreter tool call: the model writes and runs code in a container.

Constructors

Link copied to clipboard
constructor(id: String, status: OpenAICodeInterpreterStatus, containerId: String, code: String? = null, outputs: List<OpenAIResponsesCodeInterpreterOutput>? = null)

Properties

Link copied to clipboard
val code: String?

The code that the model executed.

Link copied to clipboard
@SerialName(value = "container_id")
val containerId: String

The container the code was executed in.

Link copied to clipboard
val id: String

The unique ID of the code interpreter call.

Link copied to clipboard

The outputs produced by the interpreter (logs and/or images).

Link copied to clipboard
open override val printableContent: String
Link copied to clipboard

The status of the code interpreter call.