Agents & tools

Function Calling

A feature that lets an AI model trigger specific functions or APIs in your app instead of just returning text.

01 ——

In plain English

Function calling (also called tool use) lets you tell an AI model about functions it can invoke — for example, get_weather(city) or search_database(query). When the model decides it needs that information, it outputs a structured request for your code to execute, then uses the result in its reply.

Example flow:

  1. User asks: "What's the weather in Tokyo?"
  2. Model outputs: { "function": "get_weather", "args": { "city": "Tokyo" } }
  3. Your code calls the real weather API
  4. Model receives the result and writes a natural language response

This is how AI assistants do anything beyond text — searching the web, reading calendars, updating databases, or controlling software.

02 ——

Related terms

Back to glossaryLast reviewed May 2026
Vol. 4 · Issue 19 · Last reviewed 2026-05-30

Sign up for our newsletter

Receive weekly updates so you can stay up-to-date with the world of AI