Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Loop
Run
from praisonai import Agent, AgentFlow, Task, loop processor = Agent(instructions="Output only the input word.") step = Task(name="Processor", action="{{item}}", agent=processor) flow = AgentFlow( steps=[loop(step, over="items")], variables={"items": ["build", "deploy", "observe", "govern"]}, ) result = flow.start() print(len(result["steps"]), "iterations")
Press Run. The result appears here.
Esc
Search in
All
Docs
University