from praisonaiagents import Agent# Enable memory with one parameteragent = Agent( instructions="You are a personal assistant", memory=True # Remember conversations)agent.start("My name is Alex and I love Python")# Later...agent.start("What's my name?") # Agent remembers: "Alex"
Just add memory=True to enable conversation memory.
from praisonaiagents import Agent# Personal assistant with memoryassistant = Agent( name="PersonalAssistant", instructions="""You are a personal assistant. Remember user preferences and past conversations. Be helpful and personalized.""", memory=True)# First conversationassistant.start("I prefer short, bullet-point answers")assistant.start("My favorite programming language is Python")# Later conversation - agent remembers!assistant.start("Explain how to read a file")# Agent will give short, bullet-point answer about Python