Function Calling in Practice
Tools turn a model that talks into a system that does: it looks up orders, queries databases, runs code and calls APIs. Function calling is the mechanism: you describe tools with schemas, the model emits structured calls, and your code executes them.
In this lesson
- The protocol
- Defining tools well
- The execution loop (OpenAI-style API)
- Controlling tool use
- Safety for tools with side effects
- Evaluating tool use
This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.