Class: Ralph::Output::MaxIterationsReached

Inherits:
Object
  • Object
show all
Extended by:
Helpers
Defined in:
lib/ralph/output/max_iterations_reached.rb

Class Method Summary collapse

Methods included from Helpers

check_completion, escape_regex, format_duration, format_duration_long, format_tool_summary, now_ms, strip_ansi, which

Class Method Details

.call(loop_context) ⇒ Object



8
9
10
11
12
13
# File 'lib/ralph/output/max_iterations_reached.rb', line 8

def self.call(loop_context)
  puts "\n╔#{'=' * 66}"
  puts "║  Max iterations (#{loop_context.config.max_iterations}) reached. Loop stopped."
  puts "║  Total time: #{format_duration_long(loop_context.history.total_duration_ms)}"
  puts "#{'=' * 66}"
end