This chat is not memory
Two separate agents
Each brand-new Agent starts with a blank slate unless you explicitly attach persistent memory. Creating a second agent instance without shared memory will not automatically know what you told the first agent.
A new agent does not know what you told a different agent.
The first line is the name. The second line is a new agent, and it does not know the name.
Expected output: the first agent responds with your name, while the second fresh agent confirms it does not know your name yet.
Example
from praisonai import Agent
first = Agent(instructions="Reply with only the name you were just told.")
print(first.start("The learner name is Nila."))
second = Agent(instructions="If this message does not contain a name, reply exactly: I do not know the name.")
print(second.start("What is the learner name?"))Example explained
- first — Told the name in this message.
- second — A new agent. The name was not saved.
When ephemeral chat history is actually what you want
Not every assistant needs durable long-term memory. One-off calculators, stateless translators, and privacy-first support forms are cleaner and safer when each conversation starts fresh with zero stored user facts.
Common pitfall: persisting temporary one-time instructions ('answer in pirate voice today') as permanent user memory.
Reference: documentation