Class: OpenAI::Models::BetaResponseOutputItem::Beta::BetaResponseOutputItem::McpApprovalResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
sig/openai/models/beta/beta_response_output_item.rbs

Defined Under Namespace

Classes: Agent

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



1063
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1063

def initialize: (

Instance Attribute Details

#agentOpenAI::Beta::BetaResponseOutputItem::McpApprovalResponse::Agent?

Returns the value of attribute agent.

Returns:

  • (OpenAI::Beta::BetaResponseOutputItem::McpApprovalResponse::Agent, nil)


1059
1060
1061
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1059

def agent
  @agent
end

#approval_request_idString

Returns the value of attribute approval_request_id.

Returns:

  • (String)


1053
1054
1055
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1053

def approval_request_id
  @approval_request_id
end

#approveBoolean

Returns the value of attribute approve.

Returns:



1055
1056
1057
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1055

def approve
  @approve
end

#idString

Returns the value of attribute id.

Returns:

  • (String)


1051
1052
1053
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1051

def id
  @id
end

#reasonString?

Returns the value of attribute reason.

Returns:

  • (String, nil)


1061
1062
1063
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1061

def reason
  @reason
end

#type:mcp_approval_response

Returns the value of attribute type.

Returns:

  • (:mcp_approval_response)


1057
1058
1059
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1057

def type
  @type
end

Instance Method Details

#to_hash{

Returns:

  • ({)


1072
# File 'sig/openai/models/beta/beta_response_output_item.rbs', line 1072

def to_hash: -> {