Class: OpenAI::Models::ConversationItem::Conversations::ConversationItem::McpApprovalResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/conversations/conversation_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



487
# File 'sig/openai/models/conversations/conversation_item.rbs', line 487

def initialize: (

Instance Attribute Details

#approval_request_idString

Returns the value of attribute approval_request_id.

Returns:

  • (String)


479
480
481
# File 'sig/openai/models/conversations/conversation_item.rbs', line 479

def approval_request_id
  @approval_request_id
end

#approveBoolean

Returns the value of attribute approve.

Returns:



481
482
483
# File 'sig/openai/models/conversations/conversation_item.rbs', line 481

def approve
  @approve
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


477
478
479
# File 'sig/openai/models/conversations/conversation_item.rbs', line 477

def id
  @id
end

#reasonString?

Returns the value of attribute reason.

Returns:

  • (String, nil)


485
486
487
# File 'sig/openai/models/conversations/conversation_item.rbs', line 485

def reason
  @reason
end

#type:mcp_approval_response

Returns the value of attribute type.

Returns:

  • (:mcp_approval_response)


483
484
485
# File 'sig/openai/models/conversations/conversation_item.rbs', line 483

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


495
# File 'sig/openai/models/conversations/conversation_item.rbs', line 495

def to_hash: -> {