LiteGenHistoryResponse<T> class

Represents a structured response containing a history of lite generation messages.

This is typically used when retrieving previous turns in a simplified conversation thread.

Constructors

LiteGenHistoryResponse({required int count, required List<LiteMessage> history, required Map<String, dynamic> metaData})
LiteGenHistoryResponse.fromJson(Map<String, dynamic> json)
Creates a LiteGenHistoryResponse from a JSON map.
factory

Properties

count int
The total number of message entries in this history segment.
final
hashCode int
The hash code for this object.
no setterinherited
history List<LiteMessage>
A list of LiteMessage objects representing the chat history.
final
metaData Map<String, dynamic>
Supplementary diagnostic or pagination data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the history response to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited