Class ChatModelErrorContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelErrorContext
The chat model error context.
It contains the error, corresponding
ChatRequest
, ModelProvider
and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListener
s.-
Constructor Summary
ConstructorsConstructorDescriptionChatModelErrorContext
(Throwable error, ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes) -
Method Summary
-
Constructor Details
-
ChatModelErrorContext
public ChatModelErrorContext(Throwable error, ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes)
-
-
Method Details
-
error
- Returns:
- The error that occurred.
-
chatRequest
-
modelProvider
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
ChatModelListener
or between multipleChatModelListener
s.
-