Hi everyone. I am building an Android App using Koog. It is a chat app with conversational AI integrated. Can anyone say how to setup the strategy for AIAgent class, to make sure that the previous list of messages in a conversation are fed to the agent, before executing a new prompt?
Assume that there were already 4 messages. I have closed & reopened the app. Now, the agent should take the 1st 4 messages and analyse my prompt on top of it.
Please help.
Thanks
Archit
a
Anastasiia Zarechneva
10/20/2025, 8:14 AM
Hi Archit, thanks for the question!
Could you please check out the Persistence feature, especially the Continuous Persistence part? I think this is what you're looking for.
a
Archit69 Appdeveloper
10/20/2025, 8:15 AM
Thanks for your response. I will look into it and get back to you.
Archit69 Appdeveloper
10/20/2025, 8:23 AM
I looked into it @Anastasiia Zarechneva. But I am not looking for the persistence feature really. I just need to ensure that the AIAgent class needs to return results when "run" method is invoked, by analysing the existing messages in a conversation. It is not working as expected if I store the messages and pass to Prompt object of AIAgentConfig object (under "messages" field).