Class: LLM::Shell::Functions::ReadFile
- Inherits:
-
Object
- Object
- LLM::Shell::Functions::ReadFile
- Defined in:
- lib/llm/shell/functions/read_file.rb
Instance Method Summary collapse
Instance Method Details
#call(path:) ⇒ Object
5 6 7 8 9 |
# File 'lib/llm/shell/functions/read_file.rb', line 5 def call(path:) {ok: true, content: File.read(path)} rescue => ex {ok: false, error: {class: ex.class.to_s, message: ex.}} end |