Exception: Langchain::OutputParsers::OutputParserException
- Inherits:
-
StandardError
- Object
- StandardError
- Langchain::OutputParsers::OutputParserException
- Defined in:
- lib/langchain/output_parsers/base.rb
Instance Method Summary collapse
-
#initialize(message, text) ⇒ OutputParserException
constructor
A new instance of OutputParserException.
- #to_s ⇒ Object
Constructor Details
#initialize(message, text) ⇒ OutputParserException
Returns a new instance of OutputParserException.
33 34 35 36 |
# File 'lib/langchain/output_parsers/base.rb', line 33 def initialize(, text) @message = @text = text end |
Instance Method Details
#to_s ⇒ Object
38 39 40 |
# File 'lib/langchain/output_parsers/base.rb', line 38 def to_s "#{@message}\nText: #{@text}" end |