Takaisin sanastoon Teknologia

Funktiokutsut

Tekoälymallien kyky kutsua strukturoidusti ulkoisia funktioita ja API-rajapintoja vastauksen tuottamisen aikana.

What Is Function Calling?

Function calling (also known as tool use) is a capability of modern language models that allows them to interact with external systems by generating structured requests to predefined functions. Instead of only producing text, the model can decide when to call a function, select the appropriate one from available options, and generate the correct parameters. The function executes externally, and its result is fed back to the model for further reasoning.

How It Works

This capability transforms language models from text generators into intelligent orchestrators that can query databases, call APIs, perform calculations, search documents, send emails, and execute virtually any programmatic action. The model acts as a reasoning layer that understands user intent and translates it into concrete actions.

Enterprise Impact

Developers provide the model with function definitions including names, descriptions, and parameter schemas. When processing a user request, the model determines whether a function call is needed, generates a structured call with appropriate arguments, and pauses for execution. After receiving the function's result, the model incorporates that information into its response. Multiple sequential or parallel function calls can be chained to accomplish complex tasks.