Package com.openai.models.responses
Class ResponseOutputRefusal.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputRefusal.Builder
A builder for ResponseOutputRefusal.
-
-
Method Summary
Modifier and Type Method Description final ResponseOutputRefusal.Builder
refusal(String refusal)
The refusal explanationfrom the model. final ResponseOutputRefusal.Builder
refusal(JsonField<String> refusal)
The refusal explanationfrom the model. final ResponseOutputRefusal.Builder
type(JsonValue type)
The type of the refusal. final ResponseOutputRefusal.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseOutputRefusal.Builder
putAdditionalProperty(String key, JsonValue value)
final ResponseOutputRefusal.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ResponseOutputRefusal.Builder
removeAdditionalProperty(String key)
final ResponseOutputRefusal.Builder
removeAllAdditionalProperties(Set<String> keys)
final ResponseOutputRefusal
build()
-
-
Method Detail
-
refusal
final ResponseOutputRefusal.Builder refusal(String refusal)
The refusal explanationfrom the model.
-
refusal
final ResponseOutputRefusal.Builder refusal(JsonField<String> refusal)
The refusal explanationfrom the model.
-
type
final ResponseOutputRefusal.Builder type(JsonValue type)
The type of the refusal. Always
refusal
.
-
additionalProperties
final ResponseOutputRefusal.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseOutputRefusal.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseOutputRefusal.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseOutputRefusal.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseOutputRefusal.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseOutputRefusal build()
-
-
-
-