Class: Ralph::Output::CompletionDetected

Inherits:
Object
  • Object
show all
Extended by:
Helpers
Defined in:
lib/ralph/output/completion_detected.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
14
# File 'lib/ralph/output/completion_detected.rb', line 8

def self.call(loop_context)
  puts "\n╔#{'=' * 66}"
  puts "║  ✅ Completion promise detected: <promise>#{loop_context.config.completion_promise}</promise>"
  puts "║  Task completed in #{loop_context.state.iteration} iteration(s)"
  puts "║  Total time: #{format_duration_long(loop_context.history.total_duration_ms)}"
  puts "#{'=' * 66}"
end