Class: SkillBench::Services::OutputFormatter
- Inherits:
-
Object
- Object
- SkillBench::Services::OutputFormatter
- Defined in:
- lib/skill_bench/services/output_formatter.rb
Overview
Formats agent output for evaluation.
Class Method Summary collapse
-
.call(agent_result) ⇒ String
Formats agent output for evaluation.
Instance Method Summary collapse
-
#call ⇒ String
Formats agent output for evaluation.
-
#initialize(agent_result) ⇒ OutputFormatter
constructor
A new instance of OutputFormatter.
Constructor Details
#initialize(agent_result) ⇒ OutputFormatter
Returns a new instance of OutputFormatter.
16 17 18 |
# File 'lib/skill_bench/services/output_formatter.rb', line 16 def initialize(agent_result) @agent_result = agent_result end |
Class Method Details
.call(agent_result) ⇒ String
Formats agent output for evaluation.
11 12 13 |
# File 'lib/skill_bench/services/output_formatter.rb', line 11 def self.call(agent_result) new(agent_result).call end |
Instance Method Details
#call ⇒ String
Formats agent output for evaluation.
23 24 25 |
# File 'lib/skill_bench/services/output_formatter.rb', line 23 def call @agent_result[:result].to_s end |