Class ChatKitResponseOutputText.Annotation
-
- All Implemented Interfaces:
public final class ChatKitResponseOutputText.Annotation
Annotation object describing a cited source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatKitResponseOutputText.Annotation.Visitor
An interface that defines how to map each variant of Annotation to a value of type T.
public final class
ChatKitResponseOutputText.Annotation.File
Annotation that references an uploaded file.
public final class
ChatKitResponseOutputText.Annotation.Url
Annotation that references a URL.
-
Method Summary
-
-
Method Detail
-
file
final Optional<ChatKitResponseOutputText.Annotation.File> file()
Annotation that references an uploaded file.
-
url
final Optional<ChatKitResponseOutputText.Annotation.Url> url()
Annotation that references a URL.
-
asFile
final ChatKitResponseOutputText.Annotation.File asFile()
Annotation that references an uploaded file.
-
asUrl
final ChatKitResponseOutputText.Annotation.Url asUrl()
Annotation that references a URL.
-
accept
final <T extends Any> T accept(ChatKitResponseOutputText.Annotation.Visitor<T> visitor)
-
validate
final ChatKitResponseOutputText.Annotation validate()
-
ofFile
final static ChatKitResponseOutputText.Annotation ofFile(ChatKitResponseOutputText.Annotation.File file)
Annotation that references an uploaded file.
-
ofUrl
final static ChatKitResponseOutputText.Annotation ofUrl(ChatKitResponseOutputText.Annotation.Url url)
Annotation that references a URL.
-
-
-
-