Class ChatModelRequestContext
-
- All Implemented Interfaces:
public class ChatModelRequestContextThe 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
Constructors Constructor Description ChatModelRequestContext(ChatModelRequest request, Map<Object, Object> attributes)
-
Method Summary
Modifier and Type Method Description ChatModelRequestrequest()Map<Object, Object>attributes()-
-
Constructor Detail
-
ChatModelRequestContext
ChatModelRequestContext(ChatModelRequest request, Map<Object, Object> attributes)
-
-
Method Detail
-
request
ChatModelRequest request()
- Returns:
The request to the ChatLanguageModel.
-
attributes
Map<Object, Object> attributes()
- Returns:
The attributes map. It can be used to pass data between methods of a ChatModelListener or between multiple ChatModelListeners.
-
-
-
-