Class UnsupportedFeatureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.langchain4j.exception.LangChain4jException
dev.langchain4j.exception.UnsupportedFeatureException
- All Implemented Interfaces:
Serializable
Thrown when a requested feature is not supported by the current model provider
or the specific model being used.
Examples include requesting structured output from a model that does not support it, or enabling tool-use on a provider whose API does not offer function calling. The caller should either switch to a compatible model or adjust the request to avoid the unsupported feature.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedFeatureException
-