Class: DSPy::Instrumentation::ChainOfThoughtReasoningCompleteEvent

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

Overview

Chain of thought reasoning complete event (emit, not instrument)

Instance Method Summary collapse

Instance Method Details

#to_hObject



435
436
437
438
439
440
441
442
443
444
# File 'lib/dspy/instrumentation/event_payloads.rb', line 435

def to_h
  {
    timestamp: timestamp,
    status: status,
    signature_class: signature_class,
    module_name: module_name,
    reasoning_length: reasoning_length,
    answer_present: answer_present
  }
end