Class: Imagekitio::Models::ExtensionItem::AITasks::Task::YesNo

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/imagekitio/models/extensions.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/extensions.rb', line 311


Instance Attribute Details

#instructionString

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

Returns:



285
# File 'lib/imagekitio/models/extensions.rb', line 285

required :instruction, String

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

Actions to execute if the AI answers no.

Returns:



297
# File 'lib/imagekitio/models/extensions.rb', line 297

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

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

Actions to execute if the AI cannot determine the answer.

Returns:



303
# File 'lib/imagekitio/models/extensions.rb', line 303

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

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

Actions to execute if the AI answers yes.

Returns:



309
# File 'lib/imagekitio/models/extensions.rb', line 309

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

#typeSymbol, :yes_no

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

Returns:



291
# File 'lib/imagekitio/models/extensions.rb', line 291

required :type, const: :yes_no