from praisonaiagents import Agent, AgentTeamresearcher = Agent(instructions="Research the topic")analyst = Agent(instructions="Analyze the research")writer = Agent(instructions="Write the final report")team = AgentTeam( agents=[researcher, analyst, writer], process="sequential" # One after another)team.start()
from praisonaiagents import Agent, AgentTeam# Research agent with web searchresearcher = Agent( name="Researcher", instructions="Find the latest information on the topic", web=True # Can search the web)# Analyst agentanalyst = Agent( name="Analyst", instructions="Analyze findings and identify key insights")# Writer agentwriter = Agent( name="Writer", instructions="Create a clear, engaging summary")# Create the teamteam = AgentTeam( agents=[researcher, analyst, writer], process="sequential")# Run the teamresult = team.start("Research AI trends in 2025")print(result)