Class ChatCompletionPredictionContent
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatCompletionPredictionContentStatic predicted output content, such as the content of a text file that is being regenerated.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionPredictionContent.BuilderA builder for ChatCompletionPredictionContent.
public final classChatCompletionPredictionContent.ContentThe content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final ChatCompletionPredictionContent.Contentcontent()The content that should be matched when generating a model response. final JsonValue_type()The type of the predicted content you want to provide. final JsonField<ChatCompletionPredictionContent.Content>_content()Returns the raw JSON value of content. final Map<String, JsonValue>_additionalProperties()final ChatCompletionPredictionContent.BuildertoBuilder()final ChatCompletionPredictionContentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionPredictionContent.Builderbuilder()Returns a mutable builder for constructing an instance of ChatCompletionPredictionContent. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
content
final ChatCompletionPredictionContent.Content content()
The content that should be matched when generating a model response. If generated tokens would match this content, the entire model response can be returned much more quickly.
 
- 
                                        
_type
final JsonValue _type()
The type of the predicted content you want to provide. This type is currently always
content.Expected to always return the following:
JsonValue.from("content")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
 
- 
                                        
_content
final JsonField<ChatCompletionPredictionContent.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final ChatCompletionPredictionContent.Builder toBuilder()
 
- 
                                        
validate
final ChatCompletionPredictionContent validate()
 
- 
                                        
builder
final static ChatCompletionPredictionContent.Builder builder()
Returns a mutable builder for constructing an instance of ChatCompletionPredictionContent.
The following fields are required:
.content() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -