[Refactor] Refactor OpenAIMessage in camel/memories to be BaseMessage
In camel/memories module, by default it's using OpenAIMessage style, however, that's not ideal in design, which force all parts using the memory module using OpenAIMessage, which can be refactor into BaseMessage, for a clean and unified interface.
Hi @MuggleJinx can i pick this up, incase you havent already started working on it?
Sure, go ahead! Thank you very much @JINO-ROHIT
alrighty!
@MuggleJinx coulld you guide me on the modules that needs to be changed, running into a bit of a pickle.
thanks
Hi @JINO-ROHIT, Thanks for asking. I believe the 1st step should be the PR u addressed. Just update OpenAIMessage to be BaseMessage.
Then check the part where the memories modules are used, e.g., in the ChatAgent, we import the memories module, thus the message is OpenAIMessage, which can be replaced by BaseMessage for unified interface.
Finally just test if all tests are passed etc