LLM::OpenAI::History
Inherits JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
The serializable chat history keeps all wrapped messages to save the additional information when saving the session.
Constructors
Instance methods
Append last whole conversation, starting with most recent user
message,
- either all messages, or
- user and assistant only
Append conversation from the branch-point of this session, starting with most recent user
message,
- either all messages, or
- user and assistant only
Copy the messages from another session's history, optionally excluding the last "turn".
Extract last whole conversation, starting with most recent user
message,
- either all messages, or
- user and assistant only
Extract conversation from the branch-point of this session, starting with most recent user
message,
- either all messages, or
- user and assistant only
Emit the last N request responses. Always tries to emit the query before the response. May include tool calls as a result. Use N=-1 to list all