Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Mixing deterministic Python transforms with AI steps
Run
from praisonai import Agent, AgentFlow def normalize_input(ctx): return ' '.join(ctx.input.strip().split()) def tag_output(ctx): return f'VALIDATED -> {ctx.previous_result.strip()}' classifier = Agent(name='Classifier', instructions='Reply with one word: billing or technical.', output='silent') flow = AgentFlow(steps=[normalize_input, classifier, tag_output]) print(flow.start(' DOUBLE CHARGE on invoice 88 ')['output'])
Press Run. The result appears here.
Esc
Search in
All
Docs
University