Class ResponseFormat

java.lang.Object
org.springframework.ai.openai.api.ResponseFormat

public class ResponseFormat extends Object
An object specifying the format that the model must output. Setting the type to JSON_SCHEMA, enables Structured Outputs which ensures the model will match your supplied JSON schema. Learn more in the Structured Outputs guide.
References: OpenAi API - ResponseFormat, JSON Mode, Structured Outputs vs JSON mode
Since:
1.0.0
Author:
Christian Tzolov