Class InvalidDecisionResponseException

All Implemented Interfaces:
Serializable

@Experimental public class InvalidDecisionResponseException extends LangChain4jException
Thrown when a DecisionModel returns a response that does not match the request, for example when an answer is missing, has the wrong type, or chooses an option that was not offered.
Since:
1.21.0
See Also:
  • Constructor Details

    • InvalidDecisionResponseException

      public InvalidDecisionResponseException(String message)
    • InvalidDecisionResponseException

      public InvalidDecisionResponseException(String message, Throwable cause)