class

MCProtocol::SamplingMessage

Inherits JSON::Serializable < Reference < Object

Describes a message issued to or received from an LLM API.

Constructors

new(content : TextContent | ImageContent, role : Role)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
role
Source