Class: CleoQualityReview::PromptBuilder
- Inherits:
-
Object
- Object
- CleoQualityReview::PromptBuilder
- Defined in:
- lib/cleo_quality_review/prompt_builder.rb
Overview
Builds the complete LLM prompt from run data and artifacts
Instance Method Summary collapse
-
#build ⇒ String
Build the complete prompt with all sections.
-
#initialize(run:, prompt:, artifacts:) ⇒ PromptBuilder
constructor
A new instance of PromptBuilder.
Constructor Details
#initialize(run:, prompt:, artifacts:) ⇒ PromptBuilder
Returns a new instance of PromptBuilder.
13 14 15 16 17 |
# File 'lib/cleo_quality_review/prompt_builder.rb', line 13 def initialize(run:, prompt:, artifacts:) @run = run @prompt = prompt @artifacts = artifacts end |
Instance Method Details
#build ⇒ String
Build the complete prompt with all sections
22 23 24 25 26 27 28 29 30 |
# File 'lib/cleo_quality_review/prompt_builder.rb', line 22 def build [ prompt, , diff_section, check_outputs_section, target_files_section, ].join("\n\n") end |