Class: RubyCanUseLLM::Chunk
- Inherits:
-
Object
- Object
- RubyCanUseLLM::Chunk
- Defined in:
- lib/rubycanusellm/chunk.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(content:, role: "assistant") ⇒ Chunk
constructor
A new instance of Chunk.
Constructor Details
#initialize(content:, role: "assistant") ⇒ Chunk
Returns a new instance of Chunk.
7 8 9 10 |
# File 'lib/rubycanusellm/chunk.rb', line 7 def initialize(content:, role: "assistant") @content = content @role = role end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
5 6 7 |
# File 'lib/rubycanusellm/chunk.rb', line 5 def content @content end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
5 6 7 |
# File 'lib/rubycanusellm/chunk.rb', line 5 def role @role end |