Glossary

What is Function calling?

In Turkish: Fonksiyon çağırma (araç kullanımı) · Topic: Using AI

A language model stating, in a structured form, which function a developer has defined, such as a weather lookup or a database search, it wants to run and with what values. This lets the model work together with outside systems.

How does it work?

The developer gives the model the name, description and parameters of the functions it may use. If the user's request needs a function, the model produces a call request instead of writing a plain answer. The model does not run the function itself; the application does, sends the result back, and the model uses it to write the final reply. If needed, this loop repeats several times. This mechanism underlies the ability of AI agents to get things done in the outside world.

Why does it matter?

On their own, language models cannot reach current information, do reliable calculations or start actions in a system. Function calling gets around these limits and turns the model from a conversation partner into a component that does work. It is the technical core of the agent and tool-use discussions in the news.

Example

When a user asks 'Will it rain in Istanbul tomorrow?', the model asks to call the weather function with the city and the day; the app passes the returned data to the model, which then writes the answer.

FAQ

Does the model run the function itself?

No. The model only produces a request saying which function to call and with which parameters. The application wrapped around the model runs the function and sends back the result.

Is function calling safe?

That depends on which functions are allowed. A common safeguard is to require human approval for high-impact actions such as deleting data or making payments, and to give the model only the permissions it needs.

All terms