Class OutputParserException

All Implemented Interfaces:
Serializable

public class OutputParserException extends IllegalArgumentException
Exception that output parsers should raise to signify a parsing error.

This exists to differentiate parsing errors from other code or execution errors that also may arise inside the output parser. OutputParserExceptions will be available to catch and handle in ways to fix the parsing error, while other errors will be raised.

Author:
HamaWhite
See Also:
  • Constructor Details

    • OutputParserException

      public OutputParserException(Object error, String observation, String llmOutput, boolean sendToLlm)
    • OutputParserException

      public OutputParserException(Object error)
  • Method Details

    • getObservation

      public String getObservation()
    • getLlmOutput

      public String getLlmOutput()
    • isSendToLlm

      public boolean isSendToLlm()