快速结论:该报错通常出现在 Dify 自托管源码部署中打开或加载 Agent v2(Agent Composer)时,API 服务在解析 AgentSoulConfig 配置时触发 pydantic 校验失败,抛出 [Agent v2]pydantic_core._pydantic_core.ValidationError: 3 validation errors for AgentSoulConfig。优先排查 Dify 是否为最新 main 版本,以及服务端是否存在旧版 Agent 草稿数据残留。
适用环境:Dify main 分支(2026.7.3 版本)、Self Hosted(Source 源码方式);从堆栈可见 API 运行于 Python 3.12 虚拟环境。Issue 未涉及 CUDA、显卡等硬件信息,不做补充
参考来源
AI 工具推荐
想把多个 AI 模型放在一个入口?
GamsGo AI 集成 ChatGPT、DeepSeek、Gemini、Claude、Midjourney、Veo 等常用模型,适合写作、绘图、视频和日常 AI 工作流。
推广链接:通过此链接购买,我可能获得佣金,不影响你的价格。
这个方案解决了吗?
可以继续搜索完整报错,或查看同一工具的其他排查指南。
![[Bug] Local browser test traces can exhaust disk space](https://www.chat-gpts.plus/wp-content/uploads/2026/11/46157-6577dbee-768x403.jpg)

![[Bug]: Scale-out `/render` endpoints and `/inference/v1/generate` ignore the `X-Vllm-Priority` header](https://www.chat-gpts.plus/wp-content/uploads/2026/11/67007-e3d022c9-768x403.jpg)