Class ChatModelRequestContext
java.lang.Object
dev.langchain4j.model.chat.listener.ChatModelRequestContext
The chat model request context.
It contains the
ChatRequest
, ModelProvider
and attributes.
The attributes can be used to pass data between methods of a ChatModelListener
or between multiple ChatModelListener
s.-
Constructor Summary
ConstructorsConstructorDescriptionChatModelRequestContext
(ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
ChatModelRequestContext
public ChatModelRequestContext(ChatRequest chatRequest, ModelProvider modelProvider, Map<Object, Object> attributes)
-
-
Method Details
-
chatRequest
-
modelProvider
-
attributes
- Returns:
- The attributes map. It can be used to pass data between methods of a
ChatModelListener
or between multipleChatModelListener
s.
-