History class
Service for retrieving conversation and message history.
Use this class to fetch previous conversations for a specific session or the detailed messages within a single conversation.
Properties
- client → HttpClient
-
Internal HTTP client configured for the Tuul History API.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Returns true if the service has been initialized with an API key.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
conversations(
{required String sessionId}) → Future< AppResponse< ConversationHistoryResponse?> > -
Fetches a list of conversations associated with a specific
sessionId. -
headers(
) → Map< String, String> - Generates authentication headers for history requests.
-
initialize(
String apiKey) → void -
Initializes the service with your
apiKey. -
messages(
{required String conversationId}) → Future< AppResponse< LiteGenHistoryResponse?> > -
Fetches the full message list for a specific
conversationId. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited