Replies: 1 comment
-
public ChatClientRequest before(ChatClientRequest chatClientRequest, AdvisorChain advisorChain) {
} public ChatClientResponse after(ChatClientResponse chatClientResponse, AdvisorChain advisorChain) { public void save(Map<String, Object> context, List messages) {
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have implemented a custom ChatMemory with my own repository to persist messages in a table format that suits our project. I then set this MessageChatMemoryAdvisor in the default advisor in the ChatClient builder which built my ChatClient instance to use. I was wondering if anyone done it before if there is an easy way to return the persistent IDs of the user and response from LLM messages so it can be returned to the frontend chatbot.
I know there is a chat context to store them and retrieve them in the Advisors but this means that I need to implement my own advisor to make this happen. Does anyone have any ideas?
Beta Was this translation helpful? Give feedback.
All reactions