This chat is not memory
Two separate agents
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.
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.
Reference: documentation