def memory():
    """Create a basic memory instance for testing."""
    return Memory(
        token_limit=1000,
        token_flush_size=700,
        chat_history_token_ratio=0.9,
        session_id="test_user",
    )
Create a basic memory instance for testing.
llama-index-core/tests/memory/test_memory_base.py