class

OpenAI::RealtimeMCPApprovalResponse

Inherits JSON::Serializable < Reference < Object

A Realtime item responding to an MCP approval request.

Constructors

new(type_value : RealtimeMCPApprovalResponseType = RealtimeMCPApprovalResponseType::McpApprovalResponse, id : String = "", approval_request_id : String = "", approve : Bool = false, reason : RealtimeMCPApprovalResponseReason | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

approval_request_id

The ID of the approval request being answered.

Source
approval_request_id=(approval_request_id : String)

The ID of the approval request being answered.

Source
approve

Whether the request was approved.

Source
approve=(approve : Bool)

Whether the request was approved.

Source
id

The unique ID of the approval response.

Source
id=(id : String)

The unique ID of the approval response.

Source
reason
Source
reason=(reason : RealtimeMCPApprovalResponseReason | Nil)
Source
type_value

The type of the item. Always mcp_approval_response.

Source
type_value=(type_value : RealtimeMCPApprovalResponseType)

The type of the item. Always mcp_approval_response.

Source