Function Calling — AI Glossary

Function calling is an AI model capability where the model analyzes a user's prompt and generates structured JSON specifying which external function to invoke and what arguments to pass. The model does not execute the function itself — it outputs the function name and parameters, and your application code handles the actual execution and returns results for the model to incorporate into its response.