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
Modifier and TypeClassDescriptionstatic final class
static class
JSON schema object that describes the format of the JSON object.static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResponseFormat.Builder
builder()
boolean
getType()
int
hashCode()
void
setJsonSchema
(ResponseFormat.JsonSchema jsonSchema) void
void
setType
(ResponseFormat.Type type) toString()
-
Constructor Details
-
ResponseFormat
public ResponseFormat() -
ResponseFormat
-
-
Method Details