Class: OpenAI::Models::Responses::ResponseComputerToolCall::Action::Click

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

Defined Under Namespace

Modules: Button

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

#initialize(button:, x:, y_:, type: :click) ⇒ Object

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

A click action.

Parameters:

  • button (Symbol, OpenAI::Models::Responses::ResponseComputerToolCall::Action::Click::Button)

    Indicates which mouse button was pressed during the click. One of ‘left`, `right

  • x (Integer)

    The x-coordinate where the click occurred.

  • y_ (Integer)

    The y-coordinate where the click occurred.

  • type (Symbol, :click) (defaults to: :click)

    Specifies the event type. For a click action, this property is always ‘click`.



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

Instance Attribute Details

#buttonSymbol, OpenAI::Models::Responses::ResponseComputerToolCall::Action::Click::Button

Indicates which mouse button was pressed during the click. One of ‘left`, `right`, `wheel`, `back`, or `forward`.



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

required :button, enum: -> { OpenAI::Responses::ResponseComputerToolCall::Action::Click::Button }

#typeSymbol, :click

Specifies the event type. For a click action, this property is always ‘click`.

Returns:

  • (Symbol, :click)


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

required :type, const: :click

#xInteger

The x-coordinate where the click occurred.

Returns:

  • (Integer)


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

required :x, Integer

#y_Integer

The y-coordinate where the click occurred.

Returns:

  • (Integer)


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

required :y_, Integer, api_name: :y