AI Dictionary › Prompting

Function Calling

Definition

Function calling is a model's ability to output, instead of free text, a structured call to a function you have defined, with a name and arguments in JSON. It does not execute the function: it emits the intent to call it, and you (or your code) run it and return the result. Example: you define get_weather(city, date); the user asks "what's the weather in Rome tomorrow?" and the model returns {"name":"get_weather","arguments":{"city":"Rome","date":"2025-07-19"}}. Your backend calls the real weather API and feeds the result back for the final answer.

Use it to connect the model to tools, APIs and databases reliably: bookings, calculations, queries, automations. It is the technical foundation of agents and replaces brittle free-text parsing with a structured interface.

Definizione (italiano)

Il function calling è la capacità di un modello di produrre, invece di testo libero, una chiamata strutturata a una funzione che tu hai definito, con nome e argomenti in formato JSON. Non esegue la funzione: emette l'intenzione di chiamarla, e sei tu (o il tuo codice) a eseguirla e a restituire il risultato. Esempio: definisci la funzione get_meteo(citta, data); l'utente scrive "che tempo farà a Roma domani?" e il modello restituisce {"name":"get_meteo","arguments":{"citta":"Roma","data":"2025-07-19"}}. Il tuo backend chiama l'API meteo reale e passa la risposta al modello per la formulazione finale.

Usalo per collegare il modello a strumenti, API e database in modo affidabile: prenotazioni, calcoli, query, automazioni. È il fondamento tecnico degli agenti e sostituisce il fragile parsing di testo libero con un'interfaccia strutturata.

Related terms

More in Prompting

From our network

AGORÀ Intelligence — Enterprise AI Governance Platform

Govern AI at scale: policies, adoption and measurable results on your data. Built for boards and C-suite.

Visit agora-intelligence.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

📱 Download the Android app (beta) iOS coming soon

Say what you mean. Get what you need.

Grace Certified — the AI coach that trains and certifies your prompt engineering — by Agora Intelligence.