Library · Building an AI Agent · 6.12
DESIGN FAILURE BEHAVIOR
1 min read
The Agent needs to know when it must stop.
For example:
If important data is missing:
- Do not guess.
- State clearly which data is missing.
- Ask for it to be supplied or use a Tool.
If a Tool fails:
- Do not simulate the result.
- Report the error.
If the request is out of scope:
- Do not expand the task on its own.
Failure Behavior should be designed from the start, not added only after the Agent gets something wrong.
