Class: RCrewAI::Knowledge::FileSource

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ FileSource

Returns a new instance of FileSource.



25
26
27
28
# File 'lib/rcrewai/knowledge/sources.rb', line 25

def initialize(path)
  super()
  @path = path
end

Instance Method Details

#readObject



30
31
32
# File 'lib/rcrewai/knowledge/sources.rb', line 30

def read
  File.read(@path)
end