Class FileCitationAnnotation
- 
                    
                    
- All Implemented Interfaces:
 
public final class FileCitationAnnotationA citation within the message that points to a specific quote from a specific File associated with the assistant or the message. Generated when the assistant uses the "file_search" tool to search files.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFileCitationAnnotation.BuilderA builder for FileCitationAnnotation.
public final classFileCitationAnnotation.FileCitation 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final LongendIndex()final FileCitationAnnotation.FileCitationfileCitation()final LongstartIndex()final Stringtext()The text in the message content that needs to be replaced. final JsonValue_type()Always file_citation.final JsonField<Long>_endIndex()Returns the raw JSON value of endIndex. final JsonField<FileCitationAnnotation.FileCitation>_fileCitation()Returns the raw JSON value of fileCitation. final JsonField<Long>_startIndex()Returns the raw JSON value of startIndex. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final FileCitationAnnotation.BuildertoBuilder()final FileCitationAnnotationvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FileCitationAnnotation.Builderbuilder()Returns a mutable builder for constructing an instance of FileCitationAnnotation. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
fileCitation
final FileCitationAnnotation.FileCitation fileCitation()
 
- 
                                        
startIndex
final Long startIndex()
 
- 
                                        
_type
final JsonValue _type()
Always
file_citation.Expected to always return the following:
JsonValue.from("file_citation")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
 
- 
                                        
_endIndex
final JsonField<Long> _endIndex()
Returns the raw JSON value of endIndex.
Unlike endIndex, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_fileCitation
final JsonField<FileCitationAnnotation.FileCitation> _fileCitation()
Returns the raw JSON value of fileCitation.
Unlike fileCitation, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_startIndex
final JsonField<Long> _startIndex()
Returns the raw JSON value of startIndex.
Unlike startIndex, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final FileCitationAnnotation.Builder toBuilder()
 
- 
                                        
validate
final FileCitationAnnotation validate()
 
- 
                                        
builder
final static FileCitationAnnotation.Builder builder()
Returns a mutable builder for constructing an instance of FileCitationAnnotation.
The following fields are required:
.endIndex() .fileCitation() .startIndex() .text() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -