YUNOVA · AI Agents · Module 2: Tools and function calling
Reading the model's tool call and running it
Reading the model's tool call and running it
Key points
- Model के response में tool call का नाम और arguments आते हैं; आपका code इन्हें पढ़ता है।
- Arguments को चलाने से पहले validate करें: type सही है या नहीं, ज़रूरी fields हैं या नहीं।
- नाम के आधार पर सही function चलाएँ और error आने पर उसे पकड़ें, ताकि पूरा agent न रुके।