Class JsonSchema.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.JsonSchema.Builder
- Enclosing class:
- JsonSchema
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
- Parameters:
name
- The name of the response format.
-
description
- Parameters:
description
- A description of what the response format is for, used by the model to determine how to respond in the format.
-
schema
-
strict
- Parameters:
strict
- Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
-
build
-