Class: OpenAI::Models::Beta::BetaComputerAction::Move

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

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 ⇒ Move

Returns a new instance of Move.

Parameters:

  • x —

    The x-coordinate to move to.

  • y_ —

    The y-coordinate to move to.

  • keys —

    The keys being held while moving the mouse.

  • type —

    Specifies the event type. For a move action, this property is always set to move.

  • x: (Integer)
  • y_: (Integer)
  • keys: (::Array[String], nil)
  • type: (:move)


254
255
256
257
258
259
# File 'sig/openai/models/beta/beta_computer_action.rbs', line 254

def initialize: (
  x: Integer,
  y_: Integer,
  ?keys: ::Array[String]?,
  ?type: :move
) -> void

Instance Attribute Details

#keys ⇒ ::Array[String]?

The keys being held while moving the mouse.

Returns:

  • (::Array[String], nil)


274
# File 'lib/openai/models/beta/beta_computer_action.rb', line 274

optional :keys, OpenAI::Internal::Type::ArrayOf[String], nil?: true

#type ⇒ :move

Specifies the event type. For a move action, this property is always set to move.

Returns:

  • (:move)


256
# File 'lib/openai/models/beta/beta_computer_action.rb', line 256

required :type, const: :move

#x ⇒ Integer

The x-coordinate to move to.

Returns:

  • (Integer)


262
# File 'lib/openai/models/beta/beta_computer_action.rb', line 262

required :x, Integer

#y_ ⇒ Integer

The y-coordinate to move to.

Returns:

  • (Integer)


268
# File 'lib/openai/models/beta/beta_computer_action.rb', line 268

required :y_, Integer, api_name: :y

Instance Method Details

#to_hash ⇒ { ?type: :move, x: Integer, y_: Integer, ?keys: ::Array[String]? }

Returns:

  • ({ ?type: :move, x: Integer, y_: Integer, ?keys: ::Array[String]? })


261
262
263
264
265
266
# File 'sig/openai/models/beta/beta_computer_action.rbs', line 261

def to_hash: -> {
  ?type: :move,
  x: Integer,
  y_: Integer,
  ?keys: ::Array[String]?
}