passdrill
AI & LLM Engineering · AI Agents & Tool Use · Card 001/012 easy

A support-ticket assistant has access to a `close_ticket` tool. A user asks it to close ticket #482, and the model's response includes a request naming the `close_ticket` tool with the argument `{"ticket_id": 482}`. In a typical tool-use (function-calling) architecture, what happens next?

  1. The model opens a connection to the ticketing system itself and closes the ticket directly, since naming the tool already performs the action
  2. The calling application, not the model, executes the `close_ticket` function against the ticketing system, then sends the function's result back to the model in a new message so it can continue the conversation
  3. The ticketing system's own API silently intercepts the model's raw output and decides on its own whether to run the operation, without any code in the calling application being involved
  4. The request is discarded, because models are never permitted to reference a tool's name in their output; only a human working outside the conversation can trigger the close action
Next card → Shuffle