All jobs / AI engineer / AI Evals
AI engineer interview question · 3–5 years
Your assistant can call six tools. How do you evaluate whether it uses them correctly?
The strongest answer
Cases with an expected call: right tool — or none when none is needed — and valid, correct arguments, all checked in code, plus cases where it should ask for a missing detail rather than guess
Why it works
Exactly — selection, arguments and restraint are three separate failure modes, and all three are checkable without a judge.
What a good answer covers
- Grade the call, not only the answer.
- Right tool, or no tool.
- Arguments valid and correct.
- Include cases where it should ask.
Answers that fall short
- Close, but not the strongest: Check that every tool call in the eval run validates against that tool’s JSON schema
Schema-valid is necessary, not sufficient: a well-formed call to the wrong tool, or with the wrong customer id, validates perfectly. - Weak: Grade the final answer only; if the answer is right, the tool calls must have been right too
A right answer can come from a wrong or wasteful path, and a wrong call with side effects matters even when the text looks fine. - Red flag: Test it against the live tools in production and watch the logs for errors
Evaluating against live tools means your test cases send real emails and move real data. Use mocks or a sandbox.
Who gets asked this
More AI Evals questions
- Answers got worse after you changed the chunking in a RAG assistant. How do you evaluate the retriever on its…
- What is wrong with how you are measuring, and what do you change?
- Your offline eval score rose for three releases in a row. Over the same period, escalations from the…
- How do you evaluate a multi-step agent, where two correct runs can take completely different paths?
- An executive asks for “our hallucination rate” as one number for a board deck about your document-grounded…
- Why can’t you test an LLM feature with ordinary exact-match unit tests, and what do you do instead?
- What is a golden dataset for an LLM feature, and where do its cases come from?
- Your feature extracts supplier, date and total from invoices into JSON. A teammate proposes grading every…