Class ChatCompletionContentPartRefusal.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionContentPartRefusal.Builder
A builder for ChatCompletionContentPartRefusal.
-
-
Method Summary
-
-
Method Detail
-
refusal
final ChatCompletionContentPartRefusal.Builder refusal(String refusal)
The refusal message generated by the model.
-
refusal
final ChatCompletionContentPartRefusal.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 ChatCompletionContentPartRefusal.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 ChatCompletionContentPartRefusal.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionContentPartRefusal.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionContentPartRefusal.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionContentPartRefusal.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionContentPartRefusal.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionContentPartRefusal build()
Returns an immutable instance of ChatCompletionContentPartRefusal.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.refusal()
-
-
-
-