Today, I found an article stating that if you want to initialize a chat from an agent other than RetrieveUserProxyAgent, you should call and use RetrieveUserProxyAgent from a function. Therefore, I will fundamentally revise it in this direction.
I apologize for asking a question due to my lack of basic understanding.
https://microsoft.github.io/autogen/0.2/blog/2023/10/18/RetrieveChat/