[How to: get models to return structured output](https://js.langchain.com/docs/how_to/structured_output/): LLM should read this page when (wanting to extract structured data from LLM outputs) (building applications that require specific JSON schema responses) (needing to parse LLM responses into a required format) (This page covers methods for getting structured data from models, including using the .withStructuredOutput() method with Zod or JSON schema, different output methods like function calling and JSON mode, handling raw outputs, and alternate approaches using prompting techniques with JsonOutputParser or custom parsing functions)

