I have exactly the same problem. I’ve set up JSON output parser with configured schema and still getting this error even when the response fits schema.
Hey all! Just heard from the AI team that generally an AI Agent is going to be less reliable in using Structured Output parser. Guidance for today is if you need AI Agent with structured output then first have agent step, then afterwards pipe it’s output into a Basic LLM Chain with structured output parser.
If you don’t need an AI Agent, use a Basic LLM chain to start with (with structured output).
The team is going to be picking this issue up soon to improve structured output nonetheless, as we see how important it is.