Class: CleoQualityReview::Formatter
- Inherits:
-
Object
- Object
- CleoQualityReview::Formatter
- Defined in:
- lib/cleo_quality_review/formatter.rb
Overview
Formats quality review results using an LLM with format-specific prompts
Instance Method Summary collapse
-
#format ⇒ String
Format the run by generating an LLM review.
-
#initialize(run:, command_runner:, llm_config: LlmConfig.new, llm_client: nil) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(run:, command_runner:, llm_config: LlmConfig.new, llm_client: nil) ⇒ Formatter
Returns a new instance of Formatter.
18 19 20 21 22 23 |
# File 'lib/cleo_quality_review/formatter.rb', line 18 def initialize(run:, command_runner:, llm_config: LlmConfig.new, llm_client: nil) @run = run @command_runner = command_runner @llm_config = llm_config @llm_client = llm_client end |
Instance Method Details
#format ⇒ String
Format the run by generating an LLM review
28 29 30 |
# File 'lib/cleo_quality_review/formatter.rb', line 28 def format llm_client.generate_review(prompt) end |