Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Conditional when and repeat
Run
from praisonai import Agent, AgentFlow, repeat editor = Agent(instructions='Shorten and sharpen the text to under 12 words.') flow = AgentFlow(steps=[repeat(editor, max_iterations=2)]) print(flow.start('PraisonAI makes it very easy and straightforward to build AI agents quickly.'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University