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:
- Define available functions with parameters
- User sends a request
- LLM decides if a function is needed
- LLM outputs a structured function call
- Your code executes the function
- Results are returned to the LLM
- 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
Related Resources
AI Agents
Autonomous AI systems that can perceive their environment, make decisions, and t...
API (Application Programming Interface)
A set of protocols and tools that allows different software applications to comm...
Orchestration
Coordinating multiple AI components, models, or agents to work together in a wor...
AI Agent Development Guide: Building Autonomous Systems That Take Action
Complete guide to developing AI agents that can perceive, reason, and act autonomously. Learn agent ...
OpenAI API Deep Dive: Building AI Applications in Australia
Master the OpenAI API for production applications. From GPT-4 to embeddings, learn how Australian bu...
Learning Centre
Guides, articles, and resources on AI and automation.
AI & Automation Services
Explore our full AI automation service offering.
AI Readiness Assessment
Check if your business is ready for AI automation.
