class MCProtocol::TextContent

Overview

Text provided to or from an LLM.

Included Modules

Defined in:

mcprotocol/text_content.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(text : String, annotations : TextContentAnnotations | Nil = Nil, type : String = "text") #

[View source]

Instance Method Detail

def annotations : TextContentAnnotations | Nil #

[View source]
def text : String #

The text content of the message.


[View source]
def type : String #

[View source]