Class ChatCompletionContentPartRefusal
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionContentPartRefusal 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPartRefusal.BuilderA builder for ChatCompletionContentPartRefusal.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Stringrefusal()The refusal message generated by the model. final JsonValue_type()The type of the content part. final JsonField<String>_refusal()Returns the raw JSON value of refusal. final Map<String, JsonValue>_additionalProperties()final ChatCompletionContentPartRefusal.BuildertoBuilder()final ChatCompletionContentPartRefusalvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPartRefusal.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionContentPartRefusal. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
_type
final JsonValue _type()
The type of the content part.
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 ChatCompletionContentPartRefusal.Builder toBuilder()
 
- 
                                        
validate
final ChatCompletionContentPartRefusal validate()
 
- 
                                        
builder
final static ChatCompletionContentPartRefusal.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionContentPartRefusal.
The following fields are required:
.refusal() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -