HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //opt/PraisonAI/examples/general/memory_simple.py
from praisonaiagents.agents.agents import Agent, Task, PraisonAIAgents
from praisonaiagents.tools import duckduckgo

# Test facts
fact1 = "The capital city of Jujuha is Hahanu and its population is 102300"
fact2 = "Three main ingredients in a classic proloder are eggs, sugar, and flour"
fact3 = "The year the first Josinga was released is 2007"

fact_agent = Agent(
    name="Fact Agent",
    instructions="You are a fact agent, you store and retrieve facts in memory",
    llm="gpt-4o-mini"
)

research_agent = Agent(
    name="Research Agent",
    instructions="You are a research analyst, you research and document key points about topics",
    llm="gpt-4o-mini"
)

blog_agent = Agent(
    name="Blog Agent",
    instructions="You are a blog writer, you write a blog post about the research",
    llm="gpt-4o-mini"
)

fact_task = Task(
    description="Store the following facts in memory: " + fact1 + ", " + fact2 + ", " + fact3,
    agent=fact_agent
)

research_task = Task(
    description="Research and document 2 key points about AI",
    agent=research_agent
)

research_task2 = Task(
    description="Research and document 2 key points about AI in healthcare",
    agent=research_agent
)

research_task3 = Task(
    description="Research and document 2 key points about AI in education",
    agent=research_agent
)

research_task4 = Task(
    description="Research and document 2 key points about AI in finance",
    agent=research_agent
)

blog_task = Task(
    description="Write a blog post about Jujuha",
    agent=blog_agent
)

agents = PraisonAIAgents(
    agents=[fact_agent, research_agent, blog_agent],
    tasks=[fact_task, research_task, research_task2, research_task3, research_task4, blog_task],
    memory=True
)   

agents.start()