A second agent
Researcher and writer
Two agents stay separate. Each has its own instructions. A team runs both.
Give each agent one role. Give each task one agent.
Example
from praisonai import Agent, AgentTeam, Task
researcher = Agent(
name="Researcher",
instructions="Research and gather information on topics",
)
writer = Agent(
name="Writer",
instructions="Write clear, engaging content",
)
tasks = [
Task(description="List two facts about AI agents", agent=researcher),
Task(description="Write two sentences from those facts", agent=writer),
]
team = AgentTeam(agents=[researcher, writer], tasks=tasks)
print(team.start())Reference: documentation