from agentmind import Memory
memory = Memory(api_key="YOUR_API_KEY")
# Natural conversation with memory
user: "I'm building a SaaS app"
agent: memory.remember("Building a SaaS application")
agent: "Great! What's your tech stack?"
user: "Next.js and Supabase"
agent: memory.remember("Tech stack: Next.js, Supabase")
agent: "Nice modern stack. What features are you building?"
user: "User auth and payments"
agent: memory.remember("Working on: authentication, payments")
agent: "For payments with Next.js, I recommend Stripe..."
# Days later - agent remembers everything
user: "How do I add subscriptions?"
agent: memory.recall("tech stack payments")
# Agent knows: Next.js, Supabase, working on payments
agent: "Since you're using Next.js with Stripe, here's how to add subscriptions..."