Class: DSPy::Instrumentation::PredictValidationErrorEvent

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

Overview

Validation error event (emit, not instrument)

Instance Method Summary collapse

Instance Method Details

#to_hObject



463
464
465
466
467
468
469
470
471
472
473
# File 'lib/dspy/instrumentation/event_payloads.rb', line 463

def to_h
  {
    timestamp: timestamp,
    status: status,
    signature_class: signature_class,
    module_name: module_name,
    field_name: field_name,
    error_message: error_message,
    retry_count: retry_count
  }
end