Package com.openai.models.responses
Class ResponseTextAnnotationDeltaEvent.Annotation
-
- All Implemented Interfaces:
public final class ResponseTextAnnotationDeltaEvent.Annotation
A citation to a file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ResponseTextAnnotationDeltaEvent.Annotation.Visitor
An interface that defines how to map each variant of Annotation to a value of type T.
public final class
ResponseTextAnnotationDeltaEvent.Annotation.FileCitation
A citation to a file.
public final class
ResponseTextAnnotationDeltaEvent.Annotation.UrlCitation
A citation for a web resource used to generate a model response.
public final class
ResponseTextAnnotationDeltaEvent.Annotation.FilePath
A path to a file.
-
Method Summary
-
-
Method Detail
-
fileCitation
final Optional<ResponseTextAnnotationDeltaEvent.Annotation.FileCitation> fileCitation()
A citation to a file.
-
urlCitation
final Optional<ResponseTextAnnotationDeltaEvent.Annotation.UrlCitation> urlCitation()
A citation for a web resource used to generate a model response.
-
filePath
final Optional<ResponseTextAnnotationDeltaEvent.Annotation.FilePath> filePath()
A path to a file.
-
isFileCitation
final Boolean isFileCitation()
-
isUrlCitation
final Boolean isUrlCitation()
-
isFilePath
final Boolean isFilePath()
-
asFileCitation
final ResponseTextAnnotationDeltaEvent.Annotation.FileCitation asFileCitation()
A citation to a file.
-
asUrlCitation
final ResponseTextAnnotationDeltaEvent.Annotation.UrlCitation asUrlCitation()
A citation for a web resource used to generate a model response.
-
asFilePath
final ResponseTextAnnotationDeltaEvent.Annotation.FilePath asFilePath()
A path to a file.
-
accept
final <T extends Any> T accept(ResponseTextAnnotationDeltaEvent.Annotation.Visitor<T> visitor)
-
validate
final ResponseTextAnnotationDeltaEvent.Annotation validate()
-
ofFileCitation
final static ResponseTextAnnotationDeltaEvent.Annotation ofFileCitation(ResponseTextAnnotationDeltaEvent.Annotation.FileCitation fileCitation)
A citation to a file.
-
ofUrlCitation
final static ResponseTextAnnotationDeltaEvent.Annotation ofUrlCitation(ResponseTextAnnotationDeltaEvent.Annotation.UrlCitation urlCitation)
A citation for a web resource used to generate a model response.
-
ofFilePath
final static ResponseTextAnnotationDeltaEvent.Annotation ofFilePath(ResponseTextAnnotationDeltaEvent.Annotation.FilePath filePath)
A path to a file.
-
-
-
-