OpenAIResponsesMcpApprovalRequest

@Serializable
@SerialName(value = "mcp_approval_request")
data class OpenAIResponsesMcpApprovalRequest(val id: String, val serverLabel: String, val name: String, val arguments: String) : OpenAIResponseInputItem, OpenAIResponseOutputItem

A request from the model to the user for approval to invoke an MCP tool.

Constructors

Link copied to clipboard
constructor(id: String, serverLabel: String, name: String, arguments: String)

Properties

Link copied to clipboard

The JSON-encoded arguments the model would pass to the tool.

Link copied to clipboard
val id: String

The unique ID of the MCP approval request.

Link copied to clipboard

The name of the tool that the model wants to invoke.

Link copied to clipboard
open override val printableContent: String
Link copied to clipboard
@SerialName(value = "server_label")
val serverLabel: String

The label of the MCP server the tool would be invoked on.