Class ChatModelRequestContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelRequestContext
The request context. It contains the
ChatModelRequest and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListeners.-
Constructor Summary
ConstructorsConstructorDescriptionChatModelRequestContext(ChatModelRequest request, Map<Object, Object> attributes) -
Method Summary
-
Constructor Details
-
ChatModelRequestContext
-
-
Method Details
-
request
- Returns:
- The request to the
ChatLanguageModel.
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
ChatModelListeneror between multipleChatModelListeners.
-