Text
data class Text(val text: String, val cacheControl: AnthropicCacheControl? = null) : AnthropicContent(source)
Represents a text-based content within the AnthropicContent hierarchy.
This class is used to encapsulate textual data. Instances of this class are serialized with the discriminator "text" to identify their type in the context of polymorphic serialization.