Haystack8 min read
Building a Cost-Aware Agent with Hooks
Notebook by Bilge Yücel 🚀 Part of Haystack 3.0 Launch Week: five days of new drops (July 20–24). Every call to Agent.run() returns metadata alongside the agent’s reply. In this cookbook you’ll use that metadata, and Agent hooks, to enforce soft and hard budget policies.
By Haystack by deepset

Read the full story
Originally published by Haystack by deepset on Jul 22, 2026.
Comments
Sign in to join the discussion.