ResponseResultItem

@Serializable
data class ResponseResultItem(val id: String? = null, val type: String? = null, val status: String? = null, val role: String? = null, val content: List<ResponseResultContent>? = null, val name: String? = null, val arguments: String? = null, val callId: String? = null, val summary: JsonElement? = null, val encryptedContent: String? = null, val result: String? = null, val serverLabel: String? = null, val output: JsonElement? = null, val approvalRequestId: String? = null, val action: JsonElement? = null, val error: JsonElement? = null, val tools: JsonElement? = null, val queries: List<String>? = null, val results: JsonElement? = null, val containerId: String? = null, val code: String? = null, val outputs: JsonElement? = null)

Output item from a response.

Constructors

Link copied to clipboard
constructor(id: String? = null, type: String? = null, status: String? = null, role: String? = null, content: List<ResponseResultContent>? = null, name: String? = null, arguments: String? = null, callId: String? = null, summary: JsonElement? = null, encryptedContent: String? = null, result: String? = null, serverLabel: String? = null, output: JsonElement? = null, approvalRequestId: String? = null, action: JsonElement? = null, error: JsonElement? = null, tools: JsonElement? = null, queries: List<String>? = null, results: JsonElement? = null, containerId: String? = null, code: String? = null, outputs: JsonElement? = null)

Properties

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

Hosted tool action details.

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

MCP approval request identifier.

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

Executed code.

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

Container used by the tool.

Link copied to clipboard
@SerialName(value = "content")
val content: List<ResponseResultContent>? = null
Link copied to clipboard
@SerialName(value = "encrypted_content")
val encryptedContent: String? = null

Encrypted reasoning or compaction 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
Link copied to clipboard
@SerialName(value = "name")
val name: String? = null
Link copied to clipboard
@SerialName(value = "output")
val output: JsonElement? = null

Tool output, including strings and structured content.

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

Code execution outputs.

Link copied to clipboard
@SerialName(value = "queries")
val queries: List<String>? = null

File search queries.

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

Generated image result.

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

Included file search results.

Link copied to clipboard
@SerialName(value = "role")
val role: String? = null
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
Link copied to clipboard
@SerialName(value = "summary")
val summary: JsonElement? = null
Link copied to clipboard
@SerialName(value = "tools")
val tools: JsonElement? = null

MCP server tool declarations.

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