Library · Building an AI Agent · 6.16
DEBUG THE AGENT
1 min read
When the Agent answers incorrectly, don’t fix everything at once.
Check layer by layer:
1. Input
Is the input data correct?
2. Model
Is the model capable enough?
3. Instruction
Is the Rule clear?
4. Knowledge
Is it sufficient and correct?
5. Retrieval
Does the Agent retrieve the right Knowledge?
6. Tools
Does the Tool return the right data?
7. Workflow
Does the Agent skip steps?
8. Output
Is the error in the analysis or only in the presentation?
Fix the layer that causes the error.
