---
title: "Comment by Muhamed Fazal Ps on \"Day 04: Stop parsing prose. Make the model return a struct\" | Hashnode"
description: "Passing a Pydantic schema directly into provider structured outputs uses grammar-constrained CFG decoding at the logit level, eliminating regex hallucination wi"
url: "https://hashnode.com/posts/stop-parsing-prose/6ae0e5ff407874d8b565d81f/comment/6ae0ffbb330e4d0d7d9a3249"
---

[Discussion](https://hashnode.com/posts/stop-parsing-prose/6ae0e5ff407874d8b565d81f)

Comment [Day 04: Stop parsing prose. Make the model return a struct](https://hashnode.com/posts/stop-parsing-prose/6ae0e5ff407874d8b565d81f)

[Muhamed Fazal Ps](https://hashnode.com/@fazaleee123cr7)

[Oct 27](https://hashnode.com/posts/stop-parsing-prose/6ae0e5ff407874d8b565d81f/comment/6ae0ffbb330e4d0d7d9a3249)

Passing a Pydantic schema directly into provider structured outputs uses grammar-constrained CFG decoding at the logit level, eliminating regex hallucination without requiring retry overhead.
