Class: OmniAI::Chat::Content
- Inherits:
-
Object
- Object
- OmniAI::Chat::Content
- Defined in:
- lib/omniai/chat/content.rb
Overview
A file used for analysis.
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, type: :text) ⇒ Content
constructor
A new instance of Content.
Constructor Details
#initialize(value, type: :text) ⇒ Content
Returns a new instance of Content.
12 13 14 15 |
# File 'lib/omniai/chat/content.rb', line 12 def initialize(value, type: :text) @value = value @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/omniai/chat/content.rb', line 7 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/omniai/chat/content.rb', line 7 def value @value end |