Content

@JsonSerializable
@Polymorphic(labelKey = "type")
sealed class Content

Inheritors

Types

Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "audio")
data class Audio(val data: Base64Blob, val mimeType: MimeType, val annotations: Annotations? = null) : Content
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "resource")
data class EmbeddedResource(val resource: Resource.Content, val annotations: Annotations? = null) : Content
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "image")
data class Image(val data: Base64Blob, val mimeType: MimeType, val annotations: Annotations? = null) : Content
Link copied to clipboard
@JsonSerializable
@PolymorphicLabel(value = "text")
data class Text(val text: String, val annotations: Annotations? = null) : Content