Implementing Tool-Based and Hook-Based Memory — Build Persistent Graph Memory for AI Agents with Neo4j | AgentsNexus Codelabs