TextContent

data class TextContent(val text: String, val annotations: Annotations? = null, val meta: JsonObject? = null) : MediaContent(source)

Text provided to or from an LLM.

Constructors

Link copied to clipboard
constructor(text: String, annotations: Annotations? = null, meta: JsonObject? = null)

Properties

Link copied to clipboard
open val _meta: JsonObject
Link copied to clipboard

Optional annotations for the client.

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

property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.

Link copied to clipboard

The text content of the message.

Link copied to clipboard
open override val type: ContentTypes