Get startedGet started for free

Customizing our agent

This exercise is part of the course

Building AI Agents with Haystack

View Course

Exercise instructions

Your agent is getting an upgrade! In this step, you'll structure what the agent sees, what it remembers, and how it shows its work.

  • Format tool outputs as strings before they reach the LLM.
  • Define the agent’s state schema to store the search results.
  • Stream the agent’s reasoning process in real time.


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.


Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise