YUNOVA · AI Agents · Module 6: Evaluation

Why agents need testing

Notes for offline study · 30 November 2026

Why agents need testing

Key points

  • एक ही input पर model हर बार थोड़ा अलग जवाब दे सकता है, इसलिए agent का व्यवहार जाँचना ज़रूरी है।
  • Prompt, model या tool बदलने से पुराने ठीक चल रहे काम बिगड़ सकते हैं।
  • Agent असली actions लेता है, इसलिए गलती का असर सिर्फ़ गलत text से कहीं ज़्यादा हो सकता है।
  • Trace एक run का पूरा रिकॉर्ड है: हर model call, tool call, inputs, outputs, समय और tokens।
  • Trace देखकर आप पता लगा सकते हैं कि agent किस step पर गलत हुआ।
  • LangSmith और Langfuse जैसे tools traces दिखाने के लिए इस्तेमाल होते हैं।
  • Correctness मापने के लिए जवाब को अपेक्षित नतीजे से मिलाएँ: exact match, नियम-आधारित जाँच या दूसरे LLM से grading (LLM-as-judge)।
  • Cost मुख्य रूप से tokens से तय होती है: input और output tokens, और हर step पर कितने model calls हुए।
  • Latency यानी जवाब में लगा समय भी मापें, क्योंकि ज़्यादा steps वाला agent धीमा और महँगा होता है।

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.

Notes: Why agents need testing | YUNOVA