F

Function Calling

An LLM capability to output structured requests to external functions or APIs, enabling AI to take actions like searching databases or executing code.

In-Depth Explanation

Function calling (also called tool use) is a capability that allows LLMs to output structured requests to external functions, tools, or APIs. This bridges the gap between AI understanding and AI action.

How function calling works:

  1. Define available functions with parameters
  2. User sends a request
  3. LLM decides if a function is needed
  4. LLM outputs a structured function call
  5. Your code executes the function
  6. Results are returned to the LLM
  7. LLM generates final response using results

Function definition includes:

  • Name: What the function is called
  • Description: What it does (helps LLM decide when to use it)
  • Parameters: Input schema with types and descriptions
  • Required vs optional parameters

Common function calling use cases:

  • Database queries
  • API integrations
  • Calculations
  • Web searches
  • File operations
  • System actions

This capability transforms chatbots into agents that can take real actions, not just provide information.

Business Context

Function calling transforms chatbots into capable agents that can check inventory, process orders, or query your systems in real-time.

How Clever Ops Uses This

We implement function calling for Australian businesses to create AI assistants that can actually do things - check orders, update records, send notifications, and integrate with business systems.

Example Use Case

"AI determines it needs to check order status and outputs: {"function": "get_order", "order_id": "12345"} which your code executes against your database."

Frequently Asked Questions

Category

integration

Need Expert Help?

Understanding is the first step. Let our experts help you implement AI solutions for your business.

Ready to Implement AI?

Understanding the terminology is just the first step. Our experts can help you implement AI solutions tailored to your business needs.

FT Fast 500 APAC Winner|500+ Implementations|Harvard-Educated Team