Class: OmniAI::Tools::Disk::FileReadTool
- Defined in:
- lib/omniai/tools/disk/file_read_tool.rb
Overview
Instance Method Summary collapse
Methods inherited from BaseTool
Constructor Details
This class inherits a constructor from OmniAI::Tools::Disk::BaseTool
Instance Method Details
#execute(path:) ⇒ String
19 20 21 22 23 24 25 |
# File 'lib/omniai/tools/disk/file_read_tool.rb', line 19 def execute(path:) @logger.info("#{self.class.name}#execute path=#{path}") File.read(resolve!(path:)) rescue StandardError => e @logger.error(e.) raise e end |