Class: OpenAI::Models::Responses::ResponseInputItem::McpApprovalResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_input_item.rb,
sig/openai/models/responses/response_input_item.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



1141
# File 'sig/openai/models/responses/response_input_item.rbs', line 1141

def initialize: (

Instance Attribute Details

#approval_request_idString

The ID of the approval request being answered.

Parameters:

  • value (String)

Returns:

  • (String)


1607
# File 'lib/openai/models/responses/response_input_item.rb', line 1607

required :approval_request_id, String

#approveBoolean

Whether the request was approved.

Parameters:

Returns:



1613
# File 'lib/openai/models/responses/response_input_item.rb', line 1613

required :approve, OpenAI::Internal::Type::Boolean

#idString?

The unique ID of the approval response

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1625
# File 'lib/openai/models/responses/response_input_item.rb', line 1625

optional :id, String, nil?: true

#reasonString?

Optional reason for the decision.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1631
# File 'lib/openai/models/responses/response_input_item.rb', line 1631

optional :reason, String, nil?: true

#typeSymbol, :mcp_approval_response

The type of the item. Always mcp_approval_response.

Parameters:

  • value (:mcp_approval_response)

Returns:

  • (Symbol, :mcp_approval_response)


1619
# File 'lib/openai/models/responses/response_input_item.rb', line 1619

required :type, const: :mcp_approval_response

Instance Method Details

#to_hash{

Returns:

  • ({)


1149
# File 'sig/openai/models/responses/response_input_item.rbs', line 1149

def to_hash: -> {