Class: SkillBench::Agent::Summary
- Inherits:
-
Object
- Object
- SkillBench::Agent::Summary
- Defined in:
- lib/skill_bench/agent/summary.rb
Overview
Value object capturing sandbox execution metadata.
Holds files changed, commands run, and agent reasoning extracted from an evaluation run for delivery to the judge.
Instance Attribute Summary collapse
-
#agent_reasoning ⇒ Object
readonly
Returns the value of attribute agent_reasoning.
-
#commands_run ⇒ Object
readonly
Returns the value of attribute commands_run.
-
#files_changed ⇒ Object
readonly
Returns the value of attribute files_changed.
Class Method Summary collapse
-
.call(files_changed: [], commands_run: [], agent_reasoning: '') ⇒ Hash
Creates an Agent::Summary from execution data.
Instance Method Summary collapse
-
#call ⇒ Hash
Returns the agent summary in the service response format.
-
#initialize(files_changed:, commands_run:, agent_reasoning:) ⇒ Summary
constructor
A new instance of Summary.
Constructor Details
#initialize(files_changed:, commands_run:, agent_reasoning:) ⇒ Summary
Returns a new instance of Summary.
25 26 27 28 29 |
# File 'lib/skill_bench/agent/summary.rb', line 25 def initialize(files_changed:, commands_run:, agent_reasoning:) @files_changed = files_changed @commands_run = commands_run @agent_reasoning = agent_reasoning end |
Instance Attribute Details
#agent_reasoning ⇒ Object (readonly)
Returns the value of attribute agent_reasoning.
10 11 12 |
# File 'lib/skill_bench/agent/summary.rb', line 10 def agent_reasoning @agent_reasoning end |
#commands_run ⇒ Object (readonly)
Returns the value of attribute commands_run.
10 11 12 |
# File 'lib/skill_bench/agent/summary.rb', line 10 def commands_run @commands_run end |
#files_changed ⇒ Object (readonly)
Returns the value of attribute files_changed.
10 11 12 |
# File 'lib/skill_bench/agent/summary.rb', line 10 def files_changed @files_changed end |
Class Method Details
.call(files_changed: [], commands_run: [], agent_reasoning: '') ⇒ Hash
Creates an Agent::Summary from execution data.
18 19 20 |
# File 'lib/skill_bench/agent/summary.rb', line 18 def self.call(files_changed: [], commands_run: [], agent_reasoning: '') new(files_changed:, commands_run:, agent_reasoning:).call end |
Instance Method Details
#call ⇒ Hash
Returns the agent summary in the service response format.
34 35 36 |
# File 'lib/skill_bench/agent/summary.rb', line 34 def call { success: true, response: { agent_summary: self } } end |