Class: Appydave::Tools::LlmContext::OutputHandler
- Inherits:
-
Object
- Object
- Appydave::Tools::LlmContext::OutputHandler
- Defined in:
- lib/appydave/tools/llm_context/output_handler.rb
Overview
OutputHandler is responsible for writing the output to the desired target
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(content, options) ⇒ OutputHandler
constructor
A new instance of OutputHandler.
Constructor Details
#initialize(content, options) ⇒ OutputHandler
Returns a new instance of OutputHandler.
8 9 10 11 12 13 14 |
# File 'lib/appydave/tools/llm_context/output_handler.rb', line 8 def initialize(content, ) @content = content @output_targets = .output_target @working_directory = .working_directory @smart = .smart @smart_limit = .smart_limit end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/appydave/tools/llm_context/output_handler.rb', line 16 def execute if @smart execute_smart else @output_targets.each { |target| route(target) } end end |