Class: OpenAI::Models::Responses::ResponseComputerToolCall::Action::Drag::Path

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_computer_tool_call.rb

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, 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(path: , type: :drag) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Responses::ResponseComputerToolCall::Action::Drag for more details.

A drag action.

Parameters:



232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
# File 'lib/openai/models/responses/response_computer_tool_call.rb', line 232

class Path < OpenAI::Internal::Type::BaseModel
  # @!attribute x
  #   The x-coordinate.
  #
  #   @return [Integer]
  required :x, Integer

  # @!attribute y_
  #   The y-coordinate.
  #
  #   @return [Integer]
  required :y_, Integer, api_name: :y

  # @!method initialize(x:, y_:)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::Responses::ResponseComputerToolCall::Action::Drag::Path} for
  #   more details.
  #
  #   A series of x/y coordinate pairs in the drag path.
  #
  #   @param x [Integer] The x-coordinate.
  #
  #   @param y_ [Integer] The y-coordinate.
end

Instance Attribute Details

#xInteger

The x-coordinate.

Returns:

  • (Integer)


237
# File 'lib/openai/models/responses/response_computer_tool_call.rb', line 237

required :x, Integer

#y_Integer

The y-coordinate.

Returns:

  • (Integer)


243
# File 'lib/openai/models/responses/response_computer_tool_call.rb', line 243

required :y_, Integer, api_name: :y