Praison AI
Platform
Use Cases
Bot
Partners
Community
University
Docs
Get Started
Loop
Run
from praisonai import Agent, AgentFlow, Task, loop processor = Agent(instructions="Repeat the input word, then two more words.") step = Task(name="Processor", action="{{item}}", agent=processor) flow = AgentFlow( steps=[loop(step, over="items")], variables={"items": ["search", "memory", "tools"]}, ) result = flow.start() for item in result["steps"]: print(item["output"])
Press Run. The result appears here.