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.
15 16 17 18 |
# File 'lib/dspy/predict.rb', line 15 def initialize(errors) @errors = errors super("Prediction validation failed: #{errors}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
21 22 23 |
# File 'lib/dspy/predict.rb', line 21 def errors @errors end |