Class: Revox::Models::AssistantCreateResponse::Assistant::FaqItem

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

Defined Under Namespace

Modules: Source

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(answer:, question:, id: nil, needs_human_answer: nil, source: nil) ⇒ Object

Parameters:



# File 'lib/revox/models/assistant_create_response.rb', line 1574

Instance Attribute Details

#answerString

Parameters:

  • value (String)

Returns:

  • (String)


1552
# File 'lib/revox/models/assistant_create_response.rb', line 1552

required :answer, String

#idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1562
# File 'lib/revox/models/assistant_create_response.rb', line 1562

optional :id, String

#needs_human_answerBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1567
# File 'lib/revox/models/assistant_create_response.rb', line 1567

optional :needs_human_answer, Revox::Internal::Type::Boolean

#questionString

Parameters:

  • value (String)

Returns:

  • (String)


1557
# File 'lib/revox/models/assistant_create_response.rb', line 1557

required :question, String

#sourceSymbol, ...



1572
# File 'lib/revox/models/assistant_create_response.rb', line 1572

optional :source, enum: -> { Revox::Models::AssistantCreateResponse::Assistant::FaqItem::Source }

Instance Method Details

#to_hash{

Returns:

  • ({)


1296
# File 'sig/revox/models/assistant_create_response.rbs', line 1296

def to_hash: -> {