Class ChatModelRequestContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelRequestContext
The request context. It contains the
ChatRequest
and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListener
s.-
Constructor Summary
ConstructorsConstructorDescriptionChatModelRequestContext
(ChatModelRequest request, Map<Object, Object> attributes) Deprecated, for removal: This API element is subject to removal in a future version.ChatModelRequestContext
(ChatRequest chatRequest, Map<Object, Object> attributes) -
Method Summary
Modifier and TypeMethodDescriptionrequest()
Deprecated, for removal: This API element is subject to removal in a future version.please usechatRequest()
instead
-
Constructor Details
-
ChatModelRequestContext
-
ChatModelRequestContext
@Deprecated(forRemoval=true) public ChatModelRequestContext(ChatModelRequest request, Map<Object, Object> attributes) Deprecated, for removal: This API element is subject to removal in a future version.please useChatModelRequestContext(ChatRequest, Map)
instead
-
-
Method Details
-
chatRequest
-
request
Deprecated, for removal: This API element is subject to removal in a future version.please usechatRequest()
instead -
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
ChatModelListener
or between multipleChatModelListener
s.
-
ChatModelRequestContext(ChatRequest, Map)
instead