Class: Intelligence::ChatResultChoice

Inherits:
Object
  • Object
show all
Defined in:
lib/intelligence/chat_result_choice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chat_choice_attributes) ⇒ ChatResultChoice

Returns a new instance of ChatResultChoice.



9
10
11
12
13
14
# File 'lib/intelligence/chat_result_choice.rb', line 9

def initialize( chat_choice_attributes )
  @end_reason = chat_choice_attributes[ :end_reason ]
  @end_sequence = chat_choice_attributes[ :end_sequence ]
  @message = build_message( chat_choice_attributes[ :message ] ) \
    if chat_choice_attributes[ :message ]
end

Instance Attribute Details

#end_reasonObject (readonly)

Returns the value of attribute end_reason.



6
7
8
# File 'lib/intelligence/chat_result_choice.rb', line 6

def end_reason
  @end_reason
end

#end_sequenceObject (readonly)

Returns the value of attribute end_sequence.



7
8
9
# File 'lib/intelligence/chat_result_choice.rb', line 7

def end_sequence
  @end_sequence
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/intelligence/chat_result_choice.rb', line 5

def message
  @message
end