from praisonaiagents import Agent, PraisonAIAgentTeam, Task
# All agents use RouteLLM routing
researcher = Agent(
name="Researcher",
role="Research analyst",
goal="Find information",
llm="router-mf-0.5",
base_url="http://localhost:6060/v1"
)
writer = Agent(
name="Writer",
role="Content writer",
goal="Write content",
llm="router-mf-0.5",
base_url="http://localhost:6060/v1"
)
task1 = Task(
description="Research AI trends",
agent=researcher,
expected_output="Research summary"
)
task2 = Task(
description="Write article based on research",
agent=writer,
expected_output="Article"
)
agents = PraisonAIAgents(agents=[researcher, writer], tasks=[task1, task2])
result = agents.start()