Class ResponseJsonSchema.Builder
- java.lang.Object
- 
- com.oracle.bmc.generativeaiinference.model.ResponseJsonSchema.Builder
 
- 
- Enclosing class:
- ResponseJsonSchema
 
 public static class ResponseJsonSchema.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseJsonSchemabuild()ResponseJsonSchema.Buildercopy(ResponseJsonSchema model)ResponseJsonSchema.Builderdescription(String description)A description of what the response format is for, used by the model to determine how to respond in the format.ResponseJsonSchema.BuilderisStrict(Boolean isStrict)Whether to enable strict schema adherence when generating the output.ResponseJsonSchema.Buildername(String name)The name of the response format.ResponseJsonSchema.Builderschema(Object schema)The schema used by the structured output, described as a JSON Schema object.
 
- 
- 
- 
Method Detail- 
namepublic ResponseJsonSchema.Builder name(String name) The name of the response format.Must be a-z, A-Z, 0-9, or contain underscores and dashes. - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic ResponseJsonSchema.Builder description(String description) A description of what the response format is for, used by the model to determine how to respond in the format.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
schemapublic ResponseJsonSchema.Builder schema(Object schema) The schema used by the structured output, described as a JSON Schema object.- Parameters:
- schema- the value to set
- Returns:
- this builder
 
 - 
isStrictpublic ResponseJsonSchema.Builder isStrict(Boolean isStrict) 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. - Parameters:
- isStrict- the value to set
- Returns:
- this builder
 
 - 
buildpublic ResponseJsonSchema build() 
 - 
copypublic ResponseJsonSchema.Builder copy(ResponseJsonSchema model) 
 
- 
 
-