class

MCProtocol::TextContent

Inherits JSON::Serializable < Reference < Object

Text provided to or from an LLM.

Constructors

new(text : String, annotations : TextContentAnnotations | Nil = Nil, type : String = "text")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

annotations
Source
text

The text content of the message.

Source
type
Source