Class: Lemans::Agents::Nop

Inherits:
Lemans::Agent show all
Defined in:
lib/lemans/agents/nop.rb

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 Lemans::Agent

#model, #profile

Instance Method Summary collapse

Methods inherited from Lemans::Agent

#initialize, #install, #name

Constructor Details

This class inherits a constructor from Lemans::Agent

Instance Method Details

#run(_task, _environment) ⇒ Object



10
11
12
# File 'lib/lemans/agents/nop.rb', line 10

def run(_task, _environment)
  Response.new(outcome: Result::Outcome.new(:completed), usage: Result::Usage.zero)
end