Skip to main content

OUTPUT_PARSING_FAILURE

还没翻译译自英文(docs.langchain.com)本页 5 段都还没译

An output parser was unable to handle model output as expected.

Note

Some prebuilt constructs like legacy LangChain agents and chains may use output parsers internally, so you may see this error even if you're not visibly instantiating and using an output parser.

Troubleshooting

  • Consider using tool calling or other structured output techniques if possible without an output parser to reliably output parseable values.
  • Add more precise formatting instructions to your prompt.
  • If you are using a smaller or less capable model, try using a more capable one.