Connecting tools to our agent
This exercise is part of the course
Building AI Agents with Haystack
Exercise instructions
Your agent is about to get much smarter. By giving it access to a live web search tool, you’re building a system that can reason, retrieve, and respond in real time.
- Run the
SerperDevWebSearchcomponent. - Convert the component into a tool the agent can use.
- Pass it to the agent so it can use the web to answer queries.
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