class

OpenAI::MCPApprovalRequest

Inherits JSON::Serializable < Reference < Object

A request for human approval of a tool invocation.

Constructors

new(type_value : MCPApprovalRequestType = MCPApprovalRequestType::McpApprovalRequest, id : String = "", server_label : String = "", name : String = "", arguments : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments

A JSON string of arguments for the tool.

Source
arguments=(arguments : String)

A JSON string of arguments for the tool.

Source
id

The unique ID of the approval request.

Source
id=(id : String)

The unique ID of the approval request.

Source
name

The name of the tool to run.

Source
name=(name : String)

The name of the tool to run.

Source
server_label

The label of the MCP server making the request.

Source
server_label=(server_label : String)

The label of the MCP server making the request.

Source
type_value

The type of the item. Always mcp_approval_request.

Source
type_value=(type_value : MCPApprovalRequestType)

The type of the item. Always mcp_approval_request.

Source