Class: RCrewAI::Knowledge::StringSource
- Defined in:
- lib/rcrewai/knowledge/sources.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ StringSource
constructor
A new instance of StringSource.
- #read ⇒ Object
Constructor Details
#initialize(text) ⇒ StringSource
Returns a new instance of StringSource.
14 15 16 17 |
# File 'lib/rcrewai/knowledge/sources.rb', line 14 def initialize(text) super() @text = text.to_s end |
Instance Method Details
#read ⇒ Object
19 20 21 |
# File 'lib/rcrewai/knowledge/sources.rb', line 19 def read @text end |