Function Calling
Last updated
What is Function Calling?
LLM native “function calling” lets a large language model decide when to run a piece of code and which inputs to pass to it. You first tell the model what functions are available. For each one, you give a short name, a short description, and a list of arguments with their types. During a chat, the model can answer in JSON that matches this schema instead of plain text. Your wrapper program reads the JSON, calls the real function, and then feeds the result back to the model so it can keep going. This loop helps an agent search the web, look up data, send an email, or do any other task you expose. Because the output is structured, you get fewer mistakes than when the model tries to write raw code or natural-language commands.
Free resources to learn Function Calling
More in stage 13: Integration Patterns
Function Calling: common questions
Can I learn Function Calling in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Function Calling in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Function Calling tutorial for beginners?
It is lesson 88 of 155 in the free Backend roadmap, in stage 13, Integration Patterns. If you are new to Backend, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.