Building a LangChain Custom Medical Agent with Memory