Skip to main content

Tool Use (Function Calling)

Tool use, also called function calling, is the ability of an AI model to invoke external tools, APIs, or functions during a conversation to perform actions beyond text generation. Instead of just producing text responses, the model can search the web, run code, query databases, send emails, or interact with any external service that exposes a callable interface.

Example

You ask: "What's the weather in Tokyo right now?" The model recognizes this requires live data, calls a weather API function with the parameter "Tokyo," receives the current temperature and conditions, and incorporates that real data into its response.

Put this into practice

Build polished, copy-ready prompts in under 60 seconds with SurePrompts.

Try SurePrompts