Class: RCrewAI::Knowledge::StringSource

Inherits:
Source
  • Object
show all
Defined in:
lib/rcrewai/knowledge/sources.rb

Instance Method Summary collapse

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

#readObject



19
20
21
# File 'lib/rcrewai/knowledge/sources.rb', line 19

def read
  @text
end