Skip to content
Klay

Tool calling

After this lesson you can: Give a model a function and let it decide when to call it.

First: What an AI agent actually is, Getting structured output you can parse

Watch

Notes

Tool calling means you describe one or more functions to the model, including their names, purposes, and input schemas, then ask the model to choose whether a function call is needed. The model does not directly execute the function. It produces a structured request like “call get_weather with city = London,” and your application code receives that request.

Unlock the full lesson notes, the exercises and the graded checkpoint - ₹5,000 once.