GenAIWiki
Agents

Function calling

Function calling is the API pattern where a model returns a named function and arguments for the application to execute.

Expanded definition

Function calling, also called tool calling, lets a model request that your code run a declared function with JSON arguments. The application must validate, authorize, and execute the call, then return the result. Prefer schema-constrained arguments when the provider supports them. This glossary entry is the OpenAI-style name; GenAIWiki's primary agent-tool page is tool calling. Do not execute model-proposed calls that fall outside an allowlist.

Related terms

Explore adjacent ideas in the knowledge graph.

Function calling FAQ

What is Function calling?

Function calling is the API pattern where a model returns a named function and arguments for the application to execute.

How is Function calling used in AI systems?

Function calling, also called tool calling, lets a model request that your code run a declared function with JSON arguments. The application must validate, authorize, and execute the call, then return the result. Prefer schema-constrained arguments when the provider supports them. This glossary entry is the OpenAI-style name; GenAIWiki's primary agent-tool page is tool calling. Do not execute mod...

Related

Comparisons, tools, and models that connect to this idea.