Orchestration framework company LangChain sought to get closer to an answer to this question. It subjected an AI agent to several experiments that found single agents do have a limit of context ...
However, it provides a more advanced set of features than LangChain. LangGraph allows developers to build applications that include multiple AI agents. Those agents can be equipped with memory.