Structured Output With Tool Use
Summary: Asking an LLM to "return JSON" in the prompt is just a formatting hint the model can ignore; tool use forces the model through a real schema, and a validation library still checks the values afterward.
Summary: Asking an LLM to "return JSON" in the prompt is just a formatting hint the model can ignore; tool use forces the model through a real schema, and a validation library still checks the values afterward.