LoslegenKostenlos starten

Adding self-reflection to the workflow

Diese Übung ist Teil des Kurses

<Kurs>Building Agentic Workflows with LlamaIndex</Kurs>
Kurs ansehen

Übungsanweisungen

Let your workflow learn from its own output. Add a review loop that helps your agents reflect, revise, and aim for excellence.

  • At the write_report() step, store the answers in a variable named research.
  • At the review() step, call the review_agent to review the report.

Tip: Look out for CODE comments, they have been added to guide you on where to make changes in the code.



Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten