Skip to content
Preptima

Agents & Tool Use interview questions

Tool calling and schema design, planning loops and step budgets, idempotency and retries, handing control back to a human, and when an agent is the wrong shape.

3 questions in RAG, Retrieval & Agents.

hard3

hardDesignScenario

How do you stop an agent from looping or running away?

Enforce step, token, wall-clock and monetary budgets in the orchestrator rather than in the prompt, detect repetition and lack of progress as separate conditions, and require an approval bound to specific arguments before any irreversible action. Exhausting a budget should hand back partial work, not vanish.

5 minmid, senior, staff
hardDesignConcept

When is an agent the wrong shape for a problem?

Whenever you can draw the flowchart. A fixed pipeline with a model at the two steps needing judgement is cheaper, testable and debuggable, and per-step error compounds across a planning loop. Reach for an agent when the tool sequence is open-ended and the environment verifies the work.

5 minmid, senior, staff, lead
hardDesignConcept

How do you design the tools an agent calls?

Give each tool one narrow purpose with a self-describing schema, return failures as structured results the model can act on rather than raising, take an idempotency key on anything that mutates, and put validation and authorisation in the executor because arguments produced by a model are untrusted input.

5 minmid, senior, staff