OpenAIResponsesMcpApprovalResponse

@Serializable
@SerialName(value = "mcp_approval_response")
data class OpenAIResponsesMcpApprovalResponse(val id: String? = null, val approvalRequestId: String, val approve: Boolean, val reason: String? = null) : OpenAIResponseInputItem

The user's response to an OpenAIResponsesMcpApprovalRequest: whether the tool invocation was approved, with an optional explanation.

Constructors

Link copied to clipboard
constructor(id: String? = null, approvalRequestId: String, approve: Boolean, reason: String? = null)

Properties

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

The ID of the approval request being answered.

Link copied to clipboard

Whether the model was approved to invoke the tool.

Link copied to clipboard
val id: String?

The unique ID of the approval response.

Link copied to clipboard

Optional explanation for the decision.