类 ChatModelResponseContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelResponseContext
The response context. It contains
ChatModelResponse, corresponding ChatModelRequest and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListeners.-
构造器概要
构造器构造器说明ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes) -
方法概要
-
构造器详细资料
-
ChatModelResponseContext
public ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes)
-
-
方法详细资料
-
response
- 返回:
- The response from the
ChatLanguageModel.
-
request
- 返回:
- The request to the
ChatLanguageModelthe response corresponds to.
-
attributes
- 返回:
- The attributes map. It can be used to pass data between methods of a
ChatModelListeneror between multipleChatModelListeners.
-