Pydantic model, JSON Schema, or callable (function signature) for structured JSON generation.
Outlines can generate JSON output that follows a specified structure, which is useful for:
You can provide:
The generated JSON will adhere to the specified structure.
For more details, see: https://dottxt-ai.github.io/outlines/reference/generation/json/