Package com.openai.models.beta.responses
Class BetaResponseOutputRefusal
-
- All Implemented Interfaces:
public final class BetaResponseOutputRefusalA refusal from the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseOutputRefusal.BuilderA builder for BetaResponseOutputRefusal.
-
Method Summary
Modifier and Type Method Description final Stringrefusal()The refusal explanation from the model. final JsonValue_type()The type of the refusal. final JsonField<String>_refusal()Returns the raw JSON value of refusal. final Map<String, JsonValue>_additionalProperties()final BetaResponseOutputRefusal.BuildertoBuilder()final BetaResponseOutputRefusalvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseOutputRefusal.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseOutputRefusal. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the refusal. Always
refusal.Expected to always return the following:
JsonValue.from("refusal")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_refusal
final JsonField<String> _refusal()
Returns the raw JSON value of refusal.
Unlike refusal, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseOutputRefusal.Builder toBuilder()
-
validate
final BetaResponseOutputRefusal validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseOutputRefusal.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseOutputRefusal.
The following fields are required:
.refusal()
-
-
-
-