Class RefusalContentBlock
-
- All Implemented Interfaces:
public final class RefusalContentBlock
The refusal content generated by the assistant.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RefusalContentBlock.Builder
A builder for RefusalContentBlock.
-
Method Summary
Modifier and Type Method Description final String
refusal()
final JsonValue
_type()
Always refusal
.final JsonField<String>
_refusal()
Returns the raw JSON value of refusal. final Map<String, JsonValue>
_additionalProperties()
final RefusalContentBlock.Builder
toBuilder()
final RefusalContentBlock
validate()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RefusalContentBlock.Builder
builder()
Returns a mutable builder for constructing an instance of RefusalContentBlock. -
-
Method Detail
-
_type
final JsonValue _type()
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 RefusalContentBlock.Builder toBuilder()
-
validate
final RefusalContentBlock validate()
-
builder
final static RefusalContentBlock.Builder builder()
Returns a mutable builder for constructing an instance of RefusalContentBlock.
The following fields are required:
.refusal()
-
-
-
-