# Microsoft.Extensions.AI–Part VI–Structured Output

Microsoft.Extensions.AI supports structured output to force LLMs to return responses in specific JSON formats instead of free-form text. Developers can use generic methods like GetResponseAsync<T>() to automatically infer JSON schemas from C# classes, or manually define schemas using the ResponseFormat property in ChatOptions. This enables programmatic processing of LLM responses by ensuring consistent data structures.

### Table of contents

- [What is structured output?](https://api.daily.dev/r/fhDbd2XRk "What is structured output?")
- [Using structured output with Microsoft.Extensions.AI](https://api.daily.dev/r/fhDbd2XRk "Using structured output with Microsoft.Extensions.AI")
- [More information](https://api.daily.dev/r/fhDbd2XRk "More information")
