AI ART Discover · Learn · Create
Plain English Definition

What does “Function Calling” mean?

Core Definition

A model capability to generate structured calls that trigger external tools or APIs.

Operational Mechanism

How Function Calling Works

1

You ask: weather in Paris?

2

Model outputs a structured call: get_weather('Paris')

3

Your code runs the function

4

Result goes back to the model

5

Model writes the final answer

6

back to the start.

Real-World Scenario

Practical Example

A chatbot cannot know today's weather by itself. With function calling, it returns a structured request such as get_weather with the city, the app runs it, and the model uses the returned data to answer.

Core Significance

Why It Matters

It connects language models to live data and real actions in a predictable format. The application, not the model, decides whether to execute each call.

Expert Q&A

Common Questions About Function Calling

Q: Does the model run the function?

No. It only produces the request. Your software executes it and returns results.

Q: Is it the same as tool use?

They are closely related. Function calling is a common way to implement tool use through a defined schema.

Q: What can go wrong?

The model might choose the wrong tool or arguments, so apps should validate inputs and limit what calls can do.