Koog's Structured Output API ensures LLM responses conform to defined Kotlin data classes via JSON schema generation and structured requests.
Data structures use annotations like @Serializable, @SerialName, and @LLMDescription on classes, properties, nested objects, lists, maps, enums, and sealed classes for polymorphism. The API handles response validation for reliable, formatted data in AI applications.