Class: Imagekitio::Models::ExtensionConfig::AITasks::Task::YesNo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/extension_config.rb

Defined Under Namespace

Classes: OnNo, OnUnknown, OnYes

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(field:) ⇒ Object

Parameters:

  • Name of the custom metadata field to remove.



# File 'lib/imagekitio/models/extension_config.rb', line 312


Instance Attribute Details

#instructionString

The yes/no question for the AI to answer about the image.

Returns:



286
# File 'lib/imagekitio/models/extension_config.rb', line 286

required :instruction, String

#on_noImagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnNo?

Actions to execute if the AI answers no.

Returns:



298
# File 'lib/imagekitio/models/extension_config.rb', line 298

optional :on_no, -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnNo }

#on_unknownImagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnUnknown?

Actions to execute if the AI cannot determine the answer.

Returns:



304
# File 'lib/imagekitio/models/extension_config.rb', line 304

optional :on_unknown, -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnUnknown }

#on_yesImagekitio::Models::ExtensionConfig::AITasks::Task::YesNo::OnYes?

Actions to execute if the AI answers yes.

Returns:



310
# File 'lib/imagekitio/models/extension_config.rb', line 310

optional :on_yes, -> { Imagekitio::ExtensionConfig::AITasks::Task::YesNo::OnYes }

#typeSymbol, :yes_no

Task type that asks a yes/no question and executes actions based on the answer.

Returns:



292
# File 'lib/imagekitio/models/extension_config.rb', line 292

required :type, const: :yes_no