AI_Dev_Type#Tool use makes an AI agent part of an operational system, so a failed step needs a destination. Decide whether the agent should retry, request approval or return control to the application. agentic AI development. Keep state transitions visible enough to reconstruct why a tool was called and what data it received. A human handoff should include the last successful action and the unresolved condition, not a generic error. This design limits repeated calls and prevents an uncertain model response from silently becoming an external action.