Agents

Agents & Tool Calling interview questions

The agents & tool calling questions that keep coming up in AI engineer interviews. The first 3 come with full answers.

Updated 2026-09-05

01

What is the repeating loop an agent runs, and when does it stop?

An agent runs the ReAct loop: a Thought (reason about what to do next), an Action (call a tool), and an Observation (the result fed back). It keeps cycling — think, act, observe, think again — building up what it has learned, and it stops when it has gathered enough to write a final answer (or when a safety cap like a step limit forces it to). That loop is why an agent can answer things it couldn't possibly know up front: it discovers the pieces one at a time.
02

In tool calling, what does the model emit, who runs the function, and how does the result get back?

The model emits a request — the tool's name plus filled-in arguments as JSON — and then pauses; it never executes anything itself. Your code sees that request, runs the real function, and appends two things to the conversation: the model's own request and a tool_result tied to it by an id. Then you call the model again with the longer message history, and now it can read the result and decide the next move. The growing transcript is the agent's working memory.
03

What do the Thought, Action, and Observation steps of ReAct each correspond to?

Thought is the model reasoning out loud about what to do next — the "reason" half of ReAct. Action is the "act" half: an actual tool call (a function name plus arguments). Observation is what your code hands back — the tool's result. The model reads the observation, forms the next thought, and the cycle continues. Interleaving reasoning with actions (the 2022 ReAct paper's finding) beats doing either alone.

Also asked in interviews

These 3 run inside the bootcamp as recall drills and voice mock interviews. You answer, the AI grades.

Knowing an answer and saying it under pressure are two different days. Inside Skillumen you answer these out loud and get graded on the spot. Foundations is free.

Try it free →

The open-source companion list, Awesome AI Engineer Interview Questions, curates 105 of these on GitHub.