Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
A second agent
Run
from praisonai import Agent, AgentTeam, Task researcher = Agent( name="Researcher", instructions="Reply with two labelled facts: Fact1: ... Fact2: ...", ) writer = Agent( name="Writer", instructions="Write one sentence that includes the text Fact1 from the prior task.", ) tasks = [ Task(description="Two facts about tracing agents", agent=researcher), Task(description="One sentence citing Fact1", agent=writer), ] team = AgentTeam(agents=[researcher, writer], tasks=tasks) print(team.start())
Press Run. The result appears here.
Esc
Search in
All
Docs
University