Class: Revox::Models::AssistantRetrieveResponse::StructuredOutputConfig

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/assistant_retrieve_response.rb,
sig/revox/models/assistant_retrieve_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/assistant_retrieve_response.rb', line 1207

Instance Attribute Details

#descriptionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1200
# File 'lib/revox/models/assistant_retrieve_response.rb', line 1200

optional :description, String

#enum_optionsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1205
# File 'lib/revox/models/assistant_retrieve_response.rb', line 1205

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

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


1185
# File 'lib/revox/models/assistant_retrieve_response.rb', line 1185

required :name, String

#requiredBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


1190
# File 'lib/revox/models/assistant_retrieve_response.rb', line 1190

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

#typeSymbol, Revox::Models::AssistantRetrieveResponse::StructuredOutputConfig::Type

Parameters:

  • value (Revox::Models::AssistantRetrieveResponse::StructuredOutputConfig::type_)

Returns:



1195
# File 'lib/revox/models/assistant_retrieve_response.rb', line 1195

required :type, enum: -> { Revox::Models::AssistantRetrieveResponse::StructuredOutputConfig::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


968
# File 'sig/revox/models/assistant_retrieve_response.rbs', line 968

def to_hash: -> {