Agent: Recover from Tool Failure
Question Variations
- "How does an agent distinguish a timeout from a failed action?"
- "What state must survive an agent restart?"
- "A travel-booking tool times out after possibly reserving a flight. How should the agent recover?"
Why This Is Asked
This tests whether a candidate can make an agent recover safely from ambiguous external side effects. Interviewers assess durable workflow state, idempotency, bounded retry, reconciliation, and honest user-visible status.
Key Concepts
- Durable state: Persist workflow step, inputs, and external operation IDs.
- Idempotency: Use stable operation keys and query status before retrying.
- Bounded recovery: Limit retries and escalate unresolved ambiguity.
- User visibility: Report pending or failed state instead of fabricating completion.
Question Variations
- “How does an agent distinguish a timeout from a failed action?”
- “What state must survive an agent restart?”
- “A travel-booking tool times out after possibly reserving a flight. How should the agent recover?”