Skip to main content

Overview

A personal assistant that becomes increasingly personalized through the Learning Machine. Combines user profile tracking, session context, and entity memory to remember preferences, people, and events.

Code

personal_assistant.py

How It Works

  • User Profile (ALWAYS mode): Automatically extracts name, workplace, and communication preferences
  • Session Context (with planning): Tracks goals and progress across multi-turn conversations
  • Entity Memory (ALWAYS mode): Records people (Sarah), places, and events with relationships
The namespace user:{user_id}:personal isolates each user’s entity memory.

Run This Example

Full source: agno/cookbook/08_learning/07_patterns/personal_assistant.py