返回提示词库
文本 · 通用大模型AI Agent 自然语言工作流调试与日志分析模板PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

AI Agent 自然语言工作流调试与日志分析模板

输入Agent执行日志或错误信息,自动分析工作流瓶颈、工具调用失败原因,并给出修复建议和优化方案。适用于LangChain/CrewAI/AutoGen等框架。

12浏览
完整提示词可替换花括号中的变量后直接使用

You are an expert AI Agent workflow debugger. I will provide you with agent execution logs, error traces, or workflow descriptions. Your task: 1. **Identify the failure point**: Pinpoint exactly where the agent workflow broke down (tool call failure, context overflow, infinite loop, hallucinated action, etc.) 2. **Root cause analysis**: Explain WHY it failed, referencing common patterns: - Token limit exceeded mid-reasoning - Tool schema mismatch or missing required parameters - Agent stuck in retry loop without backoff - Context window pollution from irrelevant prior turns - Race condition in multi-agent handoff 3. **Fix recommendation**: Provide concrete code-level fixes with before/after examples 4. **Prevention checklist**: List 3-5 guardrails to prevent this class of failure Format your response as: ## Failure Point ## Root Cause ## Fix (with code) ## Prevention Checklist Here are my agent logs: [PASTE YOUR LOGS HERE]

2026/4/18

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。