Function Calling and Tools

AI Agents and Tool Use Intermediate 4 min read Published
In this lesson

Function calling (also called tool use) is how an LLM asks your code to do something. The model never runs code itself. It replies with “please call get_weather with {"city": "Pune"}“, your program runs the function, and you send the result back. This lesson shows the exact messages.

🎬 The waiter and the kitchen

🔒 This is a premium lesson

It is part of the Gen AI Developer career track.

🎬 Live animations · 🧪 Tested code · 💼 Projects · 🎓 Certificate

See the track

Already a member? Sign in

Progress is saved in this browser. Create a free account to keep it on every device.