Files

24 lines
497 B
Python

# praisonai: skip=true
from praisonaiagents import Agent, Task, AgentTeam
agent = Agent(
instructions="You are a loop agent that creating a loop of tasks.",
llm="gpt-4o-mini"
)
task = Task(
description="Create the list of tasks to be looped through.",
agent=agent,
task_type="loop",
input_file="tasks.csv"
)
agents = AgentTeam(
agents=[agent],
tasks=[task],
process="workflow",
execution={"max_iter": 30},
)
if __name__ == "__main__":
agents.start()