Thread in the Assistant suffers from long-term memory loss. Is there a way to keep core messages in a thread?

The assistant’s thread reminds of Dory in Finding Nemo, but in reverse. As the number of messages increases and reaches its limit, the old messages are deleted from the thread.

Keeping all the messages is very costly, and a limit is required, but I would like to know if it is possible to set a few messages as the Assistant Core Memory. This messages will never be deleted from the threadMessages.

Add to the threadMessage object a coreMemory property (boolean) would be a simple and effective solution.

In this case, the Assistant will keep its purpose and will not lose its focus when interacting with users.

Can someone help?
Thanks

Maybe they’ll add this feature in future but for now you can either store the core messages somewhere in your system and pass them either to Assistant’s instructions or to ‘Additional Instruction’ of run modifying the behavior on a per-run basis.

This solution can be a bad one but am all ears for better ones.

1 Like