Class: DSPy::Instrumentation::ReactMaxIterationsEvent

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dspy/instrumentation/event_payloads.rb

Overview

ReAct max iterations event (emit, not instrument)

Instance Method Summary collapse

Instance Method Details

#to_hObject



332
333
334
335
336
337
338
339
340
341
# File 'lib/dspy/instrumentation/event_payloads.rb', line 332

def to_h
  {
    timestamp: timestamp,
    status: status,
    iteration_count: iteration_count,
    max_iterations: max_iterations,
    tools_used: tools_used,
    final_history_length: final_history_length
  }
end