Exception: Langchain::OutputParsers::OutputParserException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/langchain/output_parsers/base.rb

Instance Method Summary collapse

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(message, text)
  @message = message
  @text = text
end

Instance Method Details

#to_sObject



38
39
40
# File 'lib/langchain/output_parsers/base.rb', line 38

def to_s
  "#{@message}\nText: #{@text}"
end