YUNOVA · AI Agents · Module 2: Tools and function calling

Returning the result to the model

Notes for offline study · 30 November 2026

Returning the result to the model

Key points

  • Tool चलाने के बाद उसका result बातचीत में वापस model को भेजा जाता है, उसी tool call से जोड़कर।
  • Model इस result को पढ़कर या तो अंतिम जवाब देता है या अगला tool call माँगता है।
  • Error हो तो भी साफ़ error message लौटाएँ, ताकि model समझ सके और दूसरा रास्ता अपना सके।
  • बहुत बड़ा result छोटा करके भेजें, ताकि context ज़रूरत से ज़्यादा न भरे।

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