Class Annotation
-
- All Implemented Interfaces:
public final class AnnotationA 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 interfaceAnnotation.Visitorpublic final classAnnotation.Deserializerpublic final classAnnotation.Serializer
-
Method Summary
Modifier and Type Method Description final Optional<FileCitationAnnotation>fileCitationAnnotation()A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final Optional<FilePathAnnotation>filePathAnnotation()A URL for the file that's generated when the assistant used the code_interpretertool to generate a file.final BooleanisFileCitationAnnotation()final BooleanisFilePathAnnotation()final FileCitationAnnotationasFileCitationAnnotation()A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final FilePathAnnotationasFilePathAnnotation()A URL for the file that's generated when the assistant used the code_interpretertool to generate a file.final Optional<JsonValue>_json()final <T extends Any> Taccept(Annotation.Visitor<T> visitor)final Annotationvalidate()Booleanequals(Object other)IntegerhashCode()StringtoString()final static AnnotationofFileCitationAnnotation(FileCitationAnnotation fileCitationAnnotation)A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final static AnnotationofFilePathAnnotation(FilePathAnnotation filePathAnnotation)A URL for the file that's generated when the assistant used the code_interpretertool to generate a file.-
-
Method Detail
-
fileCitationAnnotation
final Optional<FileCitationAnnotation> fileCitationAnnotation()
A 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.
-
filePathAnnotation
final Optional<FilePathAnnotation> filePathAnnotation()
A URL for the file that's generated when the assistant used the
code_interpretertool to generate a file.
-
isFileCitationAnnotation
final Boolean isFileCitationAnnotation()
-
isFilePathAnnotation
final Boolean isFilePathAnnotation()
-
asFileCitationAnnotation
final FileCitationAnnotation asFileCitationAnnotation()
A 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.
-
asFilePathAnnotation
final FilePathAnnotation asFilePathAnnotation()
A URL for the file that's generated when the assistant used the
code_interpretertool to generate a file.
-
accept
final <T extends Any> T accept(Annotation.Visitor<T> visitor)
-
validate
final Annotation validate()
-
ofFileCitationAnnotation
final static Annotation ofFileCitationAnnotation(FileCitationAnnotation fileCitationAnnotation)
A 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.
-
ofFilePathAnnotation
final static Annotation ofFilePathAnnotation(FilePathAnnotation filePathAnnotation)
A URL for the file that's generated when the assistant used the
code_interpretertool to generate a file.
-
-
-
-