Skip to main content
Join us May 13th & May 14th at Interrupt, the Agent Conference by LangChain.
Buy tickets >
LangChain中文版文档 home page
Open source
Search...
⌘K
Ask AI
Ask AI
GitHub
Try LangSmith
Try LangSmith
Search...
Navigation
OUTPUT_PARSING_FAILURE
Deep Agents
LangChain
LangGraph
Integrations
Learn
Reference
Contribute
Python
概述
Get started
安装
快速入门
更新日志
核心理念
Core components
Agents
模型
Messages
工具
短期记忆
流式传输
结构化输出
Middleware
概述
预构建中间件
自定义中间件
Frontend
概述
Patterns
Integrations
Advanced usage
防护栏
运行时
上下文工程
Model Context Protocol (MCP)
人机协同
Multi-agent
检索
长期记忆
Agent development
LangSmith Studio
Test
智能体聊天界面
Deploy with LangSmith
部署
可观测性
On this page
故障排除
OUTPUT_PARSING_FAILURE
Copy page
Copy page
某个
输出解析器
未能按预期处理模型输出。
一些预构建的组件(如旧版 LangChain 代理和链)可能在内部使用输出解析器,因此即使你没有显式实例化或使用输出解析器,也可能遇到此错误。
故障排除
如果可能,考虑使用工具调用或其他结构化输出技术,以避免依赖输出解析器来可靠生成可解析的值。
在提示中添加更精确的格式说明。
如果你正在使用较小或能力较弱的模型,尝试换用能力更强的模型。
Edit this page on GitHub
or
file an issue
.
Connect these docs
to Claude, VSCode, and more via MCP for real-time answers.
⌘I
Assistant
Responses are generated using AI and may contain mistakes.