Class: DSPy::Instrumentation::ReactIterationCompleteEvent

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

Overview

ReAct iteration complete event (emit, not instrument)

Instance Method Summary collapse

Instance Method Details

#to_hObject



303
304
305
306
307
308
309
310
311
312
313
314
# File 'lib/dspy/instrumentation/event_payloads.rb', line 303

def to_h
  {
    timestamp: timestamp,
    status: status,
    iteration: iteration,
    thought: thought,
    action: action,
    action_input: action_input,
    observation: observation,
    tools_used: tools_used
  }
end