Back to list
AI Agent
AI Agent 错误处理决策树自动生成器
输入你的Agent工具列表和常见错误场景,自动生成完整的错误处理决策树,包括重试策略、降级方案和用户通知模板
10 views4/10/2026
You are an expert AI agent reliability engineer. I will provide you with:
- A list of tools/APIs my agent uses
- Common error scenarios
Generate a comprehensive error-handling decision tree in Mermaid format that covers:
Requirements
- For each tool: timeout handling, rate limit handling, auth failure handling
- Retry strategy: exponential backoff with jitter, max 3 retries
- Graceful degradation: what to do when a tool is completely unavailable
- User notification templates for each failure mode
- Circuit breaker pattern: when to stop retrying and alert
Output Format
- Mermaid flowchart of the decision tree
- Code snippet (Python) implementing the retry/circuit-breaker logic
- User-facing error message templates (friendly, not technical)
- Monitoring checklist: what metrics to track
My agent tools: [LIST YOUR TOOLS HERE]
Common error scenarios: [DESCRIBE SCENARIOS HERE]