TextResourceContents

@Serializable
data class TextResourceContents(val text: String, val uri: String, val mimeType: String?) : ResourceContents(source)

Represents the text contents of a resource.

Constructors

Link copied to clipboard
constructor(text: String, uri: String, mimeType: String?)

Properties

Link copied to clipboard
open override val mimeType: String?

The MIME type of this resource, if known.

Link copied to clipboard

The text of the item. This must only be set if the item can actually be represented as text (not binary data).

Link copied to clipboard
open override val uri: String

The URI of this resource.