YUNOVA · AI Agents · Module 9: Agents with the OpenAI and Claude SDKs
The first tool call in Python
The first tool call in Python
Key points
- Tool को एक नाम, description और JSON Schema वाले parameters के साथ define करके API request में भेजा जाता है।
- Model ज़रूरत समझे तो जवाब में tool call लौटाता है, जिसमें tool का नाम और arguments होते हैं।
- आपका Python code उसी नाम का function arguments के साथ चलाता है और result model को वापस भेजता है।