class

LLM::OpenAI::History::MessageWrap

Inherits JSON::Serializable < Reference < Object

This wrapper is used to keep the Message and additional information that we want to save when available.

Constructors

new(message : LLM::OpenAI::Message, usage : Nil | LLM::OpenAI::Usage)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

message
Source
usage
Source