Class: OpenAI::Models::Responses::ComputerAction::Type

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

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

#initializeType

Returns a new instance of Type.

Parameters:

  • text: (String)
  • type: (:type)


238
# File 'sig/openai/models/responses/computer_action.rbs', line 238

def initialize: (text: String, ?type: :type) -> void

Instance Attribute Details

#textString

The text to type.

Parameters:

  • value (String)

Returns:

  • (String)


354
# File 'lib/openai/models/responses/computer_action.rb', line 354

required :text, String

#typeSymbol, :type

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

Parameters:

  • value (:type)

Returns:

  • (Symbol, :type)


361
# File 'lib/openai/models/responses/computer_action.rb', line 361

required :type, const: :type

Instance Method Details

#to_hash{ text: String, type: :type }

Returns:

  • ({ text: String, type: :type })


240
# File 'sig/openai/models/responses/computer_action.rbs', line 240

def to_hash: -> { text: String, type: :type }