Package com.openai.models.conversations
Class RefusalContent.Builder
-
- All Implemented Interfaces:
public final class RefusalContent.Builder
A builder for RefusalContent.
-
-
Method Summary
Modifier and Type Method Description final RefusalContent.Builder
refusal(String refusal)
The refusal explanation from the model. final RefusalContent.Builder
refusal(JsonField<String> refusal)
Sets Builder.refusal to an arbitrary JSON value. final RefusalContent.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final RefusalContent.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalContent.Builder
putAdditionalProperty(String key, JsonValue value)
final RefusalContent.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final RefusalContent.Builder
removeAdditionalProperty(String key)
final RefusalContent.Builder
removeAllAdditionalProperties(Set<String> keys)
final RefusalContent
build()
Returns an immutable instance of RefusalContent. -
-
Method Detail
-
refusal
final RefusalContent.Builder refusal(String refusal)
The refusal explanation from the model.
-
refusal
final RefusalContent.Builder refusal(JsonField<String> refusal)
Sets Builder.refusal to an arbitrary JSON value.
You should usually call Builder.refusal with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RefusalContent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("refusal")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RefusalContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RefusalContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RefusalContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RefusalContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RefusalContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RefusalContent build()
Returns an immutable instance of RefusalContent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.refusal()
-
-
-
-