EngineeringUpdated 2026-10-24

Function Calling

A model selects and calls external functions based on user intent, then uses the result in its answer.

#函数调用#工具#Agent

In plain language

Function calling lets models query databases, call APIs and operate software rather than only generate text. The model outputs structured arguments and the application executes the function. Key design points include validation, permissions, timeouts, retries and human confirmation.

Example

A user asks about an order; the model calls get_order(order_id) and answers from the result.

Recommended tools

Related terms