179 questions
No questions match those filters.
What is tool calling (function calling) in LLMs, and ho...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansTool calling lets a model decide when it needs an external capability and specify how to invoke it — but the model itself never runs anything. It outputs a structured object naming the function and its arguments; your application code reads that, actually executes the function, and feeds the result back to the model.
Given a get_stock_price(ticker) tool and the question “what’s Apple’s
stock price,” the model outputs something like
{"tool": "get_stock_price", "args": {"ticker": "AAPL"}}. Your code
runs that function, gets back a number, and passes it to the model,
which then produces the actual sentence the user sees.
The detail worth being precise about, because it’s the most common point of confusion: the LLM only decides which function and what arguments. It never executes code, calls an API, or touches a database directly — that entire step belongs to your application, and anything the model “did” is really something your code did on the model’s instruction.