Package de.espirit.firstspirit.ai.dto
Interface ResponseFormatJsonSchema
- All Superinterfaces:
ResponseFormat
Definition of a structured output format for a
Request.- Since:
- 5.2.251303
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCreates a new builder for creating aResponseFormatJsonSchemadefinition. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull ResponseFormatJsonSchema.Builderbuilder()Creates a new builder for creating aResponseFormatJsonSchemadefinition.@NotNull JsonSchemaReturns a JSON schema descriptor for a structured output.@NotNull StrictModeReturns the strict mode to be used when using structured output using a pre-defined JSON schema.
-
Method Details
-
builder
Creates a new builder for creating aResponseFormatJsonSchemadefinition.- Returns:
- The new builder instance.
- Since:
- 5.2.251303
-
getSchema
Returns a JSON schema descriptor for a structured output.- Returns:
- The JSON schema descriptor, if available.
- Since:
- 5.2.251303
-
getStrictMode
Returns the strict mode to be used when using structured output using a pre-defined JSON schema.- Returns:
- The strict mode to be used for structured outputs.
- Since:
- 5.2.251303
-