Class ChatModelResponseContext
-
- All Implemented Interfaces:
public class ChatModelResponseContextThe response context. It contains ChatModelResponse, corresponding 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 ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes)
-
Method Summary
Modifier and Type Method Description ChatModelResponseresponse()ChatModelRequestrequest()Map<Object, Object>attributes()-
-
Constructor Detail
-
ChatModelResponseContext
ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes)
-
-
Method Detail
-
response
ChatModelResponse response()
- Returns:
The response from the ChatLanguageModel.
-
request
ChatModelRequest request()
- Returns:
The request to the ChatLanguageModel the response corresponds to.
-
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.
-
-
-
-