Personal assistant
Remember and look up
A personal assistant combines instructions, memory, and a tool.
memory keeps the preference. The tool answers the factual bit.
Example
from praisonai import Agent
def today_word() -> str:
"""Return the practice word of the day."""
return "agent"
agent = Agent(
name="Assistant",
instructions="You are a personal assistant. Use today_word when asked for the word of the day.",
memory=True,
tools=[today_word],
)
print(agent.start("Remember that I study in the morning."))
print(today_word())Reference: documentation