passdrill
AI & LLM Engineering · Building with LLM APIs · Card 001/012 easy

When an LLM API's "function calling" (tool use) feature returns a function call in its response, what actually happens next in a typical integration?

  1. The API executes the function directly on the vendor's infrastructure and returns only the final answer text, with no involvement from the calling application
  2. The response contains a structured description of the function name and the arguments the model wants to pass; the calling application must run the actual function itself and send the result back in a follow-up request
  3. The model runs the function inside its own weights using an internal code interpreter, producing the function's return value without any external execution step
  4. The request fails with an error unless the function has already been executed and its output included as part of the original prompt
Next card → Shuffle