ResponseInputEntry

@Serializable
data class ResponseInputEntry(val type: String, val id: String? = null, val role: String? = null, val content: JsonElement? = null, val callId: String? = null, val output: JsonElement? = null, val approvalRequestId: String? = null, val approve: Boolean? = null, val encryptedContent: String? = null, val name: String? = null, val arguments: String? = null, val status: String? = null, val serverLabel: String? = null, val error: JsonElement? = null, val action: JsonElement? = null, val result: String? = null, val summary: JsonElement? = null)

A structured message, tool result, approval or encrypted context item.

Constructors

Link copied to clipboard
constructor(type: String, id: String? = null, role: String? = null, content: JsonElement? = null, callId: String? = null, output: JsonElement? = null, approvalRequestId: String? = null, approve: Boolean? = null, encryptedContent: String? = null, name: String? = null, arguments: String? = null, status: String? = null, serverLabel: String? = null, error: JsonElement? = null, action: JsonElement? = null, result: String? = null, summary: JsonElement? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "action")
val action: JsonElement? = null

Hosted-tool action.

Link copied to clipboard
@SerialName(value = "approval_request_id")
val approvalRequestId: String? = null

MCP approval request identifier.

Link copied to clipboard
@SerialName(value = "approve")
val approve: Boolean? = null

Whether the MCP call is approved.

Link copied to clipboard
@SerialName(value = "arguments")
val arguments: String? = null

Tool arguments.

Link copied to clipboard
@SerialName(value = "call_id")
val callId: String? = null

Call whose result is supplied.

Link copied to clipboard
@SerialName(value = "content")
val content: JsonElement? = null

Text or structured content.

Link copied to clipboard
@SerialName(value = "encrypted_content")
val encryptedContent: String? = null

Encrypted compaction or reasoning context.

Link copied to clipboard
@SerialName(value = "error")
val error: JsonElement? = null

Tool error details.

Link copied to clipboard
@SerialName(value = "id")
val id: String? = null

Item identifier.

Link copied to clipboard
@SerialName(value = "name")
val name: String? = null

Tool name.

Link copied to clipboard
@SerialName(value = "output")
val output: JsonElement? = null

Tool result.

Link copied to clipboard
@SerialName(value = "result")
val result: String? = null

Hosted image result.

Link copied to clipboard
@SerialName(value = "role")
val role: String? = null

Message author.

Link copied to clipboard
@SerialName(value = "server_label")
val serverLabel: String? = null

MCP server label.

Link copied to clipboard
@SerialName(value = "status")
val status: String? = null

Item processing status.

Link copied to clipboard
@SerialName(value = "summary")
val summary: JsonElement? = null

Reasoning summary.

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

Item discriminator.