SamplingMessageContent

@Serializable(with = SamplingMessageContentPolymorphicSerializer::class)
sealed interface SamplingMessageContent : WithMeta(source)

Content block that can appear inside a SamplingMessage or CreateMessageResult.

Implemented by TextContent, ImageContent, AudioContent, ToolUseContent, and ToolResultContent.

Inheritors

Properties

Link copied to clipboard
@SerialName(value = "_meta")
abstract val meta: JsonObject?

Optional metadata attached to this entity.

Link copied to clipboard
abstract val type: ContentTypes

discriminator identifying the content block subtype