类 ChatModelErrorContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelErrorContext
The error context. It contains the error, corresponding
ChatModelRequest,
partial ChatModelResponse (if available) and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListeners.-
构造器概要
构造器构造器说明ChatModelErrorContext(Throwable error, ChatModelRequest request, ChatModelResponse partialResponse, Map<Object, Object> attributes) -
方法概要
-
构造器详细资料
-
ChatModelErrorContext
public ChatModelErrorContext(Throwable error, ChatModelRequest request, ChatModelResponse partialResponse, Map<Object, Object> attributes)
-
-
方法详细资料
-
error
- 返回:
- The error that occurred.
-
request
- 返回:
- The request to the
ChatLanguageModelthe error corresponds to.
-
partialResponse
- 返回:
- The partial response from the
ChatLanguageModel, if available. When used withStreamingChatLanguageModel, it might contain the tokens that were received before the error occurred.
-
attributes
- 返回:
- The attributes map. It can be used to pass data between methods of a
ChatModelListeneror between multipleChatModelListeners.
-