Class AnnotationDelta
-
- All Implemented Interfaces:
public final class AnnotationDelta
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
AnnotationDelta.Visitor
An interface that defines how to map each variant of AnnotationDelta to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<FileCitationDeltaAnnotation>
fileCitation()
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final Optional<FilePathDeltaAnnotation>
filePath()
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.final Boolean
isFileCitation()
final Boolean
isFilePath()
final FileCitationDeltaAnnotation
asFileCitation()
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final FilePathDeltaAnnotation
asFilePath()
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.final Optional<JsonValue>
_json()
final <T extends Any> T
accept(AnnotationDelta.Visitor<T> visitor)
final AnnotationDelta
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static AnnotationDelta
ofFileCitation(FileCitationDeltaAnnotation fileCitation)
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message. final static AnnotationDelta
ofFilePath(FilePathDeltaAnnotation filePath)
A URL for the file that's generated when the assistant used the code_interpreter
tool to generate a file.-
-
Method Detail
-
fileCitation
final Optional<FileCitationDeltaAnnotation> fileCitation()
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.
-
filePath
final Optional<FilePathDeltaAnnotation> filePath()
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
isFileCitation
final Boolean isFileCitation()
-
isFilePath
final Boolean isFilePath()
-
asFileCitation
final FileCitationDeltaAnnotation asFileCitation()
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.
-
asFilePath
final FilePathDeltaAnnotation asFilePath()
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
accept
final <T extends Any> T accept(AnnotationDelta.Visitor<T> visitor)
-
validate
final AnnotationDelta validate()
-
ofFileCitation
final static AnnotationDelta ofFileCitation(FileCitationDeltaAnnotation fileCitation)
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.
-
ofFilePath
final static AnnotationDelta ofFilePath(FilePathDeltaAnnotation filePath)
A URL for the file that's generated when the assistant used the
code_interpreter
tool to generate a file.
-
-
-
-