Class: Lemans::Agents::Nop

Inherits:
Base
  • Object
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 Base

#model, #profile

Instance Method Summary collapse

Methods inherited from Base

#initialize, #install, #name

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