Class: Revox::Models::CampaignLaunchResponse::Campaign::Assistant::StructuredOutputConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/campaign_launch_response.rb,
sig/revox/models/campaign_launch_response.rbs

Defined Under Namespace

Modules: Type

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(name:, required:, type:, description: nil, enum_options: nil) ⇒ Object

Parameters:



# File 'lib/revox/models/campaign_launch_response.rb', line 1426

Instance Attribute Details

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1419
# File 'lib/revox/models/campaign_launch_response.rb', line 1419

optional :description, String

#enum_optionsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1424
# File 'lib/revox/models/campaign_launch_response.rb', line 1424

optional :enum_options, Revox::Internal::Type::ArrayOf[String]

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


1403
# File 'lib/revox/models/campaign_launch_response.rb', line 1403

required :name, String

#requiredBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


1408
# File 'lib/revox/models/campaign_launch_response.rb', line 1408

required :required, Revox::Internal::Type::Boolean

#typeSymbol, Revox::Models::CampaignLaunchResponse::Campaign::Assistant::StructuredOutputConfig::Type

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Campaign::Assistant::StructuredOutputConfig::type_)

Returns:



1413
1414
# File 'lib/revox/models/campaign_launch_response.rb', line 1413

required :type,
enum: -> { Revox::Models::CampaignLaunchResponse::Campaign::Assistant::StructuredOutputConfig::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


1150
# File 'sig/revox/models/campaign_launch_response.rbs', line 1150

def to_hash: -> {