Class ChatModelResponseContext
-
- All Implemented Interfaces:
public class ChatModelResponseContextThe response context. It contains ChatResponse, corresponding ChatRequest 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(ChatResponse chatResponse, ChatRequest chatRequest, Map<Object, Object> attributes)ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes)
-
Method Summary
Modifier and Type Method Description ChatResponsechatResponse()ChatModelResponseresponse()ChatRequestchatRequest()ChatModelRequestrequest()Map<Object, Object>attributes()-
-
Constructor Detail
-
ChatModelResponseContext
ChatModelResponseContext(ChatResponse chatResponse, ChatRequest chatRequest, Map<Object, Object> attributes)
-
ChatModelResponseContext
ChatModelResponseContext(ChatModelResponse response, ChatModelRequest request, Map<Object, Object> attributes)
-
-
Method Detail
-
chatResponse
ChatResponse chatResponse()
-
response
@Deprecated(forRemoval = true) ChatModelResponse response()
-
chatRequest
ChatRequest chatRequest()
-
request
@Deprecated(forRemoval = true) ChatModelRequest request()
-
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.
-
-
-
-