> ## Documentation Index
> Fetch the complete documentation index at: https://cndoc-langchain.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OUTPUT_PARSING_FAILURE

[输出解析器](https://reference.langchain.com/python/langchain_core/output_parsers/)无法按预期处理模型输出。

<Note>
  某些预构建结构（如旧版 LangChain 代理和链）可能在内部使用输出解析器，因此即使您没有显式实例化和使用输出解析器，也可能看到此错误。
</Note>

## 故障排除

* 如果可能，请考虑使用工具调用或其他结构化输出技术，无需输出解析器即可可靠地输出可解析的值。
* 在提示中添加更精确的格式说明。
* 如果您使用的是较小或能力较弱的模型，请尝试使用更强大的模型。

***

<div className="source-links">
  <Callout icon="terminal-2">
    [将这些文档](/use-these-docs)通过 MCP 连接到 Claude、VSCode 等，以获取实时答案。
  </Callout>

  <Callout icon="edit">
    [在 GitHub 上编辑此页面](https://github.com/langchain-ai/docs/edit/main/src/oss/langchain/errors/OUTPUT_PARSING_FAILURE.mdx) 或 [提交问题](https://github.com/langchain-ai/docs/issues/new/choose)。
  </Callout>
</div>
