docs/guides/memory/connect_to_an_agent.md
A memory must be connected to an Agent before historical messages can be written during Agent execution or historical context can be retrieved when answering. Usually, both directions, write to memory and retrieve from memory, need to be configured.
sys.query is commonly used.