Class ChatModelResponseContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelResponseContext
The chat response context.
It contains
ChatResponse
, 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
ConstructorsConstructorDescriptionChatModelResponseContext
(ChatResponse chatResponse, ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ChatModelResponseContext
public ChatModelResponseContext(ChatResponse chatResponse, ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes)
-
-
Method Details
-
chatResponse
-
chatRequest
-
modelProvider
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
ChatModelListener
or between multipleChatModelListener
s.
-