Package dev.langchain4j.service
Interface OnError
public interface OnError
-
Method Summary
-
Method Details
-
onError
The provided Consumer will be invoked when an error occurs during streaming.- Parameters:
errorHandler
- lambda that will be invoked when an error occurs- Returns:
- the next step of the step-builder
-
ignoreErrors
OnStart ignoreErrors()All errors during streaming will be ignored (but will be logged with a WARN log level).- Returns:
- the next step of the step-builder
-