Class ResponseFormat
java.lang.Object
org.springframework.ai.openai.api.ResponseFormat
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
References: OpenAi API - ResponseFormat, JSON Mode, Structured Outputs vs JSON mode
- Since:
- 1.0.0
- Author:
- Christian Tzolov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classJSON schema object that describes the format of the JSON object.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseFormat.Builderbuilder()booleangetType()inthashCode()voidsetJsonSchema(ResponseFormat.JsonSchema jsonSchema) voidvoidsetType(ResponseFormat.Type type) toString()
-
Constructor Details
-
ResponseFormat
public ResponseFormat() -
ResponseFormat
-
-
Method Details