Exception: DSPy::PredictionInvalidError
- Inherits:
-
StandardError
- Object
- StandardError
- DSPy::PredictionInvalidError
- Extended by:
- T::Sig
- Defined in:
- lib/dspy/predict.rb
Overview
Exception raised when prediction fails validation
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ PredictionInvalidError
constructor
A new instance of PredictionInvalidError.
Constructor Details
#initialize(errors) ⇒ PredictionInvalidError
Returns a new instance of PredictionInvalidError.
17 18 19 20 |
# File 'lib/dspy/predict.rb', line 17 def initialize(errors) @errors = errors super("Prediction validation failed: #{errors}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
23 24 25 |
# File 'lib/dspy/predict.rb', line 23 def errors @errors end |