Class: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/beta/agent_session_input_param.rb,
sig/openai/models/beta/agent_session_input_param.rbs

Defined Under Namespace

Modules: Response

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(request_id:, response:, type: :"agent.session.input.computer_use_approval_request_result") ⇒ AgentSessionInputComputerUseApprovalRequestResult

Returns a new instance of AgentSessionInputComputerUseApprovalRequestResult.

Parameters:

  • request_id —

    The registered request ID from the required action.

  • response —

    The response for this request type.

  • type (defaults to: :"agent.session.input.computer_use_approval_request_result") —

    The type of the object. Always agent.session.input.computer_use_approval_request_result.

  • request_id: (String)
  • response: (OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response)
  • type: (:"agent.session.input.computer_use_approval_request_result") (defaults to: :"agent.session.input.computer_use_approval_request_result")


# File 'lib/openai/models/beta/agent_session_input_param.rb', line 147

Instance Attribute Details

#request_id ⇒ String

The registered request ID from the required action.

Returns:

  • (String)


127
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 127

required :request_id, String

#response ⇒ OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response

The response for this request type.

Returns:

  • (OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response)


133
134
135
136
137
138
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 133

required(
  :response,
  union: -> {
    OpenAI::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::Response
  }
)

#type ⇒ :"agent.session.input.computer_use_approval_request_result"

The type of the object. Always agent.session.input.computer_use_approval_request_result.

Returns:

  • (:"agent.session.input.computer_use_approval_request_result")


145
# File 'lib/openai/models/beta/agent_session_input_param.rb', line 145

required :type, const: :"agent.session.input.computer_use_approval_request_result"

Instance Method Details

#to_hash ⇒ { request_id: String, response: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response, ?type: :"agent.session.input.computer_use_approval_request_result" }

Returns:

  • ({ request_id: String, response: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response, ?type: :"agent.session.input.computer_use_approval_request_result" })


123
124
125
126
127
# File 'sig/openai/models/beta/agent_session_input_param.rbs', line 123

def to_hash: -> {
  request_id: String,
  response: OpenAI::Models::Beta::AgentSessionInputParam::AgentSessionInputComputerUseApprovalRequestResult::response,
  ?type: :"agent.session.input.computer_use_approval_request_result"
}