Class: Lemans::Agents::Nop
Overview
Does nothing, on purpose: how a task proves its verifier rejects an untouched tree.
Constant Summary collapse
- NAME =
"nop"
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#call(_environment, task:, logs_dir:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Lemans::Agents::Base
Instance Method Details
#call(_environment, task:, logs_dir:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
10 11 12 |
# File 'lib/lemans/agents/nop.rb', line 10 def call(_environment, task:, logs_dir:) # rubocop:disable Lint/UnusedMethodArgument Result.new(outcome: Results::Outcome.new(:completed), usage: Results::Usage.zero, trajectory: nil) end |